@sixb/server 0.1.17 → 0.1.19

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.
Files changed (110) hide show
  1. package/README.md +3 -3
  2. package/dist/actions/serialize.d.ts +7 -0
  3. package/dist/actions/serialize.d.ts.map +1 -0
  4. package/dist/auth/experience.d.ts +5 -1
  5. package/dist/auth/experience.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +0 -1
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +812 -769
  9. package/dist/index.js.map +32 -31
  10. package/dist/routes/action-runs.d.ts +11 -13
  11. package/dist/routes/action-runs.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +44 -13
  13. package/dist/routes/actions.d.ts.map +1 -1
  14. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  15. package/dist/routes/agents.d.ts +67 -47
  16. package/dist/routes/agents.d.ts.map +1 -1
  17. package/dist/routes/auth.d.ts +3 -2
  18. package/dist/routes/auth.d.ts.map +1 -1
  19. package/dist/routes/connector-connection-runs.d.ts +21 -21
  20. package/dist/routes/connector-connections.d.ts +8 -8
  21. package/dist/routes/connectors.d.ts +2 -2
  22. package/dist/routes/datasets.d.ts +9 -6
  23. package/dist/routes/datasets.d.ts.map +1 -1
  24. package/dist/routes/events.d.ts +4 -4
  25. package/dist/routes/files.d.ts +15 -12
  26. package/dist/routes/files.d.ts.map +1 -1
  27. package/dist/routes/models.d.ts +1 -0
  28. package/dist/routes/models.d.ts.map +1 -1
  29. package/dist/routes/objects.d.ts +21 -4
  30. package/dist/routes/objects.d.ts.map +1 -1
  31. package/dist/routes/ontology.d.ts +6 -6
  32. package/dist/routes/pipelines.d.ts +16 -16
  33. package/dist/routes/project.d.ts +2 -0
  34. package/dist/routes/project.d.ts.map +1 -1
  35. package/dist/routes/projections.d.ts +49 -49
  36. package/dist/routes/syncs.d.ts +10 -10
  37. package/dist/routes/webhook-runs.d.ts +2 -2
  38. package/dist/routes/workflows.d.ts +51 -48
  39. package/dist/routes/workflows.d.ts.map +1 -1
  40. package/dist/routes/ws/events.d.ts +6 -9
  41. package/dist/routes/ws/events.d.ts.map +1 -1
  42. package/dist/routes/ws/subscription-hub.d.ts +5 -0
  43. package/dist/routes/ws/subscription-hub.d.ts.map +1 -1
  44. package/dist/schemas/actions.d.ts +100 -84
  45. package/dist/schemas/actions.d.ts.map +1 -1
  46. package/dist/schemas/agents.d.ts +242 -143
  47. package/dist/schemas/agents.d.ts.map +1 -1
  48. package/dist/schemas/ai-accounting.d.ts +10 -10
  49. package/dist/schemas/ai-limits.d.ts +10 -10
  50. package/dist/schemas/auth.d.ts +7 -0
  51. package/dist/schemas/auth.d.ts.map +1 -1
  52. package/dist/schemas/common.d.ts +8 -0
  53. package/dist/schemas/common.d.ts.map +1 -1
  54. package/dist/schemas/connectors.d.ts +8 -8
  55. package/dist/schemas/datasets.d.ts +58 -43
  56. package/dist/schemas/datasets.d.ts.map +1 -1
  57. package/dist/schemas/event-payloads.d.ts +39 -0
  58. package/dist/schemas/event-payloads.d.ts.map +1 -1
  59. package/dist/schemas/events.d.ts +24 -24
  60. package/dist/schemas/events.d.ts.map +1 -1
  61. package/dist/schemas/files.d.ts +5 -5
  62. package/dist/schemas/files.d.ts.map +1 -1
  63. package/dist/schemas/models.d.ts +10 -0
  64. package/dist/schemas/models.d.ts.map +1 -1
  65. package/dist/schemas/objects.d.ts +32 -0
  66. package/dist/schemas/objects.d.ts.map +1 -1
  67. package/dist/schemas/ontology.d.ts +40 -40
  68. package/dist/schemas/pipelines.d.ts +92 -92
  69. package/dist/schemas/project.d.ts +8 -0
  70. package/dist/schemas/project.d.ts.map +1 -1
  71. package/dist/schemas/projections.d.ts +290 -290
  72. package/dist/schemas/syncs.d.ts +34 -34
  73. package/dist/schemas/webhook-runs.d.ts +8 -8
  74. package/dist/schemas/workflows.d.ts +177 -160
  75. package/dist/schemas/workflows.d.ts.map +1 -1
  76. package/dist/server.d.ts +1 -0
  77. package/dist/server.d.ts.map +1 -1
  78. package/dist/utils/http.d.ts.map +1 -1
  79. package/dist/utils/request-body.d.ts +20 -6
  80. package/dist/utils/request-body.d.ts.map +1 -1
  81. package/package.json +6 -5
  82. package/src/actions/serialize.ts +55 -0
  83. package/src/auth/experience.ts +20 -2
  84. package/src/files/content.ts +43 -88
  85. package/src/routes/action-runs.ts +1 -54
  86. package/src/routes/actions.ts +26 -8
  87. package/src/routes/agent-api-gateway.ts +18 -42
  88. package/src/routes/agents.ts +29 -9
  89. package/src/routes/auth.ts +84 -19
  90. package/src/routes/datasets.ts +12 -43
  91. package/src/routes/files.ts +18 -64
  92. package/src/routes/models.ts +3 -0
  93. package/src/routes/objects.ts +12 -2
  94. package/src/routes/project.ts +2 -1
  95. package/src/routes/workflows.ts +5 -0
  96. package/src/routes/ws/events.ts +7 -15
  97. package/src/routes/ws/subscription-hub.ts +20 -5
  98. package/src/schemas/actions.ts +21 -18
  99. package/src/schemas/agents.ts +28 -3
  100. package/src/schemas/auth.ts +5 -0
  101. package/src/schemas/common.ts +3 -0
  102. package/src/schemas/datasets.ts +23 -1
  103. package/src/schemas/event-payloads.ts +3 -1
  104. package/src/schemas/files.ts +7 -1
  105. package/src/schemas/models.ts +2 -0
  106. package/src/schemas/objects.ts +13 -0
  107. package/src/schemas/project.ts +4 -0
  108. package/src/server.ts +23 -4
  109. package/src/utils/http.ts +2 -0
  110. package/src/utils/request-body.ts +55 -6
@@ -33,7 +33,7 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
33
33
  offset: z.ZodOptional<z.ZodString>;
34
34
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
36
+ status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting" | undefined;
37
37
  startedAfter?: string | undefined;
38
38
  startedBefore?: string | undefined;
39
39
  limit?: string | undefined;
@@ -41,7 +41,7 @@ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
41
41
  order?: "asc" | "desc" | undefined;
42
42
  workflowId?: string | undefined;
