@sixb/server 0.0.1

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 (216) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/dist/auth/access-token-boundary.d.ts +23 -0
  4. package/dist/auth/access-token-boundary.d.ts.map +1 -0
  5. package/dist/auth/application-access.d.ts +4 -0
  6. package/dist/auth/application-access.d.ts.map +1 -0
  7. package/dist/auth/browser-origin.d.ts +62 -0
  8. package/dist/auth/browser-origin.d.ts.map +1 -0
  9. package/dist/auth/csrf.d.ts +2 -0
  10. package/dist/auth/csrf.d.ts.map +1 -0
  11. package/dist/auth/guard.d.ts +35 -0
  12. package/dist/auth/guard.d.ts.map +1 -0
  13. package/dist/auth/public-routes.d.ts +8 -0
  14. package/dist/auth/public-routes.d.ts.map +1 -0
  15. package/dist/auth/responses.d.ts +11 -0
  16. package/dist/auth/responses.d.ts.map +1 -0
  17. package/dist/auth/return-to.d.ts +3 -0
  18. package/dist/auth/return-to.d.ts.map +1 -0
  19. package/dist/auth/scope.d.ts +43 -0
  20. package/dist/auth/scope.d.ts.map +1 -0
  21. package/dist/auth/session-activity.d.ts +4 -0
  22. package/dist/auth/session-activity.d.ts.map +1 -0
  23. package/dist/auth/session-cookies.d.ts +12 -0
  24. package/dist/auth/session-cookies.d.ts.map +1 -0
  25. package/dist/files/content.d.ts +141 -0
  26. package/dist/files/content.d.ts.map +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +11522 -0
  30. package/dist/index.js.map +78 -0
  31. package/dist/openapi/security.d.ts +26 -0
  32. package/dist/openapi/security.d.ts.map +1 -0
  33. package/dist/openapi/tags.d.ts +151 -0
  34. package/dist/openapi/tags.d.ts.map +1 -0
  35. package/dist/registerRoutes.d.ts +31 -0
  36. package/dist/registerRoutes.d.ts.map +1 -0
  37. package/dist/routes/action-runs.d.ts +244 -0
  38. package/dist/routes/action-runs.d.ts.map +1 -0
  39. package/dist/routes/actions.d.ts +183 -0
  40. package/dist/routes/actions.d.ts.map +1 -0
  41. package/dist/routes/agent-api-gateway.d.ts +4 -0
  42. package/dist/routes/agent-api-gateway.d.ts.map +1 -0
  43. package/dist/routes/agents.d.ts +1061 -0
  44. package/dist/routes/agents.d.ts.map +1 -0
  45. package/dist/routes/auth.d.ts +1366 -0
  46. package/dist/routes/auth.d.ts.map +1 -0
  47. package/dist/routes/connectors.d.ts +108 -0
  48. package/dist/routes/connectors.d.ts.map +1 -0
  49. package/dist/routes/datasets.d.ts +339 -0
  50. package/dist/routes/datasets.d.ts.map +1 -0
  51. package/dist/routes/events.d.ts +116 -0
  52. package/dist/routes/events.d.ts.map +1 -0
  53. package/dist/routes/files.d.ts +340 -0
  54. package/dist/routes/files.d.ts.map +1 -0
  55. package/dist/routes/links.d.ts +175 -0
  56. package/dist/routes/links.d.ts.map +1 -0
  57. package/dist/routes/logs.d.ts +88 -0
  58. package/dist/routes/logs.d.ts.map +1 -0
  59. package/dist/routes/objects.d.ts +450 -0
  60. package/dist/routes/objects.d.ts.map +1 -0
  61. package/dist/routes/ontology.d.ts +240 -0
  62. package/dist/routes/ontology.d.ts.map +1 -0
  63. package/dist/routes/pipelines.d.ts +399 -0
  64. package/dist/routes/pipelines.d.ts.map +1 -0
  65. package/dist/routes/project.d.ts +56 -0
  66. package/dist/routes/project.d.ts.map +1 -0
  67. package/dist/routes/projections.d.ts +916 -0
  68. package/dist/routes/projections.d.ts.map +1 -0
  69. package/dist/routes/rules.d.ts +165 -0
  70. package/dist/routes/rules.d.ts.map +1 -0
  71. package/dist/routes/status.d.ts +81 -0
  72. package/dist/routes/status.d.ts.map +1 -0
  73. package/dist/routes/syncs.d.ts +294 -0
  74. package/dist/routes/syncs.d.ts.map +1 -0
  75. package/dist/routes/telemetry.d.ts +241 -0
  76. package/dist/routes/telemetry.d.ts.map +1 -0
  77. package/dist/routes/webhook-runs.d.ts +89 -0
  78. package/dist/routes/webhook-runs.d.ts.map +1 -0
  79. package/dist/routes/webhooks.d.ts +60 -0
  80. package/dist/routes/webhooks.d.ts.map +1 -0
  81. package/dist/routes/workflows.d.ts +973 -0
  82. package/dist/routes/workflows.d.ts.map +1 -0
  83. package/dist/routes/ws/agents.d.ts +99 -0
  84. package/dist/routes/ws/agents.d.ts.map +1 -0
  85. package/dist/routes/ws/events.d.ts +89 -0
  86. package/dist/routes/ws/events.d.ts.map +1 -0
  87. package/dist/routes/ws/index.d.ts +31 -0
  88. package/dist/routes/ws/index.d.ts.map +1 -0
  89. package/dist/routes/ws/log-subscription-hub.d.ts +47 -0
  90. package/dist/routes/ws/log-subscription-hub.d.ts.map +1 -0
  91. package/dist/routes/ws/logs.d.ts +110 -0
  92. package/dist/routes/ws/logs.d.ts.map +1 -0
  93. package/dist/schemas/actions.d.ts +644 -0
  94. package/dist/schemas/actions.d.ts.map +1 -0
  95. package/dist/schemas/agents.d.ts +3157 -0
  96. package/dist/schemas/agents.d.ts.map +1 -0
  97. package/dist/schemas/auth.d.ts +2023 -0
  98. package/dist/schemas/auth.d.ts.map +1 -0
  99. package/dist/schemas/common.d.ts +30 -0
  100. package/dist/schemas/common.d.ts.map +1 -0
  101. package/dist/schemas/connectors.d.ts +82 -0
  102. package/dist/schemas/connectors.d.ts.map +1 -0
  103. package/dist/schemas/datasets.d.ts +744 -0
  104. package/dist/schemas/datasets.d.ts.map +1 -0
  105. package/dist/schemas/event-payloads.d.ts +477 -0
  106. package/dist/schemas/event-payloads.d.ts.map +1 -0
  107. package/dist/schemas/events.d.ts +665 -0
  108. package/dist/schemas/events.d.ts.map +1 -0
  109. package/dist/schemas/files.d.ts +241 -0
  110. package/dist/schemas/files.d.ts.map +1 -0
  111. package/dist/schemas/links.d.ts +90 -0
  112. package/dist/schemas/links.d.ts.map +1 -0
  113. package/dist/schemas/logs.d.ts +231 -0
  114. package/dist/schemas/logs.d.ts.map +1 -0
  115. package/dist/schemas/objects.d.ts +288 -0
  116. package/dist/schemas/objects.d.ts.map +1 -0
  117. package/dist/schemas/ontology.d.ts +778 -0
  118. package/dist/schemas/ontology.d.ts.map +1 -0
  119. package/dist/schemas/pipelines.d.ts +1373 -0
  120. package/dist/schemas/pipelines.d.ts.map +1 -0
  121. package/dist/schemas/project.d.ts +9 -0
  122. package/dist/schemas/project.d.ts.map +1 -0
  123. package/dist/schemas/projections.d.ts +6992 -0
  124. package/dist/schemas/projections.d.ts.map +1 -0
  125. package/dist/schemas/rules.d.ts +204 -0
  126. package/dist/schemas/rules.d.ts.map +1 -0
  127. package/dist/schemas/status.d.ts +189 -0
  128. package/dist/schemas/status.d.ts.map +1 -0
  129. package/dist/schemas/syncs.d.ts +538 -0
  130. package/dist/schemas/syncs.d.ts.map +1 -0
  131. package/dist/schemas/telemetry.d.ts +265 -0
  132. package/dist/schemas/telemetry.d.ts.map +1 -0
  133. package/dist/schemas/webhook-runs.d.ts +169 -0
  134. package/dist/schemas/webhook-runs.d.ts.map +1 -0
  135. package/dist/schemas/workflows.d.ts +1720 -0
  136. package/dist/schemas/workflows.d.ts.map +1 -0
  137. package/dist/server.d.ts +64 -0
  138. package/dist/server.d.ts.map +1 -0
  139. package/dist/tsconfig.json +5 -0
  140. package/dist/utils/http.d.ts +23 -0
  141. package/dist/utils/http.d.ts.map +1 -0
  142. package/dist/utils/request-body.d.ts +15 -0
  143. package/dist/utils/request-body.d.ts.map +1 -0
  144. package/dist/utils/ws.d.ts +10 -0
  145. package/dist/utils/ws.d.ts.map +1 -0
  146. package/package.json +68 -0
  147. package/src/auth/access-token-boundary.ts +68 -0
  148. package/src/auth/application-access.ts +16 -0
  149. package/src/auth/browser-origin.ts +367 -0
  150. package/src/auth/csrf.ts +1 -0
  151. package/src/auth/guard.ts +169 -0
  152. package/src/auth/public-routes.ts +87 -0
  153. package/src/auth/responses.ts +54 -0
  154. package/src/auth/return-to.ts +21 -0
  155. package/src/auth/scope.ts +64 -0
  156. package/src/auth/session-activity.ts +19 -0
  157. package/src/auth/session-cookies.ts +43 -0
  158. package/src/files/content.ts +419 -0
  159. package/src/index.ts +2 -0
  160. package/src/openapi/security.ts +37 -0
  161. package/src/openapi/tags.ts +151 -0
  162. package/src/registerRoutes.ts +49 -0
  163. package/src/routes/action-runs.ts +238 -0
  164. package/src/routes/actions.ts +126 -0
  165. package/src/routes/agent-api-gateway.ts +260 -0
  166. package/src/routes/agents.ts +943 -0
  167. package/src/routes/auth.ts +2233 -0
  168. package/src/routes/connectors.ts +69 -0
  169. package/src/routes/datasets.ts +402 -0
  170. package/src/routes/events.ts +55 -0
  171. package/src/routes/files.ts +675 -0
  172. package/src/routes/links.ts +143 -0
  173. package/src/routes/logs.ts +65 -0
  174. package/src/routes/objects.ts +838 -0
  175. package/src/routes/ontology.ts +138 -0
  176. package/src/routes/pipelines.ts +332 -0
  177. package/src/routes/project.ts +16 -0
  178. package/src/routes/projections.ts +251 -0
  179. package/src/routes/rules.ts +124 -0
  180. package/src/routes/status.ts +53 -0
  181. package/src/routes/syncs.ts +243 -0
  182. package/src/routes/telemetry.ts +207 -0
  183. package/src/routes/webhook-runs.ts +81 -0
  184. package/src/routes/webhooks.ts +508 -0
  185. package/src/routes/workflows.ts +1333 -0
  186. package/src/routes/ws/agents.ts +301 -0
  187. package/src/routes/ws/events.ts +278 -0
  188. package/src/routes/ws/index.ts +12 -0
  189. package/src/routes/ws/log-subscription-hub.ts +375 -0
  190. package/src/routes/ws/logs.ts +117 -0
  191. package/src/schemas/actions.ts +123 -0
  192. package/src/schemas/agents.ts +293 -0
  193. package/src/schemas/auth.ts +317 -0
  194. package/src/schemas/common.ts +60 -0
  195. package/src/schemas/connectors.ts +21 -0
  196. package/src/schemas/datasets.ts +107 -0
  197. package/src/schemas/event-payloads.ts +79 -0
  198. package/src/schemas/events.ts +117 -0
  199. package/src/schemas/files.ts +82 -0
  200. package/src/schemas/links.ts +38 -0
  201. package/src/schemas/logs.ts +76 -0
  202. package/src/schemas/objects.ts +759 -0
  203. package/src/schemas/ontology.ts +77 -0
  204. package/src/schemas/pipelines.ts +150 -0
  205. package/src/schemas/project.ts +5 -0
  206. package/src/schemas/projections.ts +144 -0
  207. package/src/schemas/rules.ts +98 -0
  208. package/src/schemas/status.ts +51 -0
  209. package/src/schemas/syncs.ts +83 -0
  210. package/src/schemas/telemetry.ts +59 -0
  211. package/src/schemas/webhook-runs.ts +40 -0
  212. package/src/schemas/workflows.ts +229 -0
  213. package/src/server.ts +383 -0
  214. package/src/utils/http.ts +108 -0
  215. package/src/utils/request-body.ts +62 -0
  216. package/src/utils/ws.ts +59 -0
