@cascade-flow/backend-interface 0.2.5 → 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 +21 -3
- package/dist/events.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +4 -4
- package/dist/interface.d.ts +7 -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;
|
|
@@ -264,6 +270,8 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
264
270
|
"worker-crash": "worker-crash";
|
|
265
271
|
"execution-error": "execution-error";
|
|
266
272
|
}>;
|
|
273
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
267
275
|
}, z.core.$strip>, z.ZodObject<{
|
|
268
276
|
eventId: z.ZodString;
|
|
269
277
|
timestampUs: z.ZodNumber;
|
|
@@ -293,7 +301,9 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
293
301
|
stack: z.ZodOptional<z.ZodString>;
|
|
294
302
|
name: z.ZodOptional<z.ZodString>;
|
|
295
303
|
}, z.core.$strip>;
|
|
296
|
-
maxRetries: z.ZodNumber
|
|
304
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
totalPolicies: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
297
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
308
|
eventId: z.ZodString;
|
|
299
309
|
timestampUs: z.ZodNumber;
|
|
@@ -310,6 +320,8 @@ export declare const stepEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
310
320
|
}>;
|
|
311
321
|
attemptNumber: z.ZodNumber;
|
|
312
322
|
retryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
313
325
|
}, z.core.$strip>, z.ZodObject<{
|
|
314
326
|
eventId: z.ZodString;
|
|
315
327
|
workflowSlug: z.ZodString;
|
|
@@ -697,6 +709,8 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
697
709
|
"worker-crash": "worker-crash";
|
|
698
710
|
"execution-error": "execution-error";
|
|
699
711
|
}>;
|
|
712
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
700
714
|
}, z.core.$strip>, z.ZodObject<{
|
|
701
715
|
eventId: z.ZodString;
|
|
702
716
|
timestampUs: z.ZodNumber;
|
|
@@ -726,7 +740,9 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
726
740
|
stack: z.ZodOptional<z.ZodString>;
|
|
727
741
|
name: z.ZodOptional<z.ZodString>;
|
|
728
742
|
}, z.core.$strip>;
|
|
729
|
-
maxRetries: z.ZodNumber
|
|
743
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
totalPolicies: z.ZodOptional<z.ZodNumber>;
|
|
745
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
730
746
|
}, z.core.$strip>, z.ZodObject<{
|
|
731
747
|
eventId: z.ZodString;
|
|
732
748
|
timestampUs: z.ZodNumber;
|
|
@@ -743,6 +759,8 @@ export declare const eventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[
|
|
|
743
759
|
}>;
|
|
744
760
|
attemptNumber: z.ZodNumber;
|
|
745
761
|
retryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
762
|
+
policyIndex: z.ZodOptional<z.ZodNumber>;
|
|
763
|
+
attemptInPolicy: z.ZodOptional<z.ZodNumber>;
|
|
746
764
|
}, z.core.$strip>, z.ZodObject<{
|
|
747
765
|
eventId: z.ZodString;
|
|
748
766
|
workflowSlug: z.ZodString;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"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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"),
|
|
@@ -13898,4 +13904,4 @@ export {
|
|
|
13898
13904
|
Backend
|
|
13899
13905
|
};
|
|
13900
13906
|
|
|
13901
|
-
//# debugId=
|
|
13907
|
+
//# debugId=206E79B78B29710464756E2164756E21
|