@trigger.dev/sdk 0.0.0-prerelease-20250110154019 → 0.0.0-prerelease-20250116162419

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.
@@ -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">>>;
@@ -106,76 +106,76 @@ export declare class ApiClient {
106
106
  attempts: z.ZodNumber;
107
107
  forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
108
108
  }>, "strip", z.ZodTypeAny, {
109
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
109
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
110
110
  name: string;
111
111
  id: string;
112
- noop: boolean;
113
112
  idempotencyKey: string;
114
113
  attempts: number;
114
+ noop: boolean;
115
115
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
116
116
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
117
+ startedAt?: Date | null | undefined;
118
+ error?: string | null | undefined;
119
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
120
+ description?: string | null | undefined;
121
+ completedAt?: Date | null | undefined;
122
+ delayUntil?: Date | null | undefined;
123
+ operation?: string | null | undefined;
117
124
  style?: {
118
125
  style: "normal" | "minimal";
119
126
  variant?: string | undefined;
120
127
  } | null | undefined;
121
128
  icon?: string | null | undefined;
122
- startedAt?: Date | null | undefined;
123
- completedAt?: Date | null | undefined;
124
- delayUntil?: Date | null | undefined;
125
- description?: string | null | undefined;
126
129
  properties?: {
127
- label: string;
128
130
  text: string;
131
+ label: string;
129
132
  url?: string | undefined;
130
133
  imageUrl?: string[] | undefined;
131
134
  }[] | null | undefined;
132
135
  outputProperties?: {
133
- label: string;
134
136
  text: string;
137
+ label: string;
135
138
  url?: string | undefined;
136
139
  imageUrl?: string[] | undefined;
137
140
  }[] | null | undefined;
138
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
139
- error?: string | null | 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
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
146
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
147
147
  name: string;
148
148
  id: string;
149
- noop: boolean;
150
149
  idempotencyKey: string;
151
150
  attempts: number;
151
+ noop: boolean;
152
152
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
153
153
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
154
+ startedAt?: Date | null | undefined;
155
+ error?: string | null | undefined;
156
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
157
+ description?: string | null | undefined;
158
+ completedAt?: Date | null | undefined;
159
+ delayUntil?: Date | null | undefined;
160
+ operation?: string | null | undefined;
154
161
  style?: {
155
162
  style: "normal" | "minimal";
156
163
  variant?: string | undefined;
157
164
  } | null | undefined;
158
165
  icon?: string | null | undefined;
159
- startedAt?: Date | null | undefined;
160
- completedAt?: Date | null | undefined;
161
- delayUntil?: Date | null | undefined;
162
- description?: string | null | undefined;
163
166
  properties?: {
164
- label: string;
165
167
  text: string;
168
+ label: string;
166
169
  url?: string | undefined;
167
170
  imageUrl?: string[] | undefined;
168
171
  }[] | null | undefined;
169
172
  outputProperties?: {
170
- label: string;
171
173
  text: string;
174
+ label: string;
172
175
  url?: string | undefined;
173
176
  imageUrl?: string[] | undefined;
174
177
  }[] | null | undefined;
175
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
176
- error?: string | null | 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,87 +189,87 @@ export declare class ApiClient {
189
189
  output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
190
190
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
191
191
  }, "strip", z.ZodTypeAny, {
192
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
192
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "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: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
199
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "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: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
209
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "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: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
219
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "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;
227
227
  }>>;
228
228
  }, "strip", z.ZodTypeAny, {
229
229
  task: {
230
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
230
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
231
231
  name: string;
232
232
  id: string;
233
- noop: boolean;
234
233
  idempotencyKey: string;
235
234
  attempts: number;
235
+ noop: boolean;
236
236
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
237
237
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
238
+ startedAt?: Date | null | undefined;
239
+ error?: string | null | undefined;
240
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
241
+ description?: string | null | undefined;
242
+ completedAt?: Date | null | undefined;
243
+ delayUntil?: Date | null | undefined;
244
+ operation?: string | null | undefined;
238
245
  style?: {
239
246
  style: "normal" | "minimal";
240
247
  variant?: string | undefined;
241
248
  } | null | undefined;
242
249
  icon?: string | null | undefined;
243
- startedAt?: Date | null | undefined;
244
- completedAt?: Date | null | undefined;
245
- delayUntil?: Date | null | undefined;
246
- description?: string | null | undefined;
247
250
  properties?: {
248
- label: string;
249
251
  text: string;
252
+ label: string;
250
253
  url?: string | undefined;
251
254
  imageUrl?: string[] | undefined;
252
255
  }[] | null | undefined;
253
256
  outputProperties?: {
254
- label: string;
255
257
  text: string;
258
+ label: string;
256
259
  url?: string | undefined;
257
260
  imageUrl?: string[] | undefined;
258
261
  }[] | null | undefined;
259
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
260
- error?: string | null | 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: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
269
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "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
  }[];
@@ -277,50 +277,50 @@ export declare class ApiClient {
277
277
  } | undefined;
278
278
  }, {
279
279
  task: {
280
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
280
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
281
281
  name: string;
282
282
  id: string;
283
- noop: boolean;
284
283
  idempotencyKey: string;
285
284
  attempts: number;
285
+ noop: boolean;
286
286
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
287
287
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
288
+ startedAt?: Date | null | undefined;
289
+ error?: string | null | undefined;
290
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
291
+ description?: string | null | undefined;
292
+ completedAt?: Date | null | undefined;
293
+ delayUntil?: Date | null | undefined;
294
+ operation?: string | null | undefined;
288
295
  style?: {
289
296
  style: "normal" | "minimal";
290
297
  variant?: string | undefined;
291
298
  } | null | undefined;
292
299
  icon?: string | null | undefined;
293
- startedAt?: Date | null | undefined;
294
- completedAt?: Date | null | undefined;
295
- delayUntil?: Date | null | undefined;
296
- description?: string | null | undefined;
297
300
  properties?: {
298
- label: string;
299
301
  text: string;
302
+ label: string;
300
303
  url?: string | undefined;
301
304
  imageUrl?: string[] | undefined;
302
305
  }[] | null | undefined;
303
306
  outputProperties?: {
304
- label: string;
305
307
  text: string;
308
+ label: string;
306
309
  url?: string | undefined;
307
310
  imageUrl?: string[] | undefined;
308
311
  }[] | null | undefined;
309
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
310
- error?: string | null | 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: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
319
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "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">>>;
@@ -391,160 +391,160 @@ export declare class ApiClient {
391
391
  attempts: z.ZodNumber;
392
392
  forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
393
393
  }>, "strip", z.ZodTypeAny, {
394
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
394
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
395
395
  name: string;
396
396
  id: string;
397
- noop: boolean;
398
397
  idempotencyKey: string;
399
398
  attempts: number;
399
+ noop: boolean;
400
400
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
401
401
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
402
+ startedAt?: Date | null | undefined;
403
+ error?: string | null | undefined;
404
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
405
+ description?: string | null | undefined;
406
+ completedAt?: Date | null | undefined;
407
+ delayUntil?: Date | null | undefined;
408
+ operation?: string | null | undefined;
402
409
  style?: {
403
410
  style: "normal" | "minimal";
404
411
  variant?: string | undefined;
405
412
  } | null | undefined;
406
413
  icon?: string | null | undefined;
407
- startedAt?: Date | null | undefined;
408
- completedAt?: Date | null | undefined;
409
- delayUntil?: Date | null | undefined;
410
- description?: string | null | undefined;
411
414
  properties?: {
412
- label: string;
413
415
  text: string;
416
+ label: string;
414
417
  url?: string | undefined;
415
418
  imageUrl?: string[] | undefined;
416
419
  }[] | null | undefined;
417
420
  outputProperties?: {
418
- label: string;
419
421
  text: string;
422
+ label: string;
420
423
  url?: string | undefined;
421
424
  imageUrl?: string[] | undefined;
422
425
  }[] | null | undefined;
423
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
424
- error?: string | null | 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
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
431
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
432
432
  name: string;
433
433
  id: string;
434
- noop: boolean;
435
434
  idempotencyKey: string;
436
435
  attempts: number;
436
+ noop: boolean;
437
437
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
438
438
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
439
+ startedAt?: Date | null | undefined;
440
+ error?: string | null | undefined;
441
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
442
+ description?: string | null | undefined;
443
+ completedAt?: Date | null | undefined;
444
+ delayUntil?: Date | null | undefined;
445
+ operation?: string | null | undefined;
439
446
  style?: {
440
447
  style: "normal" | "minimal";
441
448
  variant?: string | undefined;
442
449
  } | null | undefined;
443
450
  icon?: string | null | undefined;
444
- startedAt?: Date | null | undefined;
445
- completedAt?: Date | null | undefined;
446
- delayUntil?: Date | null | undefined;
447
- description?: string | null | undefined;
448
451
  properties?: {
449
- label: string;
450
452
  text: string;
453
+ label: string;
451
454
  url?: string | undefined;
452
455
  imageUrl?: string[] | undefined;
453
456
  }[] | null | undefined;
454
457
  outputProperties?: {
455
- label: string;
456
458
  text: string;
459
+ label: string;
457
460
  url?: string | undefined;
458
461
  imageUrl?: string[] | undefined;
459
462
  }[] | null | undefined;
460
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
461
- error?: string | null | 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
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
469
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
470
470
  name: string;
471
471
  id: string;
472
- noop: boolean;
473
472
  idempotencyKey: string;
474
473
  attempts: number;
474
+ noop: boolean;
475
475
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
476
476
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
477
+ startedAt?: Date | null | undefined;
478
+ error?: string | null | undefined;
479
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
480
+ description?: string | null | undefined;
481
+ completedAt?: Date | null | undefined;
482
+ delayUntil?: Date | null | undefined;
483
+ operation?: string | null | undefined;
477
484
  style?: {
478
485
  style: "normal" | "minimal";
479
486
  variant?: string | undefined;
480
487
  } | null | undefined;
481
488
  icon?: string | null | undefined;
482
- startedAt?: Date | null | undefined;
483
- completedAt?: Date | null | undefined;
484
- delayUntil?: Date | null | undefined;
485
- description?: string | null | undefined;
486
489
  properties?: {
487
- label: string;
488
490
  text: string;
491
+ label: string;
489
492
  url?: string | undefined;
490
493
  imageUrl?: string[] | undefined;
491
494
  }[] | null | undefined;
492
495
  outputProperties?: {
493
- label: string;
494
496
  text: string;
497
+ label: string;
495
498
  url?: string | undefined;
496
499
  imageUrl?: string[] | undefined;
497
500
  }[] | null | undefined;
498
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
499
- error?: string | null | 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
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
507
+ status: "PENDING" | "CANCELED" | "COMPLETED" | "WAITING" | "RUNNING" | "ERRORED";
508
508
  name: string;
509
509
  id: string;
510
- noop: boolean;
511
510
  idempotencyKey: string;
512
511
  attempts: number;
512
+ noop: boolean;
513
513
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
514
514
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
515
+ startedAt?: Date | null | undefined;
516
+ error?: string | null | undefined;
517
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
518
+ description?: string | null | undefined;
519
+ completedAt?: Date | null | undefined;
520
+ delayUntil?: Date | null | undefined;
521
+ operation?: string | null | undefined;
515
522
  style?: {
516
523
  style: "normal" | "minimal";
517
524
  variant?: string | undefined;
518
525
  } | null | undefined;
519
526
  icon?: string | null | undefined;
520
- startedAt?: Date | null | undefined;
521
- completedAt?: Date | null | undefined;
522
- delayUntil?: Date | null | undefined;
523
- description?: string | null | undefined;
524
527
  properties?: {
525
- label: string;
526
528
  text: string;
529
+ label: string;
527
530
  url?: string | undefined;
528
531
  imageUrl?: string[] | undefined;
529
532
  }[] | null | undefined;
530
533
  outputProperties?: {
531
- label: string;
532
534
  text: string;
535
+ label: string;
533
536
  url?: string | undefined;
534
537
  imageUrl?: string[] | undefined;
535
538
  }[] | null | undefined;
536
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
537
- error?: string | null | 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
- payload: import("@trigger.dev/core").DeserializedJson;
546
545
  name: string;
547
546
  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;
556
555
  name: string;
557
556
  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;
566
565
  name: string;
567
566
  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
- label: string;
580
579
  key: string;
580
+ label: string;
581
581
  history: {
582
- label?: string | undefined;
583
- state?: "loading" | "success" | "failure" | undefined;
584
582
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
583
+ label?: string | undefined;
584
+ state?: "success" | "loading" | "failure" | undefined;
585
585
  }[];
586
- state?: "loading" | "success" | "failure" | undefined;
587
586
  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";
595
596
  options: {
596
597
  cron: string;
597
598
  };
598
- type: "cron";
599
599
  metadata?: any;
600
600
  accountId?: string | undefined;
601
601
  } | {
602
+ type: "interval";
602
603
  options: {
603
604
  seconds: number;
604
605
  };
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: "oauth2" | "apiKey";
616
+ type: "apiKey" | "oauth2";
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
- updatedAt: Date;
624
+ createdAt: Date;
625
625
  runs: {
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";
626
+ 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";
627
627
  id: string;
628
628
  startedAt?: Date | null | undefined;
629
629
  completedAt?: Date | null | undefined;
630
630
  }[];
631
- createdAt: Date;
631
+ updatedAt: Date;
632
632
  }>;
633
633
  getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{
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";
634
+ 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";
635
635
  id: string;
636
636
  startedAt: Date | null;
637
- completedAt: Date | null;
638
- updatedAt: Date | null;
639
637
  tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
638
+ updatedAt: Date | null;
639
+ completedAt: Date | null;
640
640
  statuses: {
641
- label: string;
642
641
  key: string;
642
+ label: string;
643
643
  history: {
644
- label?: string | undefined;
645
- state?: "loading" | "success" | "failure" | undefined;
646
644
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
645
+ label?: string | undefined;
646
+ state?: "success" | "loading" | "failure" | undefined;
647
647
  }[];
648
- state?: "loading" | "success" | "failure" | undefined;
649
648
  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" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
655
+ 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";
656
656
  id: string;
657
657
  startedAt: Date | null;
658
- completedAt: Date | null;
659
- updatedAt: Date | null;
660
658
  tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
659
+ updatedAt: Date | null;
660
+ completedAt: Date | null;
661
661
  statuses: {
662
- label: string;
663
662
  key: string;
663
+ label: string;
664
664
  history: {
665
- label?: string | undefined;
666
- state?: "loading" | "success" | "failure" | undefined;
667
665
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
666
+ label?: string | undefined;
667
+ state?: "success" | "loading" | "failure" | undefined;
668
668
  }[];
669
- state?: "loading" | "success" | "failure" | undefined;
670
669
  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
+ };
676
681
  statuses: {
677
- label: string;
678
682
  key: string;
683
+ label: string;
679
684
  history: {
680
- label?: string | undefined;
681
- state?: "loading" | "success" | "failure" | undefined;
682
685
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
686
+ label?: string | undefined;
687
+ state?: "success" | "loading" | "failure" | undefined;
683
688
  }[];
684
- state?: "loading" | "success" | "failure" | undefined;
685
689
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
690
+ state?: "success" | "loading" | "failure" | 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: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
695
+ 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";
696
696
  id: string;
697
697
  startedAt: Date | null;
698
- completedAt: Date | null;
699
698
  updatedAt: Date | null;
699
+ completedAt: Date | null;
700
700
  }[];
701
701
  nextCursor?: string | undefined;
702
702
  }>;