@trigger.dev/core 3.0.0-beta.6 → 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 +959 -937
- package/dist/v3/index.d.ts +959 -937
- package/dist/v3/index.js +20 -0
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +19 -1
- 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",
|
|
@@ -1863,6 +1869,18 @@ var _ApiClient = class _ApiClient {
|
|
|
1863
1869
|
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, false)
|
|
1864
1870
|
}, zodFetchOptions);
|
|
1865
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
|
+
}
|
|
1866
1884
|
};
|
|
1867
1885
|
_getHeaders = new WeakSet();
|
|
1868
1886
|
getHeaders_fn = /* @__PURE__ */ __name(function(spanParentAsLink) {
|
|
@@ -4617,6 +4635,7 @@ exports.BackgroundWorkerServerMessages = BackgroundWorkerServerMessages;
|
|
|
4617
4635
|
exports.BatchTaskRunExecutionResult = BatchTaskRunExecutionResult;
|
|
4618
4636
|
exports.BatchTriggerTaskRequestBody = BatchTriggerTaskRequestBody;
|
|
4619
4637
|
exports.BatchTriggerTaskResponse = BatchTriggerTaskResponse;
|
|
4638
|
+
exports.CanceledRunResponse = CanceledRunResponse;
|
|
4620
4639
|
exports.CancellationSpanEvent = CancellationSpanEvent;
|
|
4621
4640
|
exports.ClientToSharedQueueMessages = ClientToSharedQueueMessages;
|
|
4622
4641
|
exports.Config = Config;
|
|
@@ -4682,6 +4701,7 @@ exports.ProdWorkerToCoordinatorMessages = ProdWorkerToCoordinatorMessages;
|
|
|
4682
4701
|
exports.ProviderToPlatformMessages = ProviderToPlatformMessages;
|
|
4683
4702
|
exports.QueueOptions = QueueOptions;
|
|
4684
4703
|
exports.RateLimitOptions = RateLimitOptions;
|
|
4704
|
+
exports.ReplayRunResponse = ReplayRunResponse;
|
|
4685
4705
|
exports.RetryOptions = RetryOptions;
|
|
4686
4706
|
exports.SemanticInternalAttributes = SemanticInternalAttributes;
|
|
4687
4707
|
exports.SharedQueueToClientMessages = SharedQueueToClientMessages;
|