@cascade-flow/backend-interface 0.2.3 → 0.2.5
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/dist/events.d.ts +103 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/index.js +25 -2
- package/dist/index.js.map +4 -4
- package/dist/interface.d.ts +61 -0
- package/dist/interface.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -175,6 +175,41 @@ export declare const stepSkippedEventSchema: z.ZodObject<{
|
|
|
175
175
|
attemptNumber: z.ZodNumber;
|
|
176
176
|
cascadedFrom: z.ZodOptional<z.ZodString>;
|
|
177
177
|
}, z.core.$strip>;
|
|
178
|
+
export declare const stepCheckpointEventSchema: z.ZodObject<{
|
|
179
|
+
eventId: z.ZodString;
|
|
180
|
+
timestampUs: z.ZodNumber;
|
|
181
|
+
workflowSlug: z.ZodString;
|
|
182
|
+
runId: z.ZodString;
|
|
183
|
+
category: z.ZodLiteral<"step">;
|
|
184
|
+
stepId: z.ZodString;
|
|
185
|
+
type: z.ZodLiteral<"StepCheckpoint">;
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
sequenceNumber: z.ZodNumber;
|
|
188
|
+
attemptNumber: z.ZodNumber;
|
|
189
|
+
data: z.ZodString;
|
|
190
|
+
label: z.ZodOptional<z.ZodString>;
|
|
191
|
+
parentCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
sequenceNumber: z.ZodNumber;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export declare const stepCheckpointFailedEventSchema: z.ZodObject<{
|
|
197
|
+
eventId: z.ZodString;
|
|
198
|
+
timestampUs: z.ZodNumber;
|
|
199
|
+
workflowSlug: z.ZodString;
|
|
200
|
+
runId: z.ZodString;
|
|
201
|
+
category: z.ZodLiteral<"step">;
|
|
202
|
+
stepId: z.ZodString;
|
|
203
|
+
type: z.ZodLiteral<"StepCheckpointFailed">;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
sequenceNumber: z.ZodNumber;
|
|
206
|
+
attemptNumber: z.ZodNumber;
|
|
207
|
+
error: z.ZodObject<{
|
|
208
|
+
message: z.ZodString;
|
|
209
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
210
|
+
name: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>;
|
|
178
213
|
export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
214
|
eventId: z.ZodString;
|
|
180
215
|
timestampUs: z.ZodNumber;
|
|
@@ -316,6 +351,39 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
316
351
|
durationUs: z.ZodNumber;
|
|
317
352
|
attemptNumber: z.ZodNumber;
|
|
318
353
|
cascadedFrom: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
eventId: z.ZodString;
|
|
356
|
+
timestampUs: z.ZodNumber;
|
|
357
|
+
workflowSlug: z.ZodString;
|
|
358
|
+
runId: z.ZodString;
|
|
359
|
+
category: z.ZodLiteral<"step">;
|
|
360
|
+
stepId: z.ZodString;
|
|
361
|
+
type: z.ZodLiteral<"StepCheckpoint">;
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
sequenceNumber: z.ZodNumber;
|
|
364
|
+
attemptNumber: z.ZodNumber;
|
|
365
|
+
data: z.ZodString;
|
|
366
|
+
label: z.ZodOptional<z.ZodString>;
|
|
367
|
+
parentCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
sequenceNumber: z.ZodNumber;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
372
|
+
eventId: z.ZodString;
|
|
373
|
+
timestampUs: z.ZodNumber;
|
|
374
|
+
workflowSlug: z.ZodString;
|
|
375
|
+
runId: z.ZodString;
|
|
376
|
+
category: z.ZodLiteral<"step">;
|
|
377
|
+
stepId: z.ZodString;
|
|
378
|
+
type: z.ZodLiteral<"StepCheckpointFailed">;
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
sequenceNumber: z.ZodNumber;
|
|
381
|
+
attemptNumber: z.ZodNumber;
|
|
382
|
+
error: z.ZodObject<{
|
|
383
|
+
message: z.ZodString;
|
|
384
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
385
|
+
name: z.ZodOptional<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>;
|
|
319
387
|
}, z.core.$strip>], "type">;
|
|
320
388
|
export declare const workflowStartedEventSchema: z.ZodObject<{
|
|
321
389
|
eventId: z.ZodString;
|
|
@@ -716,6 +784,39 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
716
784
|
durationUs: z.ZodNumber;
|
|
717
785
|
attemptNumber: z.ZodNumber;
|
|
718
786
|
cascadedFrom: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
788
|
+
eventId: z.ZodString;
|
|
789
|
+
timestampUs: z.ZodNumber;
|
|
790
|
+
workflowSlug: z.ZodString;
|
|
791
|
+
runId: z.ZodString;
|
|
792
|
+
category: z.ZodLiteral<"step">;
|
|
793
|
+
stepId: z.ZodString;
|
|
794
|
+
type: z.ZodLiteral<"StepCheckpoint">;
|
|
795
|
+
name: z.ZodString;
|
|
796
|
+
sequenceNumber: z.ZodNumber;
|
|
797
|
+
attemptNumber: z.ZodNumber;
|
|
798
|
+
data: z.ZodString;
|
|
799
|
+
label: z.ZodOptional<z.ZodString>;
|
|
800
|
+
parentCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
801
|
+
name: z.ZodString;
|
|
802
|
+
sequenceNumber: z.ZodNumber;
|
|
803
|
+
}, z.core.$strip>>;
|
|
804
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
805
|
+
eventId: z.ZodString;
|
|
806
|
+
timestampUs: z.ZodNumber;
|
|
807
|
+
workflowSlug: z.ZodString;
|
|
808
|
+
runId: z.ZodString;
|
|
809
|
+
category: z.ZodLiteral<"step">;
|
|
810
|
+
stepId: z.ZodString;
|
|
811
|
+
type: z.ZodLiteral<"StepCheckpointFailed">;
|
|
812
|
+
name: z.ZodString;
|
|
813
|
+
sequenceNumber: z.ZodNumber;
|
|
814
|
+
attemptNumber: z.ZodNumber;
|
|
815
|
+
error: z.ZodObject<{
|
|
816
|
+
message: z.ZodString;
|
|
817
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
818
|
+
name: z.ZodOptional<z.ZodString>;
|
|
819
|
+
}, z.core.$strip>;
|
|
719
820
|
}, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
720
821
|
eventId: z.ZodString;
|
|
721
822
|
timestampUs: z.ZodNumber;
|
|
@@ -851,6 +952,8 @@ export type StepScheduledEvent = z.infer<typeof stepScheduledEventSchema>;
|
|
|
851
952
|
export type StepHeartbeatEvent = z.infer<typeof stepHeartbeatEventSchema>;
|
|
852
953
|
export type StepReclaimedEvent = z.infer<typeof stepReclaimedEventSchema>;
|
|
853
954
|
export type StepSkippedEvent = z.infer<typeof stepSkippedEventSchema>;
|
|
955
|
+
export type StepCheckpointEvent = z.infer<typeof stepCheckpointEventSchema>;
|
|
956
|
+
export type StepCheckpointFailedEvent = z.infer<typeof stepCheckpointFailedEventSchema>;
|
|
854
957
|
export type WorkflowEvent = z.infer<typeof workflowEventSchema>;
|
|
855
958
|
export type RunSubmittedEvent = z.infer<typeof runSubmittedEventSchema>;
|
|
856
959
|
export type WorkflowStartedEvent = z.infer<typeof workflowStartedEventSchema>;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,E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K,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12684,6 +12684,25 @@ var stepSkippedEventSchema = baseStepEventSchema.extend({
|
|
|
12684
12684
|
attemptNumber: exports_external.number().int().positive(),
|
|
12685
12685
|
cascadedFrom: exports_external.string().optional()
|
|
12686
12686
|
});
|
|
12687
|
+
var stepCheckpointEventSchema = baseStepEventSchema.extend({
|
|
12688
|
+
type: exports_external.literal("StepCheckpoint"),
|
|
12689
|
+
name: exports_external.string(),
|
|
12690
|
+
sequenceNumber: exports_external.number().int().nonnegative(),
|
|
12691
|
+
attemptNumber: exports_external.number().int().positive(),
|
|
12692
|
+
data: exports_external.string(),
|
|
12693
|
+
label: exports_external.string().optional(),
|
|
12694
|
+
parentCheckpoint: exports_external.object({
|
|
12695
|
+
name: exports_external.string(),
|
|
12696
|
+
sequenceNumber: exports_external.number().int().nonnegative()
|
|
12697
|
+
}).optional()
|
|
12698
|
+
});
|
|
12699
|
+
var stepCheckpointFailedEventSchema = baseStepEventSchema.extend({
|
|
12700
|
+
type: exports_external.literal("StepCheckpointFailed"),
|
|
12701
|
+
name: exports_external.string(),
|
|
12702
|
+
sequenceNumber: exports_external.number().int().nonnegative(),
|
|
12703
|
+
attemptNumber: exports_external.number().int().positive(),
|
|
12704
|
+
error: StepErrorSchema
|
|
12705
|
+
});
|
|
12687
12706
|
var stepEventSchema = exports_external.discriminatedUnion("type", [
|
|
12688
12707
|
stepStartedEventSchema,
|
|
12689
12708
|
stepCompletedEventSchema,
|
|
@@ -12693,7 +12712,9 @@ var stepEventSchema = exports_external.discriminatedUnion("type", [
|
|
|
12693
12712
|
stepScheduledEventSchema,
|
|
12694
12713
|
stepHeartbeatEventSchema,
|
|
12695
12714
|
stepReclaimedEventSchema,
|
|
12696
|
-
stepSkippedEventSchema
|
|
12715
|
+
stepSkippedEventSchema,
|
|
12716
|
+
stepCheckpointEventSchema,
|
|
12717
|
+
stepCheckpointFailedEventSchema
|
|
12697
12718
|
]);
|
|
12698
12719
|
var workflowStartedEventSchema = baseWorkflowEventSchema.extend({
|
|
12699
12720
|
type: exports_external.literal("WorkflowStarted"),
|
|
@@ -13813,6 +13834,8 @@ export {
|
|
|
13813
13834
|
stepEventSchema,
|
|
13814
13835
|
stepDurationSchema,
|
|
13815
13836
|
stepCompletedEventSchema,
|
|
13837
|
+
stepCheckpointFailedEventSchema,
|
|
13838
|
+
stepCheckpointEventSchema,
|
|
13816
13839
|
serializeError,
|
|
13817
13840
|
schedulingLatencySchema,
|
|
13818
13841
|
safeSerialize,
|
|
@@ -13875,4 +13898,4 @@ export {
|
|
|
13875
13898
|
Backend
|
|
13876
13899
|
};
|
|
13877
13900
|
|
|
13878
|
-
//# debugId=
|
|
13901
|
+
//# debugId=F62B6AB36B38A55664756E2164756E21
|