43
43
  }, {
44
- status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
44
+ status?: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting" | undefined;
45
45
  startedAfter?: string | undefined;
46
46
  startedBefore?: string | undefined;
47
47
  limit?: string | undefined;
@@ -63,29 +63,29 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
63
63
  offset: z.ZodOptional<z.ZodString>;
64
64
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- status?: "cancelled" | "expired" | "pending" | "submitted" | undefined;
66
+ status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
67
67
  limit?: string | undefined;
68
68
  offset?: string | undefined;
69
69
  order?: "asc" | "desc" | undefined;
70
70
  workflowId?: string | undefined;
71
71
  workflowRunId?: string | undefined;
72
72
  nodeRunId?: string | undefined;
73
- interventionId?: string | undefined;
74
73
  nodeId?: string | undefined;
75
74
  nodeKey?: string | undefined;
75
+ interventionId?: string | undefined;
76
76
  requestedAfter?: string | undefined;
77
77
  requestedBefore?: string | undefined;
78
78
  }, {
79
- status?: "cancelled" | "expired" | "pending" | "submitted" | undefined;
79
+ status?: "expired" | "pending" | "cancelled" | "submitted" | undefined;
80
80
  limit?: string | undefined;
81
81
  offset?: string | undefined;
82
82
  order?: "asc" | "desc" | undefined;
83
83
  workflowId?: string | undefined;
84
84
  workflowRunId?: string | undefined;
85
85
  nodeRunId?: string | undefined;
86
- interventionId?: string | undefined;
87
86
  nodeId?: string | undefined;
88
87
  nodeKey?: string | undefined;
88
+ interventionId?: string | undefined;
89
89
  requestedAfter?: string | undefined;
90
90
  requestedBefore?: string | undefined;
91
91
  }>;
@@ -125,7 +125,7 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
125
125
  type: "user" | "serviceAccount" | "system";
126
126
  }>;
127
127
  }, "strip", z.ZodTypeAny, {
128
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
128
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
129
129
  projectId: string;
130
130
  id: string;
131
131
  startedAt: string;
@@ -135,10 +135,10 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
135
135
  type: "user" | "serviceAccount" | "system";
136
136
  };
137
137
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
138
- queuedAt?: string | undefined;
139
138
  finishedAt?: string | undefined;
139
+ queuedAt?: string | undefined;
140
140
  }, {
141
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
141
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
142
142
  projectId: string;
143
143
  id: string;
144
144
  startedAt: string;
@@ -148,8 +148,8 @@ export declare const WorkflowRunSummarySchema: z.ZodObject<{
148
148
  type: "user" | "serviceAccount" | "system";
149
149
  };
150
150
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
151
- queuedAt?: string | undefined;
152
151
  finishedAt?: string | undefined;
152
+ queuedAt?: string | undefined;
153
153
  }>;
154
154
  export declare const WorkflowRunDetailSchema: z.ZodObject<{
155
155
  id: z.ZodString;
@@ -174,7 +174,7 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
174
174
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
175
175
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
176
176
  }, "strip", z.ZodTypeAny, {
177
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
177
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
178
178
  projectId: string;
179
179
  id: string;
180
180
  startedAt: string;
@@ -185,11 +185,11 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
185
185
  type: "user" | "serviceAccount" | "system";
186
186
  };
187
187
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
188
- queuedAt?: string | undefined;
189
188
  finishedAt?: string | undefined;
190
189
  output?: Record<string, import("./common").JsonValue> | undefined;
190
+ queuedAt?: string | undefined;
191
191
  }, {
192
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
192
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
193
193
  projectId: string;
194
194
  id: string;
195
195
  startedAt: string;
@@ -200,9 +200,9 @@ export declare const WorkflowRunDetailSchema: z.ZodObject<{
200
200
  type: "user" | "serviceAccount" | "system";
201
201
  };
202
202
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
203
- queuedAt?: string | undefined;
204
203
  finishedAt?: string | undefined;
205
204
  output?: Record<string, import("./common").JsonValue> | undefined;
205
+ queuedAt?: string | undefined;
206
206
  }>;
207
207
  export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
208
208
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
@@ -277,7 +277,7 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
277
277
  startedAt: z.ZodOptional<z.ZodString>;
278
278
  completedAt: z.ZodOptional<z.ZodString>;
279
279
  }, "strip", z.ZodTypeAny, {
280
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
280
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
281
281
  attempt: number;
282
282
  modelId?: string | undefined;
283
283
  startedAt?: string | undefined;
@@ -305,7 +305,7 @@ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
305
305
  } | undefined;
306
306
  finishReason?: string | undefined;
307
307
  }, {
308
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
308
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
309
309
  attempt: number;
310
310
  modelId?: string | undefined;
311
311
  startedAt?: string | undefined;
@@ -421,6 +421,12 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
421
421
  type: "text";
422
422
  text: string;
423
423
  providerMetadata?: import("./common").JsonValue | undefined;
424
+ }>, z.ZodObject<{
425
+ type: z.ZodLiteral<"continuation">;
426
+ }, "strip", z.ZodTypeAny, {
427
+ type: "continuation";
428
+ }, {
429
+ type: "continuation";
424
430
  }>, z.ZodObject<{
425
431
  type: z.ZodLiteral<"reasoning">;
426
432
  text: z.ZodString;
@@ -511,18 +517,21 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
511
517
  objectTypeId: string;
512
518
  primaryId: string;
513
519
  }>;
520
+ label: z.ZodOptional<z.ZodString>;
514
521
  }, "strip", z.ZodTypeAny, {
515
522
  kind: "object";
516
523
  ref: {
517
524
  objectTypeId: string;
518
525
  primaryId: string;
519
526
  };
527
+ label?: string | undefined;
520
528
  }, {
521
529
  kind: "object";
522
530
  ref: {
523
531
  objectTypeId: string;
524
532
  primaryId: string;
525
533
  };
534
+ label?: string | undefined;
526
535
  }>, z.ZodObject<{
527
536
  kind: z.ZodLiteral<"app-state">;
528
537
  id: z.ZodString;
@@ -553,6 +562,7 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
553
562
  objectTypeId: string;
554
563
  primaryId: string;
555
564
  };
565
+ label?: string | undefined;
556
566
  } | {
557
567
  id: string;
558
568
  kind: "app-state";
@@ -569,6 +579,7 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
569
579
  objectTypeId: string;
570
580
  primaryId: string;
571
581
  };
582
+ label?: string | undefined;
572
583
  } | {
573
584
  id: string;
574
585
  kind: "app-state";
@@ -645,7 +656,7 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
645
656
  error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
646
657
  createdAt: z.ZodString;
647
658
  }, "strip", z.ZodTypeAny, {
648
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
659
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
649
660
  attempt: number;
650
661
  nodeRunId: string;
651
662
  createdAt: string;
@@ -685,6 +696,7 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
685
696
  objectTypeId: string;
686
697
  primaryId: string;
687
698
  };
699
+ label?: string | undefined;
688
700
  } | {
689
701
  id: string;
690
702
  kind: "app-state";
@@ -738,10 +750,12 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
738
750
  providerMetadata?: import("./common").JsonValue | undefined;
739
751
  dynamic?: boolean | undefined;
740
752
  providerExecuted?: boolean | undefined;
753
+ } | {
754
+ type: "continuation";
741
755
  })[] | undefined;
742
756
  failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
743
757
  }, {
744
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
758
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
745
759
  attempt: number;
746
760
  nodeRunId: string;
747
761
  createdAt: string;
@@ -781,6 +795,7 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
781
795
  objectTypeId: string;
782
796
  primaryId: string;
783
797
  };
798
+ label?: string | undefined;
784
799
  } | {
785
800
  id: string;
786
801
  kind: "app-state";
@@ -834,6 +849,8 @@ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
834
849
  providerMetadata?: import("./common").JsonValue | undefined;
835
850
  dynamic?: boolean | undefined;
836
851
  providerExecuted?: boolean | undefined;
852
+ } | {
853
+ type: "continuation";
837
854
  })[] | undefined;
