@hatchet-dev/typescript-sdk 1.12.1 → 1.13.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.
Files changed (60) hide show
  1. package/clients/hatchet-client/client-config.d.ts +59 -0
  2. package/clients/hatchet-client/client-config.js +7 -0
  3. package/clients/worker/worker.js +25 -1
  4. package/package.json +1 -1
  5. package/step.d.ts +18 -18
  6. package/v1/client/client.d.ts +30 -14
  7. package/v1/client/client.js +32 -4
  8. package/v1/client/worker/worker-internal.js +24 -1
  9. package/v1/declaration.d.ts +63 -15
  10. package/v1/declaration.js +66 -2
  11. package/v1/examples/cancellations/workflow.d.ts +2 -2
  12. package/v1/examples/child_workflows/workflow.d.ts +4 -4
  13. package/v1/examples/concurrency-rr/workflow.d.ts +2 -2
  14. package/v1/examples/dag/interface-workflow.d.ts +1 -1
  15. package/v1/examples/dag/workflow.d.ts +1 -1
  16. package/v1/examples/dag_match_condition/complex-workflow.d.ts +1 -1
  17. package/v1/examples/dag_match_condition/workflow.d.ts +1 -1
  18. package/v1/examples/deep/workflow.d.ts +6 -6
  19. package/v1/examples/durable-event/workflow.d.ts +2 -2
  20. package/v1/examples/durable-sleep/workflow.d.ts +1 -1
  21. package/v1/examples/hatchet-client.d.ts +1 -1
  22. package/v1/examples/high-memory/workflow-with-child.d.ts +2 -2
  23. package/v1/examples/inferred-typing/workflow.d.ts +4 -4
  24. package/v1/examples/landing_page/event-signaling.d.ts +1 -1
  25. package/v1/examples/landing_page/flow-control.d.ts +1 -1
  26. package/v1/examples/landing_page/task-routing.d.ts +1 -1
  27. package/v1/examples/middleware/client.d.ts +26 -0
  28. package/v1/examples/middleware/client.js +39 -0
  29. package/v1/examples/middleware/recipes.d.ts +1 -0
  30. package/v1/examples/middleware/recipes.js +95 -0
  31. package/v1/examples/middleware/run.d.ts +1 -0
  32. package/v1/examples/middleware/run.js +29 -0
  33. package/v1/examples/middleware/worker.d.ts +1 -0
  34. package/v1/examples/middleware/worker.js +24 -0
  35. package/v1/examples/middleware/workflow.d.ts +15 -0
  36. package/v1/examples/middleware/workflow.js +18 -0
  37. package/v1/examples/migration-guides/hatchet-client.d.ts +1 -1
  38. package/v1/examples/migration-guides/mergent.d.ts +1 -1
  39. package/v1/examples/multiple_wf_concurrency/workflow.d.ts +1 -1
  40. package/v1/examples/non_retryable/workflow.d.ts +1 -1
  41. package/v1/examples/on_cron/workflow.d.ts +1 -1
  42. package/v1/examples/on_event/workflow.d.ts +3 -3
  43. package/v1/examples/on_failure/workflow.d.ts +1 -1
  44. package/v1/examples/on_success/workflow.d.ts +1 -1
  45. package/v1/examples/priority/workflow.d.ts +4 -4
  46. package/v1/examples/quickstart/hatchet-client.d.ts +1 -1
  47. package/v1/examples/quickstart/workflows/first-task.d.ts +1 -1
  48. package/v1/examples/retries/workflow.d.ts +3 -3
  49. package/v1/examples/simple/stub-workflow.d.ts +1 -1
  50. package/v1/examples/simple/workflow-with-child.d.ts +2 -2
  51. package/v1/examples/simple/workflow.d.ts +1 -1
  52. package/v1/examples/simple/zod.d.ts +1 -1
  53. package/v1/examples/sticky/workflow.d.ts +1 -1
  54. package/v1/examples/streaming/workflow.d.ts +1 -1
  55. package/v1/examples/timeouts/workflow.d.ts +1 -1
  56. package/v1/examples/with_timeouts/workflow.d.ts +2 -2
  57. package/v1/types.d.ts +10 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
  60. package/workflow.d.ts +56 -56
