@trigger.dev/sdk 0.0.0-v3-prerelease-20241009142012 → 0.0.0-v3-prerelease-20241012123509
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.
- package/dist/commonjs/v3/runs.d.ts +54 -54
- package/dist/esm/v3/runs.d.ts +138 -138
- package/package.json +2 -2
|
@@ -30,10 +30,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
30
30
|
}, requestOptions?: ApiRequestOptions): Promise<(TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
31
31
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
32
32
|
id: string;
|
|
33
|
-
tags: string[];
|
|
34
33
|
isTest: boolean;
|
|
35
|
-
createdAt: Date;
|
|
36
34
|
durationMs: number;
|
|
35
|
+
tags: string[];
|
|
36
|
+
createdAt: Date;
|
|
37
37
|
costInCents: number;
|
|
38
38
|
baseCostInCents: number;
|
|
39
39
|
depth: number;
|
|
@@ -50,10 +50,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
50
50
|
root?: {
|
|
51
51
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
52
52
|
id: string;
|
|
53
|
-
tags: string[];
|
|
54
53
|
isTest: boolean;
|
|
55
|
-
createdAt: Date;
|
|
56
54
|
durationMs: number;
|
|
55
|
+
tags: string[];
|
|
56
|
+
createdAt: Date;
|
|
57
57
|
costInCents: number;
|
|
58
58
|
baseCostInCents: number;
|
|
59
59
|
depth: number;
|
|
@@ -79,10 +79,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
79
79
|
parent?: {
|
|
80
80
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
81
81
|
id: string;
|
|
82
|
-
tags: string[];
|
|
83
82
|
isTest: boolean;
|
|
84
|
-
createdAt: Date;
|
|
85
83
|
durationMs: number;
|
|
84
|
+
tags: string[];
|
|
85
|
+
createdAt: Date;
|
|
86
86
|
costInCents: number;
|
|
87
87
|
baseCostInCents: number;
|
|
88
88
|
depth: number;
|
|
@@ -108,10 +108,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
108
108
|
children?: {
|
|
109
109
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
110
110
|
id: string;
|
|
111
|
-
tags: string[];
|
|
112
111
|
isTest: boolean;
|
|
113
|
-
createdAt: Date;
|
|
114
112
|
durationMs: number;
|
|
113
|
+
tags: string[];
|
|
114
|
+
createdAt: Date;
|
|
115
115
|
costInCents: number;
|
|
116
116
|
baseCostInCents: number;
|
|
117
117
|
depth: number;
|
|
@@ -156,8 +156,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
156
156
|
id: string;
|
|
157
157
|
generator: {
|
|
158
158
|
type: "CRON";
|
|
159
|
-
description: string;
|
|
160
159
|
expression: string;
|
|
160
|
+
description: string;
|
|
161
161
|
};
|
|
162
162
|
externalId?: string | undefined;
|
|
163
163
|
deduplicationKey?: string | undefined;
|
|
@@ -176,10 +176,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
176
176
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
177
177
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
178
178
|
id: string;
|
|
179
|
-
tags: string[];
|
|
180
179
|
isTest: boolean;
|
|
181
|
-
createdAt: Date;
|
|
182
180
|
durationMs: number;
|
|
181
|
+
tags: string[];
|
|
182
|
+
createdAt: Date;
|
|
183
183
|
costInCents: number;
|
|
184
184
|
baseCostInCents: number;
|
|
185
185
|
depth: number;
|
|
@@ -196,10 +196,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
196
196
|
root?: {
|
|
197
197
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
198
198
|
id: string;
|
|
199
|
-
tags: string[];
|
|
200
199
|
isTest: boolean;
|
|
201
|
-
createdAt: Date;
|
|
202
200
|
durationMs: number;
|
|
201
|
+
tags: string[];
|
|
202
|
+
createdAt: Date;
|
|
203
203
|
costInCents: number;
|
|
204
204
|
baseCostInCents: number;
|
|
205
205
|
depth: number;
|
|
@@ -225,10 +225,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
225
225
|
parent?: {
|
|
226
226
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
227
227
|
id: string;
|
|
228
|
-
tags: string[];
|
|
229
228
|
isTest: boolean;
|
|
230
|
-
createdAt: Date;
|
|
231
229
|
durationMs: number;
|
|
230
|
+
tags: string[];
|
|
231
|
+
createdAt: Date;
|
|
232
232
|
costInCents: number;
|
|
233
233
|
baseCostInCents: number;
|
|
234
234
|
depth: number;
|
|
@@ -254,10 +254,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
254
254
|
children?: {
|
|
255
255
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
256
256
|
id: string;
|
|
257
|
-
tags: string[];
|
|
258
257
|
isTest: boolean;
|
|
259
|
-
createdAt: Date;
|
|
260
258
|
durationMs: number;
|
|
259
|
+
tags: string[];
|
|
260
|
+
createdAt: Date;
|
|
261
261
|
costInCents: number;
|
|
262
262
|
baseCostInCents: number;
|
|
263
263
|
depth: number;
|
|
@@ -302,8 +302,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
302
302
|
id: string;
|
|
303
303
|
generator: {
|
|
304
304
|
type: "CRON";
|
|
305
|
-
description: string;
|
|
306
305
|
expression: string;
|
|
306
|
+
description: string;
|
|
307
307
|
};
|
|
308
308
|
externalId?: string | undefined;
|
|
309
309
|
deduplicationKey?: string | undefined;
|
|
@@ -322,10 +322,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
322
322
|
} : TRunId extends string ? {
|
|
323
323
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
324
324
|
id: string;
|
|
325
|
-
tags: string[];
|
|
326
325
|
isTest: boolean;
|
|
327
|
-
createdAt: Date;
|
|
328
326
|
durationMs: number;
|
|
327
|
+
tags: string[];
|
|
328
|
+
createdAt: Date;
|
|
329
329
|
costInCents: number;
|
|
330
330
|
baseCostInCents: number;
|
|
331
331
|
depth: number;
|
|
@@ -342,10 +342,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
342
342
|
root?: {
|
|
343
343
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
344
344
|
id: string;
|
|
345
|
-
tags: string[];
|
|
346
345
|
isTest: boolean;
|
|
347
|
-
createdAt: Date;
|
|
348
346
|
durationMs: number;
|
|
347
|
+
tags: string[];
|
|
348
|
+
createdAt: Date;
|
|
349
349
|
costInCents: number;
|
|
350
350
|
baseCostInCents: number;
|
|
351
351
|
depth: number;
|
|
@@ -371,10 +371,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
371
371
|
parent?: {
|
|
372
372
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
373
373
|
id: string;
|
|
374
|
-
tags: string[];
|
|
375
374
|
isTest: boolean;
|
|
376
|
-
createdAt: Date;
|
|
377
375
|
durationMs: number;
|
|
376
|
+
tags: string[];
|
|
377
|
+
createdAt: Date;
|
|
378
378
|
costInCents: number;
|
|
379
379
|
baseCostInCents: number;
|
|
380
380
|
depth: number;
|
|
@@ -400,10 +400,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
400
400
|
children?: {
|
|
401
401
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
402
402
|
id: string;
|
|
403
|
-
tags: string[];
|
|
404
403
|
isTest: boolean;
|
|
405
|
-
createdAt: Date;
|
|
406
404
|
durationMs: number;
|
|
405
|
+
tags: string[];
|
|
406
|
+
createdAt: Date;
|
|
407
407
|
costInCents: number;
|
|
408
408
|
baseCostInCents: number;
|
|
409
409
|
depth: number;
|
|
@@ -448,8 +448,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
448
448
|
id: string;
|
|
449
449
|
generator: {
|
|
450
450
|
type: "CRON";
|
|
451
|
-
description: string;
|
|
452
451
|
expression: string;
|
|
452
|
+
description: string;
|
|
453
453
|
};
|
|
454
454
|
externalId?: string | undefined;
|
|
455
455
|
deduplicationKey?: string | undefined;
|
|
@@ -466,10 +466,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
466
466
|
} : never) extends infer T ? { [K in keyof T]: (TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
467
467
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
468
468
|
id: string;
|
|
469
|
-
tags: string[];
|
|
470
469
|
isTest: boolean;
|
|
471
|
-
createdAt: Date;
|
|
472
470
|
durationMs: number;
|
|
471
|
+
tags: string[];
|
|
472
|
+
createdAt: Date;
|
|
473
473
|
costInCents: number;
|
|
474
474
|
baseCostInCents: number;
|
|
475
475
|
depth: number;
|
|
@@ -486,10 +486,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
486
486
|
root?: {
|
|
487
487
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
488
488
|
id: string;
|
|
489
|
-
tags: string[];
|
|
490
489
|
isTest: boolean;
|
|
491
|
-
createdAt: Date;
|
|
492
490
|
durationMs: number;
|
|
491
|
+
tags: string[];
|
|
492
|
+
createdAt: Date;
|
|
493
493
|
costInCents: number;
|
|
494
494
|
baseCostInCents: number;
|
|
495
495
|
depth: number;
|
|
@@ -515,10 +515,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
515
515
|
parent?: {
|
|
516
516
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
517
517
|
id: string;
|
|
518
|
-
tags: string[];
|
|
519
518
|
isTest: boolean;
|
|
520
|
-
createdAt: Date;
|
|
521
519
|
durationMs: number;
|
|
520
|
+
tags: string[];
|
|
521
|
+
createdAt: Date;
|
|
522
522
|
costInCents: number;
|
|
523
523
|
baseCostInCents: number;
|
|
524
524
|
depth: number;
|
|
@@ -544,10 +544,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
544
544
|
children?: {
|
|
545
545
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
546
546
|
id: string;
|
|
547
|
-
tags: string[];
|
|
548
547
|
isTest: boolean;
|
|
549
|
-
createdAt: Date;
|
|
550
548
|
durationMs: number;
|
|
549
|
+
tags: string[];
|
|
550
|
+
createdAt: Date;
|
|
551
551
|
costInCents: number;
|
|
552
552
|
baseCostInCents: number;
|
|
553
553
|
depth: number;
|
|
@@ -592,8 +592,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
592
592
|
id: string;
|
|
593
593
|
generator: {
|
|
594
594
|
type: "CRON";
|
|
595
|
-
description: string;
|
|
596
595
|
expression: string;
|
|
596
|
+
description: string;
|
|
597
597
|
};
|
|
598
598
|
externalId?: string | undefined;
|
|
599
599
|
deduplicationKey?: string | undefined;
|
|
@@ -612,10 +612,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
612
612
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
613
613
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
614
614
|
id: string;
|
|
615
|
-
tags: string[];
|
|
616
615
|
isTest: boolean;
|
|
617
|
-
createdAt: Date;
|
|
618
616
|
durationMs: number;
|
|
617
|
+
tags: string[];
|
|
618
|
+
createdAt: Date;
|
|
619
619
|
costInCents: number;
|
|
620
620
|
baseCostInCents: number;
|
|
621
621
|
depth: number;
|
|
@@ -632,10 +632,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
632
632
|
root?: {
|
|
633
633
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
634
634
|
id: string;
|
|
635
|
-
tags: string[];
|
|
636
635
|
isTest: boolean;
|
|
637
|
-
createdAt: Date;
|
|
638
636
|
durationMs: number;
|
|
637
|
+
tags: string[];
|
|
638
|
+
createdAt: Date;
|
|
639
639
|
costInCents: number;
|
|
640
640
|
baseCostInCents: number;
|
|
641
641
|
depth: number;
|
|
@@ -661,10 +661,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
661
661
|
parent?: {
|
|
662
662
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
663
663
|
id: string;
|
|
664
|
-
tags: string[];
|
|
665
664
|
isTest: boolean;
|
|
666
|
-
createdAt: Date;
|
|
667
665
|
durationMs: number;
|
|
666
|
+
tags: string[];
|
|
667
|
+
createdAt: Date;
|
|
668
668
|
costInCents: number;
|
|
669
669
|
baseCostInCents: number;
|
|
670
670
|
depth: number;
|
|
@@ -690,10 +690,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
690
690
|
children?: {
|
|
691
691
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
692
692
|
id: string;
|
|
693
|
-
tags: string[];
|
|
694
693
|
isTest: boolean;
|
|
695
|
-
createdAt: Date;
|
|
696
694
|
durationMs: number;
|
|
695
|
+
tags: string[];
|
|
696
|
+
createdAt: Date;
|
|
697
697
|
costInCents: number;
|
|
698
698
|
baseCostInCents: number;
|
|
699
699
|
depth: number;
|
|
@@ -738,8 +738,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
738
738
|
id: string;
|
|
739
739
|
generator: {
|
|
740
740
|
type: "CRON";
|
|
741
|
-
description: string;
|
|
742
741
|
expression: string;
|
|
742
|
+
description: string;
|
|
743
743
|
};
|
|
744
744
|
externalId?: string | undefined;
|
|
745
745
|
deduplicationKey?: string | undefined;
|
|
@@ -758,10 +758,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
758
758
|
} : TRunId extends string ? {
|
|
759
759
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
760
760
|
id: string;
|
|
761
|
-
tags: string[];
|
|
762
761
|
isTest: boolean;
|
|
763
|
-
createdAt: Date;
|
|
764
762
|
durationMs: number;
|
|
763
|
+
tags: string[];
|
|
764
|
+
createdAt: Date;
|
|
765
765
|
costInCents: number;
|
|
766
766
|
baseCostInCents: number;
|
|
767
767
|
depth: number;
|
|
@@ -778,10 +778,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
778
778
|
root?: {
|
|
779
779
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
780
780
|
id: string;
|
|
781
|
-
tags: string[];
|
|
782
781
|
isTest: boolean;
|
|
783
|
-
createdAt: Date;
|
|
784
782
|
durationMs: number;
|
|
783
|
+
tags: string[];
|
|
784
|
+
createdAt: Date;
|
|
785
785
|
costInCents: number;
|
|
786
786
|
baseCostInCents: number;
|
|
787
787
|
depth: number;
|
|
@@ -807,10 +807,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
807
807
|
parent?: {
|
|
808
808
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
809
809
|
id: string;
|
|
810
|
-
tags: string[];
|
|
811
810
|
isTest: boolean;
|
|
812
|
-
createdAt: Date;
|
|
813
811
|
durationMs: number;
|
|
812
|
+
tags: string[];
|
|
813
|
+
createdAt: Date;
|
|
814
814
|
costInCents: number;
|
|
815
815
|
baseCostInCents: number;
|
|
816
816
|
depth: number;
|
|
@@ -836,10 +836,10 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
836
836
|
children?: {
|
|
837
837
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
838
838
|
id: string;
|
|
839
|
-
tags: string[];
|
|
840
839
|
isTest: boolean;
|
|
841
|
-
createdAt: Date;
|
|
842
840
|
durationMs: number;
|
|
841
|
+
tags: string[];
|
|
842
|
+
createdAt: Date;
|
|
843
843
|
costInCents: number;
|
|
844
844
|
baseCostInCents: number;
|
|
845
845
|
depth: number;
|
|
@@ -884,8 +884,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
884
884
|
id: string;
|
|
885
885
|
generator: {
|
|
886
886
|
type: "CRON";
|
|
887
|
-
description: string;
|
|
888
887
|
expression: string;
|
|
888
|
+
description: string;
|
|
889
889
|
};
|
|
890
890
|
externalId?: string | undefined;
|
|
891
891
|
deduplicationKey?: string | undefined;
|
package/dist/esm/v3/runs.d.ts
CHANGED
|
@@ -28,22 +28,32 @@ export type PollOptions = {
|
|
|
28
28
|
declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: RunId<TRunId>, options?: {
|
|
29
29
|
pollIntervalMs?: number;
|
|
30
30
|
}, requestOptions?: ApiRequestOptions): Promise<(TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
31
|
-
status: "
|
|
31
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
32
32
|
id: string;
|
|
33
|
-
tags: string[];
|
|
34
33
|
isTest: boolean;
|
|
35
|
-
createdAt: Date;
|
|
36
34
|
durationMs: number;
|
|
35
|
+
tags: string[];
|
|
36
|
+
createdAt: Date;
|
|
37
37
|
costInCents: number;
|
|
38
38
|
baseCostInCents: number;
|
|
39
|
+
depth: number;
|
|
40
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
41
|
+
taskIdentifier: string;
|
|
42
|
+
isQueued: boolean;
|
|
43
|
+
isExecuting: boolean;
|
|
44
|
+
isCompleted: boolean;
|
|
45
|
+
isSuccess: boolean;
|
|
46
|
+
isFailed: boolean;
|
|
47
|
+
isCancelled: boolean;
|
|
48
|
+
updatedAt: Date;
|
|
39
49
|
relatedRuns: {
|
|
40
50
|
root?: {
|
|
41
|
-
status: "
|
|
51
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
42
52
|
id: string;
|
|
43
|
-
tags: string[];
|
|
44
53
|
isTest: boolean;
|
|
45
|
-
createdAt: Date;
|
|
46
54
|
durationMs: number;
|
|
55
|
+
tags: string[];
|
|
56
|
+
createdAt: Date;
|
|
47
57
|
costInCents: number;
|
|
48
58
|
baseCostInCents: number;
|
|
49
59
|
depth: number;
|
|
@@ -67,12 +77,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
67
77
|
metadata?: Record<string, any> | undefined;
|
|
68
78
|
} | undefined;
|
|
69
79
|
parent?: {
|
|
70
|
-
status: "
|
|
80
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
71
81
|
id: string;
|
|
72
|
-
tags: string[];
|
|
73
82
|
isTest: boolean;
|
|
74
|
-
createdAt: Date;
|
|
75
83
|
durationMs: number;
|
|
84
|
+
tags: string[];
|
|
85
|
+
createdAt: Date;
|
|
76
86
|
costInCents: number;
|
|
77
87
|
baseCostInCents: number;
|
|
78
88
|
depth: number;
|
|
@@ -96,12 +106,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
96
106
|
metadata?: Record<string, any> | undefined;
|
|
97
107
|
} | undefined;
|
|
98
108
|
children?: {
|
|
99
|
-
status: "
|
|
109
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
100
110
|
id: string;
|
|
101
|
-
tags: string[];
|
|
102
111
|
isTest: boolean;
|
|
103
|
-
createdAt: Date;
|
|
104
112
|
durationMs: number;
|
|
113
|
+
tags: string[];
|
|
114
|
+
createdAt: Date;
|
|
105
115
|
costInCents: number;
|
|
106
116
|
baseCostInCents: number;
|
|
107
117
|
depth: number;
|
|
@@ -125,18 +135,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
125
135
|
metadata?: Record<string, any> | undefined;
|
|
126
136
|
}[] | undefined;
|
|
127
137
|
};
|
|
128
|
-
depth: number;
|
|
129
|
-
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
130
|
-
taskIdentifier: string;
|
|
131
|
-
isQueued: boolean;
|
|
132
|
-
isExecuting: boolean;
|
|
133
|
-
isCompleted: boolean;
|
|
134
|
-
isSuccess: boolean;
|
|
135
|
-
isFailed: boolean;
|
|
136
|
-
isCancelled: boolean;
|
|
137
|
-
updatedAt: Date;
|
|
138
138
|
attempts: ({
|
|
139
|
-
status: "
|
|
139
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
140
140
|
id: string;
|
|
141
141
|
createdAt: Date;
|
|
142
142
|
updatedAt: Date;
|
|
@@ -174,22 +174,32 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
174
174
|
}, "output"> & {
|
|
175
175
|
output?: TOutput;
|
|
176
176
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
177
|
-
status: "
|
|
177
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
178
178
|
id: string;
|
|
179
|
-
tags: string[];
|
|
180
179
|
isTest: boolean;
|
|
181
|
-
createdAt: Date;
|
|
182
180
|
durationMs: number;
|
|
181
|
+
tags: string[];
|
|
182
|
+
createdAt: Date;
|
|
183
183
|
costInCents: number;
|
|
184
184
|
baseCostInCents: number;
|
|
185
|
+
depth: number;
|
|
186
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
187
|
+
taskIdentifier: string;
|
|
188
|
+
isQueued: boolean;
|
|
189
|
+
isExecuting: boolean;
|
|
190
|
+
isCompleted: boolean;
|
|
191
|
+
isSuccess: boolean;
|
|
192
|
+
isFailed: boolean;
|
|
193
|
+
isCancelled: boolean;
|
|
194
|
+
updatedAt: Date;
|
|
185
195
|
relatedRuns: {
|
|
186
196
|
root?: {
|
|
187
|
-
status: "
|
|
197
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
188
198
|
id: string;
|
|
189
|
-
tags: string[];
|
|
190
199
|
isTest: boolean;
|
|
191
|
-
createdAt: Date;
|
|
192
200
|
durationMs: number;
|
|
201
|
+
tags: string[];
|
|
202
|
+
createdAt: Date;
|
|
193
203
|
costInCents: number;
|
|
194
204
|
baseCostInCents: number;
|
|
195
205
|
depth: number;
|
|
@@ -213,12 +223,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
213
223
|
metadata?: Record<string, any> | undefined;
|
|
214
224
|
} | undefined;
|
|
215
225
|
parent?: {
|
|
216
|
-
status: "
|
|
226
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
217
227
|
id: string;
|
|
218
|
-
tags: string[];
|
|
219
228
|
isTest: boolean;
|
|
220
|
-
createdAt: Date;
|
|
221
229
|
durationMs: number;
|
|
230
|
+
tags: string[];
|
|
231
|
+
createdAt: Date;
|
|
222
232
|
costInCents: number;
|
|
223
233
|
baseCostInCents: number;
|
|
224
234
|
depth: number;
|
|
@@ -242,12 +252,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
242
252
|
metadata?: Record<string, any> | undefined;
|
|
243
253
|
} | undefined;
|
|
244
254
|
children?: {
|
|
245
|
-
status: "
|
|
255
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
246
256
|
id: string;
|
|
247
|
-
tags: string[];
|
|
248
257
|
isTest: boolean;
|
|
249
|
-
createdAt: Date;
|
|
250
258
|
durationMs: number;
|
|
259
|
+
tags: string[];
|
|
260
|
+
createdAt: Date;
|
|
251
261
|
costInCents: number;
|
|
252
262
|
baseCostInCents: number;
|
|
253
263
|
depth: number;
|
|
@@ -271,18 +281,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
271
281
|
metadata?: Record<string, any> | undefined;
|
|
272
282
|
}[] | undefined;
|
|
273
283
|
};
|
|
274
|
-
depth: number;
|
|
275
|
-
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
276
|
-
taskIdentifier: string;
|
|
277
|
-
isQueued: boolean;
|
|
278
|
-
isExecuting: boolean;
|
|
279
|
-
isCompleted: boolean;
|
|
280
|
-
isSuccess: boolean;
|
|
281
|
-
isFailed: boolean;
|
|
282
|
-
isCancelled: boolean;
|
|
283
|
-
updatedAt: Date;
|
|
284
284
|
attempts: ({
|
|
285
|
-
status: "
|
|
285
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
286
286
|
id: string;
|
|
287
287
|
createdAt: Date;
|
|
288
288
|
updatedAt: Date;
|
|
@@ -320,22 +320,32 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
320
320
|
}, "output"> & {
|
|
321
321
|
output?: TTaskOutput;
|
|
322
322
|
} : TRunId extends string ? {
|
|
323
|
-
status: "
|
|
323
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
324
324
|
id: string;
|
|
325
|
-
tags: string[];
|
|
326
325
|
isTest: boolean;
|
|
327
|
-
createdAt: Date;
|
|
328
326
|
durationMs: number;
|
|
327
|
+
tags: string[];
|
|
328
|
+
createdAt: Date;
|
|
329
329
|
costInCents: number;
|
|
330
330
|
baseCostInCents: number;
|
|
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
|
+
updatedAt: Date;
|
|
331
341
|
relatedRuns: {
|
|
332
342
|
root?: {
|
|
333
|
-
status: "
|
|
343
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
334
344
|
id: string;
|
|
335
|
-
tags: string[];
|
|
336
345
|
isTest: boolean;
|
|
337
|
-
createdAt: Date;
|
|
338
346
|
durationMs: number;
|
|
347
|
+
tags: string[];
|
|
348
|
+
createdAt: Date;
|
|
339
349
|
costInCents: number;
|
|
340
350
|
baseCostInCents: number;
|
|
341
351
|
depth: number;
|
|
@@ -359,12 +369,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
359
369
|
metadata?: Record<string, any> | undefined;
|
|
360
370
|
} | undefined;
|
|
361
371
|
parent?: {
|
|
362
|
-
status: "
|
|
372
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
363
373
|
id: string;
|
|
364
|
-
tags: string[];
|
|
365
374
|
isTest: boolean;
|
|
366
|
-
createdAt: Date;
|
|
367
375
|
durationMs: number;
|
|
376
|
+
tags: string[];
|
|
377
|
+
createdAt: Date;
|
|
368
378
|
costInCents: number;
|
|
369
379
|
baseCostInCents: number;
|
|
370
380
|
depth: number;
|
|
@@ -388,12 +398,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
388
398
|
metadata?: Record<string, any> | undefined;
|
|
389
399
|
} | undefined;
|
|
390
400
|
children?: {
|
|
391
|
-
status: "
|
|
401
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
392
402
|
id: string;
|
|
393
|
-
tags: string[];
|
|
394
403
|
isTest: boolean;
|
|
395
|
-
createdAt: Date;
|
|
396
404
|
durationMs: number;
|
|
405
|
+
tags: string[];
|
|
406
|
+
createdAt: Date;
|
|
397
407
|
costInCents: number;
|
|
398
408
|
baseCostInCents: number;
|
|
399
409
|
depth: number;
|
|
@@ -417,18 +427,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
417
427
|
metadata?: Record<string, any> | undefined;
|
|
418
428
|
}[] | undefined;
|
|
419
429
|
};
|
|
420
|
-
depth: number;
|
|
421
|
-
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
422
|
-
taskIdentifier: string;
|
|
423
|
-
isQueued: boolean;
|
|
424
|
-
isExecuting: boolean;
|
|
425
|
-
isCompleted: boolean;
|
|
426
|
-
isSuccess: boolean;
|
|
427
|
-
isFailed: boolean;
|
|
428
|
-
isCancelled: boolean;
|
|
429
|
-
updatedAt: Date;
|
|
430
430
|
attempts: ({
|
|
431
|
-
status: "
|
|
431
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
432
432
|
id: string;
|
|
433
433
|
createdAt: Date;
|
|
434
434
|
updatedAt: Date;
|
|
@@ -464,22 +464,32 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
464
464
|
expiredAt?: Date | undefined;
|
|
465
465
|
metadata?: Record<string, any> | undefined;
|
|
466
466
|
} : never) extends infer T ? { [K in keyof T]: (TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
467
|
-
status: "
|
|
467
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
468
468
|
id: string;
|
|
469
|
-
tags: string[];
|
|
470
469
|
isTest: boolean;
|
|
471
|
-
createdAt: Date;
|
|
472
470
|
durationMs: number;
|
|
471
|
+
tags: string[];
|
|
472
|
+
createdAt: Date;
|
|
473
473
|
costInCents: number;
|
|
474
474
|
baseCostInCents: number;
|
|
475
|
+
depth: number;
|
|
476
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
477
|
+
taskIdentifier: string;
|
|
478
|
+
isQueued: boolean;
|
|
479
|
+
isExecuting: boolean;
|
|
480
|
+
isCompleted: boolean;
|
|
481
|
+
isSuccess: boolean;
|
|
482
|
+
isFailed: boolean;
|
|
483
|
+
isCancelled: boolean;
|
|
484
|
+
updatedAt: Date;
|
|
475
485
|
relatedRuns: {
|
|
476
486
|
root?: {
|
|
477
|
-
status: "
|
|
487
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
478
488
|
id: string;
|
|
479
|
-
tags: string[];
|
|
480
489
|
isTest: boolean;
|
|
481
|
-
createdAt: Date;
|
|
482
490
|
durationMs: number;
|
|
491
|
+
tags: string[];
|
|
492
|
+
createdAt: Date;
|
|
483
493
|
costInCents: number;
|
|
484
494
|
baseCostInCents: number;
|
|
485
495
|
depth: number;
|
|
@@ -503,12 +513,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
503
513
|
metadata?: Record<string, any> | undefined;
|
|
504
514
|
} | undefined;
|
|
505
515
|
parent?: {
|
|
506
|
-
status: "
|
|
516
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
507
517
|
id: string;
|
|
508
|
-
tags: string[];
|
|
509
518
|
isTest: boolean;
|
|
510
|
-
createdAt: Date;
|
|
511
519
|
durationMs: number;
|
|
520
|
+
tags: string[];
|
|
521
|
+
createdAt: Date;
|
|
512
522
|
costInCents: number;
|
|
513
523
|
baseCostInCents: number;
|
|
514
524
|
depth: number;
|
|
@@ -532,12 +542,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
532
542
|
metadata?: Record<string, any> | undefined;
|
|
533
543
|
} | undefined;
|
|
534
544
|
children?: {
|
|
535
|
-
status: "
|
|
545
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
536
546
|
id: string;
|
|
537
|
-
tags: string[];
|
|
538
547
|
isTest: boolean;
|
|
539
|
-
createdAt: Date;
|
|
540
548
|
durationMs: number;
|
|
549
|
+
tags: string[];
|
|
550
|
+
createdAt: Date;
|
|
541
551
|
costInCents: number;
|
|
542
552
|
baseCostInCents: number;
|
|
543
553
|
depth: number;
|
|
@@ -561,18 +571,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
561
571
|
metadata?: Record<string, any> | undefined;
|
|
562
572
|
}[] | undefined;
|
|
563
573
|
};
|
|
564
|
-
depth: number;
|
|
565
|
-
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
566
|
-
taskIdentifier: string;
|
|
567
|
-
isQueued: boolean;
|
|
568
|
-
isExecuting: boolean;
|
|
569
|
-
isCompleted: boolean;
|
|
570
|
-
isSuccess: boolean;
|
|
571
|
-
isFailed: boolean;
|
|
572
|
-
isCancelled: boolean;
|
|
573
|
-
updatedAt: Date;
|
|
574
574
|
attempts: ({
|
|
575
|
-
status: "
|
|
575
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
576
576
|
id: string;
|
|
577
577
|
createdAt: Date;
|
|
578
578
|
updatedAt: Date;
|
|
@@ -610,22 +610,32 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
610
610
|
}, "output"> & {
|
|
611
611
|
output?: TOutput;
|
|
612
612
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
613
|
-
status: "
|
|
613
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
614
614
|
id: string;
|
|
615
|
-
tags: string[];
|
|
616
615
|
isTest: boolean;
|
|
617
|
-
createdAt: Date;
|
|
618
616
|
durationMs: number;
|
|
617
|
+
tags: string[];
|
|
618
|
+
createdAt: Date;
|
|
619
619
|
costInCents: number;
|
|
620
620
|
baseCostInCents: number;
|
|
621
|
+
depth: number;
|
|
622
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
623
|
+
taskIdentifier: string;
|
|
624
|
+
isQueued: boolean;
|
|
625
|
+
isExecuting: boolean;
|
|
626
|
+
isCompleted: boolean;
|
|
627
|
+
isSuccess: boolean;
|
|
628
|
+
isFailed: boolean;
|
|
629
|
+
isCancelled: boolean;
|
|
630
|
+
updatedAt: Date;
|
|
621
631
|
relatedRuns: {
|
|
622
632
|
root?: {
|
|
623
|
-
status: "
|
|
633
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
624
634
|
id: string;
|
|
625
|
-
tags: string[];
|
|
626
635
|
isTest: boolean;
|
|
627
|
-
createdAt: Date;
|
|
628
636
|
durationMs: number;
|
|
637
|
+
tags: string[];
|
|
638
|
+
createdAt: Date;
|
|
629
639
|
costInCents: number;
|
|
630
640
|
baseCostInCents: number;
|
|
631
641
|
depth: number;
|
|
@@ -649,12 +659,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
649
659
|
metadata?: Record<string, any> | undefined;
|
|
650
660
|
} | undefined;
|
|
651
661
|
parent?: {
|
|
652
|
-
status: "
|
|
662
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
653
663
|
id: string;
|
|
654
|
-
tags: string[];
|
|
655
664
|
isTest: boolean;
|
|
656
|
-
createdAt: Date;
|
|
657
665
|
durationMs: number;
|
|
666
|
+
tags: string[];
|
|
667
|
+
createdAt: Date;
|
|
658
668
|
costInCents: number;
|
|
659
669
|
baseCostInCents: number;
|
|
660
670
|
depth: number;
|
|
@@ -678,12 +688,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
678
688
|
metadata?: Record<string, any> | undefined;
|
|
679
689
|
} | undefined;
|
|
680
690
|
children?: {
|
|
681
|
-
status: "
|
|
691
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
682
692
|
id: string;
|
|
683
|
-
tags: string[];
|
|
684
693
|
isTest: boolean;
|
|
685
|
-
createdAt: Date;
|
|
686
694
|
durationMs: number;
|
|
695
|
+
tags: string[];
|
|
696
|
+
createdAt: Date;
|
|
687
697
|
costInCents: number;
|
|
688
698
|
baseCostInCents: number;
|
|
689
699
|
depth: number;
|
|
@@ -707,18 +717,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
707
717
|
metadata?: Record<string, any> | undefined;
|
|
708
718
|
}[] | undefined;
|
|
709
719
|
};
|
|
710
|
-
depth: number;
|
|
711
|
-
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
712
|
-
taskIdentifier: string;
|
|
713
|
-
isQueued: boolean;
|
|
714
|
-
isExecuting: boolean;
|
|
715
|
-
isCompleted: boolean;
|
|
716
|
-
isSuccess: boolean;
|
|
717
|
-
isFailed: boolean;
|
|
718
|
-
isCancelled: boolean;
|
|
719
|
-
updatedAt: Date;
|
|
720
720
|
attempts: ({
|
|
721
|
-
status: "
|
|
721
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
722
722
|
id: string;
|
|
723
723
|
createdAt: Date;
|
|
724
724
|
updatedAt: Date;
|
|
@@ -756,22 +756,32 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
756
756
|
}, "output"> & {
|
|
757
757
|
output?: TTaskOutput;
|
|
758
758
|
} : TRunId extends string ? {
|
|
759
|
-
status: "
|
|
759
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
760
760
|
id: string;
|
|
761
|
-
tags: string[];
|
|
762
761
|
isTest: boolean;
|
|
763
|
-
createdAt: Date;
|
|
764
762
|
durationMs: number;
|
|
763
|
+
tags: string[];
|
|
764
|
+
createdAt: Date;
|
|
765
765
|
costInCents: number;
|
|
766
766
|
baseCostInCents: number;
|
|
767
|
+
depth: number;
|
|
768
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
769
|
+
taskIdentifier: string;
|
|
770
|
+
isQueued: boolean;
|
|
771
|
+
isExecuting: boolean;
|
|
772
|
+
isCompleted: boolean;
|
|
773
|
+
isSuccess: boolean;
|
|
774
|
+
isFailed: boolean;
|
|
775
|
+
isCancelled: boolean;
|
|
776
|
+
updatedAt: Date;
|
|
767
777
|
relatedRuns: {
|
|
768
778
|
root?: {
|
|
769
|
-
status: "
|
|
779
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
770
780
|
id: string;
|
|
771
|
-
tags: string[];
|
|
772
781
|
isTest: boolean;
|
|
773
|
-
createdAt: Date;
|
|
774
782
|
durationMs: number;
|
|
783
|
+
tags: string[];
|
|
784
|
+
createdAt: Date;
|
|
775
785
|
costInCents: number;
|
|
776
786
|
baseCostInCents: number;
|
|
777
787
|
depth: number;
|
|
@@ -795,12 +805,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
795
805
|
metadata?: Record<string, any> | undefined;
|
|
796
806
|
} | undefined;
|
|
797
807
|
parent?: {
|
|
798
|
-
status: "
|
|
808
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
799
809
|
id: string;
|
|
800
|
-
tags: string[];
|
|
801
810
|
isTest: boolean;
|
|
802
|
-
createdAt: Date;
|
|
803
811
|
durationMs: number;
|
|
812
|
+
tags: string[];
|
|
813
|
+
createdAt: Date;
|
|
804
814
|
costInCents: number;
|
|
805
815
|
baseCostInCents: number;
|
|
806
816
|
depth: number;
|
|
@@ -824,12 +834,12 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
824
834
|
metadata?: Record<string, any> | undefined;
|
|
825
835
|
} | undefined;
|
|
826
836
|
children?: {
|
|
827
|
-
status: "
|
|
837
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
828
838
|
id: string;
|
|
829
|
-
tags: string[];
|
|
830
839
|
isTest: boolean;
|
|
831
|
-
createdAt: Date;
|
|
832
840
|
durationMs: number;
|
|
841
|
+
tags: string[];
|
|
842
|
+
createdAt: Date;
|
|
833
843
|
costInCents: number;
|
|
834
844
|
baseCostInCents: number;
|
|
835
845
|
depth: number;
|
|
@@ -853,18 +863,8 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
853
863
|
metadata?: Record<string, any> | undefined;
|
|
854
864
|
}[] | undefined;
|
|
855
865
|
};
|
|
856
|
-
depth: number;
|
|
857
|
-
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
858
|
-
taskIdentifier: string;
|
|
859
|
-
isQueued: boolean;
|
|
860
|
-
isExecuting: boolean;
|
|
861
|
-
isCompleted: boolean;
|
|
862
|
-
isSuccess: boolean;
|
|
863
|
-
isFailed: boolean;
|
|
864
|
-
isCancelled: boolean;
|
|
865
|
-
updatedAt: Date;
|
|
866
866
|
attempts: ({
|
|
867
|
-
status: "
|
|
867
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
868
868
|
id: string;
|
|
869
869
|
createdAt: Date;
|
|
870
870
|
updatedAt: Date;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trigger.dev/sdk",
|
|
3
|
-
"version": "0.0.0-v3-prerelease-
|
|
3
|
+
"version": "0.0.0-v3-prerelease-20241012123509",
|
|
4
4
|
"description": "trigger.dev Node.JS SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@opentelemetry/api": "1.9.0",
|
|
41
41
|
"@opentelemetry/api-logs": "0.52.1",
|
|
42
42
|
"@opentelemetry/semantic-conventions": "1.25.1",
|
|
43
|
-
"@trigger.dev/core": "0.0.0-v3-prerelease-
|
|
43
|
+
"@trigger.dev/core": "0.0.0-v3-prerelease-20241012123509",
|
|
44
44
|
"chalk": "^5.2.0",
|
|
45
45
|
"cronstrue": "^2.21.0",
|
|
46
46
|
"debug": "^4.3.4",
|