@trigger.dev/core 0.0.0-v3-prerelease-20240916181030 → 0.0.0-v3-prerelease-20240923150540
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/schemas/api.d.ts +8 -8
- package/dist/commonjs/v3/apiClient/index.d.ts +238 -60
- package/dist/commonjs/v3/build/resolvedConfig.d.ts +1 -0
- package/dist/commonjs/v3/schemas/api.d.ts +901 -194
- package/dist/commonjs/v3/schemas/api.js +23 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +126 -126
- package/dist/commonjs/v3/schemas/fetch.d.ts +14 -14
- package/dist/commonjs/v3/schemas/messages.d.ts +3799 -3104
- package/dist/commonjs/v3/schemas/messages.js +28 -14
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +30 -30
- package/dist/commonjs/v3/schemas/schemas.d.ts +460 -460
- package/dist/commonjs/v3/utils/ioSerialization.d.ts +1 -0
- package/dist/commonjs/v3/utils/ioSerialization.js +26 -1
- package/dist/commonjs/v3/utils/ioSerialization.js.map +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 +178 -0
- package/dist/esm/v3/build/resolvedConfig.d.ts +1 -0
- package/dist/esm/v3/schemas/api.d.ts +707 -0
- package/dist/esm/v3/schemas/api.js +21 -1
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +695 -0
- package/dist/esm/v3/schemas/messages.js +28 -14
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.d.ts +1 -0
- package/dist/esm/v3/utils/ioSerialization.js +25 -1
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -55,25 +55,25 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
55
55
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
56
56
|
version: z.ZodOptional<z.ZodString>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
payload: string;
|
|
59
58
|
id: string;
|
|
60
|
-
startedAt: Date;
|
|
61
|
-
payloadType: string;
|
|
62
|
-
isTest: boolean;
|
|
63
59
|
createdAt: Date;
|
|
60
|
+
payload: string;
|
|
61
|
+
payloadType: string;
|
|
64
62
|
tags: string[];
|
|
65
|
-
|
|
63
|
+
isTest: boolean;
|
|
64
|
+
startedAt: Date;
|
|
66
65
|
costInCents: number;
|
|
67
66
|
baseCostInCents: number;
|
|
67
|
+
durationMs: number;
|
|
68
68
|
context?: any;
|
|
69
69
|
idempotencyKey?: string | undefined;
|
|
70
70
|
maxAttempts?: number | undefined;
|
|
71
71
|
version?: string | undefined;
|
|
72
72
|
}, {
|
|
73
|
-
payload: string;
|
|
74
73
|
id: string;
|
|
75
|
-
payloadType: string;
|
|
76
74
|
createdAt: Date;
|
|
75
|
+
payload: string;
|
|
76
|
+
payloadType: string;
|
|
77
77
|
tags: string[];
|
|
78
78
|
context?: any;
|
|
79
79
|
isTest?: boolean | undefined;
|
|
@@ -89,11 +89,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
89
89
|
id: z.ZodString;
|
|
90
90
|
name: z.ZodString;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
name: string;
|
|
93
92
|
id: string;
|
|
94
|
-
}, {
|
|
95
93
|
name: string;
|
|
94
|
+
}, {
|
|
96
95
|
id: string;
|
|
96
|
+
name: string;
|
|
97
97
|
}>;
|
|
98
98
|
environment: z.ZodObject<{
|
|
99
99
|
id: z.ZodString;
|
|
@@ -113,12 +113,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
113
113
|
slug: z.ZodString;
|
|
114
114
|
name: z.ZodString;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
name: string;
|
|
117
116
|
id: string;
|
|
117
|
+
name: string;
|
|
118
118
|
slug: string;
|
|
119
119
|
}, {
|
|
120
|
-
name: string;
|
|
121
120
|
id: string;
|
|
121
|
+
name: string;
|
|
122
122
|
slug: string;
|
|
123
123
|
}>;
|
|
124
124
|
project: z.ZodObject<{
|
|
@@ -127,13 +127,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
127
127
|
slug: z.ZodString;
|
|
128
128
|
name: z.ZodString;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
name: string;
|
|
131
130
|
id: string;
|
|
131
|
+
name: string;
|
|
132
132
|
slug: string;
|
|
133
133
|
ref: string;
|
|
134
134
|
}, {
|
|
135
|
-
name: string;
|
|
136
135
|
id: string;
|
|
136
|
+
name: string;
|
|
137
137
|
slug: string;
|
|
138
138
|
ref: string;
|
|
139
139
|
}>;
|
|
@@ -161,17 +161,39 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
161
161
|
centsPerMs: number;
|
|
162
162
|
}>>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
organization: {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
slug: string;
|
|
168
|
+
};
|
|
169
|
+
queue: {
|
|
170
|
+
id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
};
|
|
173
|
+
task: {
|
|
174
|
+
id: string;
|
|
175
|
+
filePath: string;
|
|
176
|
+
exportName: string;
|
|
177
|
+
};
|
|
178
|
+
attempt: {
|
|
179
|
+
number: number;
|
|
180
|
+
status: string;
|
|
166
181
|
id: string;
|
|
167
182
|
startedAt: Date;
|
|
168
|
-
|
|
169
|
-
|
|
183
|
+
backgroundWorkerId: string;
|
|
184
|
+
backgroundWorkerTaskId: string;
|
|
185
|
+
};
|
|
186
|
+
run: {
|
|
187
|
+
id: string;
|
|
170
188
|
createdAt: Date;
|
|
189
|
+
payload: string;
|
|
190
|
+
payloadType: string;
|
|
171
191
|
tags: string[];
|
|
172
|
-
|
|
192
|
+
isTest: boolean;
|
|
193
|
+
startedAt: Date;
|
|
173
194
|
costInCents: number;
|
|
174
195
|
baseCostInCents: number;
|
|
196
|
+
durationMs: number;
|
|
175
197
|
context?: any;
|
|
176
198
|
idempotencyKey?: string | undefined;
|
|
177
199
|
maxAttempts?: number | undefined;
|
|
@@ -182,16 +204,30 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
182
204
|
id: string;
|
|
183
205
|
slug: string;
|
|
184
206
|
};
|
|
185
|
-
|
|
186
|
-
name: string;
|
|
207
|
+
project: {
|
|
187
208
|
id: string;
|
|
209
|
+
name: string;
|
|
188
210
|
slug: string;
|
|
211
|
+
ref: string;
|
|
189
212
|
};
|
|
190
|
-
|
|
191
|
-
|
|
213
|
+
batch?: {
|
|
214
|
+
id: string;
|
|
215
|
+
} | undefined;
|
|
216
|
+
machine?: {
|
|
217
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
218
|
+
cpu: number;
|
|
219
|
+
memory: number;
|
|
220
|
+
centsPerMs: number;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
organization: {
|
|
192
224
|
id: string;
|
|
225
|
+
name: string;
|
|
193
226
|
slug: string;
|
|
194
|
-
|
|
227
|
+
};
|
|
228
|
+
queue: {
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
195
231
|
};
|
|
196
232
|
task: {
|
|
197
233
|
id: string;
|
|
@@ -206,25 +242,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
206
242
|
backgroundWorkerId: string;
|
|
207
243
|
backgroundWorkerTaskId: string;
|
|
208
244
|
};
|
|
209
|
-
queue: {
|
|
210
|
-
name: string;
|
|
211
|
-
id: string;
|
|
212
|
-
};
|
|
213
|
-
batch?: {
|
|
214
|
-
id: string;
|
|
215
|
-
} | undefined;
|
|
216
|
-
machine?: {
|
|
217
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
218
|
-
cpu: number;
|
|
219
|
-
memory: number;
|
|
220
|
-
centsPerMs: number;
|
|
221
|
-
} | undefined;
|
|
222
|
-
}, {
|
|
223
245
|
run: {
|
|
224
|
-
payload: string;
|
|
225
246
|
id: string;
|
|
226
|
-
payloadType: string;
|
|
227
247
|
createdAt: Date;
|
|
248
|
+
payload: string;
|
|
249
|
+
payloadType: string;
|
|
228
250
|
tags: string[];
|
|
229
251
|
context?: any;
|
|
230
252
|
isTest?: boolean | undefined;
|
|
@@ -241,34 +263,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
241
263
|
id: string;
|
|
242
264
|
slug: string;
|
|
243
265
|
};
|
|
244
|
-
organization: {
|
|
245
|
-
name: string;
|
|
246
|
-
id: string;
|
|
247
|
-
slug: string;
|
|
248
|
-
};
|
|
249
266
|
project: {
|
|
250
|
-
name: string;
|
|
251
267
|
id: string;
|
|
268
|
+
name: string;
|
|
252
269
|
slug: string;
|
|
253
270
|
ref: string;
|
|
254
271
|
};
|
|
255
|
-
task: {
|
|
256
|
-
id: string;
|
|
257
|
-
filePath: string;
|
|
258
|
-
exportName: string;
|
|
259
|
-
};
|
|
260
|
-
attempt: {
|
|
261
|
-
number: number;
|
|
262
|
-
status: string;
|
|
263
|
-
id: string;
|
|
264
|
-
startedAt: Date;
|
|
265
|
-
backgroundWorkerId: string;
|
|
266
|
-
backgroundWorkerTaskId: string;
|
|
267
|
-
};
|
|
268
|
-
queue: {
|
|
269
|
-
name: string;
|
|
270
|
-
id: string;
|
|
271
|
-
};
|
|
272
272
|
batch?: {
|
|
273
273
|
id: string;
|
|
274
274
|
} | undefined;
|
|
@@ -283,37 +283,14 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
283
283
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
284
284
|
}, "strip", z.ZodTypeAny, {
|
|
285
285
|
execution: {
|
|
286
|
-
run: {
|
|
287
|
-
payload: string;
|
|
288
|
-
id: string;
|
|
289
|
-
startedAt: Date;
|
|
290
|
-
payloadType: string;
|
|
291
|
-
isTest: boolean;
|
|
292
|
-
createdAt: Date;
|
|
293
|
-
tags: string[];
|
|
294
|
-
durationMs: number;
|
|
295
|
-
costInCents: number;
|
|
296
|
-
baseCostInCents: number;
|
|
297
|
-
context?: any;
|
|
298
|
-
idempotencyKey?: string | undefined;
|
|
299
|
-
maxAttempts?: number | undefined;
|
|
300
|
-
version?: string | undefined;
|
|
301
|
-
};
|
|
302
|
-
environment: {
|
|
303
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
304
|
-
id: string;
|
|
305
|
-
slug: string;
|
|
306
|
-
};
|
|
307
286
|
organization: {
|
|
308
|
-
name: string;
|
|
309
287
|
id: string;
|
|
288
|
+
name: string;
|
|
310
289
|
slug: string;
|
|
311
290
|
};
|
|
312
|
-
|
|
313
|
-
name: string;
|
|
291
|
+
queue: {
|
|
314
292
|
id: string;
|
|
315
|
-
|
|
316
|
-
ref: string;
|
|
293
|
+
name: string;
|
|
317
294
|
};
|
|
318
295
|
task: {
|
|
319
296
|
id: string;
|
|
@@ -328,9 +305,32 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
328
305
|
backgroundWorkerId: string;
|
|
329
306
|
backgroundWorkerTaskId: string;
|
|
330
307
|
};
|
|
331
|
-
|
|
332
|
-
|
|
308
|
+
run: {
|
|
309
|
+
id: string;
|
|
310
|
+
createdAt: Date;
|
|
311
|
+
payload: string;
|
|
312
|
+
payloadType: string;
|
|
313
|
+
tags: string[];
|
|
314
|
+
isTest: boolean;
|
|
315
|
+
startedAt: Date;
|
|
316
|
+
costInCents: number;
|
|
317
|
+
baseCostInCents: number;
|
|
318
|
+
durationMs: number;
|
|
319
|
+
context?: any;
|
|
320
|
+
idempotencyKey?: string | undefined;
|
|
321
|
+
maxAttempts?: number | undefined;
|
|
322
|
+
version?: string | undefined;
|
|
323
|
+
};
|
|
324
|
+
environment: {
|
|
325
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
326
|
+
id: string;
|
|
327
|
+
slug: string;
|
|
328
|
+
};
|
|
329
|
+
project: {
|
|
333
330
|
id: string;
|
|
331
|
+
name: string;
|
|
332
|
+
slug: string;
|
|
333
|
+
ref: string;
|
|
334
334
|
};
|
|
335
335
|
batch?: {
|
|
336
336
|
id: string;
|
|
@@ -346,11 +346,33 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
346
346
|
environment?: Record<string, string> | undefined;
|
|
347
347
|
}, {
|
|
348
348
|
execution: {
|
|
349
|
+
organization: {
|
|
350
|
+
id: string;
|
|
351
|
+
name: string;
|
|
352
|
+
slug: string;
|
|
353
|
+
};
|
|
354
|
+
queue: {
|
|
355
|
+
id: string;
|
|
356
|
+
name: string;
|
|
357
|
+
};
|
|
358
|
+
task: {
|
|
359
|
+
id: string;
|
|
360
|
+
filePath: string;
|
|
361
|
+
exportName: string;
|
|
362
|
+
};
|
|
363
|
+
attempt: {
|
|
364
|
+
number: number;
|
|
365
|
+
status: string;
|
|
366
|
+
id: string;
|
|
367
|
+
startedAt: Date;
|
|
368
|
+
backgroundWorkerId: string;
|
|
369
|
+
backgroundWorkerTaskId: string;
|
|
370
|
+
};
|
|
349
371
|
run: {
|
|
350
|
-
payload: string;
|
|
351
372
|
id: string;
|
|
352
|
-
payloadType: string;
|
|
353
373
|
createdAt: Date;
|
|
374
|
+
payload: string;
|
|
375
|
+
payloadType: string;
|
|
354
376
|
tags: string[];
|
|
355
377
|
context?: any;
|
|
356
378
|
isTest?: boolean | undefined;
|
|
@@ -367,34 +389,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
367
389
|
id: string;
|
|
368
390
|
slug: string;
|
|
369
391
|
};
|
|
370
|
-
organization: {
|
|
371
|
-
name: string;
|
|
372
|
-
id: string;
|
|
373
|
-
slug: string;
|
|
374
|
-
};
|
|
375
392
|
project: {
|
|
376
|
-
name: string;
|
|
377
393
|
id: string;
|
|
394
|
+
name: string;
|
|
378
395
|
slug: string;
|
|
379
396
|
ref: string;
|
|
380
397
|
};
|
|
381
|
-
task: {
|
|
382
|
-
id: string;
|
|
383
|
-
filePath: string;
|
|
384
|
-
exportName: string;
|
|
385
|
-
};
|
|
386
|
-
attempt: {
|
|
387
|
-
number: number;
|
|
388
|
-
status: string;
|
|
389
|
-
id: string;
|
|
390
|
-
startedAt: Date;
|
|
391
|
-
backgroundWorkerId: string;
|
|
392
|
-
backgroundWorkerTaskId: string;
|
|
393
|
-
};
|
|
394
|
-
queue: {
|
|
395
|
-
name: string;
|
|
396
|
-
id: string;
|
|
397
|
-
};
|
|
398
398
|
batch?: {
|
|
399
399
|
id: string;
|
|
400
400
|
} | undefined;
|
|
@@ -410,93 +410,28 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
410
410
|
}>;
|
|
411
411
|
export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
|
|
412
412
|
export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
413
|
-
|
|
413
|
+
organization: z.ZodObject<{
|
|
414
414
|
id: z.ZodString;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
context: z.ZodAny;
|
|
418
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
419
|
-
isTest: z.ZodDefault<z.ZodBoolean>;
|
|
420
|
-
createdAt: z.ZodDate;
|
|
421
|
-
startedAt: z.ZodDefault<z.ZodDate>;
|
|
422
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
423
|
-
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
424
|
-
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
425
|
-
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
426
|
-
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
427
|
-
version: z.ZodOptional<z.ZodString>;
|
|
415
|
+
slug: z.ZodString;
|
|
416
|
+
name: z.ZodString;
|
|
428
417
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
payload: string;
|
|
430
418
|
id: string;
|
|
431
|
-
startedAt: Date;
|
|
432
|
-
payloadType: string;
|
|
433
|
-
isTest: boolean;
|
|
434
|
-
createdAt: Date;
|
|
435
|
-
tags: string[];
|
|
436
|
-
durationMs: number;
|
|
437
|
-
costInCents: number;
|
|
438
|
-
baseCostInCents: number;
|
|
439
|
-
context?: any;
|
|
440
|
-
idempotencyKey?: string | undefined;
|
|
441
|
-
maxAttempts?: number | undefined;
|
|
442
|
-
version?: string | undefined;
|
|
443
|
-
}, {
|
|
444
|
-
payload: string;
|
|
445
|
-
id: string;
|
|
446
|
-
payloadType: string;
|
|
447
|
-
createdAt: Date;
|
|
448
|
-
tags: string[];
|
|
449
|
-
context?: any;
|
|
450
|
-
isTest?: boolean | undefined;
|
|
451
|
-
startedAt?: Date | undefined;
|
|
452
|
-
idempotencyKey?: string | undefined;
|
|
453
|
-
maxAttempts?: number | undefined;
|
|
454
|
-
durationMs?: number | undefined;
|
|
455
|
-
costInCents?: number | undefined;
|
|
456
|
-
baseCostInCents?: number | undefined;
|
|
457
|
-
version?: string | undefined;
|
|
458
|
-
}>;
|
|
459
|
-
environment: z.ZodObject<{
|
|
460
|
-
id: z.ZodString;
|
|
461
|
-
slug: z.ZodString;
|
|
462
|
-
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
463
|
-
}, "strip", z.ZodTypeAny, {
|
|
464
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
465
|
-
id: string;
|
|
466
|
-
slug: string;
|
|
467
|
-
}, {
|
|
468
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
469
|
-
id: string;
|
|
470
|
-
slug: string;
|
|
471
|
-
}>;
|
|
472
|
-
organization: z.ZodObject<{
|
|
473
|
-
id: z.ZodString;
|
|
474
|
-
slug: z.ZodString;
|
|
475
|
-
name: z.ZodString;
|
|
476
|
-
}, "strip", z.ZodTypeAny, {
|
|
477
419
|
name: string;
|
|
478
|
-
id: string;
|
|
479
420
|
slug: string;
|
|
480
421
|
}, {
|
|
481
|
-
name: string;
|
|
482
422
|
id: string;
|
|
423
|
+
name: string;
|
|
483
424
|
slug: string;
|
|
484
425
|
}>;
|
|
485
|
-
|
|
426
|
+
queue: z.ZodObject<{
|
|
486
427
|
id: z.ZodString;
|
|
487
|
-
ref: z.ZodString;
|
|
488
|
-
slug: z.ZodString;
|
|
489
428
|
name: z.ZodString;
|
|
490
429
|
}, "strip", z.ZodTypeAny, {
|
|
491
|
-
name: string;
|
|
492
430
|
id: string;
|
|
493
|
-
slug: string;
|
|
494
|
-
ref: string;
|
|
495
|
-
}, {
|
|
496
431
|
name: string;
|
|
432
|
+
}, {
|
|
497
433
|
id: string;
|
|
498
|
-
|
|
499
|
-
ref: string;
|
|
434
|
+
name: string;
|
|
500
435
|
}>;
|
|
501
436
|
task: z.ZodObject<{
|
|
502
437
|
id: z.ZodString;
|
|
@@ -533,15 +468,80 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
533
468
|
backgroundWorkerId: string;
|
|
534
469
|
backgroundWorkerTaskId: string;
|
|
535
470
|
}>;
|
|
536
|
-
|
|
471
|
+
run: z.ZodObject<{
|
|
537
472
|
id: z.ZodString;
|
|
538
|
-
|
|
473
|
+
payload: z.ZodString;
|
|
474
|
+
payloadType: z.ZodString;
|
|
475
|
+
context: z.ZodAny;
|
|
476
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
477
|
+
isTest: z.ZodDefault<z.ZodBoolean>;
|
|
478
|
+
createdAt: z.ZodDate;
|
|
479
|
+
startedAt: z.ZodDefault<z.ZodDate>;
|
|
480
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
481
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
482
|
+
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
483
|
+
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
484
|
+
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
485
|
+
version: z.ZodOptional<z.ZodString>;
|
|
539
486
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
name: string;
|
|
541
487
|
id: string;
|
|
488
|
+
createdAt: Date;
|
|
489
|
+
payload: string;
|
|
490
|
+
payloadType: string;
|
|
491
|
+
tags: string[];
|
|
492
|
+
isTest: boolean;
|
|
493
|
+
startedAt: Date;
|
|
494
|
+
costInCents: number;
|
|
495
|
+
baseCostInCents: number;
|
|
496
|
+
durationMs: number;
|
|
497
|
+
context?: any;
|
|
498
|
+
idempotencyKey?: string | undefined;
|
|
499
|
+
maxAttempts?: number | undefined;
|
|
500
|
+
version?: string | undefined;
|
|
501
|
+
}, {
|
|
502
|
+
id: string;
|
|
503
|
+
createdAt: Date;
|
|
504
|
+
payload: string;
|
|
505
|
+
payloadType: string;
|
|
506
|
+
tags: string[];
|
|
507
|
+
context?: any;
|
|
508
|
+
isTest?: boolean | undefined;
|
|
509
|
+
startedAt?: Date | undefined;
|
|
510
|
+
idempotencyKey?: string | undefined;
|
|
511
|
+
maxAttempts?: number | undefined;
|
|
512
|
+
durationMs?: number | undefined;
|
|
513
|
+
costInCents?: number | undefined;
|
|
514
|
+
baseCostInCents?: number | undefined;
|
|
515
|
+
version?: string | undefined;
|
|
516
|
+
}>;
|
|
517
|
+
environment: z.ZodObject<{
|
|
518
|
+
id: z.ZodString;
|
|
519
|
+
slug: z.ZodString;
|
|
520
|
+
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
523
|
+
id: string;
|
|
524
|
+
slug: string;
|
|
542
525
|
}, {
|
|
526
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
527
|
+
id: string;
|
|
528
|
+
slug: string;
|
|
529
|
+
}>;
|
|
530
|
+
project: z.ZodObject<{
|
|
531
|
+
id: z.ZodString;
|
|
532
|
+
ref: z.ZodString;
|
|
533
|
+
slug: z.ZodString;
|
|
534
|
+
name: z.ZodString;
|
|
535
|
+
}, "strip", z.ZodTypeAny, {
|
|
536
|
+
id: string;
|
|
543
537
|
name: string;
|
|
538
|
+
slug: string;
|
|
539
|
+
ref: string;
|
|
540
|
+
}, {
|
|
544
541
|
id: string;
|
|
542
|
+
name: string;
|
|
543
|
+
slug: string;
|
|
544
|
+
ref: string;
|
|
545
545
|
}>;
|
|
546
546
|
batch: z.ZodOptional<z.ZodObject<{
|
|
547
547
|
id: z.ZodString;
|
|
@@ -555,13 +555,13 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
555
555
|
contentHash: z.ZodString;
|
|
556
556
|
version: z.ZodString;
|
|
557
557
|
}, "strip", z.ZodTypeAny, {
|
|
558
|
-
version: string;
|
|
559
558
|
id: string;
|
|
560
559
|
contentHash: string;
|
|
561
|
-
}, {
|
|
562
560
|
version: string;
|
|
561
|
+
}, {
|
|
563
562
|
id: string;
|
|
564
563
|
contentHash: string;
|
|
564
|
+
version: string;
|
|
565
565
|
}>;
|
|
566
566
|
machine: z.ZodDefault<z.ZodObject<{
|
|
567
567
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
@@ -580,17 +580,50 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
580
580
|
centsPerMs: number;
|
|
581
581
|
}>>;
|
|
582
582
|
}, "strip", z.ZodTypeAny, {
|
|
583
|
-
|
|
584
|
-
|
|
583
|
+
organization: {
|
|
584
|
+
id: string;
|
|
585
|
+
name: string;
|
|
586
|
+
slug: string;
|
|
587
|
+
};
|
|
588
|
+
queue: {
|
|
589
|
+
id: string;
|
|
590
|
+
name: string;
|
|
591
|
+
};
|
|
592
|
+
machine: {
|
|
593
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
594
|
+
cpu: number;
|
|
595
|
+
memory: number;
|
|
596
|
+
centsPerMs: number;
|
|
597
|
+
};
|
|
598
|
+
worker: {
|
|
599
|
+
id: string;
|
|
600
|
+
contentHash: string;
|
|
601
|
+
version: string;
|
|
602
|
+
};
|
|
603
|
+
task: {
|
|
604
|
+
id: string;
|
|
605
|
+
filePath: string;
|
|
606
|
+
exportName: string;
|
|
607
|
+
};
|
|
608
|
+
attempt: {
|
|
609
|
+
number: number;
|
|
610
|
+
status: string;
|
|
585
611
|
id: string;
|
|
586
612
|
startedAt: Date;
|
|
587
|
-
|
|
588
|
-
|
|
613
|
+
backgroundWorkerId: string;
|
|
614
|
+
backgroundWorkerTaskId: string;
|
|
615
|
+
};
|
|
616
|
+
run: {
|
|
617
|
+
id: string;
|
|
589
618
|
createdAt: Date;
|
|
619
|
+
payload: string;
|
|
620
|
+
payloadType: string;
|
|
590
621
|
tags: string[];
|
|
591
|
-
|
|
622
|
+
isTest: boolean;
|
|
623
|
+
startedAt: Date;
|
|
592
624
|
costInCents: number;
|
|
593
625
|
baseCostInCents: number;
|
|
626
|
+
durationMs: number;
|
|
594
627
|
context?: any;
|
|
595
628
|
idempotencyKey?: string | undefined;
|
|
596
629
|
maxAttempts?: number | undefined;
|
|
@@ -601,16 +634,29 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
601
634
|
id: string;
|
|
602
635
|
slug: string;
|
|
603
636
|
};
|
|
604
|
-
|
|
637
|
+
project: {
|
|
638
|
+
id: string;
|
|
605
639
|
name: string;
|
|
640
|
+
slug: string;
|
|
641
|
+
ref: string;
|
|
642
|
+
};
|
|
643
|
+
batch?: {
|
|
644
|
+
id: string;
|
|
645
|
+
} | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
organization: {
|
|
606
648
|
id: string;
|
|
649
|
+
name: string;
|
|
607
650
|
slug: string;
|
|
608
651
|
};
|
|
609
|
-
|
|
652
|
+
queue: {
|
|
653
|
+
id: string;
|
|
610
654
|
name: string;
|
|
655
|
+
};
|
|
656
|
+
worker: {
|
|
611
657
|
id: string;
|
|
612
|
-
|
|
613
|
-
|
|
658
|
+
contentHash: string;
|
|
659
|
+
version: string;
|
|
614
660
|
};
|
|
615
661
|
task: {
|
|
616
662
|
id: string;
|
|
@@ -625,30 +671,11 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
625
671
|
backgroundWorkerId: string;
|
|
626
672
|
backgroundWorkerTaskId: string;
|
|
627
673
|
};
|
|
628
|
-
queue: {
|
|
629
|
-
name: string;
|
|
630
|
-
id: string;
|
|
631
|
-
};
|
|
632
|
-
machine: {
|
|
633
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
634
|
-
cpu: number;
|
|
635
|
-
memory: number;
|
|
636
|
-
centsPerMs: number;
|
|
637
|
-
};
|
|
638
|
-
worker: {
|
|
639
|
-
version: string;
|
|
640
|
-
id: string;
|
|
641
|
-
contentHash: string;
|
|
642
|
-
};
|
|
643
|
-
batch?: {
|
|
644
|
-
id: string;
|
|
645
|
-
} | undefined;
|
|
646
|
-
}, {
|
|
647
674
|
run: {
|
|
648
|
-
payload: string;
|
|
649
675
|
id: string;
|
|
650
|
-
payloadType: string;
|
|
651
676
|
createdAt: Date;
|
|
677
|
+
payload: string;
|
|
678
|
+
payloadType: string;
|
|
652
679
|
tags: string[];
|
|
653
680
|
context?: any;
|
|
654
681
|
isTest?: boolean | undefined;
|
|
@@ -665,39 +692,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
665
692
|
id: string;
|
|
666
693
|
slug: string;
|
|
667
694
|
};
|
|
668
|
-
organization: {
|
|
669
|
-
name: string;
|
|
670
|
-
id: string;
|
|
671
|
-
slug: string;
|
|
672
|
-
};
|
|
673
695
|
project: {
|
|
674
|
-
name: string;
|
|
675
696
|
id: string;
|
|
697
|
+
name: string;
|
|
676
698
|
slug: string;
|
|
677
699
|
ref: string;
|
|
678
700
|
};
|
|
679
|
-
task: {
|
|
680
|
-
id: string;
|
|
681
|
-
filePath: string;
|
|
682
|
-
exportName: string;
|
|
683
|
-
};
|
|
684
|
-
attempt: {
|
|
685
|
-
number: number;
|
|
686
|
-
status: string;
|
|
687
|
-
id: string;
|
|
688
|
-
startedAt: Date;
|
|
689
|
-
backgroundWorkerId: string;
|
|
690
|
-
backgroundWorkerTaskId: string;
|
|
691
|
-
};
|
|
692
|
-
queue: {
|
|
693
|
-
name: string;
|
|
694
|
-
id: string;
|
|
695
|
-
};
|
|
696
|
-
worker: {
|
|
697
|
-
version: string;
|
|
698
|
-
id: string;
|
|
699
|
-
contentHash: string;
|
|
700
|
-
};
|
|
701
701
|
batch?: {
|
|
702
702
|
id: string;
|
|
703
703
|
} | undefined;
|
|
@@ -711,93 +711,28 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
711
711
|
export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
|
|
712
712
|
export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
713
713
|
execution: z.ZodObject<{
|
|
714
|
-
run: z.ZodObject<{
|
|
715
|
-
id: z.ZodString;
|
|
716
|
-
payload: z.ZodString;
|
|
717
|
-
payloadType: z.ZodString;
|
|
718
|
-
context: z.ZodAny;
|
|
719
|
-
tags: z.ZodArray<z.ZodString, "many">;
|
|
720
|
-
isTest: z.ZodDefault<z.ZodBoolean>;
|
|
721
|
-
createdAt: z.ZodDate;
|
|
722
|
-
startedAt: z.ZodDefault<z.ZodDate>;
|
|
723
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
724
|
-
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
725
|
-
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
726
|
-
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
727
|
-
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
728
|
-
version: z.ZodOptional<z.ZodString>;
|
|
729
|
-
}, "strip", z.ZodTypeAny, {
|
|
730
|
-
payload: string;
|
|
731
|
-
id: string;
|
|
732
|
-
startedAt: Date;
|
|
733
|
-
payloadType: string;
|
|
734
|
-
isTest: boolean;
|
|
735
|
-
createdAt: Date;
|
|
736
|
-
tags: string[];
|
|
737
|
-
durationMs: number;
|
|
738
|
-
costInCents: number;
|
|
739
|
-
baseCostInCents: number;
|
|
740
|
-
context?: any;
|
|
741
|
-
idempotencyKey?: string | undefined;
|
|
742
|
-
maxAttempts?: number | undefined;
|
|
743
|
-
version?: string | undefined;
|
|
744
|
-
}, {
|
|
745
|
-
payload: string;
|
|
746
|
-
id: string;
|
|
747
|
-
payloadType: string;
|
|
748
|
-
createdAt: Date;
|
|
749
|
-
tags: string[];
|
|
750
|
-
context?: any;
|
|
751
|
-
isTest?: boolean | undefined;
|
|
752
|
-
startedAt?: Date | undefined;
|
|
753
|
-
idempotencyKey?: string | undefined;
|
|
754
|
-
maxAttempts?: number | undefined;
|
|
755
|
-
durationMs?: number | undefined;
|
|
756
|
-
costInCents?: number | undefined;
|
|
757
|
-
baseCostInCents?: number | undefined;
|
|
758
|
-
version?: string | undefined;
|
|
759
|
-
}>;
|
|
760
|
-
environment: z.ZodObject<{
|
|
761
|
-
id: z.ZodString;
|
|
762
|
-
slug: z.ZodString;
|
|
763
|
-
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
764
|
-
}, "strip", z.ZodTypeAny, {
|
|
765
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
766
|
-
id: string;
|
|
767
|
-
slug: string;
|
|
768
|
-
}, {
|
|
769
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
770
|
-
id: string;
|
|
771
|
-
slug: string;
|
|
772
|
-
}>;
|
|
773
714
|
organization: z.ZodObject<{
|
|
774
715
|
id: z.ZodString;
|
|
775
716
|
slug: z.ZodString;
|
|
776
717
|
name: z.ZodString;
|
|
777
718
|
}, "strip", z.ZodTypeAny, {
|
|
778
|
-
name: string;
|
|
779
719
|
id: string;
|
|
720
|
+
name: string;
|
|
780
721
|
slug: string;
|
|
781
722
|
}, {
|
|
782
|
-
name: string;
|
|
783
723
|
id: string;
|
|
724
|
+
name: string;
|
|
784
725
|
slug: string;
|
|
785
726
|
}>;
|
|
786
|
-
|
|
727
|
+
queue: z.ZodObject<{
|
|
787
728
|
id: z.ZodString;
|
|
788
|
-
ref: z.ZodString;
|
|
789
|
-
slug: z.ZodString;
|
|
790
729
|
name: z.ZodString;
|
|
791
730
|
}, "strip", z.ZodTypeAny, {
|
|
792
|
-
name: string;
|
|
793
731
|
id: string;
|
|
794
|
-
slug: string;
|
|
795
|
-
ref: string;
|
|
796
|
-
}, {
|
|
797
732
|
name: string;
|
|
733
|
+
}, {
|
|
798
734
|
id: string;
|
|
799
|
-
|
|
800
|
-
ref: string;
|
|
735
|
+
name: string;
|
|
801
736
|
}>;
|
|
802
737
|
task: z.ZodObject<{
|
|
803
738
|
id: z.ZodString;
|
|
@@ -834,15 +769,80 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
834
769
|
backgroundWorkerId: string;
|
|
835
770
|
backgroundWorkerTaskId: string;
|
|
836
771
|
}>;
|
|
837
|
-
|
|
772
|
+
run: z.ZodObject<{
|
|
773
|
+
id: z.ZodString;
|
|
774
|
+
payload: z.ZodString;
|
|
775
|
+
payloadType: z.ZodString;
|
|
776
|
+
context: z.ZodAny;
|
|
777
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
778
|
+
isTest: z.ZodDefault<z.ZodBoolean>;
|
|
779
|
+
createdAt: z.ZodDate;
|
|
780
|
+
startedAt: z.ZodDefault<z.ZodDate>;
|
|
781
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
782
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
783
|
+
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
784
|
+
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
785
|
+
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
786
|
+
version: z.ZodOptional<z.ZodString>;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
id: string;
|
|
789
|
+
createdAt: Date;
|
|
790
|
+
payload: string;
|
|
791
|
+
payloadType: string;
|
|
792
|
+
tags: string[];
|
|
793
|
+
isTest: boolean;
|
|
794
|
+
startedAt: Date;
|
|
795
|
+
costInCents: number;
|
|
796
|
+
baseCostInCents: number;
|
|
797
|
+
durationMs: number;
|
|
798
|
+
context?: any;
|
|
799
|
+
idempotencyKey?: string | undefined;
|
|
800
|
+
maxAttempts?: number | undefined;
|
|
801
|
+
version?: string | undefined;
|
|
802
|
+
}, {
|
|
803
|
+
id: string;
|
|
804
|
+
createdAt: Date;
|
|
805
|
+
payload: string;
|
|
806
|
+
payloadType: string;
|
|
807
|
+
tags: string[];
|
|
808
|
+
context?: any;
|
|
809
|
+
isTest?: boolean | undefined;
|
|
810
|
+
startedAt?: Date | undefined;
|
|
811
|
+
idempotencyKey?: string | undefined;
|
|
812
|
+
maxAttempts?: number | undefined;
|
|
813
|
+
durationMs?: number | undefined;
|
|
814
|
+
costInCents?: number | undefined;
|
|
815
|
+
baseCostInCents?: number | undefined;
|
|
816
|
+
version?: string | undefined;
|
|
817
|
+
}>;
|
|
818
|
+
environment: z.ZodObject<{
|
|
819
|
+
id: z.ZodString;
|
|
820
|
+
slug: z.ZodString;
|
|
821
|
+
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
822
|
+
}, "strip", z.ZodTypeAny, {
|
|
823
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
824
|
+
id: string;
|
|
825
|
+
slug: string;
|
|
826
|
+
}, {
|
|
827
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
828
|
+
id: string;
|
|
829
|
+
slug: string;
|
|
830
|
+
}>;
|
|
831
|
+
project: z.ZodObject<{
|
|
838
832
|
id: z.ZodString;
|
|
833
|
+
ref: z.ZodString;
|
|
834
|
+
slug: z.ZodString;
|
|
839
835
|
name: z.ZodString;
|
|
840
836
|
}, "strip", z.ZodTypeAny, {
|
|
841
|
-
name: string;
|
|
842
837
|
id: string;
|
|
843
|
-
}, {
|
|
844
838
|
name: string;
|
|
839
|
+
slug: string;
|
|
840
|
+
ref: string;
|
|
841
|
+
}, {
|
|
845
842
|
id: string;
|
|
843
|
+
name: string;
|
|
844
|
+
slug: string;
|
|
845
|
+
ref: string;
|
|
846
846
|
}>;
|
|
847
847
|
batch: z.ZodOptional<z.ZodObject<{
|
|
848
848
|
id: z.ZodString;
|
|
@@ -856,13 +856,13 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
856
856
|
contentHash: z.ZodString;
|
|
857
857
|
version: z.ZodString;
|
|
858
858
|
}, "strip", z.ZodTypeAny, {
|
|
859
|
-
version: string;
|
|
860
859
|
id: string;
|
|
861
860
|
contentHash: string;
|
|
862
|
-
}, {
|
|
863
861
|
version: string;
|
|
862
|
+
}, {
|
|
864
863
|
id: string;
|
|
865
864
|
contentHash: string;
|
|
865
|
+
version: string;
|
|
866
866
|
}>;
|
|
867
867
|
machine: z.ZodDefault<z.ZodObject<{
|
|
868
868
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
@@ -881,17 +881,50 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
881
881
|
centsPerMs: number;
|
|
882
882
|
}>>;
|
|
883
883
|
}, "strip", z.ZodTypeAny, {
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
organization: {
|
|
885
|
+
id: string;
|
|
886
|
+
name: string;
|
|
887
|
+
slug: string;
|
|
888
|
+
};
|
|
889
|
+
queue: {
|
|
890
|
+
id: string;
|
|
891
|
+
name: string;
|
|
892
|
+
};
|
|
893
|
+
machine: {
|
|
894
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
895
|
+
cpu: number;
|
|
896
|
+
memory: number;
|
|
897
|
+
centsPerMs: number;
|
|
898
|
+
};
|
|
899
|
+
worker: {
|
|
900
|
+
id: string;
|
|
901
|
+
contentHash: string;
|
|
902
|
+
version: string;
|
|
903
|
+
};
|
|
904
|
+
task: {
|
|
905
|
+
id: string;
|
|
906
|
+
filePath: string;
|
|
907
|
+
exportName: string;
|
|
908
|
+
};
|
|
909
|
+
attempt: {
|
|
910
|
+
number: number;
|
|
911
|
+
status: string;
|
|
886
912
|
id: string;
|
|
887
913
|
startedAt: Date;
|
|
888
|
-
|
|
889
|
-
|
|
914
|
+
backgroundWorkerId: string;
|
|
915
|
+
backgroundWorkerTaskId: string;
|
|
916
|
+
};
|
|
917
|
+
run: {
|
|
918
|
+
id: string;
|
|
890
919
|
createdAt: Date;
|
|
920
|
+
payload: string;
|
|
921
|
+
payloadType: string;
|
|
891
922
|
tags: string[];
|
|
892
|
-
|
|
923
|
+
isTest: boolean;
|
|
924
|
+
startedAt: Date;
|
|
893
925
|
costInCents: number;
|
|
894
926
|
baseCostInCents: number;
|
|
927
|
+
durationMs: number;
|
|
895
928
|
context?: any;
|
|
896
929
|
idempotencyKey?: string | undefined;
|
|
897
930
|
maxAttempts?: number | undefined;
|
|
@@ -902,16 +935,29 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
902
935
|
id: string;
|
|
903
936
|
slug: string;
|
|
904
937
|
};
|
|
905
|
-
|
|
938
|
+
project: {
|
|
939
|
+
id: string;
|
|
906
940
|
name: string;
|
|
941
|
+
slug: string;
|
|
942
|
+
ref: string;
|
|
943
|
+
};
|
|
944
|
+
batch?: {
|
|
945
|
+
id: string;
|
|
946
|
+
} | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
organization: {
|
|
907
949
|
id: string;
|
|
950
|
+
name: string;
|
|
908
951
|
slug: string;
|
|
909
952
|
};
|
|
910
|
-
|
|
953
|
+
queue: {
|
|
954
|
+
id: string;
|
|
911
955
|
name: string;
|
|
956
|
+
};
|
|
957
|
+
worker: {
|
|
912
958
|
id: string;
|
|
913
|
-
|
|
914
|
-
|
|
959
|
+
contentHash: string;
|
|
960
|
+
version: string;
|
|
915
961
|
};
|
|
916
962
|
task: {
|
|
917
963
|
id: string;
|
|
@@ -926,30 +972,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
926
972
|
backgroundWorkerId: string;
|
|
927
973
|
backgroundWorkerTaskId: string;
|
|
928
974
|
};
|
|
929
|
-
queue: {
|
|
930
|
-
name: string;
|
|
931
|
-
id: string;
|
|
932
|
-
};
|
|
933
|
-
machine: {
|
|
934
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
935
|
-
cpu: number;
|
|
936
|
-
memory: number;
|
|
937
|
-
centsPerMs: number;
|
|
938
|
-
};
|
|
939
|
-
worker: {
|
|
940
|
-
version: string;
|
|
941
|
-
id: string;
|
|
942
|
-
contentHash: string;
|
|
943
|
-
};
|
|
944
|
-
batch?: {
|
|
945
|
-
id: string;
|
|
946
|
-
} | undefined;
|
|
947
|
-
}, {
|
|
948
975
|
run: {
|
|
949
|
-
payload: string;
|
|
950
976
|
id: string;
|
|
951
|
-
payloadType: string;
|
|
952
977
|
createdAt: Date;
|
|
978
|
+
payload: string;
|
|
979
|
+
payloadType: string;
|
|
953
980
|
tags: string[];
|
|
954
981
|
context?: any;
|
|
955
982
|
isTest?: boolean | undefined;
|
|
@@ -966,16 +993,45 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
966
993
|
id: string;
|
|
967
994
|
slug: string;
|
|
968
995
|
};
|
|
969
|
-
|
|
996
|
+
project: {
|
|
997
|
+
id: string;
|
|
970
998
|
name: string;
|
|
999
|
+
slug: string;
|
|
1000
|
+
ref: string;
|
|
1001
|
+
};
|
|
1002
|
+
batch?: {
|
|
971
1003
|
id: string;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
machine?: {
|
|
1006
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1007
|
+
cpu: number;
|
|
1008
|
+
memory: number;
|
|
1009
|
+
centsPerMs: number;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
}>;
|
|
1012
|
+
traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1013
|
+
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1014
|
+
}, "strip", z.ZodTypeAny, {
|
|
1015
|
+
execution: {
|
|
1016
|
+
organization: {
|
|
1017
|
+
id: string;
|
|
1018
|
+
name: string;
|
|
972
1019
|
slug: string;
|
|
973
1020
|
};
|
|
974
|
-
|
|
1021
|
+
queue: {
|
|
1022
|
+
id: string;
|
|
975
1023
|
name: string;
|
|
1024
|
+
};
|
|
1025
|
+
machine: {
|
|
1026
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1027
|
+
cpu: number;
|
|
1028
|
+
memory: number;
|
|
1029
|
+
centsPerMs: number;
|
|
1030
|
+
};
|
|
1031
|
+
worker: {
|
|
976
1032
|
id: string;
|
|
977
|
-
|
|
978
|
-
|
|
1033
|
+
contentHash: string;
|
|
1034
|
+
version: string;
|
|
979
1035
|
};
|
|
980
1036
|
task: {
|
|
981
1037
|
id: string;
|
|
@@ -990,40 +1046,17 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
990
1046
|
backgroundWorkerId: string;
|
|
991
1047
|
backgroundWorkerTaskId: string;
|
|
992
1048
|
};
|
|
993
|
-
queue: {
|
|
994
|
-
name: string;
|
|
995
|
-
id: string;
|
|
996
|
-
};
|
|
997
|
-
worker: {
|
|
998
|
-
version: string;
|
|
999
|
-
id: string;
|
|
1000
|
-
contentHash: string;
|
|
1001
|
-
};
|
|
1002
|
-
batch?: {
|
|
1003
|
-
id: string;
|
|
1004
|
-
} | undefined;
|
|
1005
|
-
machine?: {
|
|
1006
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1007
|
-
cpu: number;
|
|
1008
|
-
memory: number;
|
|
1009
|
-
centsPerMs: number;
|
|
1010
|
-
} | undefined;
|
|
1011
|
-
}>;
|
|
1012
|
-
traceContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1013
|
-
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1014
|
-
}, "strip", z.ZodTypeAny, {
|
|
1015
|
-
execution: {
|
|
1016
1049
|
run: {
|
|
1017
|
-
payload: string;
|
|
1018
1050
|
id: string;
|
|
1019
|
-
startedAt: Date;
|
|
1020
|
-
payloadType: string;
|
|
1021
|
-
isTest: boolean;
|
|
1022
1051
|
createdAt: Date;
|
|
1052
|
+
payload: string;
|
|
1053
|
+
payloadType: string;
|
|
1023
1054
|
tags: string[];
|
|
1024
|
-
|
|
1055
|
+
isTest: boolean;
|
|
1056
|
+
startedAt: Date;
|
|
1025
1057
|
costInCents: number;
|
|
1026
1058
|
baseCostInCents: number;
|
|
1059
|
+
durationMs: number;
|
|
1027
1060
|
context?: any;
|
|
1028
1061
|
idempotencyKey?: string | undefined;
|
|
1029
1062
|
maxAttempts?: number | undefined;
|
|
@@ -1034,16 +1067,33 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1034
1067
|
id: string;
|
|
1035
1068
|
slug: string;
|
|
1036
1069
|
};
|
|
1037
|
-
|
|
1070
|
+
project: {
|
|
1071
|
+
id: string;
|
|
1038
1072
|
name: string;
|
|
1073
|
+
slug: string;
|
|
1074
|
+
ref: string;
|
|
1075
|
+
};
|
|
1076
|
+
batch?: {
|
|
1077
|
+
id: string;
|
|
1078
|
+
} | undefined;
|
|
1079
|
+
};
|
|
1080
|
+
traceContext: Record<string, unknown>;
|
|
1081
|
+
environment?: Record<string, string> | undefined;
|
|
1082
|
+
}, {
|
|
1083
|
+
execution: {
|
|
1084
|
+
organization: {
|
|
1039
1085
|
id: string;
|
|
1086
|
+
name: string;
|
|
1040
1087
|
slug: string;
|
|
1041
1088
|
};
|
|
1042
|
-
|
|
1089
|
+
queue: {
|
|
1090
|
+
id: string;
|
|
1043
1091
|
name: string;
|
|
1092
|
+
};
|
|
1093
|
+
worker: {
|
|
1044
1094
|
id: string;
|
|
1045
|
-
|
|
1046
|
-
|
|
1095
|
+
contentHash: string;
|
|
1096
|
+
version: string;
|
|
1047
1097
|
};
|
|
1048
1098
|
task: {
|
|
1049
1099
|
id: string;
|
|
@@ -1058,34 +1108,11 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1058
1108
|
backgroundWorkerId: string;
|
|
1059
1109
|
backgroundWorkerTaskId: string;
|
|
1060
1110
|
};
|
|
1061
|
-
queue: {
|
|
1062
|
-
name: string;
|
|
1063
|
-
id: string;
|
|
1064
|
-
};
|
|
1065
|
-
machine: {
|
|
1066
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1067
|
-
cpu: number;
|
|
1068
|
-
memory: number;
|
|
1069
|
-
centsPerMs: number;
|
|
1070
|
-
};
|
|
1071
|
-
worker: {
|
|
1072
|
-
version: string;
|
|
1073
|
-
id: string;
|
|
1074
|
-
contentHash: string;
|
|
1075
|
-
};
|
|
1076
|
-
batch?: {
|
|
1077
|
-
id: string;
|
|
1078
|
-
} | undefined;
|
|
1079
|
-
};
|
|
1080
|
-
traceContext: Record<string, unknown>;
|
|
1081
|
-
environment?: Record<string, string> | undefined;
|
|
1082
|
-
}, {
|
|
1083
|
-
execution: {
|
|
1084
1111
|
run: {
|
|
1085
|
-
payload: string;
|
|
1086
1112
|
id: string;
|
|
1087
|
-
payloadType: string;
|
|
1088
1113
|
createdAt: Date;
|
|
1114
|
+
payload: string;
|
|
1115
|
+
payloadType: string;
|
|
1089
1116
|
tags: string[];
|
|
1090
1117
|
context?: any;
|
|
1091
1118
|
isTest?: boolean | undefined;
|
|
@@ -1102,39 +1129,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1102
1129
|
id: string;
|
|
1103
1130
|
slug: string;
|
|
1104
1131
|
};
|
|
1105
|
-
organization: {
|
|
1106
|
-
name: string;
|
|
1107
|
-
id: string;
|
|
1108
|
-
slug: string;
|
|
1109
|
-
};
|
|
1110
1132
|
project: {
|
|
1111
|
-
name: string;
|
|
1112
1133
|
id: string;
|
|
1134
|
+
name: string;
|
|
1113
1135
|
slug: string;
|
|
1114
1136
|
ref: string;
|
|
1115
1137
|
};
|
|
1116
|
-
task: {
|
|
1117
|
-
id: string;
|
|
1118
|
-
filePath: string;
|
|
1119
|
-
exportName: string;
|
|
1120
|
-
};
|
|
1121
|
-
attempt: {
|
|
1122
|
-
number: number;
|
|
1123
|
-
status: string;
|
|
1124
|
-
id: string;
|
|
1125
|
-
startedAt: Date;
|
|
1126
|
-
backgroundWorkerId: string;
|
|
1127
|
-
backgroundWorkerTaskId: string;
|
|
1128
|
-
};
|
|
1129
|
-
queue: {
|
|
1130
|
-
name: string;
|
|
1131
|
-
id: string;
|
|
1132
|
-
};
|
|
1133
|
-
worker: {
|
|
1134
|
-
version: string;
|
|
1135
|
-
id: string;
|
|
1136
|
-
contentHash: string;
|
|
1137
|
-
};
|
|
1138
1138
|
batch?: {
|
|
1139
1139
|
id: string;
|
|
1140
1140
|
} | undefined;
|
|
@@ -1888,12 +1888,12 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1888
1888
|
memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
1889
1889
|
preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1890
1890
|
}, "strip", z.ZodTypeAny, {
|
|
1891
|
-
cpu?:
|
|
1892
|
-
memory?:
|
|
1891
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1892
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1893
1893
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1894
1894
|
}, {
|
|
1895
|
-
cpu?:
|
|
1896
|
-
memory?:
|
|
1895
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1896
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1897
1897
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1898
1898
|
}>>;
|
|
1899
1899
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
@@ -1954,8 +1954,8 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1954
1954
|
randomize?: boolean | undefined;
|
|
1955
1955
|
} | undefined;
|
|
1956
1956
|
machine?: {
|
|
1957
|
-
cpu?:
|
|
1958
|
-
memory?:
|
|
1957
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1958
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1959
1959
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1960
1960
|
} | undefined;
|
|
1961
1961
|
triggerSource?: string | undefined;
|
|
@@ -2010,8 +2010,8 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
2010
2010
|
randomize?: boolean | undefined;
|
|
2011
2011
|
} | undefined;
|
|
2012
2012
|
machine?: {
|
|
2013
|
-
cpu?:
|
|
2014
|
-
memory?:
|
|
2013
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2014
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2015
2015
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2016
2016
|
} | undefined;
|
|
2017
2017
|
triggerSource?: string | undefined;
|
|
@@ -2306,12 +2306,12 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
2306
2306
|
memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
2307
2307
|
preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
2308
2308
|
}, "strip", z.ZodTypeAny, {
|
|
2309
|
-
cpu?:
|
|
2310
|
-
memory?:
|
|
2309
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2310
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2311
2311
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2312
2312
|
}, {
|
|
2313
|
-
cpu?:
|
|
2314
|
-
memory?:
|
|
2313
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2314
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2315
2315
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2316
2316
|
}>>;
|
|
2317
2317
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
@@ -2375,8 +2375,8 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
2375
2375
|
randomize?: boolean | undefined;
|
|
2376
2376
|
} | undefined;
|
|
2377
2377
|
machine?: {
|
|
2378
|
-
cpu?:
|
|
2379
|
-
memory?:
|
|
2378
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2379
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2380
2380
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2381
2381
|
} | undefined;
|
|
2382
2382
|
triggerSource?: string | undefined;
|
|
@@ -2434,8 +2434,8 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
2434
2434
|
randomize?: boolean | undefined;
|
|
2435
2435
|
} | undefined;
|
|
2436
2436
|
machine?: {
|
|
2437
|
-
cpu?:
|
|
2438
|
-
memory?:
|
|
2437
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2438
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2439
2439
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2440
2440
|
} | undefined;
|
|
2441
2441
|
triggerSource?: string | undefined;
|