@trigger.dev/core 0.0.0-prerelease-20240823132052 → 0.0.0-prerelease-20240905123715

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 (39) hide show
  1. package/dist/commonjs/v3/apiClient/index.d.ts +45 -45
  2. package/dist/commonjs/v3/build/extensions.d.ts +1 -1
  3. package/dist/commonjs/v3/build/extensions.js +2 -2
  4. package/dist/commonjs/v3/build/extensions.js.map +1 -1
  5. package/dist/commonjs/v3/build/runtime.d.ts +5 -0
  6. package/dist/commonjs/v3/build/runtime.js +19 -0
  7. package/dist/commonjs/v3/build/runtime.js.map +1 -1
  8. package/dist/commonjs/v3/config.d.ts +10 -0
  9. package/dist/commonjs/v3/schemas/api.d.ts +207 -207
  10. package/dist/commonjs/v3/schemas/build.d.ts +190 -170
  11. package/dist/commonjs/v3/schemas/build.js +2 -0
  12. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  13. package/dist/commonjs/v3/schemas/fetch.d.ts +14 -14
  14. package/dist/commonjs/v3/schemas/messages.d.ts +2821 -2816
  15. package/dist/commonjs/v3/schemas/resources.d.ts +36 -36
  16. package/dist/commonjs/v3/schemas/schemas.d.ts +395 -395
  17. package/dist/commonjs/v3/workers/taskExecutor.js +0 -12
  18. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  19. package/dist/commonjs/version.js +1 -1
  20. package/dist/esm/v3/apiClient/index.d.ts +45 -45
  21. package/dist/esm/v3/build/extensions.d.ts +1 -1
  22. package/dist/esm/v3/build/extensions.js +1 -1
  23. package/dist/esm/v3/build/extensions.js.map +1 -1
  24. package/dist/esm/v3/build/runtime.d.ts +5 -0
  25. package/dist/esm/v3/build/runtime.js +18 -0
  26. package/dist/esm/v3/build/runtime.js.map +1 -1
  27. package/dist/esm/v3/config.d.ts +10 -0
  28. package/dist/esm/v3/schemas/api.d.ts +207 -207
  29. package/dist/esm/v3/schemas/build.d.ts +190 -170
  30. package/dist/esm/v3/schemas/build.js +2 -0
  31. package/dist/esm/v3/schemas/build.js.map +1 -1
  32. package/dist/esm/v3/schemas/fetch.d.ts +14 -14
  33. package/dist/esm/v3/schemas/messages.d.ts +2821 -2816
  34. package/dist/esm/v3/schemas/resources.d.ts +36 -36
  35. package/dist/esm/v3/schemas/schemas.d.ts +395 -395
  36. package/dist/esm/v3/workers/taskExecutor.js +0 -12
  37. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  38. package/dist/esm/version.js +1 -1
  39. package/package.json +1 -1
@@ -212,12 +212,12 @@ export declare const TaskResource: z.ZodObject<{
212
212
  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>]>>;
213
213
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
214
214
  }, "strip", z.ZodTypeAny, {
215
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
216
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
215
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
216
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
217
217
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
218
218
  }, {
219
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
220
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
219
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
220
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
221
221
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
222
222
  }>>;
223
223
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -232,9 +232,9 @@ export declare const TaskResource: z.ZodObject<{
232
232
  timezone: string;
233
233
  }>>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- id: string;
236
235
  filePath: string;
237
236
  exportName: string;
237
+ id: string;
238
238
  queue?: {
239
239
  name?: string | undefined;
240
240
  concurrencyLimit?: number | undefined;
@@ -280,8 +280,8 @@ export declare const TaskResource: z.ZodObject<{
280
280
  randomize?: boolean | undefined;
281
281
  } | undefined;
282
282
  machine?: {
283
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
284
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
283
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
284
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
285
285
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
286
286
  } | undefined;
287
287
  triggerSource?: string | undefined;
@@ -290,9 +290,9 @@ export declare const TaskResource: z.ZodObject<{
290
290
  timezone: string;
291
291
  } | undefined;
292
292
  }, {
293
- id: string;
294
293
  filePath: string;
295
294
  exportName: string;
295
+ id: string;
296
296
  queue?: {
297
297
  name?: string | undefined;
298
298
  concurrencyLimit?: number | undefined;
@@ -338,8 +338,8 @@ export declare const TaskResource: z.ZodObject<{
338
338
  randomize?: boolean | undefined;
339
339
  } | undefined;
340
340
  machine?: {
341
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
342
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
341
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
342
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
343
343
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
344
344
  } | undefined;
345
345
  triggerSource?: string | undefined;
@@ -355,14 +355,14 @@ export declare const BackgroundWorkerSourceFileMetadata: z.ZodObject<{
355
355
  contentHash: z.ZodString;
356
356
  taskIds: z.ZodArray<z.ZodString, "many">;
357
357
  }, "strip", z.ZodTypeAny, {
358
- filePath: string;
359
358
  contentHash: string;
360
359
  contents: string;
360
+ filePath: string;
361
361
  taskIds: string[];
362
362
  }, {
363
- filePath: string;
364
363
  contentHash: string;
365
364
  contents: string;
365
+ filePath: string;
366
366
  taskIds: string[];
367
367
  }>;
368
368
  export type BackgroundWorkerSourceFileMetadata = z.infer<typeof BackgroundWorkerSourceFileMetadata>;
@@ -583,12 +583,12 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
583
583
  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>]>>;
584
584
  preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
585
585
  }, "strip", z.ZodTypeAny, {
586
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
587
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
586
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
587
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
588
588
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
589
589
  }, {
590
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
591
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
590
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
591
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
592
592
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
593
593
  }>>;