838
855
  failurePhase?: "agent-loop" | "structured-finalizer" | undefined;
839
856
  }>;
@@ -925,7 +942,7 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
925
942
  startedAt: z.ZodOptional<z.ZodString>;
926
943
  completedAt: z.ZodOptional<z.ZodString>;
927
944
  }, "strip", z.ZodTypeAny, {
928
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
945
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
929
946
  attempt: number;
930
947
  modelId?: string | undefined;
931
948
  startedAt?: string | undefined;
@@ -953,7 +970,7 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
953
970
  } | undefined;
954
971
  finishReason?: string | undefined;
955
972
  }, {
956
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
973
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
957
974
  attempt: number;
958
975
  modelId?: string | undefined;
959
976
  startedAt?: string | undefined;
@@ -982,20 +999,20 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
982
999
  finishReason?: string | undefined;
983
1000
  }>>;
984
1001
  }, "strip", z.ZodTypeAny, {
985
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1002
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
986
1003
  projectId: string;
987
1004
  id: string;
988
1005
  startedAt: string;
989
1006
  input: Record<string, import("./common").JsonValue>;
990
1007
  workflowId: string;
991
1008
  workflowRunId: string;
992
- nodeId: string;
993
- nodeKey: string;
994
1009
  nodeIndex: number;
995
1010
  nodeType: "agent" | "action" | "step" | "intervention";
1011
+ nodeId: string;
1012
+ nodeKey: string;
996
1013
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
997
1014
  agentExecution?: {
998
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1015
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
999
1016
  attempt: number;
1000
1017
  modelId?: string | undefined;
1001
1018
  startedAt?: string | undefined;
@@ -1026,20 +1043,20 @@ export declare const WorkflowNodeRunSchema: z.ZodObject<{
1026
1043
  finishedAt?: string | undefined;
1027
1044
  output?: Record<string, import("./common").JsonValue> | undefined;
1028
1045
  }, {
1029
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1046
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1030
1047
  projectId: string;
1031
1048
  id: string;
1032
1049
  startedAt: string;
1033
1050
  input: Record<string, import("./common").JsonValue>;
1034
1051
  workflowId: string;
1035
1052
  workflowRunId: string;
1036
- nodeId: string;
1037
- nodeKey: string;
1038
1053
  nodeIndex: number;
1039
1054
  nodeType: "agent" | "action" | "step" | "intervention";
1055
+ nodeId: string;
1056
+ nodeKey: string;
1040
1057
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1041
1058
  agentExecution?: {
1042
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1059
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1043
1060
  attempt: number;
1044
1061
  modelId?: string | undefined;
1045
1062
  startedAt?: string | undefined;
@@ -1110,22 +1127,23 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1110
1127
  }>>;
1111
1128
  expiredAt: z.ZodOptional<z.ZodString>;
1112
1129
  }, "strip", z.ZodTypeAny, {
1113
- status: "cancelled" | "expired" | "pending" | "submitted";
1130
+ status: "expired" | "pending" | "cancelled" | "submitted";
1114
1131
  projectId: string;
1115
1132
  id: string;
1116
1133
  input: Record<string, import("./common").JsonValue>;
1117
1134
  workflowId: string;
1118
1135
  workflowRunId: string;
1119
1136
  nodeRunId: string;
1120
- interventionId: string;
1137
+ nodeIndex: number;
1121
1138
  nodeId: string;
1122
1139
  nodeKey: string;
1123
- nodeIndex: number;
1140
+ interventionId: string;
1124
1141
  defaultResponse: Record<string, import("./common").JsonValue>;
1125
1142
  requestedAt: string;
1126
1143
  response?: Record<string, import("./common").JsonValue> | undefined;
1127
1144
  expiresAt?: string | undefined;
1128
1145
  submittedAt?: string | undefined;
1146
+ expiredAt?: string | undefined;
1129
1147
  submittedBy?: {
1130
1148
  id: string;
1131
1149
  type: "user" | "serviceAccount" | "system";
@@ -1135,24 +1153,24 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1135
1153
  id: string;
1136
1154
  type: "user" | "serviceAccount" | "system";
1137
1155
  } | undefined;
1138
- expiredAt?: string | undefined;
1139
1156
  }, {
1140
- status: "cancelled" | "expired" | "pending" | "submitted";
1157
+ status: "expired" | "pending" | "cancelled" | "submitted";
1141
1158
  projectId: string;
1142
1159
  id: string;
1143
1160
  input: Record<string, import("./common").JsonValue>;
1144
1161
  workflowId: string;
1145
1162
  workflowRunId: string;
1146
1163
  nodeRunId: string;
1147
- interventionId: string;
1164
+ nodeIndex: number;
1148
1165
  nodeId: string;
1149
1166
  nodeKey: string;
1150
- nodeIndex: number;
1167
+ interventionId: string;
1151
1168
  defaultResponse: Record<string, import("./common").JsonValue>;
1152
1169
  requestedAt: string;
1153
1170
  response?: Record<string, import("./common").JsonValue> | undefined;
1154
1171
  expiresAt?: string | undefined;
1155
1172
  submittedAt?: string | undefined;
1173
+ expiredAt?: string | undefined;
1156
1174
  submittedBy?: {
1157
1175
  id: string;
1158
1176
  type: "user" | "serviceAccount" | "system";
@@ -1162,7 +1180,6 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
1162
1180
  id: string;
1163
1181
  type: "user" | "serviceAccount" | "system";
1164
1182
  } | undefined;
1165
- expiredAt?: string | undefined;
1166
1183
  }>;
1167
1184
  export declare const WorkflowSchema: z.ZodObject<{
1168
1185
  id: z.ZodString;
@@ -1203,14 +1220,14 @@ export declare const WorkflowSchema: z.ZodObject<{
1203
1220
  params: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1204
1221
  }, "strip", z.ZodTypeAny, {
1205
1222
  id: string;
1206
- type: "action";
1207
1223
  params: Record<string, import("./common").JsonValue>;
1224
+ type: "action";
1208
1225
  key: string;
1209
1226
  objectTypeId?: string | undefined;
1210
1227
  }, {
1211
1228
  id: string;
1212
- type: "action";
1213
1229
  params: Record<string, import("./common").JsonValue>;
1230
+ type: "action";
1214
1231
  key: string;
1215
1232
  objectTypeId?: string | undefined;
1216
1233
  }>, z.ZodObject<{
@@ -1273,7 +1290,7 @@ export declare const WorkflowSchema: z.ZodObject<{
1273
1290
  type: "user" | "serviceAccount" | "system";
1274
1291
  }>;
1275
1292
  }, "strip", z.ZodTypeAny, {
1276
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1293
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1277
1294
  projectId: string;
1278
1295
  id: string;
1279
1296
  startedAt: string;
@@ -1283,10 +1300,10 @@ export declare const WorkflowSchema: z.ZodObject<{
1283
1300
  type: "user" | "serviceAccount" | "system";
1284
1301
  };
1285
1302
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1286
- queuedAt?: string | undefined;
1287
1303
  finishedAt?: string | undefined;
1304
+ queuedAt?: string | undefined;
1288
1305
  }, {
1289
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1306
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1290
1307
  projectId: string;
1291
1308
  id: string;
1292
1309
  startedAt: string;
@@ -1296,8 +1313,8 @@ export declare const WorkflowSchema: z.ZodObject<{
1296
1313
  type: "user" | "serviceAccount" | "system";
1297
1314
  };
1298
1315
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1299
- queuedAt?: string | undefined;
1300
1316
  finishedAt?: string | undefined;
1317
+ queuedAt?: string | undefined;
1301
1318
  }>>;
1302
1319
  }, "strip", z.ZodTypeAny, {
1303
1320
  id: string;
@@ -1314,8 +1331,8 @@ export declare const WorkflowSchema: z.ZodObject<{
1314
1331
  input: Record<string, import("./common").JsonValue>;
1315
1332
  } | {
1316
1333
  id: string;
1317
- type: "action";
1318
1334
  params: Record<string, import("./common").JsonValue>;
1335
+ type: "action";
1319
1336
  key: string;
1320
1337
  objectTypeId?: string | undefined;
1321
1338
  } | {
@@ -1333,7 +1350,7 @@ export declare const WorkflowSchema: z.ZodObject<{
1333
1350
  input: Record<string, import("./common").JsonValue>;
1334
1351
  })[];
1335
1352
  latestRun: {
1336
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1353
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1337
1354
  projectId: string;
1338
1355
  id: string;
1339
1356
  startedAt: string;
@@ -1343,8 +1360,8 @@ export declare const WorkflowSchema: z.ZodObject<{
1343
1360
  type: "user" | "serviceAccount" | "system";
1344
1361
  };
1345
1362
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1346
- queuedAt?: string | undefined;
1347
1363
  finishedAt?: string | undefined;
1364
+ queuedAt?: string | undefined;
1348
1365
  } | null;
1349
1366
  }, {
1350
1367
  id: string;
@@ -1361,8 +1378,8 @@ export declare const WorkflowSchema: z.ZodObject<{
1361
1378
  input: Record<string, import("./common").JsonValue>;
1362
1379
  } | {
1363
1380
  id: string;
1364
- type: "action";
1365
1381
  params: Record<string, import("./common").JsonValue>;
1382
+ type: "action";
1366
1383
  key: string;
1367
1384
  objectTypeId?: string | undefined;
1368
1385
  } | {
@@ -1380,7 +1397,7 @@ export declare const WorkflowSchema: z.ZodObject<{
1380
1397
  input: Record<string, import("./common").JsonValue>;
1381
1398
  })[];
1382
1399
  latestRun: {
1383
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1400
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1384
1401
  projectId: string;
1385
1402
  id: string;
1386
1403
  startedAt: string;
@@ -1390,8 +1407,8 @@ export declare const WorkflowSchema: z.ZodObject<{
1390
1407
  type: "user" | "serviceAccount" | "system";
1391
1408
  };
1392
1409
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1393
- queuedAt?: string | undefined;
1394
1410
  finishedAt?: string | undefined;
1411
+ queuedAt?: string | undefined;
1395
1412
  } | null;
1396
1413
  }>;
1397
1414
  export declare const WorkflowRunListResponseSchema: z.ZodObject<{
@@ -1415,7 +1432,7 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1415
1432
  type: "user" | "serviceAccount" | "system";
1416
1433
  }>;
1417
1434
  }, "strip", z.ZodTypeAny, {
1418
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1435
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1419
1436
  projectId: string;
1420
1437
  id: string;
1421
1438
  startedAt: string;
@@ -1425,10 +1442,10 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1425
1442
  type: "user" | "serviceAccount" | "system";
1426
1443
  };
1427
1444
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1428
- queuedAt?: string | undefined;
1429
1445
  finishedAt?: string | undefined;
1446
+ queuedAt?: string | undefined;
1430
1447
  }, {
1431
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1448
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1432
1449
  projectId: string;
1433
1450
  id: string;
1434
1451
  startedAt: string;
@@ -1438,14 +1455,14 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1438
1455
  type: "user" | "serviceAccount" | "system";
1439
1456
  };
