@trigger.dev/core 3.3.13 → 3.3.14

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.
@@ -334,7 +334,7 @@ const isSafari = () => {
334
334
  *
335
335
  */
336
336
  if (isSafari()) {
337
- // @ts-expect-error
337
+ // @ts-ignore-error
338
338
  ReadableStream.prototype.values ??= function ({ preventCancel = false } = {}) {
339
339
  const reader = this.getReader();
340
340
  return {
@@ -367,7 +367,7 @@ if (isSafari()) {
367
367
  },
368
368
  };
369
369
  };
370
- // @ts-expect-error
370
+ // @ts-ignore-error
371
371
  ReadableStream.prototype[Symbol.asyncIterator] ??= ReadableStream.prototype.values;
372
372
  }
373
373
  //# sourceMappingURL=runStream.js.map
@@ -153,18 +153,31 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
153
153
  minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
154
154
  maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
155
155
  randomize: z.ZodOptional<z.ZodBoolean>;
156
+ outOfMemory: z.ZodOptional<z.ZodObject<{
157
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
160
+ }, {
161
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
162
+ }>>;
156
163
  }, "strip", z.ZodTypeAny, {
157
164
  factor?: number | undefined;
158
165
  minTimeoutInMs?: number | undefined;
159
166
  maxTimeoutInMs?: number | undefined;
160
167
  randomize?: boolean | undefined;
161
168
  maxAttempts?: number | undefined;
169
+ outOfMemory?: {
170
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
171
+ } | undefined;
162
172
  }, {
163
173
  factor?: number | undefined;
164
174
  minTimeoutInMs?: number | undefined;
165
175
  maxTimeoutInMs?: number | undefined;
166
176
  randomize?: boolean | undefined;
167
177
  maxAttempts?: number | undefined;
178
+ outOfMemory?: {
179
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
180
+ } | undefined;
168
181
  }>>;
169
182
  machine: z.ZodOptional<z.ZodObject<{
170
183
  cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
@@ -206,6 +219,9 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
206
219
  maxTimeoutInMs?: number | undefined;
207
220
  randomize?: boolean | undefined;
208
221
  maxAttempts?: number | undefined;
222
+ outOfMemory?: {
223
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
224
+ } | undefined;
209
225
  } | undefined;
210
226
  maxDuration?: number | undefined;
211
227
  queue?: {
@@ -233,6 +249,9 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
233
249
  maxTimeoutInMs?: number | undefined;
234
250
  randomize?: boolean | undefined;
235
251
  maxAttempts?: number | undefined;
252
+ outOfMemory?: {
253
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
254
+ } | undefined;
236
255
  } | undefined;
237
256
  maxDuration?: number | undefined;
238
257
  queue?: {
@@ -278,6 +297,9 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
278
297
  maxTimeoutInMs?: number | undefined;
279
298
  randomize?: boolean | undefined;
280
299
  maxAttempts?: number | undefined;
300
+ outOfMemory?: {
301
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
302
+ } | undefined;
281
303
  } | undefined;
282
304
  maxDuration?: number | undefined;
283
305
  queue?: {
@@ -316,6 +338,9 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
316
338
  maxTimeoutInMs?: number | undefined;
317
339
  randomize?: boolean | undefined;
318
340
  maxAttempts?: number | undefined;
341
+ outOfMemory?: {
342
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
343
+ } | undefined;
319
344
  } | undefined;
320
345
  maxDuration?: number | undefined;
321
346
  queue?: {
@@ -357,6 +382,9 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
357
382
  maxTimeoutInMs?: number | undefined;
358
383
  randomize?: boolean | undefined;
359
384
  maxAttempts?: number | undefined;
385
+ outOfMemory?: {
386
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
387
+ } | undefined;
360
388
  } | undefined;
361
389
  maxDuration?: number | undefined;
362
390
  queue?: {
@@ -399,6 +427,9 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
399
427
  maxTimeoutInMs?: number | undefined;
400
428
  randomize?: boolean | undefined;
401
429
  maxAttempts?: number | undefined;
430
+ outOfMemory?: {
431
+ machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
432
+ } | undefined;
402
433
  } | undefined;
403
434
  maxDuration?: number | undefined;
