@trigger.dev/sdk 0.0.0-prerelease-20240918205213 → 0.0.0-prerelease-20240920102011

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.
@@ -32,6 +32,104 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
32
32
  id: string;
33
33
  createdAt: Date;
34
34
  tags: string[];
35
+ taskIdentifier: string;
36
+ isQueued: boolean;
37
+ isExecuting: boolean;
38
+ isCompleted: boolean;
39
+ isSuccess: boolean;
40
+ isFailed: boolean;
41
+ isCancelled: boolean;
42
+ isTest: boolean;
43
+ updatedAt: Date;
44
+ costInCents: number;
45
+ baseCostInCents: number;
46
+ durationMs: number;
47
+ relatedRuns: {
48
+ root?: {
49
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
50
+ id: string;
51
+ createdAt: Date;
52
+ tags: string[];
53
+ depth: number;
54
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
55
+ taskIdentifier: string;
56
+ isQueued: boolean;
57
+ isExecuting: boolean;
58
+ isCompleted: boolean;
59
+ isSuccess: boolean;
60
+ isFailed: boolean;
61
+ isCancelled: boolean;
62
+ isTest: boolean;
63
+ updatedAt: Date;
64
+ costInCents: number;
65
+ baseCostInCents: number;
66
+ durationMs: number;
67
+ batchId?: string | undefined;
68
+ idempotencyKey?: string | undefined;
69
+ version?: string | undefined;
70
+ startedAt?: Date | undefined;
71
+ finishedAt?: Date | undefined;
72
+ delayedUntil?: Date | undefined;
73
+ ttl?: string | undefined;
74
+ expiredAt?: Date | undefined;
75
+ } | undefined;
76
+ parent?: {
77
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
78
+ id: string;
79
+ createdAt: Date;
80
+ tags: string[];
81
+ depth: number;
82
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
83
+ taskIdentifier: string;
84
+ isQueued: boolean;
85
+ isExecuting: boolean;
86
+ isCompleted: boolean;
87
+ isSuccess: boolean;
88
+ isFailed: boolean;
89
+ isCancelled: boolean;
90
+ isTest: boolean;
91
+ updatedAt: Date;
92
+ costInCents: number;
93
+ baseCostInCents: number;
94
+ durationMs: number;
95
+ batchId?: string | undefined;
96
+ idempotencyKey?: string | undefined;
97
+ version?: string | undefined;
98
+ startedAt?: Date | undefined;
99
+ finishedAt?: Date | undefined;
100
+ delayedUntil?: Date | undefined;
101
+ ttl?: string | undefined;
102
+ expiredAt?: Date | undefined;
103
+ } | undefined;
104
+ children?: {
105
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
106
+ id: string;
107
+ createdAt: Date;
108
+ tags: string[];
109
+ depth: number;
110
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
111
+ taskIdentifier: string;
112
+ isQueued: boolean;
113
+ isExecuting: boolean;
114
+ isCompleted: boolean;
115
+ isSuccess: boolean;
116
+ isFailed: boolean;
117
+ isCancelled: boolean;
118
+ isTest: boolean;
119
+ updatedAt: Date;
120
+ costInCents: number;
121
+ baseCostInCents: number;
122
+ durationMs: number;
123
+ batchId?: string | undefined;
124
+ idempotencyKey?: string | undefined;
125
+ version?: string | undefined;
126
+ startedAt?: Date | undefined;
127
+ finishedAt?: Date | undefined;
128
+ delayedUntil?: Date | undefined;
129
+ ttl?: string | undefined;
130
+ expiredAt?: Date | undefined;
131
+ }[] | undefined;
132
+ };
35
133
  attempts: ({
36
134
  status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
37
135
  id: string;
@@ -45,18 +143,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
45
143
  stackTrace?: string | undefined;
46
144
  } | undefined;
47
145
  } | undefined)[];
48
- updatedAt: Date;
49
- taskIdentifier: string;
50
- isQueued: boolean;
51
- isExecuting: boolean;
52
- isCompleted: boolean;
53
- isSuccess: boolean;
54
- isFailed: boolean;
55
- isCancelled: boolean;
56
- isTest: boolean;
57
- costInCents: number;
58
- baseCostInCents: number;
59
- durationMs: number;
60
146
  payload?: any;
