@shipfox/api-agent-access-dto 21.0.0 → 21.1.0

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 (41) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-type.log +0 -1
  3. package/CHANGELOG.md +8 -0
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +3 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/schemas/diagnostic-tools.d.ts.map +1 -1
  9. package/dist/schemas/diagnostic-tools.js +1 -6
  10. package/dist/schemas/diagnostic-tools.js.map +1 -1
  11. package/dist/schemas/log-tools.d.ts +215 -0
  12. package/dist/schemas/log-tools.d.ts.map +1 -0
  13. package/dist/schemas/log-tools.js +224 -0
  14. package/dist/schemas/log-tools.js.map +1 -0
  15. package/dist/schemas/paged-tools.d.ts.map +1 -1
  16. package/dist/schemas/paged-tools.js +1 -6
  17. package/dist/schemas/paged-tools.js.map +1 -1
  18. package/dist/schemas/primitives.d.ts +5 -0
  19. package/dist/schemas/primitives.d.ts.map +1 -0
  20. package/dist/schemas/primitives.js +9 -0
  21. package/dist/schemas/primitives.js.map +1 -0
  22. package/dist/schemas/workflow-diagnostics.d.ts +862 -0
  23. package/dist/schemas/workflow-diagnostics.d.ts.map +1 -0
  24. package/dist/schemas/workflow-diagnostics.js +876 -0
  25. package/dist/schemas/workflow-diagnostics.js.map +1 -0
  26. package/dist/schemas/workflow-tools.d.ts +1305 -0
  27. package/dist/schemas/workflow-tools.d.ts.map +1 -0
  28. package/dist/schemas/workflow-tools.js +938 -0
  29. package/dist/schemas/workflow-tools.js.map +1 -0
  30. package/dist/tsconfig.test.tsbuildinfo +1 -1
  31. package/package.json +3 -2
  32. package/src/index.ts +96 -0
  33. package/src/schemas/diagnostic-tools.ts +1 -12
  34. package/src/schemas/log-tools.ts +209 -0
  35. package/src/schemas/paged-tools.ts +1 -10
  36. package/src/schemas/primitives.ts +14 -0
  37. package/src/schemas/workflow-diagnostics.test.ts +277 -0
  38. package/src/schemas/workflow-diagnostics.ts +693 -0
  39. package/src/schemas/workflow-tools.test.ts +202 -0
  40. package/src/schemas/workflow-tools.ts +738 -0
  41. package/tsconfig.build.tsbuildinfo +1 -1
