@dazl/api-client 1.0.43 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,6 +195,9 @@ export type PendingGeneration = {
195
195
  messageId: string;
196
196
  model?: string;
197
197
  enabledIntegrationNames?: Array<string>;
198
+ harness?: string;
199
+ harnessModel?: string;
200
+ agentEffort?: string;
198
201
  };
199
202
 
200
203
  export type UserDisplayInfoResponse = {
@@ -526,6 +529,531 @@ export type PurgeUserAccountInput = {
526
529
  dryRun?: boolean;
527
530
  };
528
531
 
532
+ export type WorkflowInteractiveCapabilities = {
533
+ interactiveExecutionAvailable: boolean;
534
+ };
535
+
536
+ export type WorkflowConversationList = {
537
+ conversations: Array<WorkflowConversationSummary>;
538
+ };
539
+
540
+ export type WorkflowConversationSummary = {
541
+ id: string;
542
+ runId: string;
543
+ nodeKey: string;
544
+ chatId: string;
545
+ agentName: string;
546
+ role: 'work' | 'workspace' | 'personal';
547
+ ownerDazlUserId: string;
548
+ phaseVersion: number;
549
+ attempt: number;
550
+ draftRevision: number;
551
+ state: 'queued' | 'working' | 'waiting' | 'failed' | 'recovery-required' | 'completed' | 'superseded';
552
+ activeTurn: WorkflowTurnActiveRef;
553
+ canRead: boolean;
554
+ canPost: boolean;
555
+ canDecide: boolean;
556
+ canComplete: boolean;
557
+ };
558
+
559
+ export type WorkflowTurnActiveRef = {
560
+ turnId: string;
561
+ turnAttempt: number;
562
+ status: 'queued' | 'accepted' | 'succeeded' | 'failed' | 'cancelled' | 'recovery-required';
563
+ } | null;
564
+
565
+ export type WorkflowConversationForChat = {
566
+ conversation: WorkflowConversationSummary & ({
567
+ [key: string]: unknown;
568
+ } | null);
569
+ };
570
+
571
+ export type WorkflowConversationDetail = {
572
+ id: string;
573
+ runId: string;
574
+ nodeKey: string;
575
+ chatId: string;
576
+ agentName: string;
577
+ role: 'work' | 'workspace' | 'personal';
578
+ ownerDazlUserId: string;
579
+ phaseVersion: number;
580
+ attempt: number;
581
+ draftRevision: number;
582
+ state: 'queued' | 'working' | 'waiting' | 'failed' | 'recovery-required' | 'completed' | 'superseded';
583
+ activeTurn: WorkflowTurnActiveRef;
584
+ canRead: boolean;
585
+ canPost: boolean;
586
+ canDecide: boolean;
587
+ canComplete: boolean;
588
+ messages: Array<WorkflowConversationMessage>;
589
+ hasMore: boolean;
590
+ oldestSequence: string | null;
591
+ draft: {
592
+ text: string;
593
+ files?: Array<string>;
594
+ changes?: Array<{
595
+ dirName: string;
596
+ from: string;
597
+ to: string;
598
+ commits: number;
599
+ files: Array<string>;
600
+ }>;
601
+ } | WorkflowConversationReviewDraft | null;
602
+ draftValid: boolean;
603
+ error: string | null;
604
+ };
605
+
606
+ export type WorkflowConversationMessage = {
607
+ id: string;
608
+ sequence: string;
609
+ role: 'user' | 'assistant';
610
+ actorDazlUserId: string | null;
611
+ text: string;
612
+ createdAt: string;
613
+ };
614
+
615
+ export type WorkflowConversationReviewDraft = {
616
+ decision: 'approve' | 'object';
617
+ suggestions: Array<{
618
+ target: string;
619
+ suggestion: string;
620
+ rationale?: string;
621
+ }>;
622
+ };
623
+
624
+ export type WorkflowConversationPostedMessage = {
625
+ message: WorkflowConversationMessage;
626
+ turnId: string;
627
+ turnAttempt: number;
628
+ };
629
+
630
+ export type WorkflowConversationMessageInput = {
631
+ requestId: string;
632
+ text: string;
633
+ token: WorkflowConversationClaim;
634
+ };
635
+
636
+ export type WorkflowConversationClaim = {
637
+ phaseVersion: number;
638
+ attempt: number;
639
+ };
640
+
641
+ export type WorkflowConversationOk = {
642
+ ok: true;
643
+ };
644
+
645
+ export type WorkflowConversationCompleteInput = {
646
+ token: WorkflowConversationDraftClaim;
647
+ };
648
+
649
+ export type WorkflowConversationDraftClaim = {
650
+ phaseVersion: number;
651
+ attempt: number;
652
+ draftRevision: number;
653
+ };
654
+
655
+ export type WorkflowConversationDecisionInput = {
656
+ token: WorkflowConversationDraftClaim;
657
+ decision: 'approve' | 'reject';
658
+ comment?: string;
659
+ suggestions: Array<{
660
+ target: string;
661
+ suggestion: string;
662
+ rationale?: string;
663
+ }>;
664
+ };
665
+
666
+ export type WorkflowConversationActionResult = {
667
+ applied: boolean;
668
+ };
669
+
670
+ export type WorkflowTurnActionInput = {
671
+ token: WorkflowTurnActionClaim;
672
+ };
673
+
674
+ export type WorkflowTurnActionClaim = {
675
+ phaseVersion: number;
676
+ attempt: number;
677
+ turnId: string;
678
+ turnAttempt: number;
679
+ };
680
+
681
+ export type WorkflowTurnOfferList = {
682
+ turns: Array<WorkflowTurnOffer>;
683
+ };
684
+
685
+ export type WorkflowTurnOffer = {
686
+ runId: string;
687
+ projectId: string;
688
+ conversationId: string;
689
+ nodeKey: string;
690
+ role: 'work' | 'workspace' | 'personal';
691
+ turnId: string;
692
+ turnAttempt: number;
693
+ };
694
+
695
+ export type WorkflowWorkerSessionResult = {
696
+ reclaimed: number;
697
+ };
698
+
699
+ export type WorkflowWorkerSession = {
700
+ workerId: string;
701
+ };
702
+
703
+ export type WorkflowTurnAcceptance = {
704
+ accepted: false;
705
+ } | {
706
+ accepted: true;
707
+ token: WorkflowTurnClaim;
708
+ payload: WorkflowTurnPayload;
709
+ input: WorkflowTurnInput;
710
+ leaseExpiresAt: string;
711
+ heartbeatMs: number;
712
+ };
713
+
714
+ export type WorkflowTurnClaim = {
715
+ phaseVersion: number;
716
+ attempt: number;
717
+ turnId: string;
718
+ turnAttempt: number;
719
+ workerId: string;
720
+ };
721
+
722
+ export type WorkflowTurnPayload = {
723
+ conversation: {
724
+ id: string;
725
+ runId: string;
726
+ projectId: string;
727
+ nodeKey: string;
728
+ chatId: string;
729
+ };
730
+ agent: {
731
+ schemaVersion?: '1';
732
+ meta: {
733
+ name: string;
734
+ description?: string;
735
+ };
736
+ systemPrompt: string;
737
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
738
+ model?: string;
739
+ allowedMcpServers?: Array<string>;
740
+ rules?: Array<{
741
+ text: string;
742
+ owners?: Array<string>;
743
+ blocking?: boolean;
744
+ }>;
745
+ };
746
+ runInput: unknown;
747
+ upstream: Array<{
748
+ nodeKey: string;
749
+ title: string;
750
+ output: {
751
+ text: string;
752
+ files?: Array<string>;
753
+ changes?: Array<{
754
+ dirName: string;
755
+ from: string;
756
+ to: string;
757
+ commits: number;
758
+ files: Array<string>;
759
+ }>;
760
+ } | null;
761
+ }>;
762
+ history: Array<WorkflowConversationMessage>;
763
+ changeRequests: Array<WorkflowChangeRequest>;
764
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
765
+ model?: string;
766
+ prompt?: string;
767
+ role: 'work' | 'workspace' | 'personal';
768
+ };
769
+
770
+ export type WorkflowChangeRequest = {
771
+ reviewerKey: string;
772
+ agentName: string;
773
+ comment?: string;
774
+ findings: Array<{
775
+ target: string;
776
+ suggestion: string;
777
+ rationale?: string;
778
+ }>;
779
+ };
780
+
781
+ export type WorkflowTurnInput = {
782
+ kind: 'initial';
783
+ } | {
784
+ kind: 'message';
785
+ text: string;
786
+ messageId: string;
787
+ };
788
+
789
+ export type WorkflowTurnAcceptInput = {
790
+ workerId: string;
791
+ };
792
+
793
+ export type WorkflowTurnResultInput = {
794
+ token: WorkflowTurnClaim;
795
+ result: WorkflowTurnResult;
796
+ };
797
+
798
+ export type WorkflowTurnResult = {
799
+ status: 'succeeded' | 'failed' | 'cancelled';
800
+ assistantText: string;
801
+ output?: {
802
+ text: string;
803
+ files?: Array<string>;
804
+ changes?: Array<{
805
+ dirName: string;
806
+ from: string;
807
+ to: string;
808
+ commits: number;
809
+ files: Array<string>;
810
+ }>;
811
+ };
812
+ review?: WorkflowConversationReviewDraft;
813
+ draftValid: boolean;
814
+ error?: string;
815
+ execution?: WorkflowExecutionMetadata;
816
+ observedChanges?: Array<{
817
+ dirName: string;
818
+ from: string;
819
+ to: string;
820
+ commits: number;
821
+ files: Array<string>;
822
+ }>;
823
+ };
824
+
825
+ export type WorkflowExecutionMetadata = {
826
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
827
+ model?: string;
828
+ assistantMessageId?: string;
829
+ };
830
+
831
+ export type WorkflowTurnHeartbeat = {
832
+ ok: boolean;
833
+ cancelRequested: boolean;
834
+ leaseExpiresAt: string | null;
835
+ };
836
+
837
+ export type WorkflowTurnClaimInput = {
838
+ token: WorkflowTurnClaim;
839
+ };
840
+
841
+ export type WorkflowRun = {
842
+ id: string;
843
+ workspaceId: string;
844
+ projectId: string;
845
+ chatId: string;
846
+ startedByDazlUserId: string;
847
+ status: 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
848
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
849
+ model: string | null;
850
+ input?: unknown;
851
+ document?: unknown;
852
+ agents: {
853
+ [key: string]: unknown;
854
+ };
855
+ triggerId: string;
856
+ source: 'working-tree' | 'definition';
857
+ sourcePath: string | null;
858
+ phaseVersions: {
859
+ [key: string]: number;
860
+ };
861
+ reviewCycles: {
862
+ [key: string]: number;
863
+ };
864
+ startedAt: string;
865
+ finishedAt: string | null;
866
+ };
867
+
868
+ export type StartWorkflowRunInput = {
869
+ chatId: string;
870
+ triggerId: string;
871
+ source: 'working-tree';
872
+ sourcePath?: string;
873
+ harness?: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
874
+ model?: string;
875
+ input: unknown;
876
+ document: unknown;
877
+ agents: {
878
+ [key: string]: unknown;
879
+ };
880
+ };
881
+
882
+ export type WorkflowDispatchPayload = {
883
+ runId: string;
884
+ chatId: string;
885
+ projectId: string;
886
+ nodeKey: string;
887
+ kind: 'work' | 'reviewer';
888
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
889
+ model?: string;
890
+ token: WorkflowNodeToken;
891
+ title: string;
892
+ agentName: string;
893
+ agent: {
894
+ schemaVersion?: '1';
895
+ meta: {
896
+ name: string;
897
+ description?: string;
898
+ };
899
+ systemPrompt: string;
900
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
901
+ model?: string;
902
+ allowedMcpServers?: Array<string>;
903
+ rules?: Array<{
904
+ text: string;
905
+ owners?: Array<string>;
906
+ blocking?: boolean;
907
+ }>;
908
+ };
909
+ prompt?: string;
910
+ input?: unknown;
911
+ upstream: Array<{
912
+ nodeKey: string;
913
+ title: string;
914
+ output: {
915
+ text: string;
916
+ files?: Array<string>;
917
+ changes?: Array<{
918
+ dirName: string;
919
+ from: string;
920
+ to: string;
921
+ commits: number;
922
+ files: Array<string>;
923
+ }>;
924
+ } | null;
925
+ }>;
926
+ reviewNodeId?: string;
927
+ onBehalfOf?: string;
928
+ };
929
+
930
+ export type WorkflowNodeToken = {
931
+ phaseVersion: number;
932
+ attempt: number;
933
+ };
934
+
935
+ export type WorkflowNodeRun = {
936
+ id: string;
937
+ runId: string;
938
+ nodeKey: string;
939
+ status: 'pending' | 'running' | 'awaiting-callback' | 'paused-for-human' | 'success' | 'error' | 'skipped';
940
+ phaseVersion: number;
941
+ attempt: number;
942
+ output?: unknown;
943
+ error: string | null;
944
+ awaitingDazlUserIds: Array<string>;
945
+ escalationReason: string | null;
946
+ startedAt: string | null;
947
+ finishedAt: string | null;
948
+ };
949
+
950
+ export type WorkflowRunEvent = {
951
+ id: string;
952
+ runId: string;
953
+ nodeKey: string | null;
954
+ type: 'status-change' | 'human-decision' | 'dispatch' | 'callback' | 'error' | 'harness-selected';
955
+ message: string;
956
+ actorDazlUserId: string | null;
957
+ data?: unknown;
958
+ at: string;
959
+ sequence: string;
960
+ };
961
+
962
+ export type WorkflowReviewDecision = {
963
+ id: string;
964
+ runId: string;
965
+ nodeRunId: string;
966
+ reviewerKey: string;
967
+ agentName: string;
968
+ onBehalfOf: string | null;
969
+ reviewerDazlUserId: string | null;
970
+ target: string;
971
+ suggestion: string;
972
+ rationale: string | null;
973
+ disposition: 'pending' | 'approved' | 'rejected';
974
+ decidedByDazlUserId: string | null;
975
+ decidedAt: string | null;
976
+ phase: string;
977
+ phaseVersion: number;
978
+ };
979
+
980
+ export type WorkflowRunGraph = {
981
+ nodes: Array<{
982
+ key: string;
983
+ kind: 'trigger' | 'work' | 'review' | 'agentTask' | 'humanGate' | 'script';
984
+ dependsOn: Array<string>;
985
+ dependsOnReviewsOf?: string;
986
+ phase?: string;
987
+ agent?: string;
988
+ }>;
989
+ phases: Array<{
990
+ key: string;
991
+ gateKey: string;
992
+ opensAfter: Array<string>;
993
+ reopens: Array<string>;
994
+ reviewers: Array<{
995
+ key: string;
996
+ agent: string;
997
+ prompt?: string;
998
+ onBehalfOf?: string;
999
+ }>;
1000
+ }>;
1001
+ };
1002
+
1003
+ export type AcceptedWorkflowNode = {
1004
+ accepted: false;
1005
+ } | {
1006
+ accepted: true;
1007
+ payload: WorkflowDispatchPayload;
1008
+ };
1009
+
1010
+ export type AcceptWorkflowNodeInput = {
1011
+ token: WorkflowNodeToken;
1012
+ };
1013
+
1014
+ export type SetWorkflowHarnessInput = {
1015
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
1016
+ model?: string | null;
1017
+ };
1018
+
1019
+ export type WorkflowNodeResultInput = {
1020
+ token: WorkflowNodeToken;
1021
+ output?: {
1022
+ text: string;
1023
+ files?: Array<string>;
1024
+ changes?: Array<{
1025
+ dirName: string;
1026
+ from: string;
1027
+ to: string;
1028
+ commits: number;
1029
+ files: Array<string>;
1030
+ }>;
1031
+ };
1032
+ error?: string;
1033
+ execution?: WorkflowExecutionMetadata;
1034
+ };
1035
+
1036
+ export type WorkflowReviewReportInput = {
1037
+ token: WorkflowNodeToken;
1038
+ decision: 'approve' | 'object';
1039
+ execution?: {
1040
+ harness: 'dazl';
1041
+ model?: string;
1042
+ assistantMessageId?: string;
1043
+ };
1044
+ suggestions: Array<{
1045
+ target: string;
1046
+ suggestion: string;
1047
+ rationale?: string;
1048
+ }>;
1049
+ };
1050
+
1051
+ export type WorkflowHumanDecisionInput = {
1052
+ token: WorkflowNodeToken;
1053
+ decision: 'approve' | 'reject';
1054
+ comment?: string;
1055
+ };
1056
+
529
1057
  export type FeatureToggle = {
530
1058
  name: string;
531
1059
  scope: 'RemoteAndEditor' | 'SiteAndEditor';
@@ -8266,6 +8794,1440 @@ export type GetUserActivePromotionsResponses = {
8266
8794
 
8267
8795
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
8268
8796
 
8797
+ export type GetWorkflowInteractiveCapabilitiesData = {
8798
+ body?: never;
8799
+ path?: never;
8800
+ query?: never;
8801
+ url: '/workflow/capabilities';
8802
+ };
8803
+
8804
+ export type GetWorkflowInteractiveCapabilitiesErrors = {
8805
+ /**
8806
+ * Bad request - Invalid parameters or malformed JSON
8807
+ */
8808
+ 400: {
8809
+ message: string;
8810
+ issues?: string;
8811
+ };
8812
+ /**
8813
+ * Unauthorized
8814
+ */
8815
+ 401: ErrorResponse;
8816
+ /**
8817
+ * Forbidden
8818
+ */
8819
+ 403: ErrorResponse;
8820
+ /**
8821
+ * Not Found
8822
+ */
8823
+ 404: ErrorResponse;
8824
+ /**
8825
+ * Conflict
8826
+ */
8827
+ 409: ErrorResponse;
8828
+ /**
8829
+ * Internal server error
8830
+ */
8831
+ 500: ErrorResponse;
8832
+ /**
8833
+ * Service Unavailable
8834
+ */
8835
+ 503: ErrorResponse;
8836
+ };
8837
+
8838
+ export type GetWorkflowInteractiveCapabilitiesError = GetWorkflowInteractiveCapabilitiesErrors[keyof GetWorkflowInteractiveCapabilitiesErrors];
8839
+
8840
+ export type GetWorkflowInteractiveCapabilitiesResponses = {
8841
+ /**
8842
+ * Whether this backend can run interactive workflow steps
8843
+ */
8844
+ 200: WorkflowInteractiveCapabilities;
8845
+ };
8846
+
8847
+ export type GetWorkflowInteractiveCapabilitiesResponse = GetWorkflowInteractiveCapabilitiesResponses[keyof GetWorkflowInteractiveCapabilitiesResponses];
8848
+
8849
+ export type ListWorkflowConversationsData = {
8850
+ body?: never;
8851
+ path: {
8852
+ runId: string;
8853
+ };
8854
+ query?: never;
8855
+ url: '/workflow/runs/{runId}/conversations';
8856
+ };
8857
+
8858
+ export type ListWorkflowConversationsErrors = {
8859
+ /**
8860
+ * Bad request - Invalid parameters or malformed JSON
8861
+ */
8862
+ 400: {
8863
+ message: string;
8864
+ issues?: string;
8865
+ };
8866
+ /**
8867
+ * Unauthorized
8868
+ */
8869
+ 401: ErrorResponse;
8870
+ /**
8871
+ * Forbidden
8872
+ */
8873
+ 403: ErrorResponse;
8874
+ /**
8875
+ * Not Found
8876
+ */
8877
+ 404: ErrorResponse;
8878
+ /**
8879
+ * Conflict
8880
+ */
8881
+ 409: ErrorResponse;
8882
+ /**
8883
+ * Internal server error
8884
+ */
8885
+ 500: ErrorResponse;
8886
+ /**
8887
+ * Service Unavailable
8888
+ */
8889
+ 503: ErrorResponse;
8890
+ };
8891
+
8892
+ export type ListWorkflowConversationsError = ListWorkflowConversationsErrors[keyof ListWorkflowConversationsErrors];
8893
+
8894
+ export type ListWorkflowConversationsResponses = {
8895
+ /**
8896
+ * Safe summaries of a run's conversations: identity, position and permissions, never content
8897
+ */
8898
+ 200: WorkflowConversationList;
8899
+ };
8900
+
8901
+ export type ListWorkflowConversationsResponse = ListWorkflowConversationsResponses[keyof ListWorkflowConversationsResponses];
8902
+
8903
+ export type GetWorkflowConversationForChatData = {
8904
+ body?: never;
8905
+ path: {
8906
+ chatId: string;
8907
+ };
8908
+ query?: never;
8909
+ url: '/workflow/chats/{chatId}/conversation';
8910
+ };
8911
+
8912
+ export type GetWorkflowConversationForChatErrors = {
8913
+ /**
8914
+ * Bad request - Invalid parameters or malformed JSON
8915
+ */
8916
+ 400: {
8917
+ message: string;
8918
+ issues?: string;
8919
+ };
8920
+ /**
8921
+ * Unauthorized
8922
+ */
8923
+ 401: ErrorResponse;
8924
+ /**
8925
+ * Forbidden
8926
+ */
8927
+ 403: ErrorResponse;
8928
+ /**
8929
+ * Not Found
8930
+ */
8931
+ 404: ErrorResponse;
8932
+ /**
8933
+ * Conflict
8934
+ */
8935
+ 409: ErrorResponse;
8936
+ /**
8937
+ * Internal server error
8938
+ */
8939
+ 500: ErrorResponse;
8940
+ /**
8941
+ * Service Unavailable
8942
+ */
8943
+ 503: ErrorResponse;
8944
+ };
8945
+
8946
+ export type GetWorkflowConversationForChatError = GetWorkflowConversationForChatErrors[keyof GetWorkflowConversationForChatErrors];
8947
+
8948
+ export type GetWorkflowConversationForChatResponses = {
8949
+ /**
8950
+ * The conversation this chat belongs to, or null for an ordinary chat or one the caller may not read
8951
+ */
8952
+ 200: WorkflowConversationForChat;
8953
+ };
8954
+
8955
+ export type GetWorkflowConversationForChatResponse = GetWorkflowConversationForChatResponses[keyof GetWorkflowConversationForChatResponses];
8956
+
8957
+ export type GetWorkflowConversationData = {
8958
+ body?: never;
8959
+ path: {
8960
+ conversationId: string;
8961
+ };
8962
+ query?: {
8963
+ limit?: number;
8964
+ before?: string;
8965
+ };
8966
+ url: '/workflow/conversations/{conversationId}';
8967
+ };
8968
+
8969
+ export type GetWorkflowConversationErrors = {
8970
+ /**
8971
+ * Bad request - Invalid parameters or malformed JSON
8972
+ */
8973
+ 400: {
8974
+ message: string;
8975
+ issues?: string;
8976
+ };
8977
+ /**
8978
+ * Unauthorized
8979
+ */
8980
+ 401: ErrorResponse;
8981
+ /**
8982
+ * Forbidden
8983
+ */
8984
+ 403: ErrorResponse;
8985
+ /**
8986
+ * Not Found
8987
+ */
8988
+ 404: ErrorResponse;
8989
+ /**
8990
+ * Conflict
8991
+ */
8992
+ 409: ErrorResponse;
8993
+ /**
8994
+ * Internal server error
8995
+ */
8996
+ 500: ErrorResponse;
8997
+ /**
8998
+ * Service Unavailable
8999
+ */
9000
+ 503: ErrorResponse;
9001
+ };
9002
+
9003
+ export type GetWorkflowConversationError = GetWorkflowConversationErrors[keyof GetWorkflowConversationErrors];
9004
+
9005
+ export type GetWorkflowConversationResponses = {
9006
+ /**
9007
+ * One page of a conversation the caller is authorized to read
9008
+ */
9009
+ 200: WorkflowConversationDetail;
9010
+ };
9011
+
9012
+ export type GetWorkflowConversationResponse = GetWorkflowConversationResponses[keyof GetWorkflowConversationResponses];
9013
+
9014
+ export type PostWorkflowConversationMessageData = {
9015
+ body: WorkflowConversationMessageInput;
9016
+ path: {
9017
+ conversationId: string;
9018
+ };
9019
+ query?: never;
9020
+ url: '/workflow/conversations/{conversationId}/messages';
9021
+ };
9022
+
9023
+ export type PostWorkflowConversationMessageErrors = {
9024
+ /**
9025
+ * Bad request - Invalid parameters or malformed JSON
9026
+ */
9027
+ 400: {
9028
+ message: string;
9029
+ issues?: string;
9030
+ };
9031
+ /**
9032
+ * Unauthorized
9033
+ */
9034
+ 401: ErrorResponse;
9035
+ /**
9036
+ * Forbidden
9037
+ */
9038
+ 403: ErrorResponse;
9039
+ /**
9040
+ * Not Found
9041
+ */
9042
+ 404: ErrorResponse;
9043
+ /**
9044
+ * Conflict
9045
+ */
9046
+ 409: ErrorResponse;
9047
+ /**
9048
+ * Internal server error
9049
+ */
9050
+ 500: ErrorResponse;
9051
+ /**
9052
+ * Service Unavailable
9053
+ */
9054
+ 503: ErrorResponse;
9055
+ };
9056
+
9057
+ export type PostWorkflowConversationMessageError = PostWorkflowConversationMessageErrors[keyof PostWorkflowConversationMessageErrors];
9058
+
9059
+ export type PostWorkflowConversationMessageResponses = {
9060
+ /**
9061
+ * Records the caller's message and queues the agent turn that answers it
9062
+ */
9063
+ 200: WorkflowConversationPostedMessage;
9064
+ };
9065
+
9066
+ export type PostWorkflowConversationMessageResponse = PostWorkflowConversationMessageResponses[keyof PostWorkflowConversationMessageResponses];
9067
+
9068
+ export type CompleteWorkflowConversationData = {
9069
+ body: WorkflowConversationCompleteInput;
9070
+ path: {
9071
+ conversationId: string;
9072
+ };
9073
+ query?: never;
9074
+ url: '/workflow/conversations/{conversationId}/complete';
9075
+ };
9076
+
9077
+ export type CompleteWorkflowConversationErrors = {
9078
+ /**
9079
+ * Bad request - Invalid parameters or malformed JSON
9080
+ */
9081
+ 400: {
9082
+ message: string;
9083
+ issues?: string;
9084
+ };
9085
+ /**
9086
+ * Unauthorized
9087
+ */
9088
+ 401: ErrorResponse;
9089
+ /**
9090
+ * Forbidden
9091
+ */
9092
+ 403: ErrorResponse;
9093
+ /**
9094
+ * Not Found
9095
+ */
9096
+ 404: ErrorResponse;
9097
+ /**
9098
+ * Conflict
9099
+ */
9100
+ 409: ErrorResponse;
9101
+ /**
9102
+ * Internal server error
9103
+ */
9104
+ 500: ErrorResponse;
9105
+ /**
9106
+ * Service Unavailable
9107
+ */
9108
+ 503: ErrorResponse;
9109
+ };
9110
+
9111
+ export type CompleteWorkflowConversationError = CompleteWorkflowConversationErrors[keyof CompleteWorkflowConversationErrors];
9112
+
9113
+ export type CompleteWorkflowConversationResponses = {
9114
+ /**
9115
+ * Marks an interactive work step done with the draft the caller was shown
9116
+ */
9117
+ 200: WorkflowConversationOk;
9118
+ };
9119
+
9120
+ export type CompleteWorkflowConversationResponse = CompleteWorkflowConversationResponses[keyof CompleteWorkflowConversationResponses];
9121
+
9122
+ export type DecideWorkflowConversationData = {
9123
+ body: WorkflowConversationDecisionInput;
9124
+ path: {
9125
+ conversationId: string;
9126
+ };
9127
+ query?: never;
9128
+ url: '/workflow/conversations/{conversationId}/decide';
9129
+ };
9130
+
9131
+ export type DecideWorkflowConversationErrors = {
9132
+ /**
9133
+ * Bad request - Invalid parameters or malformed JSON
9134
+ */
9135
+ 400: {
9136
+ message: string;
9137
+ issues?: string;
9138
+ };
9139
+ /**
9140
+ * Unauthorized
9141
+ */
9142
+ 401: ErrorResponse;
9143
+ /**
9144
+ * Forbidden
9145
+ */
9146
+ 403: ErrorResponse;
9147
+ /**
9148
+ * Not Found
9149
+ */
9150
+ 404: ErrorResponse;
9151
+ /**
9152
+ * Conflict
9153
+ */
9154
+ 409: ErrorResponse;
9155
+ /**
9156
+ * Internal server error
9157
+ */
9158
+ 500: ErrorResponse;
9159
+ /**
9160
+ * Service Unavailable
9161
+ */
9162
+ 503: ErrorResponse;
9163
+ };
9164
+
9165
+ export type DecideWorkflowConversationError = DecideWorkflowConversationErrors[keyof DecideWorkflowConversationErrors];
9166
+
9167
+ export type DecideWorkflowConversationResponses = {
9168
+ /**
9169
+ * One reviewer entry's own human decision and the findings it publishes
9170
+ */
9171
+ 200: WorkflowConversationOk;
9172
+ };
9173
+
9174
+ export type DecideWorkflowConversationResponse = DecideWorkflowConversationResponses[keyof DecideWorkflowConversationResponses];
9175
+
9176
+ export type StopWorkflowConversationTurnData = {
9177
+ body: WorkflowTurnActionInput;
9178
+ path: {
9179
+ turnId: string;
9180
+ };
9181
+ query?: never;
9182
+ url: '/workflow/conversation-turns/{turnId}/stop';
9183
+ };
9184
+
9185
+ export type StopWorkflowConversationTurnErrors = {
9186
+ /**
9187
+ * Bad request - Invalid parameters or malformed JSON
9188
+ */
9189
+ 400: {
9190
+ message: string;
9191
+ issues?: string;
9192
+ };
9193
+ /**
9194
+ * Unauthorized
9195
+ */
9196
+ 401: ErrorResponse;
9197
+ /**
9198
+ * Forbidden
9199
+ */
9200
+ 403: ErrorResponse;
9201
+ /**
9202
+ * Not Found
9203
+ */
9204
+ 404: ErrorResponse;
9205
+ /**
9206
+ * Conflict
9207
+ */
9208
+ 409: ErrorResponse;
9209
+ /**
9210
+ * Internal server error
9211
+ */
9212
+ 500: ErrorResponse;
9213
+ /**
9214
+ * Service Unavailable
9215
+ */
9216
+ 503: ErrorResponse;
9217
+ };
9218
+
9219
+ export type StopWorkflowConversationTurnError = StopWorkflowConversationTurnErrors[keyof StopWorkflowConversationTurnErrors];
9220
+
9221
+ export type StopWorkflowConversationTurnResponses = {
9222
+ /**
9223
+ * Cancels a queued turn, or asks the worker holding an accepted one to stop; advisory until confirmed
9224
+ */
9225
+ 200: WorkflowConversationActionResult;
9226
+ };
9227
+
9228
+ export type StopWorkflowConversationTurnResponse = StopWorkflowConversationTurnResponses[keyof StopWorkflowConversationTurnResponses];
9229
+
9230
+ export type RetryWorkflowConversationTurnData = {
9231
+ body: WorkflowTurnActionInput;
9232
+ path: {
9233
+ turnId: string;
9234
+ };
9235
+ query?: never;
9236
+ url: '/workflow/conversation-turns/{turnId}/retry';
9237
+ };
9238
+
9239
+ export type RetryWorkflowConversationTurnErrors = {
9240
+ /**
9241
+ * Bad request - Invalid parameters or malformed JSON
9242
+ */
9243
+ 400: {
9244
+ message: string;
9245
+ issues?: string;
9246
+ };
9247
+ /**
9248
+ * Unauthorized
9249
+ */
9250
+ 401: ErrorResponse;
9251
+ /**
9252
+ * Forbidden
9253
+ */
9254
+ 403: ErrorResponse;
9255
+ /**
9256
+ * Not Found
9257
+ */
9258
+ 404: ErrorResponse;
9259
+ /**
9260
+ * Conflict
9261
+ */
9262
+ 409: ErrorResponse;
9263
+ /**
9264
+ * Internal server error
9265
+ */
9266
+ 500: ErrorResponse;
9267
+ /**
9268
+ * Service Unavailable
9269
+ */
9270
+ 503: ErrorResponse;
9271
+ };
9272
+
9273
+ export type RetryWorkflowConversationTurnError = RetryWorkflowConversationTurnErrors[keyof RetryWorkflowConversationTurnErrors];
9274
+
9275
+ export type RetryWorkflowConversationTurnResponses = {
9276
+ /**
9277
+ * Runs a settled turn again under a new attempt
9278
+ */
9279
+ 200: WorkflowConversationActionResult;
9280
+ };
9281
+
9282
+ export type RetryWorkflowConversationTurnResponse = RetryWorkflowConversationTurnResponses[keyof RetryWorkflowConversationTurnResponses];
9283
+
9284
+ export type ListWorkflowQueuedTurnsData = {
9285
+ body?: never;
9286
+ path: {
9287
+ projectId: string;
9288
+ };
9289
+ query?: never;
9290
+ url: '/workflow/projects/{projectId}/conversation-turns';
9291
+ };
9292
+
9293
+ export type ListWorkflowQueuedTurnsErrors = {
9294
+ /**
9295
+ * Bad request - Invalid parameters or malformed JSON
9296
+ */
9297
+ 400: {
9298
+ message: string;
9299
+ issues?: string;
9300
+ };
9301
+ /**
9302
+ * Unauthorized
9303
+ */
9304
+ 401: ErrorResponse;
9305
+ /**
9306
+ * Forbidden
9307
+ */
9308
+ 403: ErrorResponse;
9309
+ /**
9310
+ * Not Found
9311
+ */
9312
+ 404: ErrorResponse;
9313
+ /**
9314
+ * Conflict
9315
+ */
9316
+ 409: ErrorResponse;
9317
+ /**
9318
+ * Internal server error
9319
+ */
9320
+ 500: ErrorResponse;
9321
+ /**
9322
+ * Service Unavailable
9323
+ */
9324
+ 503: ErrorResponse;
9325
+ };
9326
+
9327
+ export type ListWorkflowQueuedTurnsError = ListWorkflowQueuedTurnsErrors[keyof ListWorkflowQueuedTurnsErrors];
9328
+
9329
+ export type ListWorkflowQueuedTurnsResponses = {
9330
+ /**
9331
+ * Queue metadata for a project's claimable turns; carries no transcript
9332
+ */
9333
+ 200: WorkflowTurnOfferList;
9334
+ };
9335
+
9336
+ export type ListWorkflowQueuedTurnsResponse = ListWorkflowQueuedTurnsResponses[keyof ListWorkflowQueuedTurnsResponses];
9337
+
9338
+ export type AnnounceWorkflowWorkerSessionData = {
9339
+ body: WorkflowWorkerSession;
9340
+ path: {
9341
+ projectId: string;
9342
+ };
9343
+ query?: never;
9344
+ url: '/workflow/projects/{projectId}/worker-sessions';
9345
+ };
9346
+
9347
+ export type AnnounceWorkflowWorkerSessionErrors = {
9348
+ /**
9349
+ * Bad request - Invalid parameters or malformed JSON
9350
+ */
9351
+ 400: {
9352
+ message: string;
9353
+ issues?: string;
9354
+ };
9355
+ /**
9356
+ * Unauthorized
9357
+ */
9358
+ 401: ErrorResponse;
9359
+ /**
9360
+ * Forbidden
9361
+ */
9362
+ 403: ErrorResponse;
9363
+ /**
9364
+ * Not Found
9365
+ */
9366
+ 404: ErrorResponse;
9367
+ /**
9368
+ * Conflict
9369
+ */
9370
+ 409: ErrorResponse;
9371
+ /**
9372
+ * Internal server error
9373
+ */
9374
+ 500: ErrorResponse;
9375
+ /**
9376
+ * Service Unavailable
9377
+ */
9378
+ 503: ErrorResponse;
9379
+ };
9380
+
9381
+ export type AnnounceWorkflowWorkerSessionError = AnnounceWorkflowWorkerSessionErrors[keyof AnnounceWorkflowWorkerSessionErrors];
9382
+
9383
+ export type AnnounceWorkflowWorkerSessionResponses = {
9384
+ /**
9385
+ * Declares this worker as the project's current one and settles the turns its predecessor left behind
9386
+ */
9387
+ 200: WorkflowWorkerSessionResult;
9388
+ };
9389
+
9390
+ export type AnnounceWorkflowWorkerSessionResponse = AnnounceWorkflowWorkerSessionResponses[keyof AnnounceWorkflowWorkerSessionResponses];
9391
+
9392
+ export type AcceptWorkflowConversationTurnData = {
9393
+ body: WorkflowTurnAcceptInput;
9394
+ path: {
9395
+ turnId: string;
9396
+ };
9397
+ query?: never;
9398
+ url: '/workflow/conversation-turns/{turnId}/accept';
9399
+ };
9400
+
9401
+ export type AcceptWorkflowConversationTurnErrors = {
9402
+ /**
9403
+ * Bad request - Invalid parameters or malformed JSON
9404
+ */
9405
+ 400: {
9406
+ message: string;
9407
+ issues?: string;
9408
+ };
9409
+ /**
9410
+ * Unauthorized
9411
+ */
9412
+ 401: ErrorResponse;
9413
+ /**
9414
+ * Forbidden
9415
+ */
9416
+ 403: ErrorResponse;
9417
+ /**
9418
+ * Not Found
9419
+ */
9420
+ 404: ErrorResponse;
9421
+ /**
9422
+ * Conflict
9423
+ */
9424
+ 409: ErrorResponse;
9425
+ /**
9426
+ * Internal server error
9427
+ */
9428
+ 500: ErrorResponse;
9429
+ /**
9430
+ * Service Unavailable
9431
+ */
9432
+ 503: ErrorResponse;
9433
+ };
9434
+
9435
+ export type AcceptWorkflowConversationTurnError = AcceptWorkflowConversationTurnErrors[keyof AcceptWorkflowConversationTurnErrors];
9436
+
9437
+ export type AcceptWorkflowConversationTurnResponses = {
9438
+ /**
9439
+ * Claims this conversation's next queued turn and returns its lease
9440
+ */
9441
+ 200: WorkflowTurnAcceptance;
9442
+ };
9443
+
9444
+ export type AcceptWorkflowConversationTurnResponse = AcceptWorkflowConversationTurnResponses[keyof AcceptWorkflowConversationTurnResponses];
9445
+
9446
+ export type ReportWorkflowConversationTurnResultData = {
9447
+ body: WorkflowTurnResultInput;
9448
+ path: {
9449
+ turnId: string;
9450
+ };
9451
+ query?: never;
9452
+ url: '/workflow/conversation-turns/{turnId}/result';
9453
+ };
9454
+
9455
+ export type ReportWorkflowConversationTurnResultErrors = {
9456
+ /**
9457
+ * Bad request - Invalid parameters or malformed JSON
9458
+ */
9459
+ 400: {
9460
+ message: string;
9461
+ issues?: string;
9462
+ };
9463
+ /**
9464
+ * Unauthorized
9465
+ */
9466
+ 401: ErrorResponse;
9467
+ /**
9468
+ * Forbidden
9469
+ */
9470
+ 403: ErrorResponse;
9471
+ /**
9472
+ * Not Found
9473
+ */
9474
+ 404: ErrorResponse;
9475
+ /**
9476
+ * Conflict
9477
+ */
9478
+ 409: ErrorResponse;
9479
+ /**
9480
+ * Internal server error
9481
+ */
9482
+ 500: ErrorResponse;
9483
+ /**
9484
+ * Service Unavailable
9485
+ */
9486
+ 503: ErrorResponse;
9487
+ };
9488
+
9489
+ export type ReportWorkflowConversationTurnResultError = ReportWorkflowConversationTurnResultErrors[keyof ReportWorkflowConversationTurnResultErrors];
9490
+
9491
+ export type ReportWorkflowConversationTurnResultResponses = {
9492
+ /**
9493
+ * Records the outcome of the turn this worker holds
9494
+ */
9495
+ 200: WorkflowConversationActionResult;
9496
+ };
9497
+
9498
+ export type ReportWorkflowConversationTurnResultResponse = ReportWorkflowConversationTurnResultResponses[keyof ReportWorkflowConversationTurnResultResponses];
9499
+
9500
+ export type HeartbeatWorkflowConversationTurnData = {
9501
+ body: WorkflowTurnClaimInput;
9502
+ path: {
9503
+ turnId: string;
9504
+ };
9505
+ query?: never;
9506
+ url: '/workflow/conversation-turns/{turnId}/heartbeat';
9507
+ };
9508
+
9509
+ export type HeartbeatWorkflowConversationTurnErrors = {
9510
+ /**
9511
+ * Bad request - Invalid parameters or malformed JSON
9512
+ */
9513
+ 400: {
9514
+ message: string;
9515
+ issues?: string;
9516
+ };
9517
+ /**
9518
+ * Unauthorized
9519
+ */
9520
+ 401: ErrorResponse;
9521
+ /**
9522
+ * Forbidden
9523
+ */
9524
+ 403: ErrorResponse;
9525
+ /**
9526
+ * Not Found
9527
+ */
9528
+ 404: ErrorResponse;
9529
+ /**
9530
+ * Conflict
9531
+ */
9532
+ 409: ErrorResponse;
9533
+ /**
9534
+ * Internal server error
9535
+ */
9536
+ 500: ErrorResponse;
9537
+ /**
9538
+ * Service Unavailable
9539
+ */
9540
+ 503: ErrorResponse;
9541
+ };
9542
+
9543
+ export type HeartbeatWorkflowConversationTurnError = HeartbeatWorkflowConversationTurnErrors[keyof HeartbeatWorkflowConversationTurnErrors];
9544
+
9545
+ export type HeartbeatWorkflowConversationTurnResponses = {
9546
+ /**
9547
+ * Renews this turn's lease and reports whether a person asked it to stop
9548
+ */
9549
+ 200: WorkflowTurnHeartbeat;
9550
+ };
9551
+
9552
+ export type HeartbeatWorkflowConversationTurnResponse = HeartbeatWorkflowConversationTurnResponses[keyof HeartbeatWorkflowConversationTurnResponses];
9553
+
9554
+ export type AcknowledgeWorkflowConversationTurnStoppedData = {
9555
+ body: WorkflowTurnClaimInput;
9556
+ path: {
9557
+ turnId: string;
9558
+ };
9559
+ query?: never;
9560
+ url: '/workflow/conversation-turns/{turnId}/stopped';
9561
+ };
9562
+
9563
+ export type AcknowledgeWorkflowConversationTurnStoppedErrors = {
9564
+ /**
9565
+ * Bad request - Invalid parameters or malformed JSON
9566
+ */
9567
+ 400: {
9568
+ message: string;
9569
+ issues?: string;
9570
+ };
9571
+ /**
9572
+ * Unauthorized
9573
+ */
9574
+ 401: ErrorResponse;
9575
+ /**
9576
+ * Forbidden
9577
+ */
9578
+ 403: ErrorResponse;
9579
+ /**
9580
+ * Not Found
9581
+ */
9582
+ 404: ErrorResponse;
9583
+ /**
9584
+ * Conflict
9585
+ */
9586
+ 409: ErrorResponse;
9587
+ /**
9588
+ * Internal server error
9589
+ */
9590
+ 500: ErrorResponse;
9591
+ /**
9592
+ * Service Unavailable
9593
+ */
9594
+ 503: ErrorResponse;
9595
+ };
9596
+
9597
+ export type AcknowledgeWorkflowConversationTurnStoppedError = AcknowledgeWorkflowConversationTurnStoppedErrors[keyof AcknowledgeWorkflowConversationTurnStoppedErrors];
9598
+
9599
+ export type AcknowledgeWorkflowConversationTurnStoppedResponses = {
9600
+ /**
9601
+ * The worker's confirmation that it stopped, which is what makes a retry safe
9602
+ */
9603
+ 200: WorkflowConversationActionResult;
9604
+ };
9605
+
9606
+ export type AcknowledgeWorkflowConversationTurnStoppedResponse = AcknowledgeWorkflowConversationTurnStoppedResponses[keyof AcknowledgeWorkflowConversationTurnStoppedResponses];
9607
+
9608
+ export type ListWorkflowRunsData = {
9609
+ body?: never;
9610
+ path: {
9611
+ projectId: string;
9612
+ };
9613
+ query?: never;
9614
+ url: '/workflow/projects/{projectId}/runs';
9615
+ };
9616
+
9617
+ export type ListWorkflowRunsErrors = {
9618
+ /**
9619
+ * Bad request - Invalid parameters or malformed JSON
9620
+ */
9621
+ 400: {
9622
+ message: string;
9623
+ issues?: string;
9624
+ };
9625
+ /**
9626
+ * Unauthorized
9627
+ */
9628
+ 401: ErrorResponse;
9629
+ /**
9630
+ * Forbidden
9631
+ */
9632
+ 403: ErrorResponse;
9633
+ /**
9634
+ * Not Found
9635
+ */
9636
+ 404: ErrorResponse;
9637
+ /**
9638
+ * Conflict
9639
+ */
9640
+ 409: ErrorResponse;
9641
+ /**
9642
+ * Internal server error
9643
+ */
9644
+ 500: ErrorResponse;
9645
+ /**
9646
+ * Service Unavailable
9647
+ */
9648
+ 503: ErrorResponse;
9649
+ };
9650
+
9651
+ export type ListWorkflowRunsError = ListWorkflowRunsErrors[keyof ListWorkflowRunsErrors];
9652
+
9653
+ export type ListWorkflowRunsResponses = {
9654
+ /**
9655
+ * Lists a project's workflow runs, most recent first
9656
+ */
9657
+ 200: {
9658
+ runs: Array<WorkflowRun>;
9659
+ };
9660
+ };
9661
+
9662
+ export type ListWorkflowRunsResponse = ListWorkflowRunsResponses[keyof ListWorkflowRunsResponses];
9663
+
9664
+ export type StartWorkflowRunData = {
9665
+ body: StartWorkflowRunInput;
9666
+ path: {
9667
+ projectId: string;
9668
+ };
9669
+ query?: never;
9670
+ url: '/workflow/projects/{projectId}/runs';
9671
+ };
9672
+
9673
+ export type StartWorkflowRunErrors = {
9674
+ /**
9675
+ * Bad request - Invalid parameters or malformed JSON
9676
+ */
9677
+ 400: {
9678
+ message: string;
9679
+ issues?: string;
9680
+ };
9681
+ /**
9682
+ * Unauthorized
9683
+ */
9684
+ 401: ErrorResponse;
9685
+ /**
9686
+ * Forbidden
9687
+ */
9688
+ 403: ErrorResponse;
9689
+ /**
9690
+ * Not Found
9691
+ */
9692
+ 404: ErrorResponse;
9693
+ /**
9694
+ * Conflict
9695
+ */
9696
+ 409: ErrorResponse;
9697
+ /**
9698
+ * Internal server error
9699
+ */
9700
+ 500: ErrorResponse;
9701
+ /**
9702
+ * Service Unavailable
9703
+ */
9704
+ 503: ErrorResponse;
9705
+ };
9706
+
9707
+ export type StartWorkflowRunError = StartWorkflowRunErrors[keyof StartWorkflowRunErrors];
9708
+
9709
+ export type StartWorkflowRunResponses = {
9710
+ /**
9711
+ * Starts a run from a working-tree workflow document
9712
+ */
9713
+ 200: {
9714
+ run: WorkflowRun;
9715
+ };
9716
+ };
9717
+
9718
+ export type StartWorkflowRunResponse = StartWorkflowRunResponses[keyof StartWorkflowRunResponses];
9719
+
9720
+ export type ListWorkflowOffersData = {
9721
+ body?: never;
9722
+ path: {
9723
+ projectId: string;
9724
+ };
9725
+ query?: never;
9726
+ url: '/workflow/projects/{projectId}/offers';
9727
+ };
9728
+
9729
+ export type ListWorkflowOffersErrors = {
9730
+ /**
9731
+ * Bad request - Invalid parameters or malformed JSON
9732
+ */
9733
+ 400: {
9734
+ message: string;
9735
+ issues?: string;
9736
+ };
9737
+ /**
9738
+ * Unauthorized
9739
+ */
9740
+ 401: ErrorResponse;
9741
+ /**
9742
+ * Forbidden
9743
+ */
9744
+ 403: ErrorResponse;
9745
+ /**
9746
+ * Not Found
9747
+ */
9748
+ 404: ErrorResponse;
9749
+ /**
9750
+ * Conflict
9751
+ */
9752
+ 409: ErrorResponse;
9753
+ /**
9754
+ * Internal server error
9755
+ */
9756
+ 500: ErrorResponse;
9757
+ /**
9758
+ * Service Unavailable
9759
+ */
9760
+ 503: ErrorResponse;
9761
+ };
9762
+
9763
+ export type ListWorkflowOffersError = ListWorkflowOffersErrors[keyof ListWorkflowOffersErrors];
9764
+
9765
+ export type ListWorkflowOffersResponses = {
9766
+ /**
9767
+ * Lists the nodes offered to a container polling this project
9768
+ */
9769
+ 200: {
9770
+ offers: Array<WorkflowDispatchPayload>;
9771
+ };
9772
+ };
9773
+
9774
+ export type ListWorkflowOffersResponse = ListWorkflowOffersResponses[keyof ListWorkflowOffersResponses];
9775
+
9776
+ export type GetWorkflowRunData = {
9777
+ body?: never;
9778
+ path: {
9779
+ runId: string;
9780
+ };
9781
+ query?: never;
9782
+ url: '/workflow/runs/{runId}';
9783
+ };
9784
+
9785
+ export type GetWorkflowRunErrors = {
9786
+ /**
9787
+ * Bad request - Invalid parameters or malformed JSON
9788
+ */
9789
+ 400: {
9790
+ message: string;
9791
+ issues?: string;
9792
+ };
9793
+ /**
9794
+ * Unauthorized
9795
+ */
9796
+ 401: ErrorResponse;
9797
+ /**
9798
+ * Forbidden
9799
+ */
9800
+ 403: ErrorResponse;
9801
+ /**
9802
+ * Not Found
9803
+ */
9804
+ 404: ErrorResponse;
9805
+ /**
9806
+ * Conflict
9807
+ */
9808
+ 409: ErrorResponse;
9809
+ /**
9810
+ * Internal server error
9811
+ */
9812
+ 500: ErrorResponse;
9813
+ /**
9814
+ * Service Unavailable
9815
+ */
9816
+ 503: ErrorResponse;
9817
+ };
9818
+
9819
+ export type GetWorkflowRunError = GetWorkflowRunErrors[keyof GetWorkflowRunErrors];
9820
+
9821
+ export type GetWorkflowRunResponses = {
9822
+ /**
9823
+ * Returns a run's full detail: the run row, its nodes, events, review decisions and projected graph
9824
+ */
9825
+ 200: {
9826
+ run: WorkflowRun;
9827
+ nodes: Array<WorkflowNodeRun>;
9828
+ events: Array<WorkflowRunEvent>;
9829
+ decisions: Array<WorkflowReviewDecision>;
9830
+ graph: WorkflowRunGraph;
9831
+ };
9832
+ };
9833
+
9834
+ export type GetWorkflowRunResponse = GetWorkflowRunResponses[keyof GetWorkflowRunResponses];
9835
+
9836
+ export type AcceptWorkflowNodeData = {
9837
+ body: AcceptWorkflowNodeInput;
9838
+ path: {
9839
+ runId: string;
9840
+ nodeKey: string;
9841
+ };
9842
+ query?: never;
9843
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/accept';
9844
+ };
9845
+
9846
+ export type AcceptWorkflowNodeErrors = {
9847
+ /**
9848
+ * Bad request - Invalid parameters or malformed JSON
9849
+ */
9850
+ 400: {
9851
+ message: string;
9852
+ issues?: string;
9853
+ };
9854
+ /**
9855
+ * Unauthorized
9856
+ */
9857
+ 401: ErrorResponse;
9858
+ /**
9859
+ * Forbidden
9860
+ */
9861
+ 403: ErrorResponse;
9862
+ /**
9863
+ * Not Found
9864
+ */
9865
+ 404: ErrorResponse;
9866
+ /**
9867
+ * Conflict
9868
+ */
9869
+ 409: ErrorResponse;
9870
+ /**
9871
+ * Internal server error
9872
+ */
9873
+ 500: ErrorResponse;
9874
+ /**
9875
+ * Service Unavailable
9876
+ */
9877
+ 503: ErrorResponse;
9878
+ };
9879
+
9880
+ export type AcceptWorkflowNodeError = AcceptWorkflowNodeErrors[keyof AcceptWorkflowNodeErrors];
9881
+
9882
+ export type AcceptWorkflowNodeResponses = {
9883
+ /**
9884
+ * Accepts an offered node and returns its authoritative execution payload
9885
+ */
9886
+ 200: AcceptedWorkflowNode;
9887
+ };
9888
+
9889
+ export type AcceptWorkflowNodeResponse = AcceptWorkflowNodeResponses[keyof AcceptWorkflowNodeResponses];
9890
+
9891
+ export type SetWorkflowHarnessData = {
9892
+ body: SetWorkflowHarnessInput;
9893
+ path: {
9894
+ runId: string;
9895
+ };
9896
+ query?: never;
9897
+ url: '/workflow/runs/{runId}/harness';
9898
+ };
9899
+
9900
+ export type SetWorkflowHarnessErrors = {
9901
+ /**
9902
+ * Bad request - Invalid parameters or malformed JSON
9903
+ */
9904
+ 400: {
9905
+ message: string;
9906
+ issues?: string;
9907
+ };
9908
+ /**
9909
+ * Unauthorized
9910
+ */
9911
+ 401: ErrorResponse;
9912
+ /**
9913
+ * Forbidden
9914
+ */
9915
+ 403: ErrorResponse;
9916
+ /**
9917
+ * Not Found
9918
+ */
9919
+ 404: ErrorResponse;
9920
+ /**
9921
+ * Conflict
9922
+ */
9923
+ 409: ErrorResponse;
9924
+ /**
9925
+ * Internal server error
9926
+ */
9927
+ 500: ErrorResponse;
9928
+ /**
9929
+ * Service Unavailable
9930
+ */
9931
+ 503: ErrorResponse;
9932
+ };
9933
+
9934
+ export type SetWorkflowHarnessError = SetWorkflowHarnessErrors[keyof SetWorkflowHarnessErrors];
9935
+
9936
+ export type SetWorkflowHarnessResponses = {
9937
+ /**
9938
+ * Changes a live run's selected harness
9939
+ */
9940
+ 200: {
9941
+ applied: boolean;
9942
+ };
9943
+ };
9944
+
9945
+ export type SetWorkflowHarnessResponse = SetWorkflowHarnessResponses[keyof SetWorkflowHarnessResponses];
9946
+
9947
+ export type ReportWorkflowNodeResultData = {
9948
+ body: WorkflowNodeResultInput;
9949
+ path: {
9950
+ runId: string;
9951
+ nodeKey: string;
9952
+ };
9953
+ query?: never;
9954
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/result';
9955
+ };
9956
+
9957
+ export type ReportWorkflowNodeResultErrors = {
9958
+ /**
9959
+ * Bad request - Invalid parameters or malformed JSON
9960
+ */
9961
+ 400: {
9962
+ message: string;
9963
+ issues?: string;
9964
+ };
9965
+ /**
9966
+ * Unauthorized
9967
+ */
9968
+ 401: ErrorResponse;
9969
+ /**
9970
+ * Forbidden
9971
+ */
9972
+ 403: ErrorResponse;
9973
+ /**
9974
+ * Not Found
9975
+ */
9976
+ 404: ErrorResponse;
9977
+ /**
9978
+ * Conflict
9979
+ */
9980
+ 409: ErrorResponse;
9981
+ /**
9982
+ * Internal server error
9983
+ */
9984
+ 500: ErrorResponse;
9985
+ /**
9986
+ * Service Unavailable
9987
+ */
9988
+ 503: ErrorResponse;
9989
+ };
9990
+
9991
+ export type ReportWorkflowNodeResultError = ReportWorkflowNodeResultErrors[keyof ReportWorkflowNodeResultErrors];
9992
+
9993
+ export type ReportWorkflowNodeResultResponses = {
9994
+ /**
9995
+ * Records a work node's terminal result
9996
+ */
9997
+ 200: {
9998
+ applied: boolean;
9999
+ };
10000
+ };
10001
+
10002
+ export type ReportWorkflowNodeResultResponse = ReportWorkflowNodeResultResponses[keyof ReportWorkflowNodeResultResponses];
10003
+
10004
+ export type ReportWorkflowReviewData = {
10005
+ body: WorkflowReviewReportInput;
10006
+ path: {
10007
+ runId: string;
10008
+ nodeKey: string;
10009
+ };
10010
+ query?: never;
10011
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/review';
10012
+ };
10013
+
10014
+ export type ReportWorkflowReviewErrors = {
10015
+ /**
10016
+ * Bad request - Invalid parameters or malformed JSON
10017
+ */
10018
+ 400: {
10019
+ message: string;
10020
+ issues?: string;
10021
+ };
10022
+ /**
10023
+ * Unauthorized
10024
+ */
10025
+ 401: ErrorResponse;
10026
+ /**
10027
+ * Forbidden
10028
+ */
10029
+ 403: ErrorResponse;
10030
+ /**
10031
+ * Not Found
10032
+ */
10033
+ 404: ErrorResponse;
10034
+ /**
10035
+ * Conflict
10036
+ */
10037
+ 409: ErrorResponse;
10038
+ /**
10039
+ * Internal server error
10040
+ */
10041
+ 500: ErrorResponse;
10042
+ /**
10043
+ * Service Unavailable
10044
+ */
10045
+ 503: ErrorResponse;
10046
+ };
10047
+
10048
+ export type ReportWorkflowReviewError = ReportWorkflowReviewErrors[keyof ReportWorkflowReviewErrors];
10049
+
10050
+ export type ReportWorkflowReviewResponses = {
10051
+ /**
10052
+ * Records a reviewer's approval or objection
10053
+ */
10054
+ 200: {
10055
+ applied: boolean;
10056
+ };
10057
+ };
10058
+
10059
+ export type ReportWorkflowReviewResponse = ReportWorkflowReviewResponses[keyof ReportWorkflowReviewResponses];
10060
+
10061
+ export type DecideWorkflowReviewData = {
10062
+ body: WorkflowHumanDecisionInput;
10063
+ path: {
10064
+ runId: string;
10065
+ nodeKey: string;
10066
+ };
10067
+ query?: never;
10068
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/decide';
10069
+ };
10070
+
10071
+ export type DecideWorkflowReviewErrors = {
10072
+ /**
10073
+ * Bad request - Invalid parameters or malformed JSON
10074
+ */
10075
+ 400: {
10076
+ message: string;
10077
+ issues?: string;
10078
+ };
10079
+ /**
10080
+ * Unauthorized
10081
+ */
10082
+ 401: ErrorResponse;
10083
+ /**
10084
+ * Forbidden
10085
+ */
10086
+ 403: ErrorResponse;
10087
+ /**
10088
+ * Not Found
10089
+ */
10090
+ 404: ErrorResponse;
10091
+ /**
10092
+ * Conflict
10093
+ */
10094
+ 409: ErrorResponse;
10095
+ /**
10096
+ * Internal server error
10097
+ */
10098
+ 500: ErrorResponse;
10099
+ /**
10100
+ * Service Unavailable
10101
+ */
10102
+ 503: ErrorResponse;
10103
+ };
10104
+
10105
+ export type DecideWorkflowReviewError = DecideWorkflowReviewErrors[keyof DecideWorkflowReviewErrors];
10106
+
10107
+ export type DecideWorkflowReviewResponses = {
10108
+ /**
10109
+ * A person's approve/reject decision on an objection parked for them
10110
+ */
10111
+ 200: {
10112
+ ok: true;
10113
+ };
10114
+ };
10115
+
10116
+ export type DecideWorkflowReviewResponse = DecideWorkflowReviewResponses[keyof DecideWorkflowReviewResponses];
10117
+
10118
+ export type RetryWorkflowNodeData = {
10119
+ body?: never;
10120
+ path: {
10121
+ runId: string;
10122
+ nodeKey: string;
10123
+ };
10124
+ query?: never;
10125
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/retry';
10126
+ };
10127
+
10128
+ export type RetryWorkflowNodeErrors = {
10129
+ /**
10130
+ * Bad request - Invalid parameters or malformed JSON
10131
+ */
10132
+ 400: {
10133
+ message: string;
10134
+ issues?: string;
10135
+ };
10136
+ /**
10137
+ * Unauthorized
10138
+ */
10139
+ 401: ErrorResponse;
10140
+ /**
10141
+ * Forbidden
10142
+ */
10143
+ 403: ErrorResponse;
10144
+ /**
10145
+ * Not Found
10146
+ */
10147
+ 404: ErrorResponse;
10148
+ /**
10149
+ * Conflict
10150
+ */
10151
+ 409: ErrorResponse;
10152
+ /**
10153
+ * Internal server error
10154
+ */
10155
+ 500: ErrorResponse;
10156
+ /**
10157
+ * Service Unavailable
10158
+ */
10159
+ 503: ErrorResponse;
10160
+ };
10161
+
10162
+ export type RetryWorkflowNodeError = RetryWorkflowNodeErrors[keyof RetryWorkflowNodeErrors];
10163
+
10164
+ export type RetryWorkflowNodeResponses = {
10165
+ /**
10166
+ * Puts an errored node back in play
10167
+ */
10168
+ 200: {
10169
+ applied: boolean;
10170
+ };
10171
+ };
10172
+
10173
+ export type RetryWorkflowNodeResponse = RetryWorkflowNodeResponses[keyof RetryWorkflowNodeResponses];
10174
+
10175
+ export type CancelWorkflowRunData = {
10176
+ body?: never;
10177
+ path: {
10178
+ runId: string;
10179
+ };
10180
+ query?: never;
10181
+ url: '/workflow/runs/{runId}/cancel';
10182
+ };
10183
+
10184
+ export type CancelWorkflowRunErrors = {
10185
+ /**
10186
+ * Bad request - Invalid parameters or malformed JSON
10187
+ */
10188
+ 400: {
10189
+ message: string;
10190
+ issues?: string;
10191
+ };
10192
+ /**
10193
+ * Unauthorized
10194
+ */
10195
+ 401: ErrorResponse;
10196
+ /**
10197
+ * Forbidden
10198
+ */
10199
+ 403: ErrorResponse;
10200
+ /**
10201
+ * Not Found
10202
+ */
10203
+ 404: ErrorResponse;
10204
+ /**
10205
+ * Conflict
10206
+ */
10207
+ 409: ErrorResponse;
10208
+ /**
10209
+ * Internal server error
10210
+ */
10211
+ 500: ErrorResponse;
10212
+ /**
10213
+ * Service Unavailable
10214
+ */
10215
+ 503: ErrorResponse;
10216
+ };
10217
+
10218
+ export type CancelWorkflowRunError = CancelWorkflowRunErrors[keyof CancelWorkflowRunErrors];
10219
+
10220
+ export type CancelWorkflowRunResponses = {
10221
+ /**
10222
+ * Cancels a live run
10223
+ */
10224
+ 200: {
10225
+ applied: boolean;
10226
+ };
10227
+ };
10228
+
10229
+ export type CancelWorkflowRunResponse = CancelWorkflowRunResponses[keyof CancelWorkflowRunResponses];
10230
+
8269
10231
  export type GetFeatureTogglesData = {
8270
10232
  body?: never;
8271
10233
  path?: never;