61
147
  payloadPresignedUrl?: string | undefined;
62
148
  output?: any;
@@ -85,6 +171,104 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
85
171
  id: string;
86
172
  createdAt: Date;
87
173
  tags: string[];
174
+ taskIdentifier: string;
175
+ isQueued: boolean;
176
+ isExecuting: boolean;
177
+ isCompleted: boolean;
178
+ isSuccess: boolean;
179
+ isFailed: boolean;
180
+ isCancelled: boolean;
181
+ isTest: boolean;
182
+ updatedAt: Date;
183
+ costInCents: number;
184
+ baseCostInCents: number;
185
+ durationMs: number;
186
+ relatedRuns: {
187
+ root?: {
188
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
189
+ id: string;
190
+ createdAt: Date;
191
+ tags: string[];
192
+ depth: number;
193
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
194
+ taskIdentifier: string;
195
+ isQueued: boolean;
196
+ isExecuting: boolean;
197
+ isCompleted: boolean;
198
+ isSuccess: boolean;
199
+ isFailed: boolean;
200
+ isCancelled: boolean;
201
+ isTest: boolean;
202
+ updatedAt: Date;
203
+ costInCents: number;
204
+ baseCostInCents: number;
205
+ durationMs: number;
206
+ batchId?: string | undefined;
207
+ idempotencyKey?: string | undefined;
208
+ version?: string | undefined;
209
+ startedAt?: Date | undefined;
210
+ finishedAt?: Date | undefined;
211
+ delayedUntil?: Date | undefined;
212
+ ttl?: string | undefined;
213
+ expiredAt?: Date | undefined;
214
+ } | undefined;
215
+ parent?: {
216
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
217
+ id: string;
218
+ createdAt: Date;
219
+ tags: string[];
220
+ depth: number;
221
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
222
+ taskIdentifier: string;
223
+ isQueued: boolean;
224
+ isExecuting: boolean;
225
+ isCompleted: boolean;
226
+ isSuccess: boolean;
227
+ isFailed: boolean;
228
+ isCancelled: boolean;
229
+ isTest: boolean;
230
+ updatedAt: Date;
231
+ costInCents: number;
232
+ baseCostInCents: number;
233
+ durationMs: number;
234
+ batchId?: string | undefined;
235
+ idempotencyKey?: string | undefined;
236
+ version?: string | undefined;
237
+ startedAt?: Date | undefined;
238
+ finishedAt?: Date | undefined;
239
+ delayedUntil?: Date | undefined;
240
+ ttl?: string | undefined;
241
+ expiredAt?: Date | undefined;
242
+ } | undefined;
243
+ children?: {
244
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
245
+ id: string;
246
+ createdAt: Date;
247
+ tags: string[];
248
+ depth: number;
249
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
250
+ taskIdentifier: string;
251
+ isQueued: boolean;
252
+ isExecuting: boolean;
253
+ isCompleted: boolean;
254
+ isSuccess: boolean;
255
+ isFailed: boolean;
256
+ isCancelled: boolean;
257
+ isTest: boolean;
258
+ updatedAt: Date;
259
+ costInCents: number;
260
+ baseCostInCents: number;
261
+ durationMs: number;
262
+ batchId?: string | undefined;
263
+ idempotencyKey?: string | undefined;
264
+ version?: string | undefined;
265
+ startedAt?: Date | undefined;
266
+ finishedAt?: Date | undefined;
267
+ delayedUntil?: Date | undefined;
268
+ ttl?: string | undefined;
269
+ expiredAt?: Date | undefined;
270
+ }[] | undefined;
271
+ };
88
272
  attempts: ({
89
273
  status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
90
274
  id: string;
@@ -98,18 +282,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
98
282
  stackTrace?: string | undefined;
99
283
  } | undefined;
100
284
  } | undefined)[];
101
- updatedAt: Date;
102
- taskIdentifier: string;
103
- isQueued: boolean;
104
- isExecuting: boolean;
105
- isCompleted: boolean;
106
- isSuccess: boolean;
107
- isFailed: boolean;
108
- isCancelled: boolean;
109
- isTest: boolean;
110
- costInCents: number;
111
- baseCostInCents: number;
112
- durationMs: number;
113
285
  payload?: any;