1440
1457
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1441
- queuedAt?: string | undefined;
1442
1458
  finishedAt?: string | undefined;
1459
+ queuedAt?: string | undefined;
1443
1460
  }>, "many">;
1444
1461
  hasMore: z.ZodBoolean;
1445
1462
  total: z.ZodNumber;
1446
1463
  }, "strip", z.ZodTypeAny, {
1447
1464
  runs: {
1448
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1465
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1449
1466
  projectId: string;
1450
1467
  id: string;
1451
1468
  startedAt: string;
@@ -1455,14 +1472,14 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1455
1472
  type: "user" | "serviceAccount" | "system";
1456
1473
  };
1457
1474
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1458
- queuedAt?: string | undefined;
1459
1475
  finishedAt?: string | undefined;
1476
+ queuedAt?: string | undefined;
1460
1477
  }[];
1461
1478
  hasMore: boolean;
1462
1479
  total: number;
1463
1480
  }, {
1464
1481
  runs: {
1465
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1482
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1466
1483
  projectId: string;
1467
1484
  id: string;
1468
1485
  startedAt: string;
@@ -1472,8 +1489,8 @@ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
1472
1489
  type: "user" | "serviceAccount" | "system";
1473
1490
  };
1474
1491
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1475
- queuedAt?: string | undefined;
1476
1492
  finishedAt?: string | undefined;
1493
+ queuedAt?: string | undefined;
1477
1494
  }[];
1478
1495
  hasMore: boolean;
1479
1496
  total: number;
@@ -1502,7 +1519,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1502
1519
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1503
1520
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1504
1521
  }, "strip", z.ZodTypeAny, {
1505
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1522
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1506
1523
  projectId: string;
1507
1524
  id: string;
1508
1525
  startedAt: string;
@@ -1513,11 +1530,11 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1513
1530
  type: "user" | "serviceAccount" | "system";
1514
1531
  };
1515
1532
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1516
- queuedAt?: string | undefined;
1517
1533
  finishedAt?: string | undefined;
1518
1534
  output?: Record<string, import("./common").JsonValue> | undefined;
1535
+ queuedAt?: string | undefined;
1519
1536
  }, {
1520
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1537
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1521
1538
  projectId: string;
1522
1539
  id: string;
1523
1540
  startedAt: string;
@@ -1528,9 +1545,9 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1528
1545
  type: "user" | "serviceAccount" | "system";
1529
1546
  };
1530
1547
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1531
- queuedAt?: string | undefined;
1532
1548
  finishedAt?: string | undefined;
1533
1549
  output?: Record<string, import("./common").JsonValue> | undefined;
1550
+ queuedAt?: string | undefined;
1534
1551
  }>;
1535
1552
  nodes: z.ZodArray<z.ZodObject<{
1536
1553
  id: z.ZodString;
@@ -1620,7 +1637,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1620
1637
  startedAt: z.ZodOptional<z.ZodString>;
1621
1638
  completedAt: z.ZodOptional<z.ZodString>;
1622
1639
  }, "strip", z.ZodTypeAny, {
1623
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1640
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1624
1641
  attempt: number;
1625
1642
  modelId?: string | undefined;
1626
1643
  startedAt?: string | undefined;
@@ -1648,7 +1665,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1648
1665
  } | undefined;
1649
1666
  finishReason?: string | undefined;
1650
1667
  }, {
1651
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1668
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1652
1669
  attempt: number;
1653
1670
  modelId?: string | undefined;
1654
1671
  startedAt?: string | undefined;
@@ -1677,20 +1694,20 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1677
1694
  finishReason?: string | undefined;
1678
1695
  }>>;
