@shipfox/api-workflows-dto 12.1.0 → 12.2.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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/events.d.ts +52 -33
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +24 -1
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +50 -50
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/schemas/job-execution.d.ts +27 -27
- package/dist/schemas/job-listening.d.ts +6 -6
- package/dist/schemas/job.d.ts +22 -22
- package/dist/schemas/log-outcome.d.ts +1 -1
- package/dist/schemas/step.d.ts +36 -36
- package/dist/schemas/workflow-run-detail.d.ts +84 -84
- package/dist/schemas/workflow-run.d.ts +27 -27
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/dist/working-directory.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/events.test.ts +2 -0
- package/src/events.ts +31 -0
- package/src/index.ts +3 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const jobExecutionStatusSchema: z.ZodEnum<{
|
|
3
3
|
cancelled: "cancelled";
|
|
4
|
+
failed: "failed";
|
|
4
5
|
pending: "pending";
|
|
5
6
|
running: "running";
|
|
6
7
|
succeeded: "succeeded";
|
|
7
|
-
failed: "failed";
|
|
8
8
|
}>;
|
|
9
9
|
export declare const jobExecutionDtoSchema: z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
@@ -13,10 +13,10 @@ export declare const jobExecutionDtoSchema: z.ZodObject<{
|
|
|
13
13
|
name: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
15
|
cancelled: "cancelled";
|
|
16
|
+
failed: "failed";
|
|
16
17
|
pending: "pending";
|
|
17
18
|
running: "running";
|
|
18
19
|
succeeded: "succeeded";
|
|
19
|
-
failed: "failed";
|
|
20
20
|
}>;
|
|
21
21
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
22
22
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -58,28 +58,28 @@ export declare const workflowRunStepDetailDtoSchema: z.ZodObject<{
|
|
|
58
58
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
59
|
signal: z.ZodOptional<z.ZodString>;
|
|
60
60
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
61
|
-
|
|
61
|
+
agent_config_invalid: "agent_config_invalid";
|
|
62
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
63
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
62
64
|
checkout_auth_failed: "checkout_auth_failed";
|
|
63
|
-
checkout_unavailable: "checkout_unavailable";
|
|
64
|
-
checkout_path_invalid: "checkout_path_invalid";
|
|
65
65
|
checkout_destination_occupied: "checkout_destination_occupied";
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
checkout_failed: "checkout_failed";
|
|
67
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
68
|
+
checkout_unavailable: "checkout_unavailable";
|
|
69
69
|
config_unresolvable: "config_unresolvable";
|
|
70
|
+
git_unavailable: "git_unavailable";
|
|
70
71
|
output_invalid: "output_invalid";
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
72
|
+
setup_aborted: "setup_aborted";
|
|
73
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
74
74
|
}>>;
|
|
75
75
|
field: z.ZodOptional<z.ZodString>;
|
|
76
76
|
source: z.ZodOptional<z.ZodString>;
|
|
77
77
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
78
|
-
|
|
78
|
+
credentials_invalid: "credentials_invalid";
|
|
79
|
+
model_unavailable: "model_unavailable";
|
|
79
80
|
provider_not_configured: "provider_not_configured";
|
|
80
81
|
provider_unsupported: "provider_unsupported";
|
|
81
|
-
|
|
82
|
-
credentials_invalid: "credentials_invalid";
|
|
82
|
+
step_config_invalid: "step_config_invalid";
|
|
83
83
|
}>>;
|
|
84
84
|
category: z.ZodOptional<z.ZodEnum<{
|
|
85
85
|
setup: "setup";
|
|
@@ -173,10 +173,10 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
|
|
|
173
173
|
name: z.ZodString;
|
|
174
174
|
status: z.ZodEnum<{
|
|
175
175
|
cancelled: "cancelled";
|
|
176
|
+
failed: "failed";
|
|
176
177
|
pending: "pending";
|
|
177
178
|
running: "running";
|
|
178
179
|
succeeded: "succeeded";
|
|
179
|
-
failed: "failed";
|
|
180
180
|
}>;
|
|
181
181
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
182
182
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -216,28 +216,28 @@ export declare const workflowRunJobExecutionDetailDtoSchema: z.ZodObject<{
|
|
|
216
216
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
217
217
|
signal: z.ZodOptional<z.ZodString>;
|
|
218
218
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
219
|
-
|
|
219
|
+
agent_config_invalid: "agent_config_invalid";
|
|
220
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
221
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
220
222
|
checkout_auth_failed: "checkout_auth_failed";
|
|
221
|
-
checkout_unavailable: "checkout_unavailable";
|
|
222
|
-
checkout_path_invalid: "checkout_path_invalid";
|
|
223
223
|
checkout_destination_occupied: "checkout_destination_occupied";
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
checkout_failed: "checkout_failed";
|
|
225
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
226
|
+
checkout_unavailable: "checkout_unavailable";
|
|
227
227
|
config_unresolvable: "config_unresolvable";
|
|
228
|
+
git_unavailable: "git_unavailable";
|
|
228
229
|
output_invalid: "output_invalid";
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
230
|
+
setup_aborted: "setup_aborted";
|
|
231
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
232
232
|
}>>;
|
|
233
233
|
field: z.ZodOptional<z.ZodString>;
|
|
234
234
|
source: z.ZodOptional<z.ZodString>;
|
|
235
235
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
236
|
-
|
|
236
|
+
credentials_invalid: "credentials_invalid";
|
|
237
|
+
model_unavailable: "model_unavailable";
|
|
237
238
|
provider_not_configured: "provider_not_configured";
|
|
238
239
|
provider_unsupported: "provider_unsupported";
|
|
239
|
-
|
|
240
|
-
credentials_invalid: "credentials_invalid";
|
|
240
|
+
step_config_invalid: "step_config_invalid";
|
|
241
241
|
}>>;
|
|
242
242
|
category: z.ZodOptional<z.ZodEnum<{
|
|
243
243
|
setup: "setup";
|
|
@@ -331,29 +331,29 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
331
331
|
key: z.ZodString;
|
|
332
332
|
name: z.ZodNullable<z.ZodString>;
|
|
333
333
|
mode: z.ZodEnum<{
|
|
334
|
-
one_shot: "one_shot";
|
|
335
334
|
listening: "listening";
|
|
335
|
+
one_shot: "one_shot";
|
|
336
336
|
}>;
|
|
337
337
|
status: z.ZodEnum<{
|
|
338
338
|
cancelled: "cancelled";
|
|
339
|
+
failed: "failed";
|
|
339
340
|
pending: "pending";
|
|
340
341
|
running: "running";
|
|
341
|
-
succeeded: "succeeded";
|
|
342
|
-
failed: "failed";
|
|
343
342
|
skipped: "skipped";
|
|
343
|
+
succeeded: "succeeded";
|
|
344
344
|
}>;
|
|
345
345
|
status_reason: z.ZodNullable<z.ZodEnum<{
|
|
346
|
-
|
|
347
|
-
dependency_not_completed: "dependency_not_completed";
|
|
346
|
+
condition_errored: "condition_errored";
|
|
348
347
|
condition_false: "condition_false";
|
|
349
|
-
default_gate_rejected: "default_gate_rejected";
|
|
350
348
|
condition_rejected: "condition_rejected";
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
default_gate_rejected: "default_gate_rejected";
|
|
350
|
+
dependency_not_completed: "dependency_not_completed";
|
|
353
351
|
run_cancelled: "run_cancelled";
|
|
354
|
-
timed_out: "timed_out";
|
|
355
352
|
runner_lost: "runner_lost";
|
|
356
353
|
step_failed: "step_failed";
|
|
354
|
+
timed_out: "timed_out";
|
|
355
|
+
unknown: "unknown";
|
|
356
|
+
user_cancelled: "user_cancelled";
|
|
357
357
|
}>>;
|
|
358
358
|
carried_over: z.ZodBoolean;
|
|
359
359
|
listening: z.ZodNullable<z.ZodObject<{
|
|
@@ -377,22 +377,22 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
377
377
|
max_wait_ms: z.ZodOptional<z.ZodNumber>;
|
|
378
378
|
}, z.core.$strip>>;
|
|
379
379
|
on_resolve: z.ZodEnum<{
|
|
380
|
-
finish: "finish";
|
|
381
380
|
cancel: "cancel";
|
|
381
|
+
finish: "finish";
|
|
382
382
|
}>;
|
|
383
383
|
execution_timeout_ms: z.ZodNullable<z.ZodNumber>;
|
|
384
384
|
name: z.ZodNullable<z.ZodString>;
|
|
385
385
|
}, z.core.$strip>>;
|
|
386
386
|
listener_status: z.ZodEnum<{
|
|
387
|
-
listening: "listening";
|
|
388
387
|
inactive: "inactive";
|
|
388
|
+
listening: "listening";
|
|
389
389
|
resolved: "resolved";
|
|
390
390
|
}>;
|
|
391
391
|
resolution_reason: z.ZodNullable<z.ZodEnum<{
|
|
392
|
-
until: "until";
|
|
393
|
-
timeout: "timeout";
|
|
394
|
-
max_executions: "max_executions";
|
|
395
392
|
cancelled: "cancelled";
|
|
393
|
+
max_executions: "max_executions";
|
|
394
|
+
timeout: "timeout";
|
|
395
|
+
until: "until";
|
|
396
396
|
}>>;
|
|
397
397
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
398
398
|
dependencies: z.ZodArray<z.ZodString>;
|
|
@@ -406,10 +406,10 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
406
406
|
name: z.ZodString;
|
|
407
407
|
status: z.ZodEnum<{
|
|
408
408
|
cancelled: "cancelled";
|
|
409
|
+
failed: "failed";
|
|
409
410
|
pending: "pending";
|
|
410
411
|
running: "running";
|
|
411
412
|
succeeded: "succeeded";
|
|
412
|
-
failed: "failed";
|
|
413
413
|
}>;
|
|
414
414
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
415
415
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -449,28 +449,28 @@ export declare const workflowRunJobDetailDtoSchema: z.ZodObject<{
|
|
|
449
449
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
450
450
|
signal: z.ZodOptional<z.ZodString>;
|
|
451
451
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
452
|
-
|
|
452
|
+
agent_config_invalid: "agent_config_invalid";
|
|
453
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
454
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
453
455
|
checkout_auth_failed: "checkout_auth_failed";
|
|
454
|
-
checkout_unavailable: "checkout_unavailable";
|
|
455
|
-
checkout_path_invalid: "checkout_path_invalid";
|
|
456
456
|
checkout_destination_occupied: "checkout_destination_occupied";
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
457
|
+
checkout_failed: "checkout_failed";
|
|
458
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
459
|
+
checkout_unavailable: "checkout_unavailable";
|
|
460
460
|
config_unresolvable: "config_unresolvable";
|
|
461
|
+
git_unavailable: "git_unavailable";
|
|
461
462
|
output_invalid: "output_invalid";
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
463
|
+
setup_aborted: "setup_aborted";
|
|
464
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
465
465
|
}>>;
|
|
466
466
|
field: z.ZodOptional<z.ZodString>;
|
|
467
467
|
source: z.ZodOptional<z.ZodString>;
|
|
468
468
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
469
|
-
|
|
469
|
+
credentials_invalid: "credentials_invalid";
|
|
470
|
+
model_unavailable: "model_unavailable";
|
|
470
471
|
provider_not_configured: "provider_not_configured";
|
|
471
472
|
provider_unsupported: "provider_unsupported";
|
|
472
|
-
|
|
473
|
-
credentials_invalid: "credentials_invalid";
|
|
473
|
+
step_config_invalid: "step_config_invalid";
|
|
474
474
|
}>>;
|
|
475
475
|
category: z.ZodOptional<z.ZodEnum<{
|
|
476
476
|
setup: "setup";
|
|
@@ -568,10 +568,10 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
568
568
|
workflow_name: z.ZodString;
|
|
569
569
|
status: z.ZodEnum<{
|
|
570
570
|
cancelled: "cancelled";
|
|
571
|
+
failed: "failed";
|
|
571
572
|
pending: "pending";
|
|
572
573
|
running: "running";
|
|
573
574
|
succeeded: "succeeded";
|
|
574
|
-
failed: "failed";
|
|
575
575
|
}>;
|
|
576
576
|
current_attempt: z.ZodNumber;
|
|
577
577
|
latest_attempt: z.ZodNumber;
|
|
@@ -600,17 +600,17 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
600
600
|
attempt: z.ZodNumber;
|
|
601
601
|
status: z.ZodEnum<{
|
|
602
602
|
cancelled: "cancelled";
|
|
603
|
+
failed: "failed";
|
|
603
604
|
pending: "pending";
|
|
604
605
|
running: "running";
|
|
605
606
|
succeeded: "succeeded";
|
|
606
|
-
failed: "failed";
|
|
607
607
|
}>;
|
|
608
608
|
created_at: z.ZodString;
|
|
609
609
|
started_at: z.ZodNullable<z.ZodString>;
|
|
610
610
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
611
611
|
rerun_mode: z.ZodNullable<z.ZodEnum<{
|
|
612
|
-
failed: "failed";
|
|
613
612
|
all: "all";
|
|
613
|
+
failed: "failed";
|
|
614
614
|
}>>;
|
|
615
615
|
}, z.core.$strip>;
|
|
616
616
|
jobs: z.ZodArray<z.ZodObject<{
|
|
@@ -619,29 +619,29 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
619
619
|
key: z.ZodString;
|
|
620
620
|
name: z.ZodNullable<z.ZodString>;
|
|
621
621
|
mode: z.ZodEnum<{
|
|
622
|
-
one_shot: "one_shot";
|
|
623
622
|
listening: "listening";
|
|
623
|
+
one_shot: "one_shot";
|
|
624
624
|
}>;
|
|
625
625
|
status: z.ZodEnum<{
|
|
626
626
|
cancelled: "cancelled";
|
|
627
|
+
failed: "failed";
|
|
627
628
|
pending: "pending";
|
|
628
629
|
running: "running";
|
|
629
|
-
succeeded: "succeeded";
|
|
630
|
-
failed: "failed";
|
|
631
630
|
skipped: "skipped";
|
|
631
|
+
succeeded: "succeeded";
|
|
632
632
|
}>;
|
|
633
633
|
status_reason: z.ZodNullable<z.ZodEnum<{
|
|
634
|
-
|
|
635
|
-
dependency_not_completed: "dependency_not_completed";
|
|
634
|
+
condition_errored: "condition_errored";
|
|
636
635
|
condition_false: "condition_false";
|
|
637
|
-
default_gate_rejected: "default_gate_rejected";
|
|
638
636
|
condition_rejected: "condition_rejected";
|
|
639
|
-
|
|
640
|
-
|
|
637
|
+
default_gate_rejected: "default_gate_rejected";
|
|
638
|
+
dependency_not_completed: "dependency_not_completed";
|
|
641
639
|
run_cancelled: "run_cancelled";
|
|
642
|
-
timed_out: "timed_out";
|
|
643
640
|
runner_lost: "runner_lost";
|
|
644
641
|
step_failed: "step_failed";
|
|
642
|
+
timed_out: "timed_out";
|
|
643
|
+
unknown: "unknown";
|
|
644
|
+
user_cancelled: "user_cancelled";
|
|
645
645
|
}>>;
|
|
646
646
|
carried_over: z.ZodBoolean;
|
|
647
647
|
listening: z.ZodNullable<z.ZodObject<{
|
|
@@ -665,22 +665,22 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
665
665
|
max_wait_ms: z.ZodOptional<z.ZodNumber>;
|
|
666
666
|
}, z.core.$strip>>;
|
|
667
667
|
on_resolve: z.ZodEnum<{
|
|
668
|
-
finish: "finish";
|
|
669
668
|
cancel: "cancel";
|
|
669
|
+
finish: "finish";
|
|
670
670
|
}>;
|
|
671
671
|
execution_timeout_ms: z.ZodNullable<z.ZodNumber>;
|
|
672
672
|
name: z.ZodNullable<z.ZodString>;
|
|
673
673
|
}, z.core.$strip>>;
|
|
674
674
|
listener_status: z.ZodEnum<{
|
|
675
|
-
listening: "listening";
|
|
676
675
|
inactive: "inactive";
|
|
676
|
+
listening: "listening";
|
|
677
677
|
resolved: "resolved";
|
|
678
678
|
}>;
|
|
679
679
|
resolution_reason: z.ZodNullable<z.ZodEnum<{
|
|
680
|
-
until: "until";
|
|
681
|
-
timeout: "timeout";
|
|
682
|
-
max_executions: "max_executions";
|
|
683
680
|
cancelled: "cancelled";
|
|
681
|
+
max_executions: "max_executions";
|
|
682
|
+
timeout: "timeout";
|
|
683
|
+
until: "until";
|
|
684
684
|
}>>;
|
|
685
685
|
outputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
686
686
|
dependencies: z.ZodArray<z.ZodString>;
|
|
@@ -694,10 +694,10 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
694
694
|
name: z.ZodString;
|
|
695
695
|
status: z.ZodEnum<{
|
|
696
696
|
cancelled: "cancelled";
|
|
697
|
+
failed: "failed";
|
|
697
698
|
pending: "pending";
|
|
698
699
|
running: "running";
|
|
699
700
|
succeeded: "succeeded";
|
|
700
|
-
failed: "failed";
|
|
701
701
|
}>;
|
|
702
702
|
status_reason: z.ZodNullable<z.ZodString>;
|
|
703
703
|
trigger_events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -737,28 +737,28 @@ export declare const workflowRunDetailResponseSchema: z.ZodObject<{
|
|
|
737
737
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
738
738
|
signal: z.ZodOptional<z.ZodString>;
|
|
739
739
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
740
|
-
|
|
740
|
+
agent_config_invalid: "agent_config_invalid";
|
|
741
|
+
agent_harness_unavailable: "agent_harness_unavailable";
|
|
742
|
+
agent_invocation_failed: "agent_invocation_failed";
|
|
741
743
|
checkout_auth_failed: "checkout_auth_failed";
|
|
742
|
-
checkout_unavailable: "checkout_unavailable";
|
|
743
|
-
checkout_path_invalid: "checkout_path_invalid";
|
|
744
744
|
checkout_destination_occupied: "checkout_destination_occupied";
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
745
|
+
checkout_failed: "checkout_failed";
|
|
746
|
+
checkout_path_invalid: "checkout_path_invalid";
|
|
747
|
+
checkout_unavailable: "checkout_unavailable";
|
|
748
748
|
config_unresolvable: "config_unresolvable";
|
|
749
|
+
git_unavailable: "git_unavailable";
|
|
749
750
|
output_invalid: "output_invalid";
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
agent_harness_unavailable: "agent_harness_unavailable";
|
|
751
|
+
setup_aborted: "setup_aborted";
|
|
752
|
+
workspace_prep_failed: "workspace_prep_failed";
|
|
753
753
|
}>>;
|
|
754
754
|
field: z.ZodOptional<z.ZodString>;
|
|
755
755
|
source: z.ZodOptional<z.ZodString>;
|
|
756
756
|
agent_config_issue: z.ZodOptional<z.ZodEnum<{
|
|
757
|
-
|
|
757
|
+
credentials_invalid: "credentials_invalid";
|
|
758
|
+
model_unavailable: "model_unavailable";
|
|
758
759
|
provider_not_configured: "provider_not_configured";
|
|
759
760
|
provider_unsupported: "provider_unsupported";
|
|
760
|
-
|
|
761
|
-
credentials_invalid: "credentials_invalid";
|
|
761
|
+
step_config_invalid: "step_config_invalid";
|
|
762
762
|
}>>;
|
|
763
763
|
category: z.ZodOptional<z.ZodEnum<{
|
|
764
764
|
setup: "setup";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const workflowRunStatusSchema: z.ZodEnum<{
|
|
3
3
|
cancelled: "cancelled";
|
|
4
|
+
failed: "failed";
|
|
4
5
|
pending: "pending";
|
|
5
6
|
running: "running";
|
|
6
7
|
succeeded: "succeeded";
|
|
7
|
-
failed: "failed";
|
|
8
8
|
}>;
|
|
9
9
|
export type WorkflowRunStatusDto = z.infer<typeof workflowRunStatusSchema>;
|
|
10
10
|
export declare const workflowRunRerunModeSchema: z.ZodEnum<{
|
|
11
|
-
failed: "failed";
|
|
12
11
|
all: "all";
|
|
12
|
+
failed: "failed";
|
|
13
13
|
}>;
|
|
14
14
|
export type WorkflowRunRerunModeDto = z.infer<typeof workflowRunRerunModeSchema>;
|
|
15
15
|
export declare const rerunWorkflowRunBodySchema: z.ZodObject<{
|
|
16
16
|
mode: z.ZodEnum<{
|
|
17
|
-
failed: "failed";
|
|
18
17
|
all: "all";
|
|
18
|
+
failed: "failed";
|
|
19
19
|
}>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type RerunWorkflowRunBodyDto = z.infer<typeof rerunWorkflowRunBodySchema>;
|
|
@@ -25,10 +25,10 @@ export declare const workflowRunListQuerySchema: z.ZodObject<{
|
|
|
25
25
|
cursor: z.ZodOptional<z.ZodString>;
|
|
26
26
|
status: z.ZodOptional<z.ZodEnum<{
|
|
27
27
|
cancelled: "cancelled";
|
|
28
|
+
failed: "failed";
|
|
28
29
|
pending: "pending";
|
|
29
30
|
running: "running";
|
|
30
31
|
succeeded: "succeeded";
|
|
31
|
-
failed: "failed";
|
|
32
32
|
}>>;
|
|
33
33
|
definition_id: z.ZodOptional<z.ZodString>;
|
|
34
34
|
trigger_source: z.ZodOptional<z.ZodString>;
|
|
@@ -37,14 +37,14 @@ export declare const workflowRunListQuerySchema: z.ZodObject<{
|
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export type WorkflowRunListQueryDto = z.infer<typeof workflowRunListQuerySchema>;
|
|
39
39
|
export declare const workflowRunAggregatesQuerySchema: z.ZodObject<{
|
|
40
|
+
project_id: z.ZodString;
|
|
40
41
|
status: z.ZodOptional<z.ZodEnum<{
|
|
41
42
|
cancelled: "cancelled";
|
|
43
|
+
failed: "failed";
|
|
42
44
|
pending: "pending";
|
|
43
45
|
running: "running";
|
|
44
46
|
succeeded: "succeeded";
|
|
45
|
-
failed: "failed";
|
|
46
47
|
}>>;
|
|
47
|
-
project_id: z.ZodString;
|
|
48
48
|
definition_id: z.ZodOptional<z.ZodString>;
|
|
49
49
|
trigger_source: z.ZodOptional<z.ZodString>;
|
|
50
50
|
created_from: z.ZodOptional<z.ZodString>;
|
|
@@ -72,10 +72,10 @@ export declare const workflowRunDtoSchema: z.ZodObject<{
|
|
|
72
72
|
workflow_name: z.ZodString;
|
|
73
73
|
status: z.ZodEnum<{
|
|
74
74
|
cancelled: "cancelled";
|
|
75
|
+
failed: "failed";
|
|
75
76
|
pending: "pending";
|
|
76
77
|
running: "running";
|
|
77
78
|
succeeded: "succeeded";
|
|
78
|
-
failed: "failed";
|
|
79
79
|
}>;
|
|
80
80
|
current_attempt: z.ZodNumber;
|
|
81
81
|
latest_attempt: z.ZodNumber;
|
|
@@ -106,17 +106,17 @@ export declare const workflowRunAttemptDtoSchema: z.ZodObject<{
|
|
|
106
106
|
attempt: z.ZodNumber;
|
|
107
107
|
status: z.ZodEnum<{
|
|
108
108
|
cancelled: "cancelled";
|
|
109
|
+
failed: "failed";
|
|
109
110
|
pending: "pending";
|
|
110
111
|
running: "running";
|
|
111
112
|
succeeded: "succeeded";
|
|
112
|
-
failed: "failed";
|
|
113
113
|
}>;
|
|
114
114
|
created_at: z.ZodString;
|
|
115
115
|
started_at: z.ZodNullable<z.ZodString>;
|
|
116
116
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
117
117
|
rerun_mode: z.ZodNullable<z.ZodEnum<{
|
|
118
|
-
failed: "failed";
|
|
119
118
|
all: "all";
|
|
119
|
+
failed: "failed";
|
|
120
120
|
}>>;
|
|
121
121
|
}, z.core.$strip>;
|
|
122
122
|
export type WorkflowRunAttemptDto = z.infer<typeof workflowRunAttemptDtoSchema>;
|
|
@@ -129,10 +129,10 @@ export declare const workflowRunResponseSchema: z.ZodObject<{
|
|
|
129
129
|
workflow_name: z.ZodString;
|
|
130
130
|
status: z.ZodEnum<{
|
|
131
131
|
cancelled: "cancelled";
|
|
132
|
+
failed: "failed";
|
|
132
133
|
pending: "pending";
|
|
133
134
|
running: "running";
|
|
134
135
|
succeeded: "succeeded";
|
|
135
|
-
failed: "failed";
|
|
136
136
|
}>;
|
|
137
137
|
current_attempt: z.ZodNumber;
|
|
138
138
|
latest_attempt: z.ZodNumber;
|
|
@@ -164,17 +164,17 @@ export declare const workflowRunAttemptsResponseSchema: z.ZodObject<{
|
|
|
164
164
|
attempt: z.ZodNumber;
|
|
165
165
|
status: z.ZodEnum<{
|
|
166
166
|
cancelled: "cancelled";
|
|
167
|
+
failed: "failed";
|
|
167
168
|
pending: "pending";
|
|
168
169
|
running: "running";
|
|
169
170
|
succeeded: "succeeded";
|
|
170
|
-
failed: "failed";
|
|
171
171
|
}>;
|
|
172
172
|
created_at: z.ZodString;
|
|
173
173
|
started_at: z.ZodNullable<z.ZodString>;
|
|
174
174
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
175
175
|
rerun_mode: z.ZodNullable<z.ZodEnum<{
|
|
176
|
-
failed: "failed";
|
|
177
176
|
all: "all";
|
|
177
|
+
failed: "failed";
|
|
178
178
|
}>>;
|
|
179
179
|
}, z.core.$strip>>;
|
|
180
180
|
}, z.core.$strip>;
|
|
@@ -185,11 +185,11 @@ export declare const workflowRunJobSummaryDtoSchema: z.ZodObject<{
|
|
|
185
185
|
name: z.ZodNullable<z.ZodString>;
|
|
186
186
|
status: z.ZodEnum<{
|
|
187
187
|
cancelled: "cancelled";
|
|
188
|
+
failed: "failed";
|
|
188
189
|
pending: "pending";
|
|
189
190
|
running: "running";
|
|
190
|
-
succeeded: "succeeded";
|
|
191
|
-
failed: "failed";
|
|
192
191
|
skipped: "skipped";
|
|
192
|
+
succeeded: "succeeded";
|
|
193
193
|
}>;
|
|
194
194
|
position: z.ZodNumber;
|
|
195
195
|
}, z.core.$strip>;
|
|
@@ -207,11 +207,11 @@ export declare const WORKFLOW_RUN_JOB_PREVIEW_LIMIT = 16;
|
|
|
207
207
|
export declare const workflowRunJobStatusCountDtoSchema: z.ZodObject<{
|
|
208
208
|
status: z.ZodEnum<{
|
|
209
209
|
cancelled: "cancelled";
|
|
210
|
+
failed: "failed";
|
|
210
211
|
pending: "pending";
|
|
211
212
|
running: "running";
|
|
212
|
-
succeeded: "succeeded";
|
|
213
|
-
failed: "failed";
|
|
214
213
|
skipped: "skipped";
|
|
214
|
+
succeeded: "succeeded";
|
|
215
215
|
}>;
|
|
216
216
|
count: z.ZodNumber;
|
|
217
217
|
}, z.core.$strip>;
|
|
@@ -225,10 +225,10 @@ export declare const workflowRunListItemSchema: z.ZodObject<{
|
|
|
225
225
|
workflow_name: z.ZodString;
|
|
226
226
|
status: z.ZodEnum<{
|
|
227
227
|
cancelled: "cancelled";
|
|
228
|
+
failed: "failed";
|
|
228
229
|
pending: "pending";
|
|
229
230
|
running: "running";
|
|
230
231
|
succeeded: "succeeded";
|
|
231
|
-
failed: "failed";
|
|
232
232
|
}>;
|
|
233
233
|
current_attempt: z.ZodNumber;
|
|
234
234
|
latest_attempt: z.ZodNumber;
|
|
@@ -257,22 +257,22 @@ export declare const workflowRunListItemSchema: z.ZodObject<{
|
|
|
257
257
|
name: z.ZodNullable<z.ZodString>;
|
|
258
258
|
status: z.ZodEnum<{
|
|
259
259
|
cancelled: "cancelled";
|
|
260
|
+
failed: "failed";
|
|
260
261
|
pending: "pending";
|
|
261
262
|
running: "running";
|
|
262
|
-
succeeded: "succeeded";
|
|
263
|
-
failed: "failed";
|
|
264
263
|
skipped: "skipped";
|
|
264
|
+
succeeded: "succeeded";
|
|
265
265
|
}>;
|
|
266
266
|
position: z.ZodNumber;
|
|
267
267
|
}, z.core.$strip>>;
|
|
268
268
|
job_status_counts: z.ZodArray<z.ZodObject<{
|
|
269
269
|
status: z.ZodEnum<{
|
|
270
270
|
cancelled: "cancelled";
|
|
271
|
+
failed: "failed";
|
|
271
272
|
pending: "pending";
|
|
272
273
|
running: "running";
|
|
273
|
-
succeeded: "succeeded";
|
|
274
|
-
failed: "failed";
|
|
275
274
|
skipped: "skipped";
|
|
275
|
+
succeeded: "succeeded";
|
|
276
276
|
}>;
|
|
277
277
|
count: z.ZodNumber;
|
|
278
278
|
}, z.core.$strip>>;
|
|
@@ -288,10 +288,10 @@ export declare const workflowRunListResponseSchema: z.ZodObject<{
|
|
|
288
288
|
workflow_name: z.ZodString;
|
|
289
289
|
status: z.ZodEnum<{
|
|
290
290
|
cancelled: "cancelled";
|
|
291
|
+
failed: "failed";
|
|
291
292
|
pending: "pending";
|
|
292
293
|
running: "running";
|
|
293
294
|
succeeded: "succeeded";
|
|
294
|
-
failed: "failed";
|
|
295
295
|
}>;
|
|
296
296
|
current_attempt: z.ZodNumber;
|
|
297
297
|
latest_attempt: z.ZodNumber;
|
|
@@ -320,22 +320,22 @@ export declare const workflowRunListResponseSchema: z.ZodObject<{
|
|
|
320
320
|
name: z.ZodNullable<z.ZodString>;
|
|
321
321
|
status: z.ZodEnum<{
|
|
322
322
|
cancelled: "cancelled";
|
|
323
|
+
failed: "failed";
|
|
323
324
|
pending: "pending";
|
|
324
325
|
running: "running";
|
|
325
|
-
succeeded: "succeeded";
|
|
326
|
-
failed: "failed";
|
|
327
326
|
skipped: "skipped";
|
|
327
|
+
succeeded: "succeeded";
|
|
328
328
|
}>;
|
|
329
329
|
position: z.ZodNumber;
|
|
330
330
|
}, z.core.$strip>>;
|
|
331
331
|
job_status_counts: z.ZodArray<z.ZodObject<{
|
|
332
332
|
status: z.ZodEnum<{
|
|
333
333
|
cancelled: "cancelled";
|
|
334
|
+
failed: "failed";
|
|
334
335
|
pending: "pending";
|
|
335
336
|
running: "running";
|
|
336
|
-
succeeded: "succeeded";
|
|
337
|
-
failed: "failed";
|
|
338
337
|
skipped: "skipped";
|
|
338
|
+
succeeded: "succeeded";
|
|
339
339
|
}>;
|
|
340
340
|
count: z.ZodNumber;
|
|
341
341
|
}, z.core.$strip>>;
|
|
@@ -348,10 +348,10 @@ export declare const workflowRunAggregatesResponseSchema: z.ZodObject<{
|
|
|
348
348
|
status: z.ZodArray<z.ZodObject<{
|
|
349
349
|
value: z.ZodEnum<{
|
|
350
350
|
cancelled: "cancelled";
|
|
351
|
+
failed: "failed";
|
|
351
352
|
pending: "pending";
|
|
352
353
|
running: "running";
|
|
353
354
|
succeeded: "succeeded";
|
|
354
|
-
failed: "failed";
|
|
355
355
|
}>;
|
|
356
356
|
count: z.ZodNumber;
|
|
357
357
|
}, z.core.$strip>>;
|