@@ -4,7 +4,7 @@ export type ChildInput = {
4
4
  export type ParentInput = {
5
5
  Message: string;
6
6
  };
7
- export declare const child: import("../..").WorkflowDeclaration<ChildInput, {}>;
7
+ export declare const child: import("../..").WorkflowDeclaration<ChildInput, {}, {}>;
8
8
  export declare const child1: import("../..").CreateWorkflowTaskOpts<ChildInput, {
9
9
  TransformedMessage: string;
10
10
  }>;
@@ -16,4 +16,4 @@ export declare const child3: import("../..").CreateWorkflowTaskOpts<ChildInput,
16
16
  }>;
17
17
  export declare const parent: import("../..").TaskWorkflowDeclaration<ParentInput, {
18
18
  TransformedMessage: string;
19
- }>;
19
+ }, {}, {}, {}, {}>;
@@ -3,4 +3,4 @@ export type SimpleInput = {
3
3
  };
4
4
  export declare const simple: import("../..").TaskWorkflowDeclaration<SimpleInput, {
5
5
  TransformedMessage: string;
6
- }>;
6
+ }, {}, {}, {}, {}>;
@@ -11,5 +11,5 @@ export declare const simpleWithZod: import("../..").TaskWorkflowDeclaration<{
11
11
  Message: string;
12
12
  }, {
13
13
  TransformedMessage: string;
14
- }>;
14
+ }, {}, {}, {}, {}>;
15
15
  export {};
@@ -2,4 +2,4 @@ export declare const sticky: import("../..").TaskWorkflowDeclaration<import("../
2
2
  result: {
3
3
  Value: number;
4
4
  };
5
- }>;
5
+ }, {}, {}, {}, {}>;
@@ -1 +1 @@
1
- export declare const streamingTask: import("../..").TaskWorkflowDeclaration<import("../..").UnknownInputType, void>;
1
+ export declare const streamingTask: import("../..").TaskWorkflowDeclaration<import("../..").UnknownInputType, void, {}, {}, {}, {}>;
@@ -1,3 +1,3 @@
1
1
  export declare const cancellation: import("../..").TaskWorkflowDeclaration<import("../..").UnknownInputType, {
2
2
  Completed: true;
3
- }>;
3
+ }, {}, {}, {}, {}>;
@@ -3,7 +3,7 @@ export type SimpleInput = {
3
3
  };
4
4
  export declare const withTimeouts: import("../..").TaskWorkflowDeclaration<SimpleInput, {
5
5
  TransformedMessage: string;
6
- }>;
6
+ }, {}, {}, {}, {}>;
7
7
  export declare const refreshTimeout: import("../..").TaskWorkflowDeclaration<SimpleInput, {
8
8
  TransformedMessage: string;
9
- }>;
9
+ }, {}, {}, {}, {}>;
package/v1/types.d.ts CHANGED
@@ -14,9 +14,18 @@ export type OutputType = JsonObject | void;
14
14
  export interface WorkflowOutputType {
15
15
  [key: string]: JsonObject;
16
16
  }
17
+ /**
18
+ * Resolves the effective type after middleware processing.
19
+ * Middleware return values replace (not merge) the original — if a hook
20
+ * omits fields by not spreading, those fields are stripped at runtime.
21
+ * Falls back to `Base` when no middleware is attached (`Middleware = {}`).
22
+ */
23
+ export type Resolved<Base extends Record<string, any>, Middleware extends Record<string, any>> = [
24
+ keyof Middleware
25
+ ] extends [never] ? Base : Middleware;
17
26
  type IsValidWorkflowOutput<T> = T extends Record<string, JsonObject> ? true : false;
18
27
  export type StrictWorkflowOutputType<T = any> = IsValidWorkflowOutput<T> extends true ? T : (Record<string, JsonObject> | void) & {
19
28
  [ERROR_WORKFLOW_OUTPUT]?: 'Workflow output must be shaped as Record<"task-name", JsonObject>. Each property must be an object, not a primitive value.';
20
29
  };
21
30
  declare const ERROR_WORKFLOW_OUTPUT: unique symbol;
22
- export {};
31
+ export type { TaskMiddleware as HatchetMiddleware } from '../clients/hatchet-client/client-config';
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const HATCHET_VERSION = "1.12.1";
1
+ export declare const HATCHET_VERSION = "1.13.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HATCHET_VERSION = void 0;
4
- exports.HATCHET_VERSION = '1.12.1';
4
+ exports.HATCHET_VERSION = '1.13.0';
package/workflow.d.ts CHANGED
@@ -16,17 +16,17 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  units: string | number;
18
18
  key?: string | undefined;