114
286
  payloadPresignedUrl?: string | undefined;
115
287
  output?: any;
@@ -138,6 +310,104 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
138
310
  id: string;
139
311
  createdAt: Date;
140
312
  tags: string[];
313
+ taskIdentifier: string;
314
+ isQueued: boolean;
315
+ isExecuting: boolean;
316
+ isCompleted: boolean;
317
+ isSuccess: boolean;
318
+ isFailed: boolean;
319
+ isCancelled: boolean;
320
+ isTest: boolean;
321
+ updatedAt: Date;
322
+ costInCents: number;
323
+ baseCostInCents: number;
324
+ durationMs: number;
325
+ relatedRuns: {
326
+ root?: {
327
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
328
+ id: string;
329
+ createdAt: Date;
330
+ tags: string[];
331
+ depth: number;
332
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
333
+ taskIdentifier: string;
334
+ isQueued: boolean;
335
+ isExecuting: boolean;
336
+ isCompleted: boolean;
337
+ isSuccess: boolean;
338
+ isFailed: boolean;
339
+ isCancelled: boolean;
340
+ isTest: boolean;
341
+ updatedAt: Date;
342
+ costInCents: number;
343
+ baseCostInCents: number;
344
+ durationMs: number;
345
+ batchId?: string | undefined;
346
+ idempotencyKey?: string | undefined;
347
+ version?: string | undefined;
348
+ startedAt?: Date | undefined;
349
+ finishedAt?: Date | undefined;
350
+ delayedUntil?: Date | undefined;
351
+ ttl?: string | undefined;
352
+ expiredAt?: Date | undefined;
353
+ } | undefined;
354
+ parent?: {
355
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
356
+ id: string;
357
+ createdAt: Date;
358
+ tags: string[];
359
+ depth: number;
360
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
361
+ taskIdentifier: string;
362
+ isQueued: boolean;
363
+ isExecuting: boolean;
364
+ isCompleted: boolean;
365
+ isSuccess: boolean;
366
+ isFailed: boolean;
367
+ isCancelled: boolean;
368
+ isTest: boolean;
369
+ updatedAt: Date;
370
+ costInCents: number;
371
+ baseCostInCents: number;
372
+ durationMs: number;
373
+ batchId?: string | undefined;
374
+ idempotencyKey?: string | undefined;
375
+ version?: string | undefined;
376
+ startedAt?: Date | undefined;
377
+ finishedAt?: Date | undefined;
378
+ delayedUntil?: Date | undefined;
379
+ ttl?: string | undefined;
380
+ expiredAt?: Date | undefined;
381
+ } | undefined;
382
+ children?: {
383
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
384
+ id: string;
385
+ createdAt: Date;
386
+ tags: string[];
387
+ depth: number;
388
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
389
+ taskIdentifier: string;
390
+ isQueued: boolean;
391
+ isExecuting: boolean;
392
+ isCompleted: boolean;
393
+ isSuccess: boolean;
394
+ isFailed: boolean;
395
+ isCancelled: boolean;
396
+ isTest: boolean;
397
+ updatedAt: Date;
398
+ costInCents: number;
399
+ baseCostInCents: number;
400
+ durationMs: number;
401
+ batchId?: string | undefined;
402
+ idempotencyKey?: string | undefined;
403
+ version?: string | undefined;
404
+ startedAt?: Date | undefined;
405
+ finishedAt?: Date | undefined;
406
+ delayedUntil?: Date | undefined;
407
+ ttl?: string | undefined;
408
+ expiredAt?: Date | undefined;
409
+ }[] | undefined;
410
+ };
141
411
  attempts: ({
142
412
  status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
143
413
  id: string;
@@ -151,18 +421,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
151
421
  stackTrace?: string | undefined;
152
422
  } | undefined;
153
423
  } | undefined)[];
154
- updatedAt: Date;
155
- taskIdentifier: string;
156
- isQueued: boolean;
157
- isExecuting: boolean;
158
- isCompleted: boolean;
159
- isSuccess: boolean;
160
- isFailed: boolean;
161
- isCancelled: boolean;
162
- isTest: boolean;
163
- costInCents: number;
164
- baseCostInCents: number;
165
- durationMs: number;
166
424
  payload?: any;