1679
1696
  }, "strip", z.ZodTypeAny, {
1680
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1697
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1681
1698
  projectId: string;
1682
1699
  id: string;
1683
1700
  startedAt: string;
1684
1701
  input: Record<string, import("./common").JsonValue>;
1685
1702
  workflowId: string;
1686
1703
  workflowRunId: string;
1687
- nodeId: string;
1688
- nodeKey: string;
1689
1704
  nodeIndex: number;
1690
1705
  nodeType: "agent" | "action" | "step" | "intervention";
1706
+ nodeId: string;
1707
+ nodeKey: string;
1691
1708
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1692
1709
  agentExecution?: {
1693
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1710
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1694
1711
  attempt: number;
1695
1712
  modelId?: string | undefined;
1696
1713
  startedAt?: string | undefined;
@@ -1721,20 +1738,20 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1721
1738
  finishedAt?: string | undefined;
1722
1739
  output?: Record<string, import("./common").JsonValue> | undefined;
1723
1740
  }, {
1724
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1741
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1725
1742
  projectId: string;
1726
1743
  id: string;
1727
1744
  startedAt: string;
1728
1745
  input: Record<string, import("./common").JsonValue>;
1729
1746
  workflowId: string;
1730
1747
  workflowRunId: string;
1731
- nodeId: string;
1732
- nodeKey: string;
1733
1748
  nodeIndex: number;
1734
1749
  nodeType: "agent" | "action" | "step" | "intervention";
1750
+ nodeId: string;
1751
+ nodeKey: string;
1735
1752
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1736
1753
  agentExecution?: {
1737
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1754
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1738
1755
  attempt: number;
1739
1756
  modelId?: string | undefined;
1740
1757
  startedAt?: string | undefined;
@@ -1767,7 +1784,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1767
1784
  }>, "many">;
1768
1785
  }, "strip", z.ZodTypeAny, {
1769
1786
  run: {
1770
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1787
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1771
1788
  projectId: string;
1772
1789
  id: string;
1773
1790
  startedAt: string;
@@ -1778,25 +1795,25 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1778
1795
  type: "user" | "serviceAccount" | "system";
1779
1796
  };
1780
1797
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1781
- queuedAt?: string | undefined;
1782
1798
  finishedAt?: string | undefined;
1783
1799
  output?: Record<string, import("./common").JsonValue> | undefined;
1800
+ queuedAt?: string | undefined;
1784
1801
  };
1785
1802
  nodes: {
1786
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1803
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1787
1804
  projectId: string;
1788
1805
  id: string;
1789
1806
  startedAt: string;
1790
1807
  input: Record<string, import("./common").JsonValue>;
1791
1808
  workflowId: string;
1792
1809
  workflowRunId: string;
1793
- nodeId: string;
1794
- nodeKey: string;
1795
1810
  nodeIndex: number;
1796
1811
  nodeType: "agent" | "action" | "step" | "intervention";
1812
+ nodeId: string;
1813
+ nodeKey: string;
1797
1814
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1798
1815
  agentExecution?: {
1799
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1816
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1800
1817
  attempt: number;
1801
1818
  modelId?: string | undefined;
1802
1819
  startedAt?: string | undefined;
@@ -1829,7 +1846,7 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1829
1846
  }[];
1830
1847
  }, {
1831
1848
  run: {
1832
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1849
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1833
1850
  projectId: string;
1834
1851
  id: string;
1835
1852
  startedAt: string;
@@ -1840,25 +1857,25 @@ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
1840
1857
  type: "user" | "serviceAccount" | "system";
1841
1858
  };
1842
1859
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1843
- queuedAt?: string | undefined;
1844
1860
  finishedAt?: string | undefined;
1845
1861
  output?: Record<string, import("./common").JsonValue> | undefined;
1862
+ queuedAt?: string | undefined;
1846
1863
  };
1847
1864
  nodes: {
1848
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1865
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
1849
1866
  projectId: string;
1850
1867
  id: string;
1851
1868
  startedAt: string;
1852
1869
  input: Record<string, import("./common").JsonValue>;
1853
1870
  workflowId: string;
1854
1871
  workflowRunId: string;
1855
- nodeId: string;
1856
- nodeKey: string;
1857
1872
  nodeIndex: number;
1858
1873
  nodeType: "agent" | "action" | "step" | "intervention";
1874
+ nodeId: string;
1875
+ nodeKey: string;
1859
1876
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1860
1877
  agentExecution?: {
1861
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1878
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
1862
1879
  attempt: number;
1863
1880
  modelId?: string | undefined;
1864
1881
  startedAt?: string | undefined;
@@ -1914,7 +1931,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1914
1931
  input: z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
1915
1932
  output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>>;
1916
1933
  }, "strip", z.ZodTypeAny, {
1917
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1934
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1918
1935
  projectId: string;
1919
1936
  id: string;
1920
1937
  startedAt: string;
@@ -1925,11 +1942,11 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1925
1942
  type: "user" | "serviceAccount" | "system";
1926
1943
  };
1927
1944
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1928
- queuedAt?: string | undefined;
1929
1945
  finishedAt?: string | undefined;
1930
1946
  output?: Record<string, import("./common").JsonValue> | undefined;
1947
+ queuedAt?: string | undefined;
1931
1948
  }, {
1932
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1949
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
1933
1950
  projectId: string;
1934
1951
  id: string;
1935
1952
  startedAt: string;
@@ -1940,9 +1957,9 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1940
1957
  type: "user" | "serviceAccount" | "system";
1941
1958
  };
1942
1959
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
1943
- queuedAt?: string | undefined;
1944
1960
  finishedAt?: string | undefined;
1945
1961
  output?: Record<string, import("./common").JsonValue> | undefined;
1962
+ queuedAt?: string | undefined;
1946
1963
  }>;
1947
1964
  nodes: z.ZodArray<z.ZodObject<{
1948
1965
  id: z.ZodString;
@@ -2032,7 +2049,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2032
2049
  startedAt: z.ZodOptional<z.ZodString>;
2033
2050
  completedAt: z.ZodOptional<z.ZodString>;
2034
2051
  }, "strip", z.ZodTypeAny, {
2035
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2052
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2036
2053
  attempt: number;
2037
2054
  modelId?: string | undefined;
2038
2055
  startedAt?: string | undefined;
@@ -2060,7 +2077,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2060
2077
  } | undefined;
2061
2078
  finishReason?: string | undefined;
2062
2079
  }, {
2063
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2080
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2064
2081
  attempt: number;
2065
2082
  modelId?: string | undefined;
2066
2083
  startedAt?: string | undefined;
@@ -2089,20 +2106,20 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2089
2106
  finishReason?: string | undefined;
2090
2107
  }>>;
