@cascade-flow/backend-interface 0.2.4 → 0.2.6
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 +36 -3
- package/dist/events.d.ts.map +1 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +4 -4
- package/dist/interface.d.ts +12 -1
- package/dist/interface.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export declare const stepFailedEventSchema: z.ZodObject<{
|
|
|
81
81
|
"worker-crash": "worker-crash";
|
|
82
82
|
"execution-error": "execution-error";
|
|
83
83
|
}>;
|
|
84
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
84
86
|
}, z.core.$strip>;
|
|
85
87
|
export declare const logEntryEventSchema: z.ZodObject<{
|
|
86
88
|
eventId: z.ZodString;
|
|
@@ -112,7 +114,9 @@ export declare const stepRetryingEventSchema: z.ZodObject<{
|
|
|
112
114
|
stack: z.ZodOptional<z.ZodString>;
|
|
113
115
|
name: z.ZodOptional<z.ZodString>;
|
|
114
116
|
}, z.core.$strip>;
|
|
115
|
-
maxRetries: z.ZodNumber
|
|
117
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
totalPolicies: z.ZodOptional<z.ZodNumber>;
|
|
119
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
116
120
|
}, z.core.$strip>;
|
|
117
121
|
export declare const stepScheduledEventSchema: z.ZodObject<{
|
|
118
122
|
eventId: z.ZodString;
|
|
@@ -130,6 +134,8 @@ export declare const stepScheduledEventSchema: z.ZodObject<{
|
|
|
130
134
|
}>;
|
|
131
135
|
attemptNumber: z.ZodNumber;
|
|
132
136
|
retryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
133
139
|
}, z.core.$strip>;
|
|
134
140
|
export declare const stepHeartbeatEventSchema: z.ZodObject<{
|
|
135
141
|
eventId: z.ZodString;
|
|
@@ -187,6 +193,11 @@ export declare const stepCheckpointEventSchema: z.ZodObject<{
|
|
|
187
193
|
sequenceNumber: z.ZodNumber;
|
|
188
194
|
attemptNumber: z.ZodNumber;
|
|
189
195
|
data: z.ZodString;
|
|
196
|
+
label: z.ZodOptional<z.ZodString>;
|
|
197
|
+
parentCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
name: z.ZodString;
|
|
199
|
+
sequenceNumber: z.ZodNumber;
|
|
200
|
+
}, z.core.$strip>>;
|
|
190
201
|
}, z.core.$strip>;
|
|
191
202
|
export declare const stepCheckpointFailedEventSchema: z.ZodObject<{
|
|
192
203
|
eventId: z.ZodString;
|
|
@@ -259,6 +270,8 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
259
270
|
"worker-crash": "worker-crash";
|
|
260
271
|
"execution-error": "execution-error";
|
|
261
272
|
}>;
|
|
273
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
262
275
|
}, z.core.$strip>, z.ZodObject<{
|
|
263
276
|
eventId: z.ZodString;
|
|
264
277
|
timestampUs: z.ZodNumber;
|
|
@@ -288,7 +301,9 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
288
301
|
stack: z.ZodOptional<z.ZodString>;
|
|
289
302
|
name: z.ZodOptional<z.ZodString>;
|
|
290
303
|
}, z.core.$strip>;
|
|
291
|
-
maxRetries: z.ZodNumber
|
|
304
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
totalPolicies: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
292
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
293
308
|
eventId: z.ZodString;
|
|
294
309
|
timestampUs: z.ZodNumber;
|
|
@@ -305,6 +320,8 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
305
320
|
}>;
|
|
306
321
|
attemptNumber: z.ZodNumber;
|
|
307
322
|
retryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
308
325
|
}, z.core.$strip>, z.ZodObject<{
|
|
309
326
|
eventId: z.ZodString;
|
|
310
327
|
workflowSlug: z.ZodString;
|
|
@@ -358,6 +375,11 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
358
375
|
sequenceNumber: z.ZodNumber;
|
|
359
376
|
attemptNumber: z.ZodNumber;
|
|
360
377
|
data: z.ZodString;
|
|
378
|
+
label: z.ZodOptional<z.ZodString>;
|
|
379
|
+
parentCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
380
|
+
name: z.ZodString;
|
|
381
|
+
sequenceNumber: z.ZodNumber;
|
|
382
|
+
}, z.core.$strip>>;
|
|
361
383
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
384
|
eventId: z.ZodString;
|
|
363
385
|
timestampUs: z.ZodNumber;
|
|
@@ -687,6 +709,8 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
687
709
|
"worker-crash": "worker-crash";
|
|
688
710
|
"execution-error": "execution-error";
|
|
689
711
|
}>;
|
|
712
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
690
714
|
}, z.core.$strip>, z.ZodObject<{
|
|
691
715
|
eventId: z.ZodString;
|
|
692
716
|
timestampUs: z.ZodNumber;
|
|
@@ -716,7 +740,9 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
716
740
|
stack: z.ZodOptional<z.ZodString>;
|
|
717
741
|
name: z.ZodOptional<z.ZodString>;
|
|
718
742
|
}, z.core.$strip>;
|
|
719
|
-
maxRetries: z.ZodNumber
|
|
743
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
totalPolicies: z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
720
746
|
}, z.core.$strip>, z.ZodObject<{
|
|
721
747
|
eventId: z.ZodString;
|
|
722
748
|
timestampUs: z.ZodNumber;
|
|
@@ -733,6 +759,8 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
733
759
|
}>;
|
|
734
760
|
attemptNumber: z.ZodNumber;
|
|
735
761
|
retryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
763
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
736
764
|
}, z.core.$strip>, z.ZodObject<{
|
|
737
765
|
eventId: z.ZodString;
|
|
738
766
|
workflowSlug: z.ZodString;
|
|
@@ -786,6 +814,11 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
786
814
|
sequenceNumber: z.ZodNumber;
|
|
787
815
|
attemptNumber: z.ZodNumber;
|
|
788
816
|
data: z.ZodString;
|
|
817
|
+
label: z.ZodOptional<z.ZodString>;
|
|
818
|
+
parentCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
819
|
+
name: z.ZodString;
|
|
820
|
+
sequenceNumber: z.ZodNumber;
|
|
821
|
+
}, z.core.$strip>>;
|
|
789
822
|
}, z.core.$strip>, z.ZodObject<{
|
|
790
823
|
eventId: z.ZodString;
|
|
791
824
|
timestampUs: z.ZodNumber;
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBhC,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;iBAK9B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAUlC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;iBASnC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAKnC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;iBAQnC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;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+BAA+B,CAAC,CAAC;AAGxF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,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
|
@@ -12638,7 +12638,9 @@ var stepFailedEventSchema = baseStepEventSchema.extend({
|
|
|
12638
12638
|
"timeout",
|
|
12639
12639
|
"cancelled",
|
|
12640
12640
|
"execution-error"
|
|
12641
|
-
])
|
|
12641
|
+
]),
|
|
12642
|
+
policyIndex: exports_external.number().int().nonnegative().optional(),
|
|
12643
|
+
attemptInPolicy: exports_external.number().int().positive().optional()
|
|
12642
12644
|
});
|
|
12643
12645
|
var logEntryEventSchema = baseStepEventSchema.extend({
|
|
12644
12646
|
type: exports_external.literal("LogEntry"),
|
|
@@ -12651,14 +12653,18 @@ var stepRetryingEventSchema = baseStepEventSchema.extend({
|
|
|
12651
12653
|
attemptNumber: exports_external.number().int().positive(),
|
|
12652
12654
|
nextAttempt: exports_external.number().int().positive(),
|
|
12653
12655
|
error: StepErrorSchema,
|
|
12654
|
-
maxRetries: exports_external.number().int().nonnegative()
|
|
12656
|
+
maxRetries: exports_external.number().int().nonnegative().optional(),
|
|
12657
|
+
totalPolicies: exports_external.number().int().positive().optional(),
|
|
12658
|
+
policyIndex: exports_external.number().int().nonnegative().optional()
|
|
12655
12659
|
});
|
|
12656
12660
|
var stepScheduledEventSchema = baseStepEventSchema.extend({
|
|
12657
12661
|
type: exports_external.literal("StepScheduled"),
|
|
12658
12662
|
availableAtUs: exports_external.number(),
|
|
12659
12663
|
reason: exports_external.enum(["initial", "retry", "dependency-satisfied"]),
|
|
12660
12664
|
attemptNumber: exports_external.number().int().positive(),
|
|
12661
|
-
retryDelayMs: exports_external.number().int().nonnegative().optional()
|
|
12665
|
+
retryDelayMs: exports_external.number().int().nonnegative().optional(),
|
|
12666
|
+
policyIndex: exports_external.number().int().nonnegative().optional(),
|
|
12667
|
+
attemptInPolicy: exports_external.number().int().positive().optional()
|
|
12662
12668
|
});
|
|
12663
12669
|
var stepHeartbeatEventSchema = baseStepEventSchema.extend({
|
|
12664
12670
|
type: exports_external.literal("StepHeartbeat"),
|
|
@@ -12689,7 +12695,12 @@ var stepCheckpointEventSchema = baseStepEventSchema.extend({
|
|
|
12689
12695
|
name: exports_external.string(),
|
|
12690
12696
|
sequenceNumber: exports_external.number().int().nonnegative(),
|
|
12691
12697
|
attemptNumber: exports_external.number().int().positive(),
|
|
12692
|
-
data: exports_external.string()
|
|
12698
|
+
data: exports_external.string(),
|
|
12699
|
+
label: exports_external.string().optional(),
|
|
12700
|
+
parentCheckpoint: exports_external.object({
|
|
12701
|
+
name: exports_external.string(),
|
|
12702
|
+
sequenceNumber: exports_external.number().int().nonnegative()
|
|
12703
|
+
}).optional()
|
|
12693
12704
|
});
|
|
12694
12705
|
var stepCheckpointFailedEventSchema = baseStepEventSchema.extend({
|
|
12695
12706
|
type: exports_external.literal("StepCheckpointFailed"),
|
|
@@ -13893,4 +13904,4 @@ export {
|
|
|
13893
13904
|
Backend
|
|
13894
13905
|
};
|
|
13895
13906
|
|
|
13896
|
-
//# debugId=
|
|
13907
|
+
//# debugId=206E79B78B29710464756E2164756E21
|