@trigger.dev/sdk 0.0.0-prerelease-20250116195421 → 0.0.0-prerelease-20250204161430
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/apiClient.d.ts +146 -146
- package/dist/commonjs/io.d.ts +12 -12
- package/dist/commonjs/status.d.ts +4 -4
- package/dist/commonjs/triggerClient.d.ts +43 -41
- package/dist/commonjs/triggers/notifications.d.ts +8 -8
- package/dist/commonjs/triggers/scheduled.d.ts +2 -2
- package/dist/commonjs/v3/runs.d.ts +15 -15
- package/dist/commonjs/v3/runs.js +2 -3
- package/dist/commonjs/v3/runs.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/apiClient.d.ts +101 -101
- package/dist/esm/io.d.ts +13 -13
- package/dist/esm/status.d.ts +3 -3
- package/dist/esm/triggerClient.d.ts +33 -33
- package/dist/esm/triggers/notifications.d.ts +4 -4
- package/dist/esm/triggers/scheduled.d.ts +4 -4
- package/dist/esm/types.d.ts +2 -2
- package/dist/esm/v3/runs.d.ts +26 -26
- package/dist/esm/v3/runs.js +2 -3
- package/dist/esm/v3/runs.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
package/dist/esm/apiClient.d.ts
CHANGED
|
@@ -106,75 +106,75 @@ export declare class ApiClient {
|
|
|
106
106
|
attempts: z.ZodNumber;
|
|
107
107
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
108
108
|
}>, "strip", z.ZodTypeAny, {
|
|
109
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
110
109
|
name: string;
|
|
110
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
111
111
|
id: string;
|
|
112
112
|
idempotencyKey: string;
|
|
113
113
|
attempts: number;
|
|
114
114
|
noop: boolean;
|
|
115
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
116
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
117
|
-
startedAt?: Date | null | undefined;
|
|
118
115
|
error?: string | null | undefined;
|
|
119
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
120
116
|
description?: string | null | undefined;
|
|
117
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
118
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
119
|
+
startedAt?: Date | null | undefined;
|
|
121
120
|
completedAt?: Date | null | undefined;
|
|
122
|
-
delayUntil?: Date | null | undefined;
|
|
123
|
-
operation?: string | null | undefined;
|
|
124
|
-
icon?: string | null | undefined;
|
|
125
121
|
style?: {
|
|
126
122
|
style: "normal" | "minimal";
|
|
127
123
|
variant?: string | undefined;
|
|
128
124
|
} | null | undefined;
|
|
125
|
+
delayUntil?: Date | null | undefined;
|
|
126
|
+
icon?: string | null | undefined;
|
|
129
127
|
properties?: {
|
|
130
128
|
text: string;
|
|
131
129
|
label: string;
|
|
132
130
|
url?: string | undefined;
|
|
133
131
|
imageUrl?: string[] | undefined;
|
|
134
132
|
}[] | null | undefined;
|
|
133
|
+
operation?: string | null | undefined;
|
|
135
134
|
outputProperties?: {
|
|
136
135
|
text: string;
|
|
137
136
|
label: string;
|
|
138
137
|
url?: string | undefined;
|
|
139
138
|
imageUrl?: string[] | undefined;
|
|
140
139
|
}[] | null | undefined;
|
|
140
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
141
141
|
parentId?: string | null | undefined;
|
|
142
142
|
callbackUrl?: string | null | undefined;
|
|
143
143
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
144
144
|
forceYield?: boolean | null | undefined;
|
|
145
145
|
}, {
|
|
146
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
147
146
|
name: string;
|
|
147
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
148
148
|
id: string;
|
|
149
149
|
idempotencyKey: string;
|
|
150
150
|
attempts: number;
|
|
151
151
|
noop: boolean;
|
|
152
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
153
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
154
|
-
startedAt?: Date | null | undefined;
|
|
155
152
|
error?: string | null | undefined;
|
|
156
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
157
153
|
description?: string | null | undefined;
|
|
154
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
155
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
156
|
+
startedAt?: Date | null | undefined;
|
|
158
157
|
completedAt?: Date | null | undefined;
|
|
159
|
-
delayUntil?: Date | null | undefined;
|
|
160
|
-
operation?: string | null | undefined;
|
|
161
|
-
icon?: string | null | undefined;
|
|
162
158
|
style?: {
|
|
163
159
|
style: "normal" | "minimal";
|
|
164
160
|
variant?: string | undefined;
|
|
165
161
|
} | null | undefined;
|
|
162
|
+
delayUntil?: Date | null | undefined;
|
|
163
|
+
icon?: string | null | undefined;
|
|
166
164
|
properties?: {
|
|
167
165
|
text: string;
|
|
168
166
|
label: string;
|
|
169
167
|
url?: string | undefined;
|
|
170
168
|
imageUrl?: string[] | undefined;
|
|
171
169
|
}[] | null | undefined;
|
|
170
|
+
operation?: string | null | undefined;
|
|
172
171
|
outputProperties?: {
|
|
173
172
|
text: string;
|
|
174
173
|
label: string;
|
|
175
174
|
url?: string | undefined;
|
|
176
175
|
imageUrl?: string[] | undefined;
|
|
177
176
|
}[] | null | undefined;
|
|
177
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
178
178
|
parentId?: string | null | undefined;
|
|
179
179
|
callbackUrl?: string | null | undefined;
|
|
180
180
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
@@ -189,14 +189,14 @@ export declare class ApiClient {
|
|
|
189
189
|
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
190
190
|
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
191
191
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
status: "
|
|
192
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
193
193
|
id: string;
|
|
194
194
|
idempotencyKey: string;
|
|
195
195
|
noop: boolean;
|
|
196
196
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
197
197
|
parentId?: string | null | undefined;
|
|
198
198
|
}, {
|
|
199
|
-
status: "
|
|
199
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
200
200
|
id: string;
|
|
201
201
|
idempotencyKey: string;
|
|
202
202
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
@@ -206,7 +206,7 @@ export declare class ApiClient {
|
|
|
206
206
|
cursor: z.ZodOptional<z.ZodString>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
tasks: {
|
|
209
|
-
status: "
|
|
209
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
210
210
|
id: string;
|
|
211
211
|
idempotencyKey: string;
|
|
212
212
|
noop: boolean;
|
|
@@ -216,7 +216,7 @@ export declare class ApiClient {
|
|
|
216
216
|
cursor?: string | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
tasks: {
|
|
219
|
-
status: "
|
|
219
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
220
220
|
id: string;
|
|
221
221
|
idempotencyKey: string;
|
|
222
222
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
@@ -227,38 +227,38 @@ export declare class ApiClient {
|
|
|
227
227
|
}>>;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
task: {
|
|
230
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
231
230
|
name: string;
|
|
231
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
232
232
|
id: string;
|
|
233
233
|
idempotencyKey: string;
|
|
234
234
|
attempts: number;
|
|
235
235
|
noop: boolean;
|
|
236
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
237
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
238
|
-
startedAt?: Date | null | undefined;
|
|
239
236
|
error?: string | null | undefined;
|
|
240
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
241
237
|
description?: string | null | undefined;
|
|
238
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
239
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
240
|
+
startedAt?: Date | null | undefined;
|
|
242
241
|
completedAt?: Date | null | undefined;
|
|
243
|
-
delayUntil?: Date | null | undefined;
|
|
244
|
-
operation?: string | null | undefined;
|
|
245
|
-
icon?: string | null | undefined;
|
|
246
242
|
style?: {
|
|
247
243
|
style: "normal" | "minimal";
|
|
248
244
|
variant?: string | undefined;
|
|
249
245
|
} | null | undefined;
|
|
246
|
+
delayUntil?: Date | null | undefined;
|
|
247
|
+
icon?: string | null | undefined;
|
|
250
248
|
properties?: {
|
|
251
249
|
text: string;
|
|
252
250
|
label: string;
|
|
253
251
|
url?: string | undefined;
|
|
254
252
|
imageUrl?: string[] | undefined;
|
|
255
253
|
}[] | null | undefined;
|
|
254
|
+
operation?: string | null | undefined;
|
|
256
255
|
outputProperties?: {
|
|
257
256
|
text: string;
|
|
258
257
|
label: string;
|
|
259
258
|
url?: string | undefined;
|
|
260
259
|
imageUrl?: string[] | undefined;
|
|
261
260
|
}[] | null | undefined;
|
|
261
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
262
262
|
parentId?: string | null | undefined;
|
|
263
263
|
callbackUrl?: string | null | undefined;
|
|
264
264
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
@@ -266,7 +266,7 @@ export declare class ApiClient {
|
|
|
266
266
|
};
|
|
267
267
|
cachedTasks?: {
|
|
268
268
|
tasks: {
|
|
269
|
-
status: "
|
|
269
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
270
270
|
id: string;
|
|
271
271
|
idempotencyKey: string;
|
|
272
272
|
noop: boolean;
|
|
@@ -277,38 +277,38 @@ export declare class ApiClient {
|
|
|
277
277
|
} | undefined;
|
|
278
278
|
}, {
|
|
279
279
|
task: {
|
|
280
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
281
280
|
name: string;
|
|
281
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
282
282
|
id: string;
|
|
283
283
|
idempotencyKey: string;
|
|
284
284
|
attempts: number;
|
|
285
285
|
noop: boolean;
|
|
286
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
287
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
288
|
-
startedAt?: Date | null | undefined;
|
|
289
286
|
error?: string | null | undefined;
|
|
290
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
291
287
|
description?: string | null | undefined;
|
|
288
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
289
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
290
|
+
startedAt?: Date | null | undefined;
|
|
292
291
|
completedAt?: Date | null | undefined;
|
|
293
|
-
delayUntil?: Date | null | undefined;
|
|
294
|
-
operation?: string | null | undefined;
|
|
295
|
-
icon?: string | null | undefined;
|
|
296
292
|
style?: {
|
|
297
293
|
style: "normal" | "minimal";
|
|
298
294
|
variant?: string | undefined;
|
|
299
295
|
} | null | undefined;
|
|
296
|
+
delayUntil?: Date | null | undefined;
|
|
297
|
+
icon?: string | null | undefined;
|
|
300
298
|
properties?: {
|
|
301
299
|
text: string;
|
|
302
300
|
label: string;
|
|
303
301
|
url?: string | undefined;
|
|
304
302
|
imageUrl?: string[] | undefined;
|
|
305
303
|
}[] | null | undefined;
|
|
304
|
+
operation?: string | null | undefined;
|
|
306
305
|
outputProperties?: {
|
|
307
306
|
text: string;
|
|
308
307
|
label: string;
|
|
309
308
|
url?: string | undefined;
|
|
310
309
|
imageUrl?: string[] | undefined;
|
|
311
310
|
}[] | null | undefined;
|
|
311
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
312
312
|
parentId?: string | null | undefined;
|
|
313
313
|
callbackUrl?: string | null | undefined;
|
|
314
314
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
@@ -316,7 +316,7 @@ export declare class ApiClient {
|
|
|
316
316
|
};
|
|
317
317
|
cachedTasks?: {
|
|
318
318
|
tasks: {
|
|
319
|
-
status: "
|
|
319
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
320
320
|
id: string;
|
|
321
321
|
idempotencyKey: string;
|
|
322
322
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
@@ -391,160 +391,160 @@ export declare class ApiClient {
|
|
|
391
391
|
attempts: z.ZodNumber;
|
|
392
392
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
393
393
|
}>, "strip", z.ZodTypeAny, {
|
|
394
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
395
394
|
name: string;
|
|
395
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
396
396
|
id: string;
|
|
397
397
|
idempotencyKey: string;
|
|
398
398
|
attempts: number;
|
|
399
399
|
noop: boolean;
|
|
400
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
401
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
402
|
-
startedAt?: Date | null | undefined;
|
|
403
400
|
error?: string | null | undefined;
|
|
404
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
405
401
|
description?: string | null | undefined;
|
|
402
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
403
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
404
|
+
startedAt?: Date | null | undefined;
|
|
406
405
|
completedAt?: Date | null | undefined;
|
|
407
|
-
delayUntil?: Date | null | undefined;
|
|
408
|
-
operation?: string | null | undefined;
|
|
409
|
-
icon?: string | null | undefined;
|
|
410
406
|
style?: {
|
|
411
407
|
style: "normal" | "minimal";
|
|
412
408
|
variant?: string | undefined;
|
|
413
409
|
} | null | undefined;
|
|
410
|
+
delayUntil?: Date | null | undefined;
|
|
411
|
+
icon?: string | null | undefined;
|
|
414
412
|
properties?: {
|
|
415
413
|
text: string;
|
|
416
414
|
label: string;
|
|
417
415
|
url?: string | undefined;
|
|
418
416
|
imageUrl?: string[] | undefined;
|
|
419
417
|
}[] | null | undefined;
|
|
418
|
+
operation?: string | null | undefined;
|
|
420
419
|
outputProperties?: {
|
|
421
420
|
text: string;
|
|
422
421
|
label: string;
|
|
423
422
|
url?: string | undefined;
|
|
424
423
|
imageUrl?: string[] | undefined;
|
|
425
424
|
}[] | null | undefined;
|
|
425
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
426
426
|
parentId?: string | null | undefined;
|
|
427
427
|
callbackUrl?: string | null | undefined;
|
|
428
428
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
429
429
|
forceYield?: boolean | null | undefined;
|
|
430
430
|
}, {
|
|
431
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
432
431
|
name: string;
|
|
432
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
433
433
|
id: string;
|
|
434
434
|
idempotencyKey: string;
|
|
435
435
|
attempts: number;
|
|
436
436
|
noop: boolean;
|
|
437
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
438
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
439
|
-
startedAt?: Date | null | undefined;
|
|
440
437
|
error?: string | null | undefined;
|
|
441
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
442
438
|
description?: string | null | undefined;
|
|
439
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
440
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
441
|
+
startedAt?: Date | null | undefined;
|
|
443
442
|
completedAt?: Date | null | undefined;
|
|
444
|
-
delayUntil?: Date | null | undefined;
|
|
445
|
-
operation?: string | null | undefined;
|
|
446
|
-
icon?: string | null | undefined;
|
|
447
443
|
style?: {
|
|
448
444
|
style: "normal" | "minimal";
|
|
449
445
|
variant?: string | undefined;
|
|
450
446
|
} | null | undefined;
|
|
447
|
+
delayUntil?: Date | null | undefined;
|
|
448
|
+
icon?: string | null | undefined;
|
|
451
449
|
properties?: {
|
|
452
450
|
text: string;
|
|
453
451
|
label: string;
|
|
454
452
|
url?: string | undefined;
|
|
455
453
|
imageUrl?: string[] | undefined;
|
|
456
454
|
}[] | null | undefined;
|
|
455
|
+
operation?: string | null | undefined;
|
|
457
456
|
outputProperties?: {
|
|
458
457
|
text: string;
|
|
459
458
|
label: string;
|
|
460
459
|
url?: string | undefined;
|
|
461
460
|
imageUrl?: string[] | undefined;
|
|
462
461
|
}[] | null | undefined;
|
|
462
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
463
463
|
parentId?: string | null | undefined;
|
|
464
464
|
callbackUrl?: string | null | undefined;
|
|
465
465
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
466
466
|
forceYield?: boolean | null | undefined;
|
|
467
467
|
}>>>;
|
|
468
468
|
completeTask(runId: string, id: string, task: CompleteTaskBodyV2Input): Promise<{
|
|
469
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
470
469
|
name: string;
|
|
470
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
471
471
|
id: string;
|
|
472
472
|
idempotencyKey: string;
|
|
473
473
|
attempts: number;
|
|
474
474
|
noop: boolean;
|
|
475
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
476
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
477
|
-
startedAt?: Date | null | undefined;
|
|
478
475
|
error?: string | null | undefined;
|
|
479
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
480
476
|
description?: string | null | undefined;
|
|
477
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
478
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
479
|
+
startedAt?: Date | null | undefined;
|
|
481
480
|
completedAt?: Date | null | undefined;
|
|
482
|
-
delayUntil?: Date | null | undefined;
|
|
483
|
-
operation?: string | null | undefined;
|
|
484
|
-
icon?: string | null | undefined;
|
|
485
481
|
style?: {
|
|
486
482
|
style: "normal" | "minimal";
|
|
487
483
|
variant?: string | undefined;
|
|
488
484
|
} | null | undefined;
|
|
485
|
+
delayUntil?: Date | null | undefined;
|
|
486
|
+
icon?: string | null | undefined;
|
|
489
487
|
properties?: {
|
|
490
488
|
text: string;
|
|
491
489
|
label: string;
|
|
492
490
|
url?: string | undefined;
|
|
493
491
|
imageUrl?: string[] | undefined;
|
|
494
492
|
}[] | null | undefined;
|
|
493
|
+
operation?: string | null | undefined;
|
|
495
494
|
outputProperties?: {
|
|
496
495
|
text: string;
|
|
497
496
|
label: string;
|
|
498
497
|
url?: string | undefined;
|
|
499
498
|
imageUrl?: string[] | undefined;
|
|
500
499
|
}[] | null | undefined;
|
|
500
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
501
501
|
parentId?: string | null | undefined;
|
|
502
502
|
callbackUrl?: string | null | undefined;
|
|
503
503
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
504
504
|
forceYield?: boolean | null | undefined;
|
|
505
505
|
}>;
|
|
506
506
|
failTask(runId: string, id: string, body: FailTaskBodyInput): Promise<{
|
|
507
|
-
status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
|
|
508
507
|
name: string;
|
|
508
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
509
509
|
id: string;
|
|
510
510
|
idempotencyKey: string;
|
|
511
511
|
attempts: number;
|
|
512
512
|
noop: boolean;
|
|
513
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
514
|
-
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
515
|
-
startedAt?: Date | null | undefined;
|
|
516
513
|
error?: string | null | undefined;
|
|
517
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
518
514
|
description?: string | null | undefined;
|
|
515
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
516
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
517
|
+
startedAt?: Date | null | undefined;
|
|
519
518
|
completedAt?: Date | null | undefined;
|
|
520
|
-
delayUntil?: Date | null | undefined;
|
|
521
|
-
operation?: string | null | undefined;
|
|
522
|
-
icon?: string | null | undefined;
|
|
523
519
|
style?: {
|
|
524
520
|
style: "normal" | "minimal";
|
|
525
521
|
variant?: string | undefined;
|
|
526
522
|
} | null | undefined;
|
|
523
|
+
delayUntil?: Date | null | undefined;
|
|
524
|
+
icon?: string | null | undefined;
|
|
527
525
|
properties?: {
|
|
528
526
|
text: string;
|
|
529
527
|
label: string;
|
|
530
528
|
url?: string | undefined;
|
|
531
529
|
imageUrl?: string[] | undefined;
|
|
532
530
|
}[] | null | undefined;
|
|
531
|
+
operation?: string | null | undefined;
|
|
533
532
|
outputProperties?: {
|
|
534
533
|
text: string;
|
|
535
534
|
label: string;
|
|
536
535
|
url?: string | undefined;
|
|
537
536
|
imageUrl?: string[] | undefined;
|
|
538
537
|
}[] | null | undefined;
|
|
538
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
539
539
|
parentId?: string | null | undefined;
|
|
540
540
|
callbackUrl?: string | null | undefined;
|
|
541
541
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
542
542
|
forceYield?: boolean | null | undefined;
|
|
543
543
|
}>;
|
|
544
544
|
sendEvent(event: SendEvent, options?: SendEventOptions): Promise<{
|
|
545
|
+
payload: import("@trigger.dev/core").DeserializedJson;
|
|
545
546
|
name: string;
|
|
546
547
|
id: string;
|
|
547
|
-
payload: import("@trigger.dev/core").DeserializedJson;
|
|
548
548
|
timestamp: Date;
|
|
549
549
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
550
550
|
deliverAt?: Date | null | undefined;
|
|
@@ -552,9 +552,9 @@ export declare class ApiClient {
|
|
|
552
552
|
cancelledAt?: Date | null | undefined;
|
|
553
553
|
}>;
|
|
554
554
|
sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{
|
|
555
|
+
payload: import("@trigger.dev/core").DeserializedJson;
|
|
555
556
|
name: string;
|
|
556
557
|
id: string;
|
|
557
|
-
payload: import("@trigger.dev/core").DeserializedJson;
|
|
558
558
|
timestamp: Date;
|
|
559
559
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
560
560
|
deliverAt?: Date | null | undefined;
|
|
@@ -562,9 +562,9 @@ export declare class ApiClient {
|
|
|
562
562
|
cancelledAt?: Date | null | undefined;
|
|
563
563
|
}[]>;
|
|
564
564
|
cancelEvent(eventId: string): Promise<{
|
|
565
|
+
payload: import("@trigger.dev/core").DeserializedJson;
|
|
565
566
|
name: string;
|
|
566
567
|
id: string;
|
|
567
|
-
payload: import("@trigger.dev/core").DeserializedJson;
|
|
568
568
|
timestamp: Date;
|
|
569
569
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
570
570
|
deliverAt?: Date | null | undefined;
|
|
@@ -579,12 +579,12 @@ export declare class ApiClient {
|
|
|
579
579
|
key: string;
|
|
580
580
|
label: string;
|
|
581
581
|
history: {
|
|
582
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
583
582
|
label?: string | undefined;
|
|
584
|
-
state?: "
|
|
583
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
584
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
585
585
|
}[];
|
|
586
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
586
587
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
587
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
588
588
|
}>;
|
|
589
589
|
updateSource(client: string, key: string, source: UpdateTriggerSourceBodyV2): Promise<TriggerSource>;
|
|
590
590
|
updateWebhook(key: string, webhookData: UpdateWebhookBody): Promise<TriggerSource>;
|
|
@@ -592,17 +592,17 @@ export declare class ApiClient {
|
|
|
592
592
|
registerSchedule(client: string, id: string, key: string, payload: ScheduleMetadata): Promise<{
|
|
593
593
|
id: string;
|
|
594
594
|
schedule: {
|
|
595
|
-
type: "cron";
|
|
596
595
|
options: {
|
|
597
|
-
|
|
596
|
+
seconds: number;
|
|
598
597
|
};
|
|
598
|
+
type: "interval";
|
|
599
599
|
metadata?: any;
|
|
600
600
|
accountId?: string | undefined;
|
|
601
601
|
} | {
|
|
602
|
-
type: "interval";
|
|
603
602
|
options: {
|
|
604
|
-
|
|
603
|
+
cron: string;
|
|
605
604
|
};
|
|
605
|
+
type: "cron";
|
|
606
606
|
metadata?: any;
|
|
607
607
|
accountId?: string | undefined;
|
|
608
608
|
};
|
|
@@ -613,7 +613,7 @@ export declare class ApiClient {
|
|
|
613
613
|
ok: boolean;
|
|
614
614
|
}>;
|
|
615
615
|
getAuth(client: string, id: string): Promise<{
|
|
616
|
-
type: "
|
|
616
|
+
type: "oauth2" | "apiKey";
|
|
617
617
|
accessToken: string;
|
|
618
618
|
scopes?: string[] | undefined;
|
|
619
619
|
additionalFields?: Record<string, string> | undefined;
|
|
@@ -622,59 +622,59 @@ export declare class ApiClient {
|
|
|
622
622
|
name: string;
|
|
623
623
|
id: string;
|
|
624
624
|
createdAt: Date;
|
|
625
|
+
updatedAt: Date;
|
|
625
626
|
runs: {
|
|
626
|
-
status: "
|
|
627
|
+
status: "QUEUED" | "EXECUTING" | "CANCELED" | "TIMED_OUT" | "PENDING" | "SUCCESS" | "FAILURE" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
627
628
|
id: string;
|
|
628
629
|
startedAt?: Date | null | undefined;
|
|
629
630
|
completedAt?: Date | null | undefined;
|
|
630
631
|
}[];
|
|
631
|
-
updatedAt: Date;
|
|
632
632
|
}>;
|
|
633
633
|
getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{
|
|
634
|
-
status: "
|
|
634
|
+
status: "QUEUED" | "EXECUTING" | "CANCELED" | "TIMED_OUT" | "PENDING" | "SUCCESS" | "FAILURE" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
635
635
|
id: string;
|
|
636
|
-
startedAt: Date | null;
|
|
637
|
-
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
638
636
|
updatedAt: Date | null;
|
|
637
|
+
startedAt: Date | null;
|
|
639
638
|
completedAt: Date | null;
|
|
640
639
|
statuses: {
|
|
641
640
|
key: string;
|
|
642
641
|
label: string;
|
|
643
642
|
history: {
|
|
644
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
645
643
|
label?: string | undefined;
|
|
646
|
-
state?: "
|
|
644
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
645
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
647
646
|
}[];
|
|
647
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
648
648
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
649
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
650
649
|
}[];
|
|
650
|
+
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
651
651
|
output?: any;
|
|
652
652
|
nextCursor?: string | undefined;
|
|
653
653
|
}>;
|
|
654
654
|
cancelRun(runId: string): Promise<{
|
|
655
|
-
status: "
|
|
655
|
+
status: "QUEUED" | "EXECUTING" | "CANCELED" | "TIMED_OUT" | "PENDING" | "SUCCESS" | "FAILURE" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
656
656
|
id: string;
|
|
657
|
-
startedAt: Date | null;
|
|
658
|
-
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
659
657
|
updatedAt: Date | null;
|
|
658
|
+
startedAt: Date | null;
|
|
660
659
|
completedAt: Date | null;
|
|
661
660
|
statuses: {
|
|
662
661
|
key: string;
|
|
663
662
|
label: string;
|
|
664
663
|
history: {
|
|
665
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
666
664
|
label?: string | undefined;
|
|
667
|
-
state?: "
|
|
665
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
666
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
668
667
|
}[];
|
|
668
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
669
669
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
670
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
671
670
|
}[];
|
|
671
|
+
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
672
672
|
output?: any;
|
|
673
673
|
nextCursor?: string | undefined;
|
|
674
674
|
}>;
|
|
675
675
|
getRunStatuses(runId: string): Promise<{
|
|
676
676
|
run: {
|
|
677
|
-
status: "
|
|
677
|
+
status: "QUEUED" | "EXECUTING" | "CANCELED" | "TIMED_OUT" | "PENDING" | "SUCCESS" | "FAILURE" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
678
678
|
id: string;
|
|
679
679
|
output?: any;
|
|
680
680
|
};
|
|
@@ -682,20 +682,20 @@ export declare class ApiClient {
|
|
|
682
682
|
key: string;
|
|
683
683
|
label: string;
|
|
684
684
|
history: {
|
|
685
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
686
685
|
label?: string | undefined;
|
|
687
|
-
state?: "
|
|
686
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
687
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
688
688
|
}[];
|
|
689
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
689
690
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
690
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
691
691
|
}[];
|
|
692
692
|
}>;
|
|
693
693
|
getRuns(jobSlug: string, options?: GetRunsOptions): Promise<{
|
|
694
694
|
runs: {
|
|
695
|
-
status: "
|
|
695
|
+
status: "QUEUED" | "EXECUTING" | "CANCELED" | "TIMED_OUT" | "PENDING" | "SUCCESS" | "FAILURE" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
696
696
|
id: string;
|
|
697
|
-
startedAt: Date | null;
|
|
698
697
|
updatedAt: Date | null;
|
|
698
|
+
startedAt: Date | null;
|
|
699
699
|
completedAt: Date | null;
|
|
700
700
|
}[];
|
|
701
701
|
nextCursor?: string | undefined;
|