19
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
20
- limit?: string | number | undefined;
21
19
  staticKey?: string | undefined;
22
20
  dynamicKey?: string | undefined;
21
+ limit?: string | number | undefined;
22
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
23
23
  }, {
24
24
  units: string | number;
25
25
  key?: string | undefined;
26
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
27
- limit?: string | number | undefined;
28
26
  staticKey?: string | undefined;
29
27
  dynamicKey?: string | undefined;
28
+ limit?: string | number | undefined;
29
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
30
30
  }>, "many">>;
31
31
  worker_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
32
32
  value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -36,13 +36,13 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  value: string | number;
38
38
  required?: boolean | undefined;
39
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
40
39
  weight?: number | undefined;
40
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
41
41
  }, {
42
42
  value: string | number;
43
43
  required?: boolean | undefined;
44
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
45
44
  weight?: number | undefined;
45
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
46
46
  }>]>>>>>;
47
47
  backoff: z.ZodOptional<z.ZodObject<{
48
48
  factor: z.ZodOptional<z.ZodNumber>;
@@ -62,16 +62,16 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
62
62
  rate_limits?: {
63
63
  units: string | number;
64
64
  key?: string | undefined;
65
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
66
- limit?: string | number | undefined;
67
65
  staticKey?: string | undefined;
68
66
  dynamicKey?: string | undefined;
67
+ limit?: string | number | undefined;
68
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
69
69
  }[] | undefined;
70
70
  worker_labels?: Record<string, string | number | {
71
71
  value: string | number;
72
72
  required?: boolean | undefined;
73
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
74
73
  weight?: number | undefined;
74
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
75
75
  } | undefined> | undefined;
76
76
  backoff?: {
77
77
  factor?: number | undefined;
@@ -85,16 +85,16 @@ declare const StepsSchema: z.ZodArray<z.ZodObject<{
85
85
  rate_limits?: {
86
86
  units: string | number;
87
87
  key?: string | undefined;
88
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
89
- limit?: string | number | undefined;
90
88
  staticKey?: string | undefined;
91
89
  dynamicKey?: string | undefined;
90
+ limit?: string | number | undefined;
91
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
92
92
  }[] | undefined;
93
93
  worker_labels?: Record<string, string | number | {
94
94
  value: string | number;
95
95
  required?: boolean | undefined;
96
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
97
96
  weight?: number | undefined;
97
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
98
98
  } | undefined> | undefined;
99
99
  backoff?: {
100
100
  factor?: number | undefined;
@@ -168,17 +168,17 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
168
168
  }, "strip", z.ZodTypeAny, {
169
169
  units: string | number;
170
170
  key?: string | undefined;
171
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
172
- limit?: string | number | undefined;
173
171
  staticKey?: string | undefined;
174
172
  dynamicKey?: string | undefined;
173
+ limit?: string | number | undefined;
174
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
175
175
  }, {
176
176
  units: string | number;
177
177
  key?: string | undefined;
178
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
179
- limit?: string | number | undefined;
180
178
  staticKey?: string | undefined;
181
179
  dynamicKey?: string | undefined;
180
+ limit?: string | number | undefined;
181
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
182
182
  }>, "many">>;
183
183
  worker_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
184
184
  value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -188,13 +188,13 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
188
188
  }, "strip", z.ZodTypeAny, {
189
189
  value: string | number;
190
190
  required?: boolean | undefined;
191
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
192
191
  weight?: number | undefined;
192
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
193
193
  }, {
194
194
  value: string | number;
195
195
  required?: boolean | undefined;
196
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
197
196
  weight?: number | undefined;
197
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
198
198
  }>]>>>>>;
199
199
  backoff: z.ZodOptional<z.ZodObject<{
200
200
  factor: z.ZodOptional<z.ZodNumber>;
@@ -214,16 +214,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
214
214
  rate_limits?: {
215
215
  units: string | number;
216
216
  key?: string | undefined;
217
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
218
- limit?: string | number | undefined;
219
217
  staticKey?: string | undefined;
220
218
  dynamicKey?: string | undefined;
219
+ limit?: string | number | undefined;
220
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
221
221
  }[] | undefined;
222
222
  worker_labels?: Record<string, string | number | {
223
223
  value: string | number;
224
224
  required?: boolean | undefined;
225
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
226
225
  weight?: number | undefined;
226
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
227
227
  } | undefined> | undefined;
228
228
  backoff?: {
229
229
  factor?: number | undefined;
@@ -237,16 +237,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
237
237
  rate_limits?: {
238
238
  units: string | number;
239
239
  key?: string | undefined;
240
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
241
- limit?: string | number | undefined;
242
240
  staticKey?: string | undefined;
243
241
  dynamicKey?: string | undefined;
242
+ limit?: string | number | undefined;
243
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
244
244
  }[] | undefined;
245
245
  worker_labels?: Record<string, string | number | {
246
246
  value: string | number;
247
247
  required?: boolean | undefined;
248
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
249
248
  weight?: number | undefined;
249
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
250
250
  } | undefined> | undefined;
251
251
  backoff?: {
252
252
  factor?: number | undefined;
@@ -268,17 +268,17 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
268
268
  }, "strip", z.ZodTypeAny, {
269
269
  units: string | number;
270
270
  key?: string | undefined;
271
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
272
- limit?: string | number | undefined;
273
271
  staticKey?: string | undefined;
274
272
  dynamicKey?: string | undefined;
273
+ limit?: string | number | undefined;
274
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
275
275
  }, {
276
276
  units: string | number;
277
277
  key?: string | undefined;
278
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
279
- limit?: string | number | undefined;
280
278
  staticKey?: string | undefined;
281
279
  dynamicKey?: string | undefined;
280
+ limit?: string | number | undefined;
281
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
282
282
  }>, "many">>;
283
283
  worker_labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
284
284
  value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -288,13 +288,13 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
288
288
  }, "strip", z.ZodTypeAny, {
289
289
  value: string | number;
290
290
  required?: boolean | undefined;
291
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
292
291
  weight?: number | undefined;
292
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
293
293
  }, {
294
294
  value: string | number;
295
295
  required?: boolean | undefined;
296
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
297
296
  weight?: number | undefined;
297
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
298
298
  }>]>>>>>;
299
299
  backoff: z.ZodOptional<z.ZodObject<{
300
300
  factor: z.ZodOptional<z.ZodNumber>;
@@ -314,16 +314,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
314
314
  rate_limits?: {
315
315
  units: string | number;
316
316
  key?: string | undefined;
317
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
318
- limit?: string | number | undefined;
319
317
  staticKey?: string | undefined;
320
318
  dynamicKey?: string | undefined;
319
+ limit?: string | number | undefined;
320
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
321
321
  }[] | undefined;
322
322
  worker_labels?: Record<string, string | number | {
323
323
  value: string | number;
324
324
  required?: boolean | undefined;
325
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
326
325
  weight?: number | undefined;
326
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
327
327
  } | undefined> | undefined;
328
328
  backoff?: {
329
329
  factor?: number | undefined;
@@ -337,16 +337,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
337
337
  rate_limits?: {
338
338
  units: string | number;
339
339
  key?: string | undefined;
340
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
341
- limit?: string | number | undefined;
342
340
  staticKey?: string | undefined;
343
341
  dynamicKey?: string | undefined;
342
+ limit?: string | number | undefined;
343
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
344
344
  }[] | undefined;
345
345
  worker_labels?: Record<string, string | number | {
346
346
  value: string | number;
347
347
  required?: boolean | undefined;
348
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
349
348
  weight?: number | undefined;
349
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
350
350
  } | undefined> | undefined;
351
351
  backoff?: {
352
352
  factor?: number | undefined;
@@ -354,6 +354,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
354
354
  } | undefined;
355
355
  }>>;
356
356
  }, "strip", z.ZodTypeAny, {
357
+ id: string;
357
358
  description: string;
358
359
  steps: {
359
360
  name: string;
@@ -363,24 +364,26 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
363
364
  rate_limits?: {
364
365
  units: string | number;
365
366
  key?: string | undefined;
366
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
367
- limit?: string | number | undefined;
368
367
  staticKey?: string | undefined;
369
368
  dynamicKey?: string | undefined;
369
+ limit?: string | number | undefined;
370
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
370
371
  }[] | undefined;
371
372
  worker_labels?: Record<string, string | number | {
372
373
  value: string | number;
373
374
  required?: boolean | undefined;
374
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
375
375
  weight?: number | undefined;
376
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
376
377
  } | undefined> | undefined;
377
378
  backoff?: {
378
379
  factor?: number | undefined;
379
380
  maxSeconds?: number | undefined;
380
381
  } | undefined;
381
382
  }[];
382
- id: string;
383
383
  version?: string | undefined;
384
+ timeout?: string | undefined;
385
+ sticky?: PbStickyStrategy | undefined;
386
+ scheduleTimeout?: string | undefined;
384
387
  on?: {
385
388
  cron: string;
386
389
  event?: undefined;
@@ -388,9 +391,6 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
388
391
  event: string;
389
392
  cron?: undefined;
390
393
  } | undefined;
391
- timeout?: string | undefined;
392
- scheduleTimeout?: string | undefined;
393
- sticky?: PbStickyStrategy | undefined;
394
394
  onFailure?: {
395
395
  name: string;
396
396
  timeout?: string | undefined;
@@ -399,16 +399,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
399
399
  rate_limits?: {
400
400
  units: string | number;
401
401
  key?: string | undefined;
402
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
403
- limit?: string | number | undefined;
404
402
  staticKey?: string | undefined;
405
403
  dynamicKey?: string | undefined;
404
+ limit?: string | number | undefined;
405
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
406
406
  }[] | undefined;
407
407
  worker_labels?: Record<string, string | number | {
408
408
  value: string | number;
409
409
  required?: boolean | undefined;
410
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
411
410
  weight?: number | undefined;
411
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
412
412
  } | undefined> | undefined;
413
413
  backoff?: {
414
414
  factor?: number | undefined;
@@ -416,6 +416,7 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
416
416
  } | undefined;
417
417
  } | undefined;
418
418
  }, {
419
+ id: string;
419
420
  description: string;
420
421
  steps: {
421
422
  name: string;
@@ -425,24 +426,26 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
425
426
  rate_limits?: {
426
427
  units: string | number;
427
428
  key?: string | undefined;
428
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
429
- limit?: string | number | undefined;
430
429
  staticKey?: string | undefined;
431
430
  dynamicKey?: string | undefined;
431
+ limit?: string | number | undefined;
432
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
432
433
  }[] | undefined;
433
434
  worker_labels?: Record<string, string | number | {
434
435
  value: string | number;
435
436
  required?: boolean | undefined;
436
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
437
437
  weight?: number | undefined;
438
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
438
439
  } | undefined> | undefined;
439
440
  backoff?: {
440
441
  factor?: number | undefined;
441
442
  maxSeconds?: number | undefined;
442
443
  } | undefined;
443
444
  }[];
444
- id: string;
445
445
  version?: string | undefined;
446
+ timeout?: string | undefined;
447
+ sticky?: PbStickyStrategy | undefined;
448
+ scheduleTimeout?: string | undefined;
446
449
  on?: {
447
450
  cron: string;
448
451
  event?: undefined;
@@ -450,9 +453,6 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
450
453
  event: string;
451
454
  cron?: undefined;
452
455
  } | undefined;
453
- timeout?: string | undefined;
454
- scheduleTimeout?: string | undefined;
455
- sticky?: PbStickyStrategy | undefined;
456
456
  onFailure?: {
457
457
  name: string;
458
458
  timeout?: string | undefined;
@@ -461,16 +461,16 @@ export declare const CreateWorkflowSchema: z.ZodObject<{
461
461
  rate_limits?: {
462
462
  units: string | number;
463
463
  key?: string | undefined;
464
- duration?: import("./protoc/workflows").RateLimitDuration | undefined;
465
- limit?: string | number | undefined;
466
464
  staticKey?: string | undefined;
467
465
  dynamicKey?: string | undefined;
466
+ limit?: string | number | undefined;
467
+ duration?: import("./protoc/workflows").RateLimitDuration | undefined;
468
468
  }[] | undefined;
469
469
  worker_labels?: Record<string, string | number | {
470
470
  value: string | number;
471
471
  required?: boolean | undefined;
472
- comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
473
472
  weight?: number | undefined;
473
+ comparator?: import("./protoc/workflows").WorkerLabelComparator | undefined;
474
474
  } | undefined> | undefined;
475
475
  backoff?: {
476
476
  factor?: number | undefined;