@trigger.dev/core 0.0.0-prerelease-20240918205213 → 0.0.0-prerelease-20240920143613
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/apiClient/index.d.ts +238 -60
- package/dist/commonjs/v3/schemas/api.d.ts +901 -194
- package/dist/commonjs/v3/schemas/api.js +23 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +126 -126
- package/dist/commonjs/v3/schemas/fetch.d.ts +14 -14
- package/dist/commonjs/v3/schemas/messages.d.ts +3244 -3244
- package/dist/commonjs/v3/schemas/resources.d.ts +30 -30
- package/dist/commonjs/v3/schemas/schemas.d.ts +460 -460
- package/dist/commonjs/v3/utils/ioSerialization.js +7 -1
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/schemas/api.d.ts +8 -8
- package/dist/esm/v3/apiClient/index.d.ts +202 -24
- package/dist/esm/v3/schemas/api.d.ts +737 -30
- package/dist/esm/v3/schemas/api.js +21 -1
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +51 -51
- package/dist/esm/v3/schemas/schemas.d.ts +8 -8
- package/dist/esm/v3/utils/ioSerialization.js +7 -1
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/version.js +1 -1
- 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?:
|
|
216
|
-
memory?:
|
|
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?:
|
|
220
|
-
memory?:
|
|
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>;
|
|
@@ -280,8 +280,8 @@ export declare const TaskResource: z.ZodObject<{
|
|
|
280
280
|
randomize?: boolean | undefined;
|
|
281
281
|
} | undefined;
|
|
282
282
|
machine?: {
|
|
283
|
-
cpu?:
|
|
284
|
-
memory?:
|
|
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;
|
|
@@ -338,8 +338,8 @@ export declare const TaskResource: z.ZodObject<{
|
|
|
338
338
|
randomize?: boolean | undefined;
|
|
339
339
|
} | undefined;
|
|
340
340
|
machine?: {
|
|
341
|
-
cpu?:
|
|
342
|
-
memory?:
|
|
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,13 +355,13 @@ 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;
|
|
359
|
+
filePath: string;
|
|
360
360
|
contents: string;
|
|
361
361
|
taskIds: string[];
|
|
362
362
|
}, {
|
|
363
|
-
filePath: string;
|
|
364
363
|
contentHash: string;
|
|
364
|
+
filePath: string;
|
|
365
365
|
contents: string;
|
|
366
366
|
taskIds: string[];
|
|
367
367
|
}>;
|
|
@@ -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?:
|
|
587
|
-
memory?:
|
|
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?:
|
|
591
|
-
memory?:
|
|
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>;
|
|
@@ -651,8 +651,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
651
651
|
randomize?: boolean | undefined;
|
|
652
652
|
} | undefined;
|
|
653
653
|
machine?: {
|
|
654
|
-
cpu?:
|
|
655
|
-
memory?:
|
|
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;
|
|
@@ -709,8 +709,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
709
709
|
randomize?: boolean | undefined;
|
|
710
710
|
} | undefined;
|
|
711
711
|
machine?: {
|
|
712
|
-
cpu?:
|
|
713
|
-
memory?:
|
|
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,17 +725,19 @@ 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;
|
|
729
|
+
filePath: string;
|
|
730
730
|
contents: string;
|
|
731
731
|
taskIds: string[];
|
|
732
732
|
}, {
|
|
733
|
-
filePath: string;
|
|
734
733
|
contentHash: string;
|
|
734
|
+
filePath: string;
|
|
735
735
|
contents: string;
|
|
736
736
|
taskIds: string[];
|
|
737
737
|
}>, "many">>;
|
|
738
738
|
}, "strip", z.ZodTypeAny, {
|
|
739
|
+
packageVersion: string;
|
|
740
|
+
contentHash: string;
|
|
739
741
|
tasks: {
|
|
740
742
|
id: string;
|
|
741
743
|
filePath: string;
|
|
@@ -785,8 +787,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
785
787
|
randomize?: boolean | undefined;
|
|
786
788
|
} | undefined;
|
|
787
789
|
machine?: {
|
|
788
|
-
cpu?:
|
|
789
|
-
memory?:
|
|
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,16 +797,16 @@ 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;
|
|
803
|
+
filePath: string;
|
|
804
804
|
contents: string;
|
|
805
805
|
taskIds: string[];
|
|
806
806
|
}[] | undefined;
|
|
807
807
|
}, {
|
|
808
|
+
packageVersion: string;
|
|
809
|
+
contentHash: string;
|
|
808
810
|
tasks: {
|
|
809
811
|
id: string;
|
|
810
812
|
filePath: string;
|
|
@@ -854,8 +856,8 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
854
856
|
randomize?: boolean | undefined;
|
|
855
857
|
} | undefined;
|
|
856
858
|
machine?: {
|
|
857
|
-
cpu?:
|
|
858
|
-
memory?:
|
|
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,12 +866,10 @@ 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;
|
|
872
|
+
filePath: string;
|
|
873
873
|
contents: string;
|
|
874
874
|
taskIds: string[];
|
|
875
875
|
}[] | undefined;
|