@shipfox/api-workflows-dto 12.1.0 → 12.3.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 +16 -0
- package/dist/events.d.ts +64 -33
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +31 -1
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- 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/evaluation-trace.d.ts +36 -0
- package/dist/schemas/evaluation-trace.d.ts.map +1 -0
- package/dist/schemas/evaluation-trace.js +25 -0
- package/dist/schemas/evaluation-trace.js.map +1 -0
- package/dist/schemas/index.d.ts +3 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/job-execution.d.ts +48 -27
- package/dist/schemas/job-execution.d.ts.map +1 -1
- package/dist/schemas/job-listening.d.ts +6 -6
- package/dist/schemas/job.d.ts +40 -22
- package/dist/schemas/job.d.ts.map +1 -1
- package/dist/schemas/job.js +4 -0
- package/dist/schemas/job.js.map +1 -1
- package/dist/schemas/log-outcome.d.ts +1 -1
- package/dist/schemas/step.d.ts +125 -36
- package/dist/schemas/step.d.ts.map +1 -1
- package/dist/schemas/step.js +13 -0
- package/dist/schemas/step.js.map +1 -1
- package/dist/schemas/workflow-run-detail.d.ts +295 -84
- package/dist/schemas/workflow-run-detail.d.ts.map +1 -1
- package/dist/schemas/workflow-run-detail.js +11 -1
- package/dist/schemas/workflow-run-detail.js.map +1 -1
- 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 +3 -0
- package/src/events.ts +38 -0
- package/src/index.ts +14 -0
- package/src/schemas/evaluation-trace.test.ts +40 -0
- package/src/schemas/evaluation-trace.ts +30 -0
- package/src/schemas/index.ts +13 -0
- package/src/schemas/job.test.ts +3 -0
- package/src/schemas/job.ts +4 -0
- package/src/schemas/step-source-location.test.ts +2 -0
- package/src/schemas/step.test.ts +17 -1
- package/src/schemas/step.ts +20 -0
- package/src/schemas/workflow-run-detail.ts +14 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-run-detail.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-run-detail.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,wBAAwB;;;;;;EAMnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAIpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;iBAM1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { evaluationTraceSchema } from './evaluation-trace.js';
|
|
2
3
|
import { jobDtoSchema } from './job.js';
|
|
3
4
|
import { workflowExecutionEventSchema } from './job-listening.js';
|
|
4
|
-
import { stepAttemptDtoSchema, stepDtoSchema } from './step.js';
|
|
5
|
+
import { stepAttemptDetailDtoSchema, stepAttemptDtoSchema, stepDtoSchema } from './step.js';
|
|
5
6
|
import { workflowRunAttemptDtoSchema, workflowRunResponseSchema } from './workflow-run.js';
|
|
6
7
|
export const jobExecutionStatusSchema = z.enum([
|
|
7
8
|
'pending',
|
|
@@ -17,8 +18,10 @@ export const jobExecutionDtoSchema = z.object({
|
|
|
17
18
|
name: z.string(),
|
|
18
19
|
status: jobExecutionStatusSchema,
|
|
19
20
|
status_reason: z.string().nullable(),
|
|
21
|
+
runner: z.array(z.string()).nullable(),
|
|
20
22
|
trigger_events: z.array(workflowExecutionEventSchema).default([]),
|
|
21
23
|
outputs: z.record(z.string(), z.unknown()).nullable(),
|
|
24
|
+
evaluation_trace: evaluationTraceSchema.nullable(),
|
|
22
25
|
queued_at: z.string().nullable(),
|
|
23
26
|
started_at: z.string().nullable(),
|
|
24
27
|
finished_at: z.string().nullable(),
|
|
@@ -35,6 +38,13 @@ export const workflowRunStepDetailDtoSchema = stepDtoSchema.extend({
|
|
|
35
38
|
gate_result: stepAttemptDtoSchema.shape.gate_result,
|
|
36
39
|
attempts: z.array(stepAttemptDtoSchema)
|
|
37
40
|
});
|
|
41
|
+
export const stepAttemptDetailResponseSchema = z.object({
|
|
42
|
+
step_id: z.string().uuid(),
|
|
43
|
+
attempt: stepAttemptDetailDtoSchema.shape.attempt,
|
|
44
|
+
authored_config: z.record(z.string(), z.unknown()).nullable(),
|
|
45
|
+
config: stepAttemptDetailDtoSchema.shape.config,
|
|
46
|
+
evaluation_trace: stepAttemptDetailDtoSchema.shape.evaluation_trace
|
|
47
|
+
});
|
|
38
48
|
export const workflowRunJobExecutionDetailDtoSchema = jobExecutionDtoSchema.extend({
|
|
39
49
|
steps: z.array(workflowRunStepDetailDtoSchema)
|
|
40
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/workflow-run-detail.ts"],"sourcesContent":["import {z} from 'zod';\nimport {jobDtoSchema} from './job.js';\nimport {workflowExecutionEventSchema} from './job-listening.js';\nimport {stepAttemptDtoSchema, stepDtoSchema} from './step.js';\nimport {workflowRunAttemptDtoSchema, workflowRunResponseSchema} from './workflow-run.js';\n\nexport const jobExecutionStatusSchema = z.enum([\n 'pending',\n 'running',\n 'succeeded',\n 'failed',\n 'cancelled',\n]);\n\nexport const jobExecutionDtoSchema = z.object({\n id: z.string().uuid(),\n job_id: z.string().uuid(),\n sequence: z.number().int().positive(),\n name: z.string(),\n status: jobExecutionStatusSchema,\n status_reason: z.string().nullable(),\n trigger_events: z.array(workflowExecutionEventSchema).default([]),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n queued_at: z.string().nullable(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n timed_out_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type JobExecutionDto = z.infer<typeof jobExecutionDtoSchema>;\n\n// A step with its attempt history: one entry per dispatched attempt (a restarted\n// step has more than one). `current_attempt` on the step points at the latest.\nexport const workflowRunStepDetailDtoSchema = stepDtoSchema.extend({\n exit_code: z.number().int().nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n response: z.string().nullable(),\n gate_result: stepAttemptDtoSchema.shape.gate_result,\n attempts: z.array(stepAttemptDtoSchema),\n});\n\nexport type WorkflowRunStepDetailDto = z.infer<typeof workflowRunStepDetailDtoSchema>;\n\nexport const workflowRunJobExecutionDetailDtoSchema = jobExecutionDtoSchema.extend({\n steps: z.array(workflowRunStepDetailDtoSchema),\n});\n\nexport type WorkflowRunJobExecutionDetailDto = z.infer<\n typeof workflowRunJobExecutionDetailDtoSchema\n>;\n\nexport const workflowRunJobDetailDtoSchema = jobDtoSchema.extend({\n job_executions: z.array(workflowRunJobExecutionDetailDtoSchema),\n});\n\nexport type WorkflowRunJobDetailDto = z.infer<typeof workflowRunJobDetailDtoSchema>;\n\n// The run detail read model returned by `GET /workflows/runs/:id`: a run plus its\n// jobs, each job's steps, and each step's attempt history.\nexport const workflowRunDetailResponseSchema = workflowRunResponseSchema.extend({\n run_attempt: workflowRunAttemptDtoSchema,\n jobs: z.array(workflowRunJobDetailDtoSchema),\n});\n\nexport type WorkflowRunDetailResponseDto = z.infer<typeof workflowRunDetailResponseSchema>;\n"],"names":["z","jobDtoSchema","workflowExecutionEventSchema","stepAttemptDtoSchema","stepDtoSchema","workflowRunAttemptDtoSchema","workflowRunResponseSchema","jobExecutionStatusSchema","enum","jobExecutionDtoSchema","object","id","string","uuid","job_id","sequence","number","int","positive","name","status","status_reason","nullable","
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/workflow-run-detail.ts"],"sourcesContent":["import {z} from 'zod';\nimport {evaluationTraceSchema} from './evaluation-trace.js';\nimport {jobDtoSchema} from './job.js';\nimport {workflowExecutionEventSchema} from './job-listening.js';\nimport {stepAttemptDetailDtoSchema, stepAttemptDtoSchema, stepDtoSchema} from './step.js';\nimport {workflowRunAttemptDtoSchema, workflowRunResponseSchema} from './workflow-run.js';\n\nexport const jobExecutionStatusSchema = z.enum([\n 'pending',\n 'running',\n 'succeeded',\n 'failed',\n 'cancelled',\n]);\n\nexport const jobExecutionDtoSchema = z.object({\n id: z.string().uuid(),\n job_id: z.string().uuid(),\n sequence: z.number().int().positive(),\n name: z.string(),\n status: jobExecutionStatusSchema,\n status_reason: z.string().nullable(),\n runner: z.array(z.string()).nullable(),\n trigger_events: z.array(workflowExecutionEventSchema).default([]),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n evaluation_trace: evaluationTraceSchema.nullable(),\n queued_at: z.string().nullable(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n timed_out_at: z.string().nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type JobExecutionDto = z.infer<typeof jobExecutionDtoSchema>;\n\n// A step with its attempt history: one entry per dispatched attempt (a restarted\n// step has more than one). `current_attempt` on the step points at the latest.\nexport const workflowRunStepDetailDtoSchema = stepDtoSchema.extend({\n exit_code: z.number().int().nullable(),\n outputs: z.record(z.string(), z.unknown()).nullable(),\n response: z.string().nullable(),\n gate_result: stepAttemptDtoSchema.shape.gate_result,\n attempts: z.array(stepAttemptDtoSchema),\n});\n\nexport type WorkflowRunStepDetailDto = z.infer<typeof workflowRunStepDetailDtoSchema>;\n\nexport const stepAttemptDetailResponseSchema = z.object({\n step_id: z.string().uuid(),\n attempt: stepAttemptDetailDtoSchema.shape.attempt,\n authored_config: z.record(z.string(), z.unknown()).nullable(),\n config: stepAttemptDetailDtoSchema.shape.config,\n evaluation_trace: stepAttemptDetailDtoSchema.shape.evaluation_trace,\n});\n\nexport type StepAttemptDetailResponseDto = z.infer<typeof stepAttemptDetailResponseSchema>;\n\nexport const workflowRunJobExecutionDetailDtoSchema = jobExecutionDtoSchema.extend({\n steps: z.array(workflowRunStepDetailDtoSchema),\n});\n\nexport type WorkflowRunJobExecutionDetailDto = z.infer<\n typeof workflowRunJobExecutionDetailDtoSchema\n>;\n\nexport const workflowRunJobDetailDtoSchema = jobDtoSchema.extend({\n job_executions: z.array(workflowRunJobExecutionDetailDtoSchema),\n});\n\nexport type WorkflowRunJobDetailDto = z.infer<typeof workflowRunJobDetailDtoSchema>;\n\n// The run detail read model returned by `GET /workflows/runs/:id`: a run plus its\n// jobs, each job's steps, and each step's attempt history.\nexport const workflowRunDetailResponseSchema = workflowRunResponseSchema.extend({\n run_attempt: workflowRunAttemptDtoSchema,\n jobs: z.array(workflowRunJobDetailDtoSchema),\n});\n\nexport type WorkflowRunDetailResponseDto = z.infer<typeof workflowRunDetailResponseSchema>;\n"],"names":["z","evaluationTraceSchema","jobDtoSchema","workflowExecutionEventSchema","stepAttemptDetailDtoSchema","stepAttemptDtoSchema","stepDtoSchema","workflowRunAttemptDtoSchema","workflowRunResponseSchema","jobExecutionStatusSchema","enum","jobExecutionDtoSchema","object","id","string","uuid","job_id","sequence","number","int","positive","name","status","status_reason","nullable","runner","array","trigger_events","default","outputs","record","unknown","evaluation_trace","queued_at","started_at","finished_at","timed_out_at","created_at","updated_at","workflowRunStepDetailDtoSchema","extend","exit_code","response","gate_result","shape","attempts","stepAttemptDetailResponseSchema","step_id","attempt","authored_config","config","workflowRunJobExecutionDetailDtoSchema","steps","workflowRunJobDetailDtoSchema","job_executions","workflowRunDetailResponseSchema","run_attempt","jobs"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,wBAAwB;AAC5D,SAAQC,YAAY,QAAO,WAAW;AACtC,SAAQC,4BAA4B,QAAO,qBAAqB;AAChE,SAAQC,0BAA0B,EAAEC,oBAAoB,EAAEC,aAAa,QAAO,YAAY;AAC1F,SAAQC,2BAA2B,EAAEC,yBAAyB,QAAO,oBAAoB;AAEzF,OAAO,MAAMC,2BAA2BT,EAAEU,IAAI,CAAC;IAC7C;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAMC,wBAAwBX,EAAEY,MAAM,CAAC;IAC5CC,IAAIb,EAAEc,MAAM,GAAGC,IAAI;IACnBC,QAAQhB,EAAEc,MAAM,GAAGC,IAAI;IACvBE,UAAUjB,EAAEkB,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IACnCC,MAAMrB,EAAEc,MAAM;IACdQ,QAAQb;IACRc,eAAevB,EAAEc,MAAM,GAAGU,QAAQ;IAClCC,QAAQzB,EAAE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MAAM,CAAC;IACjFY,OAAOpD,EAAE0B,KAAK,CAACa;AACjB,GAAG;AAMH,OAAO,MAAMc,gCAAgCnD,aAAasC,MAAM,CAAC;IAC/Dc,gBAAgBtD,EAAE0B,KAAK,CAACyB;AAC1B,GAAG;AAIH,kFAAkF;AAClF,2DAA2D;AAC3D,OAAO,MAAMI,kCAAkC/C,0BAA0BgC,MAAM,CAAC;IAC9EgB,aAAajD;IACbkD,MAAMzD,EAAE0B,KAAK,CAAC2B;AAChB,GAAG"}
|
|
@@ -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>>;
|