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