@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
|
@@ -57,13 +57,13 @@ export declare class ApiClient {
|
|
|
57
57
|
url: z.ZodOptional<z.ZodString>;
|
|
58
58
|
imageUrl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
text: string;
|
|
61
60
|
label: string;
|
|
61
|
+
text: string;
|
|
62
62
|
url?: string | undefined;
|
|
63
63
|
imageUrl?: string[] | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
text: string;
|
|
66
65
|
label: string;
|
|
66
|
+
text: string;
|
|
67
67
|
url?: string | undefined;
|
|
68
68
|
imageUrl?: string[] | undefined;
|
|
69
69
|
}>, "many">>>;
|
|
@@ -73,13 +73,13 @@ export declare class ApiClient {
|
|
|
73
73
|
url: z.ZodOptional<z.ZodString>;
|
|
74
74
|
imageUrl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
75
|
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
text: string;
|
|
77
76
|
label: string;
|
|
77
|
+
text: string;
|
|
78
78
|
url?: string | undefined;
|
|
79
79
|
imageUrl?: string[] | undefined;
|
|
80
80
|
}, {
|
|
81
|
-
text: string;
|
|
82
81
|
label: string;
|
|
82
|
+
text: string;
|
|
83
83
|
url?: string | undefined;
|
|
84
84
|
imageUrl?: string[] | undefined;
|
|
85
85
|
}>, "many">>>;
|
|
@@ -106,76 +106,76 @@ 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" | "
|
|
109
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
110
110
|
name: string;
|
|
111
111
|
id: string;
|
|
112
|
+
noop: boolean;
|
|
112
113
|
idempotencyKey: string;
|
|
113
114
|
attempts: number;
|
|
114
|
-
noop: boolean;
|
|
115
115
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
116
116
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
117
|
-
startedAt?: Date | null | undefined;
|
|
118
|
-
error?: string | null | undefined;
|
|
119
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
120
|
-
description?: string | null | undefined;
|
|
121
|
-
completedAt?: Date | null | undefined;
|
|
122
|
-
delayUntil?: Date | null | undefined;
|
|
123
|
-
operation?: string | null | undefined;
|
|
124
117
|
style?: {
|
|
125
118
|
style: "normal" | "minimal";
|
|
126
119
|
variant?: string | undefined;
|
|
127
120
|
} | null | undefined;
|
|
128
121
|
icon?: string | null | undefined;
|
|
122
|
+
startedAt?: Date | null | undefined;
|
|
123
|
+
completedAt?: Date | null | undefined;
|
|
124
|
+
delayUntil?: Date | null | undefined;
|
|
125
|
+
description?: string | null | undefined;
|
|
129
126
|
properties?: {
|
|
130
|
-
text: string;
|
|
131
127
|
label: string;
|
|
128
|
+
text: string;
|
|
132
129
|
url?: string | undefined;
|
|
133
130
|
imageUrl?: string[] | undefined;
|
|
134
131
|
}[] | null | undefined;
|
|
135
132
|
outputProperties?: {
|
|
136
|
-
text: string;
|
|
137
133
|
label: string;
|
|
134
|
+
text: string;
|
|
138
135
|
url?: string | undefined;
|
|
139
136
|
imageUrl?: string[] | undefined;
|
|
140
137
|
}[] | null | undefined;
|
|
138
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
139
|
+
error?: string | null | undefined;
|
|
141
140
|
parentId?: string | null | undefined;
|
|
141
|
+
operation?: 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" | "
|
|
146
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
147
147
|
name: string;
|
|
148
148
|
id: string;
|
|
149
|
+
noop: boolean;
|
|
149
150
|
idempotencyKey: string;
|
|
150
151
|
attempts: number;
|
|
151
|
-
noop: boolean;
|
|
152
152
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
153
153
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
154
|
-
startedAt?: Date | null | undefined;
|
|
155
|
-
error?: string | null | undefined;
|
|
156
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
157
|
-
description?: string | null | undefined;
|
|
158
|
-
completedAt?: Date | null | undefined;
|
|
159
|
-
delayUntil?: Date | null | undefined;
|
|
160
|
-
operation?: string | null | undefined;
|
|
161
154
|
style?: {
|
|
162
155
|
style: "normal" | "minimal";
|
|
163
156
|
variant?: string | undefined;
|
|
164
157
|
} | null | undefined;
|
|
165
158
|
icon?: string | null | undefined;
|
|
159
|
+
startedAt?: Date | null | undefined;
|
|
160
|
+
completedAt?: Date | null | undefined;
|
|
161
|
+
delayUntil?: Date | null | undefined;
|
|
162
|
+
description?: string | null | undefined;
|
|
166
163
|
properties?: {
|
|
167
|
-
text: string;
|
|
168
164
|
label: string;
|
|
165
|
+
text: string;
|
|
169
166
|
url?: string | undefined;
|
|
170
167
|
imageUrl?: string[] | undefined;
|
|
171
168
|
}[] | null | undefined;
|
|
172
169
|
outputProperties?: {
|
|
173
|
-
text: string;
|
|
174
170
|
label: string;
|
|
171
|
+
text: string;
|
|
175
172
|
url?: string | undefined;
|
|
176
173
|
imageUrl?: string[] | undefined;
|
|
177
174
|
}[] | null | undefined;
|
|
175
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
176
|
+
error?: string | null | undefined;
|
|
178
177
|
parentId?: string | null | undefined;
|
|
178
|
+
operation?: string | null | undefined;
|
|
179
179
|
callbackUrl?: string | null | undefined;
|
|
180
180
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
181
181
|
forceYield?: boolean | null | undefined;
|
|
@@ -189,87 +189,87 @@ 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: "PENDING" | "
|
|
192
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
193
193
|
id: string;
|
|
194
|
-
idempotencyKey: string;
|
|
195
194
|
noop: boolean;
|
|
195
|
+
idempotencyKey: string;
|
|
196
196
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
197
197
|
parentId?: string | null | undefined;
|
|
198
198
|
}, {
|
|
199
|
-
status: "PENDING" | "
|
|
199
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
200
200
|
id: string;
|
|
201
201
|
idempotencyKey: string;
|
|
202
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
203
202
|
noop?: boolean | undefined;
|
|
203
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
204
204
|
parentId?: string | null | undefined;
|
|
205
205
|
}>, "many">;
|
|
206
206
|
cursor: z.ZodOptional<z.ZodString>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
tasks: {
|
|
209
|
-
status: "PENDING" | "
|
|
209
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
210
210
|
id: string;
|
|
211
|
-
idempotencyKey: string;
|
|
212
211
|
noop: boolean;
|
|
212
|
+
idempotencyKey: string;
|
|
213
213
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
214
214
|
parentId?: string | null | undefined;
|
|
215
215
|
}[];
|
|
216
216
|
cursor?: string | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
tasks: {
|
|
219
|
-
status: "PENDING" | "
|
|
219
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
220
220
|
id: string;
|
|
221
221
|
idempotencyKey: string;
|
|
222
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
223
222
|
noop?: boolean | undefined;
|
|
223
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
224
224
|
parentId?: string | null | undefined;
|
|
225
225
|
}[];
|
|
226
226
|
cursor?: string | undefined;
|
|
227
227
|
}>>;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
task: {
|
|
230
|
-
status: "PENDING" | "
|
|
230
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
231
231
|
name: string;
|
|
232
232
|
id: string;
|
|
233
|
+
noop: boolean;
|
|
233
234
|
idempotencyKey: string;
|
|
234
235
|
attempts: number;
|
|
235
|
-
noop: boolean;
|
|
236
236
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
237
237
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
238
|
-
startedAt?: Date | null | undefined;
|
|
239
|
-
error?: string | null | undefined;
|
|
240
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
241
|
-
description?: string | null | undefined;
|
|
242
|
-
completedAt?: Date | null | undefined;
|
|
243
|
-
delayUntil?: Date | null | undefined;
|
|
244
|
-
operation?: string | null | undefined;
|
|
245
238
|
style?: {
|
|
246
239
|
style: "normal" | "minimal";
|
|
247
240
|
variant?: string | undefined;
|
|
248
241
|
} | null | undefined;
|
|
249
242
|
icon?: string | null | undefined;
|
|
243
|
+
startedAt?: Date | null | undefined;
|
|
244
|
+
completedAt?: Date | null | undefined;
|
|
245
|
+
delayUntil?: Date | null | undefined;
|
|
246
|
+
description?: string | null | undefined;
|
|
250
247
|
properties?: {
|
|
251
|
-
text: string;
|
|
252
248
|
label: string;
|
|
249
|
+
text: string;
|
|
253
250
|
url?: string | undefined;
|
|
254
251
|
imageUrl?: string[] | undefined;
|
|
255
252
|
}[] | null | undefined;
|
|
256
253
|
outputProperties?: {
|
|
257
|
-
text: string;
|
|
258
254
|
label: string;
|
|
255
|
+
text: string;
|
|
259
256
|
url?: string | undefined;
|
|
260
257
|
imageUrl?: string[] | undefined;
|
|
261
258
|
}[] | null | undefined;
|
|
259
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
260
|
+
error?: string | null | undefined;
|
|
262
261
|
parentId?: string | null | undefined;
|
|
262
|
+
operation?: string | null | undefined;
|
|
263
263
|
callbackUrl?: string | null | undefined;
|
|
264
264
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
265
265
|
forceYield?: boolean | null | undefined;
|
|
266
266
|
};
|
|
267
267
|
cachedTasks?: {
|
|
268
268
|
tasks: {
|
|
269
|
-
status: "PENDING" | "
|
|
269
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
270
270
|
id: string;
|
|
271
|
-
idempotencyKey: string;
|
|
272
271
|
noop: boolean;
|
|
272
|
+
idempotencyKey: string;
|
|
273
273
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
274
274
|
parentId?: string | null | undefined;
|
|
275
275
|
}[];
|
|
@@ -277,50 +277,50 @@ export declare class ApiClient {
|
|
|
277
277
|
} | undefined;
|
|
278
278
|
}, {
|
|
279
279
|
task: {
|
|
280
|
-
status: "PENDING" | "
|
|
280
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
281
281
|
name: string;
|
|
282
282
|
id: string;
|
|
283
|
+
noop: boolean;
|
|
283
284
|
idempotencyKey: string;
|
|
284
285
|
attempts: number;
|
|
285
|
-
noop: boolean;
|
|
286
286
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
287
287
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
288
|
-
startedAt?: Date | null | undefined;
|
|
289
|
-
error?: string | null | undefined;
|
|
290
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
291
|
-
description?: string | null | undefined;
|
|
292
|
-
completedAt?: Date | null | undefined;
|
|
293
|
-
delayUntil?: Date | null | undefined;
|
|
294
|
-
operation?: string | null | undefined;
|
|
295
288
|
style?: {
|
|
296
289
|
style: "normal" | "minimal";
|
|
297
290
|
variant?: string | undefined;
|
|
298
291
|
} | null | undefined;
|
|
299
292
|
icon?: string | null | undefined;
|
|
293
|
+
startedAt?: Date | null | undefined;
|
|
294
|
+
completedAt?: Date | null | undefined;
|
|
295
|
+
delayUntil?: Date | null | undefined;
|
|
296
|
+
description?: string | null | undefined;
|
|
300
297
|
properties?: {
|
|
301
|
-
text: string;
|
|
302
298
|
label: string;
|
|
299
|
+
text: string;
|
|
303
300
|
url?: string | undefined;
|
|
304
301
|
imageUrl?: string[] | undefined;
|
|
305
302
|
}[] | null | undefined;
|
|
306
303
|
outputProperties?: {
|
|
307
|
-
text: string;
|
|
308
304
|
label: string;
|
|
305
|
+
text: string;
|
|
309
306
|
url?: string | undefined;
|
|
310
307
|
imageUrl?: string[] | undefined;
|
|
311
308
|
}[] | null | undefined;
|
|
309
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
310
|
+
error?: string | null | undefined;
|
|
312
311
|
parentId?: string | null | undefined;
|
|
312
|
+
operation?: string | null | undefined;
|
|
313
313
|
callbackUrl?: string | null | undefined;
|
|
314
314
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
315
315
|
forceYield?: boolean | null | undefined;
|
|
316
316
|
};
|
|
317
317
|
cachedTasks?: {
|
|
318
318
|
tasks: {
|
|
319
|
-
status: "PENDING" | "
|
|
319
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
320
320
|
id: string;
|
|
321
321
|
idempotencyKey: string;
|
|
322
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
323
322
|
noop?: boolean | undefined;
|
|
323
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
324
324
|
parentId?: string | null | undefined;
|
|
325
325
|
}[];
|
|
326
326
|
cursor?: string | undefined;
|
|
@@ -342,13 +342,13 @@ export declare class ApiClient {
|
|
|
342
342
|
url: z.ZodOptional<z.ZodString>;
|
|
343
343
|
imageUrl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
344
344
|
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
text: string;
|
|
346
345
|
label: string;
|
|
346
|
+
text: string;
|
|
347
347
|
url?: string | undefined;
|
|
348
348
|
imageUrl?: string[] | undefined;
|
|
349
349
|
}, {
|
|
350
|
-
text: string;
|
|
351
350
|
label: string;
|
|
351
|
+
text: string;
|
|
352
352
|
url?: string | undefined;
|
|
353
353
|
imageUrl?: string[] | undefined;
|
|
354
354
|
}>, "many">>>;
|
|
@@ -358,13 +358,13 @@ export declare class ApiClient {
|
|
|
358
358
|
url: z.ZodOptional<z.ZodString>;
|
|
359
359
|
imageUrl: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
text: string;
|
|
362
361
|
label: string;
|
|
362
|
+
text: string;
|
|
363
363
|
url?: string | undefined;
|
|
364
364
|
imageUrl?: string[] | undefined;
|
|
365
365
|
}, {
|
|
366
|
-
text: string;
|
|
367
366
|
label: string;
|
|
367
|
+
text: string;
|
|
368
368
|
url?: string | undefined;
|
|
369
369
|
imageUrl?: string[] | undefined;
|
|
370
370
|
}>, "many">>>;
|
|
@@ -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" | "
|
|
394
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
395
395
|
name: string;
|
|
396
396
|
id: string;
|
|
397
|
+
noop: boolean;
|
|
397
398
|
idempotencyKey: string;
|
|
398
399
|
attempts: number;
|
|
399
|
-
noop: boolean;
|
|
400
400
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
401
401
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
402
|
-
startedAt?: Date | null | undefined;
|
|
403
|
-
error?: string | null | undefined;
|
|
404
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
405
|
-
description?: string | null | undefined;
|
|
406
|
-
completedAt?: Date | null | undefined;
|
|
407
|
-
delayUntil?: Date | null | undefined;
|
|
408
|
-
operation?: string | null | undefined;
|
|
409
402
|
style?: {
|
|
410
403
|
style: "normal" | "minimal";
|
|
411
404
|
variant?: string | undefined;
|
|
412
405
|
} | null | undefined;
|
|
413
406
|
icon?: string | null | undefined;
|
|
407
|
+
startedAt?: Date | null | undefined;
|
|
408
|
+
completedAt?: Date | null | undefined;
|
|
409
|
+
delayUntil?: Date | null | undefined;
|
|
410
|
+
description?: string | null | undefined;
|
|
414
411
|
properties?: {
|
|
415
|
-
text: string;
|
|
416
412
|
label: string;
|
|
413
|
+
text: string;
|
|
417
414
|
url?: string | undefined;
|
|
418
415
|
imageUrl?: string[] | undefined;
|
|
419
416
|
}[] | null | undefined;
|
|
420
417
|
outputProperties?: {
|
|
421
|
-
text: string;
|
|
422
418
|
label: string;
|
|
419
|
+
text: string;
|
|
423
420
|
url?: string | undefined;
|
|
424
421
|
imageUrl?: string[] | undefined;
|
|
425
422
|
}[] | null | undefined;
|
|
423
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
424
|
+
error?: string | null | undefined;
|
|
426
425
|
parentId?: string | null | undefined;
|
|
426
|
+
operation?: 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" | "
|
|
431
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
432
432
|
name: string;
|
|
433
433
|
id: string;
|
|
434
|
+
noop: boolean;
|
|
434
435
|
idempotencyKey: string;
|
|
435
436
|
attempts: number;
|
|
436
|
-
noop: boolean;
|
|
437
437
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
438
438
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
439
|
-
startedAt?: Date | null | undefined;
|
|
440
|
-
error?: string | null | undefined;
|
|
441
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
442
|
-
description?: string | null | undefined;
|
|
443
|
-
completedAt?: Date | null | undefined;
|
|
444
|
-
delayUntil?: Date | null | undefined;
|
|
445
|
-
operation?: string | null | undefined;
|
|
446
439
|
style?: {
|
|
447
440
|
style: "normal" | "minimal";
|
|
448
441
|
variant?: string | undefined;
|
|
449
442
|
} | null | undefined;
|
|
450
443
|
icon?: string | null | undefined;
|
|
444
|
+
startedAt?: Date | null | undefined;
|
|
445
|
+
completedAt?: Date | null | undefined;
|
|
446
|
+
delayUntil?: Date | null | undefined;
|
|
447
|
+
description?: string | null | undefined;
|
|
451
448
|
properties?: {
|
|
452
|
-
text: string;
|
|
453
449
|
label: string;
|
|
450
|
+
text: string;
|
|
454
451
|
url?: string | undefined;
|
|
455
452
|
imageUrl?: string[] | undefined;
|
|
456
453
|
}[] | null | undefined;
|
|
457
454
|
outputProperties?: {
|
|
458
|
-
text: string;
|
|
459
455
|
label: string;
|
|
456
|
+
text: string;
|
|
460
457
|
url?: string | undefined;
|
|
461
458
|
imageUrl?: string[] | undefined;
|
|
462
459
|
}[] | null | undefined;
|
|
460
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
461
|
+
error?: string | null | undefined;
|
|
463
462
|
parentId?: string | null | undefined;
|
|
463
|
+
operation?: 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" | "
|
|
469
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
470
470
|
name: string;
|
|
471
471
|
id: string;
|
|
472
|
+
noop: boolean;
|
|
472
473
|
idempotencyKey: string;
|
|
473
474
|
attempts: number;
|
|
474
|
-
noop: boolean;
|
|
475
475
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
476
476
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
477
|
-
startedAt?: Date | null | undefined;
|
|
478
|
-
error?: string | null | undefined;
|
|
479
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
480
|
-
description?: string | null | undefined;
|
|
481
|
-
completedAt?: Date | null | undefined;
|
|
482
|
-
delayUntil?: Date | null | undefined;
|
|
483
|
-
operation?: string | null | undefined;
|
|
484
477
|
style?: {
|
|
485
478
|
style: "normal" | "minimal";
|
|
486
479
|
variant?: string | undefined;
|
|
487
480
|
} | null | undefined;
|
|
488
481
|
icon?: string | null | undefined;
|
|
482
|
+
startedAt?: Date | null | undefined;
|
|
483
|
+
completedAt?: Date | null | undefined;
|
|
484
|
+
delayUntil?: Date | null | undefined;
|
|
485
|
+
description?: string | null | undefined;
|
|
489
486
|
properties?: {
|
|
490
|
-
text: string;
|
|
491
487
|
label: string;
|
|
488
|
+
text: string;
|
|
492
489
|
url?: string | undefined;
|
|
493
490
|
imageUrl?: string[] | undefined;
|
|
494
491
|
}[] | null | undefined;
|
|
495
492
|
outputProperties?: {
|
|
496
|
-
text: string;
|
|
497
493
|
label: string;
|
|
494
|
+
text: string;
|
|
498
495
|
url?: string | undefined;
|
|
499
496
|
imageUrl?: string[] | undefined;
|
|
500
497
|
}[] | null | undefined;
|
|
498
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
499
|
+
error?: string | null | undefined;
|
|
501
500
|
parentId?: string | null | undefined;
|
|
501
|
+
operation?: 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" | "
|
|
507
|
+
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
508
508
|
name: string;
|
|
509
509
|
id: string;
|
|
510
|
+
noop: boolean;
|
|
510
511
|
idempotencyKey: string;
|
|
511
512
|
attempts: number;
|
|
512
|
-
noop: boolean;
|
|
513
513
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
514
514
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
515
|
-
startedAt?: Date | null | undefined;
|
|
516
|
-
error?: string | null | undefined;
|
|
517
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
518
|
-
description?: string | null | undefined;
|
|
519
|
-
completedAt?: Date | null | undefined;
|
|
520
|
-
delayUntil?: Date | null | undefined;
|
|
521
|
-
operation?: string | null | undefined;
|
|
522
515
|
style?: {
|
|
523
516
|
style: "normal" | "minimal";
|
|
524
517
|
variant?: string | undefined;
|
|
525
518
|
} | null | undefined;
|
|
526
519
|
icon?: string | null | undefined;
|
|
520
|
+
startedAt?: Date | null | undefined;
|
|
521
|
+
completedAt?: Date | null | undefined;
|
|
522
|
+
delayUntil?: Date | null | undefined;
|
|
523
|
+
description?: string | null | undefined;
|
|
527
524
|
properties?: {
|
|
528
|
-
text: string;
|
|
529
525
|
label: string;
|
|
526
|
+
text: string;
|
|
530
527
|
url?: string | undefined;
|
|
531
528
|
imageUrl?: string[] | undefined;
|
|
532
529
|
}[] | null | undefined;
|
|
533
530
|
outputProperties?: {
|
|
534
|
-
text: string;
|
|
535
531
|
label: string;
|
|
532
|
+
text: string;
|
|
536
533
|
url?: string | undefined;
|
|
537
534
|
imageUrl?: string[] | undefined;
|
|
538
535
|
}[] | null | undefined;
|
|
536
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
537
|
+
error?: string | null | undefined;
|
|
539
538
|
parentId?: string | null | undefined;
|
|
539
|
+
operation?: 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;
|
|
@@ -576,15 +576,15 @@ export declare class ApiClient {
|
|
|
576
576
|
failedToCancelRunIds: string[];
|
|
577
577
|
}>;
|
|
578
578
|
updateStatus(runId: string, id: string, status: StatusUpdate): Promise<{
|
|
579
|
-
key: string;
|
|
580
579
|
label: string;
|
|
580
|
+
key: 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
|
cron: string;
|
|
598
597
|
};
|
|
598
|
+
type: "cron";
|
|
599
599
|
metadata?: any;
|
|
600
600
|
accountId?: string | undefined;
|
|
601
601
|
} | {
|
|
602
|
-
type: "interval";
|
|
603
602
|
options: {
|
|
604
603
|
seconds: number;
|
|
605
604
|
};
|
|
605
|
+
type: "interval";
|
|
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;
|
|
@@ -621,82 +621,82 @@ export declare class ApiClient {
|
|
|
621
621
|
getEvent(eventId: string): Promise<{
|
|
622
622
|
name: string;
|
|
623
623
|
id: string;
|
|
624
|
-
|
|
624
|
+
updatedAt: Date;
|
|
625
625
|
runs: {
|
|
626
|
-
status: "PENDING" | "CANCELED" | "
|
|
626
|
+
status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
627
627
|
id: string;
|
|
628
628
|
startedAt?: Date | null | undefined;
|
|
629
629
|
completedAt?: Date | null | undefined;
|
|
630
630
|
}[];
|
|
631
|
-
|
|
631
|
+
createdAt: Date;
|
|
632
632
|
}>;
|
|
633
633
|
getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{
|
|
634
|
-
status: "PENDING" | "CANCELED" | "
|
|
634
|
+
status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
635
635
|
id: string;
|
|
636
636
|
startedAt: Date | null;
|
|
637
|
-
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
638
|
-
updatedAt: Date | null;
|
|
639
637
|
completedAt: Date | null;
|
|
638
|
+
updatedAt: Date | null;
|
|
639
|
+
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
640
640
|
statuses: {
|
|
641
|
-
key: string;
|
|
642
641
|
label: string;
|
|
642
|
+
key: string;
|
|
643
643
|
history: {
|
|
644
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
645
644
|
label?: string | undefined;
|
|
646
|
-
state?: "
|
|
645
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
646
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
647
647
|
}[];
|
|
648
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
648
649
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
649
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
650
650
|
}[];
|
|
651
651
|
output?: any;
|
|
652
652
|
nextCursor?: string | undefined;
|
|
653
653
|
}>;
|
|
654
654
|
cancelRun(runId: string): Promise<{
|
|
655
|
-
status: "PENDING" | "CANCELED" | "
|
|
655
|
+
status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
656
656
|
id: string;
|
|
657
657
|
startedAt: Date | null;
|
|
658
|
-
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
659
|
-
updatedAt: Date | null;
|
|
660
658
|
completedAt: Date | null;
|
|
659
|
+
updatedAt: Date | null;
|
|
660
|
+
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
661
661
|
statuses: {
|
|
662
|
-
key: string;
|
|
663
662
|
label: string;
|
|
663
|
+
key: string;
|
|
664
664
|
history: {
|
|
665
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
666
665
|
label?: string | undefined;
|
|
667
|
-
state?: "
|
|
666
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
667
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
668
668
|
}[];
|
|
669
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
669
670
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
670
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
671
671
|
}[];
|
|
672
672
|
output?: any;
|
|
673
673
|
nextCursor?: string | undefined;
|
|
674
674
|
}>;
|
|
675
675
|
getRunStatuses(runId: string): Promise<{
|
|
676
|
-
run: {
|
|
677
|
-
status: "PENDING" | "CANCELED" | "TIMED_OUT" | "QUEUED" | "EXECUTING" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
678
|
-
id: string;
|
|
679
|
-
output?: any;
|
|
680
|
-
};
|
|
681
676
|
statuses: {
|
|
682
|
-
key: string;
|
|
683
677
|
label: string;
|
|
678
|
+
key: string;
|
|
684
679
|
history: {
|
|
685
|
-
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
686
680
|
label?: string | undefined;
|
|
687
|
-
state?: "
|
|
681
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
682
|
+
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
688
683
|
}[];
|
|
684
|
+
state?: "loading" | "success" | "failure" | undefined;
|
|
689
685
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
690
|
-
state?: "success" | "loading" | "failure" | undefined;
|
|
691
686
|
}[];
|
|
687
|
+
run: {
|
|
688
|
+
status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
689
|
+
id: string;
|
|
690
|
+
output?: any;
|
|
691
|
+
};
|
|
692
692
|
}>;
|
|
693
693
|
getRuns(jobSlug: string, options?: GetRunsOptions): Promise<{
|
|
694
694
|
runs: {
|
|
695
|
-
status: "PENDING" | "CANCELED" | "
|
|
695
|
+
status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
696
696
|
id: string;
|
|
697
697
|
startedAt: Date | null;
|
|
698
|
-
updatedAt: Date | null;
|
|
699
698
|
completedAt: Date | null;
|
|
699
|
+
updatedAt: Date | null;
|
|
700
700
|
}[];
|
|
701
701
|
nextCursor?: string | undefined;
|
|
702
702
|
}>;
|