|
|
|
@@ -1,10 +1,12 @@
|
|
|
|
|
// @generated by yoi-ticket-browser-openapi-typescript@1. Do not edit.
|
|
|
|
|
// Input: openapi/server-api.json
|
|
|
|
|
// Input contract: 0.1.0 (sha256:fc25104c077ab8c5c43f77611f505171585d2d40fd54c6538774ac17aae6cce3)
|
|
|
|
|
// Input contract: 0.1.0 (sha256:d65d33e53c3a08f21be2c5d3de1870b4748fdba71e2b960ea773043235977066)
|
|
|
|
|
// Options: ticket-objective-merge-request-browser-operation-schema-closure,openapi-3.1,strict-integer-ranges,sorted-output
|
|
|
|
|
// Output: web/workspace/src/lib/generated/ticket-api.ts
|
|
|
|
|
// Regenerate/check: cargo run -q -p server-api --example generate_ticket_api_types -- --check
|
|
|
|
|
|
|
|
|
|
export type Array_of_WorkspaceTag = Array<WorkspaceTag>;
|
|
|
|
|
|
|
|
|
|
export type BrowserAppendTicketEventRequest = { author?: string | null; body: string; role: BrowserTicketThreadRole; };
|
|
|
|
|
|
|
|
|
|
export type BrowserCloseTicketRequest = { expected_content_digest: string; expected_state: BrowserTicketWorkflowState; operation_key: string; resolution: string; };
|
|
|
|
@@ -91,7 +93,7 @@ export type TicketAssignmentRole = "orchestrator" | "worker" | "owner" | "contri
|
|
|
|
|
|
|
|
|
|
export type TicketAssignmentSummary = { assignment_id: string; runtime_id: string; worker_id: string; worker_resource_key?: string | null; };
|
|
|
|
|
|
|
|
|
|
export type TicketDetail = { action_eligibility: TicketActionEligibility; artifact_count: number; artifacts: Array<string>; assignment_diagnostics: Array<string>; assignments: Array<TicketRoleAssignmentSummary>; body: string; body_truncated: boolean; content_digest: string; created_at?: string | null; current_worker?: TicketAssignmentSummary | null; event_count: number; event_page: QueryPage; events: Array<TicketEventDetail>; evidence: TicketEvidenceSummary; id: string; implementation_reports: Array<TicketEvidenceEvent>; linked_objectives: Array<ObjectiveLinkSummary>; merge_request?: TicketMergeRequestSummary | null; merge_requests: Array<TicketMergeRequestSummary>; priority: string; queued_at?: string | null; queued_by?: string | null; readiness?: string | null; record_source: string; relations: TicketDetailRelationView; resolution?: string | null; resource_key: string; risk_flags: Array<string>; state: string; targets: Array<TicketTarget>; title: string; updated_at?: string | null; };
|
|
|
|
|
export type TicketDetail = { action_eligibility: TicketActionEligibility; artifact_count: number; artifacts: Array<string>; assignment_diagnostics: Array<string>; assignments: Array<TicketRoleAssignmentSummary>; body: string; body_truncated: boolean; content_digest: string; created_at?: string | null; current_worker?: TicketAssignmentSummary | null; event_count: number; event_page: QueryPage; events: Array<TicketEventDetail>; evidence: TicketEvidenceSummary; id: string; implementation_reports: Array<TicketEvidenceEvent>; linked_objectives: Array<ObjectiveLinkSummary>; merge_request?: TicketMergeRequestSummary | null; merge_requests: Array<TicketMergeRequestSummary>; priority: string; queued_at?: string | null; queued_by?: string | null; readiness?: string | null; record_source: string; relations: TicketDetailRelationView; resolution?: string | null; resource_key: string; risk_flags: Array<string>; state: string; tags: Array<WorkspaceTag>; targets: Array<TicketTarget>; title: string; updated_at?: string | null; };
|
|
|
|
|
|
|
|
|
|
export type TicketDetailDerivedRelation = { at: string; author: string; forward_kind: string; inverse_kind: string; note?: string | null; source_resource_key?: string | null; source_ticket: string; };
|
|
|
|
|
|
|
|
|
@@ -111,7 +113,7 @@ export type TicketEvidenceSummary = { approved_current_subject: boolean; complet
|
|
|
|
|
|
|
|
|
|
export type TicketIntakeSummary = { author?: string | null; body: MarkdownText; references: Array<TicketReference>; };
|
|
|
|
|
|
|
|
|
|
export type TicketListItemSummary = { id: string; priority: string; queued_at?: string | null; queued_by?: string | null; record_source: string; resource_key: string; state: string; title: string; updated_at?: string | null; workspace_action_priority: string; };
|
|
|
|
|
export type TicketListItemSummary = { id: string; priority: string; queued_at?: string | null; queued_by?: string | null; record_source: string; resource_key: string; state: string; tags?: Array<WorkspaceTag>; title: string; updated_at?: string | null; workspace_action_priority: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketListResponse = { invalid_records: Array<InvalidProjectRecord>; items: Array<TicketListItemSummary>; limit: number & { readonly "__yoiIntegerRange": "0..1000"; }; page: QueryPage; record_authority: string; workspace_id: string; };
|
|
|
|
|
|
|
|
|
@@ -119,6 +121,12 @@ export type TicketMarkReadyRequest = { intake_summary?: TicketIntakeSummary | nu
|
|
|
|
|
|
|
|
|
|
export type TicketMergeRequestSummary = { current_subject_ref?: string | null; integration_evidence_error?: string | null; merge_request_id: string; repository_key: string; review_excerpt?: string | null; review_requested_at?: string | null; review_status: string; review_subject_ref?: string | null; review_submitted_at?: string | null; selector_from?: string | null; selector_to: string; source_ref_observation: TicketSourceRefObservation; state: string; updated_at: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketQueryItem = { blocker_count: number; content_digest: string; created_at?: string | null; current_worker?: TicketAssignmentSummary | null; evidence: TicketEvidenceSummary; id: string; linked_objective_ids: Array<string>; linked_objective_keys: Array<string>; matched_fields: Array<string>; matching_event?: TicketEvidenceEvent | null; merge_request?: TicketMergeRequestSummary | null; merge_requests: Array<TicketMergeRequestSummary>; priority: string; readiness?: string | null; relation_count: number; resource_key: string; snippet?: string | null; state: string; tags: Array<WorkspaceTag>; title: string; unresolved_blocker_count: number; unresolved_review_count: number; updated_at?: string | null; workspace_action_priority: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketQueryRequest = { attention?: Array<string>; cursor?: string | null; event_kinds?: Array<string>; evidence?: Array<string>; limit?: number & { readonly "__yoiIntegerRange": "0..1000"; } | null; linked_objective_id?: string | null; query?: string | null; related_ticket_id?: string | null; relation_kind?: string | null; review_status?: string | null; sort?: string | null; states?: Array<string>; tag_ids?: Array<string>; tag_ids_any?: Array<string>; tag_ids_none?: Array<string>; updated_after?: string | null; updated_before?: string | null; };
|
|
|
|
|
|
|
|
|
|
export type TicketQueryResponse = { items: Array<TicketQueryItem>; page: QueryPage; record_authority: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketQueueOutcome = { queued_tickets: Array<string>; requested_ticket: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketRef = { id: string; resource_key?: string | null; slug: string; status: TicketStatus; };
|
|
|
|
@@ -135,6 +143,8 @@ export type TicketSourceRefObservation = { status: "observed"; } | { code: strin
|
|
|
|
|
|
|
|
|
|
export type TicketStatus = "Open" | "Closed";
|
|
|
|
|
|
|
|
|
|
export type TicketTagSetRequest = { expected_tag_ids: Array<string>; operation_key: string; tag_ids: Array<string>; };
|
|
|
|
|
|
|
|
|
|
export type TicketTarget = { access: TicketTargetAccess; ref_selector?: string | null; repository_key: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketTargetAccess = "read_only" | "read_write";
|
|
|
|
@@ -142,3 +152,9 @@ export type TicketTargetAccess = "read_only" | "read_write";
|
|
|
|
|
export type TicketWorkerAttachmentBinding = { alias: string; connection_id: string; working_directory_id: string; };
|
|
|
|
|
|
|
|
|
|
export type TicketWorkflowState = "planning" | "ready" | "queued" | "in_progress" | "done" | "closed";
|
|
|
|
|
|
|
|
|
|
export type WorkspaceTag = { deleted: boolean; id: string; last_operation_key: string; name: string; workspace_id: string; };
|
|
|
|
|
|
|
|
|
|
export type WorkspaceTagAction = { kind: "create"; name: string; } | { expected_last_operation_key: string; kind: "rename"; name: string; tag_id: string; } | { expected_last_operation_key: string; kind: "delete"; tag_id: string; };
|
|
|
|
|
|
|
|
|
|
export type WorkspaceTagMutation = { action: WorkspaceTagAction; operation_key: string; };
|
|
|
|
|