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