@trigger.dev/core 0.0.0-prerelease-20241119135607 → 0.0.0-prerelease-20241119153006

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 (46) hide show
  1. package/dist/commonjs/schemas/api.d.ts +1425 -1219
  2. package/dist/commonjs/schemas/eventFilter.d.ts +4 -4
  3. package/dist/commonjs/schemas/fetch.d.ts +66 -33
  4. package/dist/commonjs/schemas/notifications.d.ts +24 -16
  5. package/dist/commonjs/schemas/requestFilter.d.ts +52 -4
  6. package/dist/commonjs/schemas/runs.d.ts +29 -13
  7. package/dist/commonjs/schemas/schedules.d.ts +12 -12
  8. package/dist/commonjs/schemas/statuses.d.ts +9 -8
  9. package/dist/commonjs/schemas/tasks.d.ts +32 -31
  10. package/dist/commonjs/schemas/triggers.d.ts +36 -36
  11. package/dist/commonjs/v3/apiClient/index.d.ts +139 -139
  12. package/dist/commonjs/v3/schemas/api.d.ts +740 -1076
  13. package/dist/commonjs/v3/schemas/build.d.ts +348 -588
  14. package/dist/commonjs/v3/schemas/common.d.ts +27 -27
  15. package/dist/commonjs/v3/schemas/eventFilter.d.ts +2 -2
  16. package/dist/commonjs/v3/schemas/fetch.d.ts +53 -41
  17. package/dist/commonjs/v3/schemas/messages.d.ts +2891 -3335
  18. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +22 -22
  19. package/dist/commonjs/v3/schemas/resources.d.ts +156 -324
  20. package/dist/commonjs/v3/schemas/schemas.d.ts +445 -651
  21. package/dist/commonjs/v3/schemas/style.d.ts +12 -12
  22. package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
  23. package/dist/commonjs/version.js +1 -1
  24. package/dist/esm/schemas/api.d.ts +1436 -1230
  25. package/dist/esm/schemas/eventFilter.d.ts +4 -4
  26. package/dist/esm/schemas/fetch.d.ts +66 -33
  27. package/dist/esm/schemas/notifications.d.ts +24 -16
  28. package/dist/esm/schemas/requestFilter.d.ts +52 -4
  29. package/dist/esm/schemas/runs.d.ts +29 -13
  30. package/dist/esm/schemas/schedules.d.ts +12 -12
  31. package/dist/esm/schemas/statuses.d.ts +9 -8
  32. package/dist/esm/schemas/tasks.d.ts +32 -31
  33. package/dist/esm/schemas/triggers.d.ts +36 -36
  34. package/dist/esm/v3/apiClient/index.d.ts +139 -139
  35. package/dist/esm/v3/schemas/api.d.ts +740 -1076
  36. package/dist/esm/v3/schemas/build.d.ts +348 -588
  37. package/dist/esm/v3/schemas/common.d.ts +123 -123
  38. package/dist/esm/v3/schemas/eventFilter.d.ts +2 -2
  39. package/dist/esm/v3/schemas/fetch.d.ts +53 -41
  40. package/dist/esm/v3/schemas/messages.d.ts +2891 -3335
  41. package/dist/esm/v3/schemas/openTelemetry.d.ts +22 -22
  42. package/dist/esm/v3/schemas/resources.d.ts +156 -324
  43. package/dist/esm/v3/schemas/schemas.d.ts +445 -651
  44. package/dist/esm/v3/schemas/style.d.ts +12 -12
  45. package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
  46. package/package.json +2 -2
@@ -26,38 +26,38 @@ export declare const GetProjectResponseBody: z.ZodObject<{
26
26
  createdAt: z.ZodDate;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  id: string;
29
- createdAt: Date;
30
- slug: string;
31
29
  title: string;
30
+ slug: string;
31
+ createdAt: Date;
32
32
  }, {
33
33
  id: string;
34
- createdAt: Date;
35
- slug: string;
36
34
  title: string;
35
+ slug: string;
36
+ createdAt: Date;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  name: string;
40
40
  id: string;
41
- createdAt: Date;
42
41
  slug: string;
43
42
  organization: {
44
43
  id: string;
45
- createdAt: Date;
46
- slug: string;
47
44
  title: string;
45
+ slug: string;
46
+ createdAt: Date;
48
47
  };
48
+ createdAt: Date;
49
49
  externalRef: string;
50
50
  }, {
51
51
  name: string;
52
52
  id: string;
53
- createdAt: Date;
54
53
  slug: string;
55
54
  organization: {
56
55
  id: string;
57
- createdAt: Date;
58
- slug: string;
59
56
  title: string;
57
+ slug: string;
58
+ createdAt: Date;
60
59
  };
60
+ createdAt: Date;
61
61
  externalRef: string;
62
62
  }>;
63
63
  export type GetProjectResponseBody = z.infer<typeof GetProjectResponseBody>;
@@ -74,38 +74,38 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
74
74
  createdAt: z.ZodDate;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  id: string;
77
- createdAt: Date;
78
- slug: string;
79
77
  title: string;
78
+ slug: string;
79
+ createdAt: Date;
80
80
  }, {
81
81
  id: string;
82
- createdAt: Date;
83
- slug: string;
84
82
  title: string;
83
+ slug: string;
84
+ createdAt: Date;
85
85
  }>;
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  name: string;
88
88
  id: string;
89
- createdAt: Date;
90
89
  slug: string;
91
90
  organization: {
92
91
  id: string;
93
- createdAt: Date;
94
- slug: string;
95
92
  title: string;
93
+ slug: string;
94
+ createdAt: Date;
96
95
  };
96
+ createdAt: Date;
97
97
  externalRef: string;
98
98
  }, {
99
99
  name: string;
100
100
  id: string;
101
- createdAt: Date;
102
101
  slug: string;
103
102
  organization: {
104
103
  id: string;
105
- createdAt: Date;
106
- slug: string;
107
104
  title: string;
105
+ slug: string;
106
+ createdAt: Date;
108
107
  };
108
+ createdAt: Date;
109
109
  externalRef: string;
110
110
  }>, "many">;
111
111
  export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
@@ -165,35 +165,23 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
165
165
  }, "strip", z.ZodTypeAny, {
166
166
  type: "fixed-window";
167
167
  limit: number;
168
- window: ({
168
+ window: {
169
169
  seconds: number;
170
170
  } | {
171
171
  minutes: number;
172
172
  } | {
173
173
  hours: number;
174
- }) & ({
175
- seconds: number;
176
- } | {
177
- minutes: number;
178
- } | {
179
- hours: number;
180
- } | undefined);
174
+ };
181
175
  }, {
182
176
  type: "fixed-window";
183
177
  limit: number;
184
- window: ({
185
- seconds: number;
186
- } | {
187
- minutes: number;
188
- } | {
189
- hours: number;
190
- }) & ({
178
+ window: {
191
179
  seconds: number;
192
180
  } | {
193
181
  minutes: number;
194
182
  } | {
195
183
  hours: number;
196
- } | undefined);
184
+ };
197
185
  }>, z.ZodObject<{
198
186
  type: z.ZodLiteral<"sliding-window">;
199
187
  limit: z.ZodNumber;
@@ -219,35 +207,23 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
219
207
  }, "strip", z.ZodTypeAny, {
220
208
  type: "sliding-window";
221
209
  limit: number;
222
- window: ({
223
- seconds: number;
224
- } | {
225
- minutes: number;
226
- } | {
227
- hours: number;
228
- }) & ({
210
+ window: {
229
211
  seconds: number;
230
212
  } | {
231
213
  minutes: number;
232
214
  } | {
233
215
  hours: number;
234
- } | undefined);
216
+ };
235
217
  }, {
236
218
  type: "sliding-window";
237
219
  limit: number;
238
- window: ({
239
- seconds: number;
240
- } | {
241
- minutes: number;
242
- } | {
243
- hours: number;
244
- }) & ({
220
+ window: {
245
221
  seconds: number;
246
222
  } | {
247
223
  minutes: number;
248
224
  } | {
249
225
  hours: number;
250
- } | undefined);
226
+ };
251
227
  }>]>>;
252
228
  }, "strip", z.ZodTypeAny, {
253
229
  name?: string | undefined;
@@ -255,35 +231,23 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
255
231
  rateLimit?: {
256
232
  type: "fixed-window";
257
233
  limit: number;
258
- window: ({
259
- seconds: number;
260
- } | {
261
- minutes: number;
262
- } | {
263
- hours: number;
264
- }) & ({
234
+ window: {
265
235
  seconds: number;
266
236
  } | {
267
237
  minutes: number;
268
238
  } | {
269
239
  hours: number;
270
- } | undefined);
240
+ };
271
241
  } | {
272
242
  type: "sliding-window";
273
243
  limit: number;
274
- window: ({
275
- seconds: number;
276
- } | {
277
- minutes: number;
278
- } | {
279
- hours: number;
280
- }) & ({
244
+ window: {
281
245
  seconds: number;
282
246
  } | {
283
247
  minutes: number;
284
248
  } | {
285
249
  hours: number;
286
- } | undefined);
250
+ };
287
251
  } | undefined;
288
252
  }, {
289
253
  name?: string | undefined;
@@ -291,35 +255,23 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
291
255
  rateLimit?: {
292
256
  type: "fixed-window";
293
257
  limit: number;
294
- window: ({
295
- seconds: number;
296
- } | {
297
- minutes: number;
298
- } | {
299
- hours: number;
300
- }) & ({
258
+ window: {
301
259
  seconds: number;
302
260
  } | {
303
261
  minutes: number;
304
262
  } | {
305
263
  hours: number;
306
- } | undefined);
264
+ };
307
265
  } | {
308
266
  type: "sliding-window";
309
267
  limit: number;
310
- window: ({
311
- seconds: number;
312
- } | {
313
- minutes: number;
314
- } | {
315
- hours: number;
316
- }) & ({
268
+ window: {
317
269
  seconds: number;
318
270
  } | {
319
271
  minutes: number;
320
272
  } | {
321
273
  hours: number;
322
- } | undefined);
274
+ };
323
275
  } | undefined;
324
276
  }>>;
325
277
  retry: z.ZodOptional<z.ZodObject<{
@@ -329,29 +281,29 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
329
281
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
330
282
  randomize: z.ZodOptional<z.ZodBoolean>;
331
283
  }, "strip", z.ZodTypeAny, {
332
- maxAttempts?: number | undefined;
333
284
  factor?: number | undefined;
334
285
  minTimeoutInMs?: number | undefined;
335
286
  maxTimeoutInMs?: number | undefined;
336
287
  randomize?: boolean | undefined;
337
- }, {
338
288
  maxAttempts?: number | undefined;
289
+ }, {
339
290
  factor?: number | undefined;
340
291
  minTimeoutInMs?: number | undefined;
341
292
  maxTimeoutInMs?: number | undefined;
342
293
  randomize?: boolean | undefined;
294
+ maxAttempts?: number | undefined;
343
295
  }>>;
344
296
  machine: z.ZodOptional<z.ZodObject<{
345
297
  cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
346
298
  memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
347
299
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
348
300
  }, "strip", z.ZodTypeAny, {
349
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
350
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
301
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
302
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
351
303
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
352
304
  }, {
353
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
354
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
305
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
306
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
355
307
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
356
308
  }>>;
357
309
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -371,121 +323,97 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
371
323
  filePath: string;
372
324
  exportName: string;
373
325
  description?: string | undefined;
326
+ schedule?: {
327
+ cron: string;
328
+ timezone: string;
329
+ } | undefined;
330
+ retry?: {
331
+ factor?: number | undefined;
332
+ minTimeoutInMs?: number | undefined;
333
+ maxTimeoutInMs?: number | undefined;
334
+ randomize?: boolean | undefined;
335
+ maxAttempts?: number | undefined;
336
+ } | undefined;
337
+ maxDuration?: number | undefined;
374
338
  queue?: {
375
339
  name?: string | undefined;
376
340
  concurrencyLimit?: number | undefined;
377
341
  rateLimit?: {
378
342
  type: "fixed-window";
379
343
  limit: number;
380
- window: ({
344
+ window: {
381
345
  seconds: number;
382
346
  } | {
383
347
  minutes: number;
384
348
  } | {
385
349
  hours: number;
386
- }) & ({
387
- seconds: number;
388
- } | {
389
- minutes: number;
390
- } | {
391
- hours: number;
392
- } | undefined);
350
+ };
393
351
  } | {
394
352
  type: "sliding-window";
395
353
  limit: number;
396
- window: ({
397
- seconds: number;
398
- } | {
399
- minutes: number;
400
- } | {
401
- hours: number;
402
- }) & ({
354
+ window: {
403
355
  seconds: number;
404
356
  } | {
405
357
  minutes: number;
406
358
  } | {
407
359
  hours: number;
408
- } | undefined);
360
+ };
409
361
  } | undefined;
410
362
  } | undefined;
411
- retry?: {
412
- maxAttempts?: number | undefined;
413
- factor?: number | undefined;
414
- minTimeoutInMs?: number | undefined;
415
- maxTimeoutInMs?: number | undefined;
416
- randomize?: boolean | undefined;
417
- } | undefined;
418
363
  machine?: {
419
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
420
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
364
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
365
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
421
366
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
422
367
  } | undefined;
423
368
  triggerSource?: string | undefined;
424
- schedule?: {
425
- cron: string;
426
- timezone: string;
427
- } | undefined;
428
- maxDuration?: number | undefined;
429
369
  }, {
430
370
  id: string;
431
371
  filePath: string;
432
372
  exportName: string;
433
373
  description?: string | undefined;
374
+ schedule?: {
375
+ cron: string;
376
+ timezone: string;
377
+ } | undefined;
378
+ retry?: {
379
+ factor?: number | undefined;
380
+ minTimeoutInMs?: number | undefined;
381
+ maxTimeoutInMs?: number | undefined;
382
+ randomize?: boolean | undefined;
383
+ maxAttempts?: number | undefined;
384
+ } | undefined;
385
+ maxDuration?: number | undefined;
434
386
  queue?: {
435
387
  name?: string | undefined;
436
388
  concurrencyLimit?: number | undefined;
437
389
  rateLimit?: {
438
390
  type: "fixed-window";
439
391
  limit: number;
440
- window: ({
441
- seconds: number;
442
- } | {
443
- minutes: number;
444
- } | {
445
- hours: number;
446
- }) & ({
392
+ window: {
447
393
  seconds: number;
448
394
  } | {
449
395
  minutes: number;
450
396
  } | {
451
397
  hours: number;
452
- } | undefined);
398
+ };
453
399
  } | {
454
400
  type: "sliding-window";
455
401
  limit: number;
456
- window: ({
457
- seconds: number;
458
- } | {
459
- minutes: number;
460
- } | {
461
- hours: number;
462
- }) & ({
402
+ window: {
463
403
  seconds: number;
464
404
  } | {
465
405
  minutes: number;
466
406
  } | {
467
407
  hours: number;
468
- } | undefined);
408
+ };
469
409
  } | undefined;
470
410
  } | undefined;
471
- retry?: {
472
- maxAttempts?: number | undefined;
473
- factor?: number | undefined;
474
- minTimeoutInMs?: number | undefined;
475
- maxTimeoutInMs?: number | undefined;
476
- randomize?: boolean | undefined;
477
- } | undefined;
478
411
  machine?: {
479
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
480
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
412
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
413
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
481
414
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
482
415
  } | undefined;
483
416
  triggerSource?: string | undefined;
484
- schedule?: {
485
- cron: string;
486
- timezone: string;
487
- } | undefined;
488
- maxDuration?: number | undefined;
489
417
  }>, "many">;
490
418
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
491
419
  filePath: z.ZodString;
@@ -504,69 +432,57 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
504
432
  taskIds: string[];
505
433
  }>, "many">>;