404
435
  queue?: {
@@ -446,11 +477,21 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
446
477
  payload: z.ZodAny;
447
478
  context: z.ZodAny;
448
479
  options: z.ZodOptional<z.ZodObject<{
480
+ concurrencyKey: z.ZodOptional<z.ZodString>;
481
+ delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
449
482
  dependentAttempt: z.ZodOptional<z.ZodString>;
450
- parentAttempt: z.ZodOptional<z.ZodString>;
451
483
  dependentBatch: z.ZodOptional<z.ZodString>;
452
- parentBatch: z.ZodOptional<z.ZodString>;
484
+ idempotencyKey: z.ZodOptional<z.ZodString>;
485
+ idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
453
486
  lockToVersion: z.ZodOptional<z.ZodString>;
487
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
488
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
489
+ maxDuration: z.ZodOptional<z.ZodNumber>;
490
+ metadata: z.ZodAny;
491
+ metadataType: z.ZodOptional<z.ZodString>;
492
+ parentAttempt: z.ZodOptional<z.ZodString>;
493
+ parentBatch: z.ZodOptional<z.ZodString>;
494
+ payloadType: z.ZodOptional<z.ZodString>;
454
495
  queue: z.ZodOptional<z.ZodObject<{
455
496
  name: z.ZodOptional<z.ZodString>;
456
497
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -461,19 +502,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
461
502
  name?: string | undefined;
462
503
  concurrencyLimit?: number | null | undefined;
463
504
  }>>;
464
- concurrencyKey: z.ZodOptional<z.ZodString>;
465
- idempotencyKey: z.ZodOptional<z.ZodString>;
466
- idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
505
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
467
506
  test: z.ZodOptional<z.ZodBoolean>;
468
- payloadType: z.ZodOptional<z.ZodString>;
469
- delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
470
507
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
471
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
472
- maxAttempts: z.ZodOptional<z.ZodNumber>;
473
- metadata: z.ZodAny;
474
- metadataType: z.ZodOptional<z.ZodString>;
475
- maxDuration: z.ZodOptional<z.ZodNumber>;
476
- machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
477
508
  }, "strip", z.ZodTypeAny, {
478
509
  metadata?: any;
479
510
  idempotencyKey?: string | undefined;
@@ -491,12 +522,12 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
491
522
  concurrencyKey?: string | undefined;
492
523
  ttl?: string | number | undefined;
493
524
  dependentAttempt?: string | undefined;
494
- parentAttempt?: string | undefined;
495
525
  dependentBatch?: string | undefined;
496
- parentBatch?: string | undefined;
497
526
  lockToVersion?: string | undefined;
498
- test?: boolean | undefined;
499
527
  metadataType?: string | undefined;
528
+ parentAttempt?: string | undefined;
529
+ parentBatch?: string | undefined;
530
+ test?: boolean | undefined;
500
531
  }, {
501
532
  metadata?: any;
502
533
  idempotencyKey?: string | undefined;
@@ -514,12 +545,12 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
514
545
  concurrencyKey?: string | undefined;
515
546
  ttl?: string | number | undefined;
516
547
  dependentAttempt?: string | undefined;
517
- parentAttempt?: string | undefined;
518
548
  dependentBatch?: string | undefined;
519
- parentBatch?: string | undefined;
520
549
  lockToVersion?: string | undefined;
521
- test?: boolean | undefined;
522
550
  metadataType?: string | undefined;
551
+ parentAttempt?: string | undefined;
552
+ parentBatch?: string | undefined;
553
+ test?: boolean | undefined;
523
554
  }>>;
524
555
  }, "strip", z.ZodTypeAny, {
525
556
  options?: {
@@ -539,12 +570,12 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
539
570
  concurrencyKey?: string | undefined;
540
571
  ttl?: string | number | undefined;
541
572
  dependentAttempt?: string | undefined;
542
- parentAttempt?: string | undefined;
543
573
  dependentBatch?: string | undefined;
544
- parentBatch?: string | undefined;
545
574
  lockToVersion?: string | undefined;
546
- test?: boolean | undefined;
547
575
  metadataType?: string | undefined;
576
+ parentAttempt?: string | undefined;
577
+ parentBatch?: string | undefined;
578
+ test?: boolean | undefined;
548
579
  } | undefined;
549
580
  payload?: any;
550
581
  context?: any;
@@ -566,12 +597,12 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
566
597
  concurrencyKey?: string | undefined;
567
598
  ttl?: string | number | undefined;
568
599
  dependentAttempt?: string | undefined;
569
- parentAttempt?: string | undefined;
570
600
  dependentBatch?: string | undefined;
571
- parentBatch?: string | undefined;
572
601
  lockToVersion?: string | undefined;
573
- test?: boolean | undefined;
574
602
  metadataType?: string | undefined;
603
+ parentAttempt?: string | undefined;
604
+ parentBatch?: string | undefined;
605
+ test?: boolean | undefined;
575
606
  } | undefined;
