@shipfox/api-workflows-dto 2.0.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 +2 -0
- package/.turbo/turbo-type$colon$emit.log +1 -0
- package/.turbo/turbo-type.log +1 -0
- package/CHANGELOG.md +46 -0
- package/LICENSE +21 -0
- package/dist/events.d.ts +316 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +144 -0
- package/dist/events.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/agent-runtime-config.d.ts +7 -0
- package/dist/schemas/agent-runtime-config.d.ts.map +1 -0
- package/dist/schemas/agent-runtime-config.js +7 -0
- package/dist/schemas/agent-runtime-config.js.map +1 -0
- package/dist/schemas/checkout-token.d.ts +56 -0
- package/dist/schemas/checkout-token.d.ts.map +1 -0
- package/dist/schemas/checkout-token.js +44 -0
- package/dist/schemas/checkout-token.js.map +1 -0
- package/dist/schemas/checkout.d.ts +10 -0
- package/dist/schemas/checkout.d.ts.map +1 -0
- package/dist/schemas/checkout.js +10 -0
- package/dist/schemas/checkout.js.map +1 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +12 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/job-execution.d.ts +116 -0
- package/dist/schemas/job-execution.d.ts.map +1 -0
- package/dist/schemas/job-execution.js +42 -0
- package/dist/schemas/job-execution.js.map +1 -0
- package/dist/schemas/job-listening.d.ts +93 -0
- package/dist/schemas/job-listening.d.ts.map +1 -0
- package/dist/schemas/job-listening.js +60 -0
- package/dist/schemas/job-listening.js.map +1 -0
- package/dist/schemas/job.d.ts +101 -0
- package/dist/schemas/job.d.ts.map +1 -0
- package/dist/schemas/job.js +43 -0
- package/dist/schemas/job.js.map +1 -0
- package/dist/schemas/log-outcome.d.ts +7 -0
- package/dist/schemas/log-outcome.d.ts.map +1 -0
- package/dist/schemas/log-outcome.js +7 -0
- package/dist/schemas/log-outcome.js.map +1 -0
- package/dist/schemas/step.d.ts +186 -0
- package/dist/schemas/step.d.ts.map +1 -0
- package/dist/schemas/step.js +137 -0
- package/dist/schemas/step.js.map +1 -0
- package/dist/schemas/workflow-run-detail.d.ts +807 -0
- package/dist/schemas/workflow-run-detail.d.ts.map +1 -0
- package/dist/schemas/workflow-run-detail.js +51 -0
- package/dist/schemas/workflow-run-detail.js.map +1 -0
- package/dist/schemas/workflow-run.d.ts +213 -0
- package/dist/schemas/workflow-run.d.ts.map +1 -0
- package/dist/schemas/workflow-run.js +112 -0
- package/dist/schemas/workflow-run.js.map +1 -0
- package/dist/tsconfig.test.tsbuildinfo +1 -0
- package/package.json +55 -0
- package/src/events.test.ts +362 -0
- package/src/events.ts +180 -0
- package/src/index.ts +130 -0
- package/src/schemas/agent-runtime-config.test.ts +17 -0
- package/src/schemas/agent-runtime-config.ts +8 -0
- package/src/schemas/checkout-token.test.ts +162 -0
- package/src/schemas/checkout-token.ts +45 -0
- package/src/schemas/checkout.test.ts +49 -0
- package/src/schemas/checkout.ts +11 -0
- package/src/schemas/index.ts +104 -0
- package/src/schemas/job-execution.test.ts +27 -0
- package/src/schemas/job-execution.ts +92 -0
- package/src/schemas/job-listening.test.ts +64 -0
- package/src/schemas/job-listening.ts +59 -0
- package/src/schemas/job.test.ts +42 -0
- package/src/schemas/job.ts +53 -0
- package/src/schemas/log-outcome.ts +5 -0
- package/src/schemas/step-source-location.test.ts +45 -0
- package/src/schemas/step.test.ts +176 -0
- package/src/schemas/step.ts +163 -0
- package/src/schemas/workflow-run-detail.ts +67 -0
- package/src/schemas/workflow-run.test.ts +59 -0
- package/src/schemas/workflow-run.ts +144 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/tsconfig.test.json +8 -0
- package/vitest.config.ts +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;;iBAExC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAIpF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { jobDtoSchema } from './job.js';
|
|
3
|
+
import { workflowExecutionEventSchema } from './job-listening.js';
|
|
4
|
+
import { stepAttemptDtoSchema, stepDtoSchema } from './step.js';
|
|
5
|
+
import { workflowRunAttemptDtoSchema, workflowRunResponseSchema } from './workflow-run.js';
|
|
6
|
+
export const jobExecutionStatusSchema = z.enum([
|
|
7
|
+
'pending',
|
|
8
|
+
'running',
|
|
9
|
+
'succeeded',
|
|
10
|
+
'failed',
|
|
11
|
+
'cancelled'
|
|
12
|
+
]);
|
|
13
|
+
export const jobExecutionDtoSchema = z.object({
|
|
14
|
+
id: z.string().uuid(),
|
|
15
|
+
job_id: z.string().uuid(),
|
|
16
|
+
sequence: z.number().int().positive(),
|
|
17
|
+
name: z.string(),
|
|
18
|
+
status: jobExecutionStatusSchema,
|
|
19
|
+
status_reason: z.string().nullable(),
|
|
20
|
+
trigger_events: z.array(workflowExecutionEventSchema).default([]),
|
|
21
|
+
outputs: z.record(z.string(), z.unknown()).nullable(),
|
|
22
|
+
queued_at: z.string().nullable(),
|
|
23
|
+
started_at: z.string().nullable(),
|
|
24
|
+
finished_at: z.string().nullable(),
|
|
25
|
+
timed_out_at: z.string().nullable(),
|
|
26
|
+
created_at: z.string(),
|
|
27
|
+
updated_at: z.string()
|
|
28
|
+
});
|
|
29
|
+
// A step with its attempt history: one entry per dispatched attempt (a restarted
|
|
30
|
+
// step has more than one). `current_attempt` on the step points at the latest.
|
|
31
|
+
export const workflowRunStepDetailDtoSchema = stepDtoSchema.extend({
|
|
32
|
+
exit_code: z.number().int().nullable(),
|
|
33
|
+
outputs: z.record(z.string(), z.unknown()).nullable(),
|
|
34
|
+
response: z.string().nullable(),
|
|
35
|
+
gate_result: stepAttemptDtoSchema.shape.gate_result,
|
|
36
|
+
attempts: z.array(stepAttemptDtoSchema)
|
|
37
|
+
});
|
|
38
|
+
export const workflowRunJobExecutionDetailDtoSchema = jobExecutionDtoSchema.extend({
|
|
39
|
+
steps: z.array(workflowRunStepDetailDtoSchema)
|
|
40
|
+
});
|
|
41
|
+
export const workflowRunJobDetailDtoSchema = jobDtoSchema.extend({
|
|
42
|
+
job_executions: z.array(workflowRunJobExecutionDetailDtoSchema)
|
|
43
|
+
});
|
|
44
|
+
// The run detail read model returned by `GET /workflows/runs/:id`: a run plus its
|
|
45
|
+
// jobs, each job's steps, and each step's attempt history.
|
|
46
|
+
export const workflowRunDetailResponseSchema = workflowRunResponseSchema.extend({
|
|
47
|
+
run_attempt: workflowRunAttemptDtoSchema,
|
|
48
|
+
jobs: z.array(workflowRunJobDetailDtoSchema)
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=workflow-run-detail.js.map
|
|
@@ -0,0 +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","trigger_events","array","default","outputs","record","unknown","queued_at","started_at","finished_at","timed_out_at","created_at","updated_at","workflowRunStepDetailDtoSchema","extend","exit_code","response","gate_result","shape","attempts","workflowRunJobExecutionDetailDtoSchema","steps","workflowRunJobDetailDtoSchema","job_executions","workflowRunDetailResponseSchema","run_attempt","jobs"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AACtB,SAAQC,YAAY,QAAO,WAAW;AACtC,SAAQC,4BAA4B,QAAO,qBAAqB;AAChE,SAAQC,oBAAoB,EAAEC,aAAa,QAAO,YAAY;AAC9D,SAAQC,2BAA2B,EAAEC,yBAAyB,QAAO,oBAAoB;AAEzF,OAAO,MAAMC,2BAA2BP,EAAEQ,IAAI,CAAC;IAC7C;IACA;IACA;IACA;IACA;CACD,EAAE;AAEH,OAAO,MAAMC,wBAAwBT,EAAEU,MAAM,CAAC;IAC5CC,IAAIX,EAAEY,MAAM,GAAGC,IAAI;IACnBC,QAAQd,EAAEY,MAAM,GAAGC,IAAI;IACvBE,UAAUf,EAAEgB,MAAM,GAAGC,GAAG,GAAGC,QAAQ;IACnCC,MAAMnB,EAAEY,MAAM;IACdQ,QAAQb;IACRc,eAAerB,EAAEY,MAAM,GAAGU,QAAQ;IAClCC,gBAAgBvB,EAAEwB,KAAK,CAACtB,8BAA8BuB,OAAO,CAAC,EAAE;IAChEC,SAAS1B,EAAE2B,MAAM,CAAC3B,EAAEY,MAAM,IAAIZ,EAAE4B,OAAO,IAAIN,QAAQ;IACnDO,WAAW7B,EAAEY,MAAM,GAAGU,QAAQ;IAC9BQ,YAAY9B,EAAEY,MAAM,GAAGU,QAAQ;IAC/BS,aAAa/B,EAAEY,MAAM,GAAGU,QAAQ;IAChCU,cAAchC,EAAEY,MAAM,GAAGU,QAAQ;IACjCW,YAAYjC,EAAEY,MAAM;IACpBsB,YAAYlC,EAAEY,MAAM;AACtB,GAAG;AAIH,iFAAiF;AACjF,+EAA+E;AAC/E,OAAO,MAAMuB,iCAAiC/B,cAAcgC,MAAM,CAAC;IACjEC,WAAWrC,EAAEgB,MAAM,GAAGC,GAAG,GAAGK,QAAQ;IACpCI,SAAS1B,EAAE2B,MAAM,CAAC3B,EAAEY,MAAM,IAAIZ,EAAE4B,OAAO,IAAIN,QAAQ;IACnDgB,UAAUtC,EAAEY,MAAM,GAAGU,QAAQ;IAC7BiB,aAAapC,qBAAqBqC,KAAK,CAACD,WAAW;IACnDE,UAAUzC,EAAEwB,KAAK,CAACrB;AACpB,GAAG;AAIH,OAAO,MAAMuC,yCAAyCjC,sBAAsB2B,MAAM,CAAC;IACjFO,OAAO3C,EAAEwB,KAAK,CAACW;AACjB,GAAG;AAMH,OAAO,MAAMS,gCAAgC3C,aAAamC,MAAM,CAAC;IAC/DS,gBAAgB7C,EAAEwB,KAAK,CAACkB;AAC1B,GAAG;AAIH,kFAAkF;AAClF,2DAA2D;AAC3D,OAAO,MAAMI,kCAAkCxC,0BAA0B8B,MAAM,CAAC;IAC9EW,aAAa1C;IACb2C,MAAMhD,EAAEwB,KAAK,CAACoB;AAChB,GAAG"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const workflowRunStatusSchema: z.ZodEnum<{
|
|
3
|
+
cancelled: "cancelled";
|
|
4
|
+
pending: "pending";
|
|
5
|
+
running: "running";
|
|
6
|
+
succeeded: "succeeded";
|
|
7
|
+
failed: "failed";
|
|
8
|
+
}>;
|
|
9
|
+
export type WorkflowRunStatusDto = z.infer<typeof workflowRunStatusSchema>;
|
|
10
|
+
export declare const workflowRunRerunModeSchema: z.ZodEnum<{
|
|
11
|
+
failed: "failed";
|
|
12
|
+
all: "all";
|
|
13
|
+
}>;
|
|
14
|
+
export type WorkflowRunRerunModeDto = z.infer<typeof workflowRunRerunModeSchema>;
|
|
15
|
+
export declare const rerunWorkflowRunBodySchema: z.ZodObject<{
|
|
16
|
+
mode: z.ZodEnum<{
|
|
17
|
+
failed: "failed";
|
|
18
|
+
all: "all";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type RerunWorkflowRunBodyDto = z.infer<typeof rerunWorkflowRunBodySchema>;
|
|
22
|
+
export declare const workflowRunListQuerySchema: z.ZodObject<{
|
|
23
|
+
project_id: z.ZodString;
|
|
24
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
25
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
26
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
cancelled: "cancelled";
|
|
28
|
+
pending: "pending";
|
|
29
|
+
running: "running";
|
|
30
|
+
succeeded: "succeeded";
|
|
31
|
+
failed: "failed";
|
|
32
|
+
}>>;
|
|
33
|
+
definition_id: z.ZodOptional<z.ZodString>;
|
|
34
|
+
trigger_source: z.ZodOptional<z.ZodString>;
|
|
35
|
+
created_from: z.ZodOptional<z.ZodString>;
|
|
36
|
+
created_to: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type WorkflowRunListQueryDto = z.infer<typeof workflowRunListQuerySchema>;
|
|
39
|
+
export declare const workflowRunAggregatesQuerySchema: z.ZodObject<{
|
|
40
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
cancelled: "cancelled";
|
|
42
|
+
pending: "pending";
|
|
43
|
+
running: "running";
|
|
44
|
+
succeeded: "succeeded";
|
|
45
|
+
failed: "failed";
|
|
46
|
+
}>>;
|
|
47
|
+
project_id: z.ZodString;
|
|
48
|
+
definition_id: z.ZodOptional<z.ZodString>;
|
|
49
|
+
trigger_source: z.ZodOptional<z.ZodString>;
|
|
50
|
+
created_from: z.ZodOptional<z.ZodString>;
|
|
51
|
+
created_to: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type WorkflowRunAggregatesQueryDto = z.infer<typeof workflowRunAggregatesQuerySchema>;
|
|
54
|
+
export declare const workflowSourceSnapshotSchema: z.ZodObject<{
|
|
55
|
+
content: z.ZodString;
|
|
56
|
+
format: z.ZodLiteral<"yaml">;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type WorkflowSourceSnapshotDto = z.infer<typeof workflowSourceSnapshotSchema>;
|
|
59
|
+
export declare const workflowRunDtoSchema: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
project_id: z.ZodString;
|
|
62
|
+
definition_id: z.ZodString;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
status: z.ZodEnum<{
|
|
65
|
+
cancelled: "cancelled";
|
|
66
|
+
pending: "pending";
|
|
67
|
+
running: "running";
|
|
68
|
+
succeeded: "succeeded";
|
|
69
|
+
failed: "failed";
|
|
70
|
+
}>;
|
|
71
|
+
current_attempt: z.ZodNumber;
|
|
72
|
+
latest_attempt: z.ZodNumber;
|
|
73
|
+
trigger_provider: z.ZodNullable<z.ZodString>;
|
|
74
|
+
trigger_source: z.ZodString;
|
|
75
|
+
trigger_event: z.ZodString;
|
|
76
|
+
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
77
|
+
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
78
|
+
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
79
|
+
content: z.ZodString;
|
|
80
|
+
format: z.ZodLiteral<"yaml">;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
created_at: z.ZodString;
|
|
83
|
+
updated_at: z.ZodString;
|
|
84
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
85
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type WorkflowRunDto = z.infer<typeof workflowRunDtoSchema>;
|
|
88
|
+
export declare const workflowRunAttemptDtoSchema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
workflow_run_id: z.ZodString;
|
|
91
|
+
attempt: z.ZodNumber;
|
|
92
|
+
status: z.ZodEnum<{
|
|
93
|
+
cancelled: "cancelled";
|
|
94
|
+
pending: "pending";
|
|
95
|
+
running: "running";
|
|
96
|
+
succeeded: "succeeded";
|
|
97
|
+
failed: "failed";
|
|
98
|
+
}>;
|
|
99
|
+
created_at: z.ZodString;
|
|
100
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
101
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
102
|
+
rerun_mode: z.ZodNullable<z.ZodEnum<{
|
|
103
|
+
failed: "failed";
|
|
104
|
+
all: "all";
|
|
105
|
+
}>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type WorkflowRunAttemptDto = z.infer<typeof workflowRunAttemptDtoSchema>;
|
|
108
|
+
export declare const workflowRunResponseSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
project_id: z.ZodString;
|
|
111
|
+
definition_id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
status: z.ZodEnum<{
|
|
114
|
+
cancelled: "cancelled";
|
|
115
|
+
pending: "pending";
|
|
116
|
+
running: "running";
|
|
117
|
+
succeeded: "succeeded";
|
|
118
|
+
failed: "failed";
|
|
119
|
+
}>;
|
|
120
|
+
current_attempt: z.ZodNumber;
|
|
121
|
+
latest_attempt: z.ZodNumber;
|
|
122
|
+
trigger_provider: z.ZodNullable<z.ZodString>;
|
|
123
|
+
trigger_source: z.ZodString;
|
|
124
|
+
trigger_event: z.ZodString;
|
|
125
|
+
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
126
|
+
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
|
+
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
128
|
+
content: z.ZodString;
|
|
129
|
+
format: z.ZodLiteral<"yaml">;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
created_at: z.ZodString;
|
|
132
|
+
updated_at: z.ZodString;
|
|
133
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
134
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type WorkflowRunResponseDto = z.infer<typeof workflowRunResponseSchema>;
|
|
137
|
+
export declare const workflowRunAttemptsResponseSchema: z.ZodObject<{
|
|
138
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
workflow_run_id: z.ZodString;
|
|
141
|
+
attempt: z.ZodNumber;
|
|
142
|
+
status: z.ZodEnum<{
|
|
143
|
+
cancelled: "cancelled";
|
|
144
|
+
pending: "pending";
|
|
145
|
+
running: "running";
|
|
146
|
+
succeeded: "succeeded";
|
|
147
|
+
failed: "failed";
|
|
148
|
+
}>;
|
|
149
|
+
created_at: z.ZodString;
|
|
150
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
151
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
152
|
+
rerun_mode: z.ZodNullable<z.ZodEnum<{
|
|
153
|
+
failed: "failed";
|
|
154
|
+
all: "all";
|
|
155
|
+
}>>;
|
|
156
|
+
}, z.core.$strip>>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export type WorkflowRunAttemptsResponseDto = z.infer<typeof workflowRunAttemptsResponseSchema>;
|
|
159
|
+
export declare const workflowRunListResponseSchema: z.ZodObject<{
|
|
160
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
project_id: z.ZodString;
|
|
163
|
+
definition_id: z.ZodString;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
status: z.ZodEnum<{
|
|
166
|
+
cancelled: "cancelled";
|
|
167
|
+
pending: "pending";
|
|
168
|
+
running: "running";
|
|
169
|
+
succeeded: "succeeded";
|
|
170
|
+
failed: "failed";
|
|
171
|
+
}>;
|
|
172
|
+
current_attempt: z.ZodNumber;
|
|
173
|
+
latest_attempt: z.ZodNumber;
|
|
174
|
+
trigger_provider: z.ZodNullable<z.ZodString>;
|
|
175
|
+
trigger_source: z.ZodString;
|
|
176
|
+
trigger_event: z.ZodString;
|
|
177
|
+
trigger_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
178
|
+
inputs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
179
|
+
source_snapshot: z.ZodNullable<z.ZodObject<{
|
|
180
|
+
content: z.ZodString;
|
|
181
|
+
format: z.ZodLiteral<"yaml">;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
created_at: z.ZodString;
|
|
184
|
+
updated_at: z.ZodString;
|
|
185
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
186
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
next_cursor: z.ZodNullable<z.ZodString>;
|
|
189
|
+
filtered_total_count: z.ZodNullable<z.ZodNumber>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type WorkflowRunListResponseDto = z.infer<typeof workflowRunListResponseSchema>;
|
|
192
|
+
export declare const workflowRunAggregatesResponseSchema: z.ZodObject<{
|
|
193
|
+
status: z.ZodArray<z.ZodObject<{
|
|
194
|
+
value: z.ZodEnum<{
|
|
195
|
+
cancelled: "cancelled";
|
|
196
|
+
pending: "pending";
|
|
197
|
+
running: "running";
|
|
198
|
+
succeeded: "succeeded";
|
|
199
|
+
failed: "failed";
|
|
200
|
+
}>;
|
|
201
|
+
count: z.ZodNumber;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
trigger_source: z.ZodArray<z.ZodObject<{
|
|
204
|
+
value: z.ZodString;
|
|
205
|
+
count: z.ZodNumber;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
workflow: z.ZodArray<z.ZodObject<{
|
|
208
|
+
value: z.ZodString;
|
|
209
|
+
count: z.ZodNumber;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type WorkflowRunAggregatesResponseDto = z.infer<typeof workflowRunAggregatesResponseSchema>;
|
|
213
|
+
//# sourceMappingURL=workflow-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,0BAA0B;;;EAA4B,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,0BAA0B;;;;;iBAErC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAwCjF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAAyD,CAAC;AAEjG,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;iBAEX,CAAC;AAEnC,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE7F,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;iBAStC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;iBAE5C,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE/F,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAOvF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;iBAM9C,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const workflowRunStatusSchema = z.enum([
|
|
3
|
+
'pending',
|
|
4
|
+
'running',
|
|
5
|
+
'succeeded',
|
|
6
|
+
'failed',
|
|
7
|
+
'cancelled'
|
|
8
|
+
]);
|
|
9
|
+
export const workflowRunRerunModeSchema = z.enum([
|
|
10
|
+
'all',
|
|
11
|
+
'failed'
|
|
12
|
+
]);
|
|
13
|
+
export const rerunWorkflowRunBodySchema = z.object({
|
|
14
|
+
mode: workflowRunRerunModeSchema
|
|
15
|
+
});
|
|
16
|
+
const isoDateTimeSchema = z.string().datetime();
|
|
17
|
+
const runListQueryBaseSchema = z.object({
|
|
18
|
+
project_id: z.string().uuid(),
|
|
19
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
20
|
+
cursor: z.string().optional(),
|
|
21
|
+
status: workflowRunStatusSchema.optional(),
|
|
22
|
+
definition_id: z.string().uuid().optional(),
|
|
23
|
+
trigger_source: z.string().optional(),
|
|
24
|
+
created_from: isoDateTimeSchema.optional(),
|
|
25
|
+
created_to: isoDateTimeSchema.optional()
|
|
26
|
+
});
|
|
27
|
+
function validateDateWindow(value, ctx) {
|
|
28
|
+
if (!value.created_from || !value.created_to) return;
|
|
29
|
+
const from = new Date(value.created_from);
|
|
30
|
+
const to = new Date(value.created_to);
|
|
31
|
+
if (from > to) {
|
|
32
|
+
ctx.addIssue({
|
|
33
|
+
code: z.ZodIssueCode.custom,
|
|
34
|
+
message: 'created_from must be before or equal to created_to',
|
|
35
|
+
path: [
|
|
36
|
+
'created_from'
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const maxWindowMs = 365 * 24 * 60 * 60 * 1000;
|
|
42
|
+
if (to.getTime() - from.getTime() > maxWindowMs) {
|
|
43
|
+
ctx.addIssue({
|
|
44
|
+
code: z.ZodIssueCode.custom,
|
|
45
|
+
message: 'created date window must be 365 days or less',
|
|
46
|
+
path: [
|
|
47
|
+
'created_to'
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export const workflowRunListQuerySchema = runListQueryBaseSchema.superRefine(validateDateWindow);
|
|
53
|
+
export const workflowRunAggregatesQuerySchema = runListQueryBaseSchema.omit({
|
|
54
|
+
limit: true,
|
|
55
|
+
cursor: true
|
|
56
|
+
}).superRefine(validateDateWindow);
|
|
57
|
+
export const workflowSourceSnapshotSchema = z.object({
|
|
58
|
+
content: z.string(),
|
|
59
|
+
format: z.literal('yaml')
|
|
60
|
+
});
|
|
61
|
+
export const workflowRunDtoSchema = z.object({
|
|
62
|
+
id: z.string().uuid(),
|
|
63
|
+
project_id: z.string().uuid(),
|
|
64
|
+
definition_id: z.string().uuid(),
|
|
65
|
+
name: z.string(),
|
|
66
|
+
status: workflowRunStatusSchema,
|
|
67
|
+
current_attempt: z.number().int().positive(),
|
|
68
|
+
latest_attempt: z.number().int().positive(),
|
|
69
|
+
trigger_provider: z.string().nullable(),
|
|
70
|
+
trigger_source: z.string(),
|
|
71
|
+
trigger_event: z.string(),
|
|
72
|
+
trigger_payload: z.record(z.string(), z.unknown()),
|
|
73
|
+
inputs: z.record(z.string(), z.unknown()).nullable(),
|
|
74
|
+
source_snapshot: workflowSourceSnapshotSchema.nullable(),
|
|
75
|
+
created_at: z.string(),
|
|
76
|
+
updated_at: z.string(),
|
|
77
|
+
started_at: z.string().nullable(),
|
|
78
|
+
finished_at: z.string().nullable()
|
|
79
|
+
});
|
|
80
|
+
export const workflowRunAttemptDtoSchema = z.object({
|
|
81
|
+
id: z.string().uuid(),
|
|
82
|
+
workflow_run_id: z.string().uuid(),
|
|
83
|
+
attempt: z.number().int().positive(),
|
|
84
|
+
status: workflowRunStatusSchema,
|
|
85
|
+
created_at: z.string(),
|
|
86
|
+
started_at: z.string().nullable(),
|
|
87
|
+
finished_at: z.string().nullable(),
|
|
88
|
+
rerun_mode: workflowRunRerunModeSchema.nullable()
|
|
89
|
+
});
|
|
90
|
+
export const workflowRunResponseSchema = workflowRunDtoSchema;
|
|
91
|
+
export const workflowRunAttemptsResponseSchema = z.object({
|
|
92
|
+
attempts: z.array(workflowRunAttemptDtoSchema)
|
|
93
|
+
});
|
|
94
|
+
export const workflowRunListResponseSchema = z.object({
|
|
95
|
+
runs: z.array(workflowRunResponseSchema),
|
|
96
|
+
next_cursor: z.string().nullable(),
|
|
97
|
+
filtered_total_count: z.number().int().nonnegative().nullable()
|
|
98
|
+
});
|
|
99
|
+
const aggregateBucketSchema = z.object({
|
|
100
|
+
value: z.string(),
|
|
101
|
+
count: z.number().int().nonnegative()
|
|
102
|
+
});
|
|
103
|
+
export const workflowRunAggregatesResponseSchema = z.object({
|
|
104
|
+
status: z.array(z.object({
|
|
105
|
+
value: workflowRunStatusSchema,
|
|
106
|
+
count: z.number().int().nonnegative()
|
|
107
|
+
})),
|
|
108
|
+
trigger_source: z.array(aggregateBucketSchema),
|
|
109
|
+
workflow: z.array(aggregateBucketSchema)
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=workflow-run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/workflow-run.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const workflowRunStatusSchema = z.enum([\n 'pending',\n 'running',\n 'succeeded',\n 'failed',\n 'cancelled',\n]);\n\nexport type WorkflowRunStatusDto = z.infer<typeof workflowRunStatusSchema>;\n\nexport const workflowRunRerunModeSchema = z.enum(['all', 'failed']);\n\nexport type WorkflowRunRerunModeDto = z.infer<typeof workflowRunRerunModeSchema>;\n\nexport const rerunWorkflowRunBodySchema = z.object({\n mode: workflowRunRerunModeSchema,\n});\n\nexport type RerunWorkflowRunBodyDto = z.infer<typeof rerunWorkflowRunBodySchema>;\n\nconst isoDateTimeSchema = z.string().datetime();\nconst runListQueryBaseSchema = z.object({\n project_id: z.string().uuid(),\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n status: workflowRunStatusSchema.optional(),\n definition_id: z.string().uuid().optional(),\n trigger_source: z.string().optional(),\n created_from: isoDateTimeSchema.optional(),\n created_to: isoDateTimeSchema.optional(),\n});\n\nfunction validateDateWindow(\n value: {created_from?: string | undefined; created_to?: string | undefined},\n ctx: z.RefinementCtx,\n) {\n if (!value.created_from || !value.created_to) return;\n const from = new Date(value.created_from);\n const to = new Date(value.created_to);\n if (from > to) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'created_from must be before or equal to created_to',\n path: ['created_from'],\n });\n return;\n }\n\n const maxWindowMs = 365 * 24 * 60 * 60 * 1000;\n if (to.getTime() - from.getTime() > maxWindowMs) {\n ctx.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'created date window must be 365 days or less',\n path: ['created_to'],\n });\n }\n}\n\nexport const workflowRunListQuerySchema = runListQueryBaseSchema.superRefine(validateDateWindow);\n\nexport type WorkflowRunListQueryDto = z.infer<typeof workflowRunListQuerySchema>;\n\nexport const workflowRunAggregatesQuerySchema = runListQueryBaseSchema\n .omit({limit: true, cursor: true})\n .superRefine(validateDateWindow);\n\nexport type WorkflowRunAggregatesQueryDto = z.infer<typeof workflowRunAggregatesQuerySchema>;\n\nexport const workflowSourceSnapshotSchema = z.object({\n content: z.string(),\n format: z.literal('yaml'),\n});\n\nexport type WorkflowSourceSnapshotDto = z.infer<typeof workflowSourceSnapshotSchema>;\n\nexport const workflowRunDtoSchema = z.object({\n id: z.string().uuid(),\n project_id: z.string().uuid(),\n definition_id: z.string().uuid(),\n name: z.string(),\n status: workflowRunStatusSchema,\n current_attempt: z.number().int().positive(),\n latest_attempt: z.number().int().positive(),\n trigger_provider: z.string().nullable(),\n trigger_source: z.string(),\n trigger_event: z.string(),\n trigger_payload: z.record(z.string(), z.unknown()),\n inputs: z.record(z.string(), z.unknown()).nullable(),\n source_snapshot: workflowSourceSnapshotSchema.nullable(),\n created_at: z.string(),\n updated_at: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n});\n\nexport type WorkflowRunDto = z.infer<typeof workflowRunDtoSchema>;\n\nexport const workflowRunAttemptDtoSchema = z.object({\n id: z.string().uuid(),\n workflow_run_id: z.string().uuid(),\n attempt: z.number().int().positive(),\n status: workflowRunStatusSchema,\n created_at: z.string(),\n started_at: z.string().nullable(),\n finished_at: z.string().nullable(),\n rerun_mode: workflowRunRerunModeSchema.nullable(),\n});\n\nexport type WorkflowRunAttemptDto = z.infer<typeof workflowRunAttemptDtoSchema>;\n\nexport const workflowRunResponseSchema = workflowRunDtoSchema;\n\nexport type WorkflowRunResponseDto = z.infer<typeof workflowRunResponseSchema>;\n\nexport const workflowRunAttemptsResponseSchema = z.object({\n attempts: z.array(workflowRunAttemptDtoSchema),\n});\n\nexport type WorkflowRunAttemptsResponseDto = z.infer<typeof workflowRunAttemptsResponseSchema>;\n\nexport const workflowRunListResponseSchema = z.object({\n runs: z.array(workflowRunResponseSchema),\n next_cursor: z.string().nullable(),\n filtered_total_count: z.number().int().nonnegative().nullable(),\n});\n\nexport type WorkflowRunListResponseDto = z.infer<typeof workflowRunListResponseSchema>;\n\nconst aggregateBucketSchema = z.object({\n value: z.string(),\n count: z.number().int().nonnegative(),\n});\n\nexport const workflowRunAggregatesResponseSchema = z.object({\n status: z.array(\n z.object({value: workflowRunStatusSchema, count: z.number().int().nonnegative()}),\n ),\n trigger_source: z.array(aggregateBucketSchema),\n workflow: z.array(aggregateBucketSchema),\n});\n\nexport type WorkflowRunAggregatesResponseDto = z.infer<typeof workflowRunAggregatesResponseSchema>;\n"],"names":["z","workflowRunStatusSchema","enum","workflowRunRerunModeSchema","rerunWorkflowRunBodySchema","object","mode","isoDateTimeSchema","string","datetime","runListQueryBaseSchema","project_id","uuid","limit","coerce","number","int","min","max","default","cursor","optional","status","definition_id","trigger_source","created_from","created_to","validateDateWindow","value","ctx","from","Date","to","addIssue","code","ZodIssueCode","custom","message","path","maxWindowMs","getTime","workflowRunListQuerySchema","superRefine","workflowRunAggregatesQuerySchema","omit","workflowSourceSnapshotSchema","content","format","literal","workflowRunDtoSchema","id","name","current_attempt","positive","latest_attempt","trigger_provider","nullable","trigger_event","trigger_payload","record","unknown","inputs","source_snapshot","created_at","updated_at","started_at","finished_at","workflowRunAttemptDtoSchema","workflow_run_id","attempt","rerun_mode","workflowRunResponseSchema","workflowRunAttemptsResponseSchema","attempts","array","workflowRunListResponseSchema","runs","next_cursor","filtered_total_count","nonnegative","aggregateBucketSchema","count","workflowRunAggregatesResponseSchema","workflow"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,0BAA0BD,EAAEE,IAAI,CAAC;IAC5C;IACA;IACA;IACA;IACA;CACD,EAAE;AAIH,OAAO,MAAMC,6BAA6BH,EAAEE,IAAI,CAAC;IAAC;IAAO;CAAS,EAAE;AAIpE,OAAO,MAAME,6BAA6BJ,EAAEK,MAAM,CAAC;IACjDC,MAAMH;AACR,GAAG;AAIH,MAAMI,oBAAoBP,EAAEQ,MAAM,GAAGC,QAAQ;AAC7C,MAAMC,yBAAyBV,EAAEK,MAAM,CAAC;IACtCM,YAAYX,EAAEQ,MAAM,GAAGI,IAAI;IAC3BC,OAAOb,EAAEc,MAAM,CAACC,MAAM,GAAGC,GAAG,GAAGC,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKC,OAAO,CAAC;IACvDC,QAAQpB,EAAEQ,MAAM,GAAGa,QAAQ;IAC3BC,QAAQrB,wBAAwBoB,QAAQ;IACxCE,eAAevB,EAAEQ,MAAM,GAAGI,IAAI,GAAGS,QAAQ;IACzCG,gBAAgBxB,EAAEQ,MAAM,GAAGa,QAAQ;IACnCI,cAAclB,kBAAkBc,QAAQ;IACxCK,YAAYnB,kBAAkBc,QAAQ;AACxC;AAEA,SAASM,mBACPC,KAA2E,EAC3EC,GAAoB;IAEpB,IAAI,CAACD,MAAMH,YAAY,IAAI,CAACG,MAAMF,UAAU,EAAE;IAC9C,MAAMI,OAAO,IAAIC,KAAKH,MAAMH,YAAY;IACxC,MAAMO,KAAK,IAAID,KAAKH,MAAMF,UAAU;IACpC,IAAII,OAAOE,IAAI;QACbH,IAAII,QAAQ,CAAC;YACXC,MAAMlC,EAAEmC,YAAY,CAACC,MAAM;YAC3BC,SAAS;YACTC,MAAM;gBAAC;aAAe;QACxB;QACA;IACF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