167
425
  payloadPresignedUrl?: string | undefined;
168
426
  output?: any;
@@ -189,6 +447,104 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
189
447
  id: string;
190
448
  createdAt: Date;
191
449
  tags: string[];
450
+ taskIdentifier: string;
451
+ isQueued: boolean;
452
+ isExecuting: boolean;
453
+ isCompleted: boolean;
454
+ isSuccess: boolean;
455
+ isFailed: boolean;
456
+ isCancelled: boolean;
457
+ isTest: boolean;
458
+ updatedAt: Date;
459
+ costInCents: number;
460
+ baseCostInCents: number;
461
+ durationMs: number;
462
+ relatedRuns: {
463
+ root?: {
464
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
465
+ id: string;
466
+ createdAt: Date;
467
+ tags: string[];
468
+ depth: number;
469
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
470
+ taskIdentifier: string;
471
+ isQueued: boolean;
472
+ isExecuting: boolean;
473
+ isCompleted: boolean;
474
+ isSuccess: boolean;
475
+ isFailed: boolean;
476
+ isCancelled: boolean;
477
+ isTest: boolean;
478
+ updatedAt: Date;
479
+ costInCents: number;
480
+ baseCostInCents: number;
481
+ durationMs: number;
482
+ batchId?: string | undefined;
483
+ idempotencyKey?: string | undefined;
484
+ version?: string | undefined;
485
+ startedAt?: Date | undefined;
486
+ finishedAt?: Date | undefined;
487
+ delayedUntil?: Date | undefined;
488
+ ttl?: string | undefined;
489
+ expiredAt?: Date | undefined;
490
+ } | undefined;
491
+ parent?: {
492
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
493
+ id: string;
494
+ createdAt: Date;
495
+ tags: string[];
496
+ depth: number;
497
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
498
+ taskIdentifier: string;
499
+ isQueued: boolean;
500
+ isExecuting: boolean;
501
+ isCompleted: boolean;
502
+ isSuccess: boolean;
503
+ isFailed: boolean;
504
+ isCancelled: boolean;
505
+ isTest: boolean;
506
+ updatedAt: Date;
507
+ costInCents: number;
508
+ baseCostInCents: number;
509
+ durationMs: number;
510
+ batchId?: string | undefined;
511
+ idempotencyKey?: string | undefined;
512
+ version?: string | undefined;
513
+ startedAt?: Date | undefined;
514
+ finishedAt?: Date | undefined;
515
+ delayedUntil?: Date | undefined;
516
+ ttl?: string | undefined;
517
+ expiredAt?: Date | undefined;
518
+ } | undefined;
519
+ children?: {
520
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
521
+ id: string;
522
+ createdAt: Date;
523
+ tags: string[];
524
+ depth: number;
525
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
526
+ taskIdentifier: string;
527
+ isQueued: boolean;
528
+ isExecuting: boolean;
529
+ isCompleted: boolean;
530
+ isSuccess: boolean;
531
+ isFailed: boolean;
532
+ isCancelled: boolean;
533
+ isTest: boolean;
534
+ updatedAt: Date;
535
+ costInCents: number;
536
+ baseCostInCents: number;
537
+ durationMs: number;
538
+ batchId?: string | undefined;
539
+ idempotencyKey?: string | undefined;
540
+ version?: string | undefined;
541
+ startedAt?: Date | undefined;
542
+ finishedAt?: Date | undefined;
543
+ delayedUntil?: Date | undefined;
544
+ ttl?: string | undefined;
545
+ expiredAt?: Date | undefined;
546
+ }[] | undefined;
547
+ };
192
548
  attempts: ({
193
549
  status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
194
550
  id: string;
@@ -202,18 +558,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
202
558
  stackTrace?: string | undefined;
203
559
  } | undefined;
204
560
  } | undefined)[];
205
- updatedAt: Date;
206
- taskIdentifier: string;
207
- isQueued: boolean;
208
- isExecuting: boolean;
209
- isCompleted: boolean;
210
- isSuccess: boolean;
211
- isFailed: boolean;
212
- isCancelled: boolean;
213
- isTest: boolean;
214
- costInCents: number;
215
- baseCostInCents: number;
216
- durationMs: number;
217
561
  payload?: any;
218
562
  payloadPresignedUrl?: string | undefined;
