@trigger.dev/core 3.0.0-beta.5 → 3.0.0-beta.6
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/v3/index.d.mts +68 -6
- package/dist/v3/index.d.ts +68 -6
- package/dist/v3/index.js +23 -1
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +23 -1
- package/dist/v3/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/index.d.mts
CHANGED
|
@@ -12662,6 +12662,65 @@ declare const ProviderToPlatformMessages: {
|
|
|
12662
12662
|
status: "ok";
|
|
12663
12663
|
}>;
|
|
12664
12664
|
};
|
|
12665
|
+
WORKER_CRASHED: {
|
|
12666
|
+
message: z.ZodObject<{
|
|
12667
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12668
|
+
runId: z.ZodString;
|
|
12669
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
12670
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
12671
|
+
message: z.ZodOptional<z.ZodString>;
|
|
12672
|
+
logs: z.ZodOptional<z.ZodString>;
|
|
12673
|
+
}, "strip", z.ZodTypeAny, {
|
|
12674
|
+
version: "v1";
|
|
12675
|
+
runId: string;
|
|
12676
|
+
reason?: string | undefined;
|
|
12677
|
+
exitCode?: number | undefined;
|
|
12678
|
+
message?: string | undefined;
|
|
12679
|
+
logs?: string | undefined;
|
|
12680
|
+
}, {
|
|
12681
|
+
runId: string;
|
|
12682
|
+
version?: "v1" | undefined;
|
|
12683
|
+
reason?: string | undefined;
|
|
12684
|
+
exitCode?: number | undefined;
|
|
12685
|
+
message?: string | undefined;
|
|
12686
|
+
logs?: string | undefined;
|
|
12687
|
+
}>;
|
|
12688
|
+
};
|
|
12689
|
+
INDEXING_FAILED: {
|
|
12690
|
+
message: z.ZodObject<{
|
|
12691
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12692
|
+
deploymentId: z.ZodString;
|
|
12693
|
+
error: z.ZodObject<{
|
|
12694
|
+
name: z.ZodString;
|
|
12695
|
+
message: z.ZodString;
|
|
12696
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
12697
|
+
}, "strip", z.ZodTypeAny, {
|
|
12698
|
+
name: string;
|
|
12699
|
+
message: string;
|
|
12700
|
+
stack?: string | undefined;
|
|
12701
|
+
}, {
|
|
12702
|
+
name: string;
|
|
12703
|
+
message: string;
|
|
12704
|
+
stack?: string | undefined;
|
|
12705
|
+
}>;
|
|
12706
|
+
}, "strip", z.ZodTypeAny, {
|
|
12707
|
+
error: {
|
|
12708
|
+
name: string;
|
|
12709
|
+
message: string;
|
|
12710
|
+
stack?: string | undefined;
|
|
12711
|
+
};
|
|
12712
|
+
version: "v1";
|
|
12713
|
+
deploymentId: string;
|
|
12714
|
+
}, {
|
|
12715
|
+
error: {
|
|
12716
|
+
name: string;
|
|
12717
|
+
message: string;
|
|
12718
|
+
stack?: string | undefined;
|
|
12719
|
+
};
|
|
12720
|
+
deploymentId: string;
|
|
12721
|
+
version?: "v1" | undefined;
|
|
12722
|
+
}>;
|
|
12723
|
+
};
|
|
12665
12724
|
};
|
|
12666
12725
|
declare const PlatformToProviderMessages: {
|
|
12667
12726
|
HEALTH: {
|
|
@@ -12691,6 +12750,7 @@ declare const PlatformToProviderMessages: {
|
|
|
12691
12750
|
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
12692
12751
|
orgId: z.ZodString;
|
|
12693
12752
|
projectId: z.ZodString;
|
|
12753
|
+
deploymentId: z.ZodString;
|
|
12694
12754
|
}, "strip", z.ZodTypeAny, {
|
|
12695
12755
|
version: "v1";
|
|
12696
12756
|
envId: string;
|
|
@@ -12701,6 +12761,7 @@ declare const PlatformToProviderMessages: {
|
|
|
12701
12761
|
apiKey: string;
|
|
12702
12762
|
apiUrl: string;
|
|
12703
12763
|
shortCode: string;
|
|
12764
|
+
deploymentId: string;
|
|
12704
12765
|
}, {
|
|
12705
12766
|
envId: string;
|
|
12706
12767
|
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
@@ -12710,6 +12771,7 @@ declare const PlatformToProviderMessages: {
|
|
|
12710
12771
|
apiKey: string;
|
|
12711
12772
|
apiUrl: string;
|
|
12712
12773
|
shortCode: string;
|
|
12774
|
+
deploymentId: string;
|
|
12713
12775
|
version?: "v1" | undefined;
|
|
12714
12776
|
}>;
|
|
12715
12777
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -13376,8 +13438,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13376
13438
|
}[];
|
|
13377
13439
|
cliPackageVersion?: string | undefined;
|
|
13378
13440
|
};
|
|
13379
|
-
projectRef: string;
|
|
13380
13441
|
deploymentId: string;
|
|
13442
|
+
projectRef: string;
|
|
13381
13443
|
}, {
|
|
13382
13444
|
envId: string;
|
|
13383
13445
|
metadata: {
|
|
@@ -13439,8 +13501,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13439
13501
|
}[];
|
|
13440
13502
|
cliPackageVersion?: string | undefined;
|
|
13441
13503
|
};
|
|
13442
|
-
projectRef: string;
|
|
13443
13504
|
deploymentId: string;
|
|
13505
|
+
projectRef: string;
|
|
13444
13506
|
version?: "v1" | undefined;
|
|
13445
13507
|
}>;
|
|
13446
13508
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -14583,7 +14645,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14583
14645
|
}>]>;
|
|
14584
14646
|
}, "strip", z.ZodTypeAny, {
|
|
14585
14647
|
version: "v1";
|
|
14586
|
-
location: string;
|
|
14587
14648
|
reason: {
|
|
14588
14649
|
type: "WAIT_FOR_DURATION";
|
|
14589
14650
|
ms: number;
|
|
@@ -14599,10 +14660,10 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14599
14660
|
type: "RETRYING_AFTER_FAILURE";
|
|
14600
14661
|
attemptNumber: number;
|
|
14601
14662
|
};
|
|
14663
|
+
location: string;
|
|
14602
14664
|
attemptFriendlyId: string;
|
|
14603
14665
|
docker: boolean;
|
|
14604
14666
|
}, {
|
|
14605
|
-
location: string;
|
|
14606
14667
|
reason: {
|
|
14607
14668
|
type: "WAIT_FOR_DURATION";
|
|
14608
14669
|
ms: number;
|
|
@@ -14618,6 +14679,7 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14618
14679
|
type: "RETRYING_AFTER_FAILURE";
|
|
14619
14680
|
attemptNumber: number;
|
|
14620
14681
|
};
|
|
14682
|
+
location: string;
|
|
14621
14683
|
attemptFriendlyId: string;
|
|
14622
14684
|
docker: boolean;
|
|
14623
14685
|
version?: "v1" | undefined;
|
|
@@ -18849,8 +18911,8 @@ declare const ProdWorkerSocketData: z.ZodObject<{
|
|
|
18849
18911
|
contentHash: string;
|
|
18850
18912
|
envId: string;
|
|
18851
18913
|
runId: string;
|
|
18852
|
-
projectRef: string;
|
|
18853
18914
|
deploymentId: string;
|
|
18915
|
+
projectRef: string;
|
|
18854
18916
|
podName: string;
|
|
18855
18917
|
deploymentVersion: string;
|
|
18856
18918
|
attemptFriendlyId?: string | undefined;
|
|
@@ -18858,8 +18920,8 @@ declare const ProdWorkerSocketData: z.ZodObject<{
|
|
|
18858
18920
|
contentHash: string;
|
|
18859
18921
|
envId: string;
|
|
18860
18922
|
runId: string;
|
|
18861
|
-
projectRef: string;
|
|
18862
18923
|
deploymentId: string;
|
|
18924
|
+
projectRef: string;
|
|
18863
18925
|
podName: string;
|
|
18864
18926
|
deploymentVersion: string;
|
|
18865
18927
|
attemptFriendlyId?: string | undefined;
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -12662,6 +12662,65 @@ declare const ProviderToPlatformMessages: {
|
|
|
12662
12662
|
status: "ok";
|
|
12663
12663
|
}>;
|
|
12664
12664
|
};
|
|
12665
|
+
WORKER_CRASHED: {
|
|
12666
|
+
message: z.ZodObject<{
|
|
12667
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12668
|
+
runId: z.ZodString;
|
|
12669
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
12670
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
12671
|
+
message: z.ZodOptional<z.ZodString>;
|
|
12672
|
+
logs: z.ZodOptional<z.ZodString>;
|
|
12673
|
+
}, "strip", z.ZodTypeAny, {
|
|
12674
|
+
version: "v1";
|
|
12675
|
+
runId: string;
|
|
12676
|
+
reason?: string | undefined;
|
|
12677
|
+
exitCode?: number | undefined;
|
|
12678
|
+
message?: string | undefined;
|
|
12679
|
+
logs?: string | undefined;
|
|
12680
|
+
}, {
|
|
12681
|
+
runId: string;
|
|
12682
|
+
version?: "v1" | undefined;
|
|
12683
|
+
reason?: string | undefined;
|
|
12684
|
+
exitCode?: number | undefined;
|
|
12685
|
+
message?: string | undefined;
|
|
12686
|
+
logs?: string | undefined;
|
|
12687
|
+
}>;
|
|
12688
|
+
};
|
|
12689
|
+
INDEXING_FAILED: {
|
|
12690
|
+
message: z.ZodObject<{
|
|
12691
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12692
|
+
deploymentId: z.ZodString;
|
|
12693
|
+
error: z.ZodObject<{
|
|
12694
|
+
name: z.ZodString;
|
|
12695
|
+
message: z.ZodString;
|
|
12696
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
12697
|
+
}, "strip", z.ZodTypeAny, {
|
|
12698
|
+
name: string;
|
|
12699
|
+
message: string;
|
|
12700
|
+
stack?: string | undefined;
|
|
12701
|
+
}, {
|
|
12702
|
+
name: string;
|
|
12703
|
+
message: string;
|
|
12704
|
+
stack?: string | undefined;
|
|
12705
|
+
}>;
|
|
12706
|
+
}, "strip", z.ZodTypeAny, {
|
|
12707
|
+
error: {
|
|
12708
|
+
name: string;
|
|
12709
|
+
message: string;
|
|
12710
|
+
stack?: string | undefined;
|
|
12711
|
+
};
|
|
12712
|
+
version: "v1";
|
|
12713
|
+
deploymentId: string;
|
|
12714
|
+
}, {
|
|
12715
|
+
error: {
|
|
12716
|
+
name: string;
|
|
12717
|
+
message: string;
|
|
12718
|
+
stack?: string | undefined;
|
|
12719
|
+
};
|
|
12720
|
+
deploymentId: string;
|
|
12721
|
+
version?: "v1" | undefined;
|
|
12722
|
+
}>;
|
|
12723
|
+
};
|
|
12665
12724
|
};
|
|
12666
12725
|
declare const PlatformToProviderMessages: {
|
|
12667
12726
|
HEALTH: {
|
|
@@ -12691,6 +12750,7 @@ declare const PlatformToProviderMessages: {
|
|
|
12691
12750
|
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
12692
12751
|
orgId: z.ZodString;
|
|
12693
12752
|
projectId: z.ZodString;
|
|
12753
|
+
deploymentId: z.ZodString;
|
|
12694
12754
|
}, "strip", z.ZodTypeAny, {
|
|
12695
12755
|
version: "v1";
|
|
12696
12756
|
envId: string;
|
|
@@ -12701,6 +12761,7 @@ declare const PlatformToProviderMessages: {
|
|
|
12701
12761
|
apiKey: string;
|
|
12702
12762
|
apiUrl: string;
|
|
12703
12763
|
shortCode: string;
|
|
12764
|
+
deploymentId: string;
|
|
12704
12765
|
}, {
|
|
12705
12766
|
envId: string;
|
|
12706
12767
|
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
@@ -12710,6 +12771,7 @@ declare const PlatformToProviderMessages: {
|
|
|
12710
12771
|
apiKey: string;
|
|
12711
12772
|
apiUrl: string;
|
|
12712
12773
|
shortCode: string;
|
|
12774
|
+
deploymentId: string;
|
|
12713
12775
|
version?: "v1" | undefined;
|
|
12714
12776
|
}>;
|
|
12715
12777
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -13376,8 +13438,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13376
13438
|
}[];
|
|
13377
13439
|
cliPackageVersion?: string | undefined;
|
|
13378
13440
|
};
|
|
13379
|
-
projectRef: string;
|
|
13380
13441
|
deploymentId: string;
|
|
13442
|
+
projectRef: string;
|
|
13381
13443
|
}, {
|
|
13382
13444
|
envId: string;
|
|
13383
13445
|
metadata: {
|
|
@@ -13439,8 +13501,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13439
13501
|
}[];
|
|
13440
13502
|
cliPackageVersion?: string | undefined;
|
|
13441
13503
|
};
|
|
13442
|
-
projectRef: string;
|
|
13443
13504
|
deploymentId: string;
|
|
13505
|
+
projectRef: string;
|
|
13444
13506
|
version?: "v1" | undefined;
|
|
13445
13507
|
}>;
|
|
13446
13508
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -14583,7 +14645,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14583
14645
|
}>]>;
|
|
14584
14646
|
}, "strip", z.ZodTypeAny, {
|
|
14585
14647
|
version: "v1";
|
|
14586
|
-
location: string;
|
|
14587
14648
|
reason: {
|
|
14588
14649
|
type: "WAIT_FOR_DURATION";
|
|
14589
14650
|
ms: number;
|
|
@@ -14599,10 +14660,10 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14599
14660
|
type: "RETRYING_AFTER_FAILURE";
|
|
14600
14661
|
attemptNumber: number;
|
|
14601
14662
|
};
|
|
14663
|
+
location: string;
|
|
14602
14664
|
attemptFriendlyId: string;
|
|
14603
14665
|
docker: boolean;
|
|
14604
14666
|
}, {
|
|
14605
|
-
location: string;
|
|
14606
14667
|
reason: {
|
|
14607
14668
|
type: "WAIT_FOR_DURATION";
|
|
14608
14669
|
ms: number;
|
|
@@ -14618,6 +14679,7 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14618
14679
|
type: "RETRYING_AFTER_FAILURE";
|
|
14619
14680
|
attemptNumber: number;
|
|
14620
14681
|
};
|
|
14682
|
+
location: string;
|
|
14621
14683
|
attemptFriendlyId: string;
|
|
14622
14684
|
docker: boolean;
|
|
14623
14685
|
version?: "v1" | undefined;
|
|
@@ -18849,8 +18911,8 @@ declare const ProdWorkerSocketData: z.ZodObject<{
|
|
|
18849
18911
|
contentHash: string;
|
|
18850
18912
|
envId: string;
|
|
18851
18913
|
runId: string;
|
|
18852
|
-
projectRef: string;
|
|
18853
18914
|
deploymentId: string;
|
|
18915
|
+
projectRef: string;
|
|
18854
18916
|
podName: string;
|
|
18855
18917
|
deploymentVersion: string;
|
|
18856
18918
|
attemptFriendlyId?: string | undefined;
|
|
@@ -18858,8 +18920,8 @@ declare const ProdWorkerSocketData: z.ZodObject<{
|
|
|
18858
18920
|
contentHash: string;
|
|
18859
18921
|
envId: string;
|
|
18860
18922
|
runId: string;
|
|
18861
|
-
projectRef: string;
|
|
18862
18923
|
deploymentId: string;
|
|
18924
|
+
projectRef: string;
|
|
18863
18925
|
podName: string;
|
|
18864
18926
|
deploymentVersion: string;
|
|
18865
18927
|
attemptFriendlyId?: string | undefined;
|
package/dist/v3/index.js
CHANGED
|
@@ -807,6 +807,27 @@ var ProviderToPlatformMessages = {
|
|
|
807
807
|
callback: zod.z.object({
|
|
808
808
|
status: zod.z.literal("ok")
|
|
809
809
|
})
|
|
810
|
+
},
|
|
811
|
+
WORKER_CRASHED: {
|
|
812
|
+
message: zod.z.object({
|
|
813
|
+
version: zod.z.literal("v1").default("v1"),
|
|
814
|
+
runId: zod.z.string(),
|
|
815
|
+
reason: zod.z.string().optional(),
|
|
816
|
+
exitCode: zod.z.number().optional(),
|
|
817
|
+
message: zod.z.string().optional(),
|
|
818
|
+
logs: zod.z.string().optional()
|
|
819
|
+
})
|
|
820
|
+
},
|
|
821
|
+
INDEXING_FAILED: {
|
|
822
|
+
message: zod.z.object({
|
|
823
|
+
version: zod.z.literal("v1").default("v1"),
|
|
824
|
+
deploymentId: zod.z.string(),
|
|
825
|
+
error: zod.z.object({
|
|
826
|
+
name: zod.z.string(),
|
|
827
|
+
message: zod.z.string(),
|
|
828
|
+
stack: zod.z.string().optional()
|
|
829
|
+
})
|
|
830
|
+
})
|
|
810
831
|
}
|
|
811
832
|
};
|
|
812
833
|
var PlatformToProviderMessages = {
|
|
@@ -829,7 +850,8 @@ var PlatformToProviderMessages = {
|
|
|
829
850
|
envId: zod.z.string(),
|
|
830
851
|
envType: EnvironmentType,
|
|
831
852
|
orgId: zod.z.string(),
|
|
832
|
-
projectId: zod.z.string()
|
|
853
|
+
projectId: zod.z.string(),
|
|
854
|
+
deploymentId: zod.z.string()
|
|
833
855
|
}),
|
|
834
856
|
callback: zod.z.discriminatedUnion("success", [
|
|
835
857
|
zod.z.object({
|