594
594
  triggerSource: z.ZodOptional<z.ZodString>;
@@ -603,9 +603,9 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
603
603
  timezone: string;
604
604
  }>>;
605
605
  }, "strip", z.ZodTypeAny, {
606
- id: string;
607
606
  filePath: string;
608
607
  exportName: string;
608
+ id: string;
609
609
  queue?: {
610
610
  name?: string | undefined;
611
611
  concurrencyLimit?: number | undefined;
@@ -651,8 +651,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
651
651
  randomize?: boolean | undefined;
652
652
  } | undefined;
653
653
  machine?: {
654
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
655
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
654
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
655
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
656
656
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
657
657
  } | undefined;
658
658
  triggerSource?: string | undefined;
@@ -661,9 +661,9 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
661
661
  timezone: string;
662
662
  } | undefined;
663
663
  }, {
664
- id: string;
665
664
  filePath: string;
666
665
  exportName: string;
666
+ id: string;
667
667
  queue?: {
668
668
  name?: string | undefined;
669
669
  concurrencyLimit?: number | undefined;
@@ -709,8 +709,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
709
709
  randomize?: boolean | undefined;
710
710
  } | undefined;
711
711
  machine?: {
712
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
713
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
712
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
713
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
714
714
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
715
715
  } | undefined;
716
716
  triggerSource?: string | undefined;
@@ -725,21 +725,23 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
725
725
  contentHash: z.ZodString;
726
726
  taskIds: z.ZodArray<z.ZodString, "many">;
727
727
  }, "strip", z.ZodTypeAny, {
728
- filePath: string;
729
728
  contentHash: string;
730
729
  contents: string;
730
+ filePath: string;
731
731
  taskIds: string[];
732
732
  }, {
733
- filePath: string;
734
733
  contentHash: string;
735
734
  contents: string;
735
+ filePath: string;
736
736
  taskIds: string[];
737
737
  }>, "many">>;
738
738
  }, "strip", z.ZodTypeAny, {
739
+ packageVersion: string;
740
+ contentHash: string;
739
741
  tasks: {
740
- id: string;
741
742
  filePath: string;
742
743
  exportName: string;
744
+ id: string;
743
745
  queue?: {
744
746
  name?: string | undefined;
745
747
  concurrencyLimit?: number | undefined;
@@ -785,8 +787,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
785
787
  randomize?: boolean | undefined;
786
788
  } | undefined;
787
789
  machine?: {
788
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
789
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
790
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
791
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
790
792
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
791
793
  } | undefined;
792
794
  triggerSource?: string | undefined;
@@ -795,20 +797,20 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
795
797
  timezone: string;
796
798
  } | undefined;
797
799
  }[];
798
- contentHash: string;
799
- packageVersion: string;
800
800
  cliPackageVersion?: string | undefined;
801
801
  sourceFiles?: {
802
- filePath: string;
803
802
  contentHash: string;
804
803
  contents: string;
804
+ filePath: string;
805
805
  taskIds: string[];
806
806
  }[] | undefined;
807
807
  }, {
808
+ packageVersion: string;
809
+ contentHash: string;
808
810
  tasks: {
809
- id: string;
810
811
  filePath: string;
811
812
  exportName: string;
813
+ id: string;
812
814
  queue?: {
813
815
  name?: string | undefined;
814
816
  concurrencyLimit?: number | undefined;
@@ -854,8 +856,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
854
856
  randomize?: boolean | undefined;
855
857
  } | undefined;
856
858
  machine?: {
857
- cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
858
- memory?: 8 | 1 | 2 | 4 | 0.25 | 0.5 | undefined;
859
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
860
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
859
861
  preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
860
862
  } | undefined;
861
863
  triggerSource?: string | undefined;
@@ -864,13 +866,11 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
864
866
  timezone: string;
865
867
  } | undefined;
866
868
  }[];
867
- contentHash: string;
868
- packageVersion: string;
869
869
  cliPackageVersion?: string | undefined;
870
870
  sourceFiles?: {
871
- filePath: string;
872
871
  contentHash: string;
873
872
  contents: string;
873
+ filePath: string;
874
874
  taskIds: string[];
875
875
  }[] | undefined;
876
876
  }>;