@trigger.dev/core 0.0.0-v3-prerelease-20250108131948 → 0.0.0-v3-prerelease-20250108142426
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/schemas/api.d.ts +8 -8
- package/dist/commonjs/v3/apiClient/index.d.ts +149 -149
- package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
- package/dist/commonjs/v3/runMetadata/operations.d.ts +6 -0
- package/dist/commonjs/v3/runMetadata/operations.js +115 -0
- package/dist/commonjs/v3/runMetadata/operations.js.map +1 -0
- package/dist/commonjs/v3/schemas/api.d.ts +719 -719
- package/dist/commonjs/v3/schemas/build.d.ts +262 -262
- package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
- package/dist/commonjs/v3/schemas/messages.d.ts +4453 -4453
- package/dist/commonjs/v3/schemas/resources.d.ts +88 -88
- package/dist/commonjs/v3/schemas/schemas.d.ts +486 -486
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/schemas/api.d.ts +8 -8
- package/dist/esm/v3/apiClient/index.d.ts +97 -97
- package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
- package/dist/esm/v3/schemas/api.d.ts +375 -375
- package/dist/esm/v3/schemas/build.d.ts +314 -314
- package/dist/esm/v3/schemas/common.d.ts +159 -159
- package/dist/esm/v3/schemas/fetch.d.ts +22 -22
- package/dist/esm/v3/schemas/messages.d.ts +2616 -2616
- package/dist/esm/v3/schemas/resources.d.ts +98 -98
- package/dist/esm/v3/schemas/schemas.d.ts +353 -353
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/dist/commonjs/version.js
CHANGED
|
@@ -2977,10 +2977,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
2977
2977
|
id: string;
|
|
2978
2978
|
} | undefined;
|
|
2979
2979
|
}>]>, {
|
|
2980
|
-
|
|
2981
|
-
version: "2";
|
|
2980
|
+
version: "1";
|
|
2982
2981
|
key: string;
|
|
2983
2982
|
channel: "HTTP" | "SMTP" | "SQS";
|
|
2983
|
+
events: string[];
|
|
2984
2984
|
integration: {
|
|
2985
2985
|
id: string;
|
|
2986
2986
|
metadata: {
|
|
@@ -2996,10 +2996,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
2996
2996
|
id: string;
|
|
2997
2997
|
} | undefined;
|
|
2998
2998
|
} | {
|
|
2999
|
-
|
|
2999
|
+
options: Record<string, string[]>;
|
|
3000
|
+
version: "2";
|
|
3000
3001
|
key: string;
|
|
3001
3002
|
channel: "HTTP" | "SMTP" | "SQS";
|
|
3002
|
-
events: string[];
|
|
3003
3003
|
integration: {
|
|
3004
3004
|
id: string;
|
|
3005
3005
|
metadata: {
|
|
@@ -3863,10 +3863,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
3863
3863
|
} | undefined;
|
|
3864
3864
|
}[];
|
|
3865
3865
|
sources: ({
|
|
3866
|
-
|
|
3867
|
-
version: "2";
|
|
3866
|
+
version: "1";
|
|
3868
3867
|
key: string;
|
|
3869
3868
|
channel: "HTTP" | "SMTP" | "SQS";
|
|
3869
|
+
events: string[];
|
|
3870
3870
|
integration: {
|
|
3871
3871
|
id: string;
|
|
3872
3872
|
metadata: {
|
|
@@ -3882,10 +3882,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
|
|
|
3882
3882
|
id: string;
|
|
3883
3883
|
} | undefined;
|
|
3884
3884
|
} | {
|
|
3885
|
-
|
|
3885
|
+
options: Record<string, string[]>;
|
|
3886
|
+
version: "2";
|
|
3886
3887
|
key: string;
|
|
3887
3888
|
channel: "HTTP" | "SMTP" | "SQS";
|
|
3888
|
-
events: string[];
|
|
3889
3889
|
integration: {
|
|
3890
3890
|
id: string;
|
|
3891
3891
|
metadata: {
|
|
@@ -42,13 +42,13 @@ export declare class ApiClient {
|
|
|
42
42
|
batchTriggerV2(body: BatchTriggerTaskV2RequestBody, clientOptions?: ClientBatchTriggerOptions, requestOptions?: TriggerRequestOptions): Promise<{
|
|
43
43
|
publicAccessToken: string;
|
|
44
44
|
id: string;
|
|
45
|
-
isCached: boolean;
|
|
46
45
|
runs: {
|
|
47
46
|
id: string;
|
|
48
47
|
taskIdentifier: string;
|
|
49
48
|
isCached: boolean;
|
|
50
49
|
idempotencyKey?: string | undefined;
|
|
51
50
|
}[];
|
|
51
|
+
isCached: boolean;
|
|
52
52
|
idempotencyKey?: string | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
createUploadPayloadUrl(filename: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
@@ -58,32 +58,37 @@ export declare class ApiClient {
|
|
|
58
58
|
presignedUrl: string;
|
|
59
59
|
}>;
|
|
60
60
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
61
|
-
status: "
|
|
61
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
62
62
|
id: string;
|
|
63
|
-
|
|
63
|
+
attempts: ({
|
|
64
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
65
|
+
id: string;
|
|
66
|
+
updatedAt: Date;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
startedAt?: Date | undefined;
|
|
69
|
+
completedAt?: Date | undefined;
|
|
70
|
+
error?: {
|
|
71
|
+
message: string;
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
stackTrace?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | undefined)[];
|
|
76
|
+
updatedAt: Date;
|
|
64
77
|
isTest: boolean;
|
|
65
78
|
createdAt: Date;
|
|
79
|
+
tags: string[];
|
|
66
80
|
durationMs: number;
|
|
67
81
|
costInCents: number;
|
|
68
82
|
baseCostInCents: number;
|
|
69
83
|
taskIdentifier: string;
|
|
70
|
-
attemptCount: number;
|
|
71
|
-
depth: number;
|
|
72
|
-
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
73
|
-
isQueued: boolean;
|
|
74
|
-
isExecuting: boolean;
|
|
75
|
-
isCompleted: boolean;
|
|
76
|
-
isSuccess: boolean;
|
|
77
|
-
isFailed: boolean;
|
|
78
|
-
isCancelled: boolean;
|
|
79
|
-
updatedAt: Date;
|
|
80
84
|
relatedRuns: {
|
|
81
85
|
root?: {
|
|
82
|
-
status: "
|
|
86
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
83
87
|
id: string;
|
|
84
|
-
|
|
88
|
+
updatedAt: Date;
|
|
85
89
|
isTest: boolean;
|
|
86
90
|
createdAt: Date;
|
|
91
|
+
tags: string[];
|
|
87
92
|
durationMs: number;
|
|
88
93
|
costInCents: number;
|
|
89
94
|
baseCostInCents: number;
|
|
@@ -96,11 +101,10 @@ export declare class ApiClient {
|
|
|
96
101
|
isSuccess: boolean;
|
|
97
102
|
isFailed: boolean;
|
|
98
103
|
isCancelled: boolean;
|
|
99
|
-
|
|
104
|
+
version?: string | undefined;
|
|
100
105
|
metadata?: Record<string, any> | undefined;
|
|
101
106
|
startedAt?: Date | undefined;
|
|
102
107
|
idempotencyKey?: string | undefined;
|
|
103
|
-
version?: string | undefined;
|
|
104
108
|
ttl?: string | undefined;
|
|
105
109
|
batchId?: string | undefined;
|
|
106
110
|
finishedAt?: Date | undefined;
|
|
@@ -108,11 +112,12 @@ export declare class ApiClient {
|
|
|
108
112
|
expiredAt?: Date | undefined;
|
|
109
113
|
} | undefined;
|
|
110
114
|
parent?: {
|
|
111
|
-
status: "
|
|
115
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
112
116
|
id: string;
|
|
113
|
-
|
|
117
|
+
updatedAt: Date;
|
|
114
118
|
isTest: boolean;
|
|
115
119
|
createdAt: Date;
|
|
120
|
+
tags: string[];
|
|
116
121
|
durationMs: number;
|
|
117
122
|
costInCents: number;
|
|
118
123
|
baseCostInCents: number;
|
|
@@ -125,11 +130,10 @@ export declare class ApiClient {
|
|
|
125
130
|
isSuccess: boolean;
|
|
126
131
|
isFailed: boolean;
|
|
127
132
|
isCancelled: boolean;
|
|
128
|
-
|
|
133
|
+
version?: string | undefined;
|
|
129
134
|
metadata?: Record<string, any> | undefined;
|
|
130
135
|
startedAt?: Date | undefined;
|
|
131
136
|
idempotencyKey?: string | undefined;
|
|
132
|
-
version?: string | undefined;
|
|
133
137
|
ttl?: string | undefined;
|
|
134
138
|
batchId?: string | undefined;
|
|
135
139
|
finishedAt?: Date | undefined;
|
|
@@ -137,11 +141,12 @@ export declare class ApiClient {
|
|
|
137
141
|
expiredAt?: Date | undefined;
|
|
138
142
|
} | undefined;
|
|
139
143
|
children?: {
|
|
140
|
-
status: "
|
|
144
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
141
145
|
id: string;
|
|
142
|
-
|
|
146
|
+
updatedAt: Date;
|
|
143
147
|
isTest: boolean;
|
|
144
148
|
createdAt: Date;
|
|
149
|
+
tags: string[];
|
|
145
150
|
durationMs: number;
|
|
146
151
|
costInCents: number;
|
|
147
152
|
baseCostInCents: number;
|
|
@@ -154,11 +159,10 @@ export declare class ApiClient {
|
|
|
154
159
|
isSuccess: boolean;
|
|
155
160
|
isFailed: boolean;
|
|
156
161
|
isCancelled: boolean;
|
|
157
|
-
|
|
162
|
+
version?: string | undefined;
|
|
158
163
|
metadata?: Record<string, any> | undefined;
|
|
159
164
|
startedAt?: Date | undefined;
|
|
160
165
|
idempotencyKey?: string | undefined;
|
|
161
|
-
version?: string | undefined;
|
|
162
166
|
ttl?: string | undefined;
|
|
163
167
|
batchId?: string | undefined;
|
|
164
168
|
finishedAt?: Date | undefined;
|
|
@@ -166,31 +170,26 @@ export declare class ApiClient {
|
|
|
166
170
|
expiredAt?: Date | undefined;
|
|
167
171
|
}[] | undefined;
|
|
168
172
|
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
stackTrace?: string | undefined;
|
|
179
|
-
} | undefined;
|
|
180
|
-
completedAt?: Date | undefined;
|
|
181
|
-
} | undefined)[];
|
|
182
|
-
metadata?: Record<string, any> | undefined;
|
|
173
|
+
depth: number;
|
|
174
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
175
|
+
isQueued: boolean;
|
|
176
|
+
isExecuting: boolean;
|
|
177
|
+
isCompleted: boolean;
|
|
178
|
+
isSuccess: boolean;
|
|
179
|
+
isFailed: boolean;
|
|
180
|
+
isCancelled: boolean;
|
|
181
|
+
attemptCount: number;
|
|
183
182
|
payload?: any;
|
|
184
|
-
startedAt?: Date | undefined;
|
|
185
|
-
idempotencyKey?: string | undefined;
|
|
186
183
|
version?: string | undefined;
|
|
184
|
+
metadata?: Record<string, any> | undefined;
|
|
185
|
+
startedAt?: Date | undefined;
|
|
186
|
+
output?: any;
|
|
187
187
|
error?: {
|
|
188
188
|
message: string;
|
|
189
189
|
name?: string | undefined;
|
|
190
190
|
stackTrace?: string | undefined;
|
|
191
191
|
} | undefined;
|
|
192
|
-
|
|
193
|
-
ttl?: string | undefined;
|
|
192
|
+
idempotencyKey?: string | undefined;
|
|
194
193
|
schedule?: {
|
|
195
194
|
id: string;
|
|
196
195
|
generator: {
|
|
@@ -201,12 +200,13 @@ export declare class ApiClient {
|
|
|
201
200
|
externalId?: string | undefined;
|
|
202
201
|
deduplicationKey?: string | undefined;
|
|
203
202
|
} | undefined;
|
|
203
|
+
ttl?: string | undefined;
|
|
204
|
+
payloadPresignedUrl?: string | undefined;
|
|
205
|
+
outputPresignedUrl?: string | undefined;
|
|
204
206
|
batchId?: string | undefined;
|
|
205
207
|
finishedAt?: Date | undefined;
|
|
206
208
|
delayedUntil?: Date | undefined;
|
|
207
209
|
expiredAt?: Date | undefined;
|
|
208
|
-
payloadPresignedUrl?: string | undefined;
|
|
209
|
-
outputPresignedUrl?: string | undefined;
|
|
210
210
|
}>;
|
|
211
211
|
listRuns(query?: ListRunsQueryParams, requestOptions?: ZodFetchOptions): CursorPagePromise<typeof ListRunResponseItem>;
|
|
212
212
|
listProjectRuns(projectRef: string, query?: ListProjectRunsQueryParams, requestOptions?: ZodFetchOptions): CursorPagePromise<typeof ListRunResponseItem>;
|
|
@@ -217,32 +217,37 @@ export declare class ApiClient {
|
|
|
217
217
|
id: string;
|
|
218
218
|
}>;
|
|
219
219
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
220
|
-
status: "
|
|
220
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
221
221
|
id: string;
|
|
222
|
-
|
|
222
|
+
attempts: ({
|
|
223
|
+
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
224
|
+
id: string;
|
|
225
|
+
updatedAt: Date;
|
|
226
|
+
createdAt: Date;
|
|
227
|
+
startedAt?: Date | undefined;
|
|
228
|
+
completedAt?: Date | undefined;
|
|
229
|
+
error?: {
|
|
230
|
+
message: string;
|
|
231
|
+
name?: string | undefined;
|
|
232
|
+
stackTrace?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
} | undefined)[];
|
|
235
|
+
updatedAt: Date;
|
|
223
236
|
isTest: boolean;
|
|
224
237
|
createdAt: Date;
|
|
238
|
+
tags: string[];
|
|
225
239
|
durationMs: number;
|
|
226
240
|
costInCents: number;
|
|
227
241
|
baseCostInCents: number;
|
|
228
242
|
taskIdentifier: string;
|
|
229
|
-
attemptCount: number;
|
|
230
|
-
depth: number;
|
|
231
|
-
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
232
|
-
isQueued: boolean;
|
|
233
|
-
isExecuting: boolean;
|
|
234
|
-
isCompleted: boolean;
|
|
235
|
-
isSuccess: boolean;
|
|
236
|
-
isFailed: boolean;
|
|
237
|
-
isCancelled: boolean;
|
|
238
|
-
updatedAt: Date;
|
|
239
243
|
relatedRuns: {
|
|
240
244
|
root?: {
|
|
241
|
-
status: "
|
|
245
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
242
246
|
id: string;
|
|
243
|
-
|
|
247
|
+
updatedAt: Date;
|
|
244
248
|
isTest: boolean;
|
|
245
249
|
createdAt: Date;
|
|
250
|
+
tags: string[];
|
|
246
251
|
durationMs: number;
|
|
247
252
|
costInCents: number;
|
|
248
253
|
baseCostInCents: number;
|
|
@@ -255,11 +260,10 @@ export declare class ApiClient {
|
|
|
255
260
|
isSuccess: boolean;
|
|
256
261
|
isFailed: boolean;
|
|
257
262
|
isCancelled: boolean;
|
|
258
|
-
|
|
263
|
+
version?: string | undefined;
|
|
259
264
|
metadata?: Record<string, any> | undefined;
|
|
260
265
|
startedAt?: Date | undefined;
|
|
261
266
|
idempotencyKey?: string | undefined;
|
|
262
|
-
version?: string | undefined;
|
|
263
267
|
ttl?: string | undefined;
|
|
264
268
|
batchId?: string | undefined;
|
|
265
269
|
finishedAt?: Date | undefined;
|
|
@@ -267,11 +271,12 @@ export declare class ApiClient {
|
|
|
267
271
|
expiredAt?: Date | undefined;
|
|
268
272
|
} | undefined;
|
|
269
273
|
parent?: {
|
|
270
|
-
status: "
|
|
274
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
271
275
|
id: string;
|
|
272
|
-
|
|
276
|
+
updatedAt: Date;
|
|
273
277
|
isTest: boolean;
|
|
274
278
|
createdAt: Date;
|
|
279
|
+
tags: string[];
|
|
275
280
|
durationMs: number;
|
|
276
281
|
costInCents: number;
|
|
277
282
|
baseCostInCents: number;
|
|
@@ -284,11 +289,10 @@ export declare class ApiClient {
|
|
|
284
289
|
isSuccess: boolean;
|
|
285
290
|
isFailed: boolean;
|
|
286
291
|
isCancelled: boolean;
|
|
287
|
-
|
|
292
|
+
version?: string | undefined;
|
|
288
293
|
metadata?: Record<string, any> | undefined;
|
|
289
294
|
startedAt?: Date | undefined;
|
|
290
295
|
idempotencyKey?: string | undefined;
|
|
291
|
-
version?: string | undefined;
|
|
292
296
|
ttl?: string | undefined;
|
|
293
297
|
batchId?: string | undefined;
|
|
294
298
|
finishedAt?: Date | undefined;
|
|
@@ -296,11 +300,12 @@ export declare class ApiClient {
|
|
|
296
300
|
expiredAt?: Date | undefined;
|
|
297
301
|
} | undefined;
|
|
298
302
|
children?: {
|
|
299
|
-
status: "
|
|
303
|
+
status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
300
304
|
id: string;
|
|
301
|
-
|
|
305
|
+
updatedAt: Date;
|
|
302
306
|
isTest: boolean;
|
|
303
307
|
createdAt: Date;
|
|
308
|
+
tags: string[];
|
|
304
309
|
durationMs: number;
|
|
305
310
|
costInCents: number;
|
|
306
311
|
baseCostInCents: number;
|
|
@@ -313,11 +318,10 @@ export declare class ApiClient {
|
|
|
313
318
|
isSuccess: boolean;
|
|
314
319
|
isFailed: boolean;
|
|
315
320
|
isCancelled: boolean;
|
|
316
|
-
|
|
321
|
+
version?: string | undefined;
|
|
317
322
|
metadata?: Record<string, any> | undefined;
|
|
318
323
|
startedAt?: Date | undefined;
|
|
319
324
|
idempotencyKey?: string | undefined;
|
|
320
|
-
version?: string | undefined;
|
|
321
325
|
ttl?: string | undefined;
|
|
322
326
|
batchId?: string | undefined;
|
|
323
327
|
finishedAt?: Date | undefined;
|
|
@@ -325,31 +329,26 @@ export declare class ApiClient {
|
|
|
325
329
|
expiredAt?: Date | undefined;
|
|
326
330
|
}[] | undefined;
|
|
327
331
|
};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
stackTrace?: string | undefined;
|
|
338
|
-
} | undefined;
|
|
339
|
-
completedAt?: Date | undefined;
|
|
340
|
-
} | undefined)[];
|
|
341
|
-
metadata?: Record<string, any> | undefined;
|
|
332
|
+
depth: number;
|
|
333
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
334
|
+
isQueued: boolean;
|
|
335
|
+
isExecuting: boolean;
|
|
336
|
+
isCompleted: boolean;
|
|
337
|
+
isSuccess: boolean;
|
|
338
|
+
isFailed: boolean;
|
|
339
|
+
isCancelled: boolean;
|
|
340
|
+
attemptCount: number;
|
|
342
341
|
payload?: any;
|
|
343
|
-
startedAt?: Date | undefined;
|
|
344
|
-
idempotencyKey?: string | undefined;
|
|
345
342
|
version?: string | undefined;
|
|
343
|
+
metadata?: Record<string, any> | undefined;
|
|
344
|
+
startedAt?: Date | undefined;
|
|
345
|
+
output?: any;
|
|
346
346
|
error?: {
|
|
347
347
|
message: string;
|
|
348
348
|
name?: string | undefined;
|
|
349
349
|
stackTrace?: string | undefined;
|
|
350
350
|
} | undefined;
|
|
351
|
-
|
|
352
|
-
ttl?: string | undefined;
|
|
351
|
+
idempotencyKey?: string | undefined;
|
|
353
352
|
schedule?: {
|
|
354
353
|
id: string;
|
|
355
354
|
generator: {
|
|
@@ -360,12 +359,13 @@ export declare class ApiClient {
|
|
|
360
359
|
externalId?: string | undefined;
|
|
361
360
|
deduplicationKey?: string | undefined;
|
|
362
361
|
} | undefined;
|
|
362
|
+
ttl?: string | undefined;
|
|
363
|
+
payloadPresignedUrl?: string | undefined;
|
|
364
|
+
outputPresignedUrl?: string | undefined;
|
|
363
365
|
batchId?: string | undefined;
|
|
364
366
|
finishedAt?: Date | undefined;
|
|
365
367
|
delayedUntil?: Date | undefined;
|
|
366
368
|
expiredAt?: Date | undefined;
|
|
367
|
-
payloadPresignedUrl?: string | undefined;
|
|
368
|
-
outputPresignedUrl?: string | undefined;
|
|
369
369
|
}>;
|
|
370
370
|
addTags(runId: string, body: AddTagsRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
371
371
|
message: string;
|
|
@@ -373,9 +373,9 @@ export declare class ApiClient {
|
|
|
373
373
|
createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
374
374
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
375
375
|
id: string;
|
|
376
|
+
active: boolean;
|
|
376
377
|
task: string;
|
|
377
378
|
timezone: string;
|
|
378
|
-
active: boolean;
|
|
379
379
|
generator: {
|
|
380
380
|
type: "CRON";
|
|
381
381
|
description: string;
|
|
@@ -428,9 +428,9 @@ export declare class ApiClient {
|
|
|
428
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
429
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
430
430
|
id: string;
|
|
431
|
+
active: boolean;
|
|
431
432
|
task: string;
|
|
432
433
|
timezone: string;
|
|
433
|
-
active: boolean;
|
|
434
434
|
generator: {
|
|
435
435
|
type: "CRON";
|
|
436
436
|
description: string;
|
|
@@ -447,9 +447,9 @@ export declare class ApiClient {
|
|
|
447
447
|
}, {
|
|
448
448
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
449
449
|
id: string;
|
|
450
|
+
active: boolean;
|
|
450
451
|
task: string;
|
|
451
452
|
timezone: string;
|
|
452
|
-
active: boolean;
|
|
453
453
|
generator: {
|
|
454
454
|
type: "CRON";
|
|
455
455
|
description: string;
|
|
@@ -467,9 +467,9 @@ export declare class ApiClient {
|
|
|
467
467
|
retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
468
468
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
469
469
|
id: string;
|
|
470
|
+
active: boolean;
|
|
470
471
|
task: string;
|
|
471
472
|
timezone: string;
|
|
472
|
-
active: boolean;
|
|
473
473
|
generator: {
|
|
474
474
|
type: "CRON";
|
|
475
475
|
description: string;
|
|
@@ -487,9 +487,9 @@ export declare class ApiClient {
|
|
|
487
487
|
updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
488
488
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
489
489
|
id: string;
|
|
490
|
+
active: boolean;
|
|
490
491
|
task: string;
|
|
491
492
|
timezone: string;
|
|
492
|
-
active: boolean;
|
|
493
493
|
generator: {
|
|
494
494
|
type: "CRON";
|
|
495
495
|
description: string;
|
|
@@ -507,9 +507,9 @@ export declare class ApiClient {
|
|
|
507
507
|
deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
508
508
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
509
509
|
id: string;
|
|
510
|
+
active: boolean;
|
|
510
511
|
task: string;
|
|
511
512
|
timezone: string;
|
|
512
|
-
active: boolean;
|
|
513
513
|
generator: {
|
|
514
514
|
type: "CRON";
|
|
515
515
|
description: string;
|
|
@@ -527,9 +527,9 @@ export declare class ApiClient {
|
|
|
527
527
|
activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
528
528
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
529
529
|
id: string;
|
|
530
|
+
active: boolean;
|
|
530
531
|
task: string;
|
|
531
532
|
timezone: string;
|
|
532
|
-
active: boolean;
|
|
533
533
|
generator: {
|
|
534
534
|
type: "CRON";
|
|
535
535
|
description: string;
|
|
@@ -590,8 +590,8 @@ export declare class ApiClient {
|
|
|
590
590
|
retrieveBatch(batchId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
591
591
|
status: "PENDING" | "COMPLETED";
|
|
592
592
|
id: string;
|
|
593
|
-
createdAt: Date;
|
|
594
593
|
updatedAt: Date;
|
|
594
|
+
createdAt: Date;
|
|
595
595
|
runCount: number;
|
|
596
596
|
idempotencyKey?: string | undefined;
|
|
597
597
|
}>;
|
|
@@ -15,5 +15,5 @@ export declare class APIClientManagerAPI {
|
|
|
15
15
|
clientOrThrow(): ApiClient;
|
|
16
16
|
runWithConfig<R extends (...args: any[]) => Promise<any>>(config: ApiClientConfiguration, fn: R): Promise<ReturnType<R>>;
|
|
17
17
|
setGlobalAPIClientConfiguration(config: ApiClientConfiguration): boolean;
|
|
18
|
-
apiClientMissingError(): "You need to set the TRIGGER_API_URL and TRIGGER_SECRET_KEY environment variables. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_API_URL environment variable. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_SECRET_KEY environment variable. See https://trigger.dev/docs/management/overview#authentication"
|
|
18
|
+
apiClientMissingError(): "Unknown error" | "You need to set the TRIGGER_API_URL and TRIGGER_SECRET_KEY environment variables. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_API_URL environment variable. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_SECRET_KEY environment variable. See https://trigger.dev/docs/management/overview#authentication";
|
|
19
19
|
}
|