@trigger.dev/sdk 0.0.0-prerelease-20240825150620 → 0.0.0-prerelease-20240905123715

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.
@@ -42,27 +42,13 @@ export declare class ApiClient {
42
42
  }): Promise<VersionedResponseBody<{
43
43
  "2023-09-29": z.ZodObject<{
44
44
  task: z.ZodObject<{
45
+ id: z.ZodString;
45
46
  name: z.ZodString;
46
47
  params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
47
48
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
48
49
  error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
- context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
50
- id: z.ZodString;
51
- style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
52
- style: z.ZodEnum<["normal", "minimal"]>;
53
- variant: z.ZodOptional<z.ZodString>;
54
- }, "strip", z.ZodTypeAny, {
55
- style: "normal" | "minimal";
56
- variant?: string | undefined;
57
- }, {
58
- style: "normal" | "minimal";
59
- variant?: string | undefined;
60
- }>>>;
61
- icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
- noop: z.ZodBoolean;
63
- startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
64
- completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
65
50
  delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
51
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
52
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
53
  properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
68
54
  label: z.ZodString;
@@ -80,6 +66,20 @@ export declare class ApiClient {
80
66
  url?: string | undefined;
81
67
  imageUrl?: string[] | undefined;
82
68
  }>, "many">>>;
69
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
70
+ style: z.ZodEnum<["normal", "minimal"]>;
71
+ variant: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ style: "normal" | "minimal";
74
+ variant?: string | undefined;
75
+ }, {
76
+ style: "normal" | "minimal";
77
+ variant?: string | undefined;
78
+ }>>>;
79
+ operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
80
+ noop: z.ZodBoolean;
81
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
82
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
83
83
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
84
84
  label: z.ZodString;
85
85
  text: z.ZodString;
@@ -97,31 +97,24 @@ export declare class ApiClient {
97
97
  imageUrl?: string[] | undefined;
98
98
  }>, "many">>>;
99
99
  output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
100
+ context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
100
101
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
- operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
102
102
  callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
103
  childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
104
104
  idempotencyKey: z.ZodString;
105
105
  attempts: z.ZodNumber;
106
106
  forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
+ id: string;
108
109
  name: string;
109
110
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
110
- id: string;
111
111
  noop: boolean;
112
112
  idempotencyKey: string;
113
113
  attempts: number;
114
114
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
115
115
  error?: string | null | undefined;
116
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
117
- style?: {
118
- style: "normal" | "minimal";
119
- variant?: string | undefined;
120
- } | null | undefined;
121
- icon?: string | null | undefined;
122
- startedAt?: Date | null | undefined;
123
- completedAt?: Date | null | undefined;
124
116
  delayUntil?: Date | null | undefined;
117
+ icon?: string | null | undefined;
125
118
  description?: string | null | undefined;
126
119
  properties?: {
127
120
  label: string;
@@ -129,6 +122,13 @@ export declare class ApiClient {
129
122
  url?: string | undefined;
130
123
  imageUrl?: string[] | undefined;
131
124
  }[] | null | undefined;
125
+ style?: {
126
+ style: "normal" | "minimal";
127
+ variant?: string | undefined;
128
+ } | null | undefined;
129
+ operation?: string | null | undefined;
130
+ startedAt?: Date | null | undefined;
131
+ completedAt?: Date | null | undefined;
132
132
  outputProperties?: {
133
133
  label: string;
134
134
  text: string;
@@ -136,29 +136,22 @@ export declare class ApiClient {
136
136
  imageUrl?: string[] | undefined;
137
137
  }[] | null | undefined;
138
138
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
139
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
139
140
  parentId?: string | null | undefined;
140
- operation?: string | null | undefined;
141
141
  callbackUrl?: string | null | undefined;
142
142
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
143
143
  forceYield?: boolean | null | undefined;
144
144
  }, {
145
+ id: string;
145
146
  name: string;
146
147
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
147
- id: string;
148
148
  noop: boolean;
149
149
  idempotencyKey: string;
150
150
  attempts: number;
151
151
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
152
152
  error?: string | null | undefined;
153
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
154
- style?: {
155
- style: "normal" | "minimal";
156
- variant?: string | undefined;
157
- } | null | undefined;
158
- icon?: string | null | undefined;
159
- startedAt?: Date | null | undefined;
160
- completedAt?: Date | null | undefined;
161
153
  delayUntil?: Date | null | undefined;
154
+ icon?: string | null | undefined;
162
155
  description?: string | null | undefined;
163
156
  properties?: {
164
157
  label: string;
@@ -166,6 +159,13 @@ export declare class ApiClient {
166
159
  url?: string | undefined;
167
160
  imageUrl?: string[] | undefined;
168
161
  }[] | null | undefined;
162
+ style?: {
163
+ style: "normal" | "minimal";
164
+ variant?: string | undefined;
165
+ } | null | undefined;
166
+ operation?: string | null | undefined;
167
+ startedAt?: Date | null | undefined;
168
+ completedAt?: Date | null | undefined;
169
169
  outputProperties?: {
170
170
  label: string;
171
171
  text: string;
@@ -173,8 +173,8 @@ export declare class ApiClient {
173
173
  imageUrl?: string[] | undefined;
174
174
  }[] | null | undefined;
175
175
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
176
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
176
177
  parentId?: string | null | undefined;
177
- operation?: string | null | undefined;
178
178
  callbackUrl?: string | null | undefined;
179
179
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
180
180
  forceYield?: boolean | null | undefined;
@@ -188,15 +188,15 @@ export declare class ApiClient {
188
188
  output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
189
189
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
190
190
  }, "strip", z.ZodTypeAny, {
191
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
192
191
  id: string;
192
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
193
193
  noop: boolean;
194
194
  idempotencyKey: string;
195
195
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
196
196
  parentId?: string | null | undefined;
197
197
  }, {
198
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
199
198
  id: string;
199
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
200
200
  idempotencyKey: string;
201
201
  noop?: boolean | undefined;
202
202
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -205,8 +205,8 @@ export declare class ApiClient {
205
205
  cursor: z.ZodOptional<z.ZodString>;
206
206
  }, "strip", z.ZodTypeAny, {
207
207
  tasks: {
208
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
209
208
  id: string;
209
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
210
210
  noop: boolean;
211
211
  idempotencyKey: string;
212
212
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -215,8 +215,8 @@ export declare class ApiClient {
215
215
  cursor?: string | undefined;
216
216
  }, {
217
217
  tasks: {
218
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
219
218
  id: string;
219
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
220
220
  idempotencyKey: string;
221
221
  noop?: boolean | undefined;
222
222
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -226,23 +226,16 @@ export declare class ApiClient {
226
226
  }>>;
227
227
  }, "strip", z.ZodTypeAny, {
228
228
  task: {
229
+ id: string;
229
230
  name: string;
230
231
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
231
- id: string;
232
232
  noop: boolean;
233
233
  idempotencyKey: string;
234
234
  attempts: number;
235
235
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
236
236
  error?: string | null | undefined;
237
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
238
- style?: {
239
- style: "normal" | "minimal";
240
- variant?: string | undefined;
241
- } | null | undefined;
242
- icon?: string | null | undefined;
243
- startedAt?: Date | null | undefined;
244
- completedAt?: Date | null | undefined;
245
237
  delayUntil?: Date | null | undefined;
238
+ icon?: string | null | undefined;
246
239
  description?: string | null | undefined;
247
240
  properties?: {
248
241
  label: string;
@@ -250,6 +243,13 @@ export declare class ApiClient {
250
243
  url?: string | undefined;
251
244
  imageUrl?: string[] | undefined;
252
245
  }[] | null | undefined;
246
+ style?: {
247
+ style: "normal" | "minimal";
248
+ variant?: string | undefined;
249
+ } | null | undefined;
250
+ operation?: string | null | undefined;
251
+ startedAt?: Date | null | undefined;
252
+ completedAt?: Date | null | undefined;
253
253
  outputProperties?: {
254
254
  label: string;
255
255
  text: string;
@@ -257,16 +257,16 @@ export declare class ApiClient {
257
257
  imageUrl?: string[] | undefined;
258
258
  }[] | null | undefined;
259
259
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
260
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
260
261
  parentId?: string | null | undefined;
261
- operation?: string | null | undefined;
262
262
  callbackUrl?: string | null | undefined;
263
263
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
264
264
  forceYield?: boolean | null | undefined;
265
265
  };
266
266
  cachedTasks?: {
267
267
  tasks: {
268
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
269
268
  id: string;
269
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
270
270
  noop: boolean;
271
271
  idempotencyKey: string;
272
272
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -276,23 +276,16 @@ export declare class ApiClient {
276
276
  } | undefined;
277
277
  }, {
278
278
  task: {
279
+ id: string;
279
280
  name: string;
280
281
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
281
- id: string;
282
282
  noop: boolean;
283
283
  idempotencyKey: string;
284
284
  attempts: number;
285
285
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
286
286
  error?: string | null | undefined;
287
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
288
- style?: {
289
- style: "normal" | "minimal";
290
- variant?: string | undefined;
291
- } | null | undefined;
292
- icon?: string | null | undefined;
293
- startedAt?: Date | null | undefined;
294
- completedAt?: Date | null | undefined;
295
287
  delayUntil?: Date | null | undefined;
288
+ icon?: string | null | undefined;
296
289
  description?: string | null | undefined;
297
290
  properties?: {
298
291
  label: string;
@@ -300,6 +293,13 @@ export declare class ApiClient {
300
293
  url?: string | undefined;
301
294
  imageUrl?: string[] | undefined;
302
295
  }[] | null | undefined;
296
+ style?: {
297
+ style: "normal" | "minimal";
298
+ variant?: string | undefined;
299
+ } | null | undefined;
300
+ operation?: string | null | undefined;
301
+ startedAt?: Date | null | undefined;
302
+ completedAt?: Date | null | undefined;
303
303
  outputProperties?: {
304
304
  label: string;
305
305
  text: string;
@@ -307,16 +307,16 @@ export declare class ApiClient {
307
307
  imageUrl?: string[] | undefined;
308
308
  }[] | null | undefined;
309
309
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
310
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
310
311
  parentId?: string | null | undefined;
311
- operation?: string | null | undefined;
312
312
  callbackUrl?: string | null | undefined;
313
313
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
314
314
  forceYield?: boolean | null | undefined;
315
315
  };
316
316
  cachedTasks?: {
317
317
  tasks: {
318
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
319
318
  id: string;
319
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
320
320
  idempotencyKey: string;
321
321
  noop?: boolean | undefined;
322
322
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -326,27 +326,13 @@ export declare class ApiClient {
326
326
  } | undefined;
327
327
  }>;
328
328
  }, z.ZodObject<{
329
+ id: z.ZodString;
329
330
  name: z.ZodString;
330
331
  params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
331
332
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
332
333
  error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
333
- context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
334
- id: z.ZodString;
335
- style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
336
- style: z.ZodEnum<["normal", "minimal"]>;
337
- variant: z.ZodOptional<z.ZodString>;
338
- }, "strip", z.ZodTypeAny, {
339
- style: "normal" | "minimal";
340
- variant?: string | undefined;
341
- }, {
342
- style: "normal" | "minimal";
343
- variant?: string | undefined;
344
- }>>>;
345
- icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
346
- noop: z.ZodBoolean;
347
- startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
348
- completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
349
334
  delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
335
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
350
336
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
351
337
  properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
352
338
  label: z.ZodString;
@@ -364,6 +350,20 @@ export declare class ApiClient {
364
350
  url?: string | undefined;
365
351
  imageUrl?: string[] | undefined;
366
352
  }>, "many">>>;
353
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
354
+ style: z.ZodEnum<["normal", "minimal"]>;
355
+ variant: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ style: "normal" | "minimal";
358
+ variant?: string | undefined;
359
+ }, {
360
+ style: "normal" | "minimal";
361
+ variant?: string | undefined;
362
+ }>>>;
363
+ operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
364
+ noop: z.ZodBoolean;
365
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
366
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
367
367
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
368
368
  label: z.ZodString;
369
369
  text: z.ZodString;
@@ -381,31 +381,24 @@ export declare class ApiClient {
381
381
  imageUrl?: string[] | undefined;
382
382
  }>, "many">>>;
383
383
  output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
384
+ context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
384
385
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
385
- operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
386
  callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
387
387
  childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
388
388
  idempotencyKey: z.ZodString;
389
389
  attempts: z.ZodNumber;
390
390
  forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
391
391
  }, "strip", z.ZodTypeAny, {
392
+ id: string;
392
393
  name: string;
393
394
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
394
- id: string;
395
395
  noop: boolean;
396
396
  idempotencyKey: string;
397
397
  attempts: number;
398
398
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
399
399
  error?: string | null | undefined;
400
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
401
- style?: {
402
- style: "normal" | "minimal";
403
- variant?: string | undefined;
404
- } | null | undefined;
405
- icon?: string | null | undefined;
406
- startedAt?: Date | null | undefined;
407
- completedAt?: Date | null | undefined;
408
400
  delayUntil?: Date | null | undefined;
401
+ icon?: string | null | undefined;
409
402
  description?: string | null | undefined;
410
403
  properties?: {
411
404
  label: string;
@@ -413,6 +406,13 @@ export declare class ApiClient {
413
406
  url?: string | undefined;
414
407
  imageUrl?: string[] | undefined;
415
408
  }[] | null | undefined;
409
+ style?: {
410
+ style: "normal" | "minimal";
411
+ variant?: string | undefined;
412
+ } | null | undefined;
413
+ operation?: string | null | undefined;
414
+ startedAt?: Date | null | undefined;
415
+ completedAt?: Date | null | undefined;
416
416
  outputProperties?: {
417
417
  label: string;
418
418
  text: string;
@@ -420,29 +420,22 @@ export declare class ApiClient {
420
420
  imageUrl?: string[] | undefined;
421
421
  }[] | null | undefined;
422
422
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
423
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
423
424
  parentId?: string | null | undefined;
424
- operation?: string | null | undefined;
425
425
  callbackUrl?: string | null | undefined;
426
426
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
427
427
  forceYield?: boolean | null | undefined;
428
428
  }, {
429
+ id: string;
429
430
  name: string;
430
431
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
431
- id: string;
432
432
  noop: boolean;
433
433
  idempotencyKey: string;
434
434
  attempts: number;
435
435
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
436
436
  error?: string | null | undefined;
437
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
438
- style?: {
439
- style: "normal" | "minimal";
440
- variant?: string | undefined;
441
- } | null | undefined;
442
- icon?: string | null | undefined;
443
- startedAt?: Date | null | undefined;
444
- completedAt?: Date | null | undefined;
445
437
  delayUntil?: Date | null | undefined;
438
+ icon?: string | null | undefined;
446
439
  description?: string | null | undefined;
447
440
  properties?: {
448
441
  label: string;
@@ -450,6 +443,13 @@ export declare class ApiClient {
450
443
  url?: string | undefined;
451
444
  imageUrl?: string[] | undefined;
452
445
  }[] | null | undefined;
446
+ style?: {
447
+ style: "normal" | "minimal";
448
+ variant?: string | undefined;
449
+ } | null | undefined;
450
+ operation?: string | null | undefined;
451
+ startedAt?: Date | null | undefined;
452
+ completedAt?: Date | null | undefined;
453
453
  outputProperties?: {
454
454
  label: string;
455
455
  text: string;
@@ -457,30 +457,23 @@ export declare class ApiClient {
457
457
  imageUrl?: string[] | undefined;
458
458
  }[] | null | undefined;
459
459
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
460
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
460
461
  parentId?: string | null | undefined;
461
- operation?: string | null | undefined;
462
462
  callbackUrl?: string | null | undefined;
463
463
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
464
464
  forceYield?: boolean | null | undefined;
465
465
  }>>>;
466
466
  completeTask(runId: string, id: string, task: CompleteTaskBodyV2Input): Promise<{
467
+ id: string;
467
468
  name: string;
468
469
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
469
- id: string;
470
470
  noop: boolean;
471
471
  idempotencyKey: string;
472
472
  attempts: number;
473
473
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
474
474
  error?: string | null | undefined;
475
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
476
- style?: {
477
- style: "normal" | "minimal";
478
- variant?: string | undefined;
479
- } | null | undefined;
480
- icon?: string | null | undefined;
481
- startedAt?: Date | null | undefined;
482
- completedAt?: Date | null | undefined;
483
475
  delayUntil?: Date | null | undefined;
476
+ icon?: string | null | undefined;
484
477
  description?: string | null | undefined;
485
478
  properties?: {
486
479
  label: string;
@@ -488,6 +481,13 @@ export declare class ApiClient {
488
481
  url?: string | undefined;
489
482
  imageUrl?: string[] | undefined;
490
483
  }[] | null | undefined;
484
+ style?: {
485
+ style: "normal" | "minimal";
486
+ variant?: string | undefined;
487
+ } | null | undefined;
488
+ operation?: string | null | undefined;
489
+ startedAt?: Date | null | undefined;
490
+ completedAt?: Date | null | undefined;
491
491
  outputProperties?: {
492
492
  label: string;
493
493
  text: string;
@@ -495,30 +495,23 @@ export declare class ApiClient {
495
495
  imageUrl?: string[] | undefined;
496
496
  }[] | null | undefined;
497
497
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
498
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
498
499
  parentId?: string | null | undefined;
499
- operation?: string | null | undefined;
500
500
  callbackUrl?: string | null | undefined;
501
501
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
502
502
  forceYield?: boolean | null | undefined;
503
503
  }>;
504
504
  failTask(runId: string, id: string, body: FailTaskBodyInput): Promise<{
505
+ id: string;
505
506
  name: string;
506
507
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
507
- id: string;
508
508
  noop: boolean;
509
509
  idempotencyKey: string;
510
510
  attempts: number;
511
511
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
512
512
  error?: string | null | undefined;
513
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
514
- style?: {
515
- style: "normal" | "minimal";
516
- variant?: string | undefined;
517
- } | null | undefined;
518
- icon?: string | null | undefined;
519
- startedAt?: Date | null | undefined;
520
- completedAt?: Date | null | undefined;
521
513
  delayUntil?: Date | null | undefined;
514
+ icon?: string | null | undefined;
522
515
  description?: string | null | undefined;
523
516
  properties?: {
524
517
  label: string;
@@ -526,6 +519,13 @@ export declare class ApiClient {
526
519
  url?: string | undefined;
527
520
  imageUrl?: string[] | undefined;
528
521
  }[] | null | undefined;
522
+ style?: {
523
+ style: "normal" | "minimal";
524
+ variant?: string | undefined;
525
+ } | null | undefined;
526
+ operation?: string | null | undefined;
527
+ startedAt?: Date | null | undefined;
528
+ completedAt?: Date | null | undefined;
529
529
  outputProperties?: {
530
530
  label: string;
531
531
  text: string;
@@ -533,20 +533,20 @@ export declare class ApiClient {
533
533
  imageUrl?: string[] | undefined;
534
534
  }[] | null | undefined;
535
535
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
536
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
536
537
  parentId?: string | null | undefined;
537
- operation?: string | null | undefined;
538
538
  callbackUrl?: string | null | undefined;
539
539
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
540
540
  forceYield?: boolean | null | undefined;
541
541
  }>;
542
542
  sendEvent(event: SendEvent, options?: SendEventOptions): Promise<{
543
+ id: string;
543
544
  name: string;
544
545
  payload: ((string | number | boolean | {
545
546
  [key: string]: import("@trigger.dev/core").DeserializedJson;
546
547
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
547
548
  [key: string]: import("@trigger.dev/core").DeserializedJson;
548
549
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
549
- id: string;
550
550
  timestamp: Date;
551
551
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
552
552
  deliverAt?: Date | null | undefined;
@@ -554,13 +554,13 @@ export declare class ApiClient {
554
554
  cancelledAt?: Date | null | undefined;
555
555
  }>;
556
556
  sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{
557
+ id: string;
557
558
  name: string;
558
559
  payload: ((string | number | boolean | {
559
560
  [key: string]: import("@trigger.dev/core").DeserializedJson;
560
561
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
561
562
  [key: string]: import("@trigger.dev/core").DeserializedJson;
562
563
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
563
- id: string;
564
564
  timestamp: Date;
565
565
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
566
566
  deliverAt?: Date | null | undefined;
@@ -568,13 +568,13 @@ export declare class ApiClient {
568
568
  cancelledAt?: Date | null | undefined;
569
569
  }[]>;
570
570
  cancelEvent(eventId: string): Promise<{
571
+ id: string;
571
572
  name: string;
572
573
  payload: ((string | number | boolean | {
573
574
  [key: string]: import("@trigger.dev/core").DeserializedJson;
574
575
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
575
576
  [key: string]: import("@trigger.dev/core").DeserializedJson;
576
577
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
577
- id: string;
578
578
  timestamp: Date;
579
579
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
580
580
  deliverAt?: Date | null | undefined;
@@ -603,16 +603,16 @@ export declare class ApiClient {
603
603
  id: string;
604
604
  schedule: {
605
605
  options: {
606
- cron: string;
606
+ seconds: number;
607
607
  };
608
- type: "cron";
608
+ type: "interval";
609
609
  accountId?: string | undefined;
610
610
  metadata?: any;
611
611
  } | {
612
612
  options: {
613
- seconds: number;
613
+ cron: string;
614
614
  };
615
- type: "interval";
615
+ type: "cron";
616
616
  accountId?: string | undefined;
617
617
  metadata?: any;
618
618
  };
@@ -629,24 +629,22 @@ export declare class ApiClient {
629
629
  additionalFields?: Record<string, string> | undefined;
630
630
  } | undefined>;
631
631
  getEvent(eventId: string): Promise<{
632
- name: string;
633
632
  id: string;
633
+ name: string;
634
634
  updatedAt: Date;
635
+ createdAt: Date;
635
636
  runs: {
636
- 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";
637
637
  id: string;
638
+ status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
638
639
  startedAt?: Date | null | undefined;
639
640
  completedAt?: Date | null | undefined;
640
641
  }[];
641
- createdAt: Date;
642
642
  }>;
643
643
  getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{
644
- 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";
645
644
  id: string;
645
+ status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
646
646
  startedAt: Date | null;
647
647
  completedAt: Date | null;
648
- updatedAt: Date | null;
649
- tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
650
648
  statuses: {
651
649
  label: string;
652
650
  key: string;
@@ -658,16 +656,16 @@ export declare class ApiClient {
658
656
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
659
657
  state?: "loading" | "success" | "failure" | undefined;
660
658
  }[];
659
+ updatedAt: Date | null;
660
+ tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
661
661
  output?: any;
662
662
  nextCursor?: string | undefined;
663
663
  }>;
664
664
  cancelRun(runId: string): Promise<{
665
- 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";
666
665
  id: string;
666
+ status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
667
667
  startedAt: Date | null;
668
668
  completedAt: Date | null;
669
- updatedAt: Date | null;
670
- tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
671
669
  statuses: {
672
670
  label: string;
673
671
  key: string;
@@ -679,6 +677,8 @@ export declare class ApiClient {
679
677
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
680
678
  state?: "loading" | "success" | "failure" | undefined;
681
679
  }[];
680
+ updatedAt: Date | null;
681
+ tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
682
682
  output?: any;
683
683
  nextCursor?: string | undefined;
684
684
  }>;
@@ -695,15 +695,15 @@ export declare class ApiClient {
695
695
  state?: "loading" | "success" | "failure" | undefined;
696
696
  }[];
697
697
  run: {
698
- 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";
699
698
  id: string;
699
+ status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
700
700
  output?: any;
701
701
  };
702
702
  }>;
703
703
  getRuns(jobSlug: string, options?: GetRunsOptions): Promise<{
704
704
  runs: {
705
- 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";
706
705
  id: string;
706
+ status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
707
707
  startedAt: Date | null;
708
708
  completedAt: Date | null;
709
709
  updatedAt: Date | null;