219
563
  output?: any;
@@ -242,6 +586,104 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
242
586
  id: string;
243
587
  createdAt: Date;
244
588
  tags: string[];
589
+ taskIdentifier: string;
590
+ isQueued: boolean;
591
+ isExecuting: boolean;
592
+ isCompleted: boolean;
593
+ isSuccess: boolean;
594
+ isFailed: boolean;
595
+ isCancelled: boolean;
596
+ isTest: boolean;
597
+ updatedAt: Date;
598
+ costInCents: number;
599
+ baseCostInCents: number;
600
+ durationMs: number;
601
+ relatedRuns: {
602
+ root?: {
603
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
604
+ id: string;
605
+ createdAt: Date;
606
+ tags: string[];
607
+ depth: number;
608
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
609
+ taskIdentifier: string;
610
+ isQueued: boolean;
611
+ isExecuting: boolean;
612
+ isCompleted: boolean;
613
+ isSuccess: boolean;
614
+ isFailed: boolean;
615
+ isCancelled: boolean;
616
+ isTest: boolean;
617
+ updatedAt: Date;
618
+ costInCents: number;
619
+ baseCostInCents: number;
620
+ durationMs: number;
621
+ batchId?: string | undefined;
622
+ idempotencyKey?: string | undefined;
623
+ version?: string | undefined;
624
+ startedAt?: Date | undefined;
625
+ finishedAt?: Date | undefined;
626
+ delayedUntil?: Date | undefined;
627
+ ttl?: string | undefined;
628
+ expiredAt?: Date | undefined;
629
+ } | undefined;
630
+ parent?: {
631
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
632
+ id: string;
633
+ createdAt: Date;
634
+ tags: string[];
635
+ depth: number;
636
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
637
+ taskIdentifier: string;
638
+ isQueued: boolean;
639
+ isExecuting: boolean;
640
+ isCompleted: boolean;
641
+ isSuccess: boolean;
642
+ isFailed: boolean;
643
+ isCancelled: boolean;
644
+ isTest: boolean;
645
+ updatedAt: Date;
646
+ costInCents: number;
647
+ baseCostInCents: number;
648
+ durationMs: number;
649
+ batchId?: string | undefined;
650
+ idempotencyKey?: string | undefined;
651
+ version?: string | undefined;
652
+ startedAt?: Date | undefined;
653
+ finishedAt?: Date | undefined;
654
+ delayedUntil?: Date | undefined;
655
+ ttl?: string | undefined;
656
+ expiredAt?: Date | undefined;
657
+ } | undefined;
658
+ children?: {
659
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
660
+ id: string;
661
+ createdAt: Date;
662
+ tags: string[];
663
+ depth: number;
664
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
665
+ taskIdentifier: string;
666
+ isQueued: boolean;
667
+ isExecuting: boolean;
668
+ isCompleted: boolean;
669
+ isSuccess: boolean;
670
+ isFailed: boolean;
671
+ isCancelled: boolean;
672
+ isTest: boolean;
673
+ updatedAt: Date;
674
+ costInCents: number;
675
+ baseCostInCents: number;
676
+ durationMs: number;
677
+ batchId?: string | undefined;
678
+ idempotencyKey?: string | undefined;
679
+ version?: string | undefined;
680
+ startedAt?: Date | undefined;
681
+ finishedAt?: Date | undefined;
682
+ delayedUntil?: Date | undefined;
683
+ ttl?: string | undefined;
684
+ expiredAt?: Date | undefined;
685
+ }[] | undefined;
686
+ };
245
687
  attempts: ({
246
688
  status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
247
689
  id: string;
@@ -255,18 +697,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
255
697
  stackTrace?: string | undefined;
256
698
  } | undefined;
257
699
  } | undefined)[];
258
- updatedAt: Date;
259
- taskIdentifier: string;
260
- isQueued: boolean;
261
- isExecuting: boolean;
262
- isCompleted: boolean;
263
- isSuccess: boolean;
264
- isFailed: boolean;
265
- isCancelled: boolean;
266
- isTest: boolean;
267
- costInCents: number;
268
- baseCostInCents: number;
269
- durationMs: number;
270
700
  payload?: any;
271
701
  payloadPresignedUrl?: string | undefined;
