@trigger.dev/core 3.0.0-beta.5 → 3.0.0-beta.7
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 +1019 -935
- package/dist/v3/index.d.ts +1019 -935
- package/dist/v3/index.js +43 -1
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +42 -2
- package/dist/v3/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/index.js
CHANGED
|
@@ -754,6 +754,12 @@ var GetDeploymentResponseBody = zod.z.object({
|
|
|
754
754
|
var CreateUploadPayloadUrlResponseBody = zod.z.object({
|
|
755
755
|
presignedUrl: zod.z.string()
|
|
756
756
|
});
|
|
757
|
+
var ReplayRunResponse = zod.z.object({
|
|
758
|
+
id: zod.z.string()
|
|
759
|
+
});
|
|
760
|
+
var CanceledRunResponse = zod.z.object({
|
|
761
|
+
message: zod.z.string()
|
|
762
|
+
});
|
|
757
763
|
var PostStartCauses = zod.z.enum([
|
|
758
764
|
"index",
|
|
759
765
|
"create",
|
|
@@ -807,6 +813,27 @@ var ProviderToPlatformMessages = {
|
|
|
807
813
|
callback: zod.z.object({
|
|
808
814
|
status: zod.z.literal("ok")
|
|
809
815
|
})
|
|
816
|
+
},
|
|
817
|
+
WORKER_CRASHED: {
|
|
818
|
+
message: zod.z.object({
|
|
819
|
+
version: zod.z.literal("v1").default("v1"),
|
|
820
|
+
runId: zod.z.string(),
|
|
821
|
+
reason: zod.z.string().optional(),
|
|
822
|
+
exitCode: zod.z.number().optional(),
|
|
823
|
+
message: zod.z.string().optional(),
|
|
824
|
+
logs: zod.z.string().optional()
|
|
825
|
+
})
|
|
826
|
+
},
|
|
827
|
+
INDEXING_FAILED: {
|
|
828
|
+
message: zod.z.object({
|
|
829
|
+
version: zod.z.literal("v1").default("v1"),
|
|
830
|
+
deploymentId: zod.z.string(),
|
|
831
|
+
error: zod.z.object({
|
|
832
|
+
name: zod.z.string(),
|
|
833
|
+
message: zod.z.string(),
|
|
834
|
+
stack: zod.z.string().optional()
|
|
835
|
+
})
|
|
836
|
+
})
|
|
810
837
|
}
|
|
811
838
|
};
|
|
812
839
|
var PlatformToProviderMessages = {
|
|
@@ -829,7 +856,8 @@ var PlatformToProviderMessages = {
|
|
|
829
856
|
envId: zod.z.string(),
|
|
830
857
|
envType: EnvironmentType,
|
|
831
858
|
orgId: zod.z.string(),
|
|
832
|
-
projectId: zod.z.string()
|
|
859
|
+
projectId: zod.z.string(),
|
|
860
|
+
deploymentId: zod.z.string()
|
|
833
861
|
}),
|
|
834
862
|
callback: zod.z.discriminatedUnion("success", [
|
|
835
863
|
zod.z.object({
|
|
@@ -1841,6 +1869,18 @@ var _ApiClient = class _ApiClient {
|
|
|
1841
1869
|
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, false)
|
|
1842
1870
|
}, zodFetchOptions);
|
|
1843
1871
|
}
|
|
1872
|
+
replayRun(runId) {
|
|
1873
|
+
return zodfetch(ReplayRunResponse, `${this.baseUrl}/api/v1/runs/${runId}/replay`, {
|
|
1874
|
+
method: "POST",
|
|
1875
|
+
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, false)
|
|
1876
|
+
}, zodFetchOptions);
|
|
1877
|
+
}
|
|
1878
|
+
cancelRun(runId) {
|
|
1879
|
+
return zodfetch(CanceledRunResponse, `${this.baseUrl}/api/v2/runs/${runId}/cancel`, {
|
|
1880
|
+
method: "POST",
|
|
1881
|
+
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, false)
|
|
1882
|
+
}, zodFetchOptions);
|
|
1883
|
+
}
|
|
1844
1884
|
};
|
|
1845
1885
|
_getHeaders = new WeakSet();
|
|
1846
1886
|
getHeaders_fn = /* @__PURE__ */ __name(function(spanParentAsLink) {
|
|
@@ -4595,6 +4635,7 @@ exports.BackgroundWorkerServerMessages = BackgroundWorkerServerMessages;
|
|
|
4595
4635
|
exports.BatchTaskRunExecutionResult = BatchTaskRunExecutionResult;
|
|
4596
4636
|
exports.BatchTriggerTaskRequestBody = BatchTriggerTaskRequestBody;
|
|
4597
4637
|
exports.BatchTriggerTaskResponse = BatchTriggerTaskResponse;
|
|
4638
|
+
exports.CanceledRunResponse = CanceledRunResponse;
|
|
4598
4639
|
exports.CancellationSpanEvent = CancellationSpanEvent;
|
|
4599
4640
|
exports.ClientToSharedQueueMessages = ClientToSharedQueueMessages;
|
|
4600
4641
|
exports.Config = Config;
|
|
@@ -4660,6 +4701,7 @@ exports.ProdWorkerToCoordinatorMessages = ProdWorkerToCoordinatorMessages;
|
|
|
4660
4701
|
exports.ProviderToPlatformMessages = ProviderToPlatformMessages;
|
|
4661
4702
|
exports.QueueOptions = QueueOptions;
|
|
4662
4703
|
exports.RateLimitOptions = RateLimitOptions;
|
|
4704
|
+
exports.ReplayRunResponse = ReplayRunResponse;
|
|
4663
4705
|
exports.RetryOptions = RetryOptions;
|
|
4664
4706
|
exports.SemanticInternalAttributes = SemanticInternalAttributes;
|
|
4665
4707
|
exports.SharedQueueToClientMessages = SharedQueueToClientMessages;
|