576
607
  payload?: any;
577
608
  context?: any;
@@ -590,11 +621,21 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
590
621
  payload: z.ZodAny;
591
622
  context: z.ZodAny;
592
623
  options: z.ZodOptional<z.ZodObject<{
624
+ concurrencyKey: z.ZodOptional<z.ZodString>;
625
+ delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
593
626
  dependentAttempt: z.ZodOptional<z.ZodString>;
594
- parentAttempt: z.ZodOptional<z.ZodString>;
595
627
  dependentBatch: z.ZodOptional<z.ZodString>;
596
- parentBatch: z.ZodOptional<z.ZodString>;
628
+ idempotencyKey: z.ZodOptional<z.ZodString>;
629
+ idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
597
630
  lockToVersion: z.ZodOptional<z.ZodString>;
631
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
632
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
633
+ maxDuration: z.ZodOptional<z.ZodNumber>;
634
+ metadata: z.ZodAny;
635
+ metadataType: z.ZodOptional<z.ZodString>;
636
+ parentAttempt: z.ZodOptional<z.ZodString>;
637
+ parentBatch: z.ZodOptional<z.ZodString>;
638
+ payloadType: z.ZodOptional<z.ZodString>;
598
639
  queue: z.ZodOptional<z.ZodObject<{
599
640
  name: z.ZodOptional<z.ZodString>;
600
641
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -605,19 +646,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
605
646
  name?: string | undefined;
606
647
  concurrencyLimit?: number | null | undefined;
607
648
  }>>;
608
- concurrencyKey: z.ZodOptional<z.ZodString>;
609
- idempotencyKey: z.ZodOptional<z.ZodString>;
610
- idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
649
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
611
650
  test: z.ZodOptional<z.ZodBoolean>;
612
- payloadType: z.ZodOptional<z.ZodString>;
613
- delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
614
651
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
615
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
616
- maxAttempts: z.ZodOptional<z.ZodNumber>;
617
- metadata: z.ZodAny;
618
- metadataType: z.ZodOptional<z.ZodString>;
619
- maxDuration: z.ZodOptional<z.ZodNumber>;
620
- machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
621
652
  }, "strip", z.ZodTypeAny, {
622
653
  metadata?: any;
623
654
  idempotencyKey?: string | undefined;
@@ -635,12 +666,12 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
635
666
  concurrencyKey?: string | undefined;
636
667
  ttl?: string | number | undefined;
637
668
  dependentAttempt?: string | undefined;
638
- parentAttempt?: string | undefined;
639
669
  dependentBatch?: string | undefined;
640
- parentBatch?: string | undefined;
641
670
  lockToVersion?: string | undefined;
642
- test?: boolean | undefined;
643
671
  metadataType?: string | undefined;
672
+ parentAttempt?: string | undefined;
673
+ parentBatch?: string | undefined;
674
+ test?: boolean | undefined;
644
675
  }, {
645
676
  metadata?: any;
646
677
  idempotencyKey?: string | undefined;
@@ -658,12 +689,12 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
658
689
  concurrencyKey?: string | undefined;
659
690
  ttl?: string | number | undefined;
660
691
  dependentAttempt?: string | undefined;
661
- parentAttempt?: string | undefined;
662
692
  dependentBatch?: string | undefined;
663
- parentBatch?: string | undefined;
664
693
  lockToVersion?: string | undefined;
665
- test?: boolean | undefined;
666
694
  metadataType?: string | undefined;
695
+ parentAttempt?: string | undefined;
696
+ parentBatch?: string | undefined;
697
+ test?: boolean | undefined;
667
698
  }>>;
