@trigger.dev/sdk 0.0.0-prerelease-20250211141853 → 0.0.0-prerelease-20250212002625
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/index.d.ts +1 -1
- package/dist/commonjs/v3/index.js +2 -1
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/runs.d.ts +23 -23
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/apiClient.d.ts +146 -146
- package/dist/esm/io.d.ts +12 -12
- package/dist/esm/status.d.ts +4 -4
- package/dist/esm/triggerClient.d.ts +40 -40
- package/dist/esm/triggers/notifications.d.ts +8 -8
- package/dist/esm/triggers/scheduled.d.ts +2 -2
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/v3/index.d.ts +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/runs.d.ts +46 -46
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ export type { Context };
|
|
|
16
16
|
import type { Context } from "./shared.js";
|
|
17
17
|
import type { ApiClientConfiguration } from "@trigger.dev/core/v3";
|
|
18
18
|
export type { ApiClientConfiguration };
|
|
19
|
-
export { ApiError, AuthenticationError, BadRequestError, ConflictError, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, AbortTaskRunError, logger, type LogLevel, } from "@trigger.dev/core/v3";
|
|
19
|
+
export { ApiError, AuthenticationError, BadRequestError, ConflictError, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError, AbortTaskRunError, OutOfMemoryError, logger, type LogLevel, } from "@trigger.dev/core/v3";
|
|
20
20
|
export { runs, type RunShape, type AnyRunShape, type TaskRunShape, type RealtimeRun, type AnyRealtimeRun, type RetrieveRunResult, type AnyRetrieveRunResult, } from "./runs.js";
|
|
21
21
|
export * as schedules from "./schedules/index.js";
|
|
22
22
|
export * as envvars from "./envvars.js";
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.auth = exports.configure = exports.envvars = exports.schedules = exports.runs = exports.logger = exports.AbortTaskRunError = exports.UnprocessableEntityError = exports.RateLimitError = exports.PermissionDeniedError = exports.NotFoundError = exports.InternalServerError = exports.ConflictError = exports.BadRequestError = exports.AuthenticationError = exports.ApiError = exports.queue = exports.retry = void 0;
|
|
29
|
+
exports.auth = exports.configure = exports.envvars = exports.schedules = exports.runs = exports.logger = exports.OutOfMemoryError = exports.AbortTaskRunError = exports.UnprocessableEntityError = exports.RateLimitError = exports.PermissionDeniedError = exports.NotFoundError = exports.InternalServerError = exports.ConflictError = exports.BadRequestError = exports.AuthenticationError = exports.ApiError = exports.queue = exports.retry = void 0;
|
|
30
30
|
__exportStar(require("./cache.js"), exports);
|
|
31
31
|
__exportStar(require("./config.js"), exports);
|
|
32
32
|
var retry_js_1 = require("./retry.js");
|
|
@@ -54,6 +54,7 @@ Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get:
|
|
|
54
54
|
Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return v3_1.RateLimitError; } });
|
|
55
55
|
Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return v3_1.UnprocessableEntityError; } });
|
|
56
56
|
Object.defineProperty(exports, "AbortTaskRunError", { enumerable: true, get: function () { return v3_1.AbortTaskRunError; } });
|
|
57
|
+
Object.defineProperty(exports, "OutOfMemoryError", { enumerable: true, get: function () { return v3_1.OutOfMemoryError; } });
|
|
57
58
|
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return v3_1.logger; } });
|
|
58
59
|
var runs_js_1 = require("./runs.js");
|
|
59
60
|
Object.defineProperty(exports, "runs", { enumerable: true, get: function () { return runs_js_1.runs; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,uCAAsD;AAA7C,iGAAA,KAAK,OAAA;AACd,yCAAoC;AAA3B,kGAAA,KAAK,OAAA;AACd,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B;AAC3B,uDAAqC;AACrC,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAS/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,uCAAsD;AAA7C,iGAAA,KAAK,OAAA;AACd,yCAAoC;AAA3B,kGAAA,KAAK,OAAA;AACd,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B;AAC3B,uDAAqC;AACrC,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAS/B,2CAc8B;AAb5B,8FAAA,QAAQ,OAAA;AACR,yGAAA,mBAAmB,OAAA;AACnB,qGAAA,eAAe,OAAA;AACf,mGAAA,aAAa,OAAA;AACb,yGAAA,mBAAmB,OAAA;AACnB,mGAAA,aAAa,OAAA;AACb,2GAAA,qBAAqB,OAAA;AACrB,oGAAA,cAAc,OAAA;AACd,8GAAA,wBAAwB,OAAA;AACxB,uGAAA,iBAAiB,OAAA;AACjB,sGAAA,gBAAgB,OAAA;AAChB,4FAAA,MAAM,OAAA;AAIR,qCASmB;AARjB,+FAAA,IAAI,OAAA;AASN,kEAAkD;AAClD,wDAAwC;AAGxC,qCAA4C;AAAnC,oGAAA,SAAS,OAAA;AAAE,+FAAA,IAAI,OAAA"}
|
|
@@ -28,10 +28,20 @@ export type PollOptions = {
|
|
|
28
28
|
declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: RunId<TRunId>, options?: {
|
|
29
29
|
pollIntervalMs?: number;
|
|
30
30
|
}, requestOptions?: ApiRequestOptions): Promise<{
|
|
31
|
-
tags: string[];
|
|
32
31
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
33
|
-
|
|
32
|
+
id: string;
|
|
33
|
+
error?: {
|
|
34
|
+
message: string;
|
|
35
|
+
stackTrace?: string | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
idempotencyKey?: string | undefined;
|
|
39
|
+
startedAt?: Date | undefined;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
isTest: boolean;
|
|
34
42
|
version?: string | undefined;
|
|
43
|
+
metadata?: Record<string, any> | undefined;
|
|
44
|
+
createdAt: Date;
|
|
35
45
|
schedule?: {
|
|
36
46
|
id: string;
|
|
37
47
|
generator: {
|
|
@@ -42,17 +52,15 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
42
52
|
externalId?: string | undefined;
|
|
43
53
|
deduplicationKey?: string | undefined;
|
|
44
54
|
} | undefined;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
createdAt: Date;
|
|
55
|
+
tags: string[];
|
|
56
|
+
taskIdentifier: string;
|
|
48
57
|
durationMs: number;
|
|
49
58
|
costInCents: number;
|
|
50
59
|
baseCostInCents: number;
|
|
51
|
-
attemptCount: number;
|
|
52
60
|
relatedRuns: {
|
|
53
61
|
root?: {
|
|
54
|
-
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
55
62
|
id: string;
|
|
63
|
+
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
56
64
|
tags: string[];
|
|
57
65
|
isTest: boolean;
|
|
58
66
|
createdAt: Date;
|
|
@@ -69,9 +77,9 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
69
77
|
isFailed: boolean;
|
|
70
78
|
isCancelled: boolean;
|
|
71
79
|
updatedAt: Date;
|
|
80
|
+
version?: string | undefined;
|
|
72
81
|
startedAt?: Date | undefined;
|
|
73
82
|
idempotencyKey?: string | undefined;
|
|
74
|
-
version?: string | undefined;
|
|
75
83
|
metadata?: Record<string, any> | undefined;
|
|
76
84
|
ttl?: string | undefined;
|
|
77
85
|
batchId?: string | undefined;
|
|
@@ -80,8 +88,8 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
80
88
|
expiredAt?: Date | undefined;
|
|
81
89
|
} | undefined;
|
|
82
90
|
parent?: {
|
|
83
|
-
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
84
91
|
id: string;
|
|
92
|
+
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
85
93
|
tags: string[];
|
|
86
94
|
isTest: boolean;
|
|
87
95
|
createdAt: Date;
|
|
@@ -98,9 +106,9 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
98
106
|
isFailed: boolean;
|
|
99
107
|
isCancelled: boolean;
|
|
100
108
|
updatedAt: Date;
|
|
109
|
+
version?: string | undefined;
|
|
101
110
|
startedAt?: Date | undefined;
|
|
102
111
|
idempotencyKey?: string | undefined;
|
|
103
|
-
version?: string | undefined;
|
|
104
112
|
metadata?: Record<string, any> | undefined;
|
|
105
113
|
ttl?: string | undefined;
|
|
106
114
|
batchId?: string | undefined;
|
|
@@ -109,8 +117,8 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
109
117
|
expiredAt?: Date | undefined;
|
|
110
118
|
} | undefined;
|
|
111
119
|
children?: {
|
|
112
|
-
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
113
120
|
id: string;
|
|
121
|
+
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
114
122
|
tags: string[];
|
|
115
123
|
isTest: boolean;
|
|
116
124
|
createdAt: Date;
|
|
@@ -127,9 +135,9 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
127
135
|
isFailed: boolean;
|
|
128
136
|
isCancelled: boolean;
|
|
129
137
|
updatedAt: Date;
|
|
138
|
+
version?: string | undefined;
|
|
130
139
|
startedAt?: Date | undefined;
|
|
131
140
|
idempotencyKey?: string | undefined;
|
|
132
|
-
version?: string | undefined;
|
|
133
141
|
metadata?: Record<string, any> | undefined;
|
|
134
142
|
ttl?: string | undefined;
|
|
135
143
|
batchId?: string | undefined;
|
|
@@ -146,31 +154,23 @@ declare function poll<TRunId extends AnyRunHandle | AnyTask | string>(runId: Run
|
|
|
146
154
|
isSuccess: boolean;
|
|
147
155
|
isFailed: boolean;
|
|
148
156
|
isCancelled: boolean;
|
|
149
|
-
updatedAt: Date;
|
|
150
157
|
attempts: ({
|
|
151
|
-
status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
|
|
152
158
|
id: string;
|
|
159
|
+
status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
|
|
153
160
|
createdAt: Date;
|
|
154
161
|
updatedAt: Date;
|
|
155
162
|
startedAt?: Date | undefined;
|
|
156
163
|
error?: {
|
|
157
164
|
message: string;
|
|
158
|
-
name?: string | undefined;
|
|
159
165
|
stackTrace?: string | undefined;
|
|
166
|
+
name?: string | undefined;
|
|
160
167
|
} | undefined;
|
|
161
168
|
completedAt?: Date | undefined;
|
|
162
169
|
} | undefined)[];
|
|
163
|
-
|
|
164
|
-
idempotencyKey?: string | undefined;
|
|
165
|
-
metadata?: Record<string, any> | undefined;
|
|
170
|
+
attemptCount: number;
|
|
166
171
|
ttl?: string | undefined;
|
|
167
172
|
payloadPresignedUrl?: string | undefined;
|
|
168
173
|
outputPresignedUrl?: string | undefined;
|
|
169
|
-
error?: {
|
|
170
|
-
message: string;
|
|
171
|
-
name?: string | undefined;
|
|
172
|
-
stackTrace?: string | undefined;
|
|
173
|
-
} | undefined;
|
|
174
174
|
batchId?: string | undefined;
|
|
175
175
|
finishedAt?: Date | undefined;
|
|
176
176
|
delayedUntil?: Date | undefined;
|
package/dist/commonjs/version.js
CHANGED