2091
2108
  }, "strip", z.ZodTypeAny, {
2092
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
2109
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2093
2110
  projectId: string;
2094
2111
  id: string;
2095
2112
  startedAt: string;
2096
2113
  input: Record<string, import("./common").JsonValue>;
2097
2114
  workflowId: string;
2098
2115
  workflowRunId: string;
2099
- nodeId: string;
2100
- nodeKey: string;
2101
2116
  nodeIndex: number;
2102
2117
  nodeType: "agent" | "action" | "step" | "intervention";
2118
+ nodeId: string;
2119
+ nodeKey: string;
2103
2120
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2104
2121
  agentExecution?: {
2105
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2122
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2106
2123
  attempt: number;
2107
2124
  modelId?: string | undefined;
2108
2125
  startedAt?: string | undefined;
@@ -2133,20 +2150,20 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2133
2150
  finishedAt?: string | undefined;
2134
2151
  output?: Record<string, import("./common").JsonValue> | undefined;
2135
2152
  }, {
2136
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
2153
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2137
2154
  projectId: string;
2138
2155
  id: string;
2139
2156
  startedAt: string;
2140
2157
  input: Record<string, import("./common").JsonValue>;
2141
2158
  workflowId: string;
2142
2159
  workflowRunId: string;
2143
- nodeId: string;
2144
- nodeKey: string;
2145
2160
  nodeIndex: number;
2146
2161
  nodeType: "agent" | "action" | "step" | "intervention";
2162
+ nodeId: string;
2163
+ nodeKey: string;
2147
2164
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2148
2165
  agentExecution?: {
2149
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2166
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2150
2167
  attempt: number;
2151
2168
  modelId?: string | undefined;
2152
2169
  startedAt?: string | undefined;
@@ -2179,7 +2196,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2179
2196
  }>, "many">;
2180
2197
  }, "strip", z.ZodTypeAny, {
2181
2198
  run: {
2182
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
2199
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2183
2200
  projectId: string;
2184
2201
  id: string;
2185
2202
  startedAt: string;
@@ -2190,25 +2207,25 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2190
2207
  type: "user" | "serviceAccount" | "system";
2191
2208
  };
2192
2209
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2193
- queuedAt?: string | undefined;
2194
2210
  finishedAt?: string | undefined;
2195
2211
  output?: Record<string, import("./common").JsonValue> | undefined;
2212
+ queuedAt?: string | undefined;
2196
2213
  };
2197
2214
  nodes: {
2198
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
2215
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2199
2216
  projectId: string;
2200
2217
  id: string;
2201
2218
  startedAt: string;
2202
2219
  input: Record<string, import("./common").JsonValue>;
2203
2220
  workflowId: string;
2204
2221
  workflowRunId: string;
2205
- nodeId: string;
2206
- nodeKey: string;
2207
2222
  nodeIndex: number;
2208
2223
  nodeType: "agent" | "action" | "step" | "intervention";
2224
+ nodeId: string;
2225
+ nodeKey: string;
2209
2226
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2210
2227
  agentExecution?: {
2211
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2228
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2212
2229
  attempt: number;
2213
2230
  modelId?: string | undefined;
2214
2231
  startedAt?: string | undefined;
@@ -2241,7 +2258,7 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2241
2258
  }[];
2242
2259
  }, {
2243
2260
  run: {
2244
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
2261
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled" | "waiting";
2245
2262
  projectId: string;
2246
2263
  id: string;
2247
2264
  startedAt: string;
@@ -2252,25 +2269,25 @@ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
2252
2269
  type: "user" | "serviceAccount" | "system";
2253
2270
  };
2254
2271
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2255
- queuedAt?: string | undefined;
2256
2272
  finishedAt?: string | undefined;
2257
2273
  output?: Record<string, import("./common").JsonValue> | undefined;
2274
+ queuedAt?: string | undefined;
2258
2275
  };
2259
2276
  nodes: {
2260
- status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
2277
+ status: "succeeded" | "failed" | "running" | "cancelled" | "waiting";
2261
2278
  projectId: string;
2262
2279
  id: string;
2263
2280
  startedAt: string;
2264
2281
  input: Record<string, import("./common").JsonValue>;
2265
2282
  workflowId: string;
2266
2283
  workflowRunId: string;
2267
- nodeId: string;
2268
- nodeKey: string;
2269
2284
  nodeIndex: number;
2270
2285
  nodeType: "agent" | "action" | "step" | "intervention";
2286
+ nodeId: string;
2287
+ nodeKey: string;
2271
2288
  error?: SixbFailure<"ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | "workflow.node_failed"> | undefined;
2272
2289
  agentExecution?: {
2273
- status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2290
+ status: "succeeded" | "failed" | "queued" | "running" | "cancelled";
2274
2291
  attempt: number;
2275
2292
  modelId?: string | undefined;
2276
2293
  startedAt?: string | undefined;
@@ -2343,22 +2360,23 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2343
2360
  }>>;
2344
2361
  expiredAt: z.ZodOptional<z.ZodString>;
2345
2362
  }, "strip", z.ZodTypeAny, {
2346
- status: "cancelled" | "expired" | "pending" | "submitted";
2363
+ status: "expired" | "pending" | "cancelled" | "submitted";
2347
2364
  projectId: string;
2348
2365
  id: string;
2349
2366
  input: Record<string, import("./common").JsonValue>;
2350
2367
  workflowId: string;
2351
2368
  workflowRunId: string;
2352
2369
  nodeRunId: string;
2353
- interventionId: string;
2370
+ nodeIndex: number;
2354
2371
  nodeId: string;
2355
2372
  nodeKey: string;
2356
- nodeIndex: number;
2373
+ interventionId: string;
2357
2374
  defaultResponse: Record<string, import("./common").JsonValue>;
2358
2375
  requestedAt: string;
2359
2376
  response?: Record<string, import("./common").JsonValue> | undefined;
2360
2377
  expiresAt?: string | undefined;
2361
2378
  submittedAt?: string | undefined;
2379
+ expiredAt?: string | undefined;
2362
2380
  submittedBy?: {
2363
2381
  id: string;
2364
2382
  type: "user" | "serviceAccount" | "system";
@@ -2368,24 +2386,24 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2368
2386
  id: string;
2369
2387
  type: "user" | "serviceAccount" | "system";
2370
2388
  } | undefined;
2371
- expiredAt?: string | undefined;
2372
2389
  }, {
2373
- status: "cancelled" | "expired" | "pending" | "submitted";
2390
+ status: "expired" | "pending" | "cancelled" | "submitted";
2374
2391
  projectId: string;
2375
2392
  id: string;
2376
2393
  input: Record<string, import("./common").JsonValue>;
2377
2394
  workflowId: string;
2378
2395
  workflowRunId: string;
2379
2396
  nodeRunId: string;
2380
- interventionId: string;
2397
+ nodeIndex: number;
2381
2398
  nodeId: string;
2382
2399
  nodeKey: string;
2383
- nodeIndex: number;
2400
+ interventionId: string;
2384
2401
  defaultResponse: Record<string, import("./common").JsonValue>;
2385
2402
  requestedAt: string;
2386
2403
  response?: Record<string, import("./common").JsonValue> | undefined;
2387
2404
  expiresAt?: string | undefined;
2388
2405
  submittedAt?: string | undefined;
2406
+ expiredAt?: string | undefined;
2389
2407
  submittedBy?: {
2390
2408
  id: string;
2391
2409
  type: "user" | "serviceAccount" | "system";
@@ -2395,7 +2413,6 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2395
2413
  id: string;
2396
2414
  type: "user" | "serviceAccount" | "system";
2397
2415
  } | undefined;
2398
- expiredAt?: string | undefined;
2399
2416
  }>, "many">;
2400
2417
  hasMore: z.ZodBoolean;
2401
2418
  total: z.ZodNumber;
@@ -2403,22 +2420,23 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2403
2420
  hasMore: boolean;
2404
2421
  total: number;
2405
2422
  interventions: {
2406
- status: "cancelled" | "expired" | "pending" | "submitted";
2423
+ status: "expired" | "pending" | "cancelled" | "submitted";
2407
2424
  projectId: string;
2408
2425
  id: string;
2409
2426
  input: Record<string, import("./common").JsonValue>;
2410
2427
  workflowId: string;
2411
2428
  workflowRunId: string;
2412
2429
  nodeRunId: string;
2413
- interventionId: string;
2430
+ nodeIndex: number;
2414
2431
  nodeId: string;
2415
2432
  nodeKey: string;
2416
- nodeIndex: number;
2433
+ interventionId: string;
2417
2434
  defaultResponse: Record<string, import("./common").JsonValue>;
2418
2435
  requestedAt: string;
2419
2436
  response?: Record<string, import("./common").JsonValue> | undefined;
2420
2437
  expiresAt?: string | undefined;
2421
2438
  submittedAt?: string | undefined;
2439
+ expiredAt?: string | undefined;
2422
2440
  submittedBy?: {
2423
2441
  id: string;
2424
2442
  type: "user" | "serviceAccount" | "system";
@@ -2428,28 +2446,28 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2428
2446
  id: string;
2429
2447
  type: "user" | "serviceAccount" | "system";
2430
2448
  } | undefined;
2431
- expiredAt?: string | undefined;
2432
2449
  }[];
2433
2450
  }, {
2434
2451
  hasMore: boolean;
2435
2452
  total: number;
2436
2453
  interventions: {
2437
- status: "cancelled" | "expired" | "pending" | "submitted";
2454
+ status: "expired" | "pending" | "cancelled" | "submitted";
2438
2455
  projectId: string;
2439
2456
  id: string;
2440
2457
  input: Record<string, import("./common").JsonValue>;
2441
2458
  workflowId: string;
2442
2459
  workflowRunId: string;
2443
2460
  nodeRunId: string;
2444
- interventionId: string;
2461
+ nodeIndex: number;
2445
2462
  nodeId: string;
2446
2463
  nodeKey: string;
2447
- nodeIndex: number;
2464
+ interventionId: string;
2448
2465
  defaultResponse: Record<string, import("./common").JsonValue>;
2449
2466
  requestedAt: string;
2450
2467
  response?: Record<string, import("./common").JsonValue> | undefined;
2451
2468
  expiresAt?: string | undefined;
2452
2469
  submittedAt?: string | undefined;
2470
+ expiredAt?: string | undefined;
2453
2471
  submittedBy?: {
2454
2472
  id: string;
2455
2473
  type: "user" | "serviceAccount" | "system";
@@ -2459,7 +2477,6 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
2459
2477
  id: string;
2460
2478
  type: "user" | "serviceAccount" | "system";
2461
2479
  } | undefined;
2462
- expiredAt?: string | undefined;
2463
2480
  }[];
2464
2481
  }>;