506
434
  }, "strip", z.ZodTypeAny, {
507
- contentHash: string;
508
- packageVersion: string;
509
435
  tasks: {
510
436
  id: string;
511
437
  filePath: string;
512
438
  exportName: string;
513
439
  description?: string | undefined;
440
+ schedule?: {
441
+ cron: string;
442
+ timezone: string;
443
+ } | undefined;
444
+ retry?: {
445
+ factor?: number | undefined;
446
+ minTimeoutInMs?: number | undefined;
447
+ maxTimeoutInMs?: number | undefined;
448
+ randomize?: boolean | undefined;
449
+ maxAttempts?: number | undefined;
450
+ } | undefined;
451
+ maxDuration?: number | undefined;
514
452
  queue?: {
515
453
  name?: string | undefined;
516
454
  concurrencyLimit?: number | undefined;
517
455
  rateLimit?: {
518
456
  type: "fixed-window";
519
457
  limit: number;
520
- window: ({
521
- seconds: number;
522
- } | {
523
- minutes: number;
524
- } | {
525
- hours: number;
526
- }) & ({
458
+ window: {
527
459
  seconds: number;
528
460
  } | {
529
461
  minutes: number;
530
462
  } | {
531
463
  hours: number;
532
- } | undefined);
464
+ };
533
465
  } | {
534
466
  type: "sliding-window";
535
467
  limit: number;
536
- window: ({
537
- seconds: number;
538
- } | {
539
- minutes: number;
540
- } | {
541
- hours: number;
542
- }) & ({
468
+ window: {
543
469
  seconds: number;
544
470
  } | {
545
471
  minutes: number;
546
472
  } | {
547
473
  hours: number;
548
- } | undefined);
474
+ };
549
475
  } | undefined;
550
476
  } | undefined;
551
- retry?: {
552
- maxAttempts?: number | undefined;
553
- factor?: number | undefined;
554
- minTimeoutInMs?: number | undefined;
555
- maxTimeoutInMs?: number | undefined;
556
- randomize?: boolean | undefined;
557
- } | undefined;
558
477
  machine?: {
559
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
560
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
478
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
479
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
561
480
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
562
481
  } | undefined;
563
482
  triggerSource?: string | undefined;
564
- schedule?: {
565
- cron: string;
566
- timezone: string;
567
- } | undefined;
568
- maxDuration?: number | undefined;
569
483
  }[];
484
+ contentHash: string;
485
+ packageVersion: string;
570
486
  cliPackageVersion?: string | undefined;
571
487
  sourceFiles?: {
572
488
  filePath: string;
@@ -575,69 +491,57 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
575
491
  taskIds: string[];
576
492
  }[] | undefined;
577
493
  }, {
578
- contentHash: string;
579
- packageVersion: string;
580
494
  tasks: {
581
495
  id: string;
582
496
  filePath: string;
583
497
  exportName: string;
584
498
  description?: string | undefined;
499
+ schedule?: {
500
+ cron: string;
501
+ timezone: string;
502
+ } | undefined;
503
+ retry?: {
504
+ factor?: number | undefined;
505
+ minTimeoutInMs?: number | undefined;
506
+ maxTimeoutInMs?: number | undefined;
507
+ randomize?: boolean | undefined;
508
+ maxAttempts?: number | undefined;
509
+ } | undefined;
510
+ maxDuration?: number | undefined;
585
511
  queue?: {
586
512
  name?: string | undefined;
587
513
  concurrencyLimit?: number | undefined;
588
514
  rateLimit?: {
589
515
  type: "fixed-window";
590
516
  limit: number;
591
- window: ({
592
- seconds: number;
593
- } | {
594
- minutes: number;
595
- } | {
596
- hours: number;
597
- }) & ({
517
+ window: {
598
518
  seconds: number;
599
519
  } | {
600
520
  minutes: number;
601
521
  } | {
602
522
  hours: number;
603
- } | undefined);
523
+ };
604
524
  } | {
605
525
  type: "sliding-window";
606
526
  limit: number;
607
- window: ({
608
- seconds: number;
609
- } | {
610
- minutes: number;
611
- } | {
612
- hours: number;
613
- }) & ({
527
+ window: {
614
528
  seconds: number;
615
529
  } | {
616
530
  minutes: number;
617
531
  } | {
618
532
  hours: number;
619
- } | undefined);
533
+ };
620
534
  } | undefined;
621
535
  } | undefined;
622
- retry?: {
623
- maxAttempts?: number | undefined;
624
- factor?: number | undefined;
625
- minTimeoutInMs?: number | undefined;
626
- maxTimeoutInMs?: number | undefined;
627
- randomize?: boolean | undefined;
628
- } | undefined;
629
536
  machine?: {
630
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
631
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
537
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
538
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
632
539
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
633
540
  } | undefined;
634
541
  triggerSource?: string | undefined;
635
- schedule?: {
636
- cron: string;
637
- timezone: string;
638
- } | undefined;
639
- maxDuration?: number | undefined;
640
542
  }[];
543
+ contentHash: string;
544
+ packageVersion: string;
641
545
  cliPackageVersion?: string | undefined;
642
546
  sourceFiles?: {
643
547
  filePath: string;
@@ -649,69 +553,57 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
649
553
  supportsLazyAttempts: z.ZodOptional<z.ZodBoolean>;
650
554
  }, "strip", z.ZodTypeAny, {
651
555
  metadata: {
652
- contentHash: string;
653
- packageVersion: string;
654
556
  tasks: {
655
557
  id: string;
656
558
  filePath: string;
657
559
  exportName: string;
658
560
  description?: string | undefined;
561
+ schedule?: {
562
+ cron: string;
563
+ timezone: string;
564
+ } | undefined;
565
+ retry?: {
566
+ factor?: number | undefined;
567
+ minTimeoutInMs?: number | undefined;
568
+ maxTimeoutInMs?: number | undefined;
569
+ randomize?: boolean | undefined;
570
+ maxAttempts?: number | undefined;
571
+ } | undefined;
572
+ maxDuration?: number | undefined;
659
573
  queue?: {
660
574
  name?: string | undefined;
661
575
  concurrencyLimit?: number | undefined;
662
576
  rateLimit?: {
663
577
  type: "fixed-window";
664
578
  limit: number;
665
- window: ({
666
- seconds: number;
667
- } | {
668
- minutes: number;
669
- } | {
670
- hours: number;
671
- }) & ({
579
+ window: {
672
580
  seconds: number;
673
581
  } | {
674
582
  minutes: number;
675
583
  } | {
676
584
  hours: number;
677
- } | undefined);
585
+ };
678
586
  } | {
679
587
  type: "sliding-window";
680
588
  limit: number;
681
- window: ({
682
- seconds: number;
683
- } | {
684
- minutes: number;
685
- } | {
686
- hours: number;
687
- }) & ({
589
+ window: {
688
590
  seconds: number;
689
591
  } | {
690
592
  minutes: number;
691
593
  } | {
692
594
  hours: number;
693
- } | undefined);
595
+ };
694
596
  } | undefined;
695
597
  } | undefined;
696
- retry?: {
697
- maxAttempts?: number | undefined;
698
- factor?: number | undefined;
699
- minTimeoutInMs?: number | undefined;
700
- maxTimeoutInMs?: number | undefined;
701
- randomize?: boolean | undefined;
702
- } | undefined;
703
598
  machine?: {
704
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
705
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
599
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
600
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
706
601
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
707
602
  } | undefined;
708
603
  triggerSource?: string | undefined;
709
- schedule?: {
710
- cron: string;
711
- timezone: string;
712
- } | undefined;
713
- maxDuration?: number | undefined;
714
604
  }[];
605
+ contentHash: string;
606
+ packageVersion: string;
715
607
  cliPackageVersion?: string | undefined;
716
608
  sourceFiles?: {
717
609
  filePath: string;
@@ -724,69 +616,57 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
724
616
  supportsLazyAttempts?: boolean | undefined;
725
617
  }, {
726
618
  metadata: {
727
- contentHash: string;
728
- packageVersion: string;
729
619
  tasks: {
730
620
  id: string;
731
621
  filePath: string;
732
622
  exportName: string;
733
623
  description?: string | undefined;
624
+ schedule?: {
625
+ cron: string;
626
+ timezone: string;
627
+ } | undefined;
628
+ retry?: {
629
+ factor?: number | undefined;
630
+ minTimeoutInMs?: number | undefined;
631
+ maxTimeoutInMs?: number | undefined;
632
+ randomize?: boolean | undefined;
633
+ maxAttempts?: number | undefined;
634
+ } | undefined;
635
+ maxDuration?: number | undefined;
734
636
  queue?: {
735
637
  name?: string | undefined;
736
638
  concurrencyLimit?: number | undefined;
737
639
  rateLimit?: {
738
640
  type: "fixed-window";
739
641
  limit: number;
740
- window: ({
642
+ window: {
741
643
  seconds: number;
742
644
  } | {
743
645
  minutes: number;
744
646
  } | {
745
647
  hours: number;
746
- }) & ({
747
- seconds: number;
748
- } | {
749
- minutes: number;
750
- } | {
751
- hours: number;
752
- } | undefined);
648
+ };
753
649
  } | {
754
650
  type: "sliding-window";
755
651
  limit: number;
756
- window: ({
757
- seconds: number;
758
- } | {
759
- minutes: number;
760
- } | {
761
- hours: number;
762
- }) & ({
652
+ window: {
763
653
  seconds: number;
764
654
  } | {
765
655
  minutes: number;
766
656
  } | {
767
657
  hours: number;
768
- } | undefined);
658
+ };
769
659
  } | undefined;
770
660
  } | undefined;
771
- retry?: {
772
- maxAttempts?: number | undefined;
773
- factor?: number | undefined;
774
- minTimeoutInMs?: number | undefined;
775
- maxTimeoutInMs?: number | undefined;
776
- randomize?: boolean | undefined;
777
- } | undefined;
778
661
  machine?: {
779
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
780
- memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
662
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
663
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
781
664
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
782
665
  } | undefined;
783
666
  triggerSource?: string | undefined;
784
- schedule?: {
785
- cron: string;
786
- timezone: string;
787
- } | undefined;
788
- maxDuration?: number | undefined;
789
667
  }[];
668
+ contentHash: string;
669
+ packageVersion: string;
790
670
  cliPackageVersion?: string | undefined;
791
671
  sourceFiles?: {
792
672
  filePath: string;
@@ -852,35 +732,23 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
852
732
  }, "strip", z.ZodTypeAny, {
853
733
  type: "fixed-window";
854
734
  limit: number;
855
- window: ({
735
+ window: {
856
736
  seconds: number;
857
737
  } | {
858
738
  minutes: number;
859
739
  } | {
860
740
  hours: number;
861
- }) & ({
862
- seconds: number;
863
- } | {
864
- minutes: number;
865
- } | {
866
- hours: number;
867
- } | undefined);
741
+ };
868
742
  }, {
869
743
  type: "fixed-window";
870
744
  limit: number;
871
- window: ({
872
- seconds: number;
873
- } | {
874
- minutes: number;
875
- } | {
876
- hours: number;
877
- }) & ({
745
+ window: {
878
746
  seconds: number;
879
747
  } | {
880
748
  minutes: number;
881
749
  } | {
882
750
  hours: number;
883
- } | undefined);
751
+ };
884
752
  }>, z.ZodObject<{
885
753
  type: z.ZodLiteral<"sliding-window">;
886
754
  limit: z.ZodNumber;
@@ -906,35 +774,23 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
906
774
  }, "strip", z.ZodTypeAny, {
907
775
  type: "sliding-window";
908
776
  limit: number;
909
- window: ({
777
+ window: {
910
778
  seconds: number;
911
779
  } | {
912
780
  minutes: number;
913
781
  } | {
914
782
  hours: number;
915
- }) & ({
916
- seconds: number;
917
- } | {
918
- minutes: number;
919
- } | {
920
- hours: number;
921
- } | undefined);
783
+ };
922
784
  }, {
923
785
  type: "sliding-window";
924
786
  limit: number;
925
- window: ({
926
- seconds: number;
927
- } | {
928
- minutes: number;
929
- } | {
930
- hours: number;
931
- }) & ({
787
+ window: {
932
788
  seconds: number;
933
789
  } | {
934
790
  minutes: number;
935
791
  } | {
936
792
  hours: number;
937
- } | undefined);
793
+ };
938
794
  }>]>>;
939
795
  }, "strip", z.ZodTypeAny, {
940
796
  name?: string | undefined;
@@ -942,35 +798,23 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
942
798
  rateLimit?: {
943
799
  type: "fixed-window";
944
800
  limit: number;
945
- window: ({
801
+ window: {
946
802
  seconds: number;
947
803
  } | {
948
804
  minutes: number;
949
805
  } | {
950
806
  hours: number;
951
- }) & ({
952
- seconds: number;
953
- } | {
954
- minutes: number;
955
- } | {
956
- hours: number;
957
- } | undefined);
807
+ };
958
808
  } | {
959
809
  type: "sliding-window";
960
810
  limit: number;
961
- window: ({
962
- seconds: number;
963
- } | {
964
- minutes: number;
965
- } | {
966
- hours: number;
967
- }) & ({
811
+ window: {
968
812
  seconds: number;
969
813
  } | {
970
814
  minutes: number;
971
815
  } | {
972
816
  hours: number;
973
- } | undefined);
817
+ };
974
818
  } | undefined;
975
819
  }, {
976
820
  name?: string | undefined;
@@ -978,35 +822,23 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
978
822
  rateLimit?: {
979
823
  type: "fixed-window";
980
824
  limit: number;
981
- window: ({
982
- seconds: number;
983
- } | {
984
- minutes: number;
985
- } | {
986
- hours: number;
987
- }) & ({
825
+ window: {
988
826
  seconds: number;
989
827
  } | {
990
828
  minutes: number;
991
829
  } | {
992
830
  hours: number;
993
- } | undefined);
831
+ };
994
832
  } | {
995
833
  type: "sliding-window";
996
834
  limit: number;
997
- window: ({
998
- seconds: number;
999
- } | {
1000
- minutes: number;
1001
- } | {
1002
- hours: number;
1003
- }) & ({
835
+ window: {
1004
836
  seconds: number;
1005
837
  } | {
1006
838
  minutes: number;
1007
839
  } | {
1008
840
  hours: number;
1009
- } | undefined);
841
+ };
1010
842
  } | undefined;
1011
843
  }>>;
1012
844
  concurrencyKey: z.ZodOptional<z.ZodString>;
@@ -1021,230 +853,182 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1021
853
  metadataType: z.ZodOptional<z.ZodString>;
1022
854
  maxDuration: z.ZodOptional<z.ZodNumber>;
1023
855
  }, "strip", z.ZodTypeAny, {
1024
- dependentAttempt?: string | undefined;
1025
- parentAttempt?: string | undefined;
1026
- dependentBatch?: string | undefined;
1027
- parentBatch?: string | undefined;
1028
- lockToVersion?: string | undefined;
856
+ metadata?: any;
857
+ idempotencyKey?: string | undefined;
858
+ payloadType?: string | undefined;
859
+ tags?: string | string[] | undefined;
860
+ maxAttempts?: number | undefined;
861
+ maxDuration?: number | undefined;
1029
862
  queue?: {
1030
863
  name?: string | undefined;
1031
864
  concurrencyLimit?: number | undefined;
1032
865
  rateLimit?: {
1033
866
  type: "fixed-window";
1034
867
  limit: number;
1035
- window: ({
868
+ window: {
1036
869
  seconds: number;
1037
870
  } | {
1038
871
  minutes: number;
1039
872
  } | {
1040
873
  hours: number;
1041
- }) & ({
1042
- seconds: number;
1043
- } | {
1044
- minutes: number;
1045
- } | {
1046
- hours: number;
1047
- } | undefined);
874
+ };
1048
875
  } | {
1049
876
  type: "sliding-window";
1050
877
  limit: number;
1051
- window: ({
878
+ window: {
1052
879
  seconds: number;
1053
880
  } | {
1054
881
  minutes: number;
1055
882
  } | {
1056
883
  hours: number;
1057
- }) & ({
1058
- seconds: number;
1059
- } | {
1060
- minutes: number;
1061
- } | {
1062
- hours: number;
1063
- } | undefined);
884
+ };
1064
885
  } | undefined;
1065
886
  } | undefined;
1066
- concurrencyKey?: string | undefined;
1067
- idempotencyKey?: string | undefined;
1068
- test?: boolean | undefined;
1069
- payloadType?: string | undefined;
1070
887
  delay?: string | Date | undefined;
1071
- ttl?: string | number | undefined;
1072
- tags?: string | string[] | undefined;
1073
- maxAttempts?: number | undefined;
1074
- metadata?: any;
1075
- metadataType?: string | undefined;
1076
- maxDuration?: number | undefined;
1077
- }, {
1078
888
  dependentAttempt?: string | undefined;
1079
889
  parentAttempt?: string | undefined;
1080
890
  dependentBatch?: string | undefined;
1081
891
  parentBatch?: string | undefined;
1082
892
  lockToVersion?: string | undefined;
893
+ concurrencyKey?: string | undefined;
894
+ test?: boolean | undefined;
895
+ ttl?: string | number | undefined;
896
+ metadataType?: string | undefined;
897
+ }, {
898
+ metadata?: any;
899
+ idempotencyKey?: string | undefined;
900
+ payloadType?: string | undefined;
901
+ tags?: string | string[] | undefined;
902
+ maxAttempts?: number | undefined;
903
+ maxDuration?: number | undefined;
1083
904
  queue?: {
1084
905
  name?: string | undefined;
1085
906
  concurrencyLimit?: number | undefined;
1086
907
  rateLimit?: {
1087
908
  type: "fixed-window";
1088
909
  limit: number;
1089
- window: ({
1090
- seconds: number;
1091
- } | {
1092
- minutes: number;
1093
- } | {
1094
- hours: number;
1095
- }) & ({
910
+ window: {
1096
911
  seconds: number;
1097
912
  } | {
1098
913
  minutes: number;
1099
914
  } | {
1100
915
  hours: number;
1101
- } | undefined);
916
+ };
1102
917
  } | {
1103
918
  type: "sliding-window";
1104
919
  limit: number;
1105
- window: ({
920
+ window: {
1106
921
  seconds: number;
1107
922
  } | {
1108
923
  minutes: number;
1109
924
  } | {
1110
925
  hours: number;
1111
- }) & ({
1112
- seconds: number;
1113
- } | {
1114
- minutes: number;
1115
- } | {
1116
- hours: number;
1117
- } | undefined);
926
+ };
1118
927
  } | undefined;
1119
928
  } | undefined;
929
+ delay?: string | Date | undefined;
930
+ dependentAttempt?: string | undefined;
931
+ parentAttempt?: string | undefined;
932
+ dependentBatch?: string | undefined;
933
+ parentBatch?: string | undefined;
934
+ lockToVersion?: string | undefined;
1120
935
  concurrencyKey?: string | undefined;
1121
- idempotencyKey?: string | undefined;
1122
936
  test?: boolean | undefined;
1123
- payloadType?: string | undefined;
1124
- delay?: string | Date | undefined;
1125
937
  ttl?: string | number | undefined;
1126
- tags?: string | string[] | undefined;
1127
- maxAttempts?: number | undefined;
1128
- metadata?: any;
1129
938
  metadataType?: string | undefined;
1130
- maxDuration?: number | undefined;
1131
939
  }>>;
1132
940
  }, "strip", z.ZodTypeAny, {
1133
- payload?: any;
1134
- context?: any;
1135
941
  options?: {
1136
- dependentAttempt?: string | undefined;
1137
- parentAttempt?: string | undefined;
1138
- dependentBatch?: string | undefined;
1139
- parentBatch?: string | undefined;
1140
- lockToVersion?: string | undefined;
942
+ metadata?: any;
943
+ idempotencyKey?: string | undefined;
944
+ payloadType?: string | undefined;
945
+ tags?: string | string[] | undefined;
946
+ maxAttempts?: number | undefined;
947
+ maxDuration?: number | undefined;
1141
948
  queue?: {
1142
949
  name?: string | undefined;
1143
950
  concurrencyLimit?: number | undefined;
1144
951
  rateLimit?: {
1145
952
  type: "fixed-window";
1146
953
  limit: number;
1147
- window: ({
954
+ window: {
1148
955
  seconds: number;
1149
956
  } | {
1150
957
  minutes: number;
1151
958
  } | {
1152
959
  hours: number;
1153
- }) & ({
1154
- seconds: number;
1155
- } | {
1156
- minutes: number;
1157
- } | {
1158
- hours: number;
1159
- } | undefined);
960
+ };
1160
961
  } | {
1161
962
  type: "sliding-window";
1162
963
  limit: number;
1163
- window: ({
1164
- seconds: number;
1165
- } | {
1166
- minutes: number;
1167
- } | {
1168
- hours: number;
1169
- }) & ({
964
+ window: {
1170
965
  seconds: number;
1171
966
  } | {
1172
967
  minutes: number;
1173
968
  } | {
1174
969
  hours: number;
1175
- } | undefined);
970
+ };
1176
971
  } | undefined;
1177
972
  } | undefined;
973
+ delay?: string | Date | undefined;
974
+ dependentAttempt?: string | undefined;
975
+ parentAttempt?: string | undefined;
976
+ dependentBatch?: string | undefined;
977
+ parentBatch?: string | undefined;
978
+ lockToVersion?: string | undefined;
1178
979
  concurrencyKey?: string | undefined;
1179
- idempotencyKey?: string | undefined;
1180
980
  test?: boolean | undefined;
1181
- payloadType?: string | undefined;
1182
- delay?: string | Date | undefined;
1183
981
  ttl?: string | number | undefined;
1184
- tags?: string | string[] | undefined;
1185
- maxAttempts?: number | undefined;
1186
- metadata?: any;
1187
982
  metadataType?: string | undefined;
1188
- maxDuration?: number | undefined;
1189
983
  } | undefined;
1190
- }, {
1191
984
  payload?: any;
1192
985
  context?: any;
986
+ }, {
1193
987
  options?: {
1194
- dependentAttempt?: string | undefined;
1195
- parentAttempt?: string | undefined;
1196
- dependentBatch?: string | undefined;
1197
- parentBatch?: string | undefined;
1198
- lockToVersion?: string | undefined;
988
+ metadata?: any;
989
+ idempotencyKey?: string | undefined;
990
+ payloadType?: string | undefined;
991
+ tags?: string | string[] | undefined;
992
+ maxAttempts?: number | undefined;
993
+ maxDuration?: number | undefined;
1199
994
  queue?: {
1200
995
  name?: string | undefined;
1201
996
  concurrencyLimit?: number | undefined;
1202
997
  rateLimit?: {
1203
998
  type: "fixed-window";
1204
999
  limit: number;
1205
- window: ({
1000
+ window: {
1206
1001
  seconds: number;
1207
1002
  } | {
1208
1003
  minutes: number;
1209
1004
  } | {
1210
1005
  hours: number;
1211
- }) & ({
1212
- seconds: number;
1213
- } | {
1214
- minutes: number;
1215
- } | {
1216
- hours: number;
1217
- } | undefined);
1006
+ };
1218
1007
  } | {
1219
1008
  type: "sliding-window";
1220
1009
  limit: number;
1221
- window: ({
1222
- seconds: number;
1223
- } | {
1224
- minutes: number;
1225
- } | {
1226
- hours: number;
1227
- }) & ({
1010
+ window: {
1228
1011
  seconds: number;
1229
1012
  } | {
1230
1013
  minutes: number;
1231
1014
  } | {
1232
1015
  hours: number;
1233
- } | undefined);
1016
+ };
1234
1017
  } | undefined;
1235
1018
  } | undefined;
1019
+ delay?: string | Date | undefined;
1020
+ dependentAttempt?: string | undefined;
1021
+ parentAttempt?: string | undefined;
1022
+ dependentBatch?: string | undefined;
1023
+ parentBatch?: string | undefined;
1024
+ lockToVersion?: string | undefined;
1236
1025
  concurrencyKey?: string | undefined;
1237
- idempotencyKey?: string | undefined;
1238
1026
  test?: boolean | undefined;
1239
- payloadType?: string | undefined;
1240
- delay?: string | Date | undefined;
1241
1027
  ttl?: string | number | undefined;
1242
- tags?: string | string[] | undefined;
1243
- maxAttempts?: number | undefined;
1244
- metadata?: any;
1245
1028
  metadataType?: string | undefined;
1246
- maxDuration?: number | undefined;
1247
1029
  } | undefined;
1030
+ payload?: any;
1031
+ context?: any;
1248
1032
  }>;
1249
1033
  export type TriggerTaskRequestBody = z.infer<typeof TriggerTaskRequestBody>;
1250
1034
  export declare const TriggerTaskResponse: z.ZodObject<{
@@ -1293,35 +1077,23 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1293
1077
  }, "strip", z.ZodTypeAny, {
1294
1078
  type: "fixed-window";
1295
1079
  limit: number;
1296
- window: ({
1297
- seconds: number;
1298
- } | {
1299
- minutes: number;
1300
- } | {
1301
- hours: number;
1302
- }) & ({
1080
+ window: {
1303
1081
  seconds: number;
1304
1082
  } | {
1305
1083
  minutes: number;
1306
1084
  } | {
1307
1085
  hours: number;
1308
- } | undefined);
1086
+ };
1309
1087
  }, {
1310
1088
  type: "fixed-window";
1311
1089
  limit: number;
1312
- window: ({
1090
+ window: {
1313
1091
  seconds: number;
1314
1092
  } | {
1315
1093
  minutes: number;
1316
1094
  } | {
1317
1095
  hours: number;
1318
- }) & ({
1319
- seconds: number;
1320
- } | {
1321
- minutes: number;
1322
- } | {
1323
- hours: number;
1324
- } | undefined);
1096
+ };
1325
1097
  }>, z.ZodObject<{
1326
1098
  type: z.ZodLiteral<"sliding-window">;
1327
1099
  limit: z.ZodNumber;
@@ -1347,35 +1119,23 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1347
1119
  }, "strip", z.ZodTypeAny, {
1348
1120
  type: "sliding-window";
1349
1121
  limit: number;
1350
- window: ({
1351
- seconds: number;
1352
- } | {
1353
- minutes: number;
1354
- } | {
1355
- hours: number;
1356
- }) & ({
1122
+ window: {
1357
1123
  seconds: number;
1358
1124
  } | {
1359
1125
  minutes: number;
1360
1126
  } | {
1361
1127
  hours: number;
1362
- } | undefined);
1128
+ };
1363
1129
  }, {
1364
1130
  type: "sliding-window";
1365
1131
  limit: number;
1366
- window: ({
1367
- seconds: number;
1368
- } | {
1369
- minutes: number;
1370
- } | {
1371
- hours: number;
1372
- }) & ({
1132
+ window: {
1373
1133
  seconds: number;
1374
1134
  } | {
1375
1135
  minutes: number;
1376
1136
  } | {
1377
1137
  hours: number;
1378
- } | undefined);
1138
+ };
1379
1139
  }>]>>;
