@cascade-flow/backend-interface 0.2.3 → 0.2.4
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 +88 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +4 -4
- package/dist/interface.d.ts +56 -0
- package/dist/interface.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -175,6 +175,36 @@ 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
|
+
}, z.core.$strip>;
|
|
191
|
+
export declare const stepCheckpointFailedEventSchema: z.ZodObject<{
|
|
192
|
+
eventId: z.ZodString;
|
|
193
|
+
timestampUs: z.ZodNumber;
|
|
194
|
+
workflowSlug: z.ZodString;
|
|
195
|
+
runId: z.ZodString;
|
|
196
|
+
category: z.ZodLiteral<"step">;
|
|
197
|
+
stepId: z.ZodString;
|
|
198
|
+
type: z.ZodLiteral<"StepCheckpointFailed">;
|
|
199
|
+
name: z.ZodString;
|
|
200
|
+
sequenceNumber: z.ZodNumber;
|
|
201
|
+
attemptNumber: z.ZodNumber;
|
|
202
|
+
error: z.ZodObject<{
|
|
203
|
+
message: z.ZodString;
|
|
204
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
205
|
+
name: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
}, z.core.$strip>;
|
|
178
208
|
export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
209
|
eventId: z.ZodString;
|
|
180
210
|
timestampUs: z.ZodNumber;
|
|
@@ -316,6 +346,34 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
316
346
|
durationUs: z.ZodNumber;
|
|
317
347
|
attemptNumber: z.ZodNumber;
|
|
318
348
|
cascadedFrom: z.ZodOptional<z.ZodString>;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
eventId: z.ZodString;
|
|
351
|
+
timestampUs: z.ZodNumber;
|
|
352
|
+
workflowSlug: z.ZodString;
|
|
353
|
+
runId: z.ZodString;
|
|
354
|
+
category: z.ZodLiteral<"step">;
|
|
355
|
+
stepId: z.ZodString;
|
|
356
|
+
type: z.ZodLiteral<"StepCheckpoint">;
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
sequenceNumber: z.ZodNumber;
|
|
359
|
+
attemptNumber: z.ZodNumber;
|
|
360
|
+
data: z.ZodString;
|
|
361
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
362
|
+
eventId: z.ZodString;
|
|
363
|
+
timestampUs: z.ZodNumber;
|
|
364
|
+
workflowSlug: z.ZodString;
|
|
365
|
+
runId: z.ZodString;
|
|
366
|
+
category: z.ZodLiteral<"step">;
|
|
367
|
+
stepId: z.ZodString;
|
|
368
|
+
type: z.ZodLiteral<"StepCheckpointFailed">;
|
|
369
|
+
name: z.ZodString;
|
|
370
|
+
sequenceNumber: z.ZodNumber;
|
|
371
|
+
attemptNumber: z.ZodNumber;
|
|
372
|
+
error: z.ZodObject<{
|
|
373
|
+
message: z.ZodString;
|
|
374
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
375
|
+
name: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$strip>;
|
|
319
377
|
}, z.core.$strip>], "type">;
|
|
320
378
|
export declare const workflowStartedEventSchema: z.ZodObject<{
|
|
321
379
|
eventId: z.ZodString;
|
|
@@ -716,6 +774,34 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
716
774
|
durationUs: z.ZodNumber;
|
|
717
775
|
attemptNumber: z.ZodNumber;
|
|
718
776
|
cascadedFrom: z.ZodOptional<z.ZodString>;
|
|
777
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
778
|
+
eventId: z.ZodString;
|
|
779
|
+
timestampUs: z.ZodNumber;
|
|
780
|
+
workflowSlug: z.ZodString;
|
|
781
|
+
runId: z.ZodString;
|
|
782
|
+
category: z.ZodLiteral<"step">;
|
|
783
|
+
stepId: z.ZodString;
|
|
784
|
+
type: z.ZodLiteral<"StepCheckpoint">;
|
|
785
|
+
name: z.ZodString;
|
|
786
|
+
sequenceNumber: z.ZodNumber;
|
|
787
|
+
attemptNumber: z.ZodNumber;
|
|
788
|
+
data: z.ZodString;
|
|
789
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
790
|
+
eventId: z.ZodString;
|
|
791
|
+
timestampUs: z.ZodNumber;
|
|
792
|
+
workflowSlug: z.ZodString;
|
|
793
|
+
runId: z.ZodString;
|
|
794
|
+
category: z.ZodLiteral<"step">;
|
|
795
|
+
stepId: z.ZodString;
|
|
796
|
+
type: z.ZodLiteral<"StepCheckpointFailed">;
|
|
797
|
+
name: z.ZodString;
|
|
798
|
+
sequenceNumber: z.ZodNumber;
|
|
799
|
+
attemptNumber: z.ZodNumber;
|
|
800
|
+
error: z.ZodObject<{
|
|
801
|
+
message: z.ZodString;
|
|
802
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
803
|
+
name: z.ZodOptional<z.ZodString>;
|
|
804
|
+
}, z.core.$strip>;
|
|
719
805
|
}, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
720
806
|
eventId: z.ZodString;
|
|
721
807
|
timestampUs: z.ZodNumber;
|
|
@@ -851,6 +937,8 @@ export type StepScheduledEvent = z.infer<typeof stepScheduledEventSchema>;
|
|
|
851
937
|
export type StepHeartbeatEvent = z.infer<typeof stepHeartbeatEventSchema>;
|
|
852
938
|
export type StepReclaimedEvent = z.infer<typeof stepReclaimedEventSchema>;
|
|
853
939
|
export type StepSkippedEvent = z.infer<typeof stepSkippedEventSchema>;
|
|
940
|
+
export type StepCheckpointEvent = z.infer<typeof stepCheckpointEventSchema>;
|
|
941
|
+
export type StepCheckpointFailedEvent = z.infer<typeof stepCheckpointFailedEventSchema>;
|
|
854
942
|
export type WorkflowEvent = z.infer<typeof workflowEventSchema>;
|
|
855
943
|
export type RunSubmittedEvent = z.infer<typeof runSubmittedEventSchema>;
|
|
856
944
|
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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,aAAa,aAA4B,CAAC;AAGvD,eAAO,MAAM,eAAe;;;;;;;;;iBAM1B,CAAC;AAMH,eAAO,MAAM,mBAAmB;;;;;;;iBAG9B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;iBAElC,CAAC;AAOH,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBAKjC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAMnC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBhC,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;iBAK9B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;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xE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAG1F,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12684,6 +12684,20 @@ 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
|
+
});
|
|
12694
|
+
var stepCheckpointFailedEventSchema = baseStepEventSchema.extend({
|
|
12695
|
+
type: exports_external.literal("StepCheckpointFailed"),
|
|
12696
|
+
name: exports_external.string(),
|
|
12697
|
+
sequenceNumber: exports_external.number().int().nonnegative(),
|
|
12698
|
+
attemptNumber: exports_external.number().int().positive(),
|
|
12699
|
+
error: StepErrorSchema
|
|
12700
|
+
});
|
|
12687
12701
|
var stepEventSchema = exports_external.discriminatedUnion("type", [
|
|
12688
12702
|
stepStartedEventSchema,
|
|
12689
12703
|
stepCompletedEventSchema,
|
|
@@ -12693,7 +12707,9 @@ var stepEventSchema = exports_external.discriminatedUnion("type", [
|
|
|
12693
12707
|
stepScheduledEventSchema,
|
|
12694
12708
|
stepHeartbeatEventSchema,
|
|
12695
12709
|
stepReclaimedEventSchema,
|
|
12696
|
-
stepSkippedEventSchema
|
|
12710
|
+
stepSkippedEventSchema,
|
|
12711
|
+
stepCheckpointEventSchema,
|
|
12712
|
+
stepCheckpointFailedEventSchema
|
|
12697
12713
|
]);
|
|
12698
12714
|
var workflowStartedEventSchema = baseWorkflowEventSchema.extend({
|
|
12699
12715
|
type: exports_external.literal("WorkflowStarted"),
|
|
@@ -13813,6 +13829,8 @@ export {
|
|
|
13813
13829
|
stepEventSchema,
|
|
13814
13830
|
stepDurationSchema,
|
|
13815
13831
|
stepCompletedEventSchema,
|
|
13832
|
+
stepCheckpointFailedEventSchema,
|
|
13833
|
+
stepCheckpointEventSchema,
|
|
13816
13834
|
serializeError,
|
|
13817
13835
|
schedulingLatencySchema,
|
|
13818
13836
|
safeSerialize,
|
|
@@ -13875,4 +13893,4 @@ export {
|
|
|
13875
13893
|
Backend
|
|
13876
13894
|
};
|
|
13877
13895
|
|
|
13878
|
-
//# debugId=
|
|
13896
|
+
//# debugId=55E8C867E138DC0E64756E2164756E21
|