668
699
  }, "strip", z.ZodTypeAny, {
669
700
  options?: {
@@ -683,12 +714,12 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
683
714
  concurrencyKey?: string | undefined;
684
715
  ttl?: string | number | undefined;
685
716
  dependentAttempt?: string | undefined;
686
- parentAttempt?: string | undefined;
687
717
  dependentBatch?: string | undefined;
688
- parentBatch?: string | undefined;
689
718
  lockToVersion?: string | undefined;
690
- test?: boolean | undefined;
691
719
  metadataType?: string | undefined;
720
+ parentAttempt?: string | undefined;
721
+ parentBatch?: string | undefined;
722
+ test?: boolean | undefined;
692
723
  } | undefined;
693
724
  payload?: any;
694
725
  context?: any;
@@ -710,12 +741,12 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
710
741
  concurrencyKey?: string | undefined;
711
742
  ttl?: string | number | undefined;
712
743
  dependentAttempt?: string | undefined;
713
- parentAttempt?: string | undefined;
714
744
  dependentBatch?: string | undefined;
715
- parentBatch?: string | undefined;
716
745
  lockToVersion?: string | undefined;
717
- test?: boolean | undefined;
718
746
  metadataType?: string | undefined;
747
+ parentAttempt?: string | undefined;
748
+ parentBatch?: string | undefined;
749
+ test?: boolean | undefined;
719
750
  } | undefined;
720
751
  payload?: any;
721
752
  context?: any;
@@ -740,12 +771,12 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
740
771
  concurrencyKey?: string | undefined;
741
772
  ttl?: string | number | undefined;
742
773
  dependentAttempt?: string | undefined;
743
- parentAttempt?: string | undefined;
744
774
  dependentBatch?: string | undefined;
745
- parentBatch?: string | undefined;
746
775
  lockToVersion?: string | undefined;
747
- test?: boolean | undefined;
748
776
  metadataType?: string | undefined;
777
+ parentAttempt?: string | undefined;
778
+ parentBatch?: string | undefined;
779
+ test?: boolean | undefined;
749
780
  } | undefined;
750
781
  payload?: any;
751
782
  context?: any;
@@ -770,12 +801,12 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
770
801
  concurrencyKey?: string | undefined;
771
802
  ttl?: string | number | undefined;
772
803
  dependentAttempt?: string | undefined;
773
- parentAttempt?: string | undefined;
774
804
  dependentBatch?: string | undefined;
775
- parentBatch?: string | undefined;
776
805
  lockToVersion?: string | undefined;
777
- test?: boolean | undefined;
778
806
  metadataType?: string | undefined;
807
+ parentAttempt?: string | undefined;
808
+ parentBatch?: string | undefined;
809
+ test?: boolean | undefined;
779
810
  } | undefined;
780
811
  payload?: any;
781
812
  context?: any;
@@ -788,7 +819,18 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
788
819
  payload: z.ZodAny;
789
820
  context: z.ZodAny;