1380
1140
  }, "strip", z.ZodTypeAny, {
1381
1141
  name?: string | undefined;
@@ -1383,35 +1143,23 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1383
1143
  rateLimit?: {
1384
1144
  type: "fixed-window";
1385
1145
  limit: number;
1386
- window: ({
1387
- seconds: number;
1388
- } | {
1389
- minutes: number;
1390
- } | {
1391
- hours: number;
1392
- }) & ({
1146
+ window: {
1393
1147
  seconds: number;
1394
1148
  } | {
1395
1149
  minutes: number;
1396
1150
  } | {
1397
1151
  hours: number;
1398
- } | undefined);
1152
+ };
1399
1153
  } | {
1400
1154
  type: "sliding-window";
1401
1155
  limit: number;
1402
- window: ({
1156
+ window: {
1403
1157
  seconds: number;
1404
1158
  } | {
1405
1159
  minutes: number;
1406
1160
  } | {
1407
1161
  hours: number;
1408
- }) & ({
1409
- seconds: number;
1410
- } | {
1411
- minutes: number;
1412
- } | {
1413
- hours: number;
1414
- } | undefined);
1162
+ };
1415
1163
  } | undefined;
1416
1164
  }, {
1417
1165
  name?: string | undefined;
@@ -1419,35 +1167,23 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1419
1167
  rateLimit?: {
1420
1168
  type: "fixed-window";
1421
1169
  limit: number;
1422
- window: ({
1170
+ window: {
1423
1171
  seconds: number;
1424
1172
  } | {
1425
1173
  minutes: number;
1426
1174
  } | {
1427
1175
  hours: number;
1428
- }) & ({
1429
- seconds: number;
1430
- } | {
1431
- minutes: number;
1432
- } | {
1433
- hours: number;
1434
- } | undefined);
1176
+ };
1435
1177
  } | {
1436
1178
  type: "sliding-window";
1437
1179
  limit: number;
1438
- window: ({
1439
- seconds: number;
1440
- } | {
1441
- minutes: number;
1442
- } | {
1443
- hours: number;
1444
- }) & ({
1180
+ window: {
1445
1181
  seconds: number;
1446
1182
  } | {
1447
1183
  minutes: number;
1448
1184
  } | {
1449
1185
  hours: number;
1450
- } | undefined);
1186
+ };
1451
1187
  } | undefined;
1452
1188
  }>>;
1453
1189
  concurrencyKey: z.ZodOptional<z.ZodString>;
@@ -1462,352 +1198,280 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1462
1198
  metadataType: z.ZodOptional<z.ZodString>;
1463
1199
  maxDuration: z.ZodOptional<z.ZodNumber>;
