@trigger.dev/sdk 0.0.0-prerelease-20250212002625 → 0.0.0-python-preview-20250226140121
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 +138 -138
- package/dist/commonjs/imports/uncrypto-cjs.cjs.map +1 -0
- package/dist/commonjs/imports/uncrypto.d.ts +1 -0
- package/dist/commonjs/imports/uncrypto.js +7 -0
- 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/index.d.ts +1 -1
- package/dist/commonjs/v3/index.js +1 -1
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/runs.d.ts +24 -24
- package/dist/commonjs/v3/webhooks.d.ts +47 -0
- package/dist/commonjs/v3/webhooks.js +110 -0
- package/dist/commonjs/v3/webhooks.js.map +1 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/apiClient.d.ts +142 -142
- package/dist/esm/imports/uncrypto.d.ts +2 -0
- package/dist/esm/imports/uncrypto.js +5 -0
- package/dist/esm/imports/uncrypto.js.map +1 -0
- package/dist/esm/io.d.ts +15 -15
- package/dist/esm/status.d.ts +1 -1
- package/dist/esm/triggerClient.d.ts +30 -30
- package/dist/esm/triggers/notifications.d.ts +12 -12
- package/dist/esm/triggers/scheduled.d.ts +4 -4
- 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 +44 -44
- package/dist/esm/v3/webhooks.d.ts +47 -0
- package/dist/esm/v3/webhooks.js +106 -0
- package/dist/esm/v3/webhooks.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/package.json +3 -2
package/dist/esm/apiClient.d.ts
CHANGED
|
@@ -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
|
-
label: string;
|
|
61
60
|
text: string;
|
|
61
|
+
label: string;
|
|
62
62
|
url?: string | undefined;
|
|
63
63
|
imageUrl?: string[] | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
label: string;
|
|
66
65
|
text: string;
|
|
66
|
+
label: 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
|
-
label: string;
|
|
77
76
|
text: string;
|
|
77
|
+
label: string;
|
|
78
78
|
url?: string | undefined;
|
|
79
79
|
imageUrl?: string[] | undefined;
|
|
80
80
|
}, {
|
|
81
|
-
label: string;
|
|
82
81
|
text: string;
|
|
82
|
+
label: string;
|
|
83
83
|
url?: string | undefined;
|
|
84
84
|
imageUrl?: string[] | undefined;
|
|
85
85
|
}>, "many">>>;
|
|
@@ -107,75 +107,75 @@ export declare class ApiClient {
|
|
|
107
107
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
108
108
|
}>, "strip", z.ZodTypeAny, {
|
|
109
109
|
name: string;
|
|
110
|
-
status: "
|
|
110
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
111
111
|
id: string;
|
|
112
|
-
noop: boolean;
|
|
113
112
|
idempotencyKey: string;
|
|
114
113
|
attempts: number;
|
|
114
|
+
noop: boolean;
|
|
115
|
+
error?: string | null | undefined;
|
|
116
|
+
description?: string | null | undefined;
|
|
115
117
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
116
|
-
|
|
118
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
119
|
+
startedAt?: Date | null | undefined;
|
|
120
|
+
completedAt?: Date | null | undefined;
|
|
117
121
|
style?: {
|
|
118
122
|
style: "normal" | "minimal";
|
|
119
123
|
variant?: string | undefined;
|
|
120
124
|
} | null | undefined;
|
|
121
|
-
icon?: string | null | undefined;
|
|
122
|
-
startedAt?: Date | null | undefined;
|
|
123
|
-
completedAt?: Date | null | undefined;
|
|
124
125
|
delayUntil?: Date | null | undefined;
|
|
125
|
-
|
|
126
|
+
icon?: string | null | undefined;
|
|
126
127
|
properties?: {
|
|
127
|
-
label: string;
|
|
128
128
|
text: string;
|
|
129
|
+
label: string;
|
|
129
130
|
url?: string | undefined;
|
|
130
131
|
imageUrl?: string[] | undefined;
|
|
131
132
|
}[] | null | undefined;
|
|
133
|
+
operation?: string | null | undefined;
|
|
132
134
|
outputProperties?: {
|
|
133
|
-
label: string;
|
|
134
135
|
text: string;
|
|
136
|
+
label: string;
|
|
135
137
|
url?: string | undefined;
|
|
136
138
|
imageUrl?: string[] | undefined;
|
|
137
139
|
}[] | null | undefined;
|
|
138
|
-
|
|
139
|
-
error?: string | null | undefined;
|
|
140
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
140
141
|
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
146
|
name: string;
|
|
147
|
-
status: "
|
|
147
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
148
148
|
id: string;
|
|
149
|
-
noop: boolean;
|
|
150
149
|
idempotencyKey: string;
|
|
151
150
|
attempts: number;
|
|
151
|
+
noop: boolean;
|
|
152
|
+
error?: string | null | undefined;
|
|
153
|
+
description?: string | null | undefined;
|
|
152
154
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
153
|
-
|
|
155
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
156
|
+
startedAt?: Date | null | undefined;
|
|
157
|
+
completedAt?: Date | null | undefined;
|
|
154
158
|
style?: {
|
|
155
159
|
style: "normal" | "minimal";
|
|
156
160
|
variant?: string | undefined;
|
|
157
161
|
} | null | undefined;
|
|
158
|
-
icon?: string | null | undefined;
|
|
159
|
-
startedAt?: Date | null | undefined;
|
|
160
|
-
completedAt?: Date | null | undefined;
|
|
161
162
|
delayUntil?: Date | null | undefined;
|
|
162
|
-
|
|
163
|
+
icon?: string | null | undefined;
|
|
163
164
|
properties?: {
|
|
164
|
-
label: string;
|
|
165
165
|
text: string;
|
|
166
|
+
label: string;
|
|
166
167
|
url?: string | undefined;
|
|
167
168
|
imageUrl?: string[] | undefined;
|
|
168
169
|
}[] | null | undefined;
|
|
170
|
+
operation?: string | null | undefined;
|
|
169
171
|
outputProperties?: {
|
|
170
|
-
label: string;
|
|
171
172
|
text: string;
|
|
173
|
+
label: string;
|
|
172
174
|
url?: string | undefined;
|
|
173
175
|
imageUrl?: string[] | undefined;
|
|
174
176
|
}[] | null | undefined;
|
|
175
|
-
|
|
176
|
-
error?: string | null | undefined;
|
|
177
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
177
178
|
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,38 +189,38 @@ 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
|
-
noop: boolean;
|
|
195
194
|
idempotencyKey: string;
|
|
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
|
-
noop?: boolean | undefined;
|
|
203
202
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
203
|
+
noop?: boolean | 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: "
|
|
209
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
210
210
|
id: string;
|
|
211
|
-
noop: boolean;
|
|
212
211
|
idempotencyKey: string;
|
|
212
|
+
noop: boolean;
|
|
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: "
|
|
219
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
220
220
|
id: string;
|
|
221
221
|
idempotencyKey: string;
|
|
222
|
-
noop?: boolean | undefined;
|
|
223
222
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
223
|
+
noop?: boolean | undefined;
|
|
224
224
|
parentId?: string | null | undefined;
|
|
225
225
|
}[];
|
|
226
226
|
cursor?: string | undefined;
|
|
@@ -228,48 +228,48 @@ export declare class ApiClient {
|
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
task: {
|
|
230
230
|
name: string;
|
|
231
|
-
status: "
|
|
231
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
232
232
|
id: string;
|
|
233
|
-
noop: boolean;
|
|
234
233
|
idempotencyKey: string;
|
|
235
234
|
attempts: number;
|
|
235
|
+
noop: boolean;
|
|
236
|
+
error?: string | null | undefined;
|
|
237
|
+
description?: string | null | undefined;
|
|
236
238
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
237
|
-
|
|
239
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
240
|
+
startedAt?: Date | null | undefined;
|
|
241
|
+
completedAt?: Date | null | undefined;
|
|
238
242
|
style?: {
|
|
239
243
|
style: "normal" | "minimal";
|
|
240
244
|
variant?: string | undefined;
|
|
241
245
|
} | null | undefined;
|
|
242
|
-
icon?: string | null | undefined;
|
|
243
|
-
startedAt?: Date | null | undefined;
|
|
244
|
-
completedAt?: Date | null | undefined;
|
|
245
246
|
delayUntil?: Date | null | undefined;
|
|
246
|
-
|
|
247
|
+
icon?: string | null | undefined;
|
|
247
248
|
properties?: {
|
|
248
|
-
label: string;
|
|
249
249
|
text: string;
|
|
250
|
+
label: string;
|
|
250
251
|
url?: string | undefined;
|
|
251
252
|
imageUrl?: string[] | undefined;
|
|
252
253
|
}[] | null | undefined;
|
|
254
|
+
operation?: string | null | undefined;
|
|
253
255
|
outputProperties?: {
|
|
254
|
-
label: string;
|
|
255
256
|
text: string;
|
|
257
|
+
label: string;
|
|
256
258
|
url?: string | undefined;
|
|
257
259
|
imageUrl?: string[] | undefined;
|
|
258
260
|
}[] | null | undefined;
|
|
259
|
-
|
|
260
|
-
error?: string | null | undefined;
|
|
261
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
261
262
|
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: "
|
|
269
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
270
270
|
id: string;
|
|
271
|
-
noop: boolean;
|
|
272
271
|
idempotencyKey: string;
|
|
272
|
+
noop: boolean;
|
|
273
273
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
274
274
|
parentId?: string | null | undefined;
|
|
275
275
|
}[];
|
|
@@ -278,49 +278,49 @@ export declare class ApiClient {
|
|
|
278
278
|
}, {
|
|
279
279
|
task: {
|
|
280
280
|
name: string;
|
|
281
|
-
status: "
|
|
281
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
282
282
|
id: string;
|
|
283
|
-
noop: boolean;
|
|
284
283
|
idempotencyKey: string;
|
|
285
284
|
attempts: number;
|
|
285
|
+
noop: boolean;
|
|
286
|
+
error?: string | null | undefined;
|
|
287
|
+
description?: string | null | undefined;
|
|
286
288
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
287
|
-
|
|
289
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
290
|
+
startedAt?: Date | null | undefined;
|
|
291
|
+
completedAt?: Date | null | undefined;
|
|
288
292
|
style?: {
|
|
289
293
|
style: "normal" | "minimal";
|
|
290
294
|
variant?: string | undefined;
|
|
291
295
|
} | null | undefined;
|
|
292
|
-
icon?: string | null | undefined;
|
|
293
|
-
startedAt?: Date | null | undefined;
|
|
294
|
-
completedAt?: Date | null | undefined;
|
|
295
296
|
delayUntil?: Date | null | undefined;
|
|
296
|
-
|
|
297
|
+
icon?: string | null | undefined;
|
|
297
298
|
properties?: {
|
|
298
|
-
label: string;
|
|
299
299
|
text: string;
|
|
300
|
+
label: string;
|
|
300
301
|
url?: string | undefined;
|
|
301
302
|
imageUrl?: string[] | undefined;
|
|
302
303
|
}[] | null | undefined;
|
|
304
|
+
operation?: string | null | undefined;
|
|
303
305
|
outputProperties?: {
|
|
304
|
-
label: string;
|
|
305
306
|
text: string;
|
|
307
|
+
label: string;
|
|
306
308
|
url?: string | undefined;
|
|
307
309
|
imageUrl?: string[] | undefined;
|
|
308
310
|
}[] | null | undefined;
|
|
309
|
-
|
|
310
|
-
error?: string | null | undefined;
|
|
311
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
311
312
|
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: "
|
|
319
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
320
320
|
id: string;
|
|
321
321
|
idempotencyKey: string;
|
|
322
|
-
noop?: boolean | undefined;
|
|
323
322
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
323
|
+
noop?: boolean | 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
|
-
label: string;
|
|
346
345
|
text: string;
|
|
346
|
+
label: string;
|
|
347
347
|
url?: string | undefined;
|
|
348
348
|
imageUrl?: string[] | undefined;
|
|
349
349
|
}, {
|
|
350
|
-
label: string;
|
|
351
350
|
text: string;
|
|
351
|
+
label: 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
|
-
label: string;
|
|
362
361
|
text: string;
|
|
362
|
+
label: string;
|
|
363
363
|
url?: string | undefined;
|
|
364
364
|
imageUrl?: string[] | undefined;
|
|
365
365
|
}, {
|
|
366
|
-
label: string;
|
|
367
366
|
text: string;
|
|
367
|
+
label: string;
|
|
368
368
|
url?: string | undefined;
|
|
369
369
|
imageUrl?: string[] | undefined;
|
|
370
370
|
}>, "many">>>;
|
|
@@ -392,158 +392,158 @@ export declare class ApiClient {
|
|
|
392
392
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
393
393
|
}>, "strip", z.ZodTypeAny, {
|
|
394
394
|
name: string;
|
|
395
|
-
status: "
|
|
395
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
396
396
|
id: string;
|
|
397
|
-
noop: boolean;
|
|
398
397
|
idempotencyKey: string;
|
|
399
398
|
attempts: number;
|
|
399
|
+
noop: boolean;
|
|
400
|
+
error?: string | null | undefined;
|
|
401
|
+
description?: string | null | undefined;
|
|
400
402
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
401
|
-
|
|
403
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
404
|
+
startedAt?: Date | null | undefined;
|
|
405
|
+
completedAt?: Date | null | undefined;
|
|
402
406
|
style?: {
|
|
403
407
|
style: "normal" | "minimal";
|
|
404
408
|
variant?: string | undefined;
|
|
405
409
|
} | null | undefined;
|
|
406
|
-
icon?: string | null | undefined;
|
|
407
|
-
startedAt?: Date | null | undefined;
|
|
408
|
-
completedAt?: Date | null | undefined;
|
|
409
410
|
delayUntil?: Date | null | undefined;
|
|
410
|
-
|
|
411
|
+
icon?: string | null | undefined;
|
|
411
412
|
properties?: {
|
|
412
|
-
label: string;
|
|
413
413
|
text: string;
|
|
414
|
+
label: string;
|
|
414
415
|
url?: string | undefined;
|
|
415
416
|
imageUrl?: string[] | undefined;
|
|
416
417
|
}[] | null | undefined;
|
|
418
|
+
operation?: string | null | undefined;
|
|
417
419
|
outputProperties?: {
|
|
418
|
-
label: string;
|
|
419
420
|
text: string;
|
|
421
|
+
label: string;
|
|
420
422
|
url?: string | undefined;
|
|
421
423
|
imageUrl?: string[] | undefined;
|
|
422
424
|
}[] | null | undefined;
|
|
423
|
-
|
|
424
|
-
error?: string | null | undefined;
|
|
425
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
425
426
|
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
431
|
name: string;
|
|
432
|
-
status: "
|
|
432
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
433
433
|
id: string;
|
|
434
|
-
noop: boolean;
|
|
435
434
|
idempotencyKey: string;
|
|
436
435
|
attempts: number;
|
|
436
|
+
noop: boolean;
|
|
437
|
+
error?: string | null | undefined;
|
|
438
|
+
description?: string | null | undefined;
|
|
437
439
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
438
|
-
|
|
440
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
441
|
+
startedAt?: Date | null | undefined;
|
|
442
|
+
completedAt?: Date | null | undefined;
|
|
439
443
|
style?: {
|
|
440
444
|
style: "normal" | "minimal";
|
|
441
445
|
variant?: string | undefined;
|
|
442
446
|
} | null | undefined;
|
|
443
|
-
icon?: string | null | undefined;
|
|
444
|
-
startedAt?: Date | null | undefined;
|
|
445
|
-
completedAt?: Date | null | undefined;
|
|
446
447
|
delayUntil?: Date | null | undefined;
|
|
447
|
-
|
|
448
|
+
icon?: string | null | undefined;
|
|
448
449
|
properties?: {
|
|
449
|
-
label: string;
|
|
450
450
|
text: string;
|
|
451
|
+
label: string;
|
|
451
452
|
url?: string | undefined;
|
|
452
453
|
imageUrl?: string[] | undefined;
|
|
453
454
|
}[] | null | undefined;
|
|
455
|
+
operation?: string | null | undefined;
|
|
454
456
|
outputProperties?: {
|
|
455
|
-
label: string;
|
|
456
457
|
text: string;
|
|
458
|
+
label: string;
|
|
457
459
|
url?: string | undefined;
|
|
458
460
|
imageUrl?: string[] | undefined;
|
|
459
461
|
}[] | null | undefined;
|
|
460
|
-
|
|
461
|
-
error?: string | null | undefined;
|
|
462
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
462
463
|
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
469
|
name: string;
|
|
470
|
-
status: "
|
|
470
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
471
471
|
id: string;
|
|
472
|
-
noop: boolean;
|
|
473
472
|
idempotencyKey: string;
|
|
474
473
|
attempts: number;
|
|
474
|
+
noop: boolean;
|
|
475
|
+
error?: string | null | undefined;
|
|
476
|
+
description?: string | null | undefined;
|
|
475
477
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
476
|
-
|
|
478
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
479
|
+
startedAt?: Date | null | undefined;
|
|
480
|
+
completedAt?: Date | null | undefined;
|
|
477
481
|
style?: {
|
|
478
482
|
style: "normal" | "minimal";
|
|
479
483
|
variant?: string | undefined;
|
|
480
484
|
} | null | undefined;
|
|
481
|
-
icon?: string | null | undefined;
|
|
482
|
-
startedAt?: Date | null | undefined;
|
|
483
|
-
completedAt?: Date | null | undefined;
|
|
484
485
|
delayUntil?: Date | null | undefined;
|
|
485
|
-
|
|
486
|
+
icon?: string | null | undefined;
|
|
486
487
|
properties?: {
|
|
487
|
-
label: string;
|
|
488
488
|
text: string;
|
|
489
|
+
label: string;
|
|
489
490
|
url?: string | undefined;
|
|
490
491
|
imageUrl?: string[] | undefined;
|
|
491
492
|
}[] | null | undefined;
|
|
493
|
+
operation?: string | null | undefined;
|
|
492
494
|
outputProperties?: {
|
|
493
|
-
label: string;
|
|
494
495
|
text: string;
|
|
496
|
+
label: string;
|
|
495
497
|
url?: string | undefined;
|
|
496
498
|
imageUrl?: string[] | undefined;
|
|
497
499
|
}[] | null | undefined;
|
|
498
|
-
|
|
499
|
-
error?: string | null | undefined;
|
|
500
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
500
501
|
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
507
|
name: string;
|
|
508
|
-
status: "
|
|
508
|
+
status: "COMPLETED" | "CANCELED" | "PENDING" | "WAITING" | "RUNNING" | "ERRORED";
|
|
509
509
|
id: string;
|
|
510
|
-
noop: boolean;
|
|
511
510
|
idempotencyKey: string;
|
|
512
511
|
attempts: number;
|
|
512
|
+
noop: boolean;
|
|
513
|
+
error?: string | null | undefined;
|
|
514
|
+
description?: string | null | undefined;
|
|
513
515
|
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
514
|
-
|
|
516
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
517
|
+
startedAt?: Date | null | undefined;
|
|
518
|
+
completedAt?: Date | null | undefined;
|
|
515
519
|
style?: {
|
|
516
520
|
style: "normal" | "minimal";
|
|
517
521
|
variant?: string | undefined;
|
|
518
522
|
} | null | undefined;
|
|
519
|
-
icon?: string | null | undefined;
|
|
520
|
-
startedAt?: Date | null | undefined;
|
|
521
|
-
completedAt?: Date | null | undefined;
|
|
522
523
|
delayUntil?: Date | null | undefined;
|
|
523
|
-
|
|
524
|
+
icon?: string | null | undefined;
|
|
524
525
|
properties?: {
|
|
525
|
-
label: string;
|
|
526
526
|
text: string;
|
|
527
|
+
label: string;
|
|
527
528
|
url?: string | undefined;
|
|
528
529
|
imageUrl?: string[] | undefined;
|
|
529
530
|
}[] | null | undefined;
|
|
531
|
+
operation?: string | null | undefined;
|
|
530
532
|
outputProperties?: {
|
|
531
|
-
label: string;
|
|
532
533
|
text: string;
|
|
534
|
+
label: string;
|
|
533
535
|
url?: string | undefined;
|
|
534
536
|
imageUrl?: string[] | undefined;
|
|
535
537
|
}[] | null | undefined;
|
|
536
|
-
|
|
537
|
-
error?: string | null | undefined;
|
|
538
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
538
539
|
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
|
-
name: string;
|
|
546
545
|
payload: import("@trigger.dev/core").DeserializedJson;
|
|
546
|
+
name: string;
|
|
547
547
|
id: string;
|
|
548
548
|
timestamp: Date;
|
|
549
549
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
@@ -552,8 +552,8 @@ export declare class ApiClient {
|
|
|
552
552
|
cancelledAt?: Date | null | undefined;
|
|
553
553
|
}>;
|
|
554
554
|
sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{
|
|
555
|
-
name: string;
|
|
556
555
|
payload: import("@trigger.dev/core").DeserializedJson;
|
|
556
|
+
name: string;
|
|
557
557
|
id: string;
|
|
558
558
|
timestamp: Date;
|
|
559
559
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
@@ -562,8 +562,8 @@ export declare class ApiClient {
|
|
|
562
562
|
cancelledAt?: Date | null | undefined;
|
|
563
563
|
}[]>;
|
|
564
564
|
cancelEvent(eventId: string): Promise<{
|
|
565
|
-
name: string;
|
|
566
565
|
payload: import("@trigger.dev/core").DeserializedJson;
|
|
566
|
+
name: string;
|
|
567
567
|
id: string;
|
|
568
568
|
timestamp: Date;
|
|
569
569
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
@@ -576,8 +576,8 @@ export declare class ApiClient {
|
|
|
576
576
|
failedToCancelRunIds: string[];
|
|
577
577
|
}>;
|
|
578
578
|
updateStatus(runId: string, id: string, status: StatusUpdate): Promise<{
|
|
579
|
-
label: string;
|
|
580
579
|
key: string;
|
|
580
|
+
label: string;
|
|
581
581
|
history: {
|
|
582
582
|
label?: string | undefined;
|
|
583
583
|
state?: "loading" | "success" | "failure" | undefined;
|
|
@@ -593,16 +593,16 @@ export declare class ApiClient {
|
|
|
593
593
|
id: string;
|
|
594
594
|
schedule: {
|
|
595
595
|
options: {
|
|
596
|
-
|
|
596
|
+
seconds: number;
|
|
597
597
|
};
|
|
598
|
-
type: "
|
|
598
|
+
type: "interval";
|
|
599
599
|
metadata?: any;
|
|
600
600
|
accountId?: string | undefined;
|
|
601
601
|
} | {
|
|
602
602
|
options: {
|
|
603
|
-
|
|
603
|
+
cron: string;
|
|
604
604
|
};
|
|
605
|
-
type: "
|
|
605
|
+
type: "cron";
|
|
606
606
|
metadata?: any;
|
|
607
607
|
accountId?: string | undefined;
|
|
608
608
|
};
|
|
@@ -621,25 +621,24 @@ export declare class ApiClient {
|
|
|
621
621
|
getEvent(eventId: string): Promise<{
|
|
622
622
|
name: string;
|
|
623
623
|
id: string;
|
|
624
|
+
createdAt: Date;
|
|
624
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
|
-
createdAt: 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
|
+
updatedAt: Date | null;
|
|
636
637
|
startedAt: Date | null;
|
|
637
638
|
completedAt: Date | null;
|
|
638
|
-
updatedAt: Date | null;
|
|
639
|
-
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
640
639
|
statuses: {
|
|
641
|
-
label: string;
|
|
642
640
|
key: string;
|
|
641
|
+
label: string;
|
|
643
642
|
history: {
|
|
644
643
|
label?: string | undefined;
|
|
645
644
|
state?: "loading" | "success" | "failure" | undefined;
|
|
@@ -648,19 +647,19 @@ export declare class ApiClient {
|
|
|
648
647
|
state?: "loading" | "success" | "failure" | undefined;
|
|
649
648
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | 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
|
+
updatedAt: Date | null;
|
|
657
658
|
startedAt: Date | null;
|
|
658
659
|
completedAt: Date | null;
|
|
659
|
-
updatedAt: Date | null;
|
|
660
|
-
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
661
660
|
statuses: {
|
|
662
|
-
label: string;
|
|
663
661
|
key: string;
|
|
662
|
+
label: string;
|
|
664
663
|
history: {
|
|
665
664
|
label?: string | undefined;
|
|
666
665
|
state?: "loading" | "success" | "failure" | undefined;
|
|
@@ -669,13 +668,19 @@ export declare class ApiClient {
|
|
|
669
668
|
state?: "loading" | "success" | "failure" | undefined;
|
|
670
669
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | 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
|
+
run: {
|
|
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
|
+
id: string;
|
|
679
|
+
output?: any;
|
|
680
|
+
};
|
|
676
681
|
statuses: {
|
|
677
|
-
label: string;
|
|
678
682
|
key: string;
|
|
683
|
+
label: string;
|
|
679
684
|
history: {
|
|
680
685
|
label?: string | undefined;
|
|
681
686
|
state?: "loading" | "success" | "failure" | undefined;
|
|
@@ -684,19 +689,14 @@ export declare class ApiClient {
|
|
|
684
689
|
state?: "loading" | "success" | "failure" | undefined;
|
|
685
690
|
data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
|
|
686
691
|
}[];
|
|
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: "
|
|
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
|
+
updatedAt: Date | null;
|
|
697
698
|
startedAt: Date | null;
|
|
698
699
|
completedAt: Date | null;
|
|
699
|
-
updatedAt: Date | null;
|
|
700
700
|
}[];
|
|
701
701
|
nextCursor?: string | undefined;
|
|
702
702
|
}>;
|