790
821
  options: z.ZodOptional<z.ZodObject<{
822
+ concurrencyKey: z.ZodOptional<z.ZodString>;
823
+ delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
824
+ idempotencyKey: z.ZodOptional<z.ZodString>;
825
+ idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
791
826
  lockToVersion: z.ZodOptional<z.ZodString>;
827
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
828
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
829
+ maxDuration: z.ZodOptional<z.ZodNumber>;
830
+ metadata: z.ZodAny;
831
+ metadataType: z.ZodOptional<z.ZodString>;
832
+ parentAttempt: z.ZodOptional<z.ZodString>;
833
+ payloadType: z.ZodOptional<z.ZodString>;
792
834
  queue: z.ZodOptional<z.ZodObject<{
793
835
  name: z.ZodOptional<z.ZodString>;
794
836
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -799,20 +841,9 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
799
841
  name?: string | undefined;
800
842
  concurrencyLimit?: number | null | undefined;
801
843
  }>>;
802
- concurrencyKey: z.ZodOptional<z.ZodString>;
803
- idempotencyKey: z.ZodOptional<z.ZodString>;
804
- idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
844
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
805
845
  test: z.ZodOptional<z.ZodBoolean>;
806
- payloadType: z.ZodOptional<z.ZodString>;
807
- delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
808
846
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
809
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
810
- maxAttempts: z.ZodOptional<z.ZodNumber>;
811
- metadata: z.ZodAny;
812
- metadataType: z.ZodOptional<z.ZodString>;
813
- maxDuration: z.ZodOptional<z.ZodNumber>;
814
- parentAttempt: z.ZodOptional<z.ZodString>;
815
- machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
816
847
  }, "strip", z.ZodTypeAny, {
817
848
  metadata?: any;
818
849
  idempotencyKey?: string | undefined;
@@ -829,10 +860,10 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
829
860
  idempotencyKeyTTL?: string | undefined;
830
861
  concurrencyKey?: string | undefined;
831
862
  ttl?: string | number | undefined;
832
- parentAttempt?: string | undefined;
833
863
  lockToVersion?: string | undefined;
834
- test?: boolean | undefined;
835
864
  metadataType?: string | undefined;
865
+ parentAttempt?: string | undefined;
866
+ test?: boolean | undefined;
836
867
  }, {
837
868
  metadata?: any;
838
869
  idempotencyKey?: string | undefined;
@@ -849,10 +880,10 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
849
880
  idempotencyKeyTTL?: string | undefined;
850
881
  concurrencyKey?: string | undefined;
851
882
  ttl?: string | number | undefined;
852
- parentAttempt?: string | undefined;
853
883
  lockToVersion?: string | undefined;
854
- test?: boolean | undefined;
855
884
  metadataType?: string | undefined;
885
+ parentAttempt?: string | undefined;
886
+ test?: boolean | undefined;
856
887
  }>>;
857
888
  }, "strip", z.ZodTypeAny, {
858
889
  task: string;
@@ -872,10 +903,10 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
872
903
  idempotencyKeyTTL?: string | undefined;
873
904
  concurrencyKey?: string | undefined;
874
905
  ttl?: string | number | undefined;
875
- parentAttempt?: string | undefined;
876
906
  lockToVersion?: string | undefined;
877
- test?: boolean | undefined;
878
907
  metadataType?: string | undefined;
908
+ parentAttempt?: string | undefined;
909
+ test?: boolean | undefined;
879
910
  } | undefined;
880
911
  payload?: any;
881
912
  context?: any;
@@ -897,10 +928,10 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
897
928
  idempotencyKeyTTL?: string | undefined;
898
929
  concurrencyKey?: string | undefined;
899
930
  ttl?: string | number | undefined;
900
- parentAttempt?: string | undefined;
901
931
  lockToVersion?: string | undefined;
902
- test?: boolean | undefined;
903
932
  metadataType?: string | undefined;
933
+ parentAttempt?: string | undefined;
934
+ test?: boolean | undefined;
904
935
  } | undefined;
905
936
  payload?: any;
906
937
  context?: any;
@@ -912,7 +943,18 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
912
943
  payload: z.ZodAny;
913
944
  context: z.ZodAny;