1464
1200
  }, "strip", z.ZodTypeAny, {
1465
- dependentAttempt?: string | undefined;
1466
- parentAttempt?: string | undefined;
1467
- dependentBatch?: string | undefined;
1468
- parentBatch?: string | undefined;
1469
- lockToVersion?: string | undefined;
1470
- queue?: {
1471
- name?: string | undefined;
1472
- concurrencyLimit?: number | undefined;
1473
- rateLimit?: {
1474
- type: "fixed-window";
1475
- limit: number;
1476
- window: ({
1477
- seconds: number;
1478
- } | {
1479
- minutes: number;
1480
- } | {
1481
- hours: number;
1482
- }) & ({
1483
- seconds: number;
1484
- } | {
1485
- minutes: number;
1486
- } | {
1487
- hours: number;
1488
- } | undefined);
1489
- } | {
1490
- type: "sliding-window";
1491
- limit: number;
1492
- window: ({
1493
- seconds: number;
1494
- } | {
1495
- minutes: number;
1496
- } | {
1497
- hours: number;
1498
- }) & ({
1499
- seconds: number;
1500
- } | {
1501
- minutes: number;
1502
- } | {
1503
- hours: number;
1504
- } | undefined);
1505
- } | undefined;
1506
- } | undefined;
1507
- concurrencyKey?: string | undefined;
1201
+ metadata?: any;
1508
1202
  idempotencyKey?: string | undefined;
1509
- test?: boolean | undefined;
1510
1203
  payloadType?: string | undefined;
1511
- delay?: string | Date | undefined;
1512
- ttl?: string | number | undefined;
1513
1204
  tags?: string | string[] | undefined;
1514
1205
  maxAttempts?: number | undefined;
1515
- metadata?: any;
1516
- metadataType?: string | undefined;
1517
1206
  maxDuration?: number | undefined;
1518
- }, {
1519
- dependentAttempt?: string | undefined;
1520
- parentAttempt?: string | undefined;
1521
- dependentBatch?: string | undefined;
1522
- parentBatch?: string | undefined;
1523
- lockToVersion?: string | undefined;
1524
1207
  queue?: {
1525
1208
  name?: string | undefined;
1526
1209
  concurrencyLimit?: number | undefined;
1527
1210
  rateLimit?: {
1528
1211
  type: "fixed-window";
1529
1212
  limit: number;
1530
- window: ({
1531
- seconds: number;
1532
- } | {
1533
- minutes: number;
1534
- } | {
1535
- hours: number;
1536
- }) & ({
1213
+ window: {
1537
1214
  seconds: number;
1538
1215
  } | {
1539
1216
  minutes: number;
1540
1217
  } | {
1541
1218
  hours: number;
1542
- } | undefined);
1219
+ };
1543
1220
  } | {
1544
1221
  type: "sliding-window";
1545
1222
  limit: number;
1546
- window: ({
1223
+ window: {
1547
1224
  seconds: number;
1548
1225
  } | {
1549
1226
  minutes: number;
1550
1227
  } | {
1551
1228
  hours: number;
1552
- }) & ({
1553
- seconds: number;
1554
- } | {
1555
- minutes: number;
1556
- } | {
1557
- hours: number;
1558
- } | undefined);
1229
+ };
1559
1230
  } | undefined;
1560
1231
  } | undefined;
1561
- concurrencyKey?: string | undefined;
1562
- idempotencyKey?: string | undefined;
1563
- test?: boolean | undefined;
1564
- payloadType?: string | undefined;
1565
1232
  delay?: string | Date | undefined;
1566
- ttl?: string | number | undefined;
1567
- tags?: string | string[] | undefined;
1568
- maxAttempts?: number | undefined;
1569
- metadata?: any;
1570
- metadataType?: string | undefined;
1571
- maxDuration?: number | undefined;
1572
- }>>;
1573
- }, "strip", z.ZodTypeAny, {
1574
- payload?: any;
1575
- context?: any;
1576
- options?: {
1577
1233
  dependentAttempt?: string | undefined;
1578
1234
  parentAttempt?: string | undefined;
1579
1235
  dependentBatch?: string | undefined;
1580
1236
  parentBatch?: string | undefined;
1581
1237
  lockToVersion?: string | undefined;
1238
+ concurrencyKey?: string | undefined;
1239
+ test?: boolean | undefined;
1240
+ ttl?: string | number | undefined;
1241
+ metadataType?: string | undefined;
1242
+ }, {
1243
+ metadata?: any;
1244
+ idempotencyKey?: string | undefined;
1245
+ payloadType?: string | undefined;
1246
+ tags?: string | string[] | undefined;
1247
+ maxAttempts?: number | undefined;
1248
+ maxDuration?: number | undefined;
1582
1249
  queue?: {
1583
1250
  name?: string | undefined;
1584
1251
  concurrencyLimit?: number | undefined;
1585
1252
  rateLimit?: {
1586
1253
  type: "fixed-window";
1587
1254
  limit: number;
1588
- window: ({
1255
+ window: {
1589
1256
  seconds: number;
1590
1257
  } | {
1591
1258
  minutes: number;
1592
1259
  } | {
1593
1260
  hours: number;
1594
- }) & ({
1261
+ };
1262
+ } | {
1263
+ type: "sliding-window";
1264
+ limit: number;
1265
+ window: {
1595
1266
  seconds: number;
1596
1267
  } | {
1597
1268
  minutes: number;
1598
1269
  } | {
1599
1270
  hours: number;
1600
- } | undefined);
1601
- } | {
1602
- type: "sliding-window";
1271
+ };
1272
+ } | undefined;
1273
+ } | undefined;
1274
+ delay?: string | Date | undefined;
1275
+ dependentAttempt?: string | undefined;
1276
+ parentAttempt?: string | undefined;
1277
+ dependentBatch?: string | undefined;
1278
+ parentBatch?: string | undefined;
1279
+ lockToVersion?: string | undefined;
1280
+ concurrencyKey?: string | undefined;
1281
+ test?: boolean | undefined;
1282
+ ttl?: string | number | undefined;
1283
+ metadataType?: string | undefined;
1284
+ }>>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ options?: {
1287
+ metadata?: any;
1288
+ idempotencyKey?: string | undefined;
1289
+ payloadType?: string | undefined;
1290
+ tags?: string | string[] | undefined;
1291
+ maxAttempts?: number | undefined;
1292
+ maxDuration?: number | undefined;
1293
+ queue?: {
1294
+ name?: string | undefined;
1295
+ concurrencyLimit?: number | undefined;
1296
+ rateLimit?: {
1297
+ type: "fixed-window";
1603
1298
  limit: number;
1604
- window: ({
1299
+ window: {
1605
1300
  seconds: number;
1606
1301
  } | {
1607
1302
  minutes: number;
1608
1303
  } | {
1609
1304
  hours: number;
1610
- }) & ({
1305
+ };
1306
+ } | {
1307
+ type: "sliding-window";
1308
+ limit: number;
1309
+ window: {
1611
1310
  seconds: number;
1612
1311
  } | {
1613
1312
  minutes: number;
1614
1313
  } | {
1615
1314
  hours: number;
1616
- } | undefined);
1315
+ };
1617
1316
  } | undefined;
1618
1317
  } | undefined;
1318
+ delay?: string | Date | undefined;
1319
+ dependentAttempt?: string | undefined;
1320
+ parentAttempt?: string | undefined;
1321
+ dependentBatch?: string | undefined;
1322
+ parentBatch?: string | undefined;
1323
+ lockToVersion?: string | undefined;
1619
1324
  concurrencyKey?: string | undefined;
1620
- idempotencyKey?: string | undefined;
1621
1325
  test?: boolean | undefined;
1622
- payloadType?: string | undefined;
1623
- delay?: string | Date | undefined;
1624
1326
  ttl?: string | number | undefined;
1625
- tags?: string | string[] | undefined;
1626
- maxAttempts?: number | undefined;
1627
- metadata?: any;
1628
1327
  metadataType?: string | undefined;
1629
- maxDuration?: number | undefined;
1630
1328
  } | undefined;
1631
- }, {
1632
1329
  payload?: any;
1633
1330
  context?: any;
1331
+ }, {
1634
1332
  options?: {
1635
- dependentAttempt?: string | undefined;
1636
- parentAttempt?: string | undefined;
1637
- dependentBatch?: string | undefined;
1638
- parentBatch?: string | undefined;
1639
- lockToVersion?: string | undefined;
1333
+ metadata?: any;
1334
+ idempotencyKey?: string | undefined;
1335
+ payloadType?: string | undefined;
1336
+ tags?: string | string[] | undefined;
1337
+ maxAttempts?: number | undefined;
1338
+ maxDuration?: number | undefined;
1640
1339
  queue?: {
1641
1340
  name?: string | undefined;
1642
1341
  concurrencyLimit?: number | undefined;
1643
1342
  rateLimit?: {
1644
1343
  type: "fixed-window";
1645
1344
  limit: number;
1646
- window: ({
1647
- seconds: number;
1648
- } | {
1649
- minutes: number;
1650
- } | {
1651
- hours: number;
1652
- }) & ({
1345
+ window: {
1653
1346
  seconds: number;
1654
1347
  } | {
1655
1348
  minutes: number;
1656
1349
  } | {
1657
1350
  hours: number;
1658
- } | undefined);
1351
+ };
1659
1352
  } | {
1660
1353
  type: "sliding-window";
1661
1354
  limit: number;
1662
- window: ({
1663
- seconds: number;
1664
- } | {
1665
- minutes: number;
1666
- } | {
1667
- hours: number;
1668
- }) & ({
1355
+ window: {
1669
1356
  seconds: number;
1670
1357
  } | {
1671
1358
  minutes: number;
1672
1359
  } | {
1673
1360
  hours: number;
1674
- } | undefined);
1361
+ };
1675
1362
  } | undefined;
1676
1363
  } | undefined;
1364
+ delay?: string | Date | undefined;
1365
+ dependentAttempt?: string | undefined;
1366
+ parentAttempt?: string | undefined;
1367
+ dependentBatch?: string | undefined;
1368
+ parentBatch?: string | undefined;
1369
+ lockToVersion?: string | undefined;
1677
1370
  concurrencyKey?: string | undefined;
1678
- idempotencyKey?: string | undefined;
1679
1371
  test?: boolean | undefined;
1680
- payloadType?: string | undefined;
1681
- delay?: string | Date | undefined;
1682
1372
  ttl?: string | number | undefined;
1683
- tags?: string | string[] | undefined;
1684
- maxAttempts?: number | undefined;
1685
- metadata?: any;
1686
1373
  metadataType?: string | undefined;
1687
- maxDuration?: number | undefined;
1688
1374
  } | undefined;
1375
+ payload?: any;
1376
+ context?: any;
1689
1377
  }>, "many">;
1690
1378
  dependentAttempt: z.ZodOptional<z.ZodString>;
1691
1379
  }, "strip", z.ZodTypeAny, {
1692
1380
  items: {
1693
- payload?: any;
1694
- context?: any;
1695
1381
  options?: {
1696
- dependentAttempt?: string | undefined;
1697
- parentAttempt?: string | undefined;
1698
- dependentBatch?: string | undefined;
1699
- parentBatch?: string | undefined;
1700
- lockToVersion?: string | undefined;
1382
+ metadata?: any;
1383
+ idempotencyKey?: string | undefined;
1384
+ payloadType?: string | undefined;
1385
+ tags?: string | string[] | undefined;
1386
+ maxAttempts?: number | undefined;
1387
+ maxDuration?: number | undefined;
1701
1388
  queue?: {
1702
1389
  name?: string | undefined;
1703
1390
  concurrencyLimit?: number | undefined;
1704
1391
  rateLimit?: {
1705
1392
  type: "fixed-window";
1706
1393
  limit: number;
1707
- window: ({
1708
- seconds: number;
1709
- } | {
1710
- minutes: number;
1711
- } | {
1712
- hours: number;
1713
- }) & ({
1394
+ window: {
1714
1395
  seconds: number;
1715
1396
  } | {
1716
1397
  minutes: number;
1717
1398
  } | {
1718
1399
  hours: number;
1719
- } | undefined);
1400
+ };
1720
1401
  } | {
1721
1402
  type: "sliding-window";
1722
1403
  limit: number;
1723
- window: ({
1404
+ window: {
1724
1405
  seconds: number;
1725
1406
  } | {
1726
1407
  minutes: number;
1727
1408
  } | {
1728
1409
  hours: number;
1729
- }) & ({
1730
- seconds: number;
1731
- } | {
1732
- minutes: number;
1733
- } | {
1734
- hours: number;
1735
- } | undefined);
1410
+ };
1736
1411
  } | undefined;
1737
1412
  } | undefined;
1413
+ delay?: string | Date | undefined;
1414
+ dependentAttempt?: string | undefined;
1415
+ parentAttempt?: string | undefined;
1416
+ dependentBatch?: string | undefined;
1417
+ parentBatch?: string | undefined;
1418
+ lockToVersion?: string | undefined;
1738
1419
  concurrencyKey?: string | undefined;
1739
- idempotencyKey?: string | undefined;
1740
1420
  test?: boolean | undefined;
1741
- payloadType?: string | undefined;
1742
- delay?: string | Date | undefined;
1743
1421
  ttl?: string | number | undefined;
1744
- tags?: string | string[] | undefined;
1745
- maxAttempts?: number | undefined;
1746
- metadata?: any;
1747
1422
  metadataType?: string | undefined;
1748
- maxDuration?: number | undefined;
1749
1423
  } | undefined;
1424
+ payload?: any;
1425
+ context?: any;
1750
1426
  }[];
1751
1427
  dependentAttempt?: string | undefined;
1752
1428
  }, {
1753
1429
  items: {
1754
- payload?: any;
1755
- context?: any;
1756
1430
  options?: {
1757
- dependentAttempt?: string | undefined;
1758
- parentAttempt?: string | undefined;
1759
- dependentBatch?: string | undefined;
1760
- parentBatch?: string | undefined;
1761
- lockToVersion?: string | undefined;
1431
+ metadata?: any;
1432
+ idempotencyKey?: string | undefined;
1433
+ payloadType?: string | undefined;
1434
+ tags?: string | string[] | undefined;
1435
+ maxAttempts?: number | undefined;
1436
+ maxDuration?: number | undefined;
1762
1437
  queue?: {
1763
1438
  name?: string | undefined;
1764
1439
  concurrencyLimit?: number | undefined;
1765
1440
  rateLimit?: {
1766
1441
  type: "fixed-window";
1767
1442
  limit: number;
1768
- window: ({
1769
- seconds: number;
1770
- } | {
1771
- minutes: number;
1772
- } | {
1773
- hours: number;
1774
- }) & ({
1443
+ window: {
1775
1444
  seconds: number;
1776
1445
  } | {
1777
1446
  minutes: number;
1778
1447
  } | {
1779
1448
  hours: number;
1780
- } | undefined);
1449
+ };
1781
1450
  } | {
1782
1451
  type: "sliding-window";
1783
1452
  limit: number;
1784
- window: ({
1785
- seconds: number;
1786
- } | {
1787
- minutes: number;
1788
- } | {
1789
- hours: number;
1790
- }) & ({
1453
+ window: {
1791
1454
  seconds: number;
1792
1455
  } | {
1793
1456
  minutes: number;
1794
1457
  } | {
1795
1458
  hours: number;
1796
- } | undefined);
1459
+ };
1797
1460
  } | undefined;
1798
1461
  } | undefined;
1462
+ delay?: string | Date | undefined;
1463
+ dependentAttempt?: string | undefined;
1464
+ parentAttempt?: string | undefined;
1465
+ dependentBatch?: string | undefined;
1466
+ parentBatch?: string | undefined;
1467
+ lockToVersion?: string | undefined;
1799
1468
  concurrencyKey?: string | undefined;
1800
- idempotencyKey?: string | undefined;
1801
1469
  test?: boolean | undefined;
1802
- payloadType?: string | undefined;
1803
- delay?: string | Date | undefined;
1804
1470
  ttl?: string | number | undefined;
1805
- tags?: string | string[] | undefined;
1806
- maxAttempts?: number | undefined;
1807
- metadata?: any;
1808
1471
  metadataType?: string | undefined;
1809
- maxDuration?: number | undefined;
1810
1472
  } | undefined;
1473
+ payload?: any;
1474
+ context?: any;
1811
1475
  }[];
1812
1476
  dependentAttempt?: string | undefined;
1813
1477
  }>;
@@ -1816,11 +1480,11 @@ export declare const BatchTriggerTaskResponse: z.ZodObject<{
1816
1480
  batchId: z.ZodString;
1817
1481
  runs: z.ZodArray<z.ZodString, "many">;
1818
1482
  }, "strip", z.ZodTypeAny, {
1819
- batchId: string;
1820
1483
  runs: string[];
1821
- }, {
1822
1484
  batchId: string;
1485
+ }, {
1823
1486
  runs: string[];
1487
+ batchId: string;
1824
1488
  }>;
1825
1489
  export type BatchTriggerTaskResponse = z.infer<typeof BatchTriggerTaskResponse>;
1826
1490
  export declare const GetBatchResponseBody: z.ZodObject<{
@@ -1830,25 +1494,25 @@ export declare const GetBatchResponseBody: z.ZodObject<{
1830
1494
  taskRunId: z.ZodString;
1831
1495
  status: z.ZodEnum<["PENDING", "CANCELED", "COMPLETED", "FAILED"]>;
1832
1496
  }, "strip", z.ZodTypeAny, {
1833
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1497
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1834
1498
  id: string;
1835
1499
  taskRunId: string;
1836
1500
  }, {
1837
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1501
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1838
1502
  id: string;
1839
1503
  taskRunId: string;
1840
1504
  }>, "many">;
1841
1505
  }, "strip", z.ZodTypeAny, {
1842
1506
  id: string;
1843
1507
  items: {
1844
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1508
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1845
1509
  id: string;
1846
1510
  taskRunId: string;
1847
1511
  }[];
1848
1512
  }, {
1849
1513
  id: string;
1850
1514
  items: {
1851
- status: "COMPLETED" | "CANCELED" | "FAILED" | "PENDING";
1515
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "FAILED";
1852
1516
  id: string;
1853
1517
  taskRunId: string;
1854
1518
  }[];
@@ -1857,17 +1521,17 @@ export type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
1857
1521
  export declare const AddTagsRequestBody: z.ZodObject<{
1858
1522
  tags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1859
1523
  }, "strip", z.ZodTypeAny, {
1860
- tags: (string | string[]) & (string | string[] | undefined);
1524
+ tags: string | string[];
1861
1525
  }, {
1862
- tags: (string | string[]) & (string | string[] | undefined);
1526
+ tags: string | string[];
1863
1527
  }>;
1864
1528
  export type AddTagsRequestBody = z.infer<typeof AddTagsRequestBody>;
1865
1529
  export declare const RescheduleRunRequestBody: z.ZodObject<{
1866
1530
  delay: z.ZodUnion<[z.ZodString, z.ZodDate]>;
1867
1531
  }, "strip", z.ZodTypeAny, {
1868
- delay: (string | Date) & (string | Date | undefined);
1532
+ delay: string | Date;
1869
1533
  }, {
1870
- delay: (string | Date) & (string | Date | undefined);
1534
+ delay: string | Date;
1871
1535
  }>;
1872
1536
  export type RescheduleRunRequestBody = z.infer<typeof RescheduleRunRequestBody>;
1873
1537
  export declare const GetEnvironmentVariablesResponseBody: z.ZodObject<{
@@ -1980,14 +1644,14 @@ export declare const InitializeDeploymentRequestBody: z.ZodObject<{
1980
1644
  }, "strip", z.ZodTypeAny, {
1981
1645
  contentHash: string;
1982
1646
  userId?: string | undefined;
1983
- registryHost?: string | undefined;
1984
1647
  selfHosted?: boolean | undefined;
1648
+ registryHost?: string | undefined;
1985
1649
  namespace?: string | undefined;
1986
1650
  }, {
1987
1651
  contentHash: string;
1988
1652
  userId?: string | undefined;
1989
- registryHost?: string | undefined;
1990
1653
  selfHosted?: boolean | undefined;
1654
+ registryHost?: string | undefined;
1991
1655
  namespace?: string | undefined;
1992
1656
  }>;
1993
1657
  export type InitializeDeploymentRequestBody = z.infer<typeof InitializeDeploymentRequestBody>;
@@ -2082,63 +1746,50 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2082
1746
  exportName: z.ZodString;
2083
1747
  }, "strip", z.ZodTypeAny, {
2084
1748
  id: string;
1749
+ slug: string;
2085
1750
  filePath: string;
2086
1751
  exportName: string;
2087
- slug: string;
2088
1752
  }, {
2089
1753
  id: string;
1754
+ slug: string;
2090
1755
  filePath: string;
2091
1756
  exportName: string;
2092
- slug: string;
2093
1757
  }>, "many">;
2094
1758
  }, "strip", z.ZodTypeAny, {
2095
1759
  id: string;
2096
1760
  version: string;
2097
1761
  tasks: {
2098
1762
  id: string;
1763
+ slug: string;
2099
1764
  filePath: string;
2100
1765
  exportName: string;
2101
- slug: string;
2102
1766
  }[];
2103
1767
  }, {
2104
1768
  id: string;
2105
1769
  version: string;
2106
1770
  tasks: {
2107
1771
  id: string;
1772
+ slug: string;
2108
1773
  filePath: string;
2109
1774
  exportName: string;
2110
- slug: string;
2111
1775
  }[];
2112
1776
  }>>;
