@trigger.dev/sdk 0.0.0-prerelease-20240920143613 → 0.0.0-prerelease-20240926083759
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/envvars.js +6 -25
- package/dist/commonjs/v3/envvars.js.map +1 -1
- package/dist/commonjs/v3/index.d.ts +1 -0
- package/dist/commonjs/v3/index.js +1 -0
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/metadata.d.ts +79 -0
- package/dist/commonjs/v3/metadata.js +133 -0
- package/dist/commonjs/v3/metadata.js.map +1 -0
- package/dist/commonjs/v3/runs.d.ts +144 -120
- package/dist/commonjs/v3/runs.js +5 -21
- package/dist/commonjs/v3/runs.js.map +1 -1
- package/dist/commonjs/v3/schedules/index.js +7 -31
- package/dist/commonjs/v3/schedules/index.js.map +1 -1
- package/dist/commonjs/v3/shared.d.ts +5 -1
- package/dist/commonjs/v3/shared.js +8 -31
- package/dist/commonjs/v3/shared.js.map +1 -1
- package/dist/commonjs/v3/tags.js +1 -5
- package/dist/commonjs/v3/tags.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/envvars.js +6 -25
- package/dist/esm/v3/envvars.js.map +1 -1
- package/dist/esm/v3/index.d.ts +1 -0
- package/dist/esm/v3/index.js +1 -0
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/metadata.d.ts +79 -0
- package/dist/esm/v3/metadata.js +130 -0
- package/dist/esm/v3/metadata.js.map +1 -0
- package/dist/esm/v3/runs.d.ts +216 -192
- package/dist/esm/v3/runs.js +5 -21
- package/dist/esm/v3/runs.js.map +1 -1
- package/dist/esm/v3/schedules/index.js +8 -32
- package/dist/esm/v3/schedules/index.js.map +1 -1
- package/dist/esm/v3/shared.d.ts +5 -1
- package/dist/esm/v3/shared.js +8 -30
- package/dist/esm/v3/shared.js.map +1 -1
- package/dist/esm/v3/tags.js +1 -5
- package/dist/esm/v3/tags.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -30,8 +30,12 @@ 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" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
32
32
|
id: string;
|
|
33
|
-
createdAt: Date;
|
|
34
33
|
tags: string[];
|
|
34
|
+
isTest: boolean;
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
durationMs: number;
|
|
37
|
+
costInCents: number;
|
|
38
|
+
baseCostInCents: number;
|
|
35
39
|
depth: number;
|
|
36
40
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
37
41
|
taskIdentifier: string;
|
|
@@ -41,17 +45,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
41
45
|
isSuccess: boolean;
|
|
42
46
|
isFailed: boolean;
|
|
43
47
|
isCancelled: boolean;
|
|
44
|
-
isTest: boolean;
|
|
45
48
|
updatedAt: Date;
|
|
46
|
-
costInCents: number;
|
|
47
|
-
baseCostInCents: number;
|
|
48
|
-
durationMs: number;
|
|
49
49
|
relatedRuns: {
|
|
50
50
|
root?: {
|
|
51
51
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
52
52
|
id: string;
|
|
53
|
-
createdAt: Date;
|
|
54
53
|
tags: string[];
|
|
54
|
+
isTest: boolean;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
durationMs: number;
|
|
57
|
+
costInCents: number;
|
|
58
|
+
baseCostInCents: number;
|
|
55
59
|
depth: number;
|
|
56
60
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
57
61
|
taskIdentifier: string;
|
|
@@ -61,11 +65,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
61
65
|
isSuccess: boolean;
|
|
62
66
|
isFailed: boolean;
|
|
63
67
|
isCancelled: boolean;
|
|
64
|
-
isTest: boolean;
|
|
65
68
|
updatedAt: Date;
|
|
66
|
-
costInCents: number;
|
|
67
|
-
baseCostInCents: number;
|
|
68
|
-
durationMs: number;
|
|
69
69
|
batchId?: string | undefined;
|
|
70
70
|
idempotencyKey?: string | undefined;
|
|
71
71
|
version?: string | undefined;
|
|
@@ -74,12 +74,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
74
74
|
delayedUntil?: Date | undefined;
|
|
75
75
|
ttl?: string | undefined;
|
|
76
76
|
expiredAt?: Date | undefined;
|
|
77
|
+
metadata?: Record<string, any> | undefined;
|
|
77
78
|
} | undefined;
|
|
78
79
|
parent?: {
|
|
79
80
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
80
81
|
id: string;
|
|
81
|
-
createdAt: Date;
|
|
82
82
|
tags: string[];
|
|
83
|
+
isTest: boolean;
|
|
84
|
+
createdAt: Date;
|
|
85
|
+
durationMs: number;
|
|
86
|
+
costInCents: number;
|
|
87
|
+
baseCostInCents: number;
|
|
83
88
|
depth: number;
|
|
84
89
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
85
90
|
taskIdentifier: string;
|
|
@@ -89,11 +94,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
89
94
|
isSuccess: boolean;
|
|
90
95
|
isFailed: boolean;
|
|
91
96
|
isCancelled: boolean;
|
|
92
|
-
isTest: boolean;
|
|
93
97
|
updatedAt: Date;
|
|
94
|
-
costInCents: number;
|
|
95
|
-
baseCostInCents: number;
|
|
96
|
-
durationMs: number;
|
|
97
98
|
batchId?: string | undefined;
|
|
98
99
|
idempotencyKey?: string | undefined;
|
|
99
100
|
version?: string | undefined;
|
|
@@ -102,12 +103,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
102
103
|
delayedUntil?: Date | undefined;
|
|
103
104
|
ttl?: string | undefined;
|
|
104
105
|
expiredAt?: Date | undefined;
|
|
106
|
+
metadata?: Record<string, any> | undefined;
|
|
105
107
|
} | undefined;
|
|
106
108
|
children?: {
|
|
107
109
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
108
110
|
id: string;
|
|
109
|
-
createdAt: Date;
|
|
110
111
|
tags: string[];
|
|
112
|
+
isTest: boolean;
|
|
113
|
+
createdAt: Date;
|
|
114
|
+
durationMs: number;
|
|
115
|
+
costInCents: number;
|
|
116
|
+
baseCostInCents: number;
|
|
111
117
|
depth: number;
|
|
112
118
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
113
119
|
taskIdentifier: string;
|
|
@@ -117,11 +123,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
117
123
|
isSuccess: boolean;
|
|
118
124
|
isFailed: boolean;
|
|
119
125
|
isCancelled: boolean;
|
|
120
|
-
isTest: boolean;
|
|
121
126
|
updatedAt: Date;
|
|
122
|
-
costInCents: number;
|
|
123
|
-
baseCostInCents: number;
|
|
124
|
-
durationMs: number;
|
|
125
127
|
batchId?: string | undefined;
|
|
126
128
|
idempotencyKey?: string | undefined;
|
|
127
129
|
version?: string | undefined;
|
|
@@ -130,6 +132,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
130
132
|
delayedUntil?: Date | undefined;
|
|
131
133
|
ttl?: string | undefined;
|
|
132
134
|
expiredAt?: Date | undefined;
|
|
135
|
+
metadata?: Record<string, any> | undefined;
|
|
133
136
|
}[] | undefined;
|
|
134
137
|
};
|
|
135
138
|
attempts: ({
|
|
@@ -167,13 +170,18 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
167
170
|
delayedUntil?: Date | undefined;
|
|
168
171
|
ttl?: string | undefined;
|
|
169
172
|
expiredAt?: Date | undefined;
|
|
173
|
+
metadata?: Record<string, any> | undefined;
|
|
170
174
|
}, "output"> & {
|
|
171
175
|
output?: TOutput;
|
|
172
176
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
173
177
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
174
178
|
id: string;
|
|
175
|
-
createdAt: Date;
|
|
176
179
|
tags: string[];
|
|
180
|
+
isTest: boolean;
|
|
181
|
+
createdAt: Date;
|
|
182
|
+
durationMs: number;
|
|
183
|
+
costInCents: number;
|
|
184
|
+
baseCostInCents: number;
|
|
177
185
|
depth: number;
|
|
178
186
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
179
187
|
taskIdentifier: string;
|
|
@@ -183,17 +191,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
183
191
|
isSuccess: boolean;
|
|
184
192
|
isFailed: boolean;
|
|
185
193
|
isCancelled: boolean;
|
|
186
|
-
isTest: boolean;
|
|
187
194
|
updatedAt: Date;
|
|
188
|
-
costInCents: number;
|
|
189
|
-
baseCostInCents: number;
|
|
190
|
-
durationMs: number;
|
|
191
195
|
relatedRuns: {
|
|
192
196
|
root?: {
|
|
193
197
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
194
198
|
id: string;
|
|
195
|
-
createdAt: Date;
|
|
196
199
|
tags: string[];
|
|
200
|
+
isTest: boolean;
|
|
201
|
+
createdAt: Date;
|
|
202
|
+
durationMs: number;
|
|
203
|
+
costInCents: number;
|
|
204
|
+
baseCostInCents: number;
|
|
197
205
|
depth: number;
|
|
198
206
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
199
207
|
taskIdentifier: string;
|
|
@@ -203,11 +211,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
203
211
|
isSuccess: boolean;
|
|
204
212
|
isFailed: boolean;
|
|
205
213
|
isCancelled: boolean;
|
|
206
|
-
isTest: boolean;
|
|
207
214
|
updatedAt: Date;
|
|
208
|
-
costInCents: number;
|
|
209
|
-
baseCostInCents: number;
|
|
210
|
-
durationMs: number;
|
|
211
215
|
batchId?: string | undefined;
|
|
212
216
|
idempotencyKey?: string | undefined;
|
|
213
217
|
version?: string | undefined;
|
|
@@ -216,12 +220,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
216
220
|
delayedUntil?: Date | undefined;
|
|
217
221
|
ttl?: string | undefined;
|
|
218
222
|
expiredAt?: Date | undefined;
|
|
223
|
+
metadata?: Record<string, any> | undefined;
|
|
219
224
|
} | undefined;
|
|
220
225
|
parent?: {
|
|
221
226
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
222
227
|
id: string;
|
|
223
|
-
createdAt: Date;
|
|
224
228
|
tags: string[];
|
|
229
|
+
isTest: boolean;
|
|
230
|
+
createdAt: Date;
|
|
231
|
+
durationMs: number;
|
|
232
|
+
costInCents: number;
|
|
233
|
+
baseCostInCents: number;
|
|
225
234
|
depth: number;
|
|
226
235
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
227
236
|
taskIdentifier: string;
|
|
@@ -231,11 +240,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
231
240
|
isSuccess: boolean;
|
|
232
241
|
isFailed: boolean;
|
|
233
242
|
isCancelled: boolean;
|
|
234
|
-
isTest: boolean;
|
|
235
243
|
updatedAt: Date;
|
|
236
|
-
costInCents: number;
|
|
237
|
-
baseCostInCents: number;
|
|
238
|
-
durationMs: number;
|
|
239
244
|
batchId?: string | undefined;
|
|
240
245
|
idempotencyKey?: string | undefined;
|
|
241
246
|
version?: string | undefined;
|
|
@@ -244,12 +249,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
244
249
|
delayedUntil?: Date | undefined;
|
|
245
250
|
ttl?: string | undefined;
|
|
246
251
|
expiredAt?: Date | undefined;
|
|
252
|
+
metadata?: Record<string, any> | undefined;
|
|
247
253
|
} | undefined;
|
|
248
254
|
children?: {
|
|
249
255
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
250
256
|
id: string;
|
|
251
|
-
createdAt: Date;
|
|
252
257
|
tags: string[];
|
|
258
|
+
isTest: boolean;
|
|
259
|
+
createdAt: Date;
|
|
260
|
+
durationMs: number;
|
|
261
|
+
costInCents: number;
|
|
262
|
+
baseCostInCents: number;
|
|
253
263
|
depth: number;
|
|
254
264
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
255
265
|
taskIdentifier: string;
|
|
@@ -259,11 +269,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
259
269
|
isSuccess: boolean;
|
|
260
270
|
isFailed: boolean;
|
|
261
271
|
isCancelled: boolean;
|
|
262
|
-
isTest: boolean;
|
|
263
272
|
updatedAt: Date;
|
|
264
|
-
costInCents: number;
|
|
265
|
-
baseCostInCents: number;
|
|
266
|
-
durationMs: number;
|
|
267
273
|
batchId?: string | undefined;
|
|
268
274
|
idempotencyKey?: string | undefined;
|
|
269
275
|
version?: string | undefined;
|
|
@@ -272,6 +278,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
272
278
|
delayedUntil?: Date | undefined;
|
|
273
279
|
ttl?: string | undefined;
|
|
274
280
|
expiredAt?: Date | undefined;
|
|
281
|
+
metadata?: Record<string, any> | undefined;
|
|
275
282
|
}[] | undefined;
|
|
276
283
|
};
|
|
277
284
|
attempts: ({
|
|
@@ -309,13 +316,18 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
309
316
|
delayedUntil?: Date | undefined;
|
|
310
317
|
ttl?: string | undefined;
|
|
311
318
|
expiredAt?: Date | undefined;
|
|
319
|
+
metadata?: Record<string, any> | undefined;
|
|
312
320
|
}, "output"> & {
|
|
313
321
|
output?: TTaskOutput;
|
|
314
322
|
} : TRunId extends string ? {
|
|
315
323
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
316
324
|
id: string;
|
|
317
|
-
createdAt: Date;
|
|
318
325
|
tags: string[];
|
|
326
|
+
isTest: boolean;
|
|
327
|
+
createdAt: Date;
|
|
328
|
+
durationMs: number;
|
|
329
|
+
costInCents: number;
|
|
330
|
+
baseCostInCents: number;
|
|
319
331
|
depth: number;
|
|
320
332
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
321
333
|
taskIdentifier: string;
|
|
@@ -325,17 +337,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
325
337
|
isSuccess: boolean;
|
|
326
338
|
isFailed: boolean;
|
|
327
339
|
isCancelled: boolean;
|
|
328
|
-
isTest: boolean;
|
|
329
340
|
updatedAt: Date;
|
|
330
|
-
costInCents: number;
|
|
331
|
-
baseCostInCents: number;
|
|
332
|
-
durationMs: number;
|
|
333
341
|
relatedRuns: {
|
|
334
342
|
root?: {
|
|
335
343
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
336
344
|
id: string;
|
|
337
|
-
createdAt: Date;
|
|
338
345
|
tags: string[];
|
|
346
|
+
isTest: boolean;
|
|
347
|
+
createdAt: Date;
|
|
348
|
+
durationMs: number;
|
|
349
|
+
costInCents: number;
|
|
350
|
+
baseCostInCents: number;
|
|
339
351
|
depth: number;
|
|
340
352
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
341
353
|
taskIdentifier: string;
|
|
@@ -345,11 +357,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
345
357
|
isSuccess: boolean;
|
|
346
358
|
isFailed: boolean;
|
|
347
359
|
isCancelled: boolean;
|
|
348
|
-
isTest: boolean;
|
|
349
360
|
updatedAt: Date;
|
|
350
|
-
costInCents: number;
|
|
351
|
-
baseCostInCents: number;
|
|
352
|
-
durationMs: number;
|
|
353
361
|
batchId?: string | undefined;
|
|
354
362
|
idempotencyKey?: string | undefined;
|
|
355
363
|
version?: string | undefined;
|
|
@@ -358,12 +366,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
358
366
|
delayedUntil?: Date | undefined;
|
|
359
367
|
ttl?: string | undefined;
|
|
360
368
|
expiredAt?: Date | undefined;
|
|
369
|
+
metadata?: Record<string, any> | undefined;
|
|
361
370
|
} | undefined;
|
|
362
371
|
parent?: {
|
|
363
372
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
364
373
|
id: string;
|
|
365
|
-
createdAt: Date;
|
|
366
374
|
tags: string[];
|
|
375
|
+
isTest: boolean;
|
|
376
|
+
createdAt: Date;
|
|
377
|
+
durationMs: number;
|
|
378
|
+
costInCents: number;
|
|
379
|
+
baseCostInCents: number;
|
|
367
380
|
depth: number;
|
|
368
381
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
369
382
|
taskIdentifier: string;
|
|
@@ -373,11 +386,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
373
386
|
isSuccess: boolean;
|
|
374
387
|
isFailed: boolean;
|
|
375
388
|
isCancelled: boolean;
|
|
376
|
-
isTest: boolean;
|
|
377
389
|
updatedAt: Date;
|
|
378
|
-
costInCents: number;
|
|
379
|
-
baseCostInCents: number;
|
|
380
|
-
durationMs: number;
|
|
381
390
|
batchId?: string | undefined;
|
|
382
391
|
idempotencyKey?: string | undefined;
|
|
383
392
|
version?: string | undefined;
|
|
@@ -386,12 +395,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
386
395
|
delayedUntil?: Date | undefined;
|
|
387
396
|
ttl?: string | undefined;
|
|
388
397
|
expiredAt?: Date | undefined;
|
|
398
|
+
metadata?: Record<string, any> | undefined;
|
|
389
399
|
} | undefined;
|
|
390
400
|
children?: {
|
|
391
401
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
392
402
|
id: string;
|
|
393
|
-
createdAt: Date;
|
|
394
403
|
tags: string[];
|
|
404
|
+
isTest: boolean;
|
|
405
|
+
createdAt: Date;
|
|
406
|
+
durationMs: number;
|
|
407
|
+
costInCents: number;
|
|
408
|
+
baseCostInCents: number;
|
|
395
409
|
depth: number;
|
|
396
410
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
397
411
|
taskIdentifier: string;
|
|
@@ -401,11 +415,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
401
415
|
isSuccess: boolean;
|
|
402
416
|
isFailed: boolean;
|
|
403
417
|
isCancelled: boolean;
|
|
404
|
-
isTest: boolean;
|
|
405
418
|
updatedAt: Date;
|
|
406
|
-
costInCents: number;
|
|
407
|
-
baseCostInCents: number;
|
|
408
|
-
durationMs: number;
|
|
409
419
|
batchId?: string | undefined;
|
|
410
420
|
idempotencyKey?: string | undefined;
|
|
411
421
|
version?: string | undefined;
|
|
@@ -414,6 +424,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
414
424
|
delayedUntil?: Date | undefined;
|
|
415
425
|
ttl?: string | undefined;
|
|
416
426
|
expiredAt?: Date | undefined;
|
|
427
|
+
metadata?: Record<string, any> | undefined;
|
|
417
428
|
}[] | undefined;
|
|
418
429
|
};
|
|
419
430
|
attempts: ({
|
|
@@ -451,11 +462,16 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
451
462
|
delayedUntil?: Date | undefined;
|
|
452
463
|
ttl?: string | undefined;
|
|
453
464
|
expiredAt?: Date | undefined;
|
|
465
|
+
metadata?: Record<string, any> | undefined;
|
|
454
466
|
} : never) extends infer T ? { [K in keyof T]: (TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
455
467
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
456
468
|
id: string;
|
|
457
|
-
createdAt: Date;
|
|
458
469
|
tags: string[];
|
|
470
|
+
isTest: boolean;
|
|
471
|
+
createdAt: Date;
|
|
472
|
+
durationMs: number;
|
|
473
|
+
costInCents: number;
|
|
474
|
+
baseCostInCents: number;
|
|
459
475
|
depth: number;
|
|
460
476
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
461
477
|
taskIdentifier: string;
|
|
@@ -465,17 +481,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
465
481
|
isSuccess: boolean;
|
|
466
482
|
isFailed: boolean;
|
|
467
483
|
isCancelled: boolean;
|
|
468
|
-
isTest: boolean;
|
|
469
484
|
updatedAt: Date;
|
|
470
|
-
costInCents: number;
|
|
471
|
-
baseCostInCents: number;
|
|
472
|
-
durationMs: number;
|
|
473
485
|
relatedRuns: {
|
|
474
486
|
root?: {
|
|
475
487
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
476
488
|
id: string;
|
|
477
|
-
createdAt: Date;
|
|
478
489
|
tags: string[];
|
|
490
|
+
isTest: boolean;
|
|
491
|
+
createdAt: Date;
|
|
492
|
+
durationMs: number;
|
|
493
|
+
costInCents: number;
|
|
494
|
+
baseCostInCents: number;
|
|
479
495
|
depth: number;
|
|
480
496
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
481
497
|
taskIdentifier: string;
|
|
@@ -485,11 +501,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
485
501
|
isSuccess: boolean;
|
|
486
502
|
isFailed: boolean;
|
|
487
503
|
isCancelled: boolean;
|
|
488
|
-
isTest: boolean;
|
|
489
504
|
updatedAt: Date;
|
|
490
|
-
costInCents: number;
|
|
491
|
-
baseCostInCents: number;
|
|
492
|
-
durationMs: number;
|
|
493
505
|
batchId?: string | undefined;
|
|
494
506
|
idempotencyKey?: string | undefined;
|
|
495
507
|
version?: string | undefined;
|
|
@@ -498,12 +510,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
498
510
|
delayedUntil?: Date | undefined;
|
|
499
511
|
ttl?: string | undefined;
|
|
500
512
|
expiredAt?: Date | undefined;
|
|
513
|
+
metadata?: Record<string, any> | undefined;
|
|
501
514
|
} | undefined;
|
|
502
515
|
parent?: {
|
|
503
516
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
504
517
|
id: string;
|
|
505
|
-
createdAt: Date;
|
|
506
518
|
tags: string[];
|
|
519
|
+
isTest: boolean;
|
|
520
|
+
createdAt: Date;
|
|
521
|
+
durationMs: number;
|
|
522
|
+
costInCents: number;
|
|
523
|
+
baseCostInCents: number;
|
|
507
524
|
depth: number;
|
|
508
525
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
509
526
|
taskIdentifier: string;
|
|
@@ -513,11 +530,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
513
530
|
isSuccess: boolean;
|
|
514
531
|
isFailed: boolean;
|
|
515
532
|
isCancelled: boolean;
|
|
516
|
-
isTest: boolean;
|
|
517
533
|
updatedAt: Date;
|
|
518
|
-
costInCents: number;
|
|
519
|
-
baseCostInCents: number;
|
|
520
|
-
durationMs: number;
|
|
521
534
|
batchId?: string | undefined;
|
|
522
535
|
idempotencyKey?: string | undefined;
|
|
523
536
|
version?: string | undefined;
|
|
@@ -526,12 +539,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
526
539
|
delayedUntil?: Date | undefined;
|
|
527
540
|
ttl?: string | undefined;
|
|
528
541
|
expiredAt?: Date | undefined;
|
|
542
|
+
metadata?: Record<string, any> | undefined;
|
|
529
543
|
} | undefined;
|
|
530
544
|
children?: {
|
|
531
545
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
532
546
|
id: string;
|
|
533
|
-
createdAt: Date;
|
|
534
547
|
tags: string[];
|
|
548
|
+
isTest: boolean;
|
|
549
|
+
createdAt: Date;
|
|
550
|
+
durationMs: number;
|
|
551
|
+
costInCents: number;
|
|
552
|
+
baseCostInCents: number;
|
|
535
553
|
depth: number;
|
|
536
554
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
537
555
|
taskIdentifier: string;
|
|
@@ -541,11 +559,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
541
559
|
isSuccess: boolean;
|
|
542
560
|
isFailed: boolean;
|
|
543
561
|
isCancelled: boolean;
|
|
544
|
-
isTest: boolean;
|
|
545
562
|
updatedAt: Date;
|
|
546
|
-
costInCents: number;
|
|
547
|
-
baseCostInCents: number;
|
|
548
|
-
durationMs: number;
|
|
549
563
|
batchId?: string | undefined;
|
|
550
564
|
idempotencyKey?: string | undefined;
|
|
551
565
|
version?: string | undefined;
|
|
@@ -554,6 +568,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
554
568
|
delayedUntil?: Date | undefined;
|
|
555
569
|
ttl?: string | undefined;
|
|
556
570
|
expiredAt?: Date | undefined;
|
|
571
|
+
metadata?: Record<string, any> | undefined;
|
|
557
572
|
}[] | undefined;
|
|
558
573
|
};
|
|
559
574
|
attempts: ({
|
|
@@ -591,13 +606,18 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
591
606
|
delayedUntil?: Date | undefined;
|
|
592
607
|
ttl?: string | undefined;
|
|
593
608
|
expiredAt?: Date | undefined;
|
|
609
|
+
metadata?: Record<string, any> | undefined;
|
|
594
610
|
}, "output"> & {
|
|
595
611
|
output?: TOutput;
|
|
596
612
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
597
613
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
598
614
|
id: string;
|
|
599
|
-
createdAt: Date;
|
|
600
615
|
tags: string[];
|
|
616
|
+
isTest: boolean;
|
|
617
|
+
createdAt: Date;
|
|
618
|
+
durationMs: number;
|
|
619
|
+
costInCents: number;
|
|
620
|
+
baseCostInCents: number;
|
|
601
621
|
depth: number;
|
|
602
622
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
603
623
|
taskIdentifier: string;
|
|
@@ -607,17 +627,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
607
627
|
isSuccess: boolean;
|
|
608
628
|
isFailed: boolean;
|
|
609
629
|
isCancelled: boolean;
|
|
610
|
-
isTest: boolean;
|
|
611
630
|
updatedAt: Date;
|
|
612
|
-
costInCents: number;
|
|
613
|
-
baseCostInCents: number;
|
|
614
|
-
durationMs: number;
|
|
615
631
|
relatedRuns: {
|
|
616
632
|
root?: {
|
|
617
633
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
618
634
|
id: string;
|
|
619
|
-
createdAt: Date;
|
|
620
635
|
tags: string[];
|
|
636
|
+
isTest: boolean;
|
|
637
|
+
createdAt: Date;
|
|
638
|
+
durationMs: number;
|
|
639
|
+
costInCents: number;
|
|
640
|
+
baseCostInCents: number;
|
|
621
641
|
depth: number;
|
|
622
642
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
623
643
|
taskIdentifier: string;
|
|
@@ -627,11 +647,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
627
647
|
isSuccess: boolean;
|
|
628
648
|
isFailed: boolean;
|
|
629
649
|
isCancelled: boolean;
|
|
630
|
-
isTest: boolean;
|
|
631
650
|
updatedAt: Date;
|
|
632
|
-
costInCents: number;
|
|
633
|
-
baseCostInCents: number;
|
|
634
|
-
durationMs: number;
|
|
635
651
|
batchId?: string | undefined;
|
|
636
652
|
idempotencyKey?: string | undefined;
|
|
637
653
|
version?: string | undefined;
|
|
@@ -640,12 +656,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
640
656
|
delayedUntil?: Date | undefined;
|
|
641
657
|
ttl?: string | undefined;
|
|
642
658
|
expiredAt?: Date | undefined;
|
|
659
|
+
metadata?: Record<string, any> | undefined;
|
|
643
660
|
} | undefined;
|
|
644
661
|
parent?: {
|
|
645
662
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
646
663
|
id: string;
|
|
647
|
-
createdAt: Date;
|
|
648
664
|
tags: string[];
|
|
665
|
+
isTest: boolean;
|
|
666
|
+
createdAt: Date;
|
|
667
|
+
durationMs: number;
|
|
668
|
+
costInCents: number;
|
|
669
|
+
baseCostInCents: number;
|
|
649
670
|
depth: number;
|
|
650
671
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
651
672
|
taskIdentifier: string;
|
|
@@ -655,11 +676,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
655
676
|
isSuccess: boolean;
|
|
656
677
|
isFailed: boolean;
|
|
657
678
|
isCancelled: boolean;
|
|
658
|
-
isTest: boolean;
|
|
659
679
|
updatedAt: Date;
|
|
660
|
-
costInCents: number;
|
|
661
|
-
baseCostInCents: number;
|
|
662
|
-
durationMs: number;
|
|
663
680
|
batchId?: string | undefined;
|
|
664
681
|
idempotencyKey?: string | undefined;
|
|
665
682
|
version?: string | undefined;
|
|
@@ -668,12 +685,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
668
685
|
delayedUntil?: Date | undefined;
|
|
669
686
|
ttl?: string | undefined;
|
|
670
687
|
expiredAt?: Date | undefined;
|
|
688
|
+
metadata?: Record<string, any> | undefined;
|
|
671
689
|
} | undefined;
|
|
672
690
|
children?: {
|
|
673
691
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
674
692
|
id: string;
|
|
675
|
-
createdAt: Date;
|
|
676
693
|
tags: string[];
|
|
694
|
+
isTest: boolean;
|
|
695
|
+
createdAt: Date;
|
|
696
|
+
durationMs: number;
|
|
697
|
+
costInCents: number;
|
|
698
|
+
baseCostInCents: number;
|
|
677
699
|
depth: number;
|
|
678
700
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
679
701
|
taskIdentifier: string;
|
|
@@ -683,11 +705,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
683
705
|
isSuccess: boolean;
|
|
684
706
|
isFailed: boolean;
|
|
685
707
|
isCancelled: boolean;
|
|
686
|
-
isTest: boolean;
|
|
687
708
|
updatedAt: Date;
|
|
688
|
-
costInCents: number;
|
|
689
|
-
baseCostInCents: number;
|
|
690
|
-
durationMs: number;
|
|
691
709
|
batchId?: string | undefined;
|
|
692
710
|
idempotencyKey?: string | undefined;
|
|
693
711
|
version?: string | undefined;
|
|
@@ -696,6 +714,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
696
714
|
delayedUntil?: Date | undefined;
|
|
697
715
|
ttl?: string | undefined;
|
|
698
716
|
expiredAt?: Date | undefined;
|
|
717
|
+
metadata?: Record<string, any> | undefined;
|
|
699
718
|
}[] | undefined;
|
|
700
719
|
};
|
|
701
720
|
attempts: ({
|
|
@@ -733,13 +752,18 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
733
752
|
delayedUntil?: Date | undefined;
|
|
734
753
|
ttl?: string | undefined;
|
|
735
754
|
expiredAt?: Date | undefined;
|
|
755
|
+
metadata?: Record<string, any> | undefined;
|
|
736
756
|
}, "output"> & {
|
|
737
757
|
output?: TTaskOutput;
|
|
738
758
|
} : TRunId extends string ? {
|
|
739
759
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
740
760
|
id: string;
|
|
741
|
-
createdAt: Date;
|
|
742
761
|
tags: string[];
|
|
762
|
+
isTest: boolean;
|
|
763
|
+
createdAt: Date;
|
|
764
|
+
durationMs: number;
|
|
765
|
+
costInCents: number;
|
|
766
|
+
baseCostInCents: number;
|
|
743
767
|
depth: number;
|
|
744
768
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
745
769
|
taskIdentifier: string;
|
|
@@ -749,17 +773,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
749
773
|
isSuccess: boolean;
|
|
750
774
|
isFailed: boolean;
|
|
751
775
|
isCancelled: boolean;
|
|
752
|
-
isTest: boolean;
|
|
753
776
|
updatedAt: Date;
|
|
754
|
-
costInCents: number;
|
|
755
|
-
baseCostInCents: number;
|
|
756
|
-
durationMs: number;
|
|
757
777
|
relatedRuns: {
|
|
758
778
|
root?: {
|
|
759
779
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
760
780
|
id: string;
|
|
761
|
-
createdAt: Date;
|
|
762
781
|
tags: string[];
|
|
782
|
+
isTest: boolean;
|
|
783
|
+
createdAt: Date;
|
|
784
|
+
durationMs: number;
|
|
785
|
+
costInCents: number;
|
|
786
|
+
baseCostInCents: number;
|
|
763
787
|
depth: number;
|
|
764
788
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
765
789
|
taskIdentifier: string;
|
|
@@ -769,11 +793,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
769
793
|
isSuccess: boolean;
|
|
770
794
|
isFailed: boolean;
|
|
771
795
|
isCancelled: boolean;
|
|
772
|
-
isTest: boolean;
|
|
773
796
|
updatedAt: Date;
|
|
774
|
-
costInCents: number;
|
|
775
|
-
baseCostInCents: number;
|
|
776
|
-
durationMs: number;
|
|
777
797
|
batchId?: string | undefined;
|
|
778
798
|
idempotencyKey?: string | undefined;
|
|
779
799
|
version?: string | undefined;
|
|
@@ -782,12 +802,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
782
802
|
delayedUntil?: Date | undefined;
|
|
783
803
|
ttl?: string | undefined;
|
|
784
804
|
expiredAt?: Date | undefined;
|
|
805
|
+
metadata?: Record<string, any> | undefined;
|
|
785
806
|
} | undefined;
|
|
786
807
|
parent?: {
|
|
787
808
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
788
809
|
id: string;
|
|
789
|
-
createdAt: Date;
|
|
790
810
|
tags: string[];
|
|
811
|
+
isTest: boolean;
|
|
812
|
+
createdAt: Date;
|
|
813
|
+
durationMs: number;
|
|
814
|
+
costInCents: number;
|
|
815
|
+
baseCostInCents: number;
|
|
791
816
|
depth: number;
|
|
792
817
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
793
818
|
taskIdentifier: string;
|
|
@@ -797,11 +822,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
797
822
|
isSuccess: boolean;
|
|
798
823
|
isFailed: boolean;
|
|
799
824
|
isCancelled: boolean;
|
|
800
|
-
isTest: boolean;
|
|
801
825
|
updatedAt: Date;
|
|
802
|
-
costInCents: number;
|
|
803
|
-
baseCostInCents: number;
|
|
804
|
-
durationMs: number;
|
|
805
826
|
batchId?: string | undefined;
|
|
806
827
|
idempotencyKey?: string | undefined;
|
|
807
828
|
version?: string | undefined;
|
|
@@ -810,12 +831,17 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
810
831
|
delayedUntil?: Date | undefined;
|
|
811
832
|
ttl?: string | undefined;
|
|
812
833
|
expiredAt?: Date | undefined;
|
|
834
|
+
metadata?: Record<string, any> | undefined;
|
|
813
835
|
} | undefined;
|
|
814
836
|
children?: {
|
|
815
837
|
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
816
838
|
id: string;
|
|
817
|
-
createdAt: Date;
|
|
818
839
|
tags: string[];
|
|
840
|
+
isTest: boolean;
|
|
841
|
+
createdAt: Date;
|
|
842
|
+
durationMs: number;
|
|
843
|
+
costInCents: number;
|
|
844
|
+
baseCostInCents: number;
|
|
819
845
|
depth: number;
|
|
820
846
|
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
821
847
|
taskIdentifier: string;
|
|
@@ -825,11 +851,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
825
851
|
isSuccess: boolean;
|
|
826
852
|
isFailed: boolean;
|
|
827
853
|
isCancelled: boolean;
|
|
828
|
-
isTest: boolean;
|
|
829
854
|
updatedAt: Date;
|
|
830
|
-
costInCents: number;
|
|
831
|
-
baseCostInCents: number;
|
|
832
|
-
durationMs: number;
|
|
833
855
|
batchId?: string | undefined;
|
|
834
856
|
idempotencyKey?: string | undefined;
|
|
835
857
|
version?: string | undefined;
|
|
@@ -838,6 +860,7 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
838
860
|
delayedUntil?: Date | undefined;
|
|
839
861
|
ttl?: string | undefined;
|
|
840
862
|
expiredAt?: Date | undefined;
|
|
863
|
+
metadata?: Record<string, any> | undefined;
|
|
841
864
|
}[] | undefined;
|
|
842
865
|
};
|
|
843
866
|
attempts: ({
|
|
@@ -875,5 +898,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
875
898
|
delayedUntil?: Date | undefined;
|
|
876
899
|
ttl?: string | undefined;
|
|
877
900
|
expiredAt?: Date | undefined;
|
|
901
|
+
metadata?: Record<string, any> | undefined;
|
|
878
902
|
} : never)[K]; } : never>;
|
|
879
903
|
export {};
|