914
945
  options: z.ZodOptional<z.ZodObject<{
946
+ concurrencyKey: z.ZodOptional<z.ZodString>;
947
+ delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
948
+ idempotencyKey: z.ZodOptional<z.ZodString>;
949
+ idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
915
950
  lockToVersion: z.ZodOptional<z.ZodString>;
951
+ machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
952
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
953
+ maxDuration: z.ZodOptional<z.ZodNumber>;
954
+ metadata: z.ZodAny;
955
+ metadataType: z.ZodOptional<z.ZodString>;
956
+ parentAttempt: z.ZodOptional<z.ZodString>;
957
+ payloadType: z.ZodOptional<z.ZodString>;
916
958
  queue: z.ZodOptional<z.ZodObject<{
917
959
  name: z.ZodOptional<z.ZodString>;
918
960
  concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -923,20 +965,9 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
923
965
  name?: string | undefined;
924
966
  concurrencyLimit?: number | null | undefined;
925
967
  }>>;
926
- concurrencyKey: z.ZodOptional<z.ZodString>;
927
- idempotencyKey: z.ZodOptional<z.ZodString>;
928
- idempotencyKeyTTL: z.ZodOptional<z.ZodString>;
968
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
929
969
  test: z.ZodOptional<z.ZodBoolean>;
930
- payloadType: z.ZodOptional<z.ZodString>;
931
- delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
932
970
  ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
933
- tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
934
- maxAttempts: z.ZodOptional<z.ZodNumber>;
935
- metadata: z.ZodAny;
936
- metadataType: z.ZodOptional<z.ZodString>;
937
- maxDuration: z.ZodOptional<z.ZodNumber>;
938
- parentAttempt: z.ZodOptional<z.ZodString>;
939
- machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
940
971
  }, "strip", z.ZodTypeAny, {
941
972
  metadata?: any;
942
973
  idempotencyKey?: string | undefined;
@@ -953,10 +984,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
953
984
  idempotencyKeyTTL?: string | undefined;
954
985
  concurrencyKey?: string | undefined;
955
986
  ttl?: string | number | undefined;
956
- parentAttempt?: string | undefined;
957
987
  lockToVersion?: string | undefined;
958
- test?: boolean | undefined;
959
988
  metadataType?: string | undefined;
989
+ parentAttempt?: string | undefined;
990
+ test?: boolean | undefined;
960
991
  }, {
961
992
  metadata?: any;
962
993
  idempotencyKey?: string | undefined;
@@ -973,10 +1004,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
973
1004
  idempotencyKeyTTL?: string | undefined;
974
1005
  concurrencyKey?: string | undefined;
975
1006
  ttl?: string | number | undefined;
976
- parentAttempt?: string | undefined;
977
1007
  lockToVersion?: string | undefined;
978
- test?: boolean | undefined;
979
1008
  metadataType?: string | undefined;
1009
+ parentAttempt?: string | undefined;
1010
+ test?: boolean | undefined;
980
1011
  }>>;
981
1012
  }, "strip", z.ZodTypeAny, {
982
1013
  task: string;
@@ -996,10 +1027,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
996
1027
  idempotencyKeyTTL?: string | undefined;
997
1028
  concurrencyKey?: string | undefined;
998
1029
  ttl?: string | number | undefined;
999
- parentAttempt?: string | undefined;
1000
1030
  lockToVersion?: string | undefined;
1001
- test?: boolean | undefined;
1002
1031
  metadataType?: string | undefined;
1032
+ parentAttempt?: string | undefined;
1033
+ test?: boolean | undefined;
1003
1034
  } | undefined;
1004
1035
  payload?: any;
1005
1036
  context?: any;
@@ -1021,10 +1052,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1021
1052
  idempotencyKeyTTL?: string | undefined;
1022
1053
  concurrencyKey?: string | undefined;
1023
1054
  ttl?: string | number | undefined;
1024
- parentAttempt?: string | undefined;
1025
1055
  lockToVersion?: string | undefined;
1026
- test?: boolean | undefined;
1027
1056
  metadataType?: string | undefined;
1057
+ parentAttempt?: string | undefined;
1058
+ test?: boolean | undefined;
1028
1059
  } | undefined;
1029
1060
  payload?: any;
1030
1061
  context?: any;
@@ -1049,10 +1080,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1049
1080
  idempotencyKeyTTL?: string | undefined;
1050
1081
  concurrencyKey?: string | undefined;
1051
1082
  ttl?: string | number | undefined;
1052
- parentAttempt?: string | undefined;
1053
1083
  lockToVersion?: string | undefined;
1054
- test?: boolean | undefined;
1055
1084
  metadataType?: string | undefined;
1085
+ parentAttempt?: string | undefined;
1086
+ test?: boolean | undefined;
1056
1087
  } | undefined;
1057
1088
  payload?: any;
1058
1089
  context?: any;
@@ -1077,10 +1108,10 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
1077
1108
  idempotencyKeyTTL?: string | undefined;
1078
1109
  concurrencyKey?: string | undefined;
1079
1110
  ttl?: string | number | undefined;
1080
- parentAttempt?: string | undefined;
1081
1111
  lockToVersion?: string | undefined;
1082
- test?: boolean | undefined;
1083
1112
  metadataType?: string | undefined;
1113
+ parentAttempt?: string | undefined;
1114
+ test?: boolean | undefined;
1084
1115
  } | undefined;
1085
1116
  payload?: any;
1086
1117
  context?: any;