2113
1777
  }, "strip", z.ZodTypeAny, {
2114
- status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1778
+ status: "PENDING" | "CANCELED" | "TIMED_OUT" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
2115
1779
  id: string;
2116
1780
  version: string;
2117
1781
  contentHash: string;
2118
1782
  shortCode: string;
2119
- imageReference?: string | null | undefined;
2120
- errorData?: {
2121
- message: string;
2122
- name: string;
2123
- stack?: string | undefined;
2124
- stderr?: string | undefined;
2125
- } | null | undefined;
2126
1783
  worker?: {
2127
1784
  id: string;
2128
1785
  version: string;
2129
1786
  tasks: {
2130
1787
  id: string;
1788
+ slug: string;
2131
1789
  filePath: string;
2132
1790
  exportName: string;
2133
- slug: string;
2134
1791
  }[];
2135
1792
  } | undefined;
2136
- }, {
2137
- status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
2138
- id: string;
2139
- version: string;
2140
- contentHash: string;
2141
- shortCode: string;
2142
1793
  imageReference?: string | null | undefined;
2143
1794
  errorData?: {
2144
1795
  message: string;
@@ -2146,16 +1797,29 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
2146
1797
  stack?: string | undefined;
2147
1798
  stderr?: string | undefined;
2148
1799
  } | null | undefined;
1800
+ }, {
1801
+ status: "PENDING" | "CANCELED" | "TIMED_OUT" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
1802
+ id: string;
1803
+ version: string;
1804
+ contentHash: string;
1805
+ shortCode: string;
2149
1806
  worker?: {
2150
1807
  id: string;
2151
1808
  version: string;
2152
1809
  tasks: {
2153
1810
  id: string;
1811
+ slug: string;
2154
1812
  filePath: string;
2155
1813
  exportName: string;
2156
- slug: string;
2157
1814
  }[];
2158
1815
  } | undefined;
1816
+ imageReference?: string | null | undefined;
1817
+ errorData?: {
1818
+ message: string;
1819
+ name: string;
1820
+ stack?: string | undefined;
1821
+ stderr?: string | undefined;
1822
+ } | null | undefined;
2159
1823
  }>;
2160
1824
  export type GetDeploymentResponseBody = z.infer<typeof GetDeploymentResponseBody>;