@@ -0,0 +1,1305 @@
1
+ import { z } from 'zod';
2
+ export declare const AGENT_ACCESS_WORKFLOW_ATTEMPT_MAX = 2147483647;
3
+ export declare const AGENT_ACCESS_WORKFLOW_RUN_ATTEMPT_PAGE_LIMIT = 25;
4
+ export declare const AGENT_ACCESS_WORKFLOW_JOB_PAGE_LIMIT = 100;
5
+ export declare const AGENT_ACCESS_WORKFLOW_EXECUTION_PAGE_LIMIT = 25;
6
+ export declare const AGENT_ACCESS_WORKFLOW_STEP_PAGE_LIMIT = 100;
7
+ export declare const AGENT_ACCESS_WORKFLOW_STEP_ATTEMPT_PAGE_LIMIT = 25;
8
+ export declare const AGENT_ACCESS_WORKFLOW_EXECUTION_COUNT_MAX = 100;
9
+ export declare const getWorkflowRunInputSchema: z.ZodObject<{
10
+ run_id: z.ZodString;
11
+ attempt: z.ZodOptional<z.ZodNumber>;
12
+ }, z.core.$strict>;
13
+ export declare const listWorkflowRunAttemptsInputSchema: z.ZodObject<{
14
+ limit: z.ZodDefault<z.ZodNumber>;
15
+ cursor: z.ZodOptional<z.ZodString>;
16
+ run_id: z.ZodString;
17
+ }, z.core.$strict>;
18
+ export declare const listWorkflowRunJobsInputSchema: z.ZodObject<{
19
+ limit: z.ZodDefault<z.ZodNumber>;
20
+ cursor: z.ZodOptional<z.ZodString>;
21
+ run_id: z.ZodString;
22
+ attempt: z.ZodNumber;
23
+ }, z.core.$strict>;
24
+ export declare const getWorkflowJobInputSchema: z.ZodObject<{
25
+ job_id: z.ZodString;
26
+ execution_id: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strict>;
28
+ export declare const listWorkflowJobExecutionsInputSchema: z.ZodObject<{
29
+ limit: z.ZodDefault<z.ZodNumber>;
30
+ cursor: z.ZodOptional<z.ZodString>;
31
+ job_id: z.ZodString;
32
+ }, z.core.$strict>;
33
+ export declare const listWorkflowExecutionStepsInputSchema: z.ZodObject<{
34
+ limit: z.ZodDefault<z.ZodNumber>;
35
+ cursor: z.ZodOptional<z.ZodString>;
36
+ job_id: z.ZodString;
37
+ execution_id: z.ZodString;
38
+ }, z.core.$strict>;
39
+ export declare const listWorkflowStepAttemptsInputSchema: z.ZodObject<{
40
+ limit: z.ZodDefault<z.ZodNumber>;
41
+ cursor: z.ZodOptional<z.ZodString>;
42
+ step_id: z.ZodString;
43
+ }, z.core.$strict>;
44
+ export type GetWorkflowRunInputDto = z.output<typeof getWorkflowRunInputSchema>;
45
+ export type ListWorkflowRunAttemptsInputDto = z.output<typeof listWorkflowRunAttemptsInputSchema>;
46
+ export type ListWorkflowRunJobsInputDto = z.output<typeof listWorkflowRunJobsInputSchema>;
47
+ export type GetWorkflowJobInputDto = z.output<typeof getWorkflowJobInputSchema>;
48
+ export type ListWorkflowJobExecutionsInputDto = z.output<typeof listWorkflowJobExecutionsInputSchema>;
49
+ export type ListWorkflowExecutionStepsInputDto = z.output<typeof listWorkflowExecutionStepsInputSchema>;
50
+ export type ListWorkflowStepAttemptsInputDto = z.output<typeof listWorkflowStepAttemptsInputSchema>;
51
+ /** Compact run data used to start traversal; it deliberately has no jobs field. */
52
+ export declare const getWorkflowRunResultSchema: z.ZodObject<{
53
+ id: z.ZodString;
54
+ project_id: z.ZodString;
55
+ definition_id: z.ZodString;
56
+ number: z.ZodNumber;
57
+ name: z.ZodString;
58
+ workflow_name: z.ZodString;
59
+ status: z.ZodEnum<{
60
+ cancelled: "cancelled";
61
+ failed: "failed";
62
+ pending: "pending";
63
+ running: "running";
64
+ succeeded: "succeeded";
65
+ }>;
66
+ origin: z.ZodEnum<{
67
+ dev: "dev";
68
+ synced: "synced";
69
+ }>;
70
+ dev_source: z.ZodNullable<z.ZodObject<{
71
+ ref: z.ZodString;
72
+ commit: z.ZodString;
73
+ config_path: z.ZodString;
74
+ initiated_by_user_id: z.ZodString;
75
+ replay_of_event_id: z.ZodNullable<z.ZodString>;
76
+ }, z.core.$strict>>;
77
+ trigger_provider: z.ZodNullable<z.ZodString>;
78
+ trigger_source: z.ZodString;
79
+ trigger_event: z.ZodString;
80
+ trigger_reference: z.ZodNullable<z.ZodObject<{
81
+ repository: z.ZodNullable<z.ZodString>;
82
+ ref: z.ZodNullable<z.ZodString>;
83
+ commit: z.ZodNullable<z.ZodString>;
84
+ actor: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strict>>;
86
+ created_at: z.ZodString;
87
+ started_at: z.ZodNullable<z.ZodString>;
88
+ finished_at: z.ZodNullable<z.ZodString>;
89
+ attempt: z.ZodObject<{
90
+ id: z.ZodString;
91
+ workflow_run_id: z.ZodString;
92
+ attempt: z.ZodNumber;
93
+ status: z.ZodEnum<{
94
+ cancelled: "cancelled";
95
+ failed: "failed";
96
+ pending: "pending";
97
+ running: "running";
98
+ succeeded: "succeeded";
99
+ }>;
100
+ created_at: z.ZodString;
101
+ started_at: z.ZodNullable<z.ZodString>;
102
+ finished_at: z.ZodNullable<z.ZodString>;
103
+ rerun_mode: z.ZodNullable<z.ZodEnum<{
104
+ all: "all";
105
+ failed: "failed";
106
+ }>>;
107
+ }, z.core.$strict>;
108
+ job_status_counts: z.ZodArray<z.ZodObject<{
109
+ status: z.ZodEnum<{
110
+ cancelled: "cancelled";
111
+ failed: "failed";
112
+ pending: "pending";
113
+ running: "running";
114
+ skipped: "skipped";
115
+ succeeded: "succeeded";
116
+ }>;
117
+ count: z.ZodNumber;
118
+ }, z.core.$strict>>;
119
+ has_started_job_execution: z.ZodBoolean;
120
+ }, z.core.$strict>;
121
+ export type GetWorkflowRunResultDto = z.infer<typeof getWorkflowRunResultSchema>;
122
+ export declare const listWorkflowRunAttemptsResultSchema: z.ZodObject<{
123
+ attempts: z.ZodArray<z.ZodObject<{
124
+ id: z.ZodString;
125
+ workflow_run_id: z.ZodString;
126
+ attempt: z.ZodNumber;
127
+ status: z.ZodEnum<{
128
+ cancelled: "cancelled";
129
+ failed: "failed";
130
+ pending: "pending";
131
+ running: "running";
132
+ succeeded: "succeeded";
133
+ }>;
134
+ created_at: z.ZodString;
135
+ started_at: z.ZodNullable<z.ZodString>;
136
+ finished_at: z.ZodNullable<z.ZodString>;
137
+ rerun_mode: z.ZodNullable<z.ZodEnum<{
138
+ all: "all";
139
+ failed: "failed";
140
+ }>>;
141
+ }, z.core.$strict>>;
142
+ next_cursor: z.ZodNullable<z.ZodString>;
143
+ }, z.core.$strict>;
144
+ export type ListWorkflowRunAttemptsResultDto = z.infer<typeof listWorkflowRunAttemptsResultSchema>;
145
+ export declare const listWorkflowRunJobsResultSchema: z.ZodObject<{
146
+ workflow_run_id: z.ZodString;
147
+ workflow_run_attempt: z.ZodNumber;
148
+ jobs: z.ZodArray<z.ZodObject<{
149
+ id: z.ZodString;
150
+ key: z.ZodString;
151
+ name: z.ZodNullable<z.ZodString>;
152
+ position: z.ZodNumber;
153
+ status: z.ZodEnum<{
154
+ cancelled: "cancelled";
155
+ failed: "failed";
156
+ pending: "pending";
157
+ running: "running";
158
+ skipped: "skipped";
159
+ succeeded: "succeeded";
160
+ }>;
161
+ status_reason: z.ZodNullable<z.ZodEnum<{
162
+ condition_errored: "condition_errored";
163
+ condition_false: "condition_false";
164
+ condition_rejected: "condition_rejected";
165
+ default_gate_rejected: "default_gate_rejected";
166
+ dependency_not_completed: "dependency_not_completed";
167
+ output_invalid: "output_invalid";
168
+ output_too_large: "output_too_large";
169
+ run_cancelled: "run_cancelled";
170
+ runner_lost: "runner_lost";
171
+ step_failed: "step_failed";
172
+ timed_out: "timed_out";
173
+ unknown: "unknown";
174
+ user_cancelled: "user_cancelled";
175
+ }>>;
176
+ mode: z.ZodEnum<{
177
+ listening: "listening";
178
+ one_shot: "one_shot";
179
+ }>;
180
+ listener_status: z.ZodEnum<{
181
+ inactive: "inactive";
182
+ listening: "listening";
183
+ resolved: "resolved";
184
+ }>;
185
+ carried_over: z.ZodBoolean;
186
+ execution_count: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
187
+ execution_status_counts: z.ZodObject<{
188
+ pending: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
189
+ running: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
190
+ succeeded: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
191
+ failed: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
192
+ cancelled: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
193
+ }, z.core.$strict>;
194
+ default_execution: z.ZodNullable<z.ZodObject<{
195
+ id: z.ZodString;
196
+ sequence: z.ZodNumber;
197
+ name: z.ZodString;
198
+ status: z.ZodEnum<{
199
+ cancelled: "cancelled";
200
+ failed: "failed";
201
+ pending: "pending";
202
+ running: "running";
203
+ succeeded: "succeeded";
204
+ }>;
205
+ display_status: z.ZodEnum<{
206
+ cancelled: "cancelled";
207
+ failed: "failed";
208
+ pending: "pending";
209
+ running: "running";
210
+ succeeded: "succeeded";
211
+ }>;
212
+ status_reason: z.ZodNullable<z.ZodEnum<{
213
+ condition_errored: "condition_errored";
214
+ condition_false: "condition_false";
215
+ condition_rejected: "condition_rejected";
216
+ default_gate_rejected: "default_gate_rejected";
217
+ dependency_not_completed: "dependency_not_completed";
218
+ output_invalid: "output_invalid";
219
+ output_too_large: "output_too_large";
220
+ run_cancelled: "run_cancelled";
221
+ runner_lost: "runner_lost";
222
+ step_failed: "step_failed";
223
+ timed_out: "timed_out";
224
+ unknown: "unknown";
225
+ user_cancelled: "user_cancelled";
226
+ }>>;
227
+ status_reason_message: z.ZodNullable<z.ZodString>;
228
+ queued_at: z.ZodNullable<z.ZodString>;
229
+ started_at: z.ZodNullable<z.ZodString>;
230
+ finished_at: z.ZodNullable<z.ZodString>;
231
+ timed_out_at: z.ZodNullable<z.ZodString>;
232
+ updated_at: z.ZodString;
233
+ }, z.core.$strict>>;
234
+ }, z.core.$strict>>;
235
+ next_cursor: z.ZodNullable<z.ZodString>;
236
+ total: z.ZodOptional<z.ZodNumber>;
237
+ }, z.core.$strict>;
238
+ export type ListWorkflowRunJobsResultDto = z.infer<typeof listWorkflowRunJobsResultSchema>;
239
+ export declare const getWorkflowJobResultSchema: z.ZodObject<{
240
+ workflow_run_id: z.ZodString;
241
+ workflow_run_attempt: z.ZodNumber;
242
+ job: z.ZodObject<{
243
+ id: z.ZodString;
244
+ key: z.ZodString;
245
+ name: z.ZodNullable<z.ZodString>;
246
+ position: z.ZodNumber;
247
+ status: z.ZodEnum<{
248
+ cancelled: "cancelled";
249
+ failed: "failed";
250
+ pending: "pending";
251
+ running: "running";
252
+ skipped: "skipped";
253
+ succeeded: "succeeded";
254
+ }>;
255
+ status_reason: z.ZodNullable<z.ZodEnum<{
256
+ condition_errored: "condition_errored";
257
+ condition_false: "condition_false";
258
+ condition_rejected: "condition_rejected";
259
+ default_gate_rejected: "default_gate_rejected";
260
+ dependency_not_completed: "dependency_not_completed";
261
+ output_invalid: "output_invalid";
262
+ output_too_large: "output_too_large";
263
+ run_cancelled: "run_cancelled";
264
+ runner_lost: "runner_lost";
265
+ step_failed: "step_failed";
266
+ timed_out: "timed_out";
267
+ unknown: "unknown";
268
+ user_cancelled: "user_cancelled";
269
+ }>>;
270
+ mode: z.ZodEnum<{
271
+ listening: "listening";
272
+ one_shot: "one_shot";
273
+ }>;
274
+ listener_status: z.ZodEnum<{
275
+ inactive: "inactive";
276
+ listening: "listening";
277
+ resolved: "resolved";
278
+ }>;
279
+ carried_over: z.ZodBoolean;
280
+ execution_count: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
281
+ execution_status_counts: z.ZodObject<{
282
+ pending: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
283
+ running: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
284
+ succeeded: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
285
+ failed: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
286
+ cancelled: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>;
287
+ }, z.core.$strict>;
288
+ default_execution: z.ZodNullable<z.ZodObject<{
289
+ id: z.ZodString;
290
+ sequence: z.ZodNumber;
291
+ name: z.ZodString;
292
+ status: z.ZodEnum<{
293
+ cancelled: "cancelled";
294
+ failed: "failed";
295
+ pending: "pending";
296
+ running: "running";
297
+ succeeded: "succeeded";
298
+ }>;
299
+ display_status: z.ZodEnum<{
300
+ cancelled: "cancelled";
301
+ failed: "failed";
302
+ pending: "pending";
303
+ running: "running";
304
+ succeeded: "succeeded";
305
+ }>;
306
+ status_reason: z.ZodNullable<z.ZodEnum<{
307
+ condition_errored: "condition_errored";
308
+ condition_false: "condition_false";
309
+ condition_rejected: "condition_rejected";
310
+ default_gate_rejected: "default_gate_rejected";
311
+ dependency_not_completed: "dependency_not_completed";
312
+ output_invalid: "output_invalid";
313
+ output_too_large: "output_too_large";
314
+ run_cancelled: "run_cancelled";
315
+ runner_lost: "runner_lost";
316
+ step_failed: "step_failed";
317
+ timed_out: "timed_out";
318
+ unknown: "unknown";
319
+ user_cancelled: "user_cancelled";
320
+ }>>;
321
+ status_reason_message: z.ZodNullable<z.ZodString>;
322
+ queued_at: z.ZodNullable<z.ZodString>;
323
+ started_at: z.ZodNullable<z.ZodString>;
324
+ finished_at: z.ZodNullable<z.ZodString>;
325
+ timed_out_at: z.ZodNullable<z.ZodString>;
326
+ updated_at: z.ZodString;
327
+ }, z.core.$strict>>;
328
+ }, z.core.$strict>;
329
+ selected_execution: z.ZodNullable<z.ZodObject<{
330
+ id: z.ZodString;
331
+ sequence: z.ZodNumber;
332
+ name: z.ZodString;
333
+ status: z.ZodEnum<{
334
+ cancelled: "cancelled";
335
+ failed: "failed";
336
+ pending: "pending";
337
+ running: "running";
338
+ succeeded: "succeeded";
339
+ }>;
340
+ display_status: z.ZodEnum<{
341
+ cancelled: "cancelled";
342
+ failed: "failed";
343
+ pending: "pending";
344
+ running: "running";
345
+ succeeded: "succeeded";
346
+ }>;
347
+ status_reason: z.ZodNullable<z.ZodEnum<{
348
+ condition_errored: "condition_errored";
349
+ condition_false: "condition_false";
350
+ condition_rejected: "condition_rejected";
351
+ default_gate_rejected: "default_gate_rejected";
352
+ dependency_not_completed: "dependency_not_completed";
353
+ output_invalid: "output_invalid";
354
+ output_too_large: "output_too_large";
355
+ run_cancelled: "run_cancelled";
356
+ runner_lost: "runner_lost";
357
+ step_failed: "step_failed";
358
+ timed_out: "timed_out";
359
+ unknown: "unknown";
360
+ user_cancelled: "user_cancelled";
361
+ }>>;
362
+ status_reason_message: z.ZodNullable<z.ZodString>;
363
+ queued_at: z.ZodNullable<z.ZodString>;
364
+ started_at: z.ZodNullable<z.ZodString>;
365
+ finished_at: z.ZodNullable<z.ZodString>;
366
+ timed_out_at: z.ZodNullable<z.ZodString>;
367
+ updated_at: z.ZodString;
368
+ has_context: z.ZodBoolean;
369
+ }, z.core.$strict>>;
370
+ }, z.core.$strict>;
371
+ export type GetWorkflowJobResultDto = z.infer<typeof getWorkflowJobResultSchema>;
372
+ export declare const listWorkflowJobExecutionsResultSchema: z.ZodObject<{
373
+ job_id: z.ZodString;
374
+ executions: z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ sequence: z.ZodNumber;
377
+ name: z.ZodString;
378
+ status: z.ZodEnum<{
379
+ cancelled: "cancelled";
380
+ failed: "failed";
381
+ pending: "pending";
382
+ running: "running";
383
+ succeeded: "succeeded";
384
+ }>;
385
+ display_status: z.ZodEnum<{
386
+ cancelled: "cancelled";
387
+ failed: "failed";
388
+ pending: "pending";
389
+ running: "running";
390
+ succeeded: "succeeded";
391
+ }>;
392
+ status_reason: z.ZodNullable<z.ZodEnum<{
393
+ condition_errored: "condition_errored";
394
+ condition_false: "condition_false";
395
+ condition_rejected: "condition_rejected";
396
+ default_gate_rejected: "default_gate_rejected";
397
+ dependency_not_completed: "dependency_not_completed";
398
+ output_invalid: "output_invalid";
399
+ output_too_large: "output_too_large";
400
+ run_cancelled: "run_cancelled";
401
+ runner_lost: "runner_lost";
402
+ step_failed: "step_failed";
403
+ timed_out: "timed_out";
404
+ unknown: "unknown";
405
+ user_cancelled: "user_cancelled";
406
+ }>>;
407
+ status_reason_message: z.ZodNullable<z.ZodString>;
408
+ queued_at: z.ZodNullable<z.ZodString>;
409
+ started_at: z.ZodNullable<z.ZodString>;
410
+ finished_at: z.ZodNullable<z.ZodString>;
411
+ timed_out_at: z.ZodNullable<z.ZodString>;
412
+ updated_at: z.ZodString;
413
+ }, z.core.$strict>>;
414
+ next_cursor: z.ZodNullable<z.ZodString>;
415
+ total: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"100+">]>>;
416
+ }, z.core.$strict>;
417
+ export type ListWorkflowJobExecutionsResultDto = z.infer<typeof listWorkflowJobExecutionsResultSchema>;
418
+ export declare const listWorkflowExecutionStepsResultSchema: z.ZodObject<{
419
+ job_id: z.ZodString;
420
+ execution_id: z.ZodString;
421
+ steps: z.ZodArray<z.ZodObject<{
422
+ id: z.ZodString;
423
+ key: z.ZodNullable<z.ZodString>;
424
+ name: z.ZodString;
425
+ type: z.ZodEnum<{
426
+ agent: "agent";
427
+ checkout: "checkout";
428
+ run: "run";
429
+ setup: "setup";
430
+ tool: "tool";
431
+ }>;
432
+ position: z.ZodNumber;
433
+ status: z.ZodEnum<{
434
+ cancelled: "cancelled";
435
+ failed: "failed";
436
+ pending: "pending";
437
+ running: "running";
438
+ skipped: "skipped";
439
+ succeeded: "succeeded";
440
+ }>;
441
+ status_reason: z.ZodNullable<z.ZodEnum<{
442
+ condition_errored: "condition_errored";
443
+ condition_rejected: "condition_rejected";
444
+ default_gate_rejected: "default_gate_rejected";
445
+ }>>;
446
+ current_attempt: z.ZodNumber;
447
+ }, z.core.$strict>>;
448
+ next_cursor: z.ZodNullable<z.ZodString>;
449
+ total: z.ZodOptional<z.ZodNumber>;
450
+ }, z.core.$strict>;
451
+ export type ListWorkflowExecutionStepsResultDto = z.infer<typeof listWorkflowExecutionStepsResultSchema>;
452
+ export declare const listWorkflowStepAttemptsResultSchema: z.ZodObject<{
453
+ step_id: z.ZodString;
454
+ attempts: z.ZodArray<z.ZodObject<{
455
+ id: z.ZodString;
456
+ attempt: z.ZodNumber;
457
+ execution_order: z.ZodNumber;
458
+ status: z.ZodEnum<{
459
+ cancelled: "cancelled";
460
+ failed: "failed";
461
+ pending: "pending";
462
+ running: "running";
463
+ skipped: "skipped";
464
+ succeeded: "succeeded";
465
+ }>;
466
+ exit_code: z.ZodNullable<z.ZodNumber>;
467
+ started_at: z.ZodString;
468
+ finished_at: z.ZodNullable<z.ZodString>;
469
+ }, z.core.$strict>>;
470
+ next_cursor: z.ZodNullable<z.ZodString>;
471
+ total: z.ZodOptional<z.ZodNumber>;
472
+ }, z.core.$strict>;
473
+ export type ListWorkflowStepAttemptsResultDto = z.infer<typeof listWorkflowStepAttemptsResultSchema>;
474
+ export declare const getWorkflowRunInputJsonSchema: {
475
+ readonly type: 'object';
476
+ readonly properties: {
477
+ readonly run_id: {
478
+ readonly type: 'string';
479
+ readonly format: 'uuid';
480
+ };
481
+ readonly attempt: {
482
+ readonly type: 'integer';
483
+ readonly minimum: 1;
484
+ readonly maximum: 2147483647;
485
+ };
486
+ };
487
+ readonly required: readonly ["run_id"];
488
+ readonly additionalProperties: false;
489
+ };
490
+ export declare const listWorkflowRunAttemptsInputJsonSchema: {
491
+ readonly type: 'object';
492
+ readonly properties: {
493
+ readonly limit: {
494
+ type: string;
495
+ minimum: number;
496
+ maximum: number;
497
+ default: number;
498
+ };
499
+ readonly cursor: {
500
+ type: string;
501
+ minLength: number;
502
+ };
503
+ readonly run_id: {
504
+ readonly type: 'string';
505
+ readonly format: 'uuid';
506
+ };
507
+ };
508
+ readonly required: readonly ["run_id"];
509
+ readonly additionalProperties: false;
510
+ };
511
+ export declare const listWorkflowRunJobsInputJsonSchema: {
512
+ readonly type: 'object';
513
+ readonly properties: {
514
+ readonly limit: {
515
+ type: string;
516
+ minimum: number;
517
+ maximum: number;
518
+ default: number;
519
+ };
520
+ readonly cursor: {
521
+ type: string;
522
+ minLength: number;
523
+ };
524
+ readonly run_id: {
525
+ readonly type: 'string';
526
+ readonly format: 'uuid';
527
+ };
528
+ readonly attempt: {
529
+ readonly type: 'integer';
530
+ readonly minimum: 1;
531
+ readonly maximum: 2147483647;
532
+ };
533
+ };
534
+ readonly required: readonly ["run_id", "attempt"];
535
+ readonly additionalProperties: false;
536
+ };
537
+ export declare const getWorkflowJobInputJsonSchema: {
538
+ readonly type: 'object';
539
+ readonly properties: {
540
+ readonly job_id: {
541
+ readonly type: 'string';
542
+ readonly format: 'uuid';
543
+ };
544
+ readonly execution_id: {
545
+ readonly type: 'string';
546
+ readonly format: 'uuid';
547
+ };
548
+ };
549
+ readonly required: readonly ["job_id"];
550
+ readonly additionalProperties: false;
551
+ };
552
+ export declare const listWorkflowJobExecutionsInputJsonSchema: {
553
+ readonly type: 'object';
554
+ readonly properties: {
555
+ readonly limit: {
556
+ type: string;
557
+ minimum: number;
558
+ maximum: number;
559
+ default: number;
560
+ };
561
+ readonly cursor: {
562
+ type: string;
563
+ minLength: number;
564
+ };
565
+ readonly job_id: {
566
+ readonly type: 'string';
567
+ readonly format: 'uuid';
568
+ };
569
+ };
570
+ readonly required: readonly ["job_id"];
571
+ readonly additionalProperties: false;
572
+ };
573
+ export declare const listWorkflowExecutionStepsInputJsonSchema: {
574
+ readonly type: 'object';
575
+ readonly properties: {
576
+ readonly limit: {
577
+ type: string;
578
+ minimum: number;
579
+ maximum: number;
580
+ default: number;
581
+ };
582
+ readonly cursor: {
583
+ type: string;
584
+ minLength: number;
585
+ };
586
+ readonly job_id: {
587
+ readonly type: 'string';
588
+ readonly format: 'uuid';
589
+ };
590
+ readonly execution_id: {
591
+ readonly type: 'string';
592
+ readonly format: 'uuid';
593
+ };
594
+ };
595
+ readonly required: readonly ["job_id", "execution_id"];
596
+ readonly additionalProperties: false;
597
+ };
598
+ export declare const listWorkflowStepAttemptsInputJsonSchema: {
599
+ readonly type: 'object';
600
+ readonly properties: {
601
+ readonly limit: {
602
+ type: string;
603
+ minimum: number;
604
+ maximum: number;
605
+ default: number;
606
+ };
607
+ readonly cursor: {
608
+ type: string;
609
+ minLength: number;
610
+ };
611
+ readonly step_id: {
612
+ readonly type: 'string';
613
+ readonly format: 'uuid';
614
+ };
615
+ };
616
+ readonly required: readonly ["step_id"];
617
+ readonly additionalProperties: false;
618
+ };
619
+ export declare const getWorkflowRunResultJsonSchema: {
620
+ readonly type: 'object';
621
+ readonly properties: {
622
+ readonly id: {
623
+ readonly type: 'string';
624
+ readonly format: 'uuid';
625
+ };
626
+ readonly project_id: {
627
+ readonly type: 'string';
628
+ readonly format: 'uuid';
629
+ };
630
+ readonly definition_id: {
631
+ readonly type: 'string';
632
+ readonly format: 'uuid';
633
+ };
634
+ readonly number: {
635
+ readonly type: 'integer';
636
+ readonly minimum: 1;
637
+ };
638
+ readonly name: {
639
+ readonly type: 'string';
640
+ readonly maxLength: 512;
641
+ };
642
+ readonly workflow_name: {
643
+ readonly type: 'string';
644
+ readonly maxLength: 512;
645
+ };
646
+ readonly status: {
647
+ readonly type: 'string';
648
+ readonly enum: readonly ["pending", "running", "succeeded", "failed", "cancelled"];
649
+ };
650
+ readonly origin: {
651
+ readonly type: 'string';
652
+ readonly enum: readonly ["synced", "dev"];
653
+ };
654
+ readonly dev_source: {
655
+ readonly anyOf: readonly [Record<string, unknown>, {
656
+ readonly type: 'null';
657
+ }];
658
+ };
659
+ readonly trigger_provider: {
660
+ readonly anyOf: readonly [Record<string, unknown>, {
661
+ readonly type: 'null';
662
+ }];
663
+ };
664
+ readonly trigger_source: {
665
+ readonly type: 'string';
666
+ readonly maxLength: 512;
667
+ };
668
+ readonly trigger_event: {
669
+ readonly type: 'string';
670
+ readonly maxLength: 512;
671
+ };
672
+ readonly trigger_reference: {
673
+ readonly anyOf: readonly [Record<string, unknown>, {
674
+ readonly type: 'null';
675
+ }];
676
+ };
677
+ readonly created_at: {
678
+ readonly type: 'string';
679
+ readonly format: 'date-time';
680
+ };
681
+ readonly started_at: {
682
+ readonly anyOf: readonly [Record<string, unknown>, {
683
+ readonly type: 'null';
684
+ }];
685
+ };
686
+ readonly finished_at: {
687
+ readonly anyOf: readonly [Record<string, unknown>, {
688
+ readonly type: 'null';
689
+ }];
690
+ };
691
+ readonly attempt: {
692
+ readonly type: 'object';
693
+ readonly properties: {
694
+ readonly id: {
695
+ readonly type: 'string';
696
+ readonly format: 'uuid';
697
+ };
698
+ readonly workflow_run_id: {
699
+ readonly type: 'string';
700
+ readonly format: 'uuid';
701
+ };
702
+ readonly attempt: {
703
+ readonly type: 'integer';
704
+ readonly minimum: 1;
705
+ readonly maximum: 2147483647;
706
+ };
707
+ readonly status: {
708
+ readonly type: 'string';
709
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
710
+ };
711
+ readonly created_at: {
712
+ readonly type: 'string';
713
+ readonly format: 'date-time';
714
+ };
715
+ readonly started_at: {
716
+ readonly anyOf: readonly [Record<string, unknown>, {
717
+ readonly type: 'null';
718
+ }];
719
+ };
720
+ readonly finished_at: {
721
+ readonly anyOf: readonly [Record<string, unknown>, {
722
+ readonly type: 'null';
723
+ }];
724
+ };
725
+ readonly rerun_mode: {
726
+ readonly anyOf: readonly [Record<string, unknown>, {
727
+ readonly type: 'null';
728
+ }];
729
+ };
730
+ };
731
+ readonly required: readonly ['id', 'workflow_run_id', 'attempt', 'status', 'created_at', 'started_at', 'finished_at', 'rerun_mode'];
732
+ readonly additionalProperties: false;
733
+ };
734
+ readonly job_status_counts: {
735
+ readonly type: 'array';
736
+ readonly items: {
737
+ readonly type: 'object';
738
+ readonly properties: {
739
+ readonly status: {
740
+ readonly type: 'string';
741
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled', 'skipped'];
742
+ };
743
+ readonly count: {
744
+ readonly type: 'integer';
745
+ readonly minimum: 1;
746
+ };
747
+ };
748
+ readonly required: readonly ["status", "count"];
749
+ readonly additionalProperties: false;
750
+ };
751
+ };
752
+ readonly has_started_job_execution: {
753
+ readonly type: 'boolean';
754
+ };
755
+ };
756
+ readonly required: readonly ["id", "project_id", "definition_id", "number", "name", "workflow_name", "status", "origin", "dev_source", "trigger_provider", "trigger_source", "trigger_event", "trigger_reference", "created_at", "started_at", "finished_at", "attempt", "job_status_counts", "has_started_job_execution"];
757
+ readonly additionalProperties: false;
758
+ };
759
+ export declare const listWorkflowRunAttemptsResultJsonSchema: {
760
+ readonly type: 'object';
761
+ readonly properties: {
762
+ readonly attempts: {
763
+ readonly type: 'array';
764
+ readonly items: {
765
+ readonly type: 'object';
766
+ readonly properties: {
767
+ readonly id: {
768
+ readonly type: 'string';
769
+ readonly format: 'uuid';
770
+ };
771
+ readonly workflow_run_id: {
772
+ readonly type: 'string';
773
+ readonly format: 'uuid';
774
+ };
775
+ readonly attempt: {
776
+ readonly type: 'integer';
777
+ readonly minimum: 1;
778
+ readonly maximum: 2147483647;
779
+ };
780
+ readonly status: {
781
+ readonly type: 'string';
782
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
783
+ };
784
+ readonly created_at: {
785
+ readonly type: 'string';
786
+ readonly format: 'date-time';
787
+ };
788
+ readonly started_at: {
789
+ readonly anyOf: readonly [Record<string, unknown>, {
790
+ readonly type: 'null';
791
+ }];
792
+ };
793
+ readonly finished_at: {
794
+ readonly anyOf: readonly [Record<string, unknown>, {
795
+ readonly type: 'null';
796
+ }];
797
+ };
798
+ readonly rerun_mode: {
799
+ readonly anyOf: readonly [Record<string, unknown>, {
800
+ readonly type: 'null';
801
+ }];
802
+ };
803
+ };
804
+ readonly required: readonly ['id', 'workflow_run_id', 'attempt', 'status', 'created_at', 'started_at', 'finished_at', 'rerun_mode'];
805
+ readonly additionalProperties: false;
806
+ };
807
+ };
808
+ readonly next_cursor: {
809
+ readonly anyOf: readonly [Record<string, unknown>, {
810
+ readonly type: 'null';
811
+ }];
812
+ };
813
+ };
814
+ readonly required: readonly ["attempts", "next_cursor"];
815
+ readonly additionalProperties: false;
816
+ };
817
+ export declare const listWorkflowRunJobsResultJsonSchema: {
818
+ readonly type: 'object';
819
+ readonly properties: {
820
+ readonly workflow_run_id: {
821
+ readonly type: 'string';
822
+ readonly format: 'uuid';
823
+ };
824
+ readonly workflow_run_attempt: {
825
+ readonly type: 'integer';
826
+ readonly minimum: 1;
827
+ readonly maximum: 2147483647;
828
+ };
829
+ readonly jobs: {
830
+ readonly type: 'array';
831
+ readonly items: {
832
+ readonly type: 'object';
833
+ readonly properties: {
834
+ readonly id: {
835
+ readonly type: 'string';
836
+ readonly format: 'uuid';
837
+ };
838
+ readonly key: {
839
+ readonly type: 'string';
840
+ readonly maxLength: 512;
841
+ };
842
+ readonly name: {
843
+ readonly anyOf: readonly [Record<string, unknown>, {
844
+ readonly type: 'null';
845
+ }];
846
+ };
847
+ readonly position: {
848
+ readonly type: 'integer';
849
+ readonly minimum: 0;
850
+ };
851
+ readonly status: {
852
+ readonly type: 'string';
853
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled', 'skipped'];
854
+ };
855
+ readonly status_reason: {
856
+ readonly anyOf: readonly [Record<string, unknown>, {
857
+ readonly type: 'null';
858
+ }];
859
+ };
860
+ readonly mode: {
861
+ readonly type: 'string';
862
+ readonly enum: readonly ['one_shot', 'listening'];
863
+ };
864
+ readonly listener_status: {
865
+ readonly type: 'string';
866
+ readonly enum: readonly ['inactive', 'listening', 'resolved'];
867
+ };
868
+ readonly carried_over: {
869
+ readonly type: 'boolean';
870
+ };
871
+ readonly execution_count: {
872
+ readonly anyOf: readonly [{
873
+ readonly type: 'integer';
874
+ readonly minimum: 0;
875
+ readonly maximum: 100;
876
+ }, {
877
+ readonly const: '100+';
878
+ }];
879
+ };
880
+ readonly execution_status_counts: {
881
+ readonly type: 'object';
882
+ readonly properties: {
883
+ readonly pending: {
884
+ readonly anyOf: readonly [{
885
+ readonly type: 'integer';
886
+ readonly minimum: 0;
887
+ readonly maximum: 100;
888
+ }, {
889
+ readonly const: '100+';
890
+ }];
891
+ };
892
+ readonly running: {
893
+ readonly anyOf: readonly [{
894
+ readonly type: 'integer';
895
+ readonly minimum: 0;
896
+ readonly maximum: 100;
897
+ }, {
898
+ readonly const: '100+';
899
+ }];
900
+ };
901
+ readonly succeeded: {
902
+ readonly anyOf: readonly [{
903
+ readonly type: 'integer';
904
+ readonly minimum: 0;
905
+ readonly maximum: 100;
906
+ }, {
907
+ readonly const: '100+';
908
+ }];
909
+ };
910
+ readonly failed: {
911
+ readonly anyOf: readonly [{
912
+ readonly type: 'integer';
913
+ readonly minimum: 0;
914
+ readonly maximum: 100;
915
+ }, {
916
+ readonly const: '100+';
917
+ }];
918
+ };
919
+ readonly cancelled: {
920
+ readonly anyOf: readonly [{
921
+ readonly type: 'integer';
922
+ readonly minimum: 0;
923
+ readonly maximum: 100;
924
+ }, {
925
+ readonly const: '100+';
926
+ }];
927
+ };
928
+ };
929
+ readonly required: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
930
+ readonly additionalProperties: false;
931
+ };
932
+ readonly default_execution: {
933
+ readonly anyOf: readonly [Record<string, unknown>, {
934
+ readonly type: 'null';
935
+ }];
936
+ };
937
+ };
938
+ readonly required: readonly ['id', 'key', 'name', 'position', 'status', 'status_reason', 'mode', 'listener_status', 'carried_over', 'execution_count', 'execution_status_counts', 'default_execution'];
939
+ readonly additionalProperties: false;
940
+ };
941
+ };
942
+ readonly next_cursor: {
943
+ readonly anyOf: readonly [Record<string, unknown>, {
944
+ readonly type: 'null';
945
+ }];
946
+ };
947
+ readonly total: {
948
+ readonly type: 'integer';
949
+ readonly minimum: 0;
950
+ };
951
+ };
952
+ readonly required: readonly ["workflow_run_id", "workflow_run_attempt", "jobs", "next_cursor"];
953
+ readonly additionalProperties: false;
954
+ };
955
+ export declare const getWorkflowJobResultJsonSchema: {
956
+ readonly type: 'object';
957
+ readonly properties: {
958
+ readonly workflow_run_id: {
959
+ readonly type: 'string';
960
+ readonly format: 'uuid';
961
+ };
962
+ readonly workflow_run_attempt: {
963
+ readonly type: 'integer';
964
+ readonly minimum: 1;
965
+ readonly maximum: 2147483647;
966
+ };
967
+ readonly job: {
968
+ readonly type: 'object';
969
+ readonly properties: {
970
+ readonly id: {
971
+ readonly type: 'string';
972
+ readonly format: 'uuid';
973
+ };
974
+ readonly key: {
975
+ readonly type: 'string';
976
+ readonly maxLength: 512;
977
+ };
978
+ readonly name: {
979
+ readonly anyOf: readonly [Record<string, unknown>, {
980
+ readonly type: 'null';
981
+ }];
982
+ };
983
+ readonly position: {
984
+ readonly type: 'integer';
985
+ readonly minimum: 0;
986
+ };
987
+ readonly status: {
988
+ readonly type: 'string';
989
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled', 'skipped'];
990
+ };
991
+ readonly status_reason: {
992
+ readonly anyOf: readonly [Record<string, unknown>, {
993
+ readonly type: 'null';
994
+ }];
995
+ };
996
+ readonly mode: {
997
+ readonly type: 'string';
998
+ readonly enum: readonly ['one_shot', 'listening'];
999
+ };
1000
+ readonly listener_status: {
1001
+ readonly type: 'string';
1002
+ readonly enum: readonly ['inactive', 'listening', 'resolved'];
1003
+ };
1004
+ readonly carried_over: {
1005
+ readonly type: 'boolean';
1006
+ };
1007
+ readonly execution_count: {
1008
+ readonly anyOf: readonly [{
1009
+ readonly type: 'integer';
1010
+ readonly minimum: 0;
1011
+ readonly maximum: 100;
1012
+ }, {
1013
+ readonly const: '100+';
1014
+ }];
1015
+ };
1016
+ readonly execution_status_counts: {
1017
+ readonly type: 'object';
1018
+ readonly properties: {
1019
+ readonly pending: {
1020
+ readonly anyOf: readonly [{
1021
+ readonly type: 'integer';
1022
+ readonly minimum: 0;
1023
+ readonly maximum: 100;
1024
+ }, {
1025
+ readonly const: '100+';
1026
+ }];
1027
+ };
1028
+ readonly running: {
1029
+ readonly anyOf: readonly [{
1030
+ readonly type: 'integer';
1031
+ readonly minimum: 0;
1032
+ readonly maximum: 100;
1033
+ }, {
1034
+ readonly const: '100+';
1035
+ }];
1036
+ };
1037
+ readonly succeeded: {
1038
+ readonly anyOf: readonly [{
1039
+ readonly type: 'integer';
1040
+ readonly minimum: 0;
1041
+ readonly maximum: 100;
1042
+ }, {
1043
+ readonly const: '100+';
1044
+ }];
1045
+ };
1046
+ readonly failed: {
1047
+ readonly anyOf: readonly [{
1048
+ readonly type: 'integer';
1049
+ readonly minimum: 0;
1050
+ readonly maximum: 100;
1051
+ }, {
1052
+ readonly const: '100+';
1053
+ }];
1054
+ };
1055
+ readonly cancelled: {
1056
+ readonly anyOf: readonly [{
1057
+ readonly type: 'integer';
1058
+ readonly minimum: 0;
1059
+ readonly maximum: 100;
1060
+ }, {
1061
+ readonly const: '100+';
1062
+ }];
1063
+ };
1064
+ };
1065
+ readonly required: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
1066
+ readonly additionalProperties: false;
1067
+ };
1068
+ readonly default_execution: {
1069
+ readonly anyOf: readonly [Record<string, unknown>, {
1070
+ readonly type: 'null';
1071
+ }];
1072
+ };
1073
+ };
1074
+ readonly required: readonly ['id', 'key', 'name', 'position', 'status', 'status_reason', 'mode', 'listener_status', 'carried_over', 'execution_count', 'execution_status_counts', 'default_execution'];
1075
+ readonly additionalProperties: false;
1076
+ };
1077
+ readonly selected_execution: {
1078
+ readonly anyOf: readonly [Record<string, unknown>, {
1079
+ readonly type: 'null';
1080
+ }];
1081
+ };
1082
+ };
1083
+ readonly required: readonly ["workflow_run_id", "workflow_run_attempt", "job", "selected_execution"];
1084
+ readonly additionalProperties: false;
1085
+ };
1086
+ export declare const listWorkflowJobExecutionsResultJsonSchema: {
1087
+ readonly type: 'object';
1088
+ readonly properties: {
1089
+ readonly job_id: {
1090
+ readonly type: 'string';
1091
+ readonly format: 'uuid';
1092
+ };
1093
+ readonly executions: {
1094
+ readonly type: 'array';
1095
+ readonly items: {
1096
+ readonly type: 'object';
1097
+ readonly properties: {
1098
+ readonly id: {
1099
+ readonly type: 'string';
1100
+ readonly format: 'uuid';
1101
+ };
1102
+ readonly sequence: {
1103
+ readonly type: 'integer';
1104
+ readonly minimum: 1;
1105
+ };
1106
+ readonly name: {
1107
+ readonly type: 'string';
1108
+ readonly maxLength: 512;
1109
+ };
1110
+ readonly status: {
1111
+ readonly type: 'string';
1112
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
1113
+ };
1114
+ readonly display_status: {
1115
+ readonly type: 'string';
1116
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled'];
1117
+ };
1118
+ readonly status_reason: {
1119
+ readonly anyOf: readonly [Record<string, unknown>, {
1120
+ readonly type: 'null';
1121
+ }];
1122
+ };
1123
+ readonly status_reason_message: {
1124
+ readonly anyOf: readonly [Record<string, unknown>, {
1125
+ readonly type: 'null';
1126
+ }];
1127
+ };
1128
+ readonly queued_at: {
1129
+ readonly anyOf: readonly [Record<string, unknown>, {
1130
+ readonly type: 'null';
1131
+ }];
1132
+ };
1133
+ readonly started_at: {
1134
+ readonly anyOf: readonly [Record<string, unknown>, {
1135
+ readonly type: 'null';
1136
+ }];
1137
+ };
1138
+ readonly finished_at: {
1139
+ readonly anyOf: readonly [Record<string, unknown>, {
1140
+ readonly type: 'null';
1141
+ }];
1142
+ };
1143
+ readonly timed_out_at: {
1144
+ readonly anyOf: readonly [Record<string, unknown>, {
1145
+ readonly type: 'null';
1146
+ }];
1147
+ };
1148
+ readonly updated_at: {
1149
+ readonly type: 'string';
1150
+ readonly format: 'date-time';
1151
+ };
1152
+ };
1153
+ readonly required: readonly ['id', 'sequence', 'name', 'status', 'display_status', 'status_reason', 'status_reason_message', 'queued_at', 'started_at', 'finished_at', 'timed_out_at', 'updated_at'];
1154
+ readonly additionalProperties: false;
1155
+ };
1156
+ };
1157
+ readonly next_cursor: {
1158
+ readonly anyOf: readonly [Record<string, unknown>, {
1159
+ readonly type: 'null';
1160
+ }];
1161
+ };
1162
+ readonly total: {
1163
+ readonly anyOf: readonly [{
1164
+ readonly type: 'integer';
1165
+ readonly minimum: 0;
1166
+ readonly maximum: 100;
1167
+ }, {
1168
+ readonly const: '100+';
1169
+ }];
1170
+ };
1171
+ };
1172
+ readonly required: readonly ["job_id", "executions", "next_cursor"];
1173
+ readonly additionalProperties: false;
1174
+ };
1175
+ export declare const listWorkflowExecutionStepsResultJsonSchema: {
1176
+ readonly type: 'object';
1177
+ readonly properties: {
1178
+ readonly job_id: {
1179
+ readonly type: 'string';
1180
+ readonly format: 'uuid';
1181
+ };
1182
+ readonly execution_id: {
1183
+ readonly type: 'string';
1184
+ readonly format: 'uuid';
1185
+ };
1186
+ readonly steps: {
1187
+ readonly type: 'array';
1188
+ readonly items: {
1189
+ readonly type: 'object';
1190
+ readonly properties: {
1191
+ readonly id: {
1192
+ readonly type: 'string';
1193
+ readonly format: 'uuid';
1194
+ };
1195
+ readonly key: {
1196
+ readonly anyOf: readonly [Record<string, unknown>, {
1197
+ readonly type: 'null';
1198
+ }];
1199
+ };
1200
+ readonly name: {
1201
+ readonly type: 'string';
1202
+ readonly maxLength: 512;
1203
+ };
1204
+ readonly type: {
1205
+ readonly type: 'string';
1206
+ readonly enum: readonly ['setup', 'run', 'agent', 'checkout', 'tool'];
1207
+ };
1208
+ readonly position: {
1209
+ readonly type: 'integer';
1210
+ readonly minimum: 0;
1211
+ };
1212
+ readonly status: {
1213
+ readonly type: 'string';
1214
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled', 'skipped'];
1215
+ };
1216
+ readonly status_reason: {
1217
+ readonly anyOf: readonly [Record<string, unknown>, {
1218
+ readonly type: 'null';
1219
+ }];
1220
+ };
1221
+ readonly current_attempt: {
1222
+ readonly type: 'integer';
1223
+ readonly minimum: 1;
1224
+ readonly maximum: 2147483647;
1225
+ };
1226
+ };
1227
+ readonly required: readonly ['id', 'key', 'name', 'type', 'position', 'status', 'status_reason', 'current_attempt'];
1228
+ readonly additionalProperties: false;
1229
+ };
1230
+ };
1231
+ readonly next_cursor: {
1232
+ readonly anyOf: readonly [Record<string, unknown>, {
1233
+ readonly type: 'null';
1234
+ }];
1235
+ };
1236
+ readonly total: {
1237
+ readonly type: 'integer';
1238
+ readonly minimum: 0;
1239
+ };
1240
+ };
1241
+ readonly required: readonly ["job_id", "execution_id", "steps", "next_cursor"];
1242
+ readonly additionalProperties: false;
1243
+ };
1244
+ export declare const listWorkflowStepAttemptsResultJsonSchema: {
1245
+ readonly type: 'object';
1246
+ readonly properties: {
1247
+ readonly step_id: {
1248
+ readonly type: 'string';
1249
+ readonly format: 'uuid';
1250
+ };
1251
+ readonly attempts: {
1252
+ readonly type: 'array';
1253
+ readonly items: {
1254
+ readonly type: 'object';
1255
+ readonly properties: {
1256
+ readonly id: {
1257
+ readonly type: 'string';
1258
+ readonly format: 'uuid';
1259
+ };
1260
+ readonly attempt: {
1261
+ readonly type: 'integer';
1262
+ readonly minimum: 1;
1263
+ readonly maximum: 2147483647;
1264
+ };
1265
+ readonly execution_order: {
1266
+ readonly type: 'integer';
1267
+ readonly minimum: 1;
1268
+ };
1269
+ readonly status: {
1270
+ readonly type: 'string';
1271
+ readonly enum: readonly ['pending', 'running', 'succeeded', 'failed', 'cancelled', 'skipped'];
1272
+ };
1273
+ readonly exit_code: {
1274
+ readonly anyOf: readonly [Record<string, unknown>, {
1275
+ readonly type: 'null';
1276
+ }];
1277
+ };
1278
+ readonly started_at: {
1279
+ readonly type: 'string';
1280
+ readonly format: 'date-time';
1281
+ };
1282
+ readonly finished_at: {
1283
+ readonly anyOf: readonly [Record<string, unknown>, {
1284
+ readonly type: 'null';
1285
+ }];
1286
+ };
1287
+ };
1288
+ readonly required: readonly ['id', 'attempt', 'execution_order', 'status', 'exit_code', 'started_at', 'finished_at'];
1289
+ readonly additionalProperties: false;
1290
+ };
1291
+ };
1292
+ readonly next_cursor: {
1293
+ readonly anyOf: readonly [Record<string, unknown>, {
1294
+ readonly type: 'null';
1295
+ }];
1296
+ };
1297
+ readonly total: {
1298
+ readonly type: 'integer';
1299
+ readonly minimum: 0;
1300
+ };
1301
+ };
1302
+ readonly required: readonly ["step_id", "attempts", "next_cursor"];
1303
+ readonly additionalProperties: false;
1304
+ };
1305
+ //# sourceMappingURL=workflow-tools.d.ts.map