@@ -50,25 +50,25 @@ exports.TriggerTaskRequestBody = zod_1.z.object({
50
50
  context: zod_1.z.any(),
51
51
  options: zod_1.z
52
52
  .object({
53
+ concurrencyKey: zod_1.z.string().optional(),
54
+ delay: zod_1.z.string().or(zod_1.z.coerce.date()).optional(),
53
55
  dependentAttempt: zod_1.z.string().optional(),
54
- parentAttempt: zod_1.z.string().optional(),
55
56
  dependentBatch: zod_1.z.string().optional(),
56
- parentBatch: zod_1.z.string().optional(),
57
- lockToVersion: zod_1.z.string().optional(),
58
- queue: schemas_js_1.QueueOptions.optional(),
59
- concurrencyKey: zod_1.z.string().optional(),
60
57
  idempotencyKey: zod_1.z.string().optional(),
61
58
  idempotencyKeyTTL: zod_1.z.string().optional(),
62
- test: zod_1.z.boolean().optional(),
63
- payloadType: zod_1.z.string().optional(),
64
- delay: zod_1.z.string().or(zod_1.z.coerce.date()).optional(),
65
- ttl: zod_1.z.string().or(zod_1.z.number().nonnegative().int()).optional(),
66
- tags: exports.RunTags.optional(),
59
+ lockToVersion: zod_1.z.string().optional(),
60
+ machine: common_js_1.MachinePresetName.optional(),
67
61
  maxAttempts: zod_1.z.number().int().optional(),
62
+ maxDuration: zod_1.z.number().optional(),
68
63
  metadata: zod_1.z.any(),
69
64
  metadataType: zod_1.z.string().optional(),
70
- maxDuration: zod_1.z.number().optional(),
71
- machine: common_js_1.MachinePresetName.optional(),
65
+ parentAttempt: zod_1.z.string().optional(),
66
+ parentBatch: zod_1.z.string().optional(),
67
+ payloadType: zod_1.z.string().optional(),
68
+ queue: schemas_js_1.QueueOptions.optional(),
69
+ tags: exports.RunTags.optional(),
70
+ test: zod_1.z.boolean().optional(),
71
+ ttl: zod_1.z.string().or(zod_1.z.number().nonnegative().int()).optional(),
72
72
  })
73
73
  .optional(),
74
74
  });
@@ -85,22 +85,22 @@ exports.BatchTriggerTaskItem = zod_1.z.object({
85
85
  context: zod_1.z.any(),
86
86
  options: zod_1.z
87
87
  .object({
88
- lockToVersion: zod_1.z.string().optional(),
89
- queue: schemas_js_1.QueueOptions.optional(),
90
88
  concurrencyKey: zod_1.z.string().optional(),
89
+ delay: zod_1.z.string().or(zod_1.z.coerce.date()).optional(),
91
90
  idempotencyKey: zod_1.z.string().optional(),
92
91
  idempotencyKeyTTL: zod_1.z.string().optional(),
93
- test: zod_1.z.boolean().optional(),
94
- payloadType: zod_1.z.string().optional(),
95
- delay: zod_1.z.string().or(zod_1.z.coerce.date()).optional(),
96
- ttl: zod_1.z.string().or(zod_1.z.number().nonnegative().int()).optional(),
97
- tags: exports.RunTags.optional(),
92
+ lockToVersion: zod_1.z.string().optional(),
93
+ machine: common_js_1.MachinePresetName.optional(),
98
94
  maxAttempts: zod_1.z.number().int().optional(),
95
+ maxDuration: zod_1.z.number().optional(),
99
96
  metadata: zod_1.z.any(),
100
97
  metadataType: zod_1.z.string().optional(),
101
- maxDuration: zod_1.z.number().optional(),
102
98
  parentAttempt: zod_1.z.string().optional(),
103
- machine: common_js_1.MachinePresetName.optional(),
99
+ payloadType: zod_1.z.string().optional(),
100
+ queue: schemas_js_1.QueueOptions.optional(),
101
+ tags: exports.RunTags.optional(),
102
+ test: zod_1.z.boolean().optional(),
103
+ ttl: zod_1.z.string().or(zod_1.z.number().nonnegative().int()).optional(),
104
104
  })
105
105
  .optional(),
106
106
  });