@trigger.dev/core 0.0.0-prerelease-20241003205750 → 0.0.0-prerelease-20241023140846
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 +73 -73
- package/dist/commonjs/v3/apps/duration.d.ts +1 -0
- package/dist/commonjs/v3/apps/duration.js +51 -0
- package/dist/commonjs/v3/apps/duration.js.map +1 -0
- package/dist/commonjs/v3/apps/friendlyId.d.ts +1 -0
- package/dist/commonjs/v3/apps/friendlyId.js +9 -0
- package/dist/commonjs/v3/apps/friendlyId.js.map +1 -0
- package/dist/commonjs/v3/apps/index.d.ts +2 -0
- package/dist/commonjs/v3/apps/index.js +2 -0
- package/dist/commonjs/v3/apps/index.js.map +1 -1
- package/dist/commonjs/v3/errors.d.ts +14 -2
- package/dist/commonjs/v3/errors.js +143 -22
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/index.d.ts +1 -0
- package/dist/commonjs/v3/index.js +3 -1
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/links.d.ts +17 -0
- package/dist/commonjs/v3/links.js +21 -0
- package/dist/commonjs/v3/links.js.map +1 -0
- package/dist/commonjs/v3/schemas/api.d.ts +244 -244
- package/dist/commonjs/v3/schemas/build.d.ts +38 -38
- package/dist/commonjs/v3/schemas/common.d.ts +103 -119
- package/dist/commonjs/v3/schemas/common.js +8 -18
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +1620 -1614
- package/dist/commonjs/v3/schemas/messages.js +2 -0
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +6 -6
- package/dist/commonjs/v3/schemas/schemas.d.ts +236 -236
- package/dist/commonjs/v3/utils/structuredLogger.d.ts +1 -0
- package/dist/commonjs/v3/utils/structuredLogger.js +10 -4
- package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
- package/dist/commonjs/v3/zodNamespace.d.ts +1 -0
- package/dist/commonjs/v3/zodNamespace.js +6 -1
- package/dist/commonjs/v3/zodNamespace.js.map +1 -1
- package/dist/commonjs/v3/zodSocket.d.ts +2 -0
- package/dist/commonjs/v3/zodSocket.js +15 -5
- package/dist/commonjs/v3/zodSocket.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +73 -73
- package/dist/esm/v3/apps/duration.d.ts +1 -0
- package/dist/esm/v3/apps/duration.js +48 -0
- package/dist/esm/v3/apps/duration.js.map +1 -0
- package/dist/esm/v3/apps/friendlyId.d.ts +1 -0
- package/dist/esm/v3/apps/friendlyId.js +6 -0
- package/dist/esm/v3/apps/friendlyId.js.map +1 -0
- package/dist/esm/v3/apps/index.d.ts +2 -0
- package/dist/esm/v3/apps/index.js +2 -0
- package/dist/esm/v3/apps/index.js.map +1 -1
- package/dist/esm/v3/errors.d.ts +14 -2
- package/dist/esm/v3/errors.js +140 -21
- package/dist/esm/v3/errors.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/links.d.ts +17 -0
- package/dist/esm/v3/links.js +18 -0
- package/dist/esm/v3/links.js.map +1 -0
- package/dist/esm/v3/schemas/api.d.ts +244 -244
- package/dist/esm/v3/schemas/build.d.ts +38 -38
- package/dist/esm/v3/schemas/common.d.ts +103 -119
- package/dist/esm/v3/schemas/common.js +7 -17
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +1620 -1614
- package/dist/esm/v3/schemas/messages.js +3 -1
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/resources.d.ts +6 -6
- package/dist/esm/v3/schemas/schemas.d.ts +236 -236
- package/dist/esm/v3/utils/structuredLogger.d.ts +1 -0
- package/dist/esm/v3/utils/structuredLogger.js +10 -4
- package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
- package/dist/esm/v3/zodNamespace.d.ts +1 -0
- package/dist/esm/v3/zodNamespace.js +6 -1
- package/dist/esm/v3/zodNamespace.js.map +1 -1
- package/dist/esm/v3/zodSocket.d.ts +2 -0
- package/dist/esm/v3/zodSocket.js +15 -5
- package/dist/esm/v3/zodSocket.js.map +1 -1
- package/package.json +2 -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
|
-
status: string;
|
|
30
29
|
id: string;
|
|
30
|
+
status: string;
|
|
31
31
|
startedAt: Date;
|
|
32
32
|
backgroundWorkerId: string;
|
|
33
33
|
backgroundWorkerTaskId: string;
|
|
34
34
|
}, {
|
|
35
35
|
number: number;
|
|
36
|
-
status: string;
|
|
37
36
|
id: string;
|
|
37
|
+
status: string;
|
|
38
38
|
startedAt: Date;
|
|
39
39
|
backgroundWorkerId: string;
|
|
40
40
|
backgroundWorkerTaskId: string;
|
|
@@ -58,15 +58,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
58
58
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
id: string;
|
|
61
|
-
|
|
61
|
+
startedAt: Date;
|
|
62
62
|
payload: string;
|
|
63
63
|
payloadType: string;
|
|
64
64
|
tags: string[];
|
|
65
65
|
isTest: boolean;
|
|
66
|
-
|
|
66
|
+
createdAt: Date;
|
|
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;
|
|
@@ -75,10 +75,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
75
75
|
maxDuration?: number | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
id: string;
|
|
78
|
-
createdAt: Date;
|
|
79
78
|
payload: string;
|
|
80
79
|
payloadType: string;
|
|
81
80
|
tags: string[];
|
|
81
|
+
createdAt: Date;
|
|
82
82
|
context?: any;
|
|
83
83
|
isTest?: boolean | undefined;
|
|
84
84
|
startedAt?: Date | undefined;
|
|
@@ -106,12 +106,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
106
106
|
slug: z.ZodString;
|
|
107
107
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
110
109
|
id: string;
|
|
110
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
111
111
|
slug: string;
|
|
112
112
|
}, {
|
|
113
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
114
113
|
id: string;
|
|
114
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
115
115
|
slug: string;
|
|
116
116
|
}>;
|
|
117
117
|
organization: z.ZodObject<{
|
|
@@ -167,15 +167,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
167
167
|
centsPerMs: number;
|
|
168
168
|
}>>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
organization: {
|
|
171
|
-
id: string;
|
|
172
|
-
name: string;
|
|
173
|
-
slug: string;
|
|
174
|
-
};
|
|
175
|
-
queue: {
|
|
176
|
-
id: string;
|
|
177
|
-
name: string;
|
|
178
|
-
};
|
|
179
170
|
task: {
|
|
180
171
|
id: string;
|
|
181
172
|
filePath: string;
|
|
@@ -183,23 +174,23 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
183
174
|
};
|
|
184
175
|
attempt: {
|
|
185
176
|
number: number;
|
|
186
|
-
status: string;
|
|
187
177
|
id: string;
|
|
178
|
+
status: string;
|
|
188
179
|
startedAt: Date;
|
|
189
180
|
backgroundWorkerId: string;
|
|
190
181
|
backgroundWorkerTaskId: string;
|
|
191
182
|
};
|
|
192
183
|
run: {
|
|
193
184
|
id: string;
|
|
194
|
-
|
|
185
|
+
startedAt: Date;
|
|
195
186
|
payload: string;
|
|
196
187
|
payloadType: string;
|
|
197
188
|
tags: string[];
|
|
198
189
|
isTest: boolean;
|
|
199
|
-
|
|
190
|
+
createdAt: Date;
|
|
191
|
+
durationMs: number;
|
|
200
192
|
costInCents: number;
|
|
201
193
|
baseCostInCents: number;
|
|
202
|
-
durationMs: number;
|
|
203
194
|
context?: any;
|
|
204
195
|
idempotencyKey?: string | undefined;
|
|
205
196
|
maxAttempts?: number | undefined;
|
|
@@ -207,9 +198,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
207
198
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
208
199
|
maxDuration?: number | undefined;
|
|
209
200
|
};
|
|
201
|
+
queue: {
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
};
|
|
210
205
|
environment: {
|
|
206
|
+
id: string;
|
|
211
207
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
208
|
+
slug: string;
|
|
209
|
+
};
|
|
210
|
+
organization: {
|
|
212
211
|
id: string;
|
|
212
|
+
name: string;
|
|
213
213
|
slug: string;
|
|
214
214
|
};
|
|
215
215
|
project: {
|
|
@@ -228,15 +228,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
228
228
|
centsPerMs: number;
|
|
229
229
|
} | undefined;
|
|
230
230
|
}, {
|
|
231
|
-
organization: {
|
|
232
|
-
id: string;
|
|
233
|
-
name: string;
|
|
234
|
-
slug: string;
|
|
235
|
-
};
|
|
236
|
-
queue: {
|
|
237
|
-
id: string;
|
|
238
|
-
name: string;
|
|
239
|
-
};
|
|
240
231
|
task: {
|
|
241
232
|
id: string;
|
|
242
233
|
filePath: string;
|
|
@@ -244,18 +235,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
244
235
|
};
|
|
245
236
|
attempt: {
|
|
246
237
|
number: number;
|
|
247
|
-
status: string;
|
|
248
238
|
id: string;
|
|
239
|
+
status: string;
|
|
249
240
|
startedAt: Date;
|
|
250
241
|
backgroundWorkerId: string;
|
|
251
242
|
backgroundWorkerTaskId: string;
|
|
252
243
|
};
|
|
253
244
|
run: {
|
|
254
245
|
id: string;
|
|
255
|
-
createdAt: Date;
|
|
256
246
|
payload: string;
|
|
257
247
|
payloadType: string;
|
|
258
248
|
tags: string[];
|
|
249
|
+
createdAt: Date;
|
|
259
250
|
context?: any;
|
|
260
251
|
isTest?: boolean | undefined;
|
|
261
252
|
startedAt?: Date | undefined;
|
|
@@ -268,9 +259,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
268
259
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
269
260
|
maxDuration?: number | undefined;
|
|
270
261
|
};
|
|
262
|
+
queue: {
|
|
263
|
+
id: string;
|
|
264
|
+
name: string;
|
|
265
|
+
};
|
|
271
266
|
environment: {
|
|
267
|
+
id: string;
|
|
272
268
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
269
|
+
slug: string;
|
|
270
|
+
};
|
|
271
|
+
organization: {
|
|
273
272
|
id: string;
|
|
273
|
+
name: string;
|
|
274
274
|
slug: string;
|
|
275
275
|
};
|
|
276
276
|
project: {
|
|
@@ -293,15 +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
|
-
organization: {
|
|
297
|
-
id: string;
|
|
298
|
-
name: string;
|
|
299
|
-
slug: string;
|
|
300
|
-
};
|
|
301
|
-
queue: {
|
|
302
|
-
id: string;
|
|
303
|
-
name: string;
|
|
304
|
-
};
|
|
305
296
|
task: {
|
|
306
297
|
id: string;
|
|
307
298
|
filePath: string;
|
|
@@ -309,23 +300,23 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
309
300
|
};
|
|
310
301
|
attempt: {
|
|
311
302
|
number: number;
|
|
312
|
-
status: string;
|
|
313
303
|
id: string;
|
|
304
|
+
status: string;
|
|
314
305
|
startedAt: Date;
|
|
315
306
|
backgroundWorkerId: string;
|
|
316
307
|
backgroundWorkerTaskId: string;
|
|
317
308
|
};
|
|
318
309
|
run: {
|
|
319
310
|
id: string;
|
|
320
|
-
|
|
311
|
+
startedAt: Date;
|
|
321
312
|
payload: string;
|
|
322
313
|
payloadType: string;
|
|
323
314
|
tags: string[];
|
|
324
315
|
isTest: boolean;
|
|
325
|
-
|
|
316
|
+
createdAt: Date;
|
|
317
|
+
durationMs: number;
|
|
326
318
|
costInCents: number;
|
|
327
319
|
baseCostInCents: number;
|
|
328
|
-
durationMs: number;
|
|
329
320
|
context?: any;
|
|
330
321
|
idempotencyKey?: string | undefined;
|
|
331
322
|
maxAttempts?: number | undefined;
|
|
@@ -333,9 +324,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
333
324
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
334
325
|
maxDuration?: number | undefined;
|
|
335
326
|
};
|
|
327
|
+
queue: {
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
};
|
|
336
331
|
environment: {
|
|
332
|
+
id: string;
|
|
337
333
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
334
|
+
slug: string;
|
|
335
|
+
};
|
|
336
|
+
organization: {
|
|
338
337
|
id: string;
|
|
338
|
+
name: string;
|
|
339
339
|
slug: string;
|
|
340
340
|
};
|
|
341
341
|
project: {
|
|
@@ -358,15 +358,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
358
358
|
environment?: Record<string, string> | undefined;
|
|
359
359
|
}, {
|
|
360
360
|
execution: {
|
|
361
|
-
organization: {
|
|
362
|
-
id: string;
|
|
363
|
-
name: string;
|
|
364
|
-
slug: string;
|
|
365
|
-
};
|
|
366
|
-
queue: {
|
|
367
|
-
id: string;
|
|
368
|
-
name: string;
|
|
369
|
-
};
|
|
370
361
|
task: {
|
|
371
362
|
id: string;
|
|
372
363
|
filePath: string;
|
|
@@ -374,18 +365,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
374
365
|
};
|
|
375
366
|
attempt: {
|
|
376
367
|
number: number;
|
|
377
|
-
status: string;
|
|
378
368
|
id: string;
|
|
369
|
+
status: string;
|
|
379
370
|
startedAt: Date;
|
|
380
371
|
backgroundWorkerId: string;
|
|
381
372
|
backgroundWorkerTaskId: string;
|
|
382
373
|
};
|
|
383
374
|
run: {
|
|
384
375
|
id: string;
|
|
385
|
-
createdAt: Date;
|
|
386
376
|
payload: string;
|
|
387
377
|
payloadType: string;
|
|
388
378
|
tags: string[];
|
|
379
|
+
createdAt: Date;
|
|
389
380
|
context?: any;
|
|
390
381
|
isTest?: boolean | undefined;
|
|
391
382
|
startedAt?: Date | undefined;
|
|
@@ -398,9 +389,18 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
398
389
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
399
390
|
maxDuration?: number | undefined;
|
|
400
391
|
};
|
|
392
|
+
queue: {
|
|
393
|
+
id: string;
|
|
394
|
+
name: string;
|
|
395
|
+
};
|
|
401
396
|
environment: {
|
|
397
|
+
id: string;
|
|
402
398
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
399
|
+
slug: string;
|
|
400
|
+
};
|
|
401
|
+
organization: {
|
|
403
402
|
id: string;
|
|
403
|
+
name: string;
|
|
404
404
|
slug: string;
|
|
405
405
|
};
|
|
406
406
|
project: {
|
|
@@ -424,29 +424,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
424
424
|
}>;
|
|
425
425
|
export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
|
|
426
426
|
export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
427
|
-
organization: z.ZodObject<{
|
|
428
|
-
id: z.ZodString;
|
|
429
|
-
slug: z.ZodString;
|
|
430
|
-
name: z.ZodString;
|
|
431
|
-
}, "strip", z.ZodTypeAny, {
|
|
432
|
-
id: string;
|
|
433
|
-
name: string;
|
|
434
|
-
slug: string;
|
|
435
|
-
}, {
|
|
436
|
-
id: string;
|
|
437
|
-
name: string;
|
|
438
|
-
slug: string;
|
|
439
|
-
}>;
|
|
440
|
-
queue: z.ZodObject<{
|
|
441
|
-
id: z.ZodString;
|
|
442
|
-
name: z.ZodString;
|
|
443
|
-
}, "strip", z.ZodTypeAny, {
|
|
444
|
-
id: string;
|
|
445
|
-
name: string;
|
|
446
|
-
}, {
|
|
447
|
-
id: string;
|
|
448
|
-
name: string;
|
|
449
|
-
}>;
|
|
450
427
|
task: z.ZodObject<{
|
|
451
428
|
id: z.ZodString;
|
|
452
429
|
filePath: z.ZodString;
|
|
@@ -469,15 +446,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
469
446
|
status: z.ZodString;
|
|
470
447
|
}, "strip", z.ZodTypeAny, {
|
|
471
448
|
number: number;
|
|
472
|
-
status: string;
|
|
473
449
|
id: string;
|
|
450
|
+
status: string;
|
|
474
451
|
startedAt: Date;
|
|
475
452
|
backgroundWorkerId: string;
|
|
476
453
|
backgroundWorkerTaskId: string;
|
|
477
454
|
}, {
|
|
478
455
|
number: number;
|
|
479
|
-
status: string;
|
|
480
456
|
id: string;
|
|
457
|
+
status: string;
|
|
481
458
|
startedAt: Date;
|
|
482
459
|
backgroundWorkerId: string;
|
|
483
460
|
backgroundWorkerTaskId: string;
|
|
@@ -501,15 +478,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
501
478
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
502
479
|
}, "strip", z.ZodTypeAny, {
|
|
503
480
|
id: string;
|
|
504
|
-
|
|
481
|
+
startedAt: Date;
|
|
505
482
|
payload: string;
|
|
506
483
|
payloadType: string;
|
|
507
484
|
tags: string[];
|
|
508
485
|
isTest: boolean;
|
|
509
|
-
|
|
486
|
+
createdAt: Date;
|
|
487
|
+
durationMs: number;
|
|
510
488
|
costInCents: number;
|
|
511
489
|
baseCostInCents: number;
|
|
512
|
-
durationMs: number;
|
|
513
490
|
context?: any;
|
|
514
491
|
idempotencyKey?: string | undefined;
|
|
515
492
|
maxAttempts?: number | undefined;
|
|
@@ -518,10 +495,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
518
495
|
maxDuration?: number | undefined;
|
|
519
496
|
}, {
|
|
520
497
|
id: string;
|
|
521
|
-
createdAt: Date;
|
|
522
498
|
payload: string;
|
|
523
499
|
payloadType: string;
|
|
524
500
|
tags: string[];
|
|
501
|
+
createdAt: Date;
|
|
525
502
|
context?: any;
|
|
526
503
|
isTest?: boolean | undefined;
|
|
527
504
|
startedAt?: Date | undefined;
|
|
@@ -534,17 +511,40 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
534
511
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
535
512
|
maxDuration?: number | undefined;
|
|
536
513
|
}>;
|
|
514
|
+
queue: z.ZodObject<{
|
|
515
|
+
id: z.ZodString;
|
|
516
|
+
name: z.ZodString;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
id: string;
|
|
519
|
+
name: string;
|
|
520
|
+
}, {
|
|
521
|
+
id: string;
|
|
522
|
+
name: string;
|
|
523
|
+
}>;
|
|
537
524
|
environment: z.ZodObject<{
|
|
538
525
|
id: z.ZodString;
|
|
539
526
|
slug: z.ZodString;
|
|
540
527
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
541
528
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
543
529
|
id: string;
|
|
530
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
544
531
|
slug: string;
|
|
545
532
|
}, {
|
|
533
|
+
id: string;
|
|
546
534
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
535
|
+
slug: string;
|
|
536
|
+
}>;
|
|
537
|
+
organization: z.ZodObject<{
|
|
538
|
+
id: z.ZodString;
|
|
539
|
+
slug: z.ZodString;
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
}, "strip", z.ZodTypeAny, {
|
|
542
|
+
id: string;
|
|
543
|
+
name: string;
|
|
544
|
+
slug: string;
|
|
545
|
+
}, {
|
|
547
546
|
id: string;
|
|
547
|
+
name: string;
|
|
548
548
|
slug: string;
|
|
549
549
|
}>;
|
|
550
550
|
project: z.ZodObject<{
|
|
@@ -576,12 +576,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
576
576
|
version: z.ZodString;
|
|
577
577
|
}, "strip", z.ZodTypeAny, {
|
|
578
578
|
id: string;
|
|
579
|
-
contentHash: string;
|
|
580
579
|
version: string;
|
|
580
|
+
contentHash: string;
|
|
581
581
|
}, {
|
|
582
582
|
id: string;
|
|
583
|
-
contentHash: string;
|
|
584
583
|
version: string;
|
|
584
|
+
contentHash: string;
|
|
585
585
|
}>;
|
|
586
586
|
machine: z.ZodDefault<z.ZodObject<{
|
|
587
587
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
@@ -600,26 +600,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
600
600
|
centsPerMs: number;
|
|
601
601
|
}>>;
|
|
602
602
|
}, "strip", z.ZodTypeAny, {
|
|
603
|
-
organization: {
|
|
604
|
-
id: string;
|
|
605
|
-
name: string;
|
|
606
|
-
slug: string;
|
|
607
|
-
};
|
|
608
|
-
queue: {
|
|
609
|
-
id: string;
|
|
610
|
-
name: string;
|
|
611
|
-
};
|
|
612
|
-
machine: {
|
|
613
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
614
|
-
cpu: number;
|
|
615
|
-
memory: number;
|
|
616
|
-
centsPerMs: number;
|
|
617
|
-
};
|
|
618
|
-
worker: {
|
|
619
|
-
id: string;
|
|
620
|
-
contentHash: string;
|
|
621
|
-
version: string;
|
|
622
|
-
};
|
|
623
603
|
task: {
|
|
624
604
|
id: string;
|
|
625
605
|
filePath: string;
|
|
@@ -627,23 +607,23 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
627
607
|
};
|
|
628
608
|
attempt: {
|
|
629
609
|
number: number;
|
|
630
|
-
status: string;
|
|
631
610
|
id: string;
|
|
611
|
+
status: string;
|
|
632
612
|
startedAt: Date;
|
|
633
613
|
backgroundWorkerId: string;
|
|
634
614
|
backgroundWorkerTaskId: string;
|
|
635
615
|
};
|
|
636
616
|
run: {
|
|
637
617
|
id: string;
|
|
638
|
-
|
|
618
|
+
startedAt: Date;
|
|
639
619
|
payload: string;
|
|
640
620
|
payloadType: string;
|
|
641
621
|
tags: string[];
|
|
642
622
|
isTest: boolean;
|
|
643
|
-
|
|
623
|
+
createdAt: Date;
|
|
624
|
+
durationMs: number;
|
|
644
625
|
costInCents: number;
|
|
645
626
|
baseCostInCents: number;
|
|
646
|
-
durationMs: number;
|
|
647
627
|
context?: any;
|
|
648
628
|
idempotencyKey?: string | undefined;
|
|
649
629
|
maxAttempts?: number | undefined;
|
|
@@ -651,35 +631,41 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
651
631
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
652
632
|
maxDuration?: number | undefined;
|
|
653
633
|
};
|
|
654
|
-
|
|
655
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
634
|
+
queue: {
|
|
656
635
|
id: string;
|
|
657
|
-
|
|
636
|
+
name: string;
|
|
658
637
|
};
|
|
659
|
-
|
|
638
|
+
environment: {
|
|
660
639
|
id: string;
|
|
661
|
-
|
|
640
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
662
641
|
slug: string;
|
|
663
|
-
ref: string;
|
|
664
642
|
};
|
|
665
|
-
batch?: {
|
|
666
|
-
id: string;
|
|
667
|
-
} | undefined;
|
|
668
|
-
}, {
|
|
669
643
|
organization: {
|
|
670
644
|
id: string;
|
|
671
645
|
name: string;
|
|
672
646
|
slug: string;
|
|
673
647
|
};
|
|
674
|
-
|
|
648
|
+
project: {
|
|
675
649
|
id: string;
|
|
676
650
|
name: string;
|
|
651
|
+
slug: string;
|
|
652
|
+
ref: string;
|
|
653
|
+
};
|
|
654
|
+
machine: {
|
|
655
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
656
|
+
cpu: number;
|
|
657
|
+
memory: number;
|
|
658
|
+
centsPerMs: number;
|
|
677
659
|
};
|
|
678
660
|
worker: {
|
|
679
661
|
id: string;
|
|
680
|
-
contentHash: string;
|
|
681
662
|
version: string;
|
|
663
|
+
contentHash: string;
|
|
682
664
|
};
|
|
665
|
+
batch?: {
|
|
666
|
+
id: string;
|
|
667
|
+
} | undefined;
|
|
668
|
+
}, {
|
|
683
669
|
task: {
|
|
684
670
|
id: string;
|
|
685
671
|
filePath: string;
|
|
@@ -687,18 +673,18 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
687
673
|
};
|
|
688
674
|
attempt: {
|
|
689
675
|
number: number;
|
|
690
|
-
status: string;
|
|
691
676
|
id: string;
|
|
677
|
+
status: string;
|
|
692
678
|
startedAt: Date;
|
|
693
679
|
backgroundWorkerId: string;
|
|
694
680
|
backgroundWorkerTaskId: string;
|
|
695
681
|
};
|
|
696
682
|
run: {
|
|
697
683
|
id: string;
|
|
698
|
-
createdAt: Date;
|
|
699
684
|
payload: string;
|
|
700
685
|
payloadType: string;
|
|
701
686
|
tags: string[];
|
|
687
|
+
createdAt: Date;
|
|
702
688
|
context?: any;
|
|
703
689
|
isTest?: boolean | undefined;
|
|
704
690
|
startedAt?: Date | undefined;
|
|
@@ -711,9 +697,18 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
711
697
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
712
698
|
maxDuration?: number | undefined;
|
|
713
699
|
};
|
|
700
|
+
queue: {
|
|
701
|
+
id: string;
|
|
702
|
+
name: string;
|
|
703
|
+
};
|
|
714
704
|
environment: {
|
|
705
|
+
id: string;
|
|
715
706
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
707
|
+
slug: string;
|
|
708
|
+
};
|
|
709
|
+
organization: {
|
|
716
710
|
id: string;
|
|
711
|
+
name: string;
|
|
717
712
|
slug: string;
|
|
718
713
|
};
|
|
719
714
|
project: {
|
|
@@ -722,6 +717,11 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
722
717
|
slug: string;
|
|
723
718
|
ref: string;
|
|
724
719
|
};
|
|
720
|
+
worker: {
|
|
721
|
+
id: string;
|
|
722
|
+
version: string;
|
|
723
|
+
contentHash: string;
|
|
724
|
+
};
|
|
725
725
|
batch?: {
|
|
726
726
|
id: string;
|
|
727
727
|
} | undefined;
|
|
@@ -735,29 +735,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
735
735
|
export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
|
|
736
736
|
export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
737
737
|
execution: z.ZodObject<{
|
|
738
|
-
organization: z.ZodObject<{
|
|
739
|
-
id: z.ZodString;
|
|
740
|
-
slug: z.ZodString;
|
|
741
|
-
name: z.ZodString;
|
|
742
|
-
}, "strip", z.ZodTypeAny, {
|
|
743
|
-
id: string;
|
|
744
|
-
name: string;
|
|
745
|
-
slug: string;
|
|
746
|
-
}, {
|
|
747
|
-
id: string;
|
|
748
|
-
name: string;
|
|
749
|
-
slug: string;
|
|
750
|
-
}>;
|
|
751
|
-
queue: z.ZodObject<{
|
|
752
|
-
id: z.ZodString;
|
|
753
|
-
name: z.ZodString;
|
|
754
|
-
}, "strip", z.ZodTypeAny, {
|
|
755
|
-
id: string;
|
|
756
|
-
name: string;
|
|
757
|
-
}, {
|
|
758
|
-
id: string;
|
|
759
|
-
name: string;
|
|
760
|
-
}>;
|
|
761
738
|
task: z.ZodObject<{
|
|
762
739
|
id: z.ZodString;
|
|
763
740
|
filePath: z.ZodString;
|
|
@@ -780,15 +757,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
780
757
|
status: z.ZodString;
|
|
781
758
|
}, "strip", z.ZodTypeAny, {
|
|
782
759
|
number: number;
|
|
783
|
-
status: string;
|
|
784
760
|
id: string;
|
|
761
|
+
status: string;
|
|
785
762
|
startedAt: Date;
|
|
786
763
|
backgroundWorkerId: string;
|
|
787
764
|
backgroundWorkerTaskId: string;
|
|
788
765
|
}, {
|
|
789
766
|
number: number;
|
|
790
|
-
status: string;
|
|
791
767
|
id: string;
|
|
768
|
+
status: string;
|
|
792
769
|
startedAt: Date;
|
|
793
770
|
backgroundWorkerId: string;
|
|
794
771
|
backgroundWorkerTaskId: string;
|
|
@@ -812,15 +789,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
812
789
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
813
790
|
}, "strip", z.ZodTypeAny, {
|
|
814
791
|
id: string;
|
|
815
|
-
|
|
792
|
+
startedAt: Date;
|
|
816
793
|
payload: string;
|
|
817
794
|
payloadType: string;
|
|
818
795
|
tags: string[];
|
|
819
796
|
isTest: boolean;
|
|
820
|
-
|
|
797
|
+
createdAt: Date;
|
|
798
|
+
durationMs: number;
|
|
821
799
|
costInCents: number;
|
|
822
800
|
baseCostInCents: number;
|
|
823
|
-
durationMs: number;
|
|
824
801
|
context?: any;
|
|
825
802
|
idempotencyKey?: string | undefined;
|
|
826
803
|
maxAttempts?: number | undefined;
|
|
@@ -829,10 +806,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
829
806
|
maxDuration?: number | undefined;
|
|
830
807
|
}, {
|
|
831
808
|
id: string;
|
|
832
|
-
createdAt: Date;
|
|
833
809
|
payload: string;
|
|
834
810
|
payloadType: string;
|
|
835
811
|
tags: string[];
|
|
812
|
+
createdAt: Date;
|
|
836
813
|
context?: any;
|
|
837
814
|
isTest?: boolean | undefined;
|
|
838
815
|
startedAt?: Date | undefined;
|
|
@@ -845,17 +822,40 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
845
822
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
846
823
|
maxDuration?: number | undefined;
|
|
847
824
|
}>;
|
|
825
|
+
queue: z.ZodObject<{
|
|
826
|
+
id: z.ZodString;
|
|
827
|
+
name: z.ZodString;
|
|
828
|
+
}, "strip", z.ZodTypeAny, {
|
|
829
|
+
id: string;
|
|
830
|
+
name: string;
|
|
831
|
+
}, {
|
|
832
|
+
id: string;
|
|
833
|
+
name: string;
|
|
834
|
+
}>;
|
|
848
835
|
environment: z.ZodObject<{
|
|
849
836
|
id: z.ZodString;
|
|
850
837
|
slug: z.ZodString;
|
|
851
838
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
852
839
|
}, "strip", z.ZodTypeAny, {
|
|
853
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
854
840
|
id: string;
|
|
841
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
855
842
|
slug: string;
|
|
856
843
|
}, {
|
|
844
|
+
id: string;
|
|
857
845
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
846
|
+
slug: string;
|
|
847
|
+
}>;
|
|
848
|
+
organization: z.ZodObject<{
|
|
849
|
+
id: z.ZodString;
|
|
850
|
+
slug: z.ZodString;
|
|
851
|
+
name: z.ZodString;
|
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
id: string;
|
|
854
|
+
name: string;
|
|
855
|
+
slug: string;
|
|
856
|
+
}, {
|
|
858
857
|
id: string;
|
|
858
|
+
name: string;
|
|
859
859
|
slug: string;
|
|
860
860
|
}>;
|
|
861
861
|
project: z.ZodObject<{
|
|
@@ -887,12 +887,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
887
887
|
version: z.ZodString;
|
|
888
888
|
}, "strip", z.ZodTypeAny, {
|
|
889
889
|
id: string;
|
|
890
|
-
contentHash: string;
|
|
891
890
|
version: string;
|
|
891
|
+
contentHash: string;
|
|
892
892
|
}, {
|
|
893
893
|
id: string;
|
|
894
|
-
contentHash: string;
|
|
895
894
|
version: string;
|
|
895
|
+
contentHash: string;
|
|
896
896
|
}>;
|
|
897
897
|
machine: z.ZodDefault<z.ZodObject<{
|
|
898
898
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
@@ -911,26 +911,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
911
911
|
centsPerMs: number;
|
|
912
912
|
}>>;
|
|
913
913
|
}, "strip", z.ZodTypeAny, {
|
|
914
|
-
organization: {
|
|
915
|
-
id: string;
|
|
916
|
-
name: string;
|
|
917
|
-
slug: string;
|
|
918
|
-
};
|
|
919
|
-
queue: {
|
|
920
|
-
id: string;
|
|
921
|
-
name: string;
|
|
922
|
-
};
|
|
923
|
-
machine: {
|
|
924
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
925
|
-
cpu: number;
|
|
926
|
-
memory: number;
|
|
927
|
-
centsPerMs: number;
|
|
928
|
-
};
|
|
929
|
-
worker: {
|
|
930
|
-
id: string;
|
|
931
|
-
contentHash: string;
|
|
932
|
-
version: string;
|
|
933
|
-
};
|
|
934
914
|
task: {
|
|
935
915
|
id: string;
|
|
936
916
|
filePath: string;
|
|
@@ -938,23 +918,23 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
938
918
|
};
|
|
939
919
|
attempt: {
|
|
940
920
|
number: number;
|
|
941
|
-
status: string;
|
|
942
921
|
id: string;
|
|
922
|
+
status: string;
|
|
943
923
|
startedAt: Date;
|
|
944
924
|
backgroundWorkerId: string;
|
|
945
925
|
backgroundWorkerTaskId: string;
|
|
946
926
|
};
|
|
947
927
|
run: {
|
|
948
928
|
id: string;
|
|
949
|
-
|
|
929
|
+
startedAt: Date;
|
|
950
930
|
payload: string;
|
|
951
931
|
payloadType: string;
|
|
952
932
|
tags: string[];
|
|
953
933
|
isTest: boolean;
|
|
954
|
-
|
|
934
|
+
createdAt: Date;
|
|
935
|
+
durationMs: number;
|
|
955
936
|
costInCents: number;
|
|
956
937
|
baseCostInCents: number;
|
|
957
|
-
durationMs: number;
|
|
958
938
|
context?: any;
|
|
959
939
|
idempotencyKey?: string | undefined;
|
|
960
940
|
maxAttempts?: number | undefined;
|
|
@@ -962,35 +942,41 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
962
942
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
963
943
|
maxDuration?: number | undefined;
|
|
964
944
|
};
|
|
965
|
-
|
|
966
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
945
|
+
queue: {
|
|
967
946
|
id: string;
|
|
968
|
-
|
|
947
|
+
name: string;
|
|
969
948
|
};
|
|
970
|
-
|
|
949
|
+
environment: {
|
|
971
950
|
id: string;
|
|
972
|
-
|
|
951
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
973
952
|
slug: string;
|
|
974
|
-
ref: string;
|
|
975
953
|
};
|
|
976
|
-
batch?: {
|
|
977
|
-
id: string;
|
|
978
|
-
} | undefined;
|
|
979
|
-
}, {
|
|
980
954
|
organization: {
|
|
981
955
|
id: string;
|
|
982
956
|
name: string;
|
|
983
957
|
slug: string;
|
|
984
958
|
};
|
|
985
|
-
|
|
959
|
+
project: {
|
|
986
960
|
id: string;
|
|
987
961
|
name: string;
|
|
962
|
+
slug: string;
|
|
963
|
+
ref: string;
|
|
964
|
+
};
|
|
965
|
+
machine: {
|
|
966
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
967
|
+
cpu: number;
|
|
968
|
+
memory: number;
|
|
969
|
+
centsPerMs: number;
|
|
988
970
|
};
|
|
989
971
|
worker: {
|
|
990
972
|
id: string;
|
|
991
|
-
contentHash: string;
|
|
992
973
|
version: string;
|
|
974
|
+
contentHash: string;
|
|
993
975
|
};
|
|
976
|
+
batch?: {
|
|
977
|
+
id: string;
|
|
978
|
+
} | undefined;
|
|
979
|
+
}, {
|
|
994
980
|
task: {
|
|
995
981
|
id: string;
|
|
996
982
|
filePath: string;
|
|
@@ -998,18 +984,18 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
998
984
|
};
|
|
999
985
|
attempt: {
|
|
1000
986
|
number: number;
|
|
1001
|
-
status: string;
|
|
1002
987
|
id: string;
|
|
988
|
+
status: string;
|
|
1003
989
|
startedAt: Date;
|
|
1004
990
|
backgroundWorkerId: string;
|
|
1005
991
|
backgroundWorkerTaskId: string;
|
|
1006
992
|
};
|
|
1007
993
|
run: {
|
|
1008
994
|
id: string;
|
|
1009
|
-
createdAt: Date;
|
|
1010
995
|
payload: string;
|
|
1011
996
|
payloadType: string;
|
|
1012
997
|
tags: string[];
|
|
998
|
+
createdAt: Date;
|
|
1013
999
|
context?: any;
|
|
1014
1000
|
isTest?: boolean | undefined;
|
|
1015
1001
|
startedAt?: Date | undefined;
|
|
@@ -1022,9 +1008,18 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1022
1008
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1023
1009
|
maxDuration?: number | undefined;
|
|
1024
1010
|
};
|
|
1011
|
+
queue: {
|
|
1012
|
+
id: string;
|
|
1013
|
+
name: string;
|
|
1014
|
+
};
|
|
1025
1015
|
environment: {
|
|
1016
|
+
id: string;
|
|
1026
1017
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1018
|
+
slug: string;
|
|
1019
|
+
};
|
|
1020
|
+
organization: {
|
|
1027
1021
|
id: string;
|
|
1022
|
+
name: string;
|
|
1028
1023
|
slug: string;
|
|
1029
1024
|
};
|
|
1030
1025
|
project: {
|
|
@@ -1033,6 +1028,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1033
1028
|
slug: string;
|
|
1034
1029
|
ref: string;
|
|
1035
1030
|
};
|
|
1031
|
+
worker: {
|
|
1032
|
+
id: string;
|
|
1033
|
+
version: string;
|
|
1034
|
+
contentHash: string;
|
|
1035
|
+
};
|
|
1036
1036
|
batch?: {
|
|
1037
1037
|
id: string;
|
|
1038
1038
|
} | undefined;
|
|
@@ -1047,26 +1047,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1047
1047
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1048
1048
|
}, "strip", z.ZodTypeAny, {
|
|
1049
1049
|
execution: {
|
|
1050
|
-
organization: {
|
|
1051
|
-
id: string;
|
|
1052
|
-
name: string;
|
|
1053
|
-
slug: string;
|
|
1054
|
-
};
|
|
1055
|
-
queue: {
|
|
1056
|
-
id: string;
|
|
1057
|
-
name: string;
|
|
1058
|
-
};
|
|
1059
|
-
machine: {
|
|
1060
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1061
|
-
cpu: number;
|
|
1062
|
-
memory: number;
|
|
1063
|
-
centsPerMs: number;
|
|
1064
|
-
};
|
|
1065
|
-
worker: {
|
|
1066
|
-
id: string;
|
|
1067
|
-
contentHash: string;
|
|
1068
|
-
version: string;
|
|
1069
|
-
};
|
|
1070
1050
|
task: {
|
|
1071
1051
|
id: string;
|
|
1072
1052
|
filePath: string;
|
|
@@ -1074,23 +1054,23 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1074
1054
|
};
|
|
1075
1055
|
attempt: {
|
|
1076
1056
|
number: number;
|
|
1077
|
-
status: string;
|
|
1078
1057
|
id: string;
|
|
1058
|
+
status: string;
|
|
1079
1059
|
startedAt: Date;
|
|
1080
1060
|
backgroundWorkerId: string;
|
|
1081
1061
|
backgroundWorkerTaskId: string;
|
|
1082
1062
|
};
|
|
1083
1063
|
run: {
|
|
1084
1064
|
id: string;
|
|
1085
|
-
|
|
1065
|
+
startedAt: Date;
|
|
1086
1066
|
payload: string;
|
|
1087
1067
|
payloadType: string;
|
|
1088
1068
|
tags: string[];
|
|
1089
1069
|
isTest: boolean;
|
|
1090
|
-
|
|
1070
|
+
createdAt: Date;
|
|
1071
|
+
durationMs: number;
|
|
1091
1072
|
costInCents: number;
|
|
1092
1073
|
baseCostInCents: number;
|
|
1093
|
-
durationMs: number;
|
|
1094
1074
|
context?: any;
|
|
1095
1075
|
idempotencyKey?: string | undefined;
|
|
1096
1076
|
maxAttempts?: number | undefined;
|
|
@@ -1098,9 +1078,18 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1098
1078
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1099
1079
|
maxDuration?: number | undefined;
|
|
1100
1080
|
};
|
|
1081
|
+
queue: {
|
|
1082
|
+
id: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
};
|
|
1101
1085
|
environment: {
|
|
1086
|
+
id: string;
|
|
1102
1087
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1088
|
+
slug: string;
|
|
1089
|
+
};
|
|
1090
|
+
organization: {
|
|
1103
1091
|
id: string;
|
|
1092
|
+
name: string;
|
|
1104
1093
|
slug: string;
|
|
1105
1094
|
};
|
|
1106
1095
|
project: {
|
|
@@ -1109,6 +1098,17 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1109
1098
|
slug: string;
|
|
1110
1099
|
ref: string;
|
|
1111
1100
|
};
|
|
1101
|
+
machine: {
|
|
1102
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1103
|
+
cpu: number;
|
|
1104
|
+
memory: number;
|
|
1105
|
+
centsPerMs: number;
|
|
1106
|
+
};
|
|
1107
|
+
worker: {
|
|
1108
|
+
id: string;
|
|
1109
|
+
version: string;
|
|
1110
|
+
contentHash: string;
|
|
1111
|
+
};
|
|
1112
1112
|
batch?: {
|
|
1113
1113
|
id: string;
|
|
1114
1114
|
} | undefined;
|
|
@@ -1117,20 +1117,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1117
1117
|
environment?: Record<string, string> | undefined;
|
|
1118
1118
|
}, {
|
|
1119
1119
|
execution: {
|
|
1120
|
-
organization: {
|
|
1121
|
-
id: string;
|
|
1122
|
-
name: string;
|
|
1123
|
-
slug: string;
|
|
1124
|
-
};
|
|
1125
|
-
queue: {
|
|
1126
|
-
id: string;
|
|
1127
|
-
name: string;
|
|
1128
|
-
};
|
|
1129
|
-
worker: {
|
|
1130
|
-
id: string;
|
|
1131
|
-
contentHash: string;
|
|
1132
|
-
version: string;
|
|
1133
|
-
};
|
|
1134
1120
|
task: {
|
|
1135
1121
|
id: string;
|
|
1136
1122
|
filePath: string;
|
|
@@ -1138,18 +1124,18 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1138
1124
|
};
|
|
1139
1125
|
attempt: {
|
|
1140
1126
|
number: number;
|
|
1141
|
-
status: string;
|
|
1142
1127
|
id: string;
|
|
1128
|
+
status: string;
|
|
1143
1129
|
startedAt: Date;
|
|
1144
1130
|
backgroundWorkerId: string;
|
|
1145
1131
|
backgroundWorkerTaskId: string;
|
|
1146
1132
|
};
|
|
1147
1133
|
run: {
|
|
1148
1134
|
id: string;
|
|
1149
|
-
createdAt: Date;
|
|
1150
1135
|
payload: string;
|
|
1151
1136
|
payloadType: string;
|
|
1152
1137
|
tags: string[];
|
|
1138
|
+
createdAt: Date;
|
|
1153
1139
|
context?: any;
|
|
1154
1140
|
isTest?: boolean | undefined;
|
|
1155
1141
|
startedAt?: Date | undefined;
|
|
@@ -1162,9 +1148,18 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1162
1148
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1163
1149
|
maxDuration?: number | undefined;
|
|
1164
1150
|
};
|
|
1151
|
+
queue: {
|
|
1152
|
+
id: string;
|
|
1153
|
+
name: string;
|
|
1154
|
+
};
|
|
1165
1155
|
environment: {
|
|
1156
|
+
id: string;
|
|
1166
1157
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1158
|
+
slug: string;
|
|
1159
|
+
};
|
|
1160
|
+
organization: {
|
|
1167
1161
|
id: string;
|
|
1162
|
+
name: string;
|
|
1168
1163
|
slug: string;
|
|
1169
1164
|
};
|
|
1170
1165
|
project: {
|
|
@@ -1173,6 +1168,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1173
1168
|
slug: string;
|
|
1174
1169
|
ref: string;
|
|
1175
1170
|
};
|
|
1171
|
+
worker: {
|
|
1172
|
+
id: string;
|
|
1173
|
+
version: string;
|
|
1174
|
+
contentHash: string;
|
|
1175
|
+
};
|
|
1176
1176
|
batch?: {
|
|
1177
1177
|
id: string;
|
|
1178
1178
|
} | undefined;
|