@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.
@@ -176,6 +176,9 @@ export type PendingGeneration = {
176
176
  messageId: string;
177
177
  model?: string;
178
178
  enabledIntegrationNames?: Array<string>;
179
+ harness?: string;
180
+ harnessModel?: string;
181
+ agentEffort?: string;
179
182
  };
180
183
  export type UserDisplayInfoResponse = {
181
184
  dazlId: string;
@@ -483,6 +486,484 @@ export type PurgeUserAccountInput = {
483
486
  */
484
487
  dryRun?: boolean;
485
488
  };
489
+ export type WorkflowInteractiveCapabilities = {
490
+ interactiveExecutionAvailable: boolean;
491
+ };
492
+ export type WorkflowConversationList = {
493
+ conversations: Array<WorkflowConversationSummary>;
494
+ };
495
+ export type WorkflowConversationSummary = {
496
+ id: string;
497
+ runId: string;
498
+ nodeKey: string;
499
+ chatId: string;
500
+ agentName: string;
501
+ role: 'work' | 'workspace' | 'personal';
502
+ ownerDazlUserId: string;
503
+ phaseVersion: number;
504
+ attempt: number;
505
+ draftRevision: number;
506
+ state: 'queued' | 'working' | 'waiting' | 'failed' | 'recovery-required' | 'completed' | 'superseded';
507
+ activeTurn: WorkflowTurnActiveRef;
508
+ canRead: boolean;
509
+ canPost: boolean;
510
+ canDecide: boolean;
511
+ canComplete: boolean;
512
+ };
513
+ export type WorkflowTurnActiveRef = {
514
+ turnId: string;
515
+ turnAttempt: number;
516
+ status: 'queued' | 'accepted' | 'succeeded' | 'failed' | 'cancelled' | 'recovery-required';
517
+ } | null;
518
+ export type WorkflowConversationForChat = {
519
+ conversation: WorkflowConversationSummary & ({
520
+ [key: string]: unknown;
521
+ } | null);
522
+ };
523
+ export type WorkflowConversationDetail = {
524
+ id: string;
525
+ runId: string;
526
+ nodeKey: string;
527
+ chatId: string;
528
+ agentName: string;
529
+ role: 'work' | 'workspace' | 'personal';
530
+ ownerDazlUserId: string;
531
+ phaseVersion: number;
532
+ attempt: number;
533
+ draftRevision: number;
534
+ state: 'queued' | 'working' | 'waiting' | 'failed' | 'recovery-required' | 'completed' | 'superseded';
535
+ activeTurn: WorkflowTurnActiveRef;
536
+ canRead: boolean;
537
+ canPost: boolean;
538
+ canDecide: boolean;
539
+ canComplete: boolean;
540
+ messages: Array<WorkflowConversationMessage>;
541
+ hasMore: boolean;
542
+ oldestSequence: string | null;
543
+ draft: {
544
+ text: string;
545
+ files?: Array<string>;
546
+ changes?: Array<{
547
+ dirName: string;
548
+ from: string;
549
+ to: string;
550
+ commits: number;
551
+ files: Array<string>;
552
+ }>;
553
+ } | WorkflowConversationReviewDraft | null;
554
+ draftValid: boolean;
555
+ error: string | null;
556
+ };
557
+ export type WorkflowConversationMessage = {
558
+ id: string;
559
+ sequence: string;
560
+ role: 'user' | 'assistant';
561
+ actorDazlUserId: string | null;
562
+ text: string;
563
+ createdAt: string;
564
+ };
565
+ export type WorkflowConversationReviewDraft = {
566
+ decision: 'approve' | 'object';
567
+ suggestions: Array<{
568
+ target: string;
569
+ suggestion: string;
570
+ rationale?: string;
571
+ }>;
572
+ };
573
+ export type WorkflowConversationPostedMessage = {
574
+ message: WorkflowConversationMessage;
575
+ turnId: string;
576
+ turnAttempt: number;
577
+ };
578
+ export type WorkflowConversationMessageInput = {
579
+ requestId: string;
580
+ text: string;
581
+ token: WorkflowConversationClaim;
582
+ };
583
+ export type WorkflowConversationClaim = {
584
+ phaseVersion: number;
585
+ attempt: number;
586
+ };
587
+ export type WorkflowConversationOk = {
588
+ ok: true;
589
+ };
590
+ export type WorkflowConversationCompleteInput = {
591
+ token: WorkflowConversationDraftClaim;
592
+ };
593
+ export type WorkflowConversationDraftClaim = {
594
+ phaseVersion: number;
595
+ attempt: number;
596
+ draftRevision: number;
597
+ };
598
+ export type WorkflowConversationDecisionInput = {
599
+ token: WorkflowConversationDraftClaim;
600
+ decision: 'approve' | 'reject';
601
+ comment?: string;
602
+ suggestions: Array<{
603
+ target: string;
604
+ suggestion: string;
605
+ rationale?: string;
606
+ }>;
607
+ };
608
+ export type WorkflowConversationActionResult = {
609
+ applied: boolean;
610
+ };
611
+ export type WorkflowTurnActionInput = {
612
+ token: WorkflowTurnActionClaim;
613
+ };
614
+ export type WorkflowTurnActionClaim = {
615
+ phaseVersion: number;
616
+ attempt: number;
617
+ turnId: string;
618
+ turnAttempt: number;
619
+ };
620
+ export type WorkflowTurnOfferList = {
621
+ turns: Array<WorkflowTurnOffer>;
622
+ };
623
+ export type WorkflowTurnOffer = {
624
+ runId: string;
625
+ projectId: string;
626
+ conversationId: string;
627
+ nodeKey: string;
628
+ role: 'work' | 'workspace' | 'personal';
629
+ turnId: string;
630
+ turnAttempt: number;
631
+ };
632
+ export type WorkflowWorkerSessionResult = {
633
+ reclaimed: number;
634
+ };
635
+ export type WorkflowWorkerSession = {
636
+ workerId: string;
637
+ };
638
+ export type WorkflowTurnAcceptance = {
639
+ accepted: false;
640
+ } | {
641
+ accepted: true;
642
+ token: WorkflowTurnClaim;
643
+ payload: WorkflowTurnPayload;
644
+ input: WorkflowTurnInput;
645
+ leaseExpiresAt: string;
646
+ heartbeatMs: number;
647
+ };
648
+ export type WorkflowTurnClaim = {
649
+ phaseVersion: number;
650
+ attempt: number;
651
+ turnId: string;
652
+ turnAttempt: number;
653
+ workerId: string;
654
+ };
655
+ export type WorkflowTurnPayload = {
656
+ conversation: {
657
+ id: string;
658
+ runId: string;
659
+ projectId: string;
660
+ nodeKey: string;
661
+ chatId: string;
662
+ };
663
+ agent: {
664
+ schemaVersion?: '1';
665
+ meta: {
666
+ name: string;
667
+ description?: string;
668
+ };
669
+ systemPrompt: string;
670
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
671
+ model?: string;
672
+ allowedMcpServers?: Array<string>;
673
+ rules?: Array<{
674
+ text: string;
675
+ owners?: Array<string>;
676
+ blocking?: boolean;
677
+ }>;
678
+ };
679
+ runInput: unknown;
680
+ upstream: Array<{
681
+ nodeKey: string;
682
+ title: string;
683
+ output: {
684
+ text: string;
685
+ files?: Array<string>;
686
+ changes?: Array<{
687
+ dirName: string;
688
+ from: string;
689
+ to: string;
690
+ commits: number;
691
+ files: Array<string>;
692
+ }>;
693
+ } | null;
694
+ }>;
695
+ history: Array<WorkflowConversationMessage>;
696
+ changeRequests: Array<WorkflowChangeRequest>;
697
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
698
+ model?: string;
699
+ prompt?: string;
700
+ role: 'work' | 'workspace' | 'personal';
701
+ };
702
+ export type WorkflowChangeRequest = {
703
+ reviewerKey: string;
704
+ agentName: string;
705
+ comment?: string;
706
+ findings: Array<{
707
+ target: string;
708
+ suggestion: string;
709
+ rationale?: string;
710
+ }>;
711
+ };
712
+ export type WorkflowTurnInput = {
713
+ kind: 'initial';
714
+ } | {
715
+ kind: 'message';
716
+ text: string;
717
+ messageId: string;
718
+ };
719
+ export type WorkflowTurnAcceptInput = {
720
+ workerId: string;
721
+ };
722
+ export type WorkflowTurnResultInput = {
723
+ token: WorkflowTurnClaim;
724
+ result: WorkflowTurnResult;
725
+ };
726
+ export type WorkflowTurnResult = {
727
+ status: 'succeeded' | 'failed' | 'cancelled';
728
+ assistantText: string;
729
+ output?: {
730
+ text: string;
731
+ files?: Array<string>;
732
+ changes?: Array<{
733
+ dirName: string;
734
+ from: string;
735
+ to: string;
736
+ commits: number;
737
+ files: Array<string>;
738
+ }>;
739
+ };
740
+ review?: WorkflowConversationReviewDraft;
741
+ draftValid: boolean;
742
+ error?: string;
743
+ execution?: WorkflowExecutionMetadata;
744
+ observedChanges?: Array<{
745
+ dirName: string;
746
+ from: string;
747
+ to: string;
748
+ commits: number;
749
+ files: Array<string>;
750
+ }>;
751
+ };
752
+ export type WorkflowExecutionMetadata = {
753
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
754
+ model?: string;
755
+ assistantMessageId?: string;
756
+ };
757
+ export type WorkflowTurnHeartbeat = {
758
+ ok: boolean;
759
+ cancelRequested: boolean;
760
+ leaseExpiresAt: string | null;
761
+ };
762
+ export type WorkflowTurnClaimInput = {
763
+ token: WorkflowTurnClaim;
764
+ };
765
+ export type WorkflowRun = {
766
+ id: string;
767
+ workspaceId: string;
768
+ projectId: string;
769
+ chatId: string;
770
+ startedByDazlUserId: string;
771
+ status: 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
772
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
773
+ model: string | null;
774
+ input?: unknown;
775
+ document?: unknown;
776
+ agents: {
777
+ [key: string]: unknown;
778
+ };
779
+ triggerId: string;
780
+ source: 'working-tree' | 'definition';
781
+ sourcePath: string | null;
782
+ phaseVersions: {
783
+ [key: string]: number;
784
+ };
785
+ reviewCycles: {
786
+ [key: string]: number;
787
+ };
788
+ startedAt: string;
789
+ finishedAt: string | null;
790
+ };
791
+ export type StartWorkflowRunInput = {
792
+ chatId: string;
793
+ triggerId: string;
794
+ source: 'working-tree';
795
+ sourcePath?: string;
796
+ harness?: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
797
+ model?: string;
798
+ input: unknown;
799
+ document: unknown;
800
+ agents: {
801
+ [key: string]: unknown;
802
+ };
803
+ };
804
+ export type WorkflowDispatchPayload = {
805
+ runId: string;
806
+ chatId: string;
807
+ projectId: string;
808
+ nodeKey: string;
809
+ kind: 'work' | 'reviewer';
810
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
811
+ model?: string;
812
+ token: WorkflowNodeToken;
813
+ title: string;
814
+ agentName: string;
815
+ agent: {
816
+ schemaVersion?: '1';
817
+ meta: {
818
+ name: string;
819
+ description?: string;
820
+ };
821
+ systemPrompt: string;
822
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
823
+ model?: string;
824
+ allowedMcpServers?: Array<string>;
825
+ rules?: Array<{
826
+ text: string;
827
+ owners?: Array<string>;
828
+ blocking?: boolean;
829
+ }>;
830
+ };
831
+ prompt?: string;
832
+ input?: unknown;
833
+ upstream: Array<{
834
+ nodeKey: string;
835
+ title: string;
836
+ output: {
837
+ text: string;
838
+ files?: Array<string>;
839
+ changes?: Array<{
840
+ dirName: string;
841
+ from: string;
842
+ to: string;
843
+ commits: number;
844
+ files: Array<string>;
845
+ }>;
846
+ } | null;
847
+ }>;
848
+ reviewNodeId?: string;
849
+ onBehalfOf?: string;
850
+ };
851
+ export type WorkflowNodeToken = {
852
+ phaseVersion: number;
853
+ attempt: number;
854
+ };
855
+ export type WorkflowNodeRun = {
856
+ id: string;
857
+ runId: string;
858
+ nodeKey: string;
859
+ status: 'pending' | 'running' | 'awaiting-callback' | 'paused-for-human' | 'success' | 'error' | 'skipped';
860
+ phaseVersion: number;
861
+ attempt: number;
862
+ output?: unknown;
863
+ error: string | null;
864
+ awaitingDazlUserIds: Array<string>;
865
+ escalationReason: string | null;
866
+ startedAt: string | null;
867
+ finishedAt: string | null;
868
+ };
869
+ export type WorkflowRunEvent = {
870
+ id: string;
871
+ runId: string;
872
+ nodeKey: string | null;
873
+ type: 'status-change' | 'human-decision' | 'dispatch' | 'callback' | 'error' | 'harness-selected';
874
+ message: string;
875
+ actorDazlUserId: string | null;
876
+ data?: unknown;
877
+ at: string;
878
+ sequence: string;
879
+ };
880
+ export type WorkflowReviewDecision = {
881
+ id: string;
882
+ runId: string;
883
+ nodeRunId: string;
884
+ reviewerKey: string;
885
+ agentName: string;
886
+ onBehalfOf: string | null;
887
+ reviewerDazlUserId: string | null;
888
+ target: string;
889
+ suggestion: string;
890
+ rationale: string | null;
891
+ disposition: 'pending' | 'approved' | 'rejected';
892
+ decidedByDazlUserId: string | null;
893
+ decidedAt: string | null;
894
+ phase: string;
895
+ phaseVersion: number;
896
+ };
897
+ export type WorkflowRunGraph = {
898
+ nodes: Array<{
899
+ key: string;
900
+ kind: 'trigger' | 'work' | 'review' | 'agentTask' | 'humanGate' | 'script';
901
+ dependsOn: Array<string>;
902
+ dependsOnReviewsOf?: string;
903
+ phase?: string;
904
+ agent?: string;
905
+ }>;
906
+ phases: Array<{
907
+ key: string;
908
+ gateKey: string;
909
+ opensAfter: Array<string>;
910
+ reopens: Array<string>;
911
+ reviewers: Array<{
912
+ key: string;
913
+ agent: string;
914
+ prompt?: string;
915
+ onBehalfOf?: string;
916
+ }>;
917
+ }>;
918
+ };
919
+ export type AcceptedWorkflowNode = {
920
+ accepted: false;
921
+ } | {
922
+ accepted: true;
923
+ payload: WorkflowDispatchPayload;
924
+ };
925
+ export type AcceptWorkflowNodeInput = {
926
+ token: WorkflowNodeToken;
927
+ };
928
+ export type SetWorkflowHarnessInput = {
929
+ harness: 'dazl' | 'claude' | 'codex' | 'grok' | 'opencode';
930
+ model?: string | null;
931
+ };
932
+ export type WorkflowNodeResultInput = {
933
+ token: WorkflowNodeToken;
934
+ output?: {
935
+ text: string;
936
+ files?: Array<string>;
937
+ changes?: Array<{
938
+ dirName: string;
939
+ from: string;
940
+ to: string;
941
+ commits: number;
942
+ files: Array<string>;
943
+ }>;
944
+ };
945
+ error?: string;
946
+ execution?: WorkflowExecutionMetadata;
947
+ };
948
+ export type WorkflowReviewReportInput = {
949
+ token: WorkflowNodeToken;
950
+ decision: 'approve' | 'object';
951
+ execution?: {
952
+ harness: 'dazl';
953
+ model?: string;
954
+ assistantMessageId?: string;
955
+ };
956
+ suggestions: Array<{
957
+ target: string;
958
+ suggestion: string;
959
+ rationale?: string;
960
+ }>;
961
+ };
962
+ export type WorkflowHumanDecisionInput = {
963
+ token: WorkflowNodeToken;
964
+ decision: 'approve' | 'reject';
965
+ comment?: string;
966
+ };
486
967
  export type FeatureToggle = {
487
968
  name: string;
488
969
  scope: 'RemoteAndEditor' | 'SiteAndEditor';
@@ -7631,6 +8112,1310 @@ export type GetUserActivePromotionsResponses = {
7631
8112
  };
7632
8113
  };
7633
8114
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
8115
+ export type GetWorkflowInteractiveCapabilitiesData = {
8116
+ body?: never;
8117
+ path?: never;
8118
+ query?: never;
8119
+ url: '/workflow/capabilities';
8120
+ };
8121
+ export type GetWorkflowInteractiveCapabilitiesErrors = {
8122
+ /**
8123
+ * Bad request - Invalid parameters or malformed JSON
8124
+ */
8125
+ 400: {
8126
+ message: string;
8127
+ issues?: string;
8128
+ };
8129
+ /**
8130
+ * Unauthorized
8131
+ */
8132
+ 401: ErrorResponse;
8133
+ /**
8134
+ * Forbidden
8135
+ */
8136
+ 403: ErrorResponse;
8137
+ /**
8138
+ * Not Found
8139
+ */
8140
+ 404: ErrorResponse;
8141
+ /**
8142
+ * Conflict
8143
+ */
8144
+ 409: ErrorResponse;
8145
+ /**
8146
+ * Internal server error
8147
+ */
8148
+ 500: ErrorResponse;
8149
+ /**
8150
+ * Service Unavailable
8151
+ */
8152
+ 503: ErrorResponse;
8153
+ };
8154
+ export type GetWorkflowInteractiveCapabilitiesError = GetWorkflowInteractiveCapabilitiesErrors[keyof GetWorkflowInteractiveCapabilitiesErrors];
8155
+ export type GetWorkflowInteractiveCapabilitiesResponses = {
8156
+ /**
8157
+ * Whether this backend can run interactive workflow steps
8158
+ */
8159
+ 200: WorkflowInteractiveCapabilities;
8160
+ };
8161
+ export type GetWorkflowInteractiveCapabilitiesResponse = GetWorkflowInteractiveCapabilitiesResponses[keyof GetWorkflowInteractiveCapabilitiesResponses];
8162
+ export type ListWorkflowConversationsData = {
8163
+ body?: never;
8164
+ path: {
8165
+ runId: string;
8166
+ };
8167
+ query?: never;
8168
+ url: '/workflow/runs/{runId}/conversations';
8169
+ };
8170
+ export type ListWorkflowConversationsErrors = {
8171
+ /**
8172
+ * Bad request - Invalid parameters or malformed JSON
8173
+ */
8174
+ 400: {
8175
+ message: string;
8176
+ issues?: string;
8177
+ };
8178
+ /**
8179
+ * Unauthorized
8180
+ */
8181
+ 401: ErrorResponse;
8182
+ /**
8183
+ * Forbidden
8184
+ */
8185
+ 403: ErrorResponse;
8186
+ /**
8187
+ * Not Found
8188
+ */
8189
+ 404: ErrorResponse;
8190
+ /**
8191
+ * Conflict
8192
+ */
8193
+ 409: ErrorResponse;
8194
+ /**
8195
+ * Internal server error
8196
+ */
8197
+ 500: ErrorResponse;
8198
+ /**
8199
+ * Service Unavailable
8200
+ */
8201
+ 503: ErrorResponse;
8202
+ };
8203
+ export type ListWorkflowConversationsError = ListWorkflowConversationsErrors[keyof ListWorkflowConversationsErrors];
8204
+ export type ListWorkflowConversationsResponses = {
8205
+ /**
8206
+ * Safe summaries of a run's conversations: identity, position and permissions, never content
8207
+ */
8208
+ 200: WorkflowConversationList;
8209
+ };
8210
+ export type ListWorkflowConversationsResponse = ListWorkflowConversationsResponses[keyof ListWorkflowConversationsResponses];
8211
+ export type GetWorkflowConversationForChatData = {
8212
+ body?: never;
8213
+ path: {
8214
+ chatId: string;
8215
+ };
8216
+ query?: never;
8217
+ url: '/workflow/chats/{chatId}/conversation';
8218
+ };
8219
+ export type GetWorkflowConversationForChatErrors = {
8220
+ /**
8221
+ * Bad request - Invalid parameters or malformed JSON
8222
+ */
8223
+ 400: {
8224
+ message: string;
8225
+ issues?: string;
8226
+ };
8227
+ /**
8228
+ * Unauthorized
8229
+ */
8230
+ 401: ErrorResponse;
8231
+ /**
8232
+ * Forbidden
8233
+ */
8234
+ 403: ErrorResponse;
8235
+ /**
8236
+ * Not Found
8237
+ */
8238
+ 404: ErrorResponse;
8239
+ /**
8240
+ * Conflict
8241
+ */
8242
+ 409: ErrorResponse;
8243
+ /**
8244
+ * Internal server error
8245
+ */
8246
+ 500: ErrorResponse;
8247
+ /**
8248
+ * Service Unavailable
8249
+ */
8250
+ 503: ErrorResponse;
8251
+ };
8252
+ export type GetWorkflowConversationForChatError = GetWorkflowConversationForChatErrors[keyof GetWorkflowConversationForChatErrors];
8253
+ export type GetWorkflowConversationForChatResponses = {
8254
+ /**
8255
+ * The conversation this chat belongs to, or null for an ordinary chat or one the caller may not read
8256
+ */
8257
+ 200: WorkflowConversationForChat;
8258
+ };
8259
+ export type GetWorkflowConversationForChatResponse = GetWorkflowConversationForChatResponses[keyof GetWorkflowConversationForChatResponses];
8260
+ export type GetWorkflowConversationData = {
8261
+ body?: never;
8262
+ path: {
8263
+ conversationId: string;
8264
+ };
8265
+ query?: {
8266
+ limit?: number;
8267
+ before?: string;
8268
+ };
8269
+ url: '/workflow/conversations/{conversationId}';
8270
+ };
8271
+ export type GetWorkflowConversationErrors = {
8272
+ /**
8273
+ * Bad request - Invalid parameters or malformed JSON
8274
+ */
8275
+ 400: {
8276
+ message: string;
8277
+ issues?: string;
8278
+ };
8279
+ /**
8280
+ * Unauthorized
8281
+ */
8282
+ 401: ErrorResponse;
8283
+ /**
8284
+ * Forbidden
8285
+ */
8286
+ 403: ErrorResponse;
8287
+ /**
8288
+ * Not Found
8289
+ */
8290
+ 404: ErrorResponse;
8291
+ /**
8292
+ * Conflict
8293
+ */
8294
+ 409: ErrorResponse;
8295
+ /**
8296
+ * Internal server error
8297
+ */
8298
+ 500: ErrorResponse;
8299
+ /**
8300
+ * Service Unavailable
8301
+ */
8302
+ 503: ErrorResponse;
8303
+ };
8304
+ export type GetWorkflowConversationError = GetWorkflowConversationErrors[keyof GetWorkflowConversationErrors];
8305
+ export type GetWorkflowConversationResponses = {
8306
+ /**
8307
+ * One page of a conversation the caller is authorized to read
8308
+ */
8309
+ 200: WorkflowConversationDetail;
8310
+ };
8311
+ export type GetWorkflowConversationResponse = GetWorkflowConversationResponses[keyof GetWorkflowConversationResponses];
8312
+ export type PostWorkflowConversationMessageData = {
8313
+ body: WorkflowConversationMessageInput;
8314
+ path: {
8315
+ conversationId: string;
8316
+ };
8317
+ query?: never;
8318
+ url: '/workflow/conversations/{conversationId}/messages';
8319
+ };
8320
+ export type PostWorkflowConversationMessageErrors = {
8321
+ /**
8322
+ * Bad request - Invalid parameters or malformed JSON
8323
+ */
8324
+ 400: {
8325
+ message: string;
8326
+ issues?: string;
8327
+ };
8328
+ /**
8329
+ * Unauthorized
8330
+ */
8331
+ 401: ErrorResponse;
8332
+ /**
8333
+ * Forbidden
8334
+ */
8335
+ 403: ErrorResponse;
8336
+ /**
8337
+ * Not Found
8338
+ */
8339
+ 404: ErrorResponse;
8340
+ /**
8341
+ * Conflict
8342
+ */
8343
+ 409: ErrorResponse;
8344
+ /**
8345
+ * Internal server error
8346
+ */
8347
+ 500: ErrorResponse;
8348
+ /**
8349
+ * Service Unavailable
8350
+ */
8351
+ 503: ErrorResponse;
8352
+ };
8353
+ export type PostWorkflowConversationMessageError = PostWorkflowConversationMessageErrors[keyof PostWorkflowConversationMessageErrors];
8354
+ export type PostWorkflowConversationMessageResponses = {
8355
+ /**
8356
+ * Records the caller's message and queues the agent turn that answers it
8357
+ */
8358
+ 200: WorkflowConversationPostedMessage;
8359
+ };
8360
+ export type PostWorkflowConversationMessageResponse = PostWorkflowConversationMessageResponses[keyof PostWorkflowConversationMessageResponses];
8361
+ export type CompleteWorkflowConversationData = {
8362
+ body: WorkflowConversationCompleteInput;
8363
+ path: {
8364
+ conversationId: string;
8365
+ };
8366
+ query?: never;
8367
+ url: '/workflow/conversations/{conversationId}/complete';
8368
+ };
8369
+ export type CompleteWorkflowConversationErrors = {
8370
+ /**
8371
+ * Bad request - Invalid parameters or malformed JSON
8372
+ */
8373
+ 400: {
8374
+ message: string;
8375
+ issues?: string;
8376
+ };
8377
+ /**
8378
+ * Unauthorized
8379
+ */
8380
+ 401: ErrorResponse;
8381
+ /**
8382
+ * Forbidden
8383
+ */
8384
+ 403: ErrorResponse;
8385
+ /**
8386
+ * Not Found
8387
+ */
8388
+ 404: ErrorResponse;
8389
+ /**
8390
+ * Conflict
8391
+ */
8392
+ 409: ErrorResponse;
8393
+ /**
8394
+ * Internal server error
8395
+ */
8396
+ 500: ErrorResponse;
8397
+ /**
8398
+ * Service Unavailable
8399
+ */
8400
+ 503: ErrorResponse;
8401
+ };
8402
+ export type CompleteWorkflowConversationError = CompleteWorkflowConversationErrors[keyof CompleteWorkflowConversationErrors];
8403
+ export type CompleteWorkflowConversationResponses = {
8404
+ /**
8405
+ * Marks an interactive work step done with the draft the caller was shown
8406
+ */
8407
+ 200: WorkflowConversationOk;
8408
+ };
8409
+ export type CompleteWorkflowConversationResponse = CompleteWorkflowConversationResponses[keyof CompleteWorkflowConversationResponses];
8410
+ export type DecideWorkflowConversationData = {
8411
+ body: WorkflowConversationDecisionInput;
8412
+ path: {
8413
+ conversationId: string;
8414
+ };
8415
+ query?: never;
8416
+ url: '/workflow/conversations/{conversationId}/decide';
8417
+ };
8418
+ export type DecideWorkflowConversationErrors = {
8419
+ /**
8420
+ * Bad request - Invalid parameters or malformed JSON
8421
+ */
8422
+ 400: {
8423
+ message: string;
8424
+ issues?: string;
8425
+ };
8426
+ /**
8427
+ * Unauthorized
8428
+ */
8429
+ 401: ErrorResponse;
8430
+ /**
8431
+ * Forbidden
8432
+ */
8433
+ 403: ErrorResponse;
8434
+ /**
8435
+ * Not Found
8436
+ */
8437
+ 404: ErrorResponse;
8438
+ /**
8439
+ * Conflict
8440
+ */
8441
+ 409: ErrorResponse;
8442
+ /**
8443
+ * Internal server error
8444
+ */
8445
+ 500: ErrorResponse;
8446
+ /**
8447
+ * Service Unavailable
8448
+ */
8449
+ 503: ErrorResponse;
8450
+ };
8451
+ export type DecideWorkflowConversationError = DecideWorkflowConversationErrors[keyof DecideWorkflowConversationErrors];
8452
+ export type DecideWorkflowConversationResponses = {
8453
+ /**
8454
+ * One reviewer entry's own human decision and the findings it publishes
8455
+ */
8456
+ 200: WorkflowConversationOk;
8457
+ };
8458
+ export type DecideWorkflowConversationResponse = DecideWorkflowConversationResponses[keyof DecideWorkflowConversationResponses];
8459
+ export type StopWorkflowConversationTurnData = {
8460
+ body: WorkflowTurnActionInput;
8461
+ path: {
8462
+ turnId: string;
8463
+ };
8464
+ query?: never;
8465
+ url: '/workflow/conversation-turns/{turnId}/stop';
8466
+ };
8467
+ export type StopWorkflowConversationTurnErrors = {
8468
+ /**
8469
+ * Bad request - Invalid parameters or malformed JSON
8470
+ */
8471
+ 400: {
8472
+ message: string;
8473
+ issues?: string;
8474
+ };
8475
+ /**
8476
+ * Unauthorized
8477
+ */
8478
+ 401: ErrorResponse;
8479
+ /**
8480
+ * Forbidden
8481
+ */
8482
+ 403: ErrorResponse;
8483
+ /**
8484
+ * Not Found
8485
+ */
8486
+ 404: ErrorResponse;
8487
+ /**
8488
+ * Conflict
8489
+ */
8490
+ 409: ErrorResponse;
8491
+ /**
8492
+ * Internal server error
8493
+ */
8494
+ 500: ErrorResponse;
8495
+ /**
8496
+ * Service Unavailable
8497
+ */
8498
+ 503: ErrorResponse;
8499
+ };
8500
+ export type StopWorkflowConversationTurnError = StopWorkflowConversationTurnErrors[keyof StopWorkflowConversationTurnErrors];
8501
+ export type StopWorkflowConversationTurnResponses = {
8502
+ /**
8503
+ * Cancels a queued turn, or asks the worker holding an accepted one to stop; advisory until confirmed
8504
+ */
8505
+ 200: WorkflowConversationActionResult;
8506
+ };
8507
+ export type StopWorkflowConversationTurnResponse = StopWorkflowConversationTurnResponses[keyof StopWorkflowConversationTurnResponses];
8508
+ export type RetryWorkflowConversationTurnData = {
8509
+ body: WorkflowTurnActionInput;
8510
+ path: {
8511
+ turnId: string;
8512
+ };
8513
+ query?: never;
8514
+ url: '/workflow/conversation-turns/{turnId}/retry';
8515
+ };
8516
+ export type RetryWorkflowConversationTurnErrors = {
8517
+ /**
8518
+ * Bad request - Invalid parameters or malformed JSON
8519
+ */
8520
+ 400: {
8521
+ message: string;
8522
+ issues?: string;
8523
+ };
8524
+ /**
8525
+ * Unauthorized
8526
+ */
8527
+ 401: ErrorResponse;
8528
+ /**
8529
+ * Forbidden
8530
+ */
8531
+ 403: ErrorResponse;
8532
+ /**
8533
+ * Not Found
8534
+ */
8535
+ 404: ErrorResponse;
8536
+ /**
8537
+ * Conflict
8538
+ */
8539
+ 409: ErrorResponse;
8540
+ /**
8541
+ * Internal server error
8542
+ */
8543
+ 500: ErrorResponse;
8544
+ /**
8545
+ * Service Unavailable
8546
+ */
8547
+ 503: ErrorResponse;
8548
+ };
8549
+ export type RetryWorkflowConversationTurnError = RetryWorkflowConversationTurnErrors[keyof RetryWorkflowConversationTurnErrors];
8550
+ export type RetryWorkflowConversationTurnResponses = {
8551
+ /**
8552
+ * Runs a settled turn again under a new attempt
8553
+ */
8554
+ 200: WorkflowConversationActionResult;
8555
+ };
8556
+ export type RetryWorkflowConversationTurnResponse = RetryWorkflowConversationTurnResponses[keyof RetryWorkflowConversationTurnResponses];
8557
+ export type ListWorkflowQueuedTurnsData = {
8558
+ body?: never;
8559
+ path: {
8560
+ projectId: string;
8561
+ };
8562
+ query?: never;
8563
+ url: '/workflow/projects/{projectId}/conversation-turns';
8564
+ };
8565
+ export type ListWorkflowQueuedTurnsErrors = {
8566
+ /**
8567
+ * Bad request - Invalid parameters or malformed JSON
8568
+ */
8569
+ 400: {
8570
+ message: string;
8571
+ issues?: string;
8572
+ };
8573
+ /**
8574
+ * Unauthorized
8575
+ */
8576
+ 401: ErrorResponse;
8577
+ /**
8578
+ * Forbidden
8579
+ */
8580
+ 403: ErrorResponse;
8581
+ /**
8582
+ * Not Found
8583
+ */
8584
+ 404: ErrorResponse;
8585
+ /**
8586
+ * Conflict
8587
+ */
8588
+ 409: ErrorResponse;
8589
+ /**
8590
+ * Internal server error
8591
+ */
8592
+ 500: ErrorResponse;
8593
+ /**
8594
+ * Service Unavailable
8595
+ */
8596
+ 503: ErrorResponse;
8597
+ };
8598
+ export type ListWorkflowQueuedTurnsError = ListWorkflowQueuedTurnsErrors[keyof ListWorkflowQueuedTurnsErrors];
8599
+ export type ListWorkflowQueuedTurnsResponses = {
8600
+ /**
8601
+ * Queue metadata for a project's claimable turns; carries no transcript
8602
+ */
8603
+ 200: WorkflowTurnOfferList;
8604
+ };
8605
+ export type ListWorkflowQueuedTurnsResponse = ListWorkflowQueuedTurnsResponses[keyof ListWorkflowQueuedTurnsResponses];
8606
+ export type AnnounceWorkflowWorkerSessionData = {
8607
+ body: WorkflowWorkerSession;
8608
+ path: {
8609
+ projectId: string;
8610
+ };
8611
+ query?: never;
8612
+ url: '/workflow/projects/{projectId}/worker-sessions';
8613
+ };
8614
+ export type AnnounceWorkflowWorkerSessionErrors = {
8615
+ /**
8616
+ * Bad request - Invalid parameters or malformed JSON
8617
+ */
8618
+ 400: {
8619
+ message: string;
8620
+ issues?: string;
8621
+ };
8622
+ /**
8623
+ * Unauthorized
8624
+ */
8625
+ 401: ErrorResponse;
8626
+ /**
8627
+ * Forbidden
8628
+ */
8629
+ 403: ErrorResponse;
8630
+ /**
8631
+ * Not Found
8632
+ */
8633
+ 404: ErrorResponse;
8634
+ /**
8635
+ * Conflict
8636
+ */
8637
+ 409: ErrorResponse;
8638
+ /**
8639
+ * Internal server error
8640
+ */
8641
+ 500: ErrorResponse;
8642
+ /**
8643
+ * Service Unavailable
8644
+ */
8645
+ 503: ErrorResponse;
8646
+ };
8647
+ export type AnnounceWorkflowWorkerSessionError = AnnounceWorkflowWorkerSessionErrors[keyof AnnounceWorkflowWorkerSessionErrors];
8648
+ export type AnnounceWorkflowWorkerSessionResponses = {
8649
+ /**
8650
+ * Declares this worker as the project's current one and settles the turns its predecessor left behind
8651
+ */
8652
+ 200: WorkflowWorkerSessionResult;
8653
+ };
8654
+ export type AnnounceWorkflowWorkerSessionResponse = AnnounceWorkflowWorkerSessionResponses[keyof AnnounceWorkflowWorkerSessionResponses];
8655
+ export type AcceptWorkflowConversationTurnData = {
8656
+ body: WorkflowTurnAcceptInput;
8657
+ path: {
8658
+ turnId: string;
8659
+ };
8660
+ query?: never;
8661
+ url: '/workflow/conversation-turns/{turnId}/accept';
8662
+ };
8663
+ export type AcceptWorkflowConversationTurnErrors = {
8664
+ /**
8665
+ * Bad request - Invalid parameters or malformed JSON
8666
+ */
8667
+ 400: {
8668
+ message: string;
8669
+ issues?: string;
8670
+ };
8671
+ /**
8672
+ * Unauthorized
8673
+ */
8674
+ 401: ErrorResponse;
8675
+ /**
8676
+ * Forbidden
8677
+ */
8678
+ 403: ErrorResponse;
8679
+ /**
8680
+ * Not Found
8681
+ */
8682
+ 404: ErrorResponse;
8683
+ /**
8684
+ * Conflict
8685
+ */
8686
+ 409: ErrorResponse;
8687
+ /**
8688
+ * Internal server error
8689
+ */
8690
+ 500: ErrorResponse;
8691
+ /**
8692
+ * Service Unavailable
8693
+ */
8694
+ 503: ErrorResponse;
8695
+ };
8696
+ export type AcceptWorkflowConversationTurnError = AcceptWorkflowConversationTurnErrors[keyof AcceptWorkflowConversationTurnErrors];
8697
+ export type AcceptWorkflowConversationTurnResponses = {
8698
+ /**
8699
+ * Claims this conversation's next queued turn and returns its lease
8700
+ */
8701
+ 200: WorkflowTurnAcceptance;
8702
+ };
8703
+ export type AcceptWorkflowConversationTurnResponse = AcceptWorkflowConversationTurnResponses[keyof AcceptWorkflowConversationTurnResponses];
8704
+ export type ReportWorkflowConversationTurnResultData = {
8705
+ body: WorkflowTurnResultInput;
8706
+ path: {
8707
+ turnId: string;
8708
+ };
8709
+ query?: never;
8710
+ url: '/workflow/conversation-turns/{turnId}/result';
8711
+ };
8712
+ export type ReportWorkflowConversationTurnResultErrors = {
8713
+ /**
8714
+ * Bad request - Invalid parameters or malformed JSON
8715
+ */
8716
+ 400: {
8717
+ message: string;
8718
+ issues?: string;
8719
+ };
8720
+ /**
8721
+ * Unauthorized
8722
+ */
8723
+ 401: ErrorResponse;
8724
+ /**
8725
+ * Forbidden
8726
+ */
8727
+ 403: ErrorResponse;
8728
+ /**
8729
+ * Not Found
8730
+ */
8731
+ 404: ErrorResponse;
8732
+ /**
8733
+ * Conflict
8734
+ */
8735
+ 409: ErrorResponse;
8736
+ /**
8737
+ * Internal server error
8738
+ */
8739
+ 500: ErrorResponse;
8740
+ /**
8741
+ * Service Unavailable
8742
+ */
8743
+ 503: ErrorResponse;
8744
+ };
8745
+ export type ReportWorkflowConversationTurnResultError = ReportWorkflowConversationTurnResultErrors[keyof ReportWorkflowConversationTurnResultErrors];
8746
+ export type ReportWorkflowConversationTurnResultResponses = {
8747
+ /**
8748
+ * Records the outcome of the turn this worker holds
8749
+ */
8750
+ 200: WorkflowConversationActionResult;
8751
+ };
8752
+ export type ReportWorkflowConversationTurnResultResponse = ReportWorkflowConversationTurnResultResponses[keyof ReportWorkflowConversationTurnResultResponses];
8753
+ export type HeartbeatWorkflowConversationTurnData = {
8754
+ body: WorkflowTurnClaimInput;
8755
+ path: {
8756
+ turnId: string;
8757
+ };
8758
+ query?: never;
8759
+ url: '/workflow/conversation-turns/{turnId}/heartbeat';
8760
+ };
8761
+ export type HeartbeatWorkflowConversationTurnErrors = {
8762
+ /**
8763
+ * Bad request - Invalid parameters or malformed JSON
8764
+ */
8765
+ 400: {
8766
+ message: string;
8767
+ issues?: string;
8768
+ };
8769
+ /**
8770
+ * Unauthorized
8771
+ */
8772
+ 401: ErrorResponse;
8773
+ /**
8774
+ * Forbidden
8775
+ */
8776
+ 403: ErrorResponse;
8777
+ /**
8778
+ * Not Found
8779
+ */
8780
+ 404: ErrorResponse;
8781
+ /**
8782
+ * Conflict
8783
+ */
8784
+ 409: ErrorResponse;
8785
+ /**
8786
+ * Internal server error
8787
+ */
8788
+ 500: ErrorResponse;
8789
+ /**
8790
+ * Service Unavailable
8791
+ */
8792
+ 503: ErrorResponse;
8793
+ };
8794
+ export type HeartbeatWorkflowConversationTurnError = HeartbeatWorkflowConversationTurnErrors[keyof HeartbeatWorkflowConversationTurnErrors];
8795
+ export type HeartbeatWorkflowConversationTurnResponses = {
8796
+ /**
8797
+ * Renews this turn's lease and reports whether a person asked it to stop
8798
+ */
8799
+ 200: WorkflowTurnHeartbeat;
8800
+ };
8801
+ export type HeartbeatWorkflowConversationTurnResponse = HeartbeatWorkflowConversationTurnResponses[keyof HeartbeatWorkflowConversationTurnResponses];
8802
+ export type AcknowledgeWorkflowConversationTurnStoppedData = {
8803
+ body: WorkflowTurnClaimInput;
8804
+ path: {
8805
+ turnId: string;
8806
+ };
8807
+ query?: never;
8808
+ url: '/workflow/conversation-turns/{turnId}/stopped';
8809
+ };
8810
+ export type AcknowledgeWorkflowConversationTurnStoppedErrors = {
8811
+ /**
8812
+ * Bad request - Invalid parameters or malformed JSON
8813
+ */
8814
+ 400: {
8815
+ message: string;
8816
+ issues?: string;
8817
+ };
8818
+ /**
8819
+ * Unauthorized
8820
+ */
8821
+ 401: ErrorResponse;
8822
+ /**
8823
+ * Forbidden
8824
+ */
8825
+ 403: ErrorResponse;
8826
+ /**
8827
+ * Not Found
8828
+ */
8829
+ 404: ErrorResponse;
8830
+ /**
8831
+ * Conflict
8832
+ */
8833
+ 409: ErrorResponse;
8834
+ /**
8835
+ * Internal server error
8836
+ */
8837
+ 500: ErrorResponse;
8838
+ /**
8839
+ * Service Unavailable
8840
+ */
8841
+ 503: ErrorResponse;
8842
+ };
8843
+ export type AcknowledgeWorkflowConversationTurnStoppedError = AcknowledgeWorkflowConversationTurnStoppedErrors[keyof AcknowledgeWorkflowConversationTurnStoppedErrors];
8844
+ export type AcknowledgeWorkflowConversationTurnStoppedResponses = {
8845
+ /**
8846
+ * The worker's confirmation that it stopped, which is what makes a retry safe
8847
+ */
8848
+ 200: WorkflowConversationActionResult;
8849
+ };
8850
+ export type AcknowledgeWorkflowConversationTurnStoppedResponse = AcknowledgeWorkflowConversationTurnStoppedResponses[keyof AcknowledgeWorkflowConversationTurnStoppedResponses];
8851
+ export type ListWorkflowRunsData = {
8852
+ body?: never;
8853
+ path: {
8854
+ projectId: string;
8855
+ };
8856
+ query?: never;
8857
+ url: '/workflow/projects/{projectId}/runs';
8858
+ };
8859
+ export type ListWorkflowRunsErrors = {
8860
+ /**
8861
+ * Bad request - Invalid parameters or malformed JSON
8862
+ */
8863
+ 400: {
8864
+ message: string;
8865
+ issues?: string;
8866
+ };
8867
+ /**
8868
+ * Unauthorized
8869
+ */
8870
+ 401: ErrorResponse;
8871
+ /**
8872
+ * Forbidden
8873
+ */
8874
+ 403: ErrorResponse;
8875
+ /**
8876
+ * Not Found
8877
+ */
8878
+ 404: ErrorResponse;
8879
+ /**
8880
+ * Conflict
8881
+ */
8882
+ 409: ErrorResponse;
8883
+ /**
8884
+ * Internal server error
8885
+ */
8886
+ 500: ErrorResponse;
8887
+ /**
8888
+ * Service Unavailable
8889
+ */
8890
+ 503: ErrorResponse;
8891
+ };
8892
+ export type ListWorkflowRunsError = ListWorkflowRunsErrors[keyof ListWorkflowRunsErrors];
8893
+ export type ListWorkflowRunsResponses = {
8894
+ /**
8895
+ * Lists a project's workflow runs, most recent first
8896
+ */
8897
+ 200: {
8898
+ runs: Array<WorkflowRun>;
8899
+ };
8900
+ };
8901
+ export type ListWorkflowRunsResponse = ListWorkflowRunsResponses[keyof ListWorkflowRunsResponses];
8902
+ export type StartWorkflowRunData = {
8903
+ body: StartWorkflowRunInput;
8904
+ path: {
8905
+ projectId: string;
8906
+ };
8907
+ query?: never;
8908
+ url: '/workflow/projects/{projectId}/runs';
8909
+ };
8910
+ export type StartWorkflowRunErrors = {
8911
+ /**
8912
+ * Bad request - Invalid parameters or malformed JSON
8913
+ */
8914
+ 400: {
8915
+ message: string;
8916
+ issues?: string;
8917
+ };
8918
+ /**
8919
+ * Unauthorized
8920
+ */
8921
+ 401: ErrorResponse;
8922
+ /**
8923
+ * Forbidden
8924
+ */
8925
+ 403: ErrorResponse;
8926
+ /**
8927
+ * Not Found
8928
+ */
8929
+ 404: ErrorResponse;
8930
+ /**
8931
+ * Conflict
8932
+ */
8933
+ 409: ErrorResponse;
8934
+ /**
8935
+ * Internal server error
8936
+ */
8937
+ 500: ErrorResponse;
8938
+ /**
8939
+ * Service Unavailable
8940
+ */
8941
+ 503: ErrorResponse;
8942
+ };
8943
+ export type StartWorkflowRunError = StartWorkflowRunErrors[keyof StartWorkflowRunErrors];
8944
+ export type StartWorkflowRunResponses = {
8945
+ /**
8946
+ * Starts a run from a working-tree workflow document
8947
+ */
8948
+ 200: {
8949
+ run: WorkflowRun;
8950
+ };
8951
+ };
8952
+ export type StartWorkflowRunResponse = StartWorkflowRunResponses[keyof StartWorkflowRunResponses];
8953
+ export type ListWorkflowOffersData = {
8954
+ body?: never;
8955
+ path: {
8956
+ projectId: string;
8957
+ };
8958
+ query?: never;
8959
+ url: '/workflow/projects/{projectId}/offers';
8960
+ };
8961
+ export type ListWorkflowOffersErrors = {
8962
+ /**
8963
+ * Bad request - Invalid parameters or malformed JSON
8964
+ */
8965
+ 400: {
8966
+ message: string;
8967
+ issues?: string;
8968
+ };
8969
+ /**
8970
+ * Unauthorized
8971
+ */
8972
+ 401: ErrorResponse;
8973
+ /**
8974
+ * Forbidden
8975
+ */
8976
+ 403: ErrorResponse;
8977
+ /**
8978
+ * Not Found
8979
+ */
8980
+ 404: ErrorResponse;
8981
+ /**
8982
+ * Conflict
8983
+ */
8984
+ 409: ErrorResponse;
8985
+ /**
8986
+ * Internal server error
8987
+ */
8988
+ 500: ErrorResponse;
8989
+ /**
8990
+ * Service Unavailable
8991
+ */
8992
+ 503: ErrorResponse;
8993
+ };
8994
+ export type ListWorkflowOffersError = ListWorkflowOffersErrors[keyof ListWorkflowOffersErrors];
8995
+ export type ListWorkflowOffersResponses = {
8996
+ /**
8997
+ * Lists the nodes offered to a container polling this project
8998
+ */
8999
+ 200: {
9000
+ offers: Array<WorkflowDispatchPayload>;
9001
+ };
9002
+ };
9003
+ export type ListWorkflowOffersResponse = ListWorkflowOffersResponses[keyof ListWorkflowOffersResponses];
9004
+ export type GetWorkflowRunData = {
9005
+ body?: never;
9006
+ path: {
9007
+ runId: string;
9008
+ };
9009
+ query?: never;
9010
+ url: '/workflow/runs/{runId}';
9011
+ };
9012
+ export type GetWorkflowRunErrors = {
9013
+ /**
9014
+ * Bad request - Invalid parameters or malformed JSON
9015
+ */
9016
+ 400: {
9017
+ message: string;
9018
+ issues?: string;
9019
+ };
9020
+ /**
9021
+ * Unauthorized
9022
+ */
9023
+ 401: ErrorResponse;
9024
+ /**
9025
+ * Forbidden
9026
+ */
9027
+ 403: ErrorResponse;
9028
+ /**
9029
+ * Not Found
9030
+ */
9031
+ 404: ErrorResponse;
9032
+ /**
9033
+ * Conflict
9034
+ */
9035
+ 409: ErrorResponse;
9036
+ /**
9037
+ * Internal server error
9038
+ */
9039
+ 500: ErrorResponse;
9040
+ /**
9041
+ * Service Unavailable
9042
+ */
9043
+ 503: ErrorResponse;
9044
+ };
9045
+ export type GetWorkflowRunError = GetWorkflowRunErrors[keyof GetWorkflowRunErrors];
9046
+ export type GetWorkflowRunResponses = {
9047
+ /**
9048
+ * Returns a run's full detail: the run row, its nodes, events, review decisions and projected graph
9049
+ */
9050
+ 200: {
9051
+ run: WorkflowRun;
9052
+ nodes: Array<WorkflowNodeRun>;
9053
+ events: Array<WorkflowRunEvent>;
9054
+ decisions: Array<WorkflowReviewDecision>;
9055
+ graph: WorkflowRunGraph;
9056
+ };
9057
+ };
9058
+ export type GetWorkflowRunResponse = GetWorkflowRunResponses[keyof GetWorkflowRunResponses];
9059
+ export type AcceptWorkflowNodeData = {
9060
+ body: AcceptWorkflowNodeInput;
9061
+ path: {
9062
+ runId: string;
9063
+ nodeKey: string;
9064
+ };
9065
+ query?: never;
9066
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/accept';
9067
+ };
9068
+ export type AcceptWorkflowNodeErrors = {
9069
+ /**
9070
+ * Bad request - Invalid parameters or malformed JSON
9071
+ */
9072
+ 400: {
9073
+ message: string;
9074
+ issues?: string;
9075
+ };
9076
+ /**
9077
+ * Unauthorized
9078
+ */
9079
+ 401: ErrorResponse;
9080
+ /**
9081
+ * Forbidden
9082
+ */
9083
+ 403: ErrorResponse;
9084
+ /**
9085
+ * Not Found
9086
+ */
9087
+ 404: ErrorResponse;
9088
+ /**
9089
+ * Conflict
9090
+ */
9091
+ 409: ErrorResponse;
9092
+ /**
9093
+ * Internal server error
9094
+ */
9095
+ 500: ErrorResponse;
9096
+ /**
9097
+ * Service Unavailable
9098
+ */
9099
+ 503: ErrorResponse;
9100
+ };
9101
+ export type AcceptWorkflowNodeError = AcceptWorkflowNodeErrors[keyof AcceptWorkflowNodeErrors];
9102
+ export type AcceptWorkflowNodeResponses = {
9103
+ /**
9104
+ * Accepts an offered node and returns its authoritative execution payload
9105
+ */
9106
+ 200: AcceptedWorkflowNode;
9107
+ };
9108
+ export type AcceptWorkflowNodeResponse = AcceptWorkflowNodeResponses[keyof AcceptWorkflowNodeResponses];
9109
+ export type SetWorkflowHarnessData = {
9110
+ body: SetWorkflowHarnessInput;
9111
+ path: {
9112
+ runId: string;
9113
+ };
9114
+ query?: never;
9115
+ url: '/workflow/runs/{runId}/harness';
9116
+ };
9117
+ export type SetWorkflowHarnessErrors = {
9118
+ /**
9119
+ * Bad request - Invalid parameters or malformed JSON
9120
+ */
9121
+ 400: {
9122
+ message: string;
9123
+ issues?: string;
9124
+ };
9125
+ /**
9126
+ * Unauthorized
9127
+ */
9128
+ 401: ErrorResponse;
9129
+ /**
9130
+ * Forbidden
9131
+ */
9132
+ 403: ErrorResponse;
9133
+ /**
9134
+ * Not Found
9135
+ */
9136
+ 404: ErrorResponse;
9137
+ /**
9138
+ * Conflict
9139
+ */
9140
+ 409: ErrorResponse;
9141
+ /**
9142
+ * Internal server error
9143
+ */
9144
+ 500: ErrorResponse;
9145
+ /**
9146
+ * Service Unavailable
9147
+ */
9148
+ 503: ErrorResponse;
9149
+ };
9150
+ export type SetWorkflowHarnessError = SetWorkflowHarnessErrors[keyof SetWorkflowHarnessErrors];
9151
+ export type SetWorkflowHarnessResponses = {
9152
+ /**
9153
+ * Changes a live run's selected harness
9154
+ */
9155
+ 200: {
9156
+ applied: boolean;
9157
+ };
9158
+ };
9159
+ export type SetWorkflowHarnessResponse = SetWorkflowHarnessResponses[keyof SetWorkflowHarnessResponses];
9160
+ export type ReportWorkflowNodeResultData = {
9161
+ body: WorkflowNodeResultInput;
9162
+ path: {
9163
+ runId: string;
9164
+ nodeKey: string;
9165
+ };
9166
+ query?: never;
9167
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/result';
9168
+ };
9169
+ export type ReportWorkflowNodeResultErrors = {
9170
+ /**
9171
+ * Bad request - Invalid parameters or malformed JSON
9172
+ */
9173
+ 400: {
9174
+ message: string;
9175
+ issues?: string;
9176
+ };
9177
+ /**
9178
+ * Unauthorized
9179
+ */
9180
+ 401: ErrorResponse;
9181
+ /**
9182
+ * Forbidden
9183
+ */
9184
+ 403: ErrorResponse;
9185
+ /**
9186
+ * Not Found
9187
+ */
9188
+ 404: ErrorResponse;
9189
+ /**
9190
+ * Conflict
9191
+ */
9192
+ 409: ErrorResponse;
9193
+ /**
9194
+ * Internal server error
9195
+ */
9196
+ 500: ErrorResponse;
9197
+ /**
9198
+ * Service Unavailable
9199
+ */
9200
+ 503: ErrorResponse;
9201
+ };
9202
+ export type ReportWorkflowNodeResultError = ReportWorkflowNodeResultErrors[keyof ReportWorkflowNodeResultErrors];
9203
+ export type ReportWorkflowNodeResultResponses = {
9204
+ /**
9205
+ * Records a work node's terminal result
9206
+ */
9207
+ 200: {
9208
+ applied: boolean;
9209
+ };
9210
+ };
9211
+ export type ReportWorkflowNodeResultResponse = ReportWorkflowNodeResultResponses[keyof ReportWorkflowNodeResultResponses];
9212
+ export type ReportWorkflowReviewData = {
9213
+ body: WorkflowReviewReportInput;
9214
+ path: {
9215
+ runId: string;
9216
+ nodeKey: string;
9217
+ };
9218
+ query?: never;
9219
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/review';
9220
+ };
9221
+ export type ReportWorkflowReviewErrors = {
9222
+ /**
9223
+ * Bad request - Invalid parameters or malformed JSON
9224
+ */
9225
+ 400: {
9226
+ message: string;
9227
+ issues?: string;
9228
+ };
9229
+ /**
9230
+ * Unauthorized
9231
+ */
9232
+ 401: ErrorResponse;
9233
+ /**
9234
+ * Forbidden
9235
+ */
9236
+ 403: ErrorResponse;
9237
+ /**
9238
+ * Not Found
9239
+ */
9240
+ 404: ErrorResponse;
9241
+ /**
9242
+ * Conflict
9243
+ */
9244
+ 409: ErrorResponse;
9245
+ /**
9246
+ * Internal server error
9247
+ */
9248
+ 500: ErrorResponse;
9249
+ /**
9250
+ * Service Unavailable
9251
+ */
9252
+ 503: ErrorResponse;
9253
+ };
9254
+ export type ReportWorkflowReviewError = ReportWorkflowReviewErrors[keyof ReportWorkflowReviewErrors];
9255
+ export type ReportWorkflowReviewResponses = {
9256
+ /**
9257
+ * Records a reviewer's approval or objection
9258
+ */
9259
+ 200: {
9260
+ applied: boolean;
9261
+ };
9262
+ };
9263
+ export type ReportWorkflowReviewResponse = ReportWorkflowReviewResponses[keyof ReportWorkflowReviewResponses];
9264
+ export type DecideWorkflowReviewData = {
9265
+ body: WorkflowHumanDecisionInput;
9266
+ path: {
9267
+ runId: string;
9268
+ nodeKey: string;
9269
+ };
9270
+ query?: never;
9271
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/decide';
9272
+ };
9273
+ export type DecideWorkflowReviewErrors = {
9274
+ /**
9275
+ * Bad request - Invalid parameters or malformed JSON
9276
+ */
9277
+ 400: {
9278
+ message: string;
9279
+ issues?: string;
9280
+ };
9281
+ /**
9282
+ * Unauthorized
9283
+ */
9284
+ 401: ErrorResponse;
9285
+ /**
9286
+ * Forbidden
9287
+ */
9288
+ 403: ErrorResponse;
9289
+ /**
9290
+ * Not Found
9291
+ */
9292
+ 404: ErrorResponse;
9293
+ /**
9294
+ * Conflict
9295
+ */
9296
+ 409: ErrorResponse;
9297
+ /**
9298
+ * Internal server error
9299
+ */
9300
+ 500: ErrorResponse;
9301
+ /**
9302
+ * Service Unavailable
9303
+ */
9304
+ 503: ErrorResponse;
9305
+ };
9306
+ export type DecideWorkflowReviewError = DecideWorkflowReviewErrors[keyof DecideWorkflowReviewErrors];
9307
+ export type DecideWorkflowReviewResponses = {
9308
+ /**
9309
+ * A person's approve/reject decision on an objection parked for them
9310
+ */
9311
+ 200: {
9312
+ ok: true;
9313
+ };
9314
+ };
9315
+ export type DecideWorkflowReviewResponse = DecideWorkflowReviewResponses[keyof DecideWorkflowReviewResponses];
9316
+ export type RetryWorkflowNodeData = {
9317
+ body?: never;
9318
+ path: {
9319
+ runId: string;
9320
+ nodeKey: string;
9321
+ };
9322
+ query?: never;
9323
+ url: '/workflow/runs/{runId}/nodes/{nodeKey}/retry';
9324
+ };
9325
+ export type RetryWorkflowNodeErrors = {
9326
+ /**
9327
+ * Bad request - Invalid parameters or malformed JSON
9328
+ */
9329
+ 400: {
9330
+ message: string;
9331
+ issues?: string;
9332
+ };
9333
+ /**
9334
+ * Unauthorized
9335
+ */
9336
+ 401: ErrorResponse;
9337
+ /**
9338
+ * Forbidden
9339
+ */
9340
+ 403: ErrorResponse;
9341
+ /**
9342
+ * Not Found
9343
+ */
9344
+ 404: ErrorResponse;
9345
+ /**
9346
+ * Conflict
9347
+ */
9348
+ 409: ErrorResponse;
9349
+ /**
9350
+ * Internal server error
9351
+ */
9352
+ 500: ErrorResponse;
9353
+ /**
9354
+ * Service Unavailable
9355
+ */
9356
+ 503: ErrorResponse;
9357
+ };
9358
+ export type RetryWorkflowNodeError = RetryWorkflowNodeErrors[keyof RetryWorkflowNodeErrors];
9359
+ export type RetryWorkflowNodeResponses = {
9360
+ /**
9361
+ * Puts an errored node back in play
9362
+ */
9363
+ 200: {
9364
+ applied: boolean;
9365
+ };
9366
+ };
9367
+ export type RetryWorkflowNodeResponse = RetryWorkflowNodeResponses[keyof RetryWorkflowNodeResponses];
9368
+ export type CancelWorkflowRunData = {
9369
+ body?: never;
9370
+ path: {
9371
+ runId: string;
9372
+ };
9373
+ query?: never;
9374
+ url: '/workflow/runs/{runId}/cancel';
9375
+ };
9376
+ export type CancelWorkflowRunErrors = {
9377
+ /**
9378
+ * Bad request - Invalid parameters or malformed JSON
9379
+ */
9380
+ 400: {
9381
+ message: string;
9382
+ issues?: string;
9383
+ };
9384
+ /**
9385
+ * Unauthorized
9386
+ */
9387
+ 401: ErrorResponse;
9388
+ /**
9389
+ * Forbidden
9390
+ */
9391
+ 403: ErrorResponse;
9392
+ /**
9393
+ * Not Found
9394
+ */
9395
+ 404: ErrorResponse;
9396
+ /**
9397
+ * Conflict
9398
+ */
9399
+ 409: ErrorResponse;
9400
+ /**
9401
+ * Internal server error
9402
+ */
9403
+ 500: ErrorResponse;
9404
+ /**
9405
+ * Service Unavailable
9406
+ */
9407
+ 503: ErrorResponse;
9408
+ };
9409
+ export type CancelWorkflowRunError = CancelWorkflowRunErrors[keyof CancelWorkflowRunErrors];
9410
+ export type CancelWorkflowRunResponses = {
9411
+ /**
9412
+ * Cancels a live run
9413
+ */
9414
+ 200: {
9415
+ applied: boolean;
9416
+ };
9417
+ };
9418
+ export type CancelWorkflowRunResponse = CancelWorkflowRunResponses[keyof CancelWorkflowRunResponses];
7634
9419
  export type GetFeatureTogglesData = {
7635
9420
  body?: never;
7636
9421
  path?: never;