2465
2482
  export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
@@ -2503,22 +2520,23 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2503
2520
  }>>;
2504
2521
  expiredAt: z.ZodOptional<z.ZodString>;
2505
2522
  }, "strip", z.ZodTypeAny, {
2506
- status: "cancelled" | "expired" | "pending" | "submitted";
2523
+ status: "expired" | "pending" | "cancelled" | "submitted";
2507
2524
  projectId: string;
2508
2525
  id: string;
2509
2526
  input: Record<string, import("./common").JsonValue>;
2510
2527
  workflowId: string;
2511
2528
  workflowRunId: string;
2512
2529
  nodeRunId: string;
2513
- interventionId: string;
2530
+ nodeIndex: number;
2514
2531
  nodeId: string;
2515
2532
  nodeKey: string;
2516
- nodeIndex: number;
2533
+ interventionId: string;
2517
2534
  defaultResponse: Record<string, import("./common").JsonValue>;
2518
2535
  requestedAt: string;
2519
2536
  response?: Record<string, import("./common").JsonValue> | undefined;
2520
2537
  expiresAt?: string | undefined;
2521
2538
  submittedAt?: string | undefined;
2539
+ expiredAt?: string | undefined;
2522
2540
  submittedBy?: {
2523
2541
  id: string;
2524
2542
  type: "user" | "serviceAccount" | "system";
@@ -2528,24 +2546,24 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2528
2546
  id: string;
2529
2547
  type: "user" | "serviceAccount" | "system";
2530
2548
  } | undefined;
2531
- expiredAt?: string | undefined;
2532
2549
  }, {
2533
- status: "cancelled" | "expired" | "pending" | "submitted";
2550
+ status: "expired" | "pending" | "cancelled" | "submitted";
2534
2551
  projectId: string;
2535
2552
  id: string;
2536
2553
  input: Record<string, import("./common").JsonValue>;
2537
2554
  workflowId: string;
2538
2555
  workflowRunId: string;
2539
2556
  nodeRunId: string;
2540
- interventionId: string;
2557
+ nodeIndex: number;
2541
2558
  nodeId: string;
2542
2559
  nodeKey: string;
2543
- nodeIndex: number;
2560
+ interventionId: string;
2544
2561
  defaultResponse: Record<string, import("./common").JsonValue>;
2545
2562
  requestedAt: string;
2546
2563
  response?: Record<string, import("./common").JsonValue> | undefined;
2547
2564
  expiresAt?: string | undefined;
2548
2565
  submittedAt?: string | undefined;
2566
+ expiredAt?: string | undefined;
2549
2567
  submittedBy?: {
2550
2568
  id: string;
2551
2569
  type: "user" | "serviceAccount" | "system";
@@ -2555,28 +2573,28 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2555
2573
  id: string;
2556
2574
  type: "user" | "serviceAccount" | "system";
2557
2575
  } | undefined;
2558
- expiredAt?: string | undefined;
2559
2576
  }>;
2560
2577
  jobId: z.ZodString;
2561
2578
  }, "strip", z.ZodTypeAny, {
2562
2579
  jobId: string;
2563
2580
  intervention: {
2564
- status: "cancelled" | "expired" | "pending" | "submitted";
2581
+ status: "expired" | "pending" | "cancelled" | "submitted";
2565
2582
  projectId: string;
2566
2583
  id: string;
2567
2584
  input: Record<string, import("./common").JsonValue>;
2568
2585
  workflowId: string;
2569
2586
  workflowRunId: string;
2570
2587
  nodeRunId: string;
2571
- interventionId: string;
2588
+ nodeIndex: number;
2572
2589
  nodeId: string;
2573
2590
  nodeKey: string;
2574
- nodeIndex: number;
2591
+ interventionId: string;
2575
2592
  defaultResponse: Record<string, import("./common").JsonValue>;
2576
2593
  requestedAt: string;
2577
2594
  response?: Record<string, import("./common").JsonValue> | undefined;
2578
2595
  expiresAt?: string | undefined;
2579
2596
  submittedAt?: string | undefined;
2597
+ expiredAt?: string | undefined;
2580
2598
  submittedBy?: {
2581
2599
  id: string;
2582
2600
  type: "user" | "serviceAccount" | "system";
@@ -2586,27 +2604,27 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2586
2604
  id: string;
2587
2605
  type: "user" | "serviceAccount" | "system";
2588
2606
  } | undefined;
2589
- expiredAt?: string | undefined;
2590
2607
  };
2591
2608
  }, {
2592
2609
  jobId: string;
2593
2610
  intervention: {
2594
- status: "cancelled" | "expired" | "pending" | "submitted";
2611
+ status: "expired" | "pending" | "cancelled" | "submitted";
2595
2612
  projectId: string;
2596
2613
  id: string;
2597
2614
  input: Record<string, import("./common").JsonValue>;
2598
2615
  workflowId: string;
2599
2616
  workflowRunId: string;
2600
2617
  nodeRunId: string;
2601
- interventionId: string;
2618
+ nodeIndex: number;
2602
2619
  nodeId: string;
2603
2620
  nodeKey: string;
2604
- nodeIndex: number;
2621
+ interventionId: string;
2605
2622
  defaultResponse: Record<string, import("./common").JsonValue>;
2606
2623
  requestedAt: string;
2607
2624
  response?: Record<string, import("./common").JsonValue> | undefined;
2608
2625
  expiresAt?: string | undefined;
2609
2626
  submittedAt?: string | undefined;
2627
+ expiredAt?: string | undefined;
2610
2628
  submittedBy?: {
2611
2629
  id: string;
2612
2630
  type: "user" | "serviceAccount" | "system";
@@ -2616,7 +2634,6 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
2616
2634
  id: string;
2617
2635
  type: "user" | "serviceAccount" | "system";
2618
2636
  } | undefined;
2619
- expiredAt?: string | undefined;
2620
2637
  };
2621
2638
  }>;