@@ -0,0 +1,1720 @@
1
+ import { z } from "zod";
2
+ export declare const WorkflowParamsSchema: z.ZodObject<{
3
+ workflowId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ workflowId: string;
6
+ }, {
7
+ workflowId: string;
8
+ }>;
9
+ export declare const WorkflowRunParamsSchema: z.ZodObject<{
10
+ runId: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ runId: string;
13
+ }, {
14
+ runId: string;
15
+ }>;
16
+ export declare const WorkflowInterventionParamsSchema: z.ZodObject<{
17
+ interventionId: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ interventionId: string;
20
+ }, {
21
+ interventionId: string;
22
+ }>;
23
+ export declare const WorkflowRunStatusSchema: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
24
+ export declare const WorkflowInterventionStatusSchema: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
25
+ export declare const WorkflowRunsQuerySchema: z.ZodObject<{
26
+ workflowId: z.ZodOptional<z.ZodString>;
27
+ status: z.ZodOptional<z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>>;
28
+ startedAfter: z.ZodOptional<z.ZodString>;
29
+ startedBefore: z.ZodOptional<z.ZodString>;
30
+ limit: z.ZodOptional<z.ZodString>;
31
+ offset: z.ZodOptional<z.ZodString>;
32
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
35
+ limit?: string | undefined;
36
+ offset?: string | undefined;
37
+ order?: "asc" | "desc" | undefined;
38
+ startedAfter?: string | undefined;
39
+ startedBefore?: string | undefined;
40
+ workflowId?: string | undefined;
41
+ }, {
42
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting" | undefined;
43
+ limit?: string | undefined;
44
+ offset?: string | undefined;
45
+ order?: "asc" | "desc" | undefined;
46
+ startedAfter?: string | undefined;
47
+ startedBefore?: string | undefined;
48
+ workflowId?: string | undefined;
49
+ }>;
50
+ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
51
+ workflowId: z.ZodOptional<z.ZodString>;
52
+ workflowRunId: z.ZodOptional<z.ZodString>;
53
+ nodeRunId: z.ZodOptional<z.ZodString>;
54
+ nodeId: z.ZodOptional<z.ZodString>;
55
+ nodeKey: z.ZodOptional<z.ZodString>;
56
+ interventionId: z.ZodOptional<z.ZodString>;
57
+ status: z.ZodOptional<z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>>;
58
+ requestedAfter: z.ZodOptional<z.ZodString>;
59
+ requestedBefore: z.ZodOptional<z.ZodString>;
60
+ limit: z.ZodOptional<z.ZodString>;
61
+ offset: z.ZodOptional<z.ZodString>;
62
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ status?: "cancelled" | "expired" | "pending" | "submitted" | undefined;
65
+ limit?: string | undefined;
66
+ offset?: string | undefined;
67
+ order?: "asc" | "desc" | undefined;
68
+ workflowId?: string | undefined;
69
+ nodeRunId?: string | undefined;
70
+ nodeId?: string | undefined;
71
+ nodeKey?: string | undefined;
72
+ interventionId?: string | undefined;
73
+ workflowRunId?: string | undefined;
74
+ requestedAfter?: string | undefined;
75
+ requestedBefore?: string | undefined;
76
+ }, {
77
+ status?: "cancelled" | "expired" | "pending" | "submitted" | undefined;
78
+ limit?: string | undefined;
79
+ offset?: string | undefined;
80
+ order?: "asc" | "desc" | undefined;
81
+ workflowId?: string | undefined;
82
+ nodeRunId?: string | undefined;
83
+ nodeId?: string | undefined;
84
+ nodeKey?: string | undefined;
85
+ interventionId?: string | undefined;
86
+ workflowRunId?: string | undefined;
87
+ requestedAfter?: string | undefined;
88
+ requestedBefore?: string | undefined;
89
+ }>;
90
+ export declare const RequestWorkflowRunBodySchema: z.ZodDefault<z.ZodObject<{
91
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ input?: Record<string, unknown> | undefined;
94
+ }, {
95
+ input?: Record<string, unknown> | undefined;
96
+ }>>;
97
+ export declare const WorkflowInterventionActorSchema: z.ZodObject<{
98
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
99
+ principalId: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ principalType: "serviceAccount" | "user" | "system";
102
+ principalId: string;
103
+ }, {
104
+ principalType: "serviceAccount" | "user" | "system";
105
+ principalId: string;
106
+ }>;
107
+ export declare const CancelWorkflowRunBodySchema: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
108
+ export declare const SubmitWorkflowInterventionBodySchema: z.ZodObject<{
109
+ response: z.ZodRecord<z.ZodString, z.ZodUnknown>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ response: Record<string, unknown>;
112
+ }, {
113
+ response: Record<string, unknown>;
114
+ }>;
115
+ export declare const CancelWorkflowInterventionBodySchema: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
116
+ export declare const WorkflowRunSchema: z.ZodObject<{
117
+ id: z.ZodString;
118
+ projectId: z.ZodString;
119
+ workflowId: z.ZodString;
120
+ status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
121
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
122
+ queuedAt: z.ZodOptional<z.ZodString>;
123
+ startedAt: z.ZodString;
124
+ finishedAt: z.ZodOptional<z.ZodString>;
125
+ error: z.ZodOptional<z.ZodString>;
126
+ requestedBy: z.ZodObject<{
127
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
128
+ principalId: z.ZodString;
129
+ }, "strip", z.ZodTypeAny, {
130
+ principalType: "serviceAccount" | "user" | "system";
131
+ principalId: string;
132
+ }, {
133
+ principalType: "serviceAccount" | "user" | "system";
134
+ principalId: string;
135
+ }>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
138
+ projectId: string;
139
+ id: string;
140
+ startedAt: string;
141
+ input: Record<string, unknown>;
142
+ workflowId: string;
143
+ requestedBy: {
144
+ principalType: "serviceAccount" | "user" | "system";
145
+ principalId: string;
146
+ };
147
+ error?: string | undefined;
148
+ queuedAt?: string | undefined;
149
+ finishedAt?: string | undefined;
150
+ }, {
151
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
152
+ projectId: string;
153
+ id: string;
154
+ startedAt: string;
155
+ input: Record<string, unknown>;
156
+ workflowId: string;
157
+ requestedBy: {
158
+ principalType: "serviceAccount" | "user" | "system";
159
+ principalId: string;
160
+ };
161
+ error?: string | undefined;
162
+ queuedAt?: string | undefined;
163
+ finishedAt?: string | undefined;
164
+ }>;
165
+ export declare const WorkflowAgentNodeExecutionSummarySchema: z.ZodObject<{
166
+ agentId: z.ZodString;
167
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
168
+ attempt: z.ZodNumber;
169
+ modelId: z.ZodOptional<z.ZodString>;
170
+ finishReason: z.ZodOptional<z.ZodString>;
171
+ usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
172
+ startedAt: z.ZodOptional<z.ZodString>;
173
+ completedAt: z.ZodOptional<z.ZodString>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
176
+ agentId: string;
177
+ attempt: number;
178
+ startedAt?: string | undefined;
179
+ completedAt?: string | undefined;
180
+ modelId?: string | undefined;
181
+ finishReason?: string | undefined;
182
+ usage?: Record<string, unknown> | undefined;
183
+ }, {
184
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
185
+ agentId: string;
186
+ attempt: number;
187
+ startedAt?: string | undefined;
188
+ completedAt?: string | undefined;
189
+ modelId?: string | undefined;
190
+ finishReason?: string | undefined;
191
+ usage?: Record<string, unknown> | undefined;
192
+ }>;
193
+ export declare const WorkflowAgentNodeExecutionSchema: z.ZodObject<{
194
+ agentId: z.ZodString;
195
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
196
+ attempt: z.ZodNumber;
197
+ modelId: z.ZodOptional<z.ZodString>;
198
+ finishReason: z.ZodOptional<z.ZodString>;
199
+ usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
200
+ startedAt: z.ZodOptional<z.ZodString>;
201
+ completedAt: z.ZodOptional<z.ZodString>;
202
+ } & {
203
+ nodeRunId: z.ZodString;
204
+ prompt: z.ZodString;
205
+ executionPrincipal: z.ZodOptional<z.ZodObject<{
206
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
207
+ principalId: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ principalType: "serviceAccount" | "user" | "system";
210
+ principalId: string;
211
+ }, {
212
+ principalType: "serviceAccount" | "user" | "system";
213
+ principalId: string;
214
+ }>>;
215
+ trace: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
216
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
217
+ error: z.ZodOptional<z.ZodString>;
218
+ createdAt: z.ZodString;
219
+ }, "strip", z.ZodTypeAny, {
220
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
221
+ agentId: string;
222
+ createdAt: string;
223
+ attempt: number;
224
+ nodeRunId: string;
225
+ prompt: string;
226
+ error?: string | undefined;
227
+ startedAt?: string | undefined;
228
+ completedAt?: string | undefined;
229
+ executionPrincipal?: {
230
+ principalType: "serviceAccount" | "user" | "system";
231
+ principalId: string;
232
+ } | undefined;
233
+ modelId?: string | undefined;
234
+ finishReason?: string | undefined;
235
+ usage?: Record<string, unknown> | undefined;
236
+ diagnostics?: unknown[] | undefined;
237
+ trace?: unknown[] | undefined;
238
+ }, {
239
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
240
+ agentId: string;
241
+ createdAt: string;
242
+ attempt: number;
243
+ nodeRunId: string;
244
+ prompt: string;
245
+ error?: string | undefined;
246
+ startedAt?: string | undefined;
247
+ completedAt?: string | undefined;
248
+ executionPrincipal?: {
249
+ principalType: "serviceAccount" | "user" | "system";
250
+ principalId: string;
251
+ } | undefined;
252
+ modelId?: string | undefined;
253
+ finishReason?: string | undefined;
254
+ usage?: Record<string, unknown> | undefined;
255
+ diagnostics?: unknown[] | undefined;
256
+ trace?: unknown[] | undefined;
257
+ }>;
258
+ export declare const WorkflowNodeRunSchema: z.ZodObject<{
259
+ id: z.ZodString;
260
+ projectId: z.ZodString;
261
+ workflowRunId: z.ZodString;
262
+ workflowId: z.ZodString;
263
+ nodeIndex: z.ZodNumber;
264
+ nodeType: z.ZodEnum<["step", "action", "intervention", "agent"]>;
265
+ nodeId: z.ZodString;
266
+ nodeKey: z.ZodString;
267
+ status: z.ZodEnum<["running", "waiting", "succeeded", "failed", "cancelled"]>;
268
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
269
+ startedAt: z.ZodString;
270
+ finishedAt: z.ZodOptional<z.ZodString>;
271
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
272
+ error: z.ZodOptional<z.ZodString>;
273
+ agentExecution: z.ZodOptional<z.ZodObject<{
274
+ agentId: z.ZodString;
275
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
276
+ attempt: z.ZodNumber;
277
+ modelId: z.ZodOptional<z.ZodString>;
278
+ finishReason: z.ZodOptional<z.ZodString>;
279
+ usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
280
+ startedAt: z.ZodOptional<z.ZodString>;
281
+ completedAt: z.ZodOptional<z.ZodString>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
284
+ agentId: string;
285
+ attempt: number;
286
+ startedAt?: string | undefined;
287
+ completedAt?: string | undefined;
288
+ modelId?: string | undefined;
289
+ finishReason?: string | undefined;
290
+ usage?: Record<string, unknown> | undefined;
291
+ }, {
292
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
293
+ agentId: string;
294
+ attempt: number;
295
+ startedAt?: string | undefined;
296
+ completedAt?: string | undefined;
297
+ modelId?: string | undefined;
298
+ finishReason?: string | undefined;
299
+ usage?: Record<string, unknown> | undefined;
300
+ }>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
303
+ projectId: string;
304
+ id: string;
305
+ startedAt: string;
306
+ input: Record<string, unknown>;
307
+ workflowId: string;
308
+ nodeIndex: number;
309
+ nodeType: "action" | "agent" | "step" | "intervention";
310
+ nodeId: string;
311
+ nodeKey: string;
312
+ workflowRunId: string;
313
+ error?: string | undefined;
314
+ finishedAt?: string | undefined;
315
+ output?: Record<string, unknown> | undefined;
316
+ agentExecution?: {
317
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
318
+ agentId: string;
319
+ attempt: number;
320
+ startedAt?: string | undefined;
321
+ completedAt?: string | undefined;
322
+ modelId?: string | undefined;
323
+ finishReason?: string | undefined;
324
+ usage?: Record<string, unknown> | undefined;
325
+ } | undefined;
326
+ }, {
327
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
328
+ projectId: string;
329
+ id: string;
330
+ startedAt: string;
331
+ input: Record<string, unknown>;
332
+ workflowId: string;
333
+ nodeIndex: number;
334
+ nodeType: "action" | "agent" | "step" | "intervention";
335
+ nodeId: string;
336
+ nodeKey: string;
337
+ workflowRunId: string;
338
+ error?: string | undefined;
339
+ finishedAt?: string | undefined;
340
+ output?: Record<string, unknown> | undefined;
341
+ agentExecution?: {
342
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
343
+ agentId: string;
344
+ attempt: number;
345
+ startedAt?: string | undefined;
346
+ completedAt?: string | undefined;
347
+ modelId?: string | undefined;
348
+ finishReason?: string | undefined;
349
+ usage?: Record<string, unknown> | undefined;
350
+ } | undefined;
351
+ }>;
352
+ export declare const WorkflowInterventionSchema: z.ZodObject<{
353
+ id: z.ZodString;
354
+ projectId: z.ZodString;
355
+ workflowId: z.ZodString;
356
+ workflowRunId: z.ZodString;
357
+ nodeRunId: z.ZodString;
358
+ nodeIndex: z.ZodNumber;
359
+ nodeId: z.ZodString;
360
+ nodeKey: z.ZodString;
361
+ interventionId: z.ZodString;
362
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
363
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
364
+ status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
365
+ requestedAt: z.ZodString;
366
+ expiresAt: z.ZodOptional<z.ZodString>;
367
+ submittedAt: z.ZodOptional<z.ZodString>;
368
+ submittedBy: z.ZodOptional<z.ZodObject<{
369
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
370
+ principalId: z.ZodString;
371
+ }, "strip", z.ZodTypeAny, {
372
+ principalType: "serviceAccount" | "user" | "system";
373
+ principalId: string;
374
+ }, {
375
+ principalType: "serviceAccount" | "user" | "system";
376
+ principalId: string;
377
+ }>>;
378
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
+ cancelledAt: z.ZodOptional<z.ZodString>;
380
+ cancelledBy: z.ZodOptional<z.ZodObject<{
381
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
382
+ principalId: z.ZodString;
383
+ }, "strip", z.ZodTypeAny, {
384
+ principalType: "serviceAccount" | "user" | "system";
385
+ principalId: string;
386
+ }, {
387
+ principalType: "serviceAccount" | "user" | "system";
388
+ principalId: string;
389
+ }>>;
390
+ expiredAt: z.ZodOptional<z.ZodString>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ status: "cancelled" | "expired" | "pending" | "submitted";
393
+ projectId: string;
394
+ id: string;
395
+ input: Record<string, unknown>;
396
+ workflowId: string;
397
+ nodeRunId: string;
398
+ nodeIndex: number;
399
+ nodeId: string;
400
+ nodeKey: string;
401
+ interventionId: string;
402
+ requestedAt: string;
403
+ workflowRunId: string;
404
+ defaultResponse: Record<string, unknown>;
405
+ response?: Record<string, unknown> | undefined;
406
+ expiresAt?: string | undefined;
407
+ submittedAt?: string | undefined;
408
+ cancelledAt?: string | undefined;
409
+ expiredAt?: string | undefined;
410
+ submittedBy?: {
411
+ principalType: "serviceAccount" | "user" | "system";
412
+ principalId: string;
413
+ } | undefined;
414
+ cancelledBy?: {
415
+ principalType: "serviceAccount" | "user" | "system";
416
+ principalId: string;
417
+ } | undefined;
418
+ }, {
419
+ status: "cancelled" | "expired" | "pending" | "submitted";
420
+ projectId: string;
421
+ id: string;
422
+ input: Record<string, unknown>;
423
+ workflowId: string;
424
+ nodeRunId: string;
425
+ nodeIndex: number;
426
+ nodeId: string;
427
+ nodeKey: string;
428
+ interventionId: string;
429
+ requestedAt: string;
430
+ workflowRunId: string;
431
+ defaultResponse: Record<string, unknown>;
432
+ response?: Record<string, unknown> | undefined;
433
+ expiresAt?: string | undefined;
434
+ submittedAt?: string | undefined;
435
+ cancelledAt?: string | undefined;
436
+ expiredAt?: string | undefined;
437
+ submittedBy?: {
438
+ principalType: "serviceAccount" | "user" | "system";
439
+ principalId: string;
440
+ } | undefined;
441
+ cancelledBy?: {
442
+ principalType: "serviceAccount" | "user" | "system";
443
+ principalId: string;
444
+ } | undefined;
445
+ }>;
446
+ export declare const WorkflowSchema: z.ZodObject<{
447
+ id: z.ZodString;
448
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
449
+ triggers: z.ZodArray<z.ZodObject<{
450
+ type: z.ZodLiteral<"schedule">;
451
+ scheduleId: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ type: "schedule";
454
+ scheduleId: string;
455
+ }, {
456
+ type: "schedule";
457
+ scheduleId: string;
458
+ }>, "many">;
459
+ nodes: z.ZodArray<z.ZodUnion<[z.ZodObject<{
460
+ type: z.ZodLiteral<"step">;
461
+ id: z.ZodString;
462
+ key: z.ZodString;
463
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
464
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: "step";
467
+ id: string;
468
+ output: Record<string, unknown>;
469
+ key: string;
470
+ input: Record<string, unknown>;
471
+ }, {
472
+ type: "step";
473
+ id: string;
474
+ output: Record<string, unknown>;
475
+ key: string;
476
+ input: Record<string, unknown>;
477
+ }>, z.ZodObject<{
478
+ type: z.ZodLiteral<"action">;
479
+ id: z.ZodString;
480
+ key: z.ZodString;
481
+ objectTypeId: z.ZodOptional<z.ZodString>;
482
+ params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: "action";
485
+ params: Record<string, unknown>;
486
+ id: string;
487
+ key: string;
488
+ objectTypeId?: string | undefined;
489
+ }, {
490
+ type: "action";
491
+ params: Record<string, unknown>;
492
+ id: string;
493
+ key: string;
494
+ objectTypeId?: string | undefined;
495
+ }>, z.ZodObject<{
496
+ type: z.ZodLiteral<"intervention">;
497
+ id: z.ZodString;
498
+ key: z.ZodString;
499
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
500
+ response: z.ZodRecord<z.ZodString, z.ZodUnknown>;
501
+ description: z.ZodOptional<z.ZodString>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ response: Record<string, unknown>;
504
+ type: "intervention";
505
+ id: string;
506
+ key: string;
507
+ input: Record<string, unknown>;
508
+ description?: string | undefined;
509
+ }, {
510
+ response: Record<string, unknown>;
511
+ type: "intervention";
512
+ id: string;
513
+ key: string;
514
+ input: Record<string, unknown>;
515
+ description?: string | undefined;
516
+ }>, z.ZodObject<{
517
+ type: z.ZodLiteral<"agent">;
518
+ id: z.ZodString;
519
+ key: z.ZodString;
520
+ agentId: z.ZodString;
521
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
522
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ agentId: string;
525
+ type: "agent";
526
+ id: string;
527
+ output: Record<string, unknown>;
528
+ key: string;
529
+ input: Record<string, unknown>;
530
+ }, {
531
+ agentId: string;
532
+ type: "agent";
533
+ id: string;
534
+ output: Record<string, unknown>;
535
+ key: string;
536
+ input: Record<string, unknown>;
537
+ }>]>, "many">;
538
+ latestRun: z.ZodNullable<z.ZodObject<{
539
+ id: z.ZodString;
540
+ projectId: z.ZodString;
541
+ workflowId: z.ZodString;
542
+ status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
543
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
544
+ queuedAt: z.ZodOptional<z.ZodString>;
545
+ startedAt: z.ZodString;
546
+ finishedAt: z.ZodOptional<z.ZodString>;
547
+ error: z.ZodOptional<z.ZodString>;
548
+ requestedBy: z.ZodObject<{
549
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
550
+ principalId: z.ZodString;
551
+ }, "strip", z.ZodTypeAny, {
552
+ principalType: "serviceAccount" | "user" | "system";
553
+ principalId: string;
554
+ }, {
555
+ principalType: "serviceAccount" | "user" | "system";
556
+ principalId: string;
557
+ }>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
560
+ projectId: string;
561
+ id: string;
562
+ startedAt: string;
563
+ input: Record<string, unknown>;
564
+ workflowId: string;
565
+ requestedBy: {
566
+ principalType: "serviceAccount" | "user" | "system";
567
+ principalId: string;
568
+ };
569
+ error?: string | undefined;
570
+ queuedAt?: string | undefined;
571
+ finishedAt?: string | undefined;
572
+ }, {
573
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
574
+ projectId: string;
575
+ id: string;
576
+ startedAt: string;
577
+ input: Record<string, unknown>;
578
+ workflowId: string;
579
+ requestedBy: {
580
+ principalType: "serviceAccount" | "user" | "system";
581
+ principalId: string;
582
+ };
583
+ error?: string | undefined;
584
+ queuedAt?: string | undefined;
585
+ finishedAt?: string | undefined;
586
+ }>>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ id: string;
589
+ input: Record<string, unknown>;
590
+ triggers: {
591
+ type: "schedule";
592
+ scheduleId: string;
593
+ }[];
594
+ nodes: ({
595
+ type: "step";
596
+ id: string;
597
+ output: Record<string, unknown>;
598
+ key: string;
599
+ input: Record<string, unknown>;
600
+ } | {
601
+ type: "action";
602
+ params: Record<string, unknown>;
603
+ id: string;
604
+ key: string;
605
+ objectTypeId?: string | undefined;
606
+ } | {
607
+ response: Record<string, unknown>;
608
+ type: "intervention";
609
+ id: string;
610
+ key: string;
611
+ input: Record<string, unknown>;
612
+ description?: string | undefined;
613
+ } | {
614
+ agentId: string;
615
+ type: "agent";
616
+ id: string;
617
+ output: Record<string, unknown>;
618
+ key: string;
619
+ input: Record<string, unknown>;
620
+ })[];
621
+ latestRun: {
622
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
623
+ projectId: string;
624
+ id: string;
625
+ startedAt: string;
626
+ input: Record<string, unknown>;
627
+ workflowId: string;
628
+ requestedBy: {
629
+ principalType: "serviceAccount" | "user" | "system";
630
+ principalId: string;
631
+ };
632
+ error?: string | undefined;
633
+ queuedAt?: string | undefined;
634
+ finishedAt?: string | undefined;
635
+ } | null;
636
+ }, {
637
+ id: string;
638
+ input: Record<string, unknown>;
639
+ triggers: {
640
+ type: "schedule";
641
+ scheduleId: string;
642
+ }[];
643
+ nodes: ({
644
+ type: "step";
645
+ id: string;
646
+ output: Record<string, unknown>;
647
+ key: string;
648
+ input: Record<string, unknown>;
649
+ } | {
650
+ type: "action";
651
+ params: Record<string, unknown>;
652
+ id: string;
653
+ key: string;
654
+ objectTypeId?: string | undefined;
655
+ } | {
656
+ response: Record<string, unknown>;
657
+ type: "intervention";
658
+ id: string;
659
+ key: string;
660
+ input: Record<string, unknown>;
661
+ description?: string | undefined;
662
+ } | {
663
+ agentId: string;
664
+ type: "agent";
665
+ id: string;
666
+ output: Record<string, unknown>;
667
+ key: string;
668
+ input: Record<string, unknown>;
669
+ })[];
670
+ latestRun: {
671
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
672
+ projectId: string;
673
+ id: string;
674
+ startedAt: string;
675
+ input: Record<string, unknown>;
676
+ workflowId: string;
677
+ requestedBy: {
678
+ principalType: "serviceAccount" | "user" | "system";
679
+ principalId: string;
680
+ };
681
+ error?: string | undefined;
682
+ queuedAt?: string | undefined;
683
+ finishedAt?: string | undefined;
684
+ } | null;
685
+ }>;
686
+ export declare const WorkflowRunListResponseSchema: z.ZodObject<{
687
+ runs: z.ZodArray<z.ZodObject<{
688
+ id: z.ZodString;
689
+ projectId: z.ZodString;
690
+ workflowId: z.ZodString;
691
+ status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
692
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
693
+ queuedAt: z.ZodOptional<z.ZodString>;
694
+ startedAt: z.ZodString;
695
+ finishedAt: z.ZodOptional<z.ZodString>;
696
+ error: z.ZodOptional<z.ZodString>;
697
+ requestedBy: z.ZodObject<{
698
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
699
+ principalId: z.ZodString;
700
+ }, "strip", z.ZodTypeAny, {
701
+ principalType: "serviceAccount" | "user" | "system";
702
+ principalId: string;
703
+ }, {
704
+ principalType: "serviceAccount" | "user" | "system";
705
+ principalId: string;
706
+ }>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
709
+ projectId: string;
710
+ id: string;
711
+ startedAt: string;
712
+ input: Record<string, unknown>;
713
+ workflowId: string;
714
+ requestedBy: {
715
+ principalType: "serviceAccount" | "user" | "system";
716
+ principalId: string;
717
+ };
718
+ error?: string | undefined;
719
+ queuedAt?: string | undefined;
720
+ finishedAt?: string | undefined;
721
+ }, {
722
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
723
+ projectId: string;
724
+ id: string;
725
+ startedAt: string;
726
+ input: Record<string, unknown>;
727
+ workflowId: string;
728
+ requestedBy: {
729
+ principalType: "serviceAccount" | "user" | "system";
730
+ principalId: string;
731
+ };
732
+ error?: string | undefined;
733
+ queuedAt?: string | undefined;
734
+ finishedAt?: string | undefined;
735
+ }>, "many">;
736
+ hasMore: z.ZodBoolean;
737
+ total: z.ZodNumber;
738
+ }, "strip", z.ZodTypeAny, {
739
+ runs: {
740
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
741
+ projectId: string;
742
+ id: string;
743
+ startedAt: string;
744
+ input: Record<string, unknown>;
745
+ workflowId: string;
746
+ requestedBy: {
747
+ principalType: "serviceAccount" | "user" | "system";
748
+ principalId: string;
749
+ };
750
+ error?: string | undefined;
751
+ queuedAt?: string | undefined;
752
+ finishedAt?: string | undefined;
753
+ }[];
754
+ hasMore: boolean;
755
+ total: number;
756
+ }, {
757
+ runs: {
758
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
759
+ projectId: string;
760
+ id: string;
761
+ startedAt: string;
762
+ input: Record<string, unknown>;
763
+ workflowId: string;
764
+ requestedBy: {
765
+ principalType: "serviceAccount" | "user" | "system";
766
+ principalId: string;
767
+ };
768
+ error?: string | undefined;
769
+ queuedAt?: string | undefined;
770
+ finishedAt?: string | undefined;
771
+ }[];
772
+ hasMore: boolean;
773
+ total: number;
774
+ }>;
775
+ export declare const WorkflowRunDetailResponseSchema: z.ZodObject<{
776
+ run: z.ZodObject<{
777
+ id: z.ZodString;
778
+ projectId: z.ZodString;
779
+ workflowId: z.ZodString;
780
+ status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
781
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
782
+ queuedAt: z.ZodOptional<z.ZodString>;
783
+ startedAt: z.ZodString;
784
+ finishedAt: z.ZodOptional<z.ZodString>;
785
+ error: z.ZodOptional<z.ZodString>;
786
+ requestedBy: z.ZodObject<{
787
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
788
+ principalId: z.ZodString;
789
+ }, "strip", z.ZodTypeAny, {
790
+ principalType: "serviceAccount" | "user" | "system";
791
+ principalId: string;
792
+ }, {
793
+ principalType: "serviceAccount" | "user" | "system";
794
+ principalId: string;
795
+ }>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
798
+ projectId: string;
799
+ id: string;
800
+ startedAt: string;
801
+ input: Record<string, unknown>;
802
+ workflowId: string;
803
+ requestedBy: {
804
+ principalType: "serviceAccount" | "user" | "system";
805
+ principalId: string;
806
+ };
807
+ error?: string | undefined;
808
+ queuedAt?: string | undefined;
809
+ finishedAt?: string | undefined;
810
+ }, {
811
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
812
+ projectId: string;
813
+ id: string;
814
+ startedAt: string;
815
+ input: Record<string, unknown>;
816
+ workflowId: string;
817
+ requestedBy: {
818
+ principalType: "serviceAccount" | "user" | "system";
819
+ principalId: string;
820
+ };
821
+ error?: string | undefined;
822
+ queuedAt?: string | undefined;
823
+ finishedAt?: string | undefined;
824
+ }>;
825
+ nodes: z.ZodArray<z.ZodObject<{
826
+ id: z.ZodString;
827
+ projectId: z.ZodString;
828
+ workflowRunId: z.ZodString;
829
+ workflowId: z.ZodString;
830
+ nodeIndex: z.ZodNumber;
831
+ nodeType: z.ZodEnum<["step", "action", "intervention", "agent"]>;
832
+ nodeId: z.ZodString;
833
+ nodeKey: z.ZodString;
834
+ status: z.ZodEnum<["running", "waiting", "succeeded", "failed", "cancelled"]>;
835
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
836
+ startedAt: z.ZodString;
837
+ finishedAt: z.ZodOptional<z.ZodString>;
838
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
+ error: z.ZodOptional<z.ZodString>;
840
+ agentExecution: z.ZodOptional<z.ZodObject<{
841
+ agentId: z.ZodString;
842
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
843
+ attempt: z.ZodNumber;
844
+ modelId: z.ZodOptional<z.ZodString>;
845
+ finishReason: z.ZodOptional<z.ZodString>;
846
+ usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
847
+ startedAt: z.ZodOptional<z.ZodString>;
848
+ completedAt: z.ZodOptional<z.ZodString>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
851
+ agentId: string;
852
+ attempt: number;
853
+ startedAt?: string | undefined;
854
+ completedAt?: string | undefined;
855
+ modelId?: string | undefined;
856
+ finishReason?: string | undefined;
857
+ usage?: Record<string, unknown> | undefined;
858
+ }, {
859
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
860
+ agentId: string;
861
+ attempt: number;
862
+ startedAt?: string | undefined;
863
+ completedAt?: string | undefined;
864
+ modelId?: string | undefined;
865
+ finishReason?: string | undefined;
866
+ usage?: Record<string, unknown> | undefined;
867
+ }>>;
868
+ }, "strip", z.ZodTypeAny, {
869
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
870
+ projectId: string;
871
+ id: string;
872
+ startedAt: string;
873
+ input: Record<string, unknown>;
874
+ workflowId: string;
875
+ nodeIndex: number;
876
+ nodeType: "action" | "agent" | "step" | "intervention";
877
+ nodeId: string;
878
+ nodeKey: string;
879
+ workflowRunId: string;
880
+ error?: string | undefined;
881
+ finishedAt?: string | undefined;
882
+ output?: Record<string, unknown> | undefined;
883
+ agentExecution?: {
884
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
885
+ agentId: string;
886
+ attempt: number;
887
+ startedAt?: string | undefined;
888
+ completedAt?: string | undefined;
889
+ modelId?: string | undefined;
890
+ finishReason?: string | undefined;
891
+ usage?: Record<string, unknown> | undefined;
892
+ } | undefined;
893
+ }, {
894
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
895
+ projectId: string;
896
+ id: string;
897
+ startedAt: string;
898
+ input: Record<string, unknown>;
899
+ workflowId: string;
900
+ nodeIndex: number;
901
+ nodeType: "action" | "agent" | "step" | "intervention";
902
+ nodeId: string;
903
+ nodeKey: string;
904
+ workflowRunId: string;
905
+ error?: string | undefined;
906
+ finishedAt?: string | undefined;
907
+ output?: Record<string, unknown> | undefined;
908
+ agentExecution?: {
909
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
910
+ agentId: string;
911
+ attempt: number;
912
+ startedAt?: string | undefined;
913
+ completedAt?: string | undefined;
914
+ modelId?: string | undefined;
915
+ finishReason?: string | undefined;
916
+ usage?: Record<string, unknown> | undefined;
917
+ } | undefined;
918
+ }>, "many">;
919
+ }, "strip", z.ZodTypeAny, {
920
+ run: {
921
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
922
+ projectId: string;
923
+ id: string;
924
+ startedAt: string;
925
+ input: Record<string, unknown>;
926
+ workflowId: string;
927
+ requestedBy: {
928
+ principalType: "serviceAccount" | "user" | "system";
929
+ principalId: string;
930
+ };
931
+ error?: string | undefined;
932
+ queuedAt?: string | undefined;
933
+ finishedAt?: string | undefined;
934
+ };
935
+ nodes: {
936
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
937
+ projectId: string;
938
+ id: string;
939
+ startedAt: string;
940
+ input: Record<string, unknown>;
941
+ workflowId: string;
942
+ nodeIndex: number;
943
+ nodeType: "action" | "agent" | "step" | "intervention";
944
+ nodeId: string;
945
+ nodeKey: string;
946
+ workflowRunId: string;
947
+ error?: string | undefined;
948
+ finishedAt?: string | undefined;
949
+ output?: Record<string, unknown> | undefined;
950
+ agentExecution?: {
951
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
952
+ agentId: string;
953
+ attempt: number;
954
+ startedAt?: string | undefined;
955
+ completedAt?: string | undefined;
956
+ modelId?: string | undefined;
957
+ finishReason?: string | undefined;
958
+ usage?: Record<string, unknown> | undefined;
959
+ } | undefined;
960
+ }[];
961
+ }, {
962
+ run: {
963
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
964
+ projectId: string;
965
+ id: string;
966
+ startedAt: string;
967
+ input: Record<string, unknown>;
968
+ workflowId: string;
969
+ requestedBy: {
970
+ principalType: "serviceAccount" | "user" | "system";
971
+ principalId: string;
972
+ };
973
+ error?: string | undefined;
974
+ queuedAt?: string | undefined;
975
+ finishedAt?: string | undefined;
976
+ };
977
+ nodes: {
978
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
979
+ projectId: string;
980
+ id: string;
981
+ startedAt: string;
982
+ input: Record<string, unknown>;
983
+ workflowId: string;
984
+ nodeIndex: number;
985
+ nodeType: "action" | "agent" | "step" | "intervention";
986
+ nodeId: string;
987
+ nodeKey: string;
988
+ workflowRunId: string;
989
+ error?: string | undefined;
990
+ finishedAt?: string | undefined;
991
+ output?: Record<string, unknown> | undefined;
992
+ agentExecution?: {
993
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
994
+ agentId: string;
995
+ attempt: number;
996
+ startedAt?: string | undefined;
997
+ completedAt?: string | undefined;
998
+ modelId?: string | undefined;
999
+ finishReason?: string | undefined;
1000
+ usage?: Record<string, unknown> | undefined;
1001
+ } | undefined;
1002
+ }[];
1003
+ }>;
1004
+ export declare const CancelWorkflowRunResponseSchema: z.ZodObject<{
1005
+ run: z.ZodObject<{
1006
+ id: z.ZodString;
1007
+ projectId: z.ZodString;
1008
+ workflowId: z.ZodString;
1009
+ status: z.ZodEnum<["queued", "running", "waiting", "succeeded", "failed", "cancelled"]>;
1010
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1011
+ queuedAt: z.ZodOptional<z.ZodString>;
1012
+ startedAt: z.ZodString;
1013
+ finishedAt: z.ZodOptional<z.ZodString>;
1014
+ error: z.ZodOptional<z.ZodString>;
1015
+ requestedBy: z.ZodObject<{
1016
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1017
+ principalId: z.ZodString;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ principalType: "serviceAccount" | "user" | "system";
1020
+ principalId: string;
1021
+ }, {
1022
+ principalType: "serviceAccount" | "user" | "system";
1023
+ principalId: string;
1024
+ }>;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1027
+ projectId: string;
1028
+ id: string;
1029
+ startedAt: string;
1030
+ input: Record<string, unknown>;
1031
+ workflowId: string;
1032
+ requestedBy: {
1033
+ principalType: "serviceAccount" | "user" | "system";
1034
+ principalId: string;
1035
+ };
1036
+ error?: string | undefined;
1037
+ queuedAt?: string | undefined;
1038
+ finishedAt?: string | undefined;
1039
+ }, {
1040
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1041
+ projectId: string;
1042
+ id: string;
1043
+ startedAt: string;
1044
+ input: Record<string, unknown>;
1045
+ workflowId: string;
1046
+ requestedBy: {
1047
+ principalType: "serviceAccount" | "user" | "system";
1048
+ principalId: string;
1049
+ };
1050
+ error?: string | undefined;
1051
+ queuedAt?: string | undefined;
1052
+ finishedAt?: string | undefined;
1053
+ }>;
1054
+ nodes: z.ZodArray<z.ZodObject<{
1055
+ id: z.ZodString;
1056
+ projectId: z.ZodString;
1057
+ workflowRunId: z.ZodString;
1058
+ workflowId: z.ZodString;
1059
+ nodeIndex: z.ZodNumber;
1060
+ nodeType: z.ZodEnum<["step", "action", "intervention", "agent"]>;
1061
+ nodeId: z.ZodString;
1062
+ nodeKey: z.ZodString;
1063
+ status: z.ZodEnum<["running", "waiting", "succeeded", "failed", "cancelled"]>;
1064
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1065
+ startedAt: z.ZodString;
1066
+ finishedAt: z.ZodOptional<z.ZodString>;
1067
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1068
+ error: z.ZodOptional<z.ZodString>;
1069
+ agentExecution: z.ZodOptional<z.ZodObject<{
1070
+ agentId: z.ZodString;
1071
+ status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
1072
+ attempt: z.ZodNumber;
1073
+ modelId: z.ZodOptional<z.ZodString>;
1074
+ finishReason: z.ZodOptional<z.ZodString>;
1075
+ usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1076
+ startedAt: z.ZodOptional<z.ZodString>;
1077
+ completedAt: z.ZodOptional<z.ZodString>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1080
+ agentId: string;
1081
+ attempt: number;
1082
+ startedAt?: string | undefined;
1083
+ completedAt?: string | undefined;
1084
+ modelId?: string | undefined;
1085
+ finishReason?: string | undefined;
1086
+ usage?: Record<string, unknown> | undefined;
1087
+ }, {
1088
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1089
+ agentId: string;
1090
+ attempt: number;
1091
+ startedAt?: string | undefined;
1092
+ completedAt?: string | undefined;
1093
+ modelId?: string | undefined;
1094
+ finishReason?: string | undefined;
1095
+ usage?: Record<string, unknown> | undefined;
1096
+ }>>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1099
+ projectId: string;
1100
+ id: string;
1101
+ startedAt: string;
1102
+ input: Record<string, unknown>;
1103
+ workflowId: string;
1104
+ nodeIndex: number;
1105
+ nodeType: "action" | "agent" | "step" | "intervention";
1106
+ nodeId: string;
1107
+ nodeKey: string;
1108
+ workflowRunId: string;
1109
+ error?: string | undefined;
1110
+ finishedAt?: string | undefined;
1111
+ output?: Record<string, unknown> | undefined;
1112
+ agentExecution?: {
1113
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1114
+ agentId: string;
1115
+ attempt: number;
1116
+ startedAt?: string | undefined;
1117
+ completedAt?: string | undefined;
1118
+ modelId?: string | undefined;
1119
+ finishReason?: string | undefined;
1120
+ usage?: Record<string, unknown> | undefined;
1121
+ } | undefined;
1122
+ }, {
1123
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1124
+ projectId: string;
1125
+ id: string;
1126
+ startedAt: string;
1127
+ input: Record<string, unknown>;
1128
+ workflowId: string;
1129
+ nodeIndex: number;
1130
+ nodeType: "action" | "agent" | "step" | "intervention";
1131
+ nodeId: string;
1132
+ nodeKey: string;
1133
+ workflowRunId: string;
1134
+ error?: string | undefined;
1135
+ finishedAt?: string | undefined;
1136
+ output?: Record<string, unknown> | undefined;
1137
+ agentExecution?: {
1138
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1139
+ agentId: string;
1140
+ attempt: number;
1141
+ startedAt?: string | undefined;
1142
+ completedAt?: string | undefined;
1143
+ modelId?: string | undefined;
1144
+ finishReason?: string | undefined;
1145
+ usage?: Record<string, unknown> | undefined;
1146
+ } | undefined;
1147
+ }>, "many">;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ run: {
1150
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1151
+ projectId: string;
1152
+ id: string;
1153
+ startedAt: string;
1154
+ input: Record<string, unknown>;
1155
+ workflowId: string;
1156
+ requestedBy: {
1157
+ principalType: "serviceAccount" | "user" | "system";
1158
+ principalId: string;
1159
+ };
1160
+ error?: string | undefined;
1161
+ queuedAt?: string | undefined;
1162
+ finishedAt?: string | undefined;
1163
+ };
1164
+ nodes: {
1165
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1166
+ projectId: string;
1167
+ id: string;
1168
+ startedAt: string;
1169
+ input: Record<string, unknown>;
1170
+ workflowId: string;
1171
+ nodeIndex: number;
1172
+ nodeType: "action" | "agent" | "step" | "intervention";
1173
+ nodeId: string;
1174
+ nodeKey: string;
1175
+ workflowRunId: string;
1176
+ error?: string | undefined;
1177
+ finishedAt?: string | undefined;
1178
+ output?: Record<string, unknown> | undefined;
1179
+ agentExecution?: {
1180
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1181
+ agentId: string;
1182
+ attempt: number;
1183
+ startedAt?: string | undefined;
1184
+ completedAt?: string | undefined;
1185
+ modelId?: string | undefined;
1186
+ finishReason?: string | undefined;
1187
+ usage?: Record<string, unknown> | undefined;
1188
+ } | undefined;
1189
+ }[];
1190
+ }, {
1191
+ run: {
1192
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1193
+ projectId: string;
1194
+ id: string;
1195
+ startedAt: string;
1196
+ input: Record<string, unknown>;
1197
+ workflowId: string;
1198
+ requestedBy: {
1199
+ principalType: "serviceAccount" | "user" | "system";
1200
+ principalId: string;
1201
+ };
1202
+ error?: string | undefined;
1203
+ queuedAt?: string | undefined;
1204
+ finishedAt?: string | undefined;
1205
+ };
1206
+ nodes: {
1207
+ status: "running" | "succeeded" | "failed" | "cancelled" | "waiting";
1208
+ projectId: string;
1209
+ id: string;
1210
+ startedAt: string;
1211
+ input: Record<string, unknown>;
1212
+ workflowId: string;
1213
+ nodeIndex: number;
1214
+ nodeType: "action" | "agent" | "step" | "intervention";
1215
+ nodeId: string;
1216
+ nodeKey: string;
1217
+ workflowRunId: string;
1218
+ error?: string | undefined;
1219
+ finishedAt?: string | undefined;
1220
+ output?: Record<string, unknown> | undefined;
1221
+ agentExecution?: {
1222
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
1223
+ agentId: string;
1224
+ attempt: number;
1225
+ startedAt?: string | undefined;
1226
+ completedAt?: string | undefined;
1227
+ modelId?: string | undefined;
1228
+ finishReason?: string | undefined;
1229
+ usage?: Record<string, unknown> | undefined;
1230
+ } | undefined;
1231
+ }[];
1232
+ }>;
1233
+ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
1234
+ interventions: z.ZodArray<z.ZodObject<{
1235
+ id: z.ZodString;
1236
+ projectId: z.ZodString;
1237
+ workflowId: z.ZodString;
1238
+ workflowRunId: z.ZodString;
1239
+ nodeRunId: z.ZodString;
1240
+ nodeIndex: z.ZodNumber;
1241
+ nodeId: z.ZodString;
1242
+ nodeKey: z.ZodString;
1243
+ interventionId: z.ZodString;
1244
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1245
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1246
+ status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
1247
+ requestedAt: z.ZodString;
1248
+ expiresAt: z.ZodOptional<z.ZodString>;
1249
+ submittedAt: z.ZodOptional<z.ZodString>;
1250
+ submittedBy: z.ZodOptional<z.ZodObject<{
1251
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1252
+ principalId: z.ZodString;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ principalType: "serviceAccount" | "user" | "system";
1255
+ principalId: string;
1256
+ }, {
1257
+ principalType: "serviceAccount" | "user" | "system";
1258
+ principalId: string;
1259
+ }>>;
1260
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1261
+ cancelledAt: z.ZodOptional<z.ZodString>;
1262
+ cancelledBy: z.ZodOptional<z.ZodObject<{
1263
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1264
+ principalId: z.ZodString;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ principalType: "serviceAccount" | "user" | "system";
1267
+ principalId: string;
1268
+ }, {
1269
+ principalType: "serviceAccount" | "user" | "system";
1270
+ principalId: string;
1271
+ }>>;
1272
+ expiredAt: z.ZodOptional<z.ZodString>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ status: "cancelled" | "expired" | "pending" | "submitted";
1275
+ projectId: string;
1276
+ id: string;
1277
+ input: Record<string, unknown>;
1278
+ workflowId: string;
1279
+ nodeRunId: string;
1280
+ nodeIndex: number;
1281
+ nodeId: string;
1282
+ nodeKey: string;
1283
+ interventionId: string;
1284
+ requestedAt: string;
1285
+ workflowRunId: string;
1286
+ defaultResponse: Record<string, unknown>;
1287
+ response?: Record<string, unknown> | undefined;
1288
+ expiresAt?: string | undefined;
1289
+ submittedAt?: string | undefined;
1290
+ cancelledAt?: string | undefined;
1291
+ expiredAt?: string | undefined;
1292
+ submittedBy?: {
1293
+ principalType: "serviceAccount" | "user" | "system";
1294
+ principalId: string;
1295
+ } | undefined;
1296
+ cancelledBy?: {
1297
+ principalType: "serviceAccount" | "user" | "system";
1298
+ principalId: string;
1299
+ } | undefined;
1300
+ }, {
1301
+ status: "cancelled" | "expired" | "pending" | "submitted";
1302
+ projectId: string;
1303
+ id: string;
1304
+ input: Record<string, unknown>;
1305
+ workflowId: string;
1306
+ nodeRunId: string;
1307
+ nodeIndex: number;
1308
+ nodeId: string;
1309
+ nodeKey: string;
1310
+ interventionId: string;
1311
+ requestedAt: string;
1312
+ workflowRunId: string;
1313
+ defaultResponse: Record<string, unknown>;
1314
+ response?: Record<string, unknown> | undefined;
1315
+ expiresAt?: string | undefined;
1316
+ submittedAt?: string | undefined;
1317
+ cancelledAt?: string | undefined;
1318
+ expiredAt?: string | undefined;
1319
+ submittedBy?: {
1320
+ principalType: "serviceAccount" | "user" | "system";
1321
+ principalId: string;
1322
+ } | undefined;
1323
+ cancelledBy?: {
1324
+ principalType: "serviceAccount" | "user" | "system";
1325
+ principalId: string;
1326
+ } | undefined;
1327
+ }>, "many">;
1328
+ hasMore: z.ZodBoolean;
1329
+ total: z.ZodNumber;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ hasMore: boolean;
1332
+ total: number;
1333
+ interventions: {
1334
+ status: "cancelled" | "expired" | "pending" | "submitted";
1335
+ projectId: string;
1336
+ id: string;
1337
+ input: Record<string, unknown>;
1338
+ workflowId: string;
1339
+ nodeRunId: string;
1340
+ nodeIndex: number;
1341
+ nodeId: string;
1342
+ nodeKey: string;
1343
+ interventionId: string;
1344
+ requestedAt: string;
1345
+ workflowRunId: string;
1346
+ defaultResponse: Record<string, unknown>;
1347
+ response?: Record<string, unknown> | undefined;
1348
+ expiresAt?: string | undefined;
1349
+ submittedAt?: string | undefined;
1350
+ cancelledAt?: string | undefined;
1351
+ expiredAt?: string | undefined;
1352
+ submittedBy?: {
1353
+ principalType: "serviceAccount" | "user" | "system";
1354
+ principalId: string;
1355
+ } | undefined;
1356
+ cancelledBy?: {
1357
+ principalType: "serviceAccount" | "user" | "system";
1358
+ principalId: string;
1359
+ } | undefined;
1360
+ }[];
1361
+ }, {
1362
+ hasMore: boolean;
1363
+ total: number;
1364
+ interventions: {
1365
+ status: "cancelled" | "expired" | "pending" | "submitted";
1366
+ projectId: string;
1367
+ id: string;
1368
+ input: Record<string, unknown>;
1369
+ workflowId: string;
1370
+ nodeRunId: string;
1371
+ nodeIndex: number;
1372
+ nodeId: string;
1373
+ nodeKey: string;
1374
+ interventionId: string;
1375
+ requestedAt: string;
1376
+ workflowRunId: string;
1377
+ defaultResponse: Record<string, unknown>;
1378
+ response?: Record<string, unknown> | undefined;
1379
+ expiresAt?: string | undefined;
1380
+ submittedAt?: string | undefined;
1381
+ cancelledAt?: string | undefined;
1382
+ expiredAt?: string | undefined;
1383
+ submittedBy?: {
1384
+ principalType: "serviceAccount" | "user" | "system";
1385
+ principalId: string;
1386
+ } | undefined;
1387
+ cancelledBy?: {
1388
+ principalType: "serviceAccount" | "user" | "system";
1389
+ principalId: string;
1390
+ } | undefined;
1391
+ }[];
1392
+ }>;
1393
+ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
1394
+ intervention: z.ZodObject<{
1395
+ id: z.ZodString;
1396
+ projectId: z.ZodString;
1397
+ workflowId: z.ZodString;
1398
+ workflowRunId: z.ZodString;
1399
+ nodeRunId: z.ZodString;
1400
+ nodeIndex: z.ZodNumber;
1401
+ nodeId: z.ZodString;
1402
+ nodeKey: z.ZodString;
1403
+ interventionId: z.ZodString;
1404
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1405
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1406
+ status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
1407
+ requestedAt: z.ZodString;
1408
+ expiresAt: z.ZodOptional<z.ZodString>;
1409
+ submittedAt: z.ZodOptional<z.ZodString>;
1410
+ submittedBy: z.ZodOptional<z.ZodObject<{
1411
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1412
+ principalId: z.ZodString;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ principalType: "serviceAccount" | "user" | "system";
1415
+ principalId: string;
1416
+ }, {
1417
+ principalType: "serviceAccount" | "user" | "system";
1418
+ principalId: string;
1419
+ }>>;
1420
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1421
+ cancelledAt: z.ZodOptional<z.ZodString>;
1422
+ cancelledBy: z.ZodOptional<z.ZodObject<{
1423
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1424
+ principalId: z.ZodString;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ principalType: "serviceAccount" | "user" | "system";
1427
+ principalId: string;
1428
+ }, {
1429
+ principalType: "serviceAccount" | "user" | "system";
1430
+ principalId: string;
1431
+ }>>;
1432
+ expiredAt: z.ZodOptional<z.ZodString>;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ status: "cancelled" | "expired" | "pending" | "submitted";
1435
+ projectId: string;
1436
+ id: string;
1437
+ input: Record<string, unknown>;
1438
+ workflowId: string;
1439
+ nodeRunId: string;
1440
+ nodeIndex: number;
1441
+ nodeId: string;
1442
+ nodeKey: string;
1443
+ interventionId: string;
1444
+ requestedAt: string;
1445
+ workflowRunId: string;
1446
+ defaultResponse: Record<string, unknown>;
1447
+ response?: Record<string, unknown> | undefined;
1448
+ expiresAt?: string | undefined;
1449
+ submittedAt?: string | undefined;
1450
+ cancelledAt?: string | undefined;
1451
+ expiredAt?: string | undefined;
1452
+ submittedBy?: {
1453
+ principalType: "serviceAccount" | "user" | "system";
1454
+ principalId: string;
1455
+ } | undefined;
1456
+ cancelledBy?: {
1457
+ principalType: "serviceAccount" | "user" | "system";
1458
+ principalId: string;
1459
+ } | undefined;
1460
+ }, {
1461
+ status: "cancelled" | "expired" | "pending" | "submitted";
1462
+ projectId: string;
1463
+ id: string;
1464
+ input: Record<string, unknown>;
1465
+ workflowId: string;
1466
+ nodeRunId: string;
1467
+ nodeIndex: number;
1468
+ nodeId: string;
1469
+ nodeKey: string;
1470
+ interventionId: string;
1471
+ requestedAt: string;
1472
+ workflowRunId: string;
1473
+ defaultResponse: Record<string, unknown>;
1474
+ response?: Record<string, unknown> | undefined;
1475
+ expiresAt?: string | undefined;
1476
+ submittedAt?: string | undefined;
1477
+ cancelledAt?: string | undefined;
1478
+ expiredAt?: string | undefined;
1479
+ submittedBy?: {
1480
+ principalType: "serviceAccount" | "user" | "system";
1481
+ principalId: string;
1482
+ } | undefined;
1483
+ cancelledBy?: {
1484
+ principalType: "serviceAccount" | "user" | "system";
1485
+ principalId: string;
1486
+ } | undefined;
1487
+ }>;
1488
+ jobId: z.ZodString;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ jobId: string;
1491
+ intervention: {
1492
+ status: "cancelled" | "expired" | "pending" | "submitted";
1493
+ projectId: string;
1494
+ id: string;
1495
+ input: Record<string, unknown>;
1496
+ workflowId: string;
1497
+ nodeRunId: string;
1498
+ nodeIndex: number;
1499
+ nodeId: string;
1500
+ nodeKey: string;
1501
+ interventionId: string;
1502
+ requestedAt: string;
1503
+ workflowRunId: string;
1504
+ defaultResponse: Record<string, unknown>;
1505
+ response?: Record<string, unknown> | undefined;
1506
+ expiresAt?: string | undefined;
1507
+ submittedAt?: string | undefined;
1508
+ cancelledAt?: string | undefined;
1509
+ expiredAt?: string | undefined;
1510
+ submittedBy?: {
1511
+ principalType: "serviceAccount" | "user" | "system";
1512
+ principalId: string;
1513
+ } | undefined;
1514
+ cancelledBy?: {
1515
+ principalType: "serviceAccount" | "user" | "system";
1516
+ principalId: string;
1517
+ } | undefined;
1518
+ };
1519
+ }, {
1520
+ jobId: string;
1521
+ intervention: {
1522
+ status: "cancelled" | "expired" | "pending" | "submitted";
1523
+ projectId: string;
1524
+ id: string;
1525
+ input: Record<string, unknown>;
1526
+ workflowId: string;
1527
+ nodeRunId: string;
1528
+ nodeIndex: number;
1529
+ nodeId: string;
1530
+ nodeKey: string;
1531
+ interventionId: string;
1532
+ requestedAt: string;
1533
+ workflowRunId: string;
1534
+ defaultResponse: Record<string, unknown>;
1535
+ response?: Record<string, unknown> | undefined;
1536
+ expiresAt?: string | undefined;
1537
+ submittedAt?: string | undefined;
1538
+ cancelledAt?: string | undefined;
1539
+ expiredAt?: string | undefined;
1540
+ submittedBy?: {
1541
+ principalType: "serviceAccount" | "user" | "system";
1542
+ principalId: string;
1543
+ } | undefined;
1544
+ cancelledBy?: {
1545
+ principalType: "serviceAccount" | "user" | "system";
1546
+ principalId: string;
1547
+ } | undefined;
1548
+ };
1549
+ }>;
1550
+ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
1551
+ intervention: z.ZodObject<{
1552
+ id: z.ZodString;
1553
+ projectId: z.ZodString;
1554
+ workflowId: z.ZodString;
1555
+ workflowRunId: z.ZodString;
1556
+ nodeRunId: z.ZodString;
1557
+ nodeIndex: z.ZodNumber;
1558
+ nodeId: z.ZodString;
1559
+ nodeKey: z.ZodString;
1560
+ interventionId: z.ZodString;
1561
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1562
+ defaultResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1563
+ status: z.ZodEnum<["pending", "submitted", "cancelled", "expired"]>;
1564
+ requestedAt: z.ZodString;
1565
+ expiresAt: z.ZodOptional<z.ZodString>;
1566
+ submittedAt: z.ZodOptional<z.ZodString>;
1567
+ submittedBy: z.ZodOptional<z.ZodObject<{
1568
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1569
+ principalId: z.ZodString;
1570
+ }, "strip", z.ZodTypeAny, {
1571
+ principalType: "serviceAccount" | "user" | "system";
1572
+ principalId: string;
1573
+ }, {
1574
+ principalType: "serviceAccount" | "user" | "system";
1575
+ principalId: string;
1576
+ }>>;
1577
+ response: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1578
+ cancelledAt: z.ZodOptional<z.ZodString>;
1579
+ cancelledBy: z.ZodOptional<z.ZodObject<{
1580
+ principalType: z.ZodEnum<["user", "serviceAccount", "system"]>;
1581
+ principalId: z.ZodString;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ principalType: "serviceAccount" | "user" | "system";
1584
+ principalId: string;
1585
+ }, {
1586
+ principalType: "serviceAccount" | "user" | "system";
1587
+ principalId: string;
1588
+ }>>;
1589
+ expiredAt: z.ZodOptional<z.ZodString>;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ status: "cancelled" | "expired" | "pending" | "submitted";
1592
+ projectId: string;
1593
+ id: string;
1594
+ input: Record<string, unknown>;
1595
+ workflowId: string;
1596
+ nodeRunId: string;
1597
+ nodeIndex: number;
1598
+ nodeId: string;
1599
+ nodeKey: string;
1600
+ interventionId: string;
1601
+ requestedAt: string;
1602
+ workflowRunId: string;
1603
+ defaultResponse: Record<string, unknown>;
1604
+ response?: Record<string, unknown> | undefined;
1605
+ expiresAt?: string | undefined;
1606
+ submittedAt?: string | undefined;
1607
+ cancelledAt?: string | undefined;
1608
+ expiredAt?: string | undefined;
1609
+ submittedBy?: {
1610
+ principalType: "serviceAccount" | "user" | "system";
1611
+ principalId: string;
1612
+ } | undefined;
1613
+ cancelledBy?: {
1614
+ principalType: "serviceAccount" | "user" | "system";
1615
+ principalId: string;
1616
+ } | undefined;
1617
+ }, {
1618
+ status: "cancelled" | "expired" | "pending" | "submitted";
1619
+ projectId: string;
1620
+ id: string;
1621
+ input: Record<string, unknown>;
1622
+ workflowId: string;
1623
+ nodeRunId: string;
1624
+ nodeIndex: number;
1625
+ nodeId: string;
1626
+ nodeKey: string;
1627
+ interventionId: string;
1628
+ requestedAt: string;
1629
+ workflowRunId: string;
1630
+ defaultResponse: Record<string, unknown>;
1631
+ response?: Record<string, unknown> | undefined;
1632
+ expiresAt?: string | undefined;
1633
+ submittedAt?: string | undefined;
1634
+ cancelledAt?: string | undefined;
1635
+ expiredAt?: string | undefined;
1636
+ submittedBy?: {
1637
+ principalType: "serviceAccount" | "user" | "system";
1638
+ principalId: string;
1639
+ } | undefined;
1640
+ cancelledBy?: {
1641
+ principalType: "serviceAccount" | "user" | "system";
1642
+ principalId: string;
1643
+ } | undefined;
1644
+ }>;
1645
+ }, "strip", z.ZodTypeAny, {
1646
+ intervention: {
1647
+ status: "cancelled" | "expired" | "pending" | "submitted";
1648
+ projectId: string;
1649
+ id: string;
1650
+ input: Record<string, unknown>;
1651
+ workflowId: string;
1652
+ nodeRunId: string;
1653
+ nodeIndex: number;
1654
+ nodeId: string;
1655
+ nodeKey: string;
1656
+ interventionId: string;
1657
+ requestedAt: string;
1658
+ workflowRunId: string;
1659
+ defaultResponse: Record<string, unknown>;
1660
+ response?: Record<string, unknown> | undefined;
1661
+ expiresAt?: string | undefined;
1662
+ submittedAt?: string | undefined;
1663
+ cancelledAt?: string | undefined;
1664
+ expiredAt?: string | undefined;
1665
+ submittedBy?: {
1666
+ principalType: "serviceAccount" | "user" | "system";
1667
+ principalId: string;
1668
+ } | undefined;
1669
+ cancelledBy?: {
1670
+ principalType: "serviceAccount" | "user" | "system";
1671
+ principalId: string;
1672
+ } | undefined;
1673
+ };
1674
+ }, {
1675
+ intervention: {
1676
+ status: "cancelled" | "expired" | "pending" | "submitted";
1677
+ projectId: string;
1678
+ id: string;
1679
+ input: Record<string, unknown>;
1680
+ workflowId: string;
1681
+ nodeRunId: string;
1682
+ nodeIndex: number;
1683
+ nodeId: string;
1684
+ nodeKey: string;
1685
+ interventionId: string;
1686
+ requestedAt: string;
1687
+ workflowRunId: string;
1688
+ defaultResponse: Record<string, unknown>;
1689
+ response?: Record<string, unknown> | undefined;
1690
+ expiresAt?: string | undefined;
1691
+ submittedAt?: string | undefined;
1692
+ cancelledAt?: string | undefined;
1693
+ expiredAt?: string | undefined;
1694
+ submittedBy?: {
1695
+ principalType: "serviceAccount" | "user" | "system";
1696
+ principalId: string;
1697
+ } | undefined;
1698
+ cancelledBy?: {
1699
+ principalType: "serviceAccount" | "user" | "system";
1700
+ principalId: string;
1701
+ } | undefined;
1702
+ };
1703
+ }>;
1704
+ export declare const RequestWorkflowRunResponseSchema: z.ZodObject<{
1705
+ runId: z.ZodString;
1706
+ jobId: z.ZodString;
1707
+ workflowId: z.ZodString;
1708
+ queuedAt: z.ZodString;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ runId: string;
1711
+ queuedAt: string;
1712
+ jobId: string;
1713
+ workflowId: string;
1714
+ }, {
1715
+ runId: string;
1716
+ queuedAt: string;
1717
+ jobId: string;
1718
+ workflowId: string;
1719
+ }>;
1720
+ //# sourceMappingURL=workflows.d.ts.map