272
702
  output?: any;
@@ -295,6 +725,104 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
295
725
  id: string;
296
726
  createdAt: Date;
297
727
  tags: string[];
728
+ taskIdentifier: string;
729
+ isQueued: boolean;
730
+ isExecuting: boolean;
731
+ isCompleted: boolean;
732
+ isSuccess: boolean;
733
+ isFailed: boolean;
734
+ isCancelled: boolean;
735
+ isTest: boolean;
736
+ updatedAt: Date;
737
+ costInCents: number;
738
+ baseCostInCents: number;
739
+ durationMs: number;
740
+ relatedRuns: {
741
+ root?: {
742
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
743
+ id: string;
744
+ createdAt: Date;
745
+ tags: string[];
746
+ depth: number;
747
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
748
+ taskIdentifier: string;
749
+ isQueued: boolean;
750
+ isExecuting: boolean;
751
+ isCompleted: boolean;
752
+ isSuccess: boolean;
753
+ isFailed: boolean;
754
+ isCancelled: boolean;
755
+ isTest: boolean;
756
+ updatedAt: Date;
757
+ costInCents: number;
758
+ baseCostInCents: number;
759
+ durationMs: number;
760
+ batchId?: string | undefined;
761
+ idempotencyKey?: string | undefined;
762
+ version?: string | undefined;
763
+ startedAt?: Date | undefined;
764
+ finishedAt?: Date | undefined;
765
+ delayedUntil?: Date | undefined;
766
+ ttl?: string | undefined;
767
+ expiredAt?: Date | undefined;
768
+ } | undefined;
769
+ parent?: {
770
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
771
+ id: string;
772
+ createdAt: Date;
773
+ tags: string[];
774
+ depth: number;
775
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
776
+ taskIdentifier: string;
777
+ isQueued: boolean;
778
+ isExecuting: boolean;
779
+ isCompleted: boolean;
780
+ isSuccess: boolean;
781
+ isFailed: boolean;
782
+ isCancelled: boolean;
783
+ isTest: boolean;
784
+ updatedAt: Date;
785
+ costInCents: number;
786
+ baseCostInCents: number;
787
+ durationMs: number;
788
+ batchId?: string | undefined;
789
+ idempotencyKey?: string | undefined;
790
+ version?: string | undefined;
791
+ startedAt?: Date | undefined;
792
+ finishedAt?: Date | undefined;
793
+ delayedUntil?: Date | undefined;
794
+ ttl?: string | undefined;
795
+ expiredAt?: Date | undefined;
796
+ } | undefined;
797
+ children?: {
798
+ status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
799
+ id: string;
800
+ createdAt: Date;
801
+ tags: string[];
802
+ depth: number;
803
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
804
+ taskIdentifier: string;
805
+ isQueued: boolean;
806
+ isExecuting: boolean;
807
+ isCompleted: boolean;
808
+ isSuccess: boolean;
809
+ isFailed: boolean;
810
+ isCancelled: boolean;
811
+ isTest: boolean;
812
+ updatedAt: Date;
813
+ costInCents: number;
814
+ baseCostInCents: number;
815
+ durationMs: number;
816
+ batchId?: string | undefined;
817
+ idempotencyKey?: string | undefined;
818
+ version?: string | undefined;
819
+ startedAt?: Date | undefined;
820
+ finishedAt?: Date | undefined;
821
+ delayedUntil?: Date | undefined;
822
+ ttl?: string | undefined;
823
+ expiredAt?: Date | undefined;
824
+ }[] | undefined;
825
+ };
298
826
  attempts: ({
299
827
  status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
300
828
  id: string;
@@ -308,18 +836,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
308
836
  stackTrace?: string | undefined;
309
837
  } | undefined;
310
838
  } | undefined)[];
311
- updatedAt: Date;
312
- taskIdentifier: string;
313
- isQueued: boolean;
314
- isExecuting: boolean;
315
- isCompleted: boolean;
316
- isSuccess: boolean;
317
- isFailed: boolean;
318
- isCancelled: boolean;
319
- isTest: boolean;
320
- costInCents: number;
321
- baseCostInCents: number;
322
- durationMs: number;
323
839
  payload?: any;
324
840
  payloadPresignedUrl?: string | undefined;
325
841
  output?: any;