@trigger.dev/sdk 0.0.0-prerelease-20250213143202 → 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.js +4 -4
- 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/version.js +1 -1
- package/dist/esm/apiClient.d.ts +142 -142
- 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/runs.d.ts +21 -21
- 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,74 +106,74 @@ 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
117
|
style?: {
|
|
124
118
|
style: "normal" | "minimal";
|
|
125
119
|
variant?: string | undefined;
|
|
126
120
|
} | null | undefined;
|
|
127
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;
|
|
128
126
|
properties?: {
|
|
129
|
-
text: string;
|
|
130
127
|
label: string;
|
|
128
|
+
text: string;
|
|
131
129
|
url?: string | undefined;
|
|
132
130
|
imageUrl?: string[] | undefined;
|
|
133
131
|
}[] | null | undefined;
|
|
134
132
|
outputProperties?: {
|
|
135
|
-
text: string;
|
|
136
133
|
label: string;
|
|
134
|
+
text: string;
|
|
137
135
|
url?: string | undefined;
|
|
138
136
|
imageUrl?: string[] | undefined;
|
|
139
137
|
}[] | null | undefined;
|
|
138
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
139
|
+
error?: string | null | undefined;
|
|
140
140
|
parentId?: string | null | undefined;
|
|
141
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
154
|
style?: {
|
|
161
155
|
style: "normal" | "minimal";
|
|
162
156
|
variant?: string | undefined;
|
|
163
157
|
} | null | undefined;
|
|
164
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;
|
|
165
163
|
properties?: {
|
|
166
|
-
text: string;
|
|
167
164
|
label: string;
|
|
165
|
+
text: string;
|
|
168
166
|
url?: string | undefined;
|
|
169
167
|
imageUrl?: string[] | undefined;
|
|
170
168
|
}[] | null | undefined;
|
|
171
169
|
outputProperties?: {
|
|
172
|
-
text: string;
|
|
173
170
|
label: string;
|
|
171
|
+
text: string;
|
|
174
172
|
url?: string | undefined;
|
|
175
173
|
imageUrl?: string[] | undefined;
|
|
176
174
|
}[] | null | undefined;
|
|
175
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
176
|
+
error?: string | null | undefined;
|
|
177
177
|
parentId?: string | null | undefined;
|
|
178
178
|
operation?: string | null | undefined;
|
|
179
179
|
callbackUrl?: string | null | undefined;
|
|
@@ -189,75 +189,75 @@ 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
238
|
style?: {
|
|
245
239
|
style: "normal" | "minimal";
|
|
246
240
|
variant?: string | undefined;
|
|
247
241
|
} | null | undefined;
|
|
248
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;
|
|
249
247
|
properties?: {
|
|
250
|
-
text: string;
|
|
251
248
|
label: string;
|
|
249
|
+
text: string;
|
|
252
250
|
url?: string | undefined;
|
|
253
251
|
imageUrl?: string[] | undefined;
|
|
254
252
|
}[] | null | undefined;
|
|
255
253
|
outputProperties?: {
|
|
256
|
-
text: string;
|
|
257
254
|
label: string;
|
|
255
|
+
text: string;
|
|
258
256
|
url?: string | undefined;
|
|
259
257
|
imageUrl?: string[] | undefined;
|
|
260
258
|
}[] | null | undefined;
|
|
259
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
260
|
+
error?: string | null | undefined;
|
|
261
261
|
parentId?: string | null | undefined;
|
|
262
262
|
operation?: string | null | undefined;
|
|
263
263
|
callbackUrl?: string | null | undefined;
|
|
@@ -266,10 +266,10 @@ export declare class ApiClient {
|
|
|
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,37 +277,37 @@ 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
288
|
style?: {
|
|
295
289
|
style: "normal" | "minimal";
|
|
296
290
|
variant?: string | undefined;
|
|
297
291
|
} | null | undefined;
|
|
298
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;
|
|
299
297
|
properties?: {
|
|
300
|
-
text: string;
|
|
301
298
|
label: string;
|
|
299
|
+
text: string;
|
|
302
300
|
url?: string | undefined;
|
|
303
301
|
imageUrl?: string[] | undefined;
|
|
304
302
|
}[] | null | undefined;
|
|
305
303
|
outputProperties?: {
|
|
306
|
-
text: string;
|
|
307
304
|
label: string;
|
|
305
|
+
text: string;
|
|
308
306
|
url?: string | undefined;
|
|
309
307
|
imageUrl?: string[] | undefined;
|
|
310
308
|
}[] | null | undefined;
|
|
309
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
310
|
+
error?: string | null | undefined;
|
|
311
311
|
parentId?: string | null | undefined;
|
|
312
312
|
operation?: string | null | undefined;
|
|
313
313
|
callbackUrl?: string | null | undefined;
|
|
@@ -316,11 +316,11 @@ export declare class ApiClient {
|
|
|
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,74 +391,74 @@ 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
402
|
style?: {
|
|
409
403
|
style: "normal" | "minimal";
|
|
410
404
|
variant?: string | undefined;
|
|
411
405
|
} | null | undefined;
|
|
412
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;
|
|
413
411
|
properties?: {
|
|
414
|
-
text: string;
|
|
415
412
|
label: string;
|
|
413
|
+
text: string;
|
|
416
414
|
url?: string | undefined;
|
|
417
415
|
imageUrl?: string[] | undefined;
|
|
418
416
|
}[] | null | undefined;
|
|
419
417
|
outputProperties?: {
|
|
420
|
-
text: string;
|
|
421
418
|
label: string;
|
|
419
|
+
text: string;
|
|
422
420
|
url?: string | undefined;
|
|
423
421
|
imageUrl?: string[] | undefined;
|
|
424
422
|
}[] | null | undefined;
|
|
423
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
424
|
+
error?: string | null | undefined;
|
|
425
425
|
parentId?: string | null | undefined;
|
|
426
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
439
|
style?: {
|
|
446
440
|
style: "normal" | "minimal";
|
|
447
441
|
variant?: string | undefined;
|
|
448
442
|
} | null | undefined;
|
|
449
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;
|
|
450
448
|
properties?: {
|
|
451
|
-
text: string;
|
|
452
449
|
label: string;
|
|
450
|
+
text: string;
|
|
453
451
|
url?: string | undefined;
|
|
454
452
|
imageUrl?: string[] | undefined;
|
|
455
453
|
}[] | null | undefined;
|
|
456
454
|
outputProperties?: {
|
|
457
|
-
text: string;
|
|
458
455
|
label: string;
|
|
456
|
+
text: string;
|
|
459
457
|
url?: string | undefined;
|
|
460
458
|
imageUrl?: string[] | undefined;
|
|
461
459
|
}[] | null | undefined;
|
|
460
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
461
|
+
error?: string | null | undefined;
|
|
462
462
|
parentId?: string | null | undefined;
|
|
463
463
|
operation?: string | null | undefined;
|
|
464
464
|
callbackUrl?: string | null | undefined;
|
|
@@ -466,37 +466,37 @@ export declare class ApiClient {
|
|
|
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
477
|
style?: {
|
|
484
478
|
style: "normal" | "minimal";
|
|
485
479
|
variant?: string | undefined;
|
|
486
480
|
} | null | undefined;
|
|
487
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;
|
|
488
486
|
properties?: {
|
|
489
|
-
text: string;
|
|
490
487
|
label: string;
|
|
488
|
+
text: string;
|
|
491
489
|
url?: string | undefined;
|
|
492
490
|
imageUrl?: string[] | undefined;
|
|
493
491
|
}[] | null | undefined;
|
|
494
492
|
outputProperties?: {
|
|
495
|
-
text: string;
|
|
496
493
|
label: string;
|
|
494
|
+
text: string;
|
|
497
495
|
url?: string | undefined;
|
|
498
496
|
imageUrl?: string[] | undefined;
|
|
499
497
|
}[] | null | undefined;
|
|
498
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
499
|
+
error?: string | null | undefined;
|
|
500
500
|
parentId?: string | null | undefined;
|
|
501
501
|
operation?: string | null | undefined;
|
|
502
502
|
callbackUrl?: string | null | undefined;
|
|
@@ -504,37 +504,37 @@ export declare class ApiClient {
|
|
|
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
515
|
style?: {
|
|
522
516
|
style: "normal" | "minimal";
|
|
523
517
|
variant?: string | undefined;
|
|
524
518
|
} | null | undefined;
|
|
525
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;
|
|
526
524
|
properties?: {
|
|
527
|
-
text: string;
|
|
528
525
|
label: string;
|
|
526
|
+
text: string;
|
|
529
527
|
url?: string | undefined;
|
|
530
528
|
imageUrl?: string[] | undefined;
|
|
531
529
|
}[] | null | undefined;
|
|
532
530
|
outputProperties?: {
|
|
533
|
-
text: string;
|
|
534
531
|
label: string;
|
|
532
|
+
text: string;
|
|
535
533
|
url?: string | undefined;
|
|
536
534
|
imageUrl?: string[] | undefined;
|
|
537
535
|
}[] | null | undefined;
|
|
536
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
537
|
+
error?: string | null | undefined;
|
|
538
538
|
parentId?: string | null | undefined;
|
|
539
539
|
operation?: string | null | undefined;
|
|
540
540
|
callbackUrl?: string | null | undefined;
|
|
@@ -542,9 +542,9 @@ export declare class ApiClient {
|
|
|
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
|
}>;
|