2161
1825
  export declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{
@@ -2219,17 +1883,17 @@ export declare const ScheduledTaskPayload: z.ZodObject<{
2219
1883
  upcoming: z.ZodArray<z.ZodDate, "many">;
2220
1884
  }, "strip", z.ZodTypeAny, {
2221
1885
  type: "DECLARATIVE" | "IMPERATIVE";
1886
+ timestamp: Date;
2222
1887
  timezone: string;
2223
1888
  scheduleId: string;
2224
- timestamp: Date;
2225
1889
  upcoming: Date[];
2226
1890
  lastTimestamp?: Date | undefined;
2227
1891
  externalId?: string | undefined;
2228
1892
  }, {
2229
1893
  type: "DECLARATIVE" | "IMPERATIVE";
1894
+ timestamp: Date;
2230
1895
  timezone: string;
2231
1896
  scheduleId: string;
2232
- timestamp: Date;
2233
1897
  upcoming: Date[];
2234
1898
  lastTimestamp?: Date | undefined;
2235
1899
  externalId?: string | undefined;
@@ -2276,17 +1940,17 @@ export declare const CreateScheduleOptions: z.ZodObject<{
2276
1940
  */
2277
1941
  timezone: z.ZodOptional<z.ZodString>;
2278
1942
  }, "strip", z.ZodTypeAny, {
2279
- task: string;
2280
1943
  cron: string;
1944
+ task: string;
2281
1945
  deduplicationKey: string;
2282
- externalId?: string | undefined;
2283
1946
  timezone?: string | undefined;
1947
+ externalId?: string | undefined;
2284
1948
  }, {
2285
- task: string;
2286
1949
  cron: string;
1950
+ task: string;
2287
1951
  deduplicationKey: string;
2288
- externalId?: string | undefined;
2289
1952
  timezone?: string | undefined;
1953
+ externalId?: string | undefined;
2290
1954
  }>;
2291
1955
  export type CreateScheduleOptions = z.infer<typeof CreateScheduleOptions>;
2292
1956
  export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
@@ -2330,13 +1994,13 @@ export declare const UpdateScheduleOptions: z.ZodObject<Omit<{
2330
1994
  */
2331
1995
  timezone: z.ZodOptional<z.ZodString>;
2332
1996
  }, "deduplicationKey">, "strip", z.ZodTypeAny, {
2333
- task: string;
2334
1997
  cron: string;
1998
+ task: string;
2335
1999
  timezone?: string | undefined;
2336
2000
  externalId?: string | undefined;
2337
2001
  }, {
2338
- task: string;
2339
2002
  cron: string;
2003
+ task: string;
2340
2004
  timezone?: string | undefined;
2341
2005
  externalId?: string | undefined;
2342
2006
  }>;
@@ -2346,12 +2010,12 @@ export declare const ScheduleGenerator: z.ZodObject<{
2346
2010
  expression: z.ZodString;
2347
2011
  description: z.ZodString;
2348
2012
  }, "strip", z.ZodTypeAny, {
2349
- description: string;
2350
2013
  type: "CRON";
2014
+ description: string;
2351
2015
  expression: string;
2352
2016
  }, {
2353
- description: string;
2354
2017
  type: "CRON";
2018
+ description: string;
2355
2019
  expression: string;
2356
2020
  }>;
2357
2021
  export type ScheduleGenerator = z.infer<typeof ScheduleGenerator>;
@@ -2367,12 +2031,12 @@ export declare const ScheduleObject: z.ZodObject<{
2367
2031
  expression: z.ZodString;
2368
2032
  description: z.ZodString;
2369
2033
  }, "strip", z.ZodTypeAny, {
2370
- description: string;
2371
2034
  type: "CRON";
2035
+ description: string;
2372
2036
  expression: string;
2373
2037
  }, {
2374
- description: string;
2375
2038
  type: "CRON";
2039
+ description: string;
2376
2040
  expression: string;
2377
2041
  }>;
2378
2042
  timezone: z.ZodString;
@@ -2393,40 +2057,40 @@ export declare const ScheduleObject: z.ZodObject<{
2393
2057
  }, "strip", z.ZodTypeAny, {
2394
2058
  type: "DECLARATIVE" | "IMPERATIVE";
2395
2059
  id: string;
2060
+ active: boolean;
2396
2061
  task: string;
2397
2062
  timezone: string;
2398
2063
  generator: {
2399
- description: string;
2400
2064
  type: "CRON";
2065
+ description: string;
2401
2066
  expression: string;
2402
2067
  };
2403
- active: boolean;
2404
2068
  environments: {
2405
2069
  type: string;
2406
2070
  id: string;
2407
2071
  userName?: string | null | undefined;
2408
2072
  }[];
2409
- deduplicationKey?: string | null | undefined;
2410
2073
  externalId?: string | null | undefined;
2074
+ deduplicationKey?: string | null | undefined;
2411
2075
  nextRun?: Date | null | undefined;
2412
2076
  }, {
2413
2077
  type: "DECLARATIVE" | "IMPERATIVE";
2414
2078
  id: string;
2079
+ active: boolean;
2415
2080
  task: string;
2416
2081
  timezone: string;
2417
2082
  generator: {
2418
- description: string;
2419
2083
  type: "CRON";
2084
+ description: string;
2420
2085
  expression: string;
2421
2086
  };
2422
- active: boolean;
2423
2087
  environments: {
2424
2088
  type: string;
2425
2089
  id: string;
2426
2090
  userName?: string | null | undefined;
2427
2091
  }[];
2428
- deduplicationKey?: string | null | undefined;
2429
2092
  externalId?: string | null | undefined;
2093
+ deduplicationKey?: string | null | undefined;
2430
2094
  nextRun?: Date | null | undefined;
2431
2095
  }>;
2432
2096
  export type ScheduleObject = z.infer<typeof ScheduleObject>;
@@ -2451,12 +2115,12 @@ export declare const ListSchedulesResult: z.ZodObject<{
2451
2115
  expression: z.ZodString;
2452
2116
  description: z.ZodString;
2453
2117
  }, "strip", z.ZodTypeAny, {
2454
- description: string;
2455
2118
  type: "CRON";
2119
+ description: string;
2456
2120
  expression: string;
2457
2121
  }, {
2458
- description: string;
2459
2122
  type: "CRON";
2123
+ description: string;
2460
2124
  expression: string;
2461
2125
  }>;
2462
2126
  timezone: z.ZodString;
@@ -2477,40 +2141,40 @@ export declare const ListSchedulesResult: z.ZodObject<{
2477
2141
  }, "strip", z.ZodTypeAny, {
2478
2142
  type: "DECLARATIVE" | "IMPERATIVE";
2479
2143
  id: string;
2144
+ active: boolean;
2480
2145
  task: string;
2481
2146
  timezone: string;
2482
2147
  generator: {
2483
- description: string;
2484
2148
  type: "CRON";
2149
+ description: string;
2485
2150
  expression: string;
2486
2151
  };
2487
- active: boolean;
2488
2152
  environments: {
2489
2153
  type: string;
2490
2154
  id: string;
2491
2155
  userName?: string | null | undefined;
2492
2156
  }[];
2493
- deduplicationKey?: string | null | undefined;
2494
2157
  externalId?: string | null | undefined;
2158
+ deduplicationKey?: string | null | undefined;
2495
2159
  nextRun?: Date | null | undefined;
2496
2160
  }, {
2497
2161
  type: "DECLARATIVE" | "IMPERATIVE";
2498
2162
  id: string;
2163
+ active: boolean;
2499
2164
  task: string;
2500
2165
  timezone: string;
2501
2166
  generator: {
2502
- description: string;
2503
2167
  type: "CRON";
2168
+ description: string;
2504
2169
  expression: string;
2505
2170
  };
2506
- active: boolean;
2507
2171
  environments: {
2508
2172
  type: string;
2509
2173
  id: string;
2510
2174
  userName?: string | null | undefined;
2511
2175
  }[];
2512
- deduplicationKey?: string | null | undefined;
2513
2176
  externalId?: string | null | undefined;
2177
+ deduplicationKey?: string | null | undefined;
2514
2178
  nextRun?: Date | null | undefined;
2515
2179
  }>, "many">;
2516
2180
  pagination: z.ZodObject<{
@@ -2530,21 +2194,21 @@ export declare const ListSchedulesResult: z.ZodObject<{
2530
2194
  data: {
2531
2195
  type: "DECLARATIVE" | "IMPERATIVE";
2532
2196
  id: string;
2197
+ active: boolean;
2533
2198
  task: string;
2534
2199
  timezone: string;
2535
2200
  generator: {
2536
- description: string;
2537
2201
  type: "CRON";
2202
+ description: string;
2538
2203
  expression: string;
2539
2204
  };
2540
- active: boolean;
2541
2205
  environments: {
2542
2206
  type: string;
2543
2207
  id: string;
2544
2208
  userName?: string | null | undefined;
2545
2209
  }[];
2546
- deduplicationKey?: string | null | undefined;
2547
2210
  externalId?: string | null | undefined;
2211
+ deduplicationKey?: string | null | undefined;
2548
2212
  nextRun?: Date | null | undefined;
2549
2213
  }[];
2550
2214
  pagination: {
@@ -2556,21 +2220,21 @@ export declare const ListSchedulesResult: z.ZodObject<{
2556
2220
  data: {
2557
2221
  type: "DECLARATIVE" | "IMPERATIVE";
2558
2222
  id: string;
2223
+ active: boolean;
2559
2224
  task: string;
2560
2225
  timezone: string;
2561
2226
  generator: {
2562
- description: string;
2563
2227
  type: "CRON";
2228
+ description: string;
2564
2229
  expression: string;
2565
2230
  };
2566
- active: boolean;
2567
2231
  environments: {
2568
2232
  type: string;
2569
2233
  id: string;
2570
2234
  userName?: string | null | undefined;
2571
2235
  }[];
2572
- deduplicationKey?: string | null | undefined;
2573
2236
  externalId?: string | null | undefined;
2237
+ deduplicationKey?: string | null | undefined;
2574
2238
  nextRun?: Date | null | undefined;
2575
2239
  }[];
2576
2240
  pagination: {
@@ -2626,19 +2290,19 @@ export declare const RunScheduleDetails: z.ZodObject<{
2626
2290
  expression: z.ZodString;
2627
2291
  description: z.ZodString;
2628
2292
  }, "strip", z.ZodTypeAny, {
2629
- description: string;
2630
2293
  type: "CRON";
2294
+ description: string;
2631
2295
  expression: string;
2632
2296
  }, {
2633
- description: string;
2634
2297
  type: "CRON";
2298
+ description: string;
2635
2299
  expression: string;
2636
2300
  }>;
2637
2301
  }, "strip", z.ZodTypeAny, {
2638
2302
  id: string;
2639
2303
  generator: {
2640
- description: string;
2641
2304
  type: "CRON";
2305
+ description: string;
2642
2306
  expression: string;
2643
2307
  };
2644
2308
  externalId?: string | undefined;
@@ -2646,8 +2310,8 @@ export declare const RunScheduleDetails: z.ZodObject<{
2646
2310
  }, {
2647
2311
  id: string;
2648
2312
  generator: {
2649
- description: string;
2650
2313
  type: "CRON";
2314
+ description: string;
2651
2315
  expression: string;
2652
2316
  };
2653
2317
  externalId?: string | undefined;
@@ -2685,61 +2349,61 @@ export declare const RelatedRunDetails: z.ZodObject<{
2685
2349
  durationMs: z.ZodNumber;
2686
2350
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2687
2351
  }, "strip", z.ZodTypeAny, {
2688
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2352
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2689
2353
  id: string;
2690
- tags: string[];
2354
+ updatedAt: Date;
2691
2355
  isTest: boolean;
2692
2356
  createdAt: Date;
2357
+ tags: string[];
2693
2358
  durationMs: number;
2694
2359
  costInCents: number;
2695
2360
  baseCostInCents: number;
2696
2361
  taskIdentifier: string;
2697
2362
  depth: number;
2698
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2363
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2699
2364
  isQueued: boolean;
2700
2365
  isExecuting: boolean;
2701
2366
  isCompleted: boolean;
2702
2367
  isSuccess: boolean;
2703
2368
  isFailed: boolean;
2704
2369
  isCancelled: boolean;
2705
- updatedAt: Date;
2706
- batchId?: string | undefined;
2707
- idempotencyKey?: string | undefined;
2370
+ metadata?: Record<string, any> | undefined;
2708
2371
  version?: string | undefined;
2709
2372
  startedAt?: Date | undefined;
2373
+ idempotencyKey?: string | undefined;
2374
+ ttl?: string | undefined;
2375
+ batchId?: string | undefined;
2710
2376
  finishedAt?: Date | undefined;
2711
2377
  delayedUntil?: Date | undefined;
2712
- ttl?: string | undefined;
2713
2378
  expiredAt?: Date | undefined;
2714
- metadata?: Record<string, any> | undefined;
2715
2379
  }, {
2716
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2380
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2717
2381
  id: string;
2718
- tags: string[];
2382
+ updatedAt: Date;
2719
2383
  isTest: boolean;
2720
2384
  createdAt: Date;
2385
+ tags: string[];
2721
2386
  durationMs: number;
2722
2387
  costInCents: number;
2723
2388
  baseCostInCents: number;
2724
2389
  taskIdentifier: string;
2725
2390
  depth: number;
2726
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2391
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2727
2392
  isQueued: boolean;
2728
2393
  isExecuting: boolean;
2729
2394
  isCompleted: boolean;
2730
2395
  isSuccess: boolean;
2731
2396
  isFailed: boolean;
2732
2397
  isCancelled: boolean;
2733
- updatedAt: Date;
2734
- batchId?: string | undefined;
2735
- idempotencyKey?: string | undefined;
2398
+ metadata?: Record<string, any> | undefined;
2736
2399
  version?: string | undefined;
2737
2400
  startedAt?: Date | undefined;
2401
+ idempotencyKey?: string | undefined;
2402
+ ttl?: string | undefined;
2403
+ batchId?: string | undefined;
2738
2404
  finishedAt?: Date | undefined;
2739
2405
  delayedUntil?: Date | undefined;
2740
- ttl?: string | undefined;
2741
2406
  expiredAt?: Date | undefined;
2742
- metadata?: Record<string, any> | undefined;
2743
2407
  }>;
2744
2408
  export declare const RetrieveRunResponse: z.ZodObject<{
2745
2409
  payload: z.ZodOptional<z.ZodAny>;
@@ -2768,19 +2432,19 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2768
2432
  expression: z.ZodString;
2769
2433
  description: z.ZodString;
2770
2434
  }, "strip", z.ZodTypeAny, {
2771
- description: string;
2772
2435
  type: "CRON";
2436
+ description: string;
2773
2437
  expression: string;
2774
2438
  }, {
2775
- description: string;
2776
2439
  type: "CRON";
2440
+ description: string;
2777
2441
  expression: string;
2778
2442
  }>;
2779
2443
  }, "strip", z.ZodTypeAny, {
2780
2444
  id: string;
2781
2445
  generator: {
2782
- description: string;
2783
2446
  type: "CRON";
2447
+ description: string;
2784
2448
  expression: string;
2785
2449
  };
2786
2450
  externalId?: string | undefined;
@@ -2788,8 +2452,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2788
2452
  }, {
2789
2453
  id: string;
2790
2454
  generator: {
2791
- description: string;
2792
2455
  type: "CRON";
2456
+ description: string;
2793
2457
  expression: string;
2794
2458
  };
2795
2459
  externalId?: string | undefined;
@@ -2825,61 +2489,61 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2825
2489
  durationMs: z.ZodNumber;
2826
2490
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2827
2491
  }, "strip", z.ZodTypeAny, {
2828
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2492
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2829
2493
  id: string;
2830
- tags: string[];
2494
+ updatedAt: Date;
2831
2495
  isTest: boolean;
2832
2496
  createdAt: Date;
2497
+ tags: string[];
2833
2498
  durationMs: number;
2834
2499
  costInCents: number;
2835
2500
  baseCostInCents: number;
2836
2501
  taskIdentifier: string;
2837
2502
  depth: number;
2838
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2503
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2839
2504
  isQueued: boolean;
2840
2505
  isExecuting: boolean;
2841
2506
  isCompleted: boolean;
2842
2507
  isSuccess: boolean;
2843
2508
  isFailed: boolean;
2844
2509
  isCancelled: boolean;
2845
- updatedAt: Date;
2846
- batchId?: string | undefined;
2847
- idempotencyKey?: string | undefined;
2510
+ metadata?: Record<string, any> | undefined;
2848
2511
  version?: string | undefined;
2849
2512
  startedAt?: Date | undefined;
2513
+ idempotencyKey?: string | undefined;
2514
+ ttl?: string | undefined;
2515
+ batchId?: string | undefined;
2850
2516
  finishedAt?: Date | undefined;
2851
2517
  delayedUntil?: Date | undefined;
2852
- ttl?: string | undefined;
2853
2518
  expiredAt?: Date | undefined;
2854
- metadata?: Record<string, any> | undefined;
2855
2519
  }, {
2856
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2520
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2857
2521
  id: string;
2858
- tags: string[];
2522
+ updatedAt: Date;
2859
2523
  isTest: boolean;
2860
2524
  createdAt: Date;
2525
+ tags: string[];
2861
2526
  durationMs: number;
2862
2527
  costInCents: number;
2863
2528
  baseCostInCents: number;
2864
2529
  taskIdentifier: string;
2865
2530
  depth: number;
2866
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2531
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2867
2532
  isQueued: boolean;
2868
2533
  isExecuting: boolean;
2869
2534
  isCompleted: boolean;
2870
2535
  isSuccess: boolean;
2871
2536
  isFailed: boolean;
2872
2537
  isCancelled: boolean;
2873
- updatedAt: Date;
2874
- batchId?: string | undefined;
2875
- idempotencyKey?: string | undefined;
2538
+ metadata?: Record<string, any> | undefined;
2876
2539
  version?: string | undefined;
2877
2540
  startedAt?: Date | undefined;
2541
+ idempotencyKey?: string | undefined;
2542
+ ttl?: string | undefined;
2543
+ batchId?: string | undefined;
2878
2544
  finishedAt?: Date | undefined;
2879
2545
  delayedUntil?: Date | undefined;
2880
- ttl?: string | undefined;
2881
2546
  expiredAt?: Date | undefined;
2882
- metadata?: Record<string, any> | undefined;
2883
2547
  }>>;
2884
2548
  parent: z.ZodOptional<z.ZodObject<{
2885
2549
  depth: z.ZodNumber;
@@ -2910,61 +2574,61 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2910
2574
  durationMs: z.ZodNumber;
2911
2575
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2912
2576
  }, "strip", z.ZodTypeAny, {
2913
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2577
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2914
2578
  id: string;
2915
- tags: string[];
2579
+ updatedAt: Date;
2916
2580
  isTest: boolean;
2917
2581
  createdAt: Date;
2582
+ tags: string[];
2918
2583
  durationMs: number;
2919
2584
  costInCents: number;
2920
2585
  baseCostInCents: number;
2921
2586
  taskIdentifier: string;
2922
2587
  depth: number;
2923
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2588
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2924
2589
  isQueued: boolean;
2925
2590
  isExecuting: boolean;
2926
2591
  isCompleted: boolean;
2927
2592
  isSuccess: boolean;
2928
2593
  isFailed: boolean;
2929
2594
  isCancelled: boolean;
2930
- updatedAt: Date;
2931
- batchId?: string | undefined;
2932
- idempotencyKey?: string | undefined;
2595
+ metadata?: Record<string, any> | undefined;
2933
2596
  version?: string | undefined;
2934
2597
  startedAt?: Date | undefined;
2598
+ idempotencyKey?: string | undefined;
2599
+ ttl?: string | undefined;
2600
+ batchId?: string | undefined;
2935
2601
  finishedAt?: Date | undefined;
2936
2602
  delayedUntil?: Date | undefined;
2937
- ttl?: string | undefined;
2938
2603
  expiredAt?: Date | undefined;
2939
- metadata?: Record<string, any> | undefined;
2940
2604
  }, {
2941
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2605
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2942
2606
  id: string;
2943
- tags: string[];
2607
+ updatedAt: Date;
2944
2608
  isTest: boolean;
2945
2609
  createdAt: Date;
2610
+ tags: string[];
2946
2611
  durationMs: number;
2947
2612
  costInCents: number;
2948
2613
  baseCostInCents: number;
2949
2614
  taskIdentifier: string;
2950
2615
  depth: number;
2951
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2616
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2952
2617
  isQueued: boolean;
2953
2618
  isExecuting: boolean;
2954
2619
  isCompleted: boolean;
2955
2620
  isSuccess: boolean;
2956
2621
  isFailed: boolean;
2957
2622
  isCancelled: boolean;
2958
- updatedAt: Date;
2959
- batchId?: string | undefined;
2960
- idempotencyKey?: string | undefined;
2623
+ metadata?: Record<string, any> | undefined;
2961
2624
  version?: string | undefined;
2962
2625
  startedAt?: Date | undefined;
2626
+ idempotencyKey?: string | undefined;
2627
+ ttl?: string | undefined;
2628
+ batchId?: string | undefined;
2963
2629
  finishedAt?: Date | undefined;
2964
2630
  delayedUntil?: Date | undefined;
2965
- ttl?: string | undefined;
2966
2631
  expiredAt?: Date | undefined;
2967
- metadata?: Record<string, any> | undefined;
2968
2632
  }>>;
2969
2633
  children: z.ZodOptional<z.ZodArray<z.ZodObject<{
2970
2634
  depth: z.ZodNumber;
@@ -2995,237 +2659,237 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2995
2659
  durationMs: z.ZodNumber;
2996
2660
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2997
2661
  }, "strip", z.ZodTypeAny, {
2998
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2662
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2999
2663
  id: string;
3000
- tags: string[];
2664
+ updatedAt: Date;
3001
2665
  isTest: boolean;
3002
2666
  createdAt: Date;
2667
+ tags: string[];
3003
2668
  durationMs: number;
3004
2669
  costInCents: number;
3005
2670
  baseCostInCents: number;
3006
2671
  taskIdentifier: string;
3007
2672
  depth: number;
3008
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2673
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3009
2674
  isQueued: boolean;
3010
2675
  isExecuting: boolean;
3011
2676
  isCompleted: boolean;
3012
2677
  isSuccess: boolean;
3013
2678
  isFailed: boolean;
3014
2679
  isCancelled: boolean;
3015
- updatedAt: Date;
3016
- batchId?: string | undefined;
3017
- idempotencyKey?: string | undefined;
2680
+ metadata?: Record<string, any> | undefined;
3018
2681
  version?: string | undefined;
3019
2682
  startedAt?: Date | undefined;
2683
+ idempotencyKey?: string | undefined;
2684
+ ttl?: string | undefined;
2685
+ batchId?: string | undefined;
3020
2686
  finishedAt?: Date | undefined;
3021
2687
  delayedUntil?: Date | undefined;
3022
- ttl?: string | undefined;
3023
2688
  expiredAt?: Date | undefined;
3024
- metadata?: Record<string, any> | undefined;
3025
2689
  }, {
3026
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2690
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3027
2691
  id: string;
3028
- tags: string[];
2692
+ updatedAt: Date;
3029
2693
  isTest: boolean;
3030
2694
  createdAt: Date;
2695
+ tags: string[];
3031
2696
  durationMs: number;
3032
2697
  costInCents: number;
3033
2698
  baseCostInCents: number;
3034
2699
  taskIdentifier: string;
3035
2700
  depth: number;
3036
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2701
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3037
2702
  isQueued: boolean;
3038
2703
  isExecuting: boolean;
3039
2704
  isCompleted: boolean;
3040
2705
  isSuccess: boolean;
3041
2706
  isFailed: boolean;
3042
2707
  isCancelled: boolean;
3043
- updatedAt: Date;
3044
- batchId?: string | undefined;
3045
- idempotencyKey?: string | undefined;
2708
+ metadata?: Record<string, any> | undefined;
3046
2709
  version?: string | undefined;
3047
2710
  startedAt?: Date | undefined;
2711
+ idempotencyKey?: string | undefined;
2712
+ ttl?: string | undefined;
2713
+ batchId?: string | undefined;
3048
2714
  finishedAt?: Date | undefined;
3049
2715
  delayedUntil?: Date | undefined;
3050
- ttl?: string | undefined;
3051
2716
  expiredAt?: Date | undefined;
3052
- metadata?: Record<string, any> | undefined;
3053
2717
  }>, "many">>;
3054
2718
  }, "strip", z.ZodTypeAny, {
3055
2719
  root?: {
3056
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2720
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3057
2721
  id: string;
3058
- tags: string[];
2722
+ updatedAt: Date;
3059
2723
  isTest: boolean;
3060
2724
  createdAt: Date;
2725
+ tags: string[];
3061
2726
  durationMs: number;
3062
2727
  costInCents: number;
3063
2728
  baseCostInCents: number;
3064
2729
  taskIdentifier: string;
3065
2730
  depth: number;
3066
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2731
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3067
2732
  isQueued: boolean;
3068
2733
  isExecuting: boolean;
3069
2734
  isCompleted: boolean;
3070
2735
  isSuccess: boolean;
3071
2736
  isFailed: boolean;
3072
2737
  isCancelled: boolean;
3073
- updatedAt: Date;
3074
- batchId?: string | undefined;
3075
- idempotencyKey?: string | undefined;
2738
+ metadata?: Record<string, any> | undefined;
3076
2739
  version?: string | undefined;
3077
2740
  startedAt?: Date | undefined;
2741
+ idempotencyKey?: string | undefined;
2742
+ ttl?: string | undefined;
2743
+ batchId?: string | undefined;
3078
2744
  finishedAt?: Date | undefined;
3079
2745
  delayedUntil?: Date | undefined;
3080
- ttl?: string | undefined;
3081
2746
  expiredAt?: Date | undefined;
3082
- metadata?: Record<string, any> | undefined;
3083
2747
  } | undefined;
3084
2748
  parent?: {
3085
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2749
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3086
2750
  id: string;
3087
- tags: string[];
2751
+ updatedAt: Date;
3088
2752
  isTest: boolean;
3089
2753
  createdAt: Date;
2754
+ tags: string[];
3090
2755
  durationMs: number;
3091
2756
  costInCents: number;
3092
2757
  baseCostInCents: number;
3093
2758
  taskIdentifier: string;
3094
2759
  depth: number;
3095
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2760
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3096
2761
  isQueued: boolean;
3097
2762
  isExecuting: boolean;
3098
2763
  isCompleted: boolean;
3099
2764
  isSuccess: boolean;
3100
2765
  isFailed: boolean;
3101
2766
  isCancelled: boolean;
3102
- updatedAt: Date;
3103
- batchId?: string | undefined;
3104
- idempotencyKey?: string | undefined;
2767
+ metadata?: Record<string, any> | undefined;
3105
2768
  version?: string | undefined;
3106
2769
  startedAt?: Date | undefined;
2770
+ idempotencyKey?: string | undefined;
2771
+ ttl?: string | undefined;
2772
+ batchId?: string | undefined;
3107
2773
  finishedAt?: Date | undefined;
3108
2774
  delayedUntil?: Date | undefined;
3109
- ttl?: string | undefined;
3110
2775
  expiredAt?: Date | undefined;
3111
- metadata?: Record<string, any> | undefined;
3112
2776
  } | undefined;
3113
2777
  children?: {
3114
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2778
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3115
2779
  id: string;
3116
- tags: string[];
2780
+ updatedAt: Date;
3117
2781
  isTest: boolean;
3118
2782
  createdAt: Date;
2783
+ tags: string[];
3119
2784
  durationMs: number;
3120
2785
  costInCents: number;
3121
2786
  baseCostInCents: number;
3122
2787
  taskIdentifier: string;
3123
2788
  depth: number;
3124
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2789
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3125
2790
  isQueued: boolean;
3126
2791
  isExecuting: boolean;
3127
2792
  isCompleted: boolean;
3128
2793
  isSuccess: boolean;
3129
2794
  isFailed: boolean;
3130
2795
  isCancelled: boolean;
3131
- updatedAt: Date;
3132
- batchId?: string | undefined;
3133
- idempotencyKey?: string | undefined;
2796
+ metadata?: Record<string, any> | undefined;
3134
2797
  version?: string | undefined;
3135
2798
  startedAt?: Date | undefined;
2799
+ idempotencyKey?: string | undefined;
2800
+ ttl?: string | undefined;
2801
+ batchId?: string | undefined;
3136
2802
  finishedAt?: Date | undefined;
3137
2803
  delayedUntil?: Date | undefined;
3138
- ttl?: string | undefined;
3139
2804
  expiredAt?: Date | undefined;
3140
- metadata?: Record<string, any> | undefined;
3141
2805
  }[] | undefined;
3142
2806
  }, {
3143
2807
  root?: {
3144
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2808
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3145
2809
  id: string;
3146
- tags: string[];
2810
+ updatedAt: Date;
3147
2811
  isTest: boolean;
3148
2812
  createdAt: Date;
2813
+ tags: string[];
3149
2814
  durationMs: number;
3150
2815
  costInCents: number;
3151
2816
  baseCostInCents: number;
3152
2817
  taskIdentifier: string;
3153
2818
  depth: number;
3154
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2819
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3155
2820
  isQueued: boolean;
3156
2821
  isExecuting: boolean;
3157
2822
  isCompleted: boolean;
3158
2823
  isSuccess: boolean;
3159
2824
  isFailed: boolean;
3160
2825
  isCancelled: boolean;
3161
- updatedAt: Date;
3162
- batchId?: string | undefined;
3163
- idempotencyKey?: string | undefined;
2826
+ metadata?: Record<string, any> | undefined;
3164
2827
  version?: string | undefined;
3165
2828
  startedAt?: Date | undefined;
2829
+ idempotencyKey?: string | undefined;
2830
+ ttl?: string | undefined;
2831
+ batchId?: string | undefined;
3166
2832
  finishedAt?: Date | undefined;
3167
2833
  delayedUntil?: Date | undefined;
3168
- ttl?: string | undefined;
3169
2834
  expiredAt?: Date | undefined;
3170
- metadata?: Record<string, any> | undefined;
3171
2835
  } | undefined;
3172
2836
  parent?: {
3173
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2837
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3174
2838
  id: string;
3175
- tags: string[];
2839
+ updatedAt: Date;
3176
2840
  isTest: boolean;
3177
2841
  createdAt: Date;
2842
+ tags: string[];
3178
2843
  durationMs: number;
3179
2844
  costInCents: number;
3180
2845
  baseCostInCents: number;
3181
2846
  taskIdentifier: string;
3182
2847
  depth: number;
3183
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2848
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3184
2849
  isQueued: boolean;
3185
2850
  isExecuting: boolean;
3186
2851
  isCompleted: boolean;
3187
2852
  isSuccess: boolean;
3188
2853
  isFailed: boolean;
3189
2854
  isCancelled: boolean;
3190
- updatedAt: Date;
3191
- batchId?: string | undefined;
3192
- idempotencyKey?: string | undefined;
2855
+ metadata?: Record<string, any> | undefined;
3193
2856
  version?: string | undefined;
3194
2857
  startedAt?: Date | undefined;
2858
+ idempotencyKey?: string | undefined;
2859
+ ttl?: string | undefined;
2860
+ batchId?: string | undefined;
3195
2861
  finishedAt?: Date | undefined;
3196
2862
  delayedUntil?: Date | undefined;
3197
- ttl?: string | undefined;
3198
2863
  expiredAt?: Date | undefined;
3199
- metadata?: Record<string, any> | undefined;
3200
2864
  } | undefined;
3201
2865
  children?: {
3202
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2866
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3203
2867
  id: string;
3204
- tags: string[];
2868
+ updatedAt: Date;
3205
2869
  isTest: boolean;
3206
2870
  createdAt: Date;
2871
+ tags: string[];
3207
2872
  durationMs: number;
3208
2873
  costInCents: number;
3209
2874
  baseCostInCents: number;
3210
2875
  taskIdentifier: string;
3211
2876
  depth: number;
3212
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
2877
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3213
2878
  isQueued: boolean;
3214
2879
  isExecuting: boolean;
3215
2880
  isCompleted: boolean;
3216
2881
  isSuccess: boolean;
3217
2882
  isFailed: boolean;
3218
2883
  isCancelled: boolean;
3219
- updatedAt: Date;
3220
- batchId?: string | undefined;
3221
- idempotencyKey?: string | undefined;
2884
+ metadata?: Record<string, any> | undefined;
3222
2885
  version?: string | undefined;
3223
2886
  startedAt?: Date | undefined;
2887
+ idempotencyKey?: string | undefined;
2888
+ ttl?: string | undefined;
2889
+ batchId?: string | undefined;
3224
2890
  finishedAt?: Date | undefined;
3225
2891
  delayedUntil?: Date | undefined;
3226
- ttl?: string | undefined;
3227
2892
  expiredAt?: Date | undefined;
3228
- metadata?: Record<string, any> | undefined;
3229
2893
  }[] | undefined;
3230
2894
  }>;
3231
2895
  attempts: z.ZodArray<z.ZodOptional<z.ZodObject<{
@@ -3249,10 +2913,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3249
2913
  stackTrace?: string | undefined;
3250
2914
  }>>;
3251
2915
  }, "strip", z.ZodTypeAny, {
3252
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2916
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
3253
2917
  id: string;
3254
- createdAt: Date;
3255
2918
  updatedAt: Date;
2919
+ createdAt: Date;
3256
2920
  startedAt?: Date | undefined;
3257
2921
  completedAt?: Date | undefined;
3258
2922
  error?: {
@@ -3261,10 +2925,10 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3261
2925
  stackTrace?: string | undefined;
3262
2926
  } | undefined;
3263
2927
  }, {
3264
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
2928
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
3265
2929
  id: string;
3266
- createdAt: Date;
3267
2930
  updatedAt: Date;
2931
+ createdAt: Date;
3268
2932
  startedAt?: Date | undefined;
3269
2933
  completedAt?: Date | undefined;
3270
2934
  error?: {
@@ -3302,305 +2966,305 @@ export declare const RetrieveRunResponse: z.ZodObject<{
3302
2966
  durationMs: z.ZodNumber;
3303
2967
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3304
2968
  }, "strip", z.ZodTypeAny, {
3305
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
2969
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3306
2970
  id: string;
3307
- tags: string[];
2971
+ attempts: ({
2972
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
2973
+ id: string;
2974
+ updatedAt: Date;
2975
+ createdAt: Date;
2976
+ startedAt?: Date | undefined;
2977
+ completedAt?: Date | undefined;
2978
+ error?: {
2979
+ message: string;
2980
+ name?: string | undefined;
2981
+ stackTrace?: string | undefined;
2982
+ } | undefined;
2983
+ } | undefined)[];
2984
+ updatedAt: Date;
3308
2985
  isTest: boolean;
3309
2986
  createdAt: Date;
2987
+ tags: string[];
3310
2988
  durationMs: number;
3311
2989
  costInCents: number;
3312
2990
  baseCostInCents: number;
3313
2991
  taskIdentifier: string;
2992
+ attemptCount: number;
2993
+ depth: number;
2994
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2995
+ isQueued: boolean;
2996
+ isExecuting: boolean;
2997
+ isCompleted: boolean;
2998
+ isSuccess: boolean;
2999
+ isFailed: boolean;
3000
+ isCancelled: boolean;
3314
3001
  relatedRuns: {
3315
3002
  root?: {
3316
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3003
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3317
3004
  id: string;
3318
- tags: string[];
3005
+ updatedAt: Date;
3319
3006
  isTest: boolean;
3320
3007
  createdAt: Date;
3008
+ tags: string[];
3321
3009
  durationMs: number;
3322
3010
  costInCents: number;
3323
3011
  baseCostInCents: number;
3324
3012
  taskIdentifier: string;
3325
3013
  depth: number;
3326
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3014
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3327
3015
  isQueued: boolean;
3328
3016
  isExecuting: boolean;
3329
3017
  isCompleted: boolean;
3330
3018
  isSuccess: boolean;
3331
3019
  isFailed: boolean;
3332
3020
  isCancelled: boolean;
3333
- updatedAt: Date;
3334
- batchId?: string | undefined;
3335
- idempotencyKey?: string | undefined;
3021
+ metadata?: Record<string, any> | undefined;
3336
3022
  version?: string | undefined;
3337
3023
  startedAt?: Date | undefined;
3024
+ idempotencyKey?: string | undefined;
3025
+ ttl?: string | undefined;
3026
+ batchId?: string | undefined;
3338
3027
  finishedAt?: Date | undefined;
3339
3028
  delayedUntil?: Date | undefined;
3340
- ttl?: string | undefined;
3341
3029
  expiredAt?: Date | undefined;
3342
- metadata?: Record<string, any> | undefined;
3343
3030
  } | undefined;
3344
3031
  parent?: {
3345
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3032
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3346
3033
  id: string;
3347
- tags: string[];
3034
+ updatedAt: Date;
3348
3035
  isTest: boolean;
3349
3036
  createdAt: Date;
3037
+ tags: string[];
3350
3038
  durationMs: number;
3351
3039
  costInCents: number;
3352
3040
  baseCostInCents: number;
3353
3041
  taskIdentifier: string;
3354
3042
  depth: number;
3355
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3043
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3356
3044
  isQueued: boolean;
3357
3045
  isExecuting: boolean;
3358
3046
  isCompleted: boolean;
3359
3047
  isSuccess: boolean;
3360
3048
  isFailed: boolean;
3361
3049
  isCancelled: boolean;
3362
- updatedAt: Date;
3363
- batchId?: string | undefined;
3364
- idempotencyKey?: string | undefined;
3050
+ metadata?: Record<string, any> | undefined;
3365
3051
  version?: string | undefined;
3366
3052
  startedAt?: Date | undefined;
3053
+ idempotencyKey?: string | undefined;
3054
+ ttl?: string | undefined;
3055
+ batchId?: string | undefined;
3367
3056
  finishedAt?: Date | undefined;
3368
3057
  delayedUntil?: Date | undefined;
3369
- ttl?: string | undefined;
3370
3058
  expiredAt?: Date | undefined;
3371
- metadata?: Record<string, any> | undefined;
3372
3059
  } | undefined;
3373
3060
  children?: {
3374
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3061
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3375
3062
  id: string;
3376
- tags: string[];
3063
+ updatedAt: Date;
3377
3064
  isTest: boolean;
3378
3065
  createdAt: Date;
3066
+ tags: string[];
3379
3067
  durationMs: number;
3380
3068
  costInCents: number;
3381
3069
  baseCostInCents: number;
3382
3070
  taskIdentifier: string;
3383
3071
  depth: number;
3384
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3072
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3385
3073
  isQueued: boolean;
3386
3074
  isExecuting: boolean;
3387
3075
  isCompleted: boolean;
3388
3076
  isSuccess: boolean;
3389
3077
  isFailed: boolean;
3390
- isCancelled: boolean;
3391
- updatedAt: Date;
3392
- batchId?: string | undefined;
3393
- idempotencyKey?: string | undefined;
3078
+ isCancelled: boolean;
3079
+ metadata?: Record<string, any> | undefined;
3394
3080
  version?: string | undefined;
3395
3081
  startedAt?: Date | undefined;
3082
+ idempotencyKey?: string | undefined;
3083
+ ttl?: string | undefined;
3084
+ batchId?: string | undefined;
3396
3085
  finishedAt?: Date | undefined;
3397
3086
  delayedUntil?: Date | undefined;
3398
- ttl?: string | undefined;
3399
3087
  expiredAt?: Date | undefined;
3400
- metadata?: Record<string, any> | undefined;
3401
3088
  }[] | undefined;
3402
3089
  };
3403
- depth: number;
3404
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3405
- isQueued: boolean;
3406
- isExecuting: boolean;
3407
- isCompleted: boolean;
3408
- isSuccess: boolean;
3409
- isFailed: boolean;
3410
- isCancelled: boolean;
3411
- updatedAt: Date;
3412
- attempts: ({
3413
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
3414
- id: string;
3415
- createdAt: Date;
3416
- updatedAt: Date;
3417
- startedAt?: Date | undefined;
3418
- completedAt?: Date | undefined;
3419
- error?: {
3420
- message: string;
3421
- name?: string | undefined;
3422
- stackTrace?: string | undefined;
3423
- } | undefined;
3424
- } | undefined)[];
3425
- attemptCount: number;
3426
3090
  payload?: any;
3427
- payloadPresignedUrl?: string | undefined;
3091
+ metadata?: Record<string, any> | undefined;
3092
+ version?: string | undefined;
3093
+ startedAt?: Date | undefined;
3428
3094
  output?: any;
3429
- outputPresignedUrl?: string | undefined;
3430
3095
  error?: {
3431
3096
  message: string;
3432
3097
  name?: string | undefined;
3433
3098
  stackTrace?: string | undefined;
3434
3099
  } | undefined;
3100
+ idempotencyKey?: string | undefined;
3435
3101
  schedule?: {
3436
3102
  id: string;
3437
3103
  generator: {
3438
- description: string;
3439
3104
  type: "CRON";
3105
+ description: string;
3440
3106
  expression: string;
3441
3107
  };
3442
3108
  externalId?: string | undefined;
3443
3109
  deduplicationKey?: string | undefined;
3444
3110
  } | undefined;
3111
+ ttl?: string | undefined;
3445
3112
  batchId?: string | undefined;
3446
- idempotencyKey?: string | undefined;
3447
- version?: string | undefined;
3448
- startedAt?: Date | undefined;
3449
3113
  finishedAt?: Date | undefined;
3450
3114
  delayedUntil?: Date | undefined;
3451
- ttl?: string | undefined;
3452
3115
  expiredAt?: Date | undefined;
3453
- metadata?: Record<string, any> | undefined;
3116
+ payloadPresignedUrl?: string | undefined;
3117
+ outputPresignedUrl?: string | undefined;
3454
3118
  }, {
3455
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3119
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3456
3120
  id: string;
3457
- tags: string[];
3121
+ attempts: ({
3122
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
3123
+ id: string;
3124
+ updatedAt: Date;
3125
+ createdAt: Date;
3126
+ startedAt?: Date | undefined;
3127
+ completedAt?: Date | undefined;
3128
+ error?: {
3129
+ message: string;
3130
+ name?: string | undefined;
3131
+ stackTrace?: string | undefined;
3132
+ } | undefined;
3133
+ } | undefined)[];
3134
+ updatedAt: Date;
3458
3135
  isTest: boolean;
3459
3136
  createdAt: Date;
3137
+ tags: string[];
3460
3138
  durationMs: number;
3461
3139
  costInCents: number;
3462
3140
  baseCostInCents: number;
3463
3141
  taskIdentifier: string;
3142
+ depth: number;
3143
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3144
+ isQueued: boolean;
3145
+ isExecuting: boolean;
3146
+ isCompleted: boolean;
3147
+ isSuccess: boolean;
3148
+ isFailed: boolean;
3149
+ isCancelled: boolean;
3464
3150
  relatedRuns: {
3465
3151
  root?: {
3466
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3152
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3467
3153
  id: string;
3468
- tags: string[];
3154
+ updatedAt: Date;
3469
3155
  isTest: boolean;
3470
3156
  createdAt: Date;
3157
+ tags: string[];
3471
3158
  durationMs: number;
3472
3159
  costInCents: number;
3473
3160
  baseCostInCents: number;
3474
3161
  taskIdentifier: string;
3475
3162
  depth: number;
3476
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3163
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3477
3164
  isQueued: boolean;
3478
3165
  isExecuting: boolean;
3479
3166
  isCompleted: boolean;
3480
3167
  isSuccess: boolean;
3481
3168
  isFailed: boolean;
3482
3169
  isCancelled: boolean;
3483
- updatedAt: Date;
3484
- batchId?: string | undefined;
3485
- idempotencyKey?: string | undefined;
3170
+ metadata?: Record<string, any> | undefined;
3486
3171
  version?: string | undefined;
3487
3172
  startedAt?: Date | undefined;
3173
+ idempotencyKey?: string | undefined;
3174
+ ttl?: string | undefined;
3175
+ batchId?: string | undefined;
3488
3176
  finishedAt?: Date | undefined;
3489
3177
  delayedUntil?: Date | undefined;
3490
- ttl?: string | undefined;
3491
3178
  expiredAt?: Date | undefined;
3492
- metadata?: Record<string, any> | undefined;
3493
3179
  } | undefined;
3494
3180
  parent?: {
3495
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3181
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3496
3182
  id: string;
3497
- tags: string[];
3183
+ updatedAt: Date;
3498
3184
  isTest: boolean;
3499
3185
  createdAt: Date;
3186
+ tags: string[];
3500
3187
  durationMs: number;
3501
3188
  costInCents: number;
3502
3189
  baseCostInCents: number;
3503
3190
  taskIdentifier: string;
3504
3191
  depth: number;
3505
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3192
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3506
3193
  isQueued: boolean;
3507
3194
  isExecuting: boolean;
3508
3195
  isCompleted: boolean;
3509
3196
  isSuccess: boolean;
3510
3197
  isFailed: boolean;
3511
3198
  isCancelled: boolean;
3512
- updatedAt: Date;
3513
- batchId?: string | undefined;
3514
- idempotencyKey?: string | undefined;
3199
+ metadata?: Record<string, any> | undefined;
3515
3200
  version?: string | undefined;
3516
3201
  startedAt?: Date | undefined;
3202
+ idempotencyKey?: string | undefined;
3203
+ ttl?: string | undefined;
3204
+ batchId?: string | undefined;
3517
3205
  finishedAt?: Date | undefined;
3518
3206
  delayedUntil?: Date | undefined;
3519
- ttl?: string | undefined;
3520
3207
  expiredAt?: Date | undefined;
3521
- metadata?: Record<string, any> | undefined;
3522
3208
  } | undefined;
3523
3209
  children?: {
3524
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3210
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3525
3211
  id: string;
3526
- tags: string[];
3212
+ updatedAt: Date;
3527
3213
  isTest: boolean;
3528
3214
  createdAt: Date;
3215
+ tags: string[];
3529
3216
  durationMs: number;
3530
3217
  costInCents: number;
3531
3218
  baseCostInCents: number;
3532
3219
  taskIdentifier: string;
3533
3220
  depth: number;
3534
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3221
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3535
3222
  isQueued: boolean;
3536
3223
  isExecuting: boolean;
3537
3224
  isCompleted: boolean;
3538
3225
  isSuccess: boolean;
3539
3226
  isFailed: boolean;
3540
3227
  isCancelled: boolean;
3541
- updatedAt: Date;
3542
- batchId?: string | undefined;
3543
- idempotencyKey?: string | undefined;
3228
+ metadata?: Record<string, any> | undefined;
3544
3229
  version?: string | undefined;
3545
3230
  startedAt?: Date | undefined;
3231
+ idempotencyKey?: string | undefined;
3232
+ ttl?: string | undefined;
3233
+ batchId?: string | undefined;
3546
3234
  finishedAt?: Date | undefined;
3547
3235
  delayedUntil?: Date | undefined;
3548
- ttl?: string | undefined;
3549
3236
  expiredAt?: Date | undefined;
3550
- metadata?: Record<string, any> | undefined;
3551
3237
  }[] | undefined;
3552
3238
  };
3553
- depth: number;
3554
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
3555
- isQueued: boolean;
3556
- isExecuting: boolean;
3557
- isCompleted: boolean;
3558
- isSuccess: boolean;
3559
- isFailed: boolean;
3560
- isCancelled: boolean;
3561
- updatedAt: Date;
3562
- attempts: ({
3563
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
3564
- id: string;
3565
- createdAt: Date;
3566
- updatedAt: Date;
3567
- startedAt?: Date | undefined;
3568
- completedAt?: Date | undefined;
3569
- error?: {
3570
- message: string;
3571
- name?: string | undefined;
3572
- stackTrace?: string | undefined;
3573
- } | undefined;
3574
- } | undefined)[];
3575
3239
  payload?: any;
3576
- payloadPresignedUrl?: string | undefined;
3240
+ metadata?: Record<string, any> | undefined;
3241
+ version?: string | undefined;
3242
+ startedAt?: Date | undefined;
3577
3243
  output?: any;
3578
- outputPresignedUrl?: string | undefined;
3579
3244
  error?: {
3580
3245
  message: string;
3581
3246
  name?: string | undefined;
3582
3247
  stackTrace?: string | undefined;
3583
3248
  } | undefined;
3249
+ idempotencyKey?: string | undefined;
3584
3250
  schedule?: {
3585
3251
  id: string;
3586
3252
  generator: {
3587
- description: string;
3588
3253
  type: "CRON";
3254
+ description: string;
3589
3255
  expression: string;
3590
3256
  };
3591
3257
  externalId?: string | undefined;
3592
3258
  deduplicationKey?: string | undefined;
3593
3259
  } | undefined;
3594
3260
  attemptCount?: number | undefined;
3261
+ ttl?: string | undefined;
3595
3262
  batchId?: string | undefined;
3596
- idempotencyKey?: string | undefined;
3597
- version?: string | undefined;
3598
- startedAt?: Date | undefined;
3599
3263
  finishedAt?: Date | undefined;
3600
3264
  delayedUntil?: Date | undefined;
3601
- ttl?: string | undefined;
3602
3265
  expiredAt?: Date | undefined;
3603
- metadata?: Record<string, any> | undefined;
3266
+ payloadPresignedUrl?: string | undefined;
3267
+ outputPresignedUrl?: string | undefined;
3604
3268
  }>;
3605
3269
  export type RetrieveRunResponse = z.infer<typeof RetrieveRunResponse>;
3606
3270
  export declare const ListRunResponseItem: z.ZodObject<{
@@ -3642,11 +3306,12 @@ export declare const ListRunResponseItem: z.ZodObject<{
3642
3306
  durationMs: z.ZodNumber;
3643
3307
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3644
3308
  }, "strip", z.ZodTypeAny, {
3645
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3309
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3646
3310
  id: string;
3647
- tags: string[];
3311
+ updatedAt: Date;
3648
3312
  isTest: boolean;
3649
3313
  createdAt: Date;
3314
+ tags: string[];
3650
3315
  durationMs: number;
3651
3316
  costInCents: number;
3652
3317
  baseCostInCents: number;
@@ -3657,26 +3322,26 @@ export declare const ListRunResponseItem: z.ZodObject<{
3657
3322
  isSuccess: boolean;
3658
3323
  isFailed: boolean;
3659
3324
  isCancelled: boolean;
3660
- updatedAt: Date;
3661
3325
  env: {
3662
3326
  name: string;
3663
3327
  id: string;
3664
3328
  user?: string | undefined;
3665
3329
  };
3666
- idempotencyKey?: string | undefined;
3330
+ metadata?: Record<string, any> | undefined;
3667
3331
  version?: string | undefined;
3668
3332
  startedAt?: Date | undefined;
3333
+ idempotencyKey?: string | undefined;
3334
+ ttl?: string | undefined;
3669
3335
  finishedAt?: Date | undefined;
3670
3336
  delayedUntil?: Date | undefined;
3671
- ttl?: string | undefined;
3672
3337
  expiredAt?: Date | undefined;
3673
- metadata?: Record<string, any> | undefined;
3674
3338
  }, {
3675
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3339
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3676
3340
  id: string;
3677
- tags: string[];
3341
+ updatedAt: Date;
3678
3342
  isTest: boolean;
3679
3343
  createdAt: Date;
3344
+ tags: string[];
3680
3345
  durationMs: number;
3681
3346
  costInCents: number;
3682
3347
  baseCostInCents: number;
@@ -3687,20 +3352,19 @@ export declare const ListRunResponseItem: z.ZodObject<{
3687
3352
  isSuccess: boolean;
3688
3353
  isFailed: boolean;
3689
3354
  isCancelled: boolean;
3690
- updatedAt: Date;
3691
3355
  env: {
3692
3356
  name: string;
3693
3357
  id: string;
3694
3358
  user?: string | undefined;
3695
3359
  };
3696
- idempotencyKey?: string | undefined;
3360
+ metadata?: Record<string, any> | undefined;
3697
3361
  version?: string | undefined;
3698
3362
  startedAt?: Date | undefined;
3363
+ idempotencyKey?: string | undefined;
3364
+ ttl?: string | undefined;
3699
3365
  finishedAt?: Date | undefined;
3700
3366
  delayedUntil?: Date | undefined;
3701
- ttl?: string | undefined;
3702
3367
  expiredAt?: Date | undefined;
3703
- metadata?: Record<string, any> | undefined;
3704
3368
  }>;
3705
3369
  export type ListRunResponseItem = z.infer<typeof ListRunResponseItem>;
3706
3370
  export declare const ListRunResponse: z.ZodObject<{
@@ -3743,11 +3407,12 @@ export declare const ListRunResponse: z.ZodObject<{
3743
3407
  durationMs: z.ZodNumber;
3744
3408
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3745
3409
  }, "strip", z.ZodTypeAny, {
3746
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3410
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3747
3411
  id: string;
3748
- tags: string[];
3412
+ updatedAt: Date;
3749
3413
  isTest: boolean;
3750
3414
  createdAt: Date;
3415
+ tags: string[];
3751
3416
  durationMs: number;
3752
3417
  costInCents: number;
3753
3418
  baseCostInCents: number;
@@ -3758,26 +3423,26 @@ export declare const ListRunResponse: z.ZodObject<{
3758
3423
  isSuccess: boolean;
3759
3424
  isFailed: boolean;
3760
3425
  isCancelled: boolean;
3761
- updatedAt: Date;
3762
3426
  env: {
3763
3427
  name: string;
3764
3428
  id: string;
3765
3429
  user?: string | undefined;
3766
3430
  };
3767
- idempotencyKey?: string | undefined;
3431
+ metadata?: Record<string, any> | undefined;
3768
3432
  version?: string | undefined;
3769
3433
  startedAt?: Date | undefined;
3434
+ idempotencyKey?: string | undefined;
3435
+ ttl?: string | undefined;
3770
3436
  finishedAt?: Date | undefined;
3771
3437
  delayedUntil?: Date | undefined;
3772
- ttl?: string | undefined;
3773
3438
  expiredAt?: Date | undefined;
3774
- metadata?: Record<string, any> | undefined;
3775
3439
  }, {
3776
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3440
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3777
3441
  id: string;
3778
- tags: string[];
3442
+ updatedAt: Date;
3779
3443
  isTest: boolean;
3780
3444
  createdAt: Date;
3445
+ tags: string[];
3781
3446
  durationMs: number;
3782
3447
  costInCents: number;
3783
3448
  baseCostInCents: number;
@@ -3788,20 +3453,19 @@ export declare const ListRunResponse: z.ZodObject<{
3788
3453
  isSuccess: boolean;
3789
3454
  isFailed: boolean;
3790
3455
  isCancelled: boolean;
3791
- updatedAt: Date;
3792
3456
  env: {
3793
3457
  name: string;
3794
3458
  id: string;
3795
3459
  user?: string | undefined;
3796
3460
  };
3797
- idempotencyKey?: string | undefined;
3461
+ metadata?: Record<string, any> | undefined;
3798
3462
  version?: string | undefined;
3799
3463
  startedAt?: Date | undefined;
3464
+ idempotencyKey?: string | undefined;
3465
+ ttl?: string | undefined;
3800
3466
  finishedAt?: Date | undefined;
3801
3467
  delayedUntil?: Date | undefined;
3802
- ttl?: string | undefined;
3803
3468
  expiredAt?: Date | undefined;
3804
- metadata?: Record<string, any> | undefined;
3805
3469
  }>, "many">;
3806
3470
  pagination: z.ZodObject<{
3807
3471
  next: z.ZodOptional<z.ZodString>;
@@ -3815,11 +3479,12 @@ export declare const ListRunResponse: z.ZodObject<{
3815
3479
  }>;
3816
3480
  }, "strip", z.ZodTypeAny, {
3817
3481
  data: {
3818
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3482
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3819
3483
  id: string;
3820
- tags: string[];
3484
+ updatedAt: Date;
3821
3485
  isTest: boolean;
3822
3486
  createdAt: Date;
3487
+ tags: string[];
3823
3488
  durationMs: number;
3824
3489
  costInCents: number;
3825
3490
  baseCostInCents: number;
@@ -3830,20 +3495,19 @@ export declare const ListRunResponse: z.ZodObject<{
3830
3495
  isSuccess: boolean;
3831
3496
  isFailed: boolean;
3832
3497
  isCancelled: boolean;
3833
- updatedAt: Date;
3834
3498
  env: {
3835
3499
  name: string;
3836
3500
  id: string;
3837
3501
  user?: string | undefined;
3838
3502
  };
3839
- idempotencyKey?: string | undefined;
3503
+ metadata?: Record<string, any> | undefined;
3840
3504
  version?: string | undefined;
3841
3505
  startedAt?: Date | undefined;
3506
+ idempotencyKey?: string | undefined;
3507
+ ttl?: string | undefined;
3842
3508
  finishedAt?: Date | undefined;
3843
3509
  delayedUntil?: Date | undefined;
3844
- ttl?: string | undefined;
3845
3510
  expiredAt?: Date | undefined;
3846
- metadata?: Record<string, any> | undefined;
3847
3511
  }[];
3848
3512
  pagination: {
3849
3513
  next?: string | undefined;
@@ -3851,11 +3515,12 @@ export declare const ListRunResponse: z.ZodObject<{
3851
3515
  };
3852
3516
  }, {
3853
3517
  data: {
3854
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
3518
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3855
3519
  id: string;
3856
- tags: string[];
3520
+ updatedAt: Date;
3857
3521
  isTest: boolean;
3858
3522
  createdAt: Date;
3523
+ tags: string[];
3859
3524
  durationMs: number;
3860
3525
  costInCents: number;
3861
3526
  baseCostInCents: number;
@@ -3866,20 +3531,19 @@ export declare const ListRunResponse: z.ZodObject<{
3866
3531
  isSuccess: boolean;
3867
3532
  isFailed: boolean;
3868
3533
  isCancelled: boolean;
3869
- updatedAt: Date;
3870
3534
  env: {
3871
3535
  name: string;
3872
3536
  id: string;
3873
3537
  user?: string | undefined;
3874
3538
  };
3875
- idempotencyKey?: string | undefined;
3539
+ metadata?: Record<string, any> | undefined;
3876
3540
  version?: string | undefined;
3877
3541
  startedAt?: Date | undefined;
3542
+ idempotencyKey?: string | undefined;
3543
+ ttl?: string | undefined;
3878
3544
  finishedAt?: Date | undefined;
3879
3545
  delayedUntil?: Date | undefined;
3880
- ttl?: string | undefined;
3881
3546
  expiredAt?: Date | undefined;
3882
- metadata?: Record<string, any> | undefined;
3883
3547
  }[];
3884
3548
  pagination: {
3885
3549
  next?: string | undefined;
@@ -3891,11 +3555,11 @@ export declare const CreateEnvironmentVariableRequestBody: z.ZodObject<{
3891
3555
  name: z.ZodString;
3892
3556
  value: z.ZodString;
3893
3557
  }, "strip", z.ZodTypeAny, {
3894
- name: string;
3895
3558
  value: string;
3896
- }, {
3897
3559
  name: string;
3560
+ }, {
3898
3561
  value: string;
3562
+ name: string;
3899
3563
  }>;
3900
3564
  export type CreateEnvironmentVariableRequestBody = z.infer<typeof CreateEnvironmentVariableRequestBody>;
3901
3565
  export declare const UpdateEnvironmentVariableRequestBody: z.ZodObject<{
@@ -3937,21 +3601,21 @@ export declare const EnvironmentVariable: z.ZodObject<{
3937
3601
  name: z.ZodString;
3938
3602
  value: z.ZodString;
3939
3603
  }, "strip", z.ZodTypeAny, {
3940
- name: string;
3941
3604
  value: string;
3942
- }, {
3943
3605
  name: string;
3606
+ }, {
3944
3607
  value: string;
3608
+ name: string;
3945
3609
  }>;
3946
3610
  export declare const EnvironmentVariables: z.ZodArray<z.ZodObject<{
3947
3611
  name: z.ZodString;
3948
3612
  value: z.ZodString;
3949
3613
  }, "strip", z.ZodTypeAny, {
3950
- name: string;
3951
3614
  value: string;
3952
- }, {
3953
3615
  name: string;
3616
+ }, {
3954
3617
  value: string;
3618
+ name: string;
3955
3619
  }>, "many">;
3956
3620
  export type EnvironmentVariables = z.infer<typeof EnvironmentVariables>;
3957
3621
  export declare const UpdateMetadataRequestBody: z.ZodObject<{
@@ -4016,63 +3680,63 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
4016
3680
  number: number;
4017
3681
  status: string;
4018
3682
  id: string;
3683
+ updatedAt: Date;
4019
3684
  isTest: boolean;
4020
3685
  createdAt: Date;
4021
3686
  costInCents: number;
4022
3687
  baseCostInCents: number;
4023
3688
  taskIdentifier: string;
4024
- updatedAt: Date;
4025
3689
  friendlyId: string;
4026
3690
  usageDurationMs: number;
4027
3691
  runTags: string[] | null;
4028
- idempotencyKey?: string | null | undefined;
4029
- startedAt?: Date | null | undefined;
4030
- delayUntil?: Date | null | undefined;
4031
- queuedAt?: Date | null | undefined;
4032
- expiredAt?: Date | null | undefined;
4033
- completedAt?: Date | null | undefined;
4034
- ttl?: string | null | undefined;
4035
3692
  payload?: string | null | undefined;
4036
- payloadType?: string | null | undefined;
4037
3693
  metadata?: string | null | undefined;
4038
- metadataType?: string | null | undefined;
3694
+ startedAt?: Date | null | undefined;
3695
+ completedAt?: Date | null | undefined;
3696
+ delayUntil?: Date | null | undefined;
4039
3697
  output?: string | null | undefined;
4040
- outputType?: string | null | undefined;
4041
3698
  error?: {
4042
3699
  message: string;
4043
3700
  name?: string | undefined;
4044
3701
  stackTrace?: string | undefined;
4045
3702
  } | null | undefined;
3703
+ idempotencyKey?: string | null | undefined;
3704
+ payloadType?: string | null | undefined;
3705
+ outputType?: string | null | undefined;
3706
+ ttl?: string | null | undefined;
3707
+ metadataType?: string | null | undefined;
3708
+ expiredAt?: Date | null | undefined;
3709
+ queuedAt?: Date | null | undefined;
4046
3710
  }, {
4047
3711
  number: number;
4048
3712
  status: string;
4049
3713
  id: string;
3714
+ updatedAt: Date;
4050
3715
  isTest: boolean;
4051
3716
  createdAt: Date;
4052
3717
  costInCents: number;
4053
3718
  baseCostInCents: number;
4054
3719
  taskIdentifier: string;
4055
- updatedAt: Date;
4056
3720
  friendlyId: string;
4057
3721
  usageDurationMs: number;
4058
- idempotencyKey?: string | null | undefined;
4059
- startedAt?: Date | null | undefined;
4060
- delayUntil?: Date | null | undefined;
4061
- queuedAt?: Date | null | undefined;
4062
- expiredAt?: Date | null | undefined;
4063
- completedAt?: Date | null | undefined;
4064
- ttl?: string | null | undefined;
4065
3722
  payload?: string | null | undefined;
4066
- payloadType?: string | null | undefined;
4067
3723
  metadata?: string | null | undefined;
4068
- metadataType?: string | null | undefined;
3724
+ startedAt?: Date | null | undefined;
3725
+ completedAt?: Date | null | undefined;
3726
+ delayUntil?: Date | null | undefined;
4069
3727
  output?: string | null | undefined;
4070
- outputType?: string | null | undefined;
4071
- runTags?: string[] | null | undefined;
4072
3728
  error?: {
4073
3729
  message: string;
4074
3730
  name?: string | undefined;
4075
3731
  stackTrace?: string | undefined;
4076
3732
  } | null | undefined;
3733
+ idempotencyKey?: string | null | undefined;
3734
+ payloadType?: string | null | undefined;
3735
+ outputType?: string | null | undefined;
3736
+ ttl?: string | null | undefined;
3737
+ metadataType?: string | null | undefined;
3738
+ expiredAt?: Date | null | undefined;
3739
+ queuedAt?: Date | null | undefined;
3740
+ runTags?: string[] | null | undefined;
4077
3741
  }>;
4078
3742
  export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;