@trigger.dev/sdk 0.0.0-prerelease-20250204161430 → 0.0.0-prerelease-20250211141853

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,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" | "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;
117
123
  style?: {
118
124
  style: "normal" | "minimal";
119
125
  variant?: string | undefined;
120
126
  } | null | undefined;
121
127
  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
128
  properties?: {
127
- label: string;
128
129
  text: string;
130
+ label: string;
129
131
  url?: string | undefined;
130
132
  imageUrl?: string[] | undefined;
131
133
  }[] | null | undefined;
132
134
  outputProperties?: {
133
- label: string;
134
135
  text: string;
136
+ label: string;
135
137
  url?: string | undefined;
136
138
  imageUrl?: string[] | undefined;
137
139
  }[] | null | undefined;
138
- 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" | "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;
154
160
  style?: {
155
161
  style: "normal" | "minimal";
156
162
  variant?: string | undefined;
157
163
  } | null | undefined;
158
164
  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
165
  properties?: {
164
- label: string;
165
166
  text: string;
167
+ label: string;
166
168
  url?: string | undefined;
167
169
  imageUrl?: string[] | undefined;
168
170
  }[] | null | undefined;
169
171
  outputProperties?: {
170
- label: string;
171
172
  text: string;
173
+ label: string;
172
174
  url?: string | undefined;
173
175
  imageUrl?: string[] | undefined;
174
176
  }[] | null | undefined;
175
- 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" | "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;
238
244
  style?: {
239
245
  style: "normal" | "minimal";
240
246
  variant?: string | undefined;
241
247
  } | null | undefined;
242
248
  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
249
  properties?: {
248
- label: string;
249
250
  text: string;
251
+ label: string;
250
252
  url?: string | undefined;
251
253
  imageUrl?: string[] | undefined;
252
254
  }[] | null | undefined;
253
255
  outputProperties?: {
254
- label: string;
255
256
  text: string;
257
+ label: string;
256
258
  url?: string | undefined;
257
259
  imageUrl?: string[] | undefined;
258
260
  }[] | null | undefined;
259
- 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" | "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,37 +277,37 @@ 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;
288
294
  style?: {
289
295
  style: "normal" | "minimal";
290
296
  variant?: string | undefined;
291
297
  } | null | undefined;
292
298
  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
299
  properties?: {
298
- label: string;
299
300
  text: string;
301
+ label: string;
300
302
  url?: string | undefined;
301
303
  imageUrl?: string[] | undefined;
302
304
  }[] | null | undefined;
303
305
  outputProperties?: {
304
- label: string;
305
306
  text: string;
307
+ label: string;
306
308
  url?: string | undefined;
307
309
  imageUrl?: string[] | undefined;
308
310
  }[] | null | undefined;
309
- 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" | "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,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" | "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;
402
408
  style?: {
403
409
  style: "normal" | "minimal";
404
410
  variant?: string | undefined;
405
411
  } | null | undefined;
406
412
  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
413
  properties?: {
412
- label: string;
413
414
  text: string;
415
+ label: string;
414
416
  url?: string | undefined;
415
417
  imageUrl?: string[] | undefined;
416
418
  }[] | null | undefined;
417
419
  outputProperties?: {
418
- label: string;
419
420
  text: string;
421
+ label: string;
420
422
  url?: string | undefined;
421
423
  imageUrl?: string[] | undefined;
422
424
  }[] | null | undefined;
423
- 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" | "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;
439
445
  style?: {
440
446
  style: "normal" | "minimal";
441
447
  variant?: string | undefined;
442
448
  } | null | undefined;
443
449
  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
450
  properties?: {
449
- label: string;
450
451
  text: string;
452
+ label: string;
451
453
  url?: string | undefined;
452
454
  imageUrl?: string[] | undefined;
453
455
  }[] | null | undefined;
454
456
  outputProperties?: {
455
- label: string;
456
457
  text: string;
458
+ label: string;
457
459
  url?: string | undefined;
458
460
  imageUrl?: string[] | undefined;
459
461
  }[] | null | undefined;
460
- 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" | "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;
477
483
  style?: {
478
484
  style: "normal" | "minimal";
479
485
  variant?: string | undefined;
480
486
  } | null | undefined;
481
487
  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
488
  properties?: {
487
- label: string;
488
489
  text: string;
490
+ label: string;
489
491
  url?: string | undefined;
490
492
  imageUrl?: string[] | undefined;
491
493
  }[] | null | undefined;
492
494
  outputProperties?: {
493
- label: string;
494
495
  text: string;
496
+ label: string;
495
497
  url?: string | undefined;
496
498
  imageUrl?: string[] | undefined;
497
499
  }[] | null | undefined;
498
- 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" | "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;
515
521
  style?: {
516
522
  style: "normal" | "minimal";
517
523
  variant?: string | undefined;
518
524
  } | null | undefined;
519
525
  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
526
  properties?: {
525
- label: string;
526
527
  text: string;
528
+ label: string;
527
529
  url?: string | undefined;
528
530
  imageUrl?: string[] | undefined;
529
531
  }[] | null | undefined;
530
532
  outputProperties?: {
531
- label: string;
532
533
  text: string;
534
+ label: string;
533
535
  url?: string | undefined;
534
536
  imageUrl?: string[] | undefined;
535
537
  }[] | null | undefined;
536
- 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;
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
  }>;