@trigger.dev/core 0.0.0-prerelease-20250212002625 → 0.0.0-prerelease-20250213143202

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.
@@ -58,22 +58,22 @@ export declare class ApiClient {
58
58
  presignedUrl: string;
59
59
  }>;
60
60
  retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
61
- id: string;
62
61
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
63
- tags: string[];
64
- isTest: boolean;
62
+ id: string;
65
63
  createdAt: Date;
64
+ isTest: boolean;
65
+ tags: string[];
66
66
  durationMs: number;
67
67
  costInCents: number;
68
68
  baseCostInCents: number;
69
69
  taskIdentifier: string;
70
70
  relatedRuns: {
71
71
  root?: {
72
- id: string;
73
72
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
74
- tags: string[];
75
- isTest: boolean;
73
+ id: string;
76
74
  createdAt: Date;
75
+ isTest: boolean;
76
+ tags: string[];
77
77
  durationMs: number;
78
78
  costInCents: number;
79
79
  baseCostInCents: number;
@@ -98,11 +98,11 @@ export declare class ApiClient {
98
98
  expiredAt?: Date | undefined;
99
99
  } | undefined;
100
100
  parent?: {
101
- id: string;
102
101
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
103
- tags: string[];
104
- isTest: boolean;
102
+ id: string;
105
103
  createdAt: Date;
104
+ isTest: boolean;
105
+ tags: string[];
106
106
  durationMs: number;
107
107
  costInCents: number;
108
108
  baseCostInCents: number;
@@ -127,11 +127,11 @@ export declare class ApiClient {
127
127
  expiredAt?: Date | undefined;
128
128
  } | undefined;
129
129
  children?: {
130
- id: string;
131
130
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
132
- tags: string[];
133
- isTest: boolean;
131
+ id: string;
134
132
  createdAt: Date;
133
+ isTest: boolean;
134
+ tags: string[];
135
135
  durationMs: number;
136
136
  costInCents: number;
137
137
  baseCostInCents: number;
@@ -166,19 +166,31 @@ export declare class ApiClient {
166
166
  isCancelled: boolean;
167
167
  updatedAt: Date;
168
168
  attempts: ({
169
- id: string;
170
169
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
170
+ id: string;
171
171
  createdAt: Date;
172
172
  updatedAt: Date;
173
- startedAt?: Date | undefined;
174
173
  error?: {
175
174
  message: string;
176
- stackTrace?: string | undefined;
177
175
  name?: string | undefined;
176
+ stackTrace?: string | undefined;
178
177
  } | undefined;
178
+ startedAt?: Date | undefined;
179
179
  completedAt?: Date | undefined;
180
180
  } | undefined)[];
181
181
  attemptCount: number;
182
+ version?: string | undefined;
183
+ error?: {
184
+ message: string;
185
+ name?: string | undefined;
186
+ stackTrace?: string | undefined;
187
+ } | undefined;
188
+ startedAt?: Date | undefined;
189
+ idempotencyKey?: string | undefined;
190
+ output?: any;
191
+ payload?: any;
192
+ metadata?: Record<string, any> | undefined;
193
+ ttl?: string | undefined;
182
194
  schedule?: {
183
195
  id: string;
184
196
  generator: {
@@ -189,20 +201,8 @@ export declare class ApiClient {
189
201
  externalId?: string | undefined;
190
202
  deduplicationKey?: string | undefined;
191
203
  } | undefined;
192
- version?: string | undefined;
193
- output?: any;
194
- startedAt?: Date | undefined;
195
- payload?: any;
196
- idempotencyKey?: string | undefined;
197
- metadata?: Record<string, any> | undefined;
198
- ttl?: string | undefined;
199
204
  payloadPresignedUrl?: string | undefined;
200
205
  outputPresignedUrl?: string | undefined;
201
- error?: {
202
- message: string;
203
- stackTrace?: string | undefined;
204
- name?: string | undefined;
205
- } | undefined;
206
206
  batchId?: string | undefined;
207
207
  finishedAt?: Date | undefined;
208
208
  delayedUntil?: Date | undefined;
@@ -217,22 +217,22 @@ export declare class ApiClient {
217
217
  id: string;
218
218
  }>;
219
219
  rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
220
- id: string;
221
220
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
222
- tags: string[];
223
- isTest: boolean;
221
+ id: string;
224
222
  createdAt: Date;
223
+ isTest: boolean;
224
+ tags: string[];
225
225
  durationMs: number;
226
226
  costInCents: number;
227
227
  baseCostInCents: number;
228
228
  taskIdentifier: string;
229
229
  relatedRuns: {
230
230
  root?: {
231
- id: string;
232
231
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
233
- tags: string[];
234
- isTest: boolean;
232
+ id: string;
235
233
  createdAt: Date;
234
+ isTest: boolean;
235
+ tags: string[];
236
236
  durationMs: number;
237
237
  costInCents: number;
238
238
  baseCostInCents: number;
@@ -257,11 +257,11 @@ export declare class ApiClient {
257
257
  expiredAt?: Date | undefined;
258
258
  } | undefined;
259
259
  parent?: {
260
- id: string;
261
260
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
262
- tags: string[];
263
- isTest: boolean;
261
+ id: string;
264
262
  createdAt: Date;
263
+ isTest: boolean;
264
+ tags: string[];
265
265
  durationMs: number;
266
266
  costInCents: number;
267
267
  baseCostInCents: number;
@@ -286,11 +286,11 @@ export declare class ApiClient {
286
286
  expiredAt?: Date | undefined;
287
287
  } | undefined;
288
288
  children?: {
289
- id: string;
290
289
  status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
291
- tags: string[];
292
- isTest: boolean;
290
+ id: string;
293
291
  createdAt: Date;
292
+ isTest: boolean;
293
+ tags: string[];
294
294
  durationMs: number;
295
295
  costInCents: number;
296
296
  baseCostInCents: number;
@@ -325,19 +325,31 @@ export declare class ApiClient {
325
325
  isCancelled: boolean;
326
326
  updatedAt: Date;
327
327
  attempts: ({
328
- id: string;
329
328
  status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
329
+ id: string;
330
330
  createdAt: Date;
331
331
  updatedAt: Date;
332
- startedAt?: Date | undefined;
333
332
  error?: {
334
333
  message: string;
335
- stackTrace?: string | undefined;
336
334
  name?: string | undefined;
335
+ stackTrace?: string | undefined;
337
336
  } | undefined;
337
+ startedAt?: Date | undefined;
338
338
  completedAt?: Date | undefined;
339
339
  } | undefined)[];
340
340
  attemptCount: number;
341
+ version?: string | undefined;
342
+ error?: {
343
+ message: string;
344
+ name?: string | undefined;
345
+ stackTrace?: string | undefined;
346
+ } | undefined;
347
+ startedAt?: Date | undefined;
348
+ idempotencyKey?: string | undefined;
349
+ output?: any;
350
+ payload?: any;
351
+ metadata?: Record<string, any> | undefined;
352
+ ttl?: string | undefined;
341
353
  schedule?: {
342
354
  id: string;
343
355
  generator: {
@@ -348,20 +360,8 @@ export declare class ApiClient {
348
360
  externalId?: string | undefined;
349
361
  deduplicationKey?: string | undefined;
350
362
  } | undefined;
351
- version?: string | undefined;
352
- output?: any;
353
- startedAt?: Date | undefined;
354
- payload?: any;
355
- idempotencyKey?: string | undefined;
356
- metadata?: Record<string, any> | undefined;
357
- ttl?: string | undefined;
358
363
  payloadPresignedUrl?: string | undefined;
359
364
  outputPresignedUrl?: string | undefined;
360
- error?: {
361
- message: string;
362
- stackTrace?: string | undefined;
363
- name?: string | undefined;
364
- } | undefined;
365
365
  batchId?: string | undefined;
366
366
  finishedAt?: Date | undefined;
367
367
  delayedUntil?: Date | undefined;
@@ -371,10 +371,10 @@ export declare class ApiClient {
371
371
  message: string;
372
372
  }>;
373
373
  createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
374
- id: string;
375
374
  type: "DECLARATIVE" | "IMPERATIVE";
376
- timezone: string;
375
+ id: string;
377
376
  task: string;
377
+ timezone: string;
378
378
  generator: {
379
379
  type: "CRON";
380
380
  description: string;
@@ -382,8 +382,8 @@ export declare class ApiClient {
382
382
  };
383
383
  active: boolean;
384
384
  environments: {
385
- id: string;
386
385
  type: string;
386
+ id: string;
387
387
  userName?: string | null | undefined;
388
388
  }[];
389
389
  externalId?: string | null | undefined;
@@ -417,19 +417,19 @@ export declare class ApiClient {
417
417
  type: z.ZodString;
418
418
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
419
419
  }, "strip", z.ZodTypeAny, {
420
- id: string;
421
420
  type: string;
421
+ id: string;
422
422
  userName?: string | null | undefined;
423
423
  }, {
424
- id: string;
425
424
  type: string;
425
+ id: string;
426
426
  userName?: string | null | undefined;
427
427
  }>, "many">;
428
428
  }, "strip", z.ZodTypeAny, {
429
- id: string;
430
429
  type: "DECLARATIVE" | "IMPERATIVE";
431
- timezone: string;
430
+ id: string;
432
431
  task: string;
432
+ timezone: string;
433
433
  generator: {
434
434
  type: "CRON";
435
435
  description: string;
@@ -437,18 +437,18 @@ export declare class ApiClient {
437
437
  };
438
438
  active: boolean;
439
439
  environments: {
440
- id: string;
441
440
  type: string;
441
+ id: string;
442
442
  userName?: string | null | undefined;
443
443
  }[];
444
444
  externalId?: string | null | undefined;
445
445
  deduplicationKey?: string | null | undefined;
446
446
  nextRun?: Date | null | undefined;
447
447
  }, {
448
- id: string;
449
448
  type: "DECLARATIVE" | "IMPERATIVE";
450
- timezone: string;
449
+ id: string;
451
450
  task: string;
451
+ timezone: string;
452
452
  generator: {
453
453
  type: "CRON";
454
454
  description: string;
@@ -456,8 +456,8 @@ export declare class ApiClient {
456
456
  };
457
457
  active: boolean;
458
458
  environments: {
459
- id: string;
460
459
  type: string;
460
+ id: string;
461
461
  userName?: string | null | undefined;
462
462
  }[];
463
463
  externalId?: string | null | undefined;
@@ -465,10 +465,10 @@ export declare class ApiClient {
465
465
  nextRun?: Date | null | undefined;
466
466
  }>>;
467
467
  retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
468
- id: string;
469
468
  type: "DECLARATIVE" | "IMPERATIVE";
470
- timezone: string;
469
+ id: string;
471
470
  task: string;
471
+ timezone: string;
472
472
  generator: {
473
473
  type: "CRON";
474
474
  description: string;
@@ -476,8 +476,8 @@ export declare class ApiClient {
476
476
  };
477
477
  active: boolean;
478
478
  environments: {
479
- id: string;
480
479
  type: string;
480
+ id: string;
481
481
  userName?: string | null | undefined;
482
482
  }[];
483
483
  externalId?: string | null | undefined;
@@ -485,10 +485,10 @@ export declare class ApiClient {
485
485
  nextRun?: Date | null | undefined;
486
486
  }>;
487
487
  updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
488
- id: string;
489
488
  type: "DECLARATIVE" | "IMPERATIVE";
490
- timezone: string;
489
+ id: string;
491
490
  task: string;
491
+ timezone: string;
492
492
  generator: {
493
493
  type: "CRON";
494
494
  description: string;
@@ -496,8 +496,8 @@ export declare class ApiClient {
496
496
  };
497
497
  active: boolean;
498
498
  environments: {
499
- id: string;
500
499
  type: string;
500
+ id: string;
501
501
  userName?: string | null | undefined;
502
502
  }[];
503
503
  externalId?: string | null | undefined;
@@ -505,10 +505,10 @@ export declare class ApiClient {
505
505
  nextRun?: Date | null | undefined;
506
506
  }>;
507
507
  deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
508
- id: string;
509
508
  type: "DECLARATIVE" | "IMPERATIVE";
510
- timezone: string;
509
+ id: string;
511
510
  task: string;
511
+ timezone: string;
512
512
  generator: {
513
513
  type: "CRON";
514
514
  description: string;
@@ -516,8 +516,8 @@ export declare class ApiClient {
516
516
  };
517
517
  active: boolean;
518
518
  environments: {
519
- id: string;
520
519
  type: string;
520
+ id: string;
521
521
  userName?: string | null | undefined;
522
522
  }[];
523
523
  externalId?: string | null | undefined;
@@ -525,10 +525,10 @@ export declare class ApiClient {
525
525
  nextRun?: Date | null | undefined;
526
526
  }>;
527
527
  activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
528
- id: string;
529
528
  type: "DECLARATIVE" | "IMPERATIVE";
530
- timezone: string;
529
+ id: string;
531
530
  task: string;
531
+ timezone: string;
532
532
  generator: {
533
533
  type: "CRON";
534
534
  description: string;
@@ -536,8 +536,8 @@ export declare class ApiClient {
536
536
  };
537
537
  active: boolean;
538
538
  environments: {
539
- id: string;
540
539
  type: string;
540
+ id: string;
541
541
  userName?: string | null | undefined;
542
542
  }[];
543
543
  externalId?: string | null | undefined;
@@ -548,8 +548,8 @@ export declare class ApiClient {
548
548
  id: string;
549
549
  }>;
550
550
  listEnvVars(projectRef: string, slug: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
551
- value: string;
552
551
  name: string;
552
+ value: string;
553
553
  }[]>;
554
554
  importEnvVars(projectRef: string, slug: string, body: ImportEnvironmentVariablesParams, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
555
555
  success: boolean;
@@ -591,8 +591,8 @@ export declare class ApiClient {
591
591
  }): Promise<AsyncIterableStream<T>>;
592
592
  generateJWTClaims(requestOptions?: ZodFetchOptions): Promise<Record<string, any>>;
593
593
  retrieveBatch(batchId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
594
- id: string;
595
594
  status: "COMPLETED" | "PENDING";
595
+ id: string;
596
596
  createdAt: Date;
597
597
  updatedAt: Date;
598
598
  runCount: number;