@trigger.dev/core 0.0.0-prerelease-20241219214230 → 0.0.0-prerelease-20250110154019
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/apiClient/index.d.ts +169 -165
- package/dist/commonjs/v3/apiClient/index.js +9 -0
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.d.ts +2 -17
- package/dist/commonjs/v3/apiClient/runStream.js +68 -47
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
- package/dist/commonjs/v3/config.d.ts +55 -0
- package/dist/commonjs/v3/runMetadata/manager.d.ts +3 -3
- package/dist/commonjs/v3/runMetadata/manager.js +1 -7
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +820 -820
- package/dist/commonjs/v3/schemas/api.js +15 -7
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +250 -250
- package/dist/commonjs/v3/schemas/fetch.d.ts +31 -31
- package/dist/commonjs/v3/schemas/messages.d.ts +3714 -3714
- package/dist/commonjs/v3/schemas/resources.d.ts +82 -82
- package/dist/commonjs/v3/schemas/schemas.d.ts +424 -424
- package/dist/commonjs/v3/types/tasks.d.ts +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/schemas/api.d.ts +8 -8
- package/dist/esm/v3/apiClient/index.d.ts +141 -137
- package/dist/esm/v3/apiClient/index.js +10 -1
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.d.ts +2 -17
- package/dist/esm/v3/apiClient/runStream.js +67 -44
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/config.d.ts +55 -0
- package/dist/esm/v3/runMetadata/manager.d.ts +3 -3
- package/dist/esm/v3/runMetadata/manager.js +1 -7
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +712 -712
- package/dist/esm/v3/schemas/api.js +15 -7
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +100 -100
- package/dist/esm/v3/schemas/messages.d.ts +2391 -2391
- package/dist/esm/v3/schemas/resources.d.ts +56 -56
- package/dist/esm/v3/schemas/schemas.d.ts +224 -224
- package/dist/esm/v3/types/tasks.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -26,15 +26,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
26
26
|
status: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
number: number;
|
|
29
|
-
id: string;
|
|
30
29
|
status: string;
|
|
30
|
+
id: string;
|
|
31
31
|
startedAt: Date;
|
|
32
32
|
backgroundWorkerId: string;
|
|
33
33
|
backgroundWorkerTaskId: string;
|
|
34
34
|
}, {
|
|
35
35
|
number: number;
|
|
36
|
-
id: string;
|
|
37
36
|
status: string;
|
|
37
|
+
id: string;
|
|
38
38
|
startedAt: Date;
|
|
39
39
|
backgroundWorkerId: string;
|
|
40
40
|
backgroundWorkerTaskId: string;
|
|
@@ -58,60 +58,60 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
58
58
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
id: string;
|
|
61
|
+
startedAt: Date;
|
|
61
62
|
payload: string;
|
|
62
63
|
payloadType: string;
|
|
63
64
|
tags: string[];
|
|
64
65
|
isTest: boolean;
|
|
65
66
|
createdAt: Date;
|
|
66
|
-
|
|
67
|
+
durationMs: number;
|
|
67
68
|
costInCents: number;
|
|
68
69
|
baseCostInCents: number;
|
|
69
|
-
durationMs: number;
|
|
70
70
|
context?: any;
|
|
71
71
|
idempotencyKey?: string | undefined;
|
|
72
72
|
maxAttempts?: number | undefined;
|
|
73
|
+
version?: string | undefined;
|
|
73
74
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
74
75
|
maxDuration?: number | undefined;
|
|
75
|
-
version?: string | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
id: string;
|
|
78
78
|
payload: string;
|
|
79
79
|
payloadType: string;
|
|
80
80
|
tags: string[];
|
|
81
81
|
createdAt: Date;
|
|
82
|
+
startedAt?: Date | undefined;
|
|
82
83
|
context?: any;
|
|
84
|
+
isTest?: boolean | undefined;
|
|
83
85
|
idempotencyKey?: string | undefined;
|
|
84
86
|
maxAttempts?: number | undefined;
|
|
85
|
-
|
|
86
|
-
maxDuration?: number | undefined;
|
|
87
|
-
version?: string | undefined;
|
|
88
|
-
isTest?: boolean | undefined;
|
|
89
|
-
startedAt?: Date | undefined;
|
|
87
|
+
durationMs?: number | undefined;
|
|
90
88
|
costInCents?: number | undefined;
|
|
91
89
|
baseCostInCents?: number | undefined;
|
|
92
|
-
|
|
90
|
+
version?: string | undefined;
|
|
91
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
92
|
+
maxDuration?: number | undefined;
|
|
93
93
|
}>;
|
|
94
94
|
queue: z.ZodObject<{
|
|
95
95
|
id: z.ZodString;
|
|
96
96
|
name: z.ZodString;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
|
-
id: string;
|
|
99
98
|
name: string;
|
|
100
|
-
}, {
|
|
101
99
|
id: string;
|
|
100
|
+
}, {
|
|
102
101
|
name: string;
|
|
102
|
+
id: string;
|
|
103
103
|
}>;
|
|
104
104
|
environment: z.ZodObject<{
|
|
105
105
|
id: z.ZodString;
|
|
106
106
|
slug: z.ZodString;
|
|
107
107
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
id: string;
|
|
110
109
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
110
|
+
id: string;
|
|
111
111
|
slug: string;
|
|
112
112
|
}, {
|
|
113
|
-
id: string;
|
|
114
113
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
114
|
+
id: string;
|
|
115
115
|
slug: string;
|
|
116
116
|
}>;
|
|
117
117
|
organization: z.ZodObject<{
|
|
@@ -119,12 +119,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
119
119
|
slug: z.ZodString;
|
|
120
120
|
name: z.ZodString;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
id: string;
|
|
123
122
|
name: string;
|
|
123
|
+
id: string;
|
|
124
124
|
slug: string;
|
|
125
125
|
}, {
|
|
126
|
-
id: string;
|
|
127
126
|
name: string;
|
|
127
|
+
id: string;
|
|
128
128
|
slug: string;
|
|
129
129
|
}>;
|
|
130
130
|
project: z.ZodObject<{
|
|
@@ -133,13 +133,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
133
133
|
slug: z.ZodString;
|
|
134
134
|
name: z.ZodString;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
id: string;
|
|
137
136
|
name: string;
|
|
137
|
+
id: string;
|
|
138
138
|
slug: string;
|
|
139
139
|
ref: string;
|
|
140
140
|
}, {
|
|
141
|
-
id: string;
|
|
142
141
|
name: string;
|
|
142
|
+
id: string;
|
|
143
143
|
slug: string;
|
|
144
144
|
ref: string;
|
|
145
145
|
}>;
|
|
@@ -167,10 +167,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
167
167
|
centsPerMs: number;
|
|
168
168
|
}>>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
queue: {
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
};
|
|
174
170
|
task: {
|
|
175
171
|
id: string;
|
|
176
172
|
filePath: string;
|
|
@@ -178,43 +174,47 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
178
174
|
};
|
|
179
175
|
attempt: {
|
|
180
176
|
number: number;
|
|
181
|
-
id: string;
|
|
182
177
|
status: string;
|
|
178
|
+
id: string;
|
|
183
179
|
startedAt: Date;
|
|
184
180
|
backgroundWorkerId: string;
|
|
185
181
|
backgroundWorkerTaskId: string;
|
|
186
182
|
};
|
|
187
183
|
run: {
|
|
188
184
|
id: string;
|
|
185
|
+
startedAt: Date;
|
|
189
186
|
payload: string;
|
|
190
187
|
payloadType: string;
|
|
191
188
|
tags: string[];
|
|
192
189
|
isTest: boolean;
|
|
193
190
|
createdAt: Date;
|
|
194
|
-
|
|
191
|
+
durationMs: number;
|
|
195
192
|
costInCents: number;
|
|
196
193
|
baseCostInCents: number;
|
|
197
|
-
durationMs: number;
|
|
198
194
|
context?: any;
|
|
199
195
|
idempotencyKey?: string | undefined;
|
|
200
196
|
maxAttempts?: number | undefined;
|
|
197
|
+
version?: string | undefined;
|
|
201
198
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
202
199
|
maxDuration?: number | undefined;
|
|
203
|
-
version?: string | undefined;
|
|
204
200
|
};
|
|
205
|
-
|
|
201
|
+
queue: {
|
|
202
|
+
name: string;
|
|
206
203
|
id: string;
|
|
204
|
+
};
|
|
205
|
+
environment: {
|
|
207
206
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
207
|
+
id: string;
|
|
208
208
|
slug: string;
|
|
209
209
|
};
|
|
210
210
|
organization: {
|
|
211
|
-
id: string;
|
|
212
211
|
name: string;
|
|
212
|
+
id: string;
|
|
213
213
|
slug: string;
|
|
214
214
|
};
|
|
215
215
|
project: {
|
|
216
|
-
id: string;
|
|
217
216
|
name: string;
|
|
217
|
+
id: string;
|
|
218
218
|
slug: string;
|
|
219
219
|
ref: string;
|
|
220
220
|
};
|
|
@@ -228,10 +228,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
228
228
|
centsPerMs: number;
|
|
229
229
|
} | undefined;
|
|
230
230
|
}, {
|
|
231
|
-
queue: {
|
|
232
|
-
id: string;
|
|
233
|
-
name: string;
|
|
234
|
-
};
|
|
235
231
|
task: {
|
|
236
232
|
id: string;
|
|
237
233
|
filePath: string;
|
|
@@ -239,8 +235,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
239
235
|
};
|
|
240
236
|
attempt: {
|
|
241
237
|
number: number;
|
|
242
|
-
id: string;
|
|
243
238
|
status: string;
|
|
239
|
+
id: string;
|
|
244
240
|
startedAt: Date;
|
|
245
241
|
backgroundWorkerId: string;
|
|
246
242
|
backgroundWorkerTaskId: string;
|
|
@@ -251,31 +247,35 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
251
247
|
payloadType: string;
|
|
252
248
|
tags: string[];
|
|
253
249
|
createdAt: Date;
|
|
250
|
+
startedAt?: Date | undefined;
|
|
254
251
|
context?: any;
|
|
252
|
+
isTest?: boolean | undefined;
|
|
255
253
|
idempotencyKey?: string | undefined;
|
|
256
254
|
maxAttempts?: number | undefined;
|
|
257
|
-
|
|
258
|
-
maxDuration?: number | undefined;
|
|
259
|
-
version?: string | undefined;
|
|
260
|
-
isTest?: boolean | undefined;
|
|
261
|
-
startedAt?: Date | undefined;
|
|
255
|
+
durationMs?: number | undefined;
|
|
262
256
|
costInCents?: number | undefined;
|
|
263
257
|
baseCostInCents?: number | undefined;
|
|
264
|
-
|
|
258
|
+
version?: string | undefined;
|
|
259
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
260
|
+
maxDuration?: number | undefined;
|
|
265
261
|
};
|
|
266
|
-
|
|
262
|
+
queue: {
|
|
263
|
+
name: string;
|
|
267
264
|
id: string;
|
|
265
|
+
};
|
|
266
|
+
environment: {
|
|
268
267
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
268
|
+
id: string;
|
|
269
269
|
slug: string;
|
|
270
270
|
};
|
|
271
271
|
organization: {
|
|
272
|
-
id: string;
|
|
273
272
|
name: string;
|
|
273
|
+
id: string;
|
|
274
274
|
slug: string;
|
|
275
275
|
};
|
|
276
276
|
project: {
|
|
277
|
-
id: string;
|
|
278
277
|
name: string;
|
|
278
|
+
id: string;
|
|
279
279
|
slug: string;
|
|
280
280
|
ref: string;
|
|
281
281
|
};
|
|
@@ -293,10 +293,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
293
293
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
295
|
execution: {
|
|
296
|
-
queue: {
|
|
297
|
-
id: string;
|
|
298
|
-
name: string;
|
|
299
|
-
};
|
|
300
296
|
task: {
|
|
301
297
|
id: string;
|
|
302
298
|
filePath: string;
|
|
@@ -304,43 +300,47 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
304
300
|
};
|
|
305
301
|
attempt: {
|
|
306
302
|
number: number;
|
|
307
|
-
id: string;
|
|
308
303
|
status: string;
|
|
304
|
+
id: string;
|
|
309
305
|
startedAt: Date;
|
|
310
306
|
backgroundWorkerId: string;
|
|
311
307
|
backgroundWorkerTaskId: string;
|
|
312
308
|
};
|
|
313
309
|
run: {
|
|
314
310
|
id: string;
|
|
311
|
+
startedAt: Date;
|
|
315
312
|
payload: string;
|
|
316
313
|
payloadType: string;
|
|
317
314
|
tags: string[];
|
|
318
315
|
isTest: boolean;
|
|
319
316
|
createdAt: Date;
|
|
320
|
-
|
|
317
|
+
durationMs: number;
|
|
321
318
|
costInCents: number;
|
|
322
319
|
baseCostInCents: number;
|
|
323
|
-
durationMs: number;
|
|
324
320
|
context?: any;
|
|
325
321
|
idempotencyKey?: string | undefined;
|
|
326
322
|
maxAttempts?: number | undefined;
|
|
323
|
+
version?: string | undefined;
|
|
327
324
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
328
325
|
maxDuration?: number | undefined;
|
|
329
|
-
version?: string | undefined;
|
|
330
326
|
};
|
|
331
|
-
|
|
327
|
+
queue: {
|
|
328
|
+
name: string;
|
|
332
329
|
id: string;
|
|
330
|
+
};
|
|
331
|
+
environment: {
|
|
333
332
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
333
|
+
id: string;
|
|
334
334
|
slug: string;
|
|
335
335
|
};
|
|
336
336
|
organization: {
|
|
337
|
-
id: string;
|
|
338
337
|
name: string;
|
|
338
|
+
id: string;
|
|
339
339
|
slug: string;
|
|
340
340
|
};
|
|
341
341
|
project: {
|
|
342
|
-
id: string;
|
|
343
342
|
name: string;
|
|
343
|
+
id: string;
|
|
344
344
|
slug: string;
|
|
345
345
|
ref: string;
|
|
346
346
|
};
|
|
@@ -358,10 +358,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
358
358
|
environment?: Record<string, string> | undefined;
|
|
359
359
|
}, {
|
|
360
360
|
execution: {
|
|
361
|
-
queue: {
|
|
362
|
-
id: string;
|
|
363
|
-
name: string;
|
|
364
|
-
};
|
|
365
361
|
task: {
|
|
366
362
|
id: string;
|
|
367
363
|
filePath: string;
|
|
@@ -369,8 +365,8 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
369
365
|
};
|
|
370
366
|
attempt: {
|
|
371
367
|
number: number;
|
|
372
|
-
id: string;
|
|
373
368
|
status: string;
|
|
369
|
+
id: string;
|
|
374
370
|
startedAt: Date;
|
|
375
371
|
backgroundWorkerId: string;
|
|
376
372
|
backgroundWorkerTaskId: string;
|
|
@@ -381,31 +377,35 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
381
377
|
payloadType: string;
|
|
382
378
|
tags: string[];
|
|
383
379
|
createdAt: Date;
|
|
380
|
+
startedAt?: Date | undefined;
|
|
384
381
|
context?: any;
|
|
382
|
+
isTest?: boolean | undefined;
|
|
385
383
|
idempotencyKey?: string | undefined;
|
|
386
384
|
maxAttempts?: number | undefined;
|
|
387
|
-
|
|
388
|
-
maxDuration?: number | undefined;
|
|
389
|
-
version?: string | undefined;
|
|
390
|
-
isTest?: boolean | undefined;
|
|
391
|
-
startedAt?: Date | undefined;
|
|
385
|
+
durationMs?: number | undefined;
|
|
392
386
|
costInCents?: number | undefined;
|
|
393
387
|
baseCostInCents?: number | undefined;
|
|
394
|
-
|
|
388
|
+
version?: string | undefined;
|
|
389
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
390
|
+
maxDuration?: number | undefined;
|
|
395
391
|
};
|
|
396
|
-
|
|
392
|
+
queue: {
|
|
393
|
+
name: string;
|
|
397
394
|
id: string;
|
|
395
|
+
};
|
|
396
|
+
environment: {
|
|
398
397
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
398
|
+
id: string;
|
|
399
399
|
slug: string;
|
|
400
400
|
};
|
|
401
401
|
organization: {
|
|
402
|
-
id: string;
|
|
403
402
|
name: string;
|
|
403
|
+
id: string;
|
|
404
404
|
slug: string;
|
|
405
405
|
};
|
|
406
406
|
project: {
|
|
407
|
-
id: string;
|
|
408
407
|
name: string;
|
|
408
|
+
id: string;
|
|
409
409
|
slug: string;
|
|
410
410
|
ref: string;
|
|
411
411
|
};
|
|
@@ -446,15 +446,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
446
446
|
status: z.ZodString;
|
|
447
447
|
}, "strip", z.ZodTypeAny, {
|
|
448
448
|
number: number;
|
|
449
|
-
id: string;
|
|
450
449
|
status: string;
|
|
450
|
+
id: string;
|
|
451
451
|
startedAt: Date;
|
|
452
452
|
backgroundWorkerId: string;
|
|
453
453
|
backgroundWorkerTaskId: string;
|
|
454
454
|
}, {
|
|
455
455
|
number: number;
|
|
456
|
-
id: string;
|
|
457
456
|
status: string;
|
|
457
|
+
id: string;
|
|
458
458
|
startedAt: Date;
|
|
459
459
|
backgroundWorkerId: string;
|
|
460
460
|
backgroundWorkerTaskId: string;
|
|
@@ -478,60 +478,60 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
478
478
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
479
479
|
}, "strip", z.ZodTypeAny, {
|
|
480
480
|
id: string;
|
|
481
|
+
startedAt: Date;
|
|
481
482
|
payload: string;
|
|
482
483
|
payloadType: string;
|
|
483
484
|
tags: string[];
|
|
484
485
|
isTest: boolean;
|
|
485
486
|
createdAt: Date;
|
|
486
|
-
|
|
487
|
+
durationMs: number;
|
|
487
488
|
costInCents: number;
|
|
488
489
|
baseCostInCents: number;
|
|
489
|
-
durationMs: number;
|
|
490
490
|
context?: any;
|
|
491
491
|
idempotencyKey?: string | undefined;
|
|
492
492
|
maxAttempts?: number | undefined;
|
|
493
|
+
version?: string | undefined;
|
|
493
494
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
494
495
|
maxDuration?: number | undefined;
|
|
495
|
-
version?: string | undefined;
|
|
496
496
|
}, {
|
|
497
497
|
id: string;
|
|
498
498
|
payload: string;
|
|
499
499
|
payloadType: string;
|
|
500
500
|
tags: string[];
|
|
501
501
|
createdAt: Date;
|
|
502
|
+
startedAt?: Date | undefined;
|
|
502
503
|
context?: any;
|
|
504
|
+
isTest?: boolean | undefined;
|
|
503
505
|
idempotencyKey?: string | undefined;
|
|
504
506
|
maxAttempts?: number | undefined;
|
|
505
|
-
|
|
506
|
-
maxDuration?: number | undefined;
|
|
507
|
-
version?: string | undefined;
|
|
508
|
-
isTest?: boolean | undefined;
|
|
509
|
-
startedAt?: Date | undefined;
|
|
507
|
+
durationMs?: number | undefined;
|
|
510
508
|
costInCents?: number | undefined;
|
|
511
509
|
baseCostInCents?: number | undefined;
|
|
512
|
-
|
|
510
|
+
version?: string | undefined;
|
|
511
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
512
|
+
maxDuration?: number | undefined;
|
|
513
513
|
}>;
|
|
514
514
|
queue: z.ZodObject<{
|
|
515
515
|
id: z.ZodString;
|
|
516
516
|
name: z.ZodString;
|
|
517
517
|
}, "strip", z.ZodTypeAny, {
|
|
518
|
-
id: string;
|
|
519
518
|
name: string;
|
|
520
|
-
}, {
|
|
521
519
|
id: string;
|
|
520
|
+
}, {
|
|
522
521
|
name: string;
|
|
522
|
+
id: string;
|
|
523
523
|
}>;
|
|
524
524
|
environment: z.ZodObject<{
|
|
525
525
|
id: z.ZodString;
|
|
526
526
|
slug: z.ZodString;
|
|
527
527
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
528
528
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
id: string;
|
|
530
529
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
530
|
+
id: string;
|
|
531
531
|
slug: string;
|
|
532
532
|
}, {
|
|
533
|
-
id: string;
|
|
534
533
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
534
|
+
id: string;
|
|
535
535
|
slug: string;
|
|
536
536
|
}>;
|
|
537
537
|
organization: z.ZodObject<{
|
|
@@ -539,12 +539,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
539
539
|
slug: z.ZodString;
|
|
540
540
|
name: z.ZodString;
|
|
541
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
id: string;
|
|
543
542
|
name: string;
|
|
543
|
+
id: string;
|
|
544
544
|
slug: string;
|
|
545
545
|
}, {
|
|
546
|
-
id: string;
|
|
547
546
|
name: string;
|
|
547
|
+
id: string;
|
|
548
548
|
slug: string;
|
|
549
549
|
}>;
|
|
550
550
|
project: z.ZodObject<{
|
|
@@ -553,13 +553,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
553
553
|
slug: z.ZodString;
|
|
554
554
|
name: z.ZodString;
|
|
555
555
|
}, "strip", z.ZodTypeAny, {
|
|
556
|
-
id: string;
|
|
557
556
|
name: string;
|
|
557
|
+
id: string;
|
|
558
558
|
slug: string;
|
|
559
559
|
ref: string;
|
|
560
560
|
}, {
|
|
561
|
-
id: string;
|
|
562
561
|
name: string;
|
|
562
|
+
id: string;
|
|
563
563
|
slug: string;
|
|
564
564
|
ref: string;
|
|
565
565
|
}>;
|
|
@@ -617,10 +617,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
617
617
|
centsPerMs: number;
|
|
618
618
|
}>>;
|
|
619
619
|
}>, "strip", z.ZodTypeAny, {
|
|
620
|
-
queue: {
|
|
621
|
-
id: string;
|
|
622
|
-
name: string;
|
|
623
|
-
};
|
|
624
620
|
task: {
|
|
625
621
|
id: string;
|
|
626
622
|
filePath: string;
|
|
@@ -628,43 +624,47 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
628
624
|
};
|
|
629
625
|
attempt: {
|
|
630
626
|
number: number;
|
|
631
|
-
id: string;
|
|
632
627
|
status: string;
|
|
628
|
+
id: string;
|
|
633
629
|
startedAt: Date;
|
|
634
630
|
backgroundWorkerId: string;
|
|
635
631
|
backgroundWorkerTaskId: string;
|
|
636
632
|
};
|
|
637
633
|
run: {
|
|
638
634
|
id: string;
|
|
635
|
+
startedAt: Date;
|
|
639
636
|
payload: string;
|
|
640
637
|
payloadType: string;
|
|
641
638
|
tags: string[];
|
|
642
639
|
isTest: boolean;
|
|
643
640
|
createdAt: Date;
|
|
644
|
-
|
|
641
|
+
durationMs: number;
|
|
645
642
|
costInCents: number;
|
|
646
643
|
baseCostInCents: number;
|
|
647
|
-
durationMs: number;
|
|
648
644
|
context?: any;
|
|
649
645
|
idempotencyKey?: string | undefined;
|
|
650
646
|
maxAttempts?: number | undefined;
|
|
647
|
+
version?: string | undefined;
|
|
651
648
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
652
649
|
maxDuration?: number | undefined;
|
|
653
|
-
version?: string | undefined;
|
|
654
650
|
};
|
|
655
|
-
|
|
651
|
+
queue: {
|
|
652
|
+
name: string;
|
|
656
653
|
id: string;
|
|
654
|
+
};
|
|
655
|
+
environment: {
|
|
657
656
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
657
|
+
id: string;
|
|
658
658
|
slug: string;
|
|
659
659
|
};
|
|
660
660
|
organization: {
|
|
661
|
-
id: string;
|
|
662
661
|
name: string;
|
|
662
|
+
id: string;
|
|
663
663
|
slug: string;
|
|
664
664
|
};
|
|
665
665
|
project: {
|
|
666
|
-
id: string;
|
|
667
666
|
name: string;
|
|
667
|
+
id: string;
|
|
668
668
|
slug: string;
|
|
669
669
|
ref: string;
|
|
670
670
|
};
|
|
@@ -683,10 +683,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
683
683
|
id: string;
|
|
684
684
|
} | undefined;
|
|
685
685
|
}, {
|
|
686
|
-
queue: {
|
|
687
|
-
id: string;
|
|
688
|
-
name: string;
|
|
689
|
-
};
|
|
690
686
|
task: {
|
|
691
687
|
id: string;
|
|
692
688
|
filePath: string;
|
|
@@ -694,8 +690,8 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
694
690
|
};
|
|
695
691
|
attempt: {
|
|
696
692
|
number: number;
|
|
697
|
-
id: string;
|
|
698
693
|
status: string;
|
|
694
|
+
id: string;
|
|
699
695
|
startedAt: Date;
|
|
700
696
|
backgroundWorkerId: string;
|
|
701
697
|
backgroundWorkerTaskId: string;
|
|
@@ -706,31 +702,35 @@ export declare const ProdTaskRunExecution: z.ZodObject<z.objectUtil.extendShape<
|
|
|
706
702
|
payloadType: string;
|
|
707
703
|
tags: string[];
|
|
708
704
|
createdAt: Date;
|
|
705
|
+
startedAt?: Date | undefined;
|
|
709
706
|
context?: any;
|
|
707
|
+
isTest?: boolean | undefined;
|
|
710
708
|
idempotencyKey?: string | undefined;
|
|
711
709
|
maxAttempts?: number | undefined;
|
|
712
|
-
|
|
713
|
-
maxDuration?: number | undefined;
|
|
714
|
-
version?: string | undefined;
|
|
715
|
-
isTest?: boolean | undefined;
|
|
716
|
-
startedAt?: Date | undefined;
|
|
710
|
+
durationMs?: number | undefined;
|
|
717
711
|
costInCents?: number | undefined;
|
|
718
712
|
baseCostInCents?: number | undefined;
|
|
719
|
-
|
|
713
|
+
version?: string | undefined;
|
|
714
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
715
|
+
maxDuration?: number | undefined;
|
|
720
716
|
};
|
|
721
|
-
|
|
717
|
+
queue: {
|
|
718
|
+
name: string;
|
|
722
719
|
id: string;
|
|
720
|
+
};
|
|
721
|
+
environment: {
|
|
723
722
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
723
|
+
id: string;
|
|
724
724
|
slug: string;
|
|
725
725
|
};
|
|
726
726
|
organization: {
|
|
727
|
-
id: string;
|
|
728
727
|
name: string;
|
|
728
|
+
id: string;
|
|
729
729
|
slug: string;
|
|
730
730
|
};
|
|
731
731
|
project: {
|
|
732
|
-
id: string;
|
|
733
732
|
name: string;
|
|
733
|
+
id: string;
|
|
734
734
|
slug: string;
|
|
735
735
|
ref: string;
|
|
736
736
|
};
|
|
@@ -774,15 +774,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
774
774
|
status: z.ZodString;
|
|
775
775
|
}, "strip", z.ZodTypeAny, {
|
|
776
776
|
number: number;
|
|
777
|
-
id: string;
|
|
778
777
|
status: string;
|
|
778
|
+
id: string;
|
|
779
779
|
startedAt: Date;
|
|
780
780
|
backgroundWorkerId: string;
|
|
781
781
|
backgroundWorkerTaskId: string;
|
|
782
782
|
}, {
|
|
783
783
|
number: number;
|
|
784
|
-
id: string;
|
|
785
784
|
status: string;
|
|
785
|
+
id: string;
|
|
786
786
|
startedAt: Date;
|
|
787
787
|
backgroundWorkerId: string;
|
|
788
788
|
backgroundWorkerTaskId: string;
|
|
@@ -806,60 +806,60 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
806
806
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
807
807
|
}, "strip", z.ZodTypeAny, {
|
|
808
808
|
id: string;
|
|
809
|
+
startedAt: Date;
|
|
809
810
|
payload: string;
|
|
810
811
|
payloadType: string;
|
|
811
812
|
tags: string[];
|
|
812
813
|
isTest: boolean;
|
|
813
814
|
createdAt: Date;
|
|
814
|
-
|
|
815
|
+
durationMs: number;
|
|
815
816
|
costInCents: number;
|
|
816
817
|
baseCostInCents: number;
|
|
817
|
-
durationMs: number;
|
|
818
818
|
context?: any;
|
|
819
819
|
idempotencyKey?: string | undefined;
|
|
820
820
|
maxAttempts?: number | undefined;
|
|
821
|
+
version?: string | undefined;
|
|
821
822
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
822
823
|
maxDuration?: number | undefined;
|
|
823
|
-
version?: string | undefined;
|
|
824
824
|
}, {
|
|
825
825
|
id: string;
|
|
826
826
|
payload: string;
|
|
827
827
|
payloadType: string;
|
|
828
828
|
tags: string[];
|
|
829
829
|
createdAt: Date;
|
|
830
|
+
startedAt?: Date | undefined;
|
|
830
831
|
context?: any;
|
|
832
|
+
isTest?: boolean | undefined;
|
|
831
833
|
idempotencyKey?: string | undefined;
|
|
832
834
|
maxAttempts?: number | undefined;
|
|
833
|
-
|
|
834
|
-
maxDuration?: number | undefined;
|
|
835
|
-
version?: string | undefined;
|
|
836
|
-
isTest?: boolean | undefined;
|
|
837
|
-
startedAt?: Date | undefined;
|
|
835
|
+
durationMs?: number | undefined;
|
|
838
836
|
costInCents?: number | undefined;
|
|
839
837
|
baseCostInCents?: number | undefined;
|
|
840
|
-
|
|
838
|
+
version?: string | undefined;
|
|
839
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
840
|
+
maxDuration?: number | undefined;
|
|
841
841
|
}>;
|
|
842
842
|
queue: z.ZodObject<{
|
|
843
843
|
id: z.ZodString;
|
|
844
844
|
name: z.ZodString;
|
|
845
845
|
}, "strip", z.ZodTypeAny, {
|
|
846
|
-
id: string;
|
|
847
846
|
name: string;
|
|
848
|
-
}, {
|
|
849
847
|
id: string;
|
|
848
|
+
}, {
|
|
850
849
|
name: string;
|
|
850
|
+
id: string;
|
|
851
851
|
}>;
|
|
852
852
|
environment: z.ZodObject<{
|
|
853
853
|
id: z.ZodString;
|
|
854
854
|
slug: z.ZodString;
|
|
855
855
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
856
856
|
}, "strip", z.ZodTypeAny, {
|
|
857
|
-
id: string;
|
|
858
857
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
858
|
+
id: string;
|
|
859
859
|
slug: string;
|
|
860
860
|
}, {
|
|
861
|
-
id: string;
|
|
862
861
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
862
|
+
id: string;
|
|
863
863
|
slug: string;
|
|
864
864
|
}>;
|
|
865
865
|
organization: z.ZodObject<{
|
|
@@ -867,12 +867,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
867
867
|
slug: z.ZodString;
|
|
868
868
|
name: z.ZodString;
|
|
869
869
|
}, "strip", z.ZodTypeAny, {
|
|
870
|
-
id: string;
|
|
871
870
|
name: string;
|
|
871
|
+
id: string;
|
|
872
872
|
slug: string;
|
|
873
873
|
}, {
|
|
874
|
-
id: string;
|
|
875
874
|
name: string;
|
|
875
|
+
id: string;
|
|
876
876
|
slug: string;
|
|
877
877
|
}>;
|
|
878
878
|
project: z.ZodObject<{
|
|
@@ -881,13 +881,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
881
881
|
slug: z.ZodString;
|
|
882
882
|
name: z.ZodString;
|
|
883
883
|
}, "strip", z.ZodTypeAny, {
|
|
884
|
-
id: string;
|
|
885
884
|
name: string;
|
|
885
|
+
id: string;
|
|
886
886
|
slug: string;
|
|
887
887
|
ref: string;
|
|
888
888
|
}, {
|
|
889
|
-
id: string;
|
|
890
889
|
name: string;
|
|
890
|
+
id: string;
|
|
891
891
|
slug: string;
|
|
892
892
|
ref: string;
|
|
893
893
|
}>;
|
|
@@ -945,10 +945,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
945
945
|
centsPerMs: number;
|
|
946
946
|
}>>;
|
|
947
947
|
}>, "strip", z.ZodTypeAny, {
|
|
948
|
-
queue: {
|
|
949
|
-
id: string;
|
|
950
|
-
name: string;
|
|
951
|
-
};
|
|
952
948
|
task: {
|
|
953
949
|
id: string;
|
|
954
950
|
filePath: string;
|
|
@@ -956,43 +952,47 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
956
952
|
};
|
|
957
953
|
attempt: {
|
|
958
954
|
number: number;
|
|
959
|
-
id: string;
|
|
960
955
|
status: string;
|
|
956
|
+
id: string;
|
|
961
957
|
startedAt: Date;
|
|
962
958
|
backgroundWorkerId: string;
|
|
963
959
|
backgroundWorkerTaskId: string;
|
|
964
960
|
};
|
|
965
961
|
run: {
|
|
966
962
|
id: string;
|
|
963
|
+
startedAt: Date;
|
|
967
964
|
payload: string;
|
|
968
965
|
payloadType: string;
|
|
969
966
|
tags: string[];
|
|
970
967
|
isTest: boolean;
|
|
971
968
|
createdAt: Date;
|
|
972
|
-
|
|
969
|
+
durationMs: number;
|
|
973
970
|
costInCents: number;
|
|
974
971
|
baseCostInCents: number;
|
|
975
|
-
durationMs: number;
|
|
976
972
|
context?: any;
|
|
977
973
|
idempotencyKey?: string | undefined;
|
|
978
974
|
maxAttempts?: number | undefined;
|
|
975
|
+
version?: string | undefined;
|
|
979
976
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
980
977
|
maxDuration?: number | undefined;
|
|
981
|
-
version?: string | undefined;
|
|
982
978
|
};
|
|
983
|
-
|
|
979
|
+
queue: {
|
|
980
|
+
name: string;
|
|
984
981
|
id: string;
|
|
982
|
+
};
|
|
983
|
+
environment: {
|
|
985
984
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
985
|
+
id: string;
|
|
986
986
|
slug: string;
|
|
987
987
|
};
|
|
988
988
|
organization: {
|
|
989
|
-
id: string;
|
|
990
989
|
name: string;
|
|
990
|
+
id: string;
|
|
991
991
|
slug: string;
|
|
992
992
|
};
|
|
993
993
|
project: {
|
|
994
|
-
id: string;
|
|
995
994
|
name: string;
|
|
995
|
+
id: string;
|
|
996
996
|
slug: string;
|
|
997
997
|
ref: string;
|
|
998
998
|
};
|
|
@@ -1011,10 +1011,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1011
1011
|
id: string;
|
|
1012
1012
|
} | undefined;
|
|
1013
1013
|
}, {
|
|
1014
|
-
queue: {
|
|
1015
|
-
id: string;
|
|
1016
|
-
name: string;
|
|
1017
|
-
};
|
|
1018
1014
|
task: {
|
|
1019
1015
|
id: string;
|
|
1020
1016
|
filePath: string;
|
|
@@ -1022,8 +1018,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1022
1018
|
};
|
|
1023
1019
|
attempt: {
|
|
1024
1020
|
number: number;
|
|
1025
|
-
id: string;
|
|
1026
1021
|
status: string;
|
|
1022
|
+
id: string;
|
|
1027
1023
|
startedAt: Date;
|
|
1028
1024
|
backgroundWorkerId: string;
|
|
1029
1025
|
backgroundWorkerTaskId: string;
|
|
@@ -1034,31 +1030,35 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1034
1030
|
payloadType: string;
|
|
1035
1031
|
tags: string[];
|
|
1036
1032
|
createdAt: Date;
|
|
1033
|
+
startedAt?: Date | undefined;
|
|
1037
1034
|
context?: any;
|
|
1035
|
+
isTest?: boolean | undefined;
|
|
1038
1036
|
idempotencyKey?: string | undefined;
|
|
1039
1037
|
maxAttempts?: number | undefined;
|
|
1040
|
-
|
|
1041
|
-
maxDuration?: number | undefined;
|
|
1042
|
-
version?: string | undefined;
|
|
1043
|
-
isTest?: boolean | undefined;
|
|
1044
|
-
startedAt?: Date | undefined;
|
|
1038
|
+
durationMs?: number | undefined;
|
|
1045
1039
|
costInCents?: number | undefined;
|
|
1046
1040
|
baseCostInCents?: number | undefined;
|
|
1047
|
-
|
|
1041
|
+
version?: string | undefined;
|
|
1042
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1043
|
+
maxDuration?: number | undefined;
|
|
1048
1044
|
};
|
|
1049
|
-
|
|
1045
|
+
queue: {
|
|
1046
|
+
name: string;
|
|
1050
1047
|
id: string;
|
|
1048
|
+
};
|
|
1049
|
+
environment: {
|
|
1051
1050
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1051
|
+
id: string;
|
|
1052
1052
|
slug: string;
|
|
1053
1053
|
};
|
|
1054
1054
|
organization: {
|
|
1055
|
-
id: string;
|
|
1056
1055
|
name: string;
|
|
1056
|
+
id: string;
|
|
1057
1057
|
slug: string;
|
|
1058
1058
|
};
|
|
1059
1059
|
project: {
|
|
1060
|
-
id: string;
|
|
1061
1060
|
name: string;
|
|
1061
|
+
id: string;
|
|
1062
1062
|
slug: string;
|
|
1063
1063
|
ref: string;
|
|
1064
1064
|
};
|
|
@@ -1081,10 +1081,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1081
1081
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1082
1082
|
}, "strip", z.ZodTypeAny, {
|
|
1083
1083
|
execution: {
|
|
1084
|
-
queue: {
|
|
1085
|
-
id: string;
|
|
1086
|
-
name: string;
|
|
1087
|
-
};
|
|
1088
1084
|
task: {
|
|
1089
1085
|
id: string;
|
|
1090
1086
|
filePath: string;
|
|
@@ -1092,43 +1088,47 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1092
1088
|
};
|
|
1093
1089
|
attempt: {
|
|
1094
1090
|
number: number;
|
|
1095
|
-
id: string;
|
|
1096
1091
|
status: string;
|
|
1092
|
+
id: string;
|
|
1097
1093
|
startedAt: Date;
|
|
1098
1094
|
backgroundWorkerId: string;
|
|
1099
1095
|
backgroundWorkerTaskId: string;
|
|
1100
1096
|
};
|
|
1101
1097
|
run: {
|
|
1102
1098
|
id: string;
|
|
1099
|
+
startedAt: Date;
|
|
1103
1100
|
payload: string;
|
|
1104
1101
|
payloadType: string;
|
|
1105
1102
|
tags: string[];
|
|
1106
1103
|
isTest: boolean;
|
|
1107
1104
|
createdAt: Date;
|
|
1108
|
-
|
|
1105
|
+
durationMs: number;
|
|
1109
1106
|
costInCents: number;
|
|
1110
1107
|
baseCostInCents: number;
|
|
1111
|
-
durationMs: number;
|
|
1112
1108
|
context?: any;
|
|
1113
1109
|
idempotencyKey?: string | undefined;
|
|
1114
1110
|
maxAttempts?: number | undefined;
|
|
1111
|
+
version?: string | undefined;
|
|
1115
1112
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1116
1113
|
maxDuration?: number | undefined;
|
|
1117
|
-
version?: string | undefined;
|
|
1118
1114
|
};
|
|
1119
|
-
|
|
1115
|
+
queue: {
|
|
1116
|
+
name: string;
|
|
1120
1117
|
id: string;
|
|
1118
|
+
};
|
|
1119
|
+
environment: {
|
|
1121
1120
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1121
|
+
id: string;
|
|
1122
1122
|
slug: string;
|
|
1123
1123
|
};
|
|
1124
1124
|
organization: {
|
|
1125
|
-
id: string;
|
|
1126
1125
|
name: string;
|
|
1126
|
+
id: string;
|
|
1127
1127
|
slug: string;
|
|
1128
1128
|
};
|
|
1129
1129
|
project: {
|
|
1130
|
-
id: string;
|
|
1131
1130
|
name: string;
|
|
1131
|
+
id: string;
|
|
1132
1132
|
slug: string;
|
|
1133
1133
|
ref: string;
|
|
1134
1134
|
};
|
|
@@ -1151,10 +1151,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1151
1151
|
environment?: Record<string, string> | undefined;
|
|
1152
1152
|
}, {
|
|
1153
1153
|
execution: {
|
|
1154
|
-
queue: {
|
|
1155
|
-
id: string;
|
|
1156
|
-
name: string;
|
|
1157
|
-
};
|
|
1158
1154
|
task: {
|
|
1159
1155
|
id: string;
|
|
1160
1156
|
filePath: string;
|
|
@@ -1162,8 +1158,8 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1162
1158
|
};
|
|
1163
1159
|
attempt: {
|
|
1164
1160
|
number: number;
|
|
1165
|
-
id: string;
|
|
1166
1161
|
status: string;
|
|
1162
|
+
id: string;
|
|
1167
1163
|
startedAt: Date;
|
|
1168
1164
|
backgroundWorkerId: string;
|
|
1169
1165
|
backgroundWorkerTaskId: string;
|
|
@@ -1174,31 +1170,35 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1174
1170
|
payloadType: string;
|
|
1175
1171
|
tags: string[];
|
|
1176
1172
|
createdAt: Date;
|
|
1173
|
+
startedAt?: Date | undefined;
|
|
1177
1174
|
context?: any;
|
|
1175
|
+
isTest?: boolean | undefined;
|
|
1178
1176
|
idempotencyKey?: string | undefined;
|
|
1179
1177
|
maxAttempts?: number | undefined;
|
|
1180
|
-
|
|
1181
|
-
maxDuration?: number | undefined;
|
|
1182
|
-
version?: string | undefined;
|
|
1183
|
-
isTest?: boolean | undefined;
|
|
1184
|
-
startedAt?: Date | undefined;
|
|
1178
|
+
durationMs?: number | undefined;
|
|
1185
1179
|
costInCents?: number | undefined;
|
|
1186
1180
|
baseCostInCents?: number | undefined;
|
|
1187
|
-
|
|
1181
|
+
version?: string | undefined;
|
|
1182
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1183
|
+
maxDuration?: number | undefined;
|
|
1188
1184
|
};
|
|
1189
|
-
|
|
1185
|
+
queue: {
|
|
1186
|
+
name: string;
|
|
1190
1187
|
id: string;
|
|
1188
|
+
};
|
|
1189
|
+
environment: {
|
|
1191
1190
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1191
|
+
id: string;
|
|
1192
1192
|
slug: string;
|
|
1193
1193
|
};
|
|
1194
1194
|
organization: {
|
|
1195
|
-
id: string;
|
|
1196
1195
|
name: string;
|
|
1196
|
+
id: string;
|
|
1197
1197
|
slug: string;
|
|
1198
1198
|
};
|
|
1199
1199
|
project: {
|
|
1200
|
-
id: string;
|
|
1201
1200
|
name: string;
|
|
1201
|
+
id: string;
|
|
1202
1202
|
slug: string;
|
|
1203
1203
|
ref: string;
|
|
1204
1204
|
};
|
|
@@ -1473,11 +1473,11 @@ export declare const ScheduleMetadata: z.ZodObject<{
|
|
|
1473
1473
|
cron: z.ZodString;
|
|
1474
1474
|
timezone: z.ZodString;
|
|
1475
1475
|
}, "strip", z.ZodTypeAny, {
|
|
1476
|
-
timezone: string;
|
|
1477
1476
|
cron: string;
|
|
1478
|
-
}, {
|
|
1479
1477
|
timezone: string;
|
|
1478
|
+
}, {
|
|
1480
1479
|
cron: string;
|
|
1480
|
+
timezone: string;
|
|
1481
1481
|
}>;
|
|
1482
1482
|
export declare const TaskMetadata: z.ZodObject<{
|
|
1483
1483
|
id: z.ZodString;
|
|
@@ -1574,20 +1574,25 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1574
1574
|
cron: z.ZodString;
|
|
1575
1575
|
timezone: z.ZodString;
|
|
1576
1576
|
}, "strip", z.ZodTypeAny, {
|
|
1577
|
-
timezone: string;
|
|
1578
1577
|
cron: string;
|
|
1579
|
-
}, {
|
|
1580
1578
|
timezone: string;
|
|
1579
|
+
}, {
|
|
1581
1580
|
cron: string;
|
|
1581
|
+
timezone: string;
|
|
1582
1582
|
}>>;
|
|
1583
1583
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
1584
1584
|
}, "strip", z.ZodTypeAny, {
|
|
1585
1585
|
id: string;
|
|
1586
|
+
maxDuration?: number | undefined;
|
|
1586
1587
|
queue?: {
|
|
1587
1588
|
name?: string | undefined;
|
|
1588
1589
|
concurrencyLimit?: number | undefined;
|
|
1589
1590
|
} | undefined;
|
|
1590
|
-
|
|
1591
|
+
machine?: {
|
|
1592
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1593
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1594
|
+
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1595
|
+
} | undefined;
|
|
1591
1596
|
retry?: {
|
|
1592
1597
|
maxAttempts?: number | undefined;
|
|
1593
1598
|
factor?: number | undefined;
|
|
@@ -1596,23 +1601,23 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1596
1601
|
randomize?: boolean | undefined;
|
|
1597
1602
|
} | undefined;
|
|
1598
1603
|
description?: string | undefined;
|
|
1604
|
+
triggerSource?: string | undefined;
|
|
1599
1605
|
schedule?: {
|
|
1600
|
-
timezone: string;
|
|
1601
1606
|
cron: string;
|
|
1607
|
+
timezone: string;
|
|
1602
1608
|
} | undefined;
|
|
1603
|
-
machine?: {
|
|
1604
|
-
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1605
|
-
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1606
|
-
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1607
|
-
} | undefined;
|
|
1608
|
-
triggerSource?: string | undefined;
|
|
1609
1609
|
}, {
|
|
1610
1610
|
id: string;
|
|
1611
|
+
maxDuration?: number | undefined;
|
|
1611
1612
|
queue?: {
|
|
1612
1613
|
name?: string | undefined;
|
|
1613
1614
|
concurrencyLimit?: number | undefined;
|
|
1614
1615
|
} | undefined;
|
|
1615
|
-
|
|
1616
|
+
machine?: {
|
|
1617
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1618
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1619
|
+
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1620
|
+
} | undefined;
|
|
1616
1621
|
retry?: {
|
|
1617
1622
|
maxAttempts?: number | undefined;
|
|
1618
1623
|
factor?: number | undefined;
|
|
@@ -1621,16 +1626,11 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1621
1626
|
randomize?: boolean | undefined;
|
|
1622
1627
|
} | undefined;
|
|
1623
1628
|
description?: string | undefined;
|
|
1629
|
+
triggerSource?: string | undefined;
|
|
1624
1630
|
schedule?: {
|
|
1625
|
-
timezone: string;
|
|
1626
1631
|
cron: string;
|
|
1632
|
+
timezone: string;
|
|
1627
1633
|
} | undefined;
|
|
1628
|
-
machine?: {
|
|
1629
|
-
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1630
|
-
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1631
|
-
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1632
|
-
} | undefined;
|
|
1633
|
-
triggerSource?: string | undefined;
|
|
1634
1634
|
}>;
|
|
1635
1635
|
export type TaskMetadata = z.infer<typeof TaskMetadata>;
|
|
1636
1636
|
export declare const TaskFile: z.ZodObject<{
|
|
@@ -1756,11 +1756,11 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1756
1756
|
cron: z.ZodString;
|
|
1757
1757
|
timezone: z.ZodString;
|
|
1758
1758
|
}, "strip", z.ZodTypeAny, {
|
|
1759
|
-
timezone: string;
|
|
1760
1759
|
cron: string;
|
|
1761
|
-
}, {
|
|
1762
1760
|
timezone: string;
|
|
1761
|
+
}, {
|
|
1763
1762
|
cron: string;
|
|
1763
|
+
timezone: string;
|
|
1764
1764
|
}>>;
|
|
1765
1765
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
1766
1766
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1768,11 +1768,16 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1768
1768
|
filePath: string;
|
|
1769
1769
|
exportName: string;
|
|
1770
1770
|
entryPoint: string;
|
|
1771
|
+
maxDuration?: number | undefined;
|
|
1771
1772
|
queue?: {
|
|
1772
1773
|
name?: string | undefined;
|
|
1773
1774
|
concurrencyLimit?: number | undefined;
|
|
1774
1775
|
} | undefined;
|
|
1775
|
-
|
|
1776
|
+
machine?: {
|
|
1777
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1778
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1779
|
+
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1780
|
+
} | undefined;
|
|
1776
1781
|
retry?: {
|
|
1777
1782
|
maxAttempts?: number | undefined;
|
|
1778
1783
|
factor?: number | undefined;
|
|
@@ -1781,26 +1786,26 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1781
1786
|
randomize?: boolean | undefined;
|
|
1782
1787
|
} | undefined;
|
|
1783
1788
|
description?: string | undefined;
|
|
1789
|
+
triggerSource?: string | undefined;
|
|
1784
1790
|
schedule?: {
|
|
1785
|
-
timezone: string;
|
|
1786
1791
|
cron: string;
|
|
1792
|
+
timezone: string;
|
|
1787
1793
|
} | undefined;
|
|
1788
|
-
machine?: {
|
|
1789
|
-
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1790
|
-
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1791
|
-
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1792
|
-
} | undefined;
|
|
1793
|
-
triggerSource?: string | undefined;
|
|
1794
1794
|
}, {
|
|
1795
1795
|
id: string;
|
|
1796
1796
|
filePath: string;
|
|
1797
1797
|
exportName: string;
|
|
1798
1798
|
entryPoint: string;
|
|
1799
|
+
maxDuration?: number | undefined;
|
|
1799
1800
|
queue?: {
|
|
1800
1801
|
name?: string | undefined;
|
|
1801
1802
|
concurrencyLimit?: number | undefined;
|
|
1802
1803
|
} | undefined;
|
|
1803
|
-
|
|
1804
|
+
machine?: {
|
|
1805
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1806
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1807
|
+
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1808
|
+
} | undefined;
|
|
1804
1809
|
retry?: {
|
|
1805
1810
|
maxAttempts?: number | undefined;
|
|
1806
1811
|
factor?: number | undefined;
|
|
@@ -1809,16 +1814,11 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1809
1814
|
randomize?: boolean | undefined;
|
|
1810
1815
|
} | undefined;
|
|
1811
1816
|
description?: string | undefined;
|
|
1817
|
+
triggerSource?: string | undefined;
|
|
1812
1818
|
schedule?: {
|
|
1813
|
-
timezone: string;
|
|
1814
1819
|
cron: string;
|
|
1820
|
+
timezone: string;
|
|
1815
1821
|
} | undefined;
|
|
1816
|
-
machine?: {
|
|
1817
|
-
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1818
|
-
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1819
|
-
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1820
|
-
} | undefined;
|
|
1821
|
-
triggerSource?: string | undefined;
|
|
1822
1822
|
}>;
|
|
1823
1823
|
export type TaskManifest = z.infer<typeof TaskManifest>;
|
|
1824
1824
|
export declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
|
|
@@ -1873,6 +1873,7 @@ export declare const Config: z.ZodObject<{
|
|
|
1873
1873
|
randomize?: boolean | undefined;
|
|
1874
1874
|
} | undefined;
|
|
1875
1875
|
}, {
|
|
1876
|
+
enabledInDev?: boolean | undefined;
|
|
1876
1877
|
default?: {
|
|
1877
1878
|
maxAttempts?: number | undefined;
|
|
1878
1879
|
factor?: number | undefined;
|
|
@@ -1880,7 +1881,6 @@ export declare const Config: z.ZodObject<{
|
|
|
1880
1881
|
maxTimeoutInMs?: number | undefined;
|
|
1881
1882
|
randomize?: boolean | undefined;
|
|
1882
1883
|
} | undefined;
|
|
1883
|
-
enabledInDev?: boolean | undefined;
|
|
1884
1884
|
}>>;
|
|
1885
1885
|
additionalPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1886
1886
|
additionalFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1919,6 +1919,7 @@ export declare const Config: z.ZodObject<{
|
|
|
1919
1919
|
projectDir?: string | undefined;
|
|
1920
1920
|
tsconfigPath?: string | undefined;
|
|
1921
1921
|
retries?: {
|
|
1922
|
+
enabledInDev?: boolean | undefined;
|
|
1922
1923
|
default?: {
|
|
1923
1924
|
maxAttempts?: number | undefined;
|
|
1924
1925
|
factor?: number | undefined;
|
|
@@ -1926,7 +1927,6 @@ export declare const Config: z.ZodObject<{
|
|
|
1926
1927
|
maxTimeoutInMs?: number | undefined;
|
|
1927
1928
|
randomize?: boolean | undefined;
|
|
1928
1929
|
} | undefined;
|
|
1929
|
-
enabledInDev?: boolean | undefined;
|
|
1930
1930
|
} | undefined;
|
|
1931
1931
|
additionalPackages?: string[] | undefined;
|
|
1932
1932
|
additionalFiles?: string[] | undefined;
|
|
@@ -1952,14 +1952,14 @@ export declare const TaskRunExecutionLazyAttemptPayload: z.ZodObject<{
|
|
|
1952
1952
|
traceContext: Record<string, unknown>;
|
|
1953
1953
|
runId: string;
|
|
1954
1954
|
messageId: string;
|
|
1955
|
-
attemptCount?: number | undefined;
|
|
1956
1955
|
environment?: Record<string, string> | undefined;
|
|
1956
|
+
attemptCount?: number | undefined;
|
|
1957
1957
|
}, {
|
|
1958
1958
|
isTest: boolean;
|
|
1959
1959
|
traceContext: Record<string, unknown>;
|
|
1960
1960
|
runId: string;
|
|
1961
1961
|
messageId: string;
|
|
1962
|
-
attemptCount?: number | undefined;
|
|
1963
1962
|
environment?: Record<string, string> | undefined;
|
|
1963
|
+
attemptCount?: number | undefined;
|
|
1964
1964
|
}>;
|
|
1965
1965
|
export type TaskRunExecutionLazyAttemptPayload = z.infer<typeof TaskRunExecutionLazyAttemptPayload>;
|