2622
2639
  export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
@@ -2660,22 +2677,23 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2660
2677
  }>>;
2661
2678
  expiredAt: z.ZodOptional<z.ZodString>;
2662
2679
  }, "strip", z.ZodTypeAny, {
2663
- status: "cancelled" | "expired" | "pending" | "submitted";
2680
+ status: "expired" | "pending" | "cancelled" | "submitted";
2664
2681
  projectId: string;
2665
2682
  id: string;
2666
2683
  input: Record<string, import("./common").JsonValue>;
2667
2684
  workflowId: string;
2668
2685
  workflowRunId: string;
2669
2686
  nodeRunId: string;
2670
- interventionId: string;
2687
+ nodeIndex: number;
2671
2688
  nodeId: string;
2672
2689
  nodeKey: string;
2673
- nodeIndex: number;
2690
+ interventionId: string;
2674
2691
  defaultResponse: Record<string, import("./common").JsonValue>;
2675
2692
  requestedAt: string;
2676
2693
  response?: Record<string, import("./common").JsonValue> | undefined;
2677
2694
  expiresAt?: string | undefined;
2678
2695
  submittedAt?: string | undefined;
2696
+ expiredAt?: string | undefined;
2679
2697
  submittedBy?: {
2680
2698
  id: string;
2681
2699
  type: "user" | "serviceAccount" | "system";
@@ -2685,24 +2703,24 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2685
2703
  id: string;
2686
2704
  type: "user" | "serviceAccount" | "system";
2687
2705
  } | undefined;
2688
- expiredAt?: string | undefined;
2689
2706
  }, {
2690
- status: "cancelled" | "expired" | "pending" | "submitted";
2707
+ status: "expired" | "pending" | "cancelled" | "submitted";
2691
2708
  projectId: string;
2692
2709
  id: string;
2693
2710
  input: Record<string, import("./common").JsonValue>;
2694
2711
  workflowId: string;
2695
2712
  workflowRunId: string;
2696
2713
  nodeRunId: string;
2697
- interventionId: string;
2714
+ nodeIndex: number;
2698
2715
  nodeId: string;
2699
2716
  nodeKey: string;
2700
- nodeIndex: number;
2717
+ interventionId: string;
2701
2718
  defaultResponse: Record<string, import("./common").JsonValue>;
2702
2719
  requestedAt: string;
2703
2720
  response?: Record<string, import("./common").JsonValue> | undefined;
2704
2721
  expiresAt?: string | undefined;
2705
2722
  submittedAt?: string | undefined;
2723
+ expiredAt?: string | undefined;
2706
2724
  submittedBy?: {
2707
2725
  id: string;
2708
2726
  type: "user" | "serviceAccount" | "system";
@@ -2712,26 +2730,26 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2712
2730
  id: string;
2713
2731
  type: "user" | "serviceAccount" | "system";
2714
2732
  } | undefined;
2715
- expiredAt?: string | undefined;
2716
2733
  }>;
2717
2734
  }, "strip", z.ZodTypeAny, {
2718
2735
  intervention: {
2719
- status: "cancelled" | "expired" | "pending" | "submitted";
2736
+ status: "expired" | "pending" | "cancelled" | "submitted";
2720
2737
  projectId: string;
2721
2738
  id: string;
2722
2739
  input: Record<string, import("./common").JsonValue>;
2723
2740
  workflowId: string;
2724
2741
  workflowRunId: string;
2725
2742
  nodeRunId: string;
2726
- interventionId: string;
2743
+ nodeIndex: number;
2727
2744
  nodeId: string;
2728
2745
  nodeKey: string;
2729
- nodeIndex: number;
2746
+ interventionId: string;
2730
2747
  defaultResponse: Record<string, import("./common").JsonValue>;
2731
2748
  requestedAt: string;
2732
2749
  response?: Record<string, import("./common").JsonValue> | undefined;
2733
2750
  expiresAt?: string | undefined;
2734
2751
  submittedAt?: string | undefined;
2752
+ expiredAt?: string | undefined;
2735
2753
  submittedBy?: {
2736
2754
  id: string;
2737
2755
  type: "user" | "serviceAccount" | "system";
@@ -2741,26 +2759,26 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2741
2759
  id: string;
2742
2760
  type: "user" | "serviceAccount" | "system";
2743
2761
  } | undefined;
2744
- expiredAt?: string | undefined;
2745
2762
  };
2746
2763
  }, {
2747
2764
  intervention: {
2748
- status: "cancelled" | "expired" | "pending" | "submitted";
2765
+ status: "expired" | "pending" | "cancelled" | "submitted";
2749
2766
  projectId: string;
2750
2767
  id: string;
2751
2768
  input: Record<string, import("./common").JsonValue>;
2752
2769
  workflowId: string;
2753
2770
  workflowRunId: string;
2754
2771
  nodeRunId: string;
2755
- interventionId: string;
2772
+ nodeIndex: number;
2756
2773
  nodeId: string;
2757
2774
  nodeKey: string;
2758
- nodeIndex: number;
2775
+ interventionId: string;
2759
2776
  defaultResponse: Record<string, import("./common").JsonValue>;
2760
2777
  requestedAt: string;
2761
2778
  response?: Record<string, import("./common").JsonValue> | undefined;
2762
2779
  expiresAt?: string | undefined;
2763
2780
  submittedAt?: string | undefined;
2781
+ expiredAt?: string | undefined;
2764
2782
  submittedBy?: {
2765
2783
  id: string;
2766
2784
  type: "user" | "serviceAccount" | "system";
@@ -2770,7 +2788,6 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
2770
2788
  id: string;
2771
2789
  type: "user" | "serviceAccount" | "system";
2772
2790
  } | undefined;
2773
- expiredAt?: string | undefined;
2774
2791
  };
2775
2792
  }>;
2776
2793
  export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
@@ -2780,13 +2797,13 @@ export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
2780
2797
  queuedAt: z.ZodString;
2781
2798
  }, "strip", z.ZodTypeAny, {
2782
2799
  runId: string;
2783
- queuedAt: string;
2784
- jobId: string;
2785
2800
  workflowId: string;
2801
+ jobId: string;
2802
+ queuedAt: string;
2786
2803
  }, {
2787
2804
  runId: string;
2788
- queuedAt: string;
2789
- jobId: string;
2790
2805
  workflowId: string;
2806
+ jobId: string;
2807
+ queuedAt: string;
2791
2808
  }>;
2792
2809
  //# sourceMappingURL=workflows.d.ts.map