@trigger.dev/core 0.0.0-prerelease-20240926084729 → 0.0.0-prerelease-20240930020332
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 +44 -44
- package/dist/commonjs/v3/runMetadata/index.d.ts +2 -1
- package/dist/commonjs/v3/runMetadata/index.js +9 -2
- package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +230 -230
- package/dist/commonjs/v3/schemas/build.d.ts +52 -52
- package/dist/commonjs/v3/schemas/messages.d.ts +2103 -2103
- package/dist/commonjs/v3/schemas/resources.d.ts +28 -28
- package/dist/commonjs/v3/schemas/schemas.d.ts +257 -257
- package/dist/commonjs/v3/utils/globals.d.ts +2 -0
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +44 -44
- package/dist/esm/v3/runMetadata/index.d.ts +2 -1
- package/dist/esm/v3/runMetadata/index.js +9 -2
- package/dist/esm/v3/runMetadata/index.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +230 -230
- package/dist/esm/v3/schemas/build.d.ts +52 -52
- package/dist/esm/v3/schemas/messages.d.ts +2067 -2067
- package/dist/esm/v3/schemas/resources.d.ts +28 -28
- package/dist/esm/v3/schemas/schemas.d.ts +257 -257
- package/dist/esm/v3/utils/globals.d.ts +2 -0
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -57,15 +57,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
57
57
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
id: string;
|
|
60
|
+
createdAt: Date;
|
|
60
61
|
payload: string;
|
|
61
62
|
payloadType: string;
|
|
62
63
|
tags: string[];
|
|
63
64
|
isTest: boolean;
|
|
64
|
-
createdAt: Date;
|
|
65
65
|
startedAt: Date;
|
|
66
|
-
durationMs: number;
|
|
67
66
|
costInCents: number;
|
|
68
67
|
baseCostInCents: number;
|
|
68
|
+
durationMs: number;
|
|
69
69
|
context?: any;
|
|
70
70
|
idempotencyKey?: string | undefined;
|
|
71
71
|
maxAttempts?: number | undefined;
|
|
@@ -73,10 +73,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
73
73
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
74
74
|
}, {
|
|
75
75
|
id: string;
|
|
76
|
+
createdAt: Date;
|
|
76
77
|
payload: string;
|
|
77
78
|
payloadType: string;
|
|
78
79
|
tags: string[];
|
|
79
|
-
createdAt: Date;
|
|
80
80
|
context?: any;
|
|
81
81
|
isTest?: boolean | undefined;
|
|
82
82
|
startedAt?: Date | undefined;
|
|
@@ -92,11 +92,11 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
name: z.ZodString;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
name: string;
|
|
96
95
|
id: string;
|
|
97
|
-
}, {
|
|
98
96
|
name: string;
|
|
97
|
+
}, {
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
100
|
}>;
|
|
101
101
|
environment: z.ZodObject<{
|
|
102
102
|
id: z.ZodString;
|
|
@@ -116,12 +116,12 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
116
116
|
slug: z.ZodString;
|
|
117
117
|
name: z.ZodString;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
name: string;
|
|
120
119
|
id: string;
|
|
120
|
+
name: string;
|
|
121
121
|
slug: string;
|
|
122
122
|
}, {
|
|
123
|
-
name: string;
|
|
124
123
|
id: string;
|
|
124
|
+
name: string;
|
|
125
125
|
slug: string;
|
|
126
126
|
}>;
|
|
127
127
|
project: z.ZodObject<{
|
|
@@ -130,13 +130,13 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
130
130
|
slug: z.ZodString;
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
name: string;
|
|
134
133
|
id: string;
|
|
134
|
+
name: string;
|
|
135
135
|
slug: string;
|
|
136
136
|
ref: string;
|
|
137
137
|
}, {
|
|
138
|
-
name: string;
|
|
139
138
|
id: string;
|
|
139
|
+
name: string;
|
|
140
140
|
slug: string;
|
|
141
141
|
ref: string;
|
|
142
142
|
}>;
|
|
@@ -153,17 +153,26 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
153
153
|
memory: z.ZodNumber;
|
|
154
154
|
centsPerMs: z.ZodNumber;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
156
157
|
cpu: number;
|
|
157
158
|
memory: number;
|
|
158
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
159
159
|
centsPerMs: number;
|
|
160
160
|
}, {
|
|
161
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
161
162
|
cpu: number;
|
|
162
163
|
memory: number;
|
|
163
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
164
164
|
centsPerMs: number;
|
|
165
165
|
}>>;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
organization: {
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
slug: string;
|
|
171
|
+
};
|
|
172
|
+
queue: {
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
};
|
|
167
176
|
task: {
|
|
168
177
|
id: string;
|
|
169
178
|
filePath: string;
|
|
@@ -179,38 +188,29 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
179
188
|
};
|
|
180
189
|
run: {
|
|
181
190
|
id: string;
|
|
191
|
+
createdAt: Date;
|
|
182
192
|
payload: string;
|
|
183
193
|
payloadType: string;
|
|
184
194
|
tags: string[];
|
|
185
195
|
isTest: boolean;
|
|
186
|
-
createdAt: Date;
|
|
187
196
|
startedAt: Date;
|
|
188
|
-
durationMs: number;
|
|
189
197
|
costInCents: number;
|
|
190
198
|
baseCostInCents: number;
|
|
199
|
+
durationMs: number;
|
|
191
200
|
context?: any;
|
|
192
201
|
idempotencyKey?: string | undefined;
|
|
193
202
|
maxAttempts?: number | undefined;
|
|
194
203
|
version?: string | undefined;
|
|
195
204
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
196
205
|
};
|
|
197
|
-
queue: {
|
|
198
|
-
name: string;
|
|
199
|
-
id: string;
|
|
200
|
-
};
|
|
201
206
|
environment: {
|
|
202
207
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
203
208
|
id: string;
|
|
204
209
|
slug: string;
|
|
205
210
|
};
|
|
206
|
-
organization: {
|
|
207
|
-
name: string;
|
|
208
|
-
id: string;
|
|
209
|
-
slug: string;
|
|
210
|
-
};
|
|
211
211
|
project: {
|
|
212
|
-
name: string;
|
|
213
212
|
id: string;
|
|
213
|
+
name: string;
|
|
214
214
|
slug: string;
|
|
215
215
|
ref: string;
|
|
216
216
|
};
|
|
@@ -218,12 +218,21 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
218
218
|
id: string;
|
|
219
219
|
} | undefined;
|
|
220
220
|
machine?: {
|
|
221
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
221
222
|
cpu: number;
|
|
222
223
|
memory: number;
|
|
223
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
224
224
|
centsPerMs: number;
|
|
225
225
|
} | undefined;
|
|
226
226
|
}, {
|
|
227
|
+
organization: {
|
|
228
|
+
id: string;
|
|
229
|
+
name: string;
|
|
230
|
+
slug: string;
|
|
231
|
+
};
|
|
232
|
+
queue: {
|
|
233
|
+
id: string;
|
|
234
|
+
name: string;
|
|
235
|
+
};
|
|
227
236
|
task: {
|
|
228
237
|
id: string;
|
|
229
238
|
filePath: string;
|
|
@@ -239,10 +248,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
239
248
|
};
|
|
240
249
|
run: {
|
|
241
250
|
id: string;
|
|
251
|
+
createdAt: Date;
|
|
242
252
|
payload: string;
|
|
243
253
|
payloadType: string;
|
|
244
254
|
tags: string[];
|
|
245
|
-
createdAt: Date;
|
|
246
255
|
context?: any;
|
|
247
256
|
isTest?: boolean | undefined;
|
|
248
257
|
startedAt?: Date | undefined;
|
|
@@ -254,23 +263,14 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
254
263
|
version?: string | undefined;
|
|
255
264
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
256
265
|
};
|
|
257
|
-
queue: {
|
|
258
|
-
name: string;
|
|
259
|
-
id: string;
|
|
260
|
-
};
|
|
261
266
|
environment: {
|
|
262
267
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
263
268
|
id: string;
|
|
264
269
|
slug: string;
|
|
265
270
|
};
|
|
266
|
-
organization: {
|
|
267
|
-
name: string;
|
|
268
|
-
id: string;
|
|
269
|
-
slug: string;
|
|
270
|
-
};
|
|
271
271
|
project: {
|
|
272
|
-
name: string;
|
|
273
272
|
id: string;
|
|
273
|
+
name: string;
|
|
274
274
|
slug: string;
|
|
275
275
|
ref: string;
|
|
276
276
|
};
|
|
@@ -278,9 +278,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
278
278
|
id: string;
|
|
279
279
|
} | undefined;
|
|
280
280
|
machine?: {
|
|
281
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
281
282
|
cpu: number;
|
|
282
283
|
memory: number;
|
|
283
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
284
284
|
centsPerMs: number;
|
|
285
285
|
} | undefined;
|
|
286
286
|
}>;
|
|
@@ -288,6 +288,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
288
288
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
290
|
execution: {
|
|
291
|
+
organization: {
|
|
292
|
+
id: string;
|
|
293
|
+
name: string;
|
|
294
|
+
slug: string;
|
|
295
|
+
};
|
|
296
|
+
queue: {
|
|
297
|
+
id: string;
|
|
298
|
+
name: string;
|
|
299
|
+
};
|
|
291
300
|
task: {
|
|
292
301
|
id: string;
|
|
293
302
|
filePath: string;
|
|
@@ -303,38 +312,29 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
303
312
|
};
|
|
304
313
|
run: {
|
|
305
314
|
id: string;
|
|
315
|
+
createdAt: Date;
|
|
306
316
|
payload: string;
|
|
307
317
|
payloadType: string;
|
|
308
318
|
tags: string[];
|
|
309
319
|
isTest: boolean;
|
|
310
|
-
createdAt: Date;
|
|
311
320
|
startedAt: Date;
|
|
312
|
-
durationMs: number;
|
|
313
321
|
costInCents: number;
|
|
314
322
|
baseCostInCents: number;
|
|
323
|
+
durationMs: number;
|
|
315
324
|
context?: any;
|
|
316
325
|
idempotencyKey?: string | undefined;
|
|
317
326
|
maxAttempts?: number | undefined;
|
|
318
327
|
version?: string | undefined;
|
|
319
328
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
320
329
|
};
|
|
321
|
-
queue: {
|
|
322
|
-
name: string;
|
|
323
|
-
id: string;
|
|
324
|
-
};
|
|
325
330
|
environment: {
|
|
326
331
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
327
332
|
id: string;
|
|
328
333
|
slug: string;
|
|
329
334
|
};
|
|
330
|
-
organization: {
|
|
331
|
-
name: string;
|
|
332
|
-
id: string;
|
|
333
|
-
slug: string;
|
|
334
|
-
};
|
|
335
335
|
project: {
|
|
336
|
-
name: string;
|
|
337
336
|
id: string;
|
|
337
|
+
name: string;
|
|
338
338
|
slug: string;
|
|
339
339
|
ref: string;
|
|
340
340
|
};
|
|
@@ -342,9 +342,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
342
342
|
id: string;
|
|
343
343
|
} | undefined;
|
|
344
344
|
machine?: {
|
|
345
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
345
346
|
cpu: number;
|
|
346
347
|
memory: number;
|
|
347
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
348
348
|
centsPerMs: number;
|
|
349
349
|
} | undefined;
|
|
350
350
|
};
|
|
@@ -352,6 +352,15 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
352
352
|
environment?: Record<string, string> | undefined;
|
|
353
353
|
}, {
|
|
354
354
|
execution: {
|
|
355
|
+
organization: {
|
|
356
|
+
id: string;
|
|
357
|
+
name: string;
|
|
358
|
+
slug: string;
|
|
359
|
+
};
|
|
360
|
+
queue: {
|
|
361
|
+
id: string;
|
|
362
|
+
name: string;
|
|
363
|
+
};
|
|
355
364
|
task: {
|
|
356
365
|
id: string;
|
|
357
366
|
filePath: string;
|
|
@@ -367,10 +376,10 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
367
376
|
};
|
|
368
377
|
run: {
|
|
369
378
|
id: string;
|
|
379
|
+
createdAt: Date;
|
|
370
380
|
payload: string;
|
|
371
381
|
payloadType: string;
|
|
372
382
|
tags: string[];
|
|
373
|
-
createdAt: Date;
|
|
374
383
|
context?: any;
|
|
375
384
|
isTest?: boolean | undefined;
|
|
376
385
|
startedAt?: Date | undefined;
|
|
@@ -382,23 +391,14 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
382
391
|
version?: string | undefined;
|
|
383
392
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
384
393
|
};
|
|
385
|
-
queue: {
|
|
386
|
-
name: string;
|
|
387
|
-
id: string;
|
|
388
|
-
};
|
|
389
394
|
environment: {
|
|
390
395
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
391
396
|
id: string;
|
|
392
397
|
slug: string;
|
|
393
398
|
};
|
|
394
|
-
organization: {
|
|
395
|
-
name: string;
|
|
396
|
-
id: string;
|
|
397
|
-
slug: string;
|
|
398
|
-
};
|
|
399
399
|
project: {
|
|
400
|
-
name: string;
|
|
401
400
|
id: string;
|
|
401
|
+
name: string;
|
|
402
402
|
slug: string;
|
|
403
403
|
ref: string;
|
|
404
404
|
};
|
|
@@ -406,9 +406,9 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
406
406
|
id: string;
|
|
407
407
|
} | undefined;
|
|
408
408
|
machine?: {
|
|
409
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
409
410
|
cpu: number;
|
|
410
411
|
memory: number;
|
|
411
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
412
412
|
centsPerMs: number;
|
|
413
413
|
} | undefined;
|
|
414
414
|
};
|
|
@@ -417,6 +417,29 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
417
417
|
}>;
|
|
418
418
|
export type TaskRunExecutionPayload = z.infer<typeof TaskRunExecutionPayload>;
|
|
419
419
|
export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
420
|
+
organization: z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
slug: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
id: string;
|
|
426
|
+
name: string;
|
|
427
|
+
slug: string;
|
|
428
|
+
}, {
|
|
429
|
+
id: string;
|
|
430
|
+
name: string;
|
|
431
|
+
slug: string;
|
|
432
|
+
}>;
|
|
433
|
+
queue: z.ZodObject<{
|
|
434
|
+
id: z.ZodString;
|
|
435
|
+
name: z.ZodString;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
id: string;
|
|
438
|
+
name: string;
|
|
439
|
+
}, {
|
|
440
|
+
id: string;
|
|
441
|
+
name: string;
|
|
442
|
+
}>;
|
|
420
443
|
task: z.ZodObject<{
|
|
421
444
|
id: z.ZodString;
|
|
422
445
|
filePath: z.ZodString;
|
|
@@ -470,15 +493,15 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
470
493
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
471
494
|
}, "strip", z.ZodTypeAny, {
|
|
472
495
|
id: string;
|
|
496
|
+
createdAt: Date;
|
|
473
497
|
payload: string;
|
|
474
498
|
payloadType: string;
|
|
475
499
|
tags: string[];
|
|
476
500
|
isTest: boolean;
|
|
477
|
-
createdAt: Date;
|
|
478
501
|
startedAt: Date;
|
|
479
|
-
durationMs: number;
|
|
480
502
|
costInCents: number;
|
|
481
503
|
baseCostInCents: number;
|
|
504
|
+
durationMs: number;
|
|
482
505
|
context?: any;
|
|
483
506
|
idempotencyKey?: string | undefined;
|
|
484
507
|
maxAttempts?: number | undefined;
|
|
@@ -486,10 +509,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
486
509
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
487
510
|
}, {
|
|
488
511
|
id: string;
|
|
512
|
+
createdAt: Date;
|
|
489
513
|
payload: string;
|
|
490
514
|
payloadType: string;
|
|
491
515
|
tags: string[];
|
|
492
|
-
createdAt: Date;
|
|
493
516
|
context?: any;
|
|
494
517
|
isTest?: boolean | undefined;
|
|
495
518
|
startedAt?: Date | undefined;
|
|
@@ -501,16 +524,6 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
501
524
|
version?: string | undefined;
|
|
502
525
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
503
526
|
}>;
|
|
504
|
-
queue: z.ZodObject<{
|
|
505
|
-
id: z.ZodString;
|
|
506
|
-
name: z.ZodString;
|
|
507
|
-
}, "strip", z.ZodTypeAny, {
|
|
508
|
-
name: string;
|
|
509
|
-
id: string;
|
|
510
|
-
}, {
|
|
511
|
-
name: string;
|
|
512
|
-
id: string;
|
|
513
|
-
}>;
|
|
514
527
|
environment: z.ZodObject<{
|
|
515
528
|
id: z.ZodString;
|
|
516
529
|
slug: z.ZodString;
|
|
@@ -524,32 +537,19 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
524
537
|
id: string;
|
|
525
538
|
slug: string;
|
|
526
539
|
}>;
|
|
527
|
-
organization: z.ZodObject<{
|
|
528
|
-
id: z.ZodString;
|
|
529
|
-
slug: z.ZodString;
|
|
530
|
-
name: z.ZodString;
|
|
531
|
-
}, "strip", z.ZodTypeAny, {
|
|
532
|
-
name: string;
|
|
533
|
-
id: string;
|
|
534
|
-
slug: string;
|
|
535
|
-
}, {
|
|
536
|
-
name: string;
|
|
537
|
-
id: string;
|
|
538
|
-
slug: string;
|
|
539
|
-
}>;
|
|
540
540
|
project: z.ZodObject<{
|
|
541
541
|
id: z.ZodString;
|
|
542
542
|
ref: z.ZodString;
|
|
543
543
|
slug: z.ZodString;
|
|
544
544
|
name: z.ZodString;
|
|
545
545
|
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
name: string;
|
|
547
546
|
id: string;
|
|
547
|
+
name: string;
|
|
548
548
|
slug: string;
|
|
549
549
|
ref: string;
|
|
550
550
|
}, {
|
|
551
|
-
name: string;
|
|
552
551
|
id: string;
|
|
552
|
+
name: string;
|
|
553
553
|
slug: string;
|
|
554
554
|
ref: string;
|
|
555
555
|
}>;
|
|
@@ -566,12 +566,12 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
566
566
|
version: z.ZodString;
|
|
567
567
|
}, "strip", z.ZodTypeAny, {
|
|
568
568
|
id: string;
|
|
569
|
-
version: string;
|
|
570
569
|
contentHash: string;
|
|
570
|
+
version: string;
|
|
571
571
|
}, {
|
|
572
572
|
id: string;
|
|
573
|
-
version: string;
|
|
574
573
|
contentHash: string;
|
|
574
|
+
version: string;
|
|
575
575
|
}>;
|
|
576
576
|
machine: z.ZodDefault<z.ZodObject<{
|
|
577
577
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
@@ -579,17 +579,37 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
579
579
|
memory: z.ZodNumber;
|
|
580
580
|
centsPerMs: z.ZodNumber;
|
|
581
581
|
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
582
583
|
cpu: number;
|
|
583
584
|
memory: number;
|
|
584
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
585
585
|
centsPerMs: number;
|
|
586
586
|
}, {
|
|
587
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
587
588
|
cpu: number;
|
|
588
589
|
memory: number;
|
|
589
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
590
590
|
centsPerMs: number;
|
|
591
591
|
}>>;
|
|
592
592
|
}, "strip", z.ZodTypeAny, {
|
|
593
|
+
organization: {
|
|
594
|
+
id: string;
|
|
595
|
+
name: string;
|
|
596
|
+
slug: string;
|
|
597
|
+
};
|
|
598
|
+
queue: {
|
|
599
|
+
id: string;
|
|
600
|
+
name: string;
|
|
601
|
+
};
|
|
602
|
+
machine: {
|
|
603
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
604
|
+
cpu: number;
|
|
605
|
+
memory: number;
|
|
606
|
+
centsPerMs: number;
|
|
607
|
+
};
|
|
608
|
+
worker: {
|
|
609
|
+
id: string;
|
|
610
|
+
contentHash: string;
|
|
611
|
+
version: string;
|
|
612
|
+
};
|
|
593
613
|
task: {
|
|
594
614
|
id: string;
|
|
595
615
|
filePath: string;
|
|
@@ -605,56 +625,50 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
605
625
|
};
|
|
606
626
|
run: {
|
|
607
627
|
id: string;
|
|
628
|
+
createdAt: Date;
|
|
608
629
|
payload: string;
|
|
609
630
|
payloadType: string;
|
|
610
631
|
tags: string[];
|
|
611
632
|
isTest: boolean;
|
|
612
|
-
createdAt: Date;
|
|
613
633
|
startedAt: Date;
|
|
614
|
-
durationMs: number;
|
|
615
634
|
costInCents: number;
|
|
616
635
|
baseCostInCents: number;
|
|
636
|
+
durationMs: number;
|
|
617
637
|
context?: any;
|
|
618
638
|
idempotencyKey?: string | undefined;
|
|
619
639
|
maxAttempts?: number | undefined;
|
|
620
640
|
version?: string | undefined;
|
|
621
641
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
622
642
|
};
|
|
623
|
-
queue: {
|
|
624
|
-
name: string;
|
|
625
|
-
id: string;
|
|
626
|
-
};
|
|
627
643
|
environment: {
|
|
628
644
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
629
645
|
id: string;
|
|
630
646
|
slug: string;
|
|
631
647
|
};
|
|
632
|
-
|
|
633
|
-
name: string;
|
|
648
|
+
project: {
|
|
634
649
|
id: string;
|
|
650
|
+
name: string;
|
|
635
651
|
slug: string;
|
|
652
|
+
ref: string;
|
|
636
653
|
};
|
|
637
|
-
|
|
638
|
-
|
|
654
|
+
batch?: {
|
|
655
|
+
id: string;
|
|
656
|
+
} | undefined;
|
|
657
|
+
}, {
|
|
658
|
+
organization: {
|
|
639
659
|
id: string;
|
|
660
|
+
name: string;
|
|
640
661
|
slug: string;
|
|
641
|
-
ref: string;
|
|
642
662
|
};
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
647
|
-
centsPerMs: number;
|
|
663
|
+
queue: {
|
|
664
|
+
id: string;
|
|
665
|
+
name: string;
|
|
648
666
|
};
|
|
649
667
|
worker: {
|
|
650
668
|
id: string;
|
|
651
|
-
version: string;
|
|
652
669
|
contentHash: string;
|
|
670
|
+
version: string;
|
|
653
671
|
};
|
|
654
|
-
batch?: {
|
|
655
|
-
id: string;
|
|
656
|
-
} | undefined;
|
|
657
|
-
}, {
|
|
658
672
|
task: {
|
|
659
673
|
id: string;
|
|
660
674
|
filePath: string;
|
|
@@ -670,10 +684,10 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
670
684
|
};
|
|
671
685
|
run: {
|
|
672
686
|
id: string;
|
|
687
|
+
createdAt: Date;
|
|
673
688
|
payload: string;
|
|
674
689
|
payloadType: string;
|
|
675
690
|
tags: string[];
|
|
676
|
-
createdAt: Date;
|
|
677
691
|
context?: any;
|
|
678
692
|
isTest?: boolean | undefined;
|
|
679
693
|
startedAt?: Date | undefined;
|
|
@@ -685,44 +699,53 @@ export declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
685
699
|
version?: string | undefined;
|
|
686
700
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
687
701
|
};
|
|
688
|
-
queue: {
|
|
689
|
-
name: string;
|
|
690
|
-
id: string;
|
|
691
|
-
};
|
|
692
702
|
environment: {
|
|
693
703
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
694
704
|
id: string;
|
|
695
705
|
slug: string;
|
|
696
706
|
};
|
|
697
|
-
organization: {
|
|
698
|
-
name: string;
|
|
699
|
-
id: string;
|
|
700
|
-
slug: string;
|
|
701
|
-
};
|
|
702
707
|
project: {
|
|
703
|
-
name: string;
|
|
704
708
|
id: string;
|
|
709
|
+
name: string;
|
|
705
710
|
slug: string;
|
|
706
711
|
ref: string;
|
|
707
712
|
};
|
|
708
|
-
worker: {
|
|
709
|
-
id: string;
|
|
710
|
-
version: string;
|
|
711
|
-
contentHash: string;
|
|
712
|
-
};
|
|
713
713
|
batch?: {
|
|
714
714
|
id: string;
|
|
715
715
|
} | undefined;
|
|
716
716
|
machine?: {
|
|
717
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
717
718
|
cpu: number;
|
|
718
719
|
memory: number;
|
|
719
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
720
720
|
centsPerMs: number;
|
|
721
721
|
} | undefined;
|
|
722
722
|
}>;
|
|
723
723
|
export type ProdTaskRunExecution = z.infer<typeof ProdTaskRunExecution>;
|
|
724
724
|
export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
725
725
|
execution: z.ZodObject<{
|
|
726
|
+
organization: z.ZodObject<{
|
|
727
|
+
id: z.ZodString;
|
|
728
|
+
slug: z.ZodString;
|
|
729
|
+
name: z.ZodString;
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
731
|
+
id: string;
|
|
732
|
+
name: string;
|
|
733
|
+
slug: string;
|
|
734
|
+
}, {
|
|
735
|
+
id: string;
|
|
736
|
+
name: string;
|
|
737
|
+
slug: string;
|
|
738
|
+
}>;
|
|
739
|
+
queue: z.ZodObject<{
|
|
740
|
+
id: z.ZodString;
|
|
741
|
+
name: z.ZodString;
|
|
742
|
+
}, "strip", z.ZodTypeAny, {
|
|
743
|
+
id: string;
|
|
744
|
+
name: string;
|
|
745
|
+
}, {
|
|
746
|
+
id: string;
|
|
747
|
+
name: string;
|
|
748
|
+
}>;
|
|
726
749
|
task: z.ZodObject<{
|
|
727
750
|
id: z.ZodString;
|
|
728
751
|
filePath: z.ZodString;
|
|
@@ -776,15 +799,15 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
776
799
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
777
800
|
}, "strip", z.ZodTypeAny, {
|
|
778
801
|
id: string;
|
|
802
|
+
createdAt: Date;
|
|
779
803
|
payload: string;
|
|
780
804
|
payloadType: string;
|
|
781
805
|
tags: string[];
|
|
782
806
|
isTest: boolean;
|
|
783
|
-
createdAt: Date;
|
|
784
807
|
startedAt: Date;
|
|
785
|
-
durationMs: number;
|
|
786
808
|
costInCents: number;
|
|
787
809
|
baseCostInCents: number;
|
|
810
|
+
durationMs: number;
|
|
788
811
|
context?: any;
|
|
789
812
|
idempotencyKey?: string | undefined;
|
|
790
813
|
maxAttempts?: number | undefined;
|
|
@@ -792,10 +815,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
792
815
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
793
816
|
}, {
|
|
794
817
|
id: string;
|
|
818
|
+
createdAt: Date;
|
|
795
819
|
payload: string;
|
|
796
820
|
payloadType: string;
|
|
797
821
|
tags: string[];
|
|
798
|
-
createdAt: Date;
|
|
799
822
|
context?: any;
|
|
800
823
|
isTest?: boolean | undefined;
|
|
801
824
|
startedAt?: Date | undefined;
|
|
@@ -807,16 +830,6 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
807
830
|
version?: string | undefined;
|
|
808
831
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
809
832
|
}>;
|
|
810
|
-
queue: z.ZodObject<{
|
|
811
|
-
id: z.ZodString;
|
|
812
|
-
name: z.ZodString;
|
|
813
|
-
}, "strip", z.ZodTypeAny, {
|
|
814
|
-
name: string;
|
|
815
|
-
id: string;
|
|
816
|
-
}, {
|
|
817
|
-
name: string;
|
|
818
|
-
id: string;
|
|
819
|
-
}>;
|
|
820
833
|
environment: z.ZodObject<{
|
|
821
834
|
id: z.ZodString;
|
|
822
835
|
slug: z.ZodString;
|
|
@@ -830,32 +843,19 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
830
843
|
id: string;
|
|
831
844
|
slug: string;
|
|
832
845
|
}>;
|
|
833
|
-
organization: z.ZodObject<{
|
|
834
|
-
id: z.ZodString;
|
|
835
|
-
slug: z.ZodString;
|
|
836
|
-
name: z.ZodString;
|
|
837
|
-
}, "strip", z.ZodTypeAny, {
|
|
838
|
-
name: string;
|
|
839
|
-
id: string;
|
|
840
|
-
slug: string;
|
|
841
|
-
}, {
|
|
842
|
-
name: string;
|
|
843
|
-
id: string;
|
|
844
|
-
slug: string;
|
|
845
|
-
}>;
|
|
846
846
|
project: z.ZodObject<{
|
|
847
847
|
id: z.ZodString;
|
|
848
848
|
ref: z.ZodString;
|
|
849
849
|
slug: z.ZodString;
|
|
850
850
|
name: z.ZodString;
|
|
851
851
|
}, "strip", z.ZodTypeAny, {
|
|
852
|
-
name: string;
|
|
853
852
|
id: string;
|
|
853
|
+
name: string;
|
|
854
854
|
slug: string;
|
|
855
855
|
ref: string;
|
|
856
856
|
}, {
|
|
857
|
-
name: string;
|
|
858
857
|
id: string;
|
|
858
|
+
name: string;
|
|
859
859
|
slug: string;
|
|
860
860
|
ref: string;
|
|
861
861
|
}>;
|
|
@@ -872,12 +872,12 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
872
872
|
version: z.ZodString;
|
|
873
873
|
}, "strip", z.ZodTypeAny, {
|
|
874
874
|
id: string;
|
|
875
|
-
version: string;
|
|
876
875
|
contentHash: string;
|
|
876
|
+
version: string;
|
|
877
877
|
}, {
|
|
878
878
|
id: string;
|
|
879
|
-
version: string;
|
|
880
879
|
contentHash: string;
|
|
880
|
+
version: string;
|
|
881
881
|
}>;
|
|
882
882
|
machine: z.ZodDefault<z.ZodObject<{
|
|
883
883
|
name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
|
|
@@ -885,17 +885,37 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
885
885
|
memory: z.ZodNumber;
|
|
886
886
|
centsPerMs: z.ZodNumber;
|
|
887
887
|
}, "strip", z.ZodTypeAny, {
|
|
888
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
888
889
|
cpu: number;
|
|
889
890
|
memory: number;
|
|
890
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
891
891
|
centsPerMs: number;
|
|
892
892
|
}, {
|
|
893
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
893
894
|
cpu: number;
|
|
894
895
|
memory: number;
|
|
895
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
896
896
|
centsPerMs: number;
|
|
897
897
|
}>>;
|
|
898
898
|
}, "strip", z.ZodTypeAny, {
|
|
899
|
+
organization: {
|
|
900
|
+
id: string;
|
|
901
|
+
name: string;
|
|
902
|
+
slug: string;
|
|
903
|
+
};
|
|
904
|
+
queue: {
|
|
905
|
+
id: string;
|
|
906
|
+
name: string;
|
|
907
|
+
};
|
|
908
|
+
machine: {
|
|
909
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
910
|
+
cpu: number;
|
|
911
|
+
memory: number;
|
|
912
|
+
centsPerMs: number;
|
|
913
|
+
};
|
|
914
|
+
worker: {
|
|
915
|
+
id: string;
|
|
916
|
+
contentHash: string;
|
|
917
|
+
version: string;
|
|
918
|
+
};
|
|
899
919
|
task: {
|
|
900
920
|
id: string;
|
|
901
921
|
filePath: string;
|
|
@@ -911,56 +931,50 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
911
931
|
};
|
|
912
932
|
run: {
|
|
913
933
|
id: string;
|
|
934
|
+
createdAt: Date;
|
|
914
935
|
payload: string;
|
|
915
936
|
payloadType: string;
|
|
916
937
|
tags: string[];
|
|
917
938
|
isTest: boolean;
|
|
918
|
-
createdAt: Date;
|
|
919
939
|
startedAt: Date;
|
|
920
|
-
durationMs: number;
|
|
921
940
|
costInCents: number;
|
|
922
941
|
baseCostInCents: number;
|
|
942
|
+
durationMs: number;
|
|
923
943
|
context?: any;
|
|
924
944
|
idempotencyKey?: string | undefined;
|
|
925
945
|
maxAttempts?: number | undefined;
|
|
926
946
|
version?: string | undefined;
|
|
927
947
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
928
948
|
};
|
|
929
|
-
queue: {
|
|
930
|
-
name: string;
|
|
931
|
-
id: string;
|
|
932
|
-
};
|
|
933
949
|
environment: {
|
|
934
950
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
935
951
|
id: string;
|
|
936
952
|
slug: string;
|
|
937
953
|
};
|
|
938
|
-
|
|
939
|
-
name: string;
|
|
954
|
+
project: {
|
|
940
955
|
id: string;
|
|
956
|
+
name: string;
|
|
941
957
|
slug: string;
|
|
958
|
+
ref: string;
|
|
942
959
|
};
|
|
943
|
-
|
|
944
|
-
name: string;
|
|
960
|
+
batch?: {
|
|
945
961
|
id: string;
|
|
962
|
+
} | undefined;
|
|
963
|
+
}, {
|
|
964
|
+
organization: {
|
|
965
|
+
id: string;
|
|
966
|
+
name: string;
|
|
946
967
|
slug: string;
|
|
947
|
-
ref: string;
|
|
948
968
|
};
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
953
|
-
centsPerMs: number;
|
|
969
|
+
queue: {
|
|
970
|
+
id: string;
|
|
971
|
+
name: string;
|
|
954
972
|
};
|
|
955
973
|
worker: {
|
|
956
974
|
id: string;
|
|
957
|
-
version: string;
|
|
958
975
|
contentHash: string;
|
|
976
|
+
version: string;
|
|
959
977
|
};
|
|
960
|
-
batch?: {
|
|
961
|
-
id: string;
|
|
962
|
-
} | undefined;
|
|
963
|
-
}, {
|
|
964
978
|
task: {
|
|
965
979
|
id: string;
|
|
966
980
|
filePath: string;
|
|
@@ -976,10 +990,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
976
990
|
};
|
|
977
991
|
run: {
|
|
978
992
|
id: string;
|
|
993
|
+
createdAt: Date;
|
|
979
994
|
payload: string;
|
|
980
995
|
payloadType: string;
|
|
981
996
|
tags: string[];
|
|
982
|
-
createdAt: Date;
|
|
983
997
|
context?: any;
|
|
984
998
|
isTest?: boolean | undefined;
|
|
985
999
|
startedAt?: Date | undefined;
|
|
@@ -991,38 +1005,24 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
991
1005
|
version?: string | undefined;
|
|
992
1006
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
993
1007
|
};
|
|
994
|
-
queue: {
|
|
995
|
-
name: string;
|
|
996
|
-
id: string;
|
|
997
|
-
};
|
|
998
1008
|
environment: {
|
|
999
1009
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1000
1010
|
id: string;
|
|
1001
1011
|
slug: string;
|
|
1002
1012
|
};
|
|
1003
|
-
organization: {
|
|
1004
|
-
name: string;
|
|
1005
|
-
id: string;
|
|
1006
|
-
slug: string;
|
|
1007
|
-
};
|
|
1008
1013
|
project: {
|
|
1009
|
-
name: string;
|
|
1010
1014
|
id: string;
|
|
1015
|
+
name: string;
|
|
1011
1016
|
slug: string;
|
|
1012
1017
|
ref: string;
|
|
1013
1018
|
};
|
|
1014
|
-
worker: {
|
|
1015
|
-
id: string;
|
|
1016
|
-
version: string;
|
|
1017
|
-
contentHash: string;
|
|
1018
|
-
};
|
|
1019
1019
|
batch?: {
|
|
1020
1020
|
id: string;
|
|
1021
1021
|
} | undefined;
|
|
1022
1022
|
machine?: {
|
|
1023
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1023
1024
|
cpu: number;
|
|
1024
1025
|
memory: number;
|
|
1025
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1026
1026
|
centsPerMs: number;
|
|
1027
1027
|
} | undefined;
|
|
1028
1028
|
}>;
|
|
@@ -1030,6 +1030,26 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1030
1030
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1031
1031
|
}, "strip", z.ZodTypeAny, {
|
|
1032
1032
|
execution: {
|
|
1033
|
+
organization: {
|
|
1034
|
+
id: string;
|
|
1035
|
+
name: string;
|
|
1036
|
+
slug: string;
|
|
1037
|
+
};
|
|
1038
|
+
queue: {
|
|
1039
|
+
id: string;
|
|
1040
|
+
name: string;
|
|
1041
|
+
};
|
|
1042
|
+
machine: {
|
|
1043
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1044
|
+
cpu: number;
|
|
1045
|
+
memory: number;
|
|
1046
|
+
centsPerMs: number;
|
|
1047
|
+
};
|
|
1048
|
+
worker: {
|
|
1049
|
+
id: string;
|
|
1050
|
+
contentHash: string;
|
|
1051
|
+
version: string;
|
|
1052
|
+
};
|
|
1033
1053
|
task: {
|
|
1034
1054
|
id: string;
|
|
1035
1055
|
filePath: string;
|
|
@@ -1045,52 +1065,32 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1045
1065
|
};
|
|
1046
1066
|
run: {
|
|
1047
1067
|
id: string;
|
|
1068
|
+
createdAt: Date;
|
|
1048
1069
|
payload: string;
|
|
1049
1070
|
payloadType: string;
|
|
1050
1071
|
tags: string[];
|
|
1051
1072
|
isTest: boolean;
|
|
1052
|
-
createdAt: Date;
|
|
1053
1073
|
startedAt: Date;
|
|
1054
|
-
durationMs: number;
|
|
1055
1074
|
costInCents: number;
|
|
1056
1075
|
baseCostInCents: number;
|
|
1076
|
+
durationMs: number;
|
|
1057
1077
|
context?: any;
|
|
1058
1078
|
idempotencyKey?: string | undefined;
|
|
1059
1079
|
maxAttempts?: number | undefined;
|
|
1060
1080
|
version?: string | undefined;
|
|
1061
1081
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1062
1082
|
};
|
|
1063
|
-
queue: {
|
|
1064
|
-
name: string;
|
|
1065
|
-
id: string;
|
|
1066
|
-
};
|
|
1067
1083
|
environment: {
|
|
1068
1084
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1069
1085
|
id: string;
|
|
1070
1086
|
slug: string;
|
|
1071
1087
|
};
|
|
1072
|
-
organization: {
|
|
1073
|
-
name: string;
|
|
1074
|
-
id: string;
|
|
1075
|
-
slug: string;
|
|
1076
|
-
};
|
|
1077
1088
|
project: {
|
|
1078
|
-
name: string;
|
|
1079
1089
|
id: string;
|
|
1090
|
+
name: string;
|
|
1080
1091
|
slug: string;
|
|
1081
1092
|
ref: string;
|
|
1082
1093
|
};
|
|
1083
|
-
machine: {
|
|
1084
|
-
cpu: number;
|
|
1085
|
-
memory: number;
|
|
1086
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1087
|
-
centsPerMs: number;
|
|
1088
|
-
};
|
|
1089
|
-
worker: {
|
|
1090
|
-
id: string;
|
|
1091
|
-
version: string;
|
|
1092
|
-
contentHash: string;
|
|
1093
|
-
};
|
|
1094
1094
|
batch?: {
|
|
1095
1095
|
id: string;
|
|
1096
1096
|
} | undefined;
|
|
@@ -1099,6 +1099,20 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1099
1099
|
environment?: Record<string, string> | undefined;
|
|
1100
1100
|
}, {
|
|
1101
1101
|
execution: {
|
|
1102
|
+
organization: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
name: string;
|
|
1105
|
+
slug: string;
|
|
1106
|
+
};
|
|
1107
|
+
queue: {
|
|
1108
|
+
id: string;
|
|
1109
|
+
name: string;
|
|
1110
|
+
};
|
|
1111
|
+
worker: {
|
|
1112
|
+
id: string;
|
|
1113
|
+
contentHash: string;
|
|
1114
|
+
version: string;
|
|
1115
|
+
};
|
|
1102
1116
|
task: {
|
|
1103
1117
|
id: string;
|
|
1104
1118
|
filePath: string;
|
|
@@ -1114,10 +1128,10 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1114
1128
|
};
|
|
1115
1129
|
run: {
|
|
1116
1130
|
id: string;
|
|
1131
|
+
createdAt: Date;
|
|
1117
1132
|
payload: string;
|
|
1118
1133
|
payloadType: string;
|
|
1119
1134
|
tags: string[];
|
|
1120
|
-
createdAt: Date;
|
|
1121
1135
|
context?: any;
|
|
1122
1136
|
isTest?: boolean | undefined;
|
|
1123
1137
|
startedAt?: Date | undefined;
|
|
@@ -1129,38 +1143,24 @@ export declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1129
1143
|
version?: string | undefined;
|
|
1130
1144
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1131
1145
|
};
|
|
1132
|
-
queue: {
|
|
1133
|
-
name: string;
|
|
1134
|
-
id: string;
|
|
1135
|
-
};
|
|
1136
1146
|
environment: {
|
|
1137
1147
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
1138
1148
|
id: string;
|
|
1139
1149
|
slug: string;
|
|
1140
1150
|
};
|
|
1141
|
-
organization: {
|
|
1142
|
-
name: string;
|
|
1143
|
-
id: string;
|
|
1144
|
-
slug: string;
|
|
1145
|
-
};
|
|
1146
1151
|
project: {
|
|
1147
|
-
name: string;
|
|
1148
1152
|
id: string;
|
|
1153
|
+
name: string;
|
|
1149
1154
|
slug: string;
|
|
1150
1155
|
ref: string;
|
|
1151
1156
|
};
|
|
1152
|
-
worker: {
|
|
1153
|
-
id: string;
|
|
1154
|
-
version: string;
|
|
1155
|
-
contentHash: string;
|
|
1156
|
-
};
|
|
1157
1157
|
batch?: {
|
|
1158
1158
|
id: string;
|
|
1159
1159
|
} | undefined;
|
|
1160
1160
|
machine?: {
|
|
1161
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1161
1162
|
cpu: number;
|
|
1162
1163
|
memory: number;
|
|
1163
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1164
1164
|
centsPerMs: number;
|
|
1165
1165
|
} | undefined;
|
|
1166
1166
|
};
|
|
@@ -1907,12 +1907,12 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1907
1907
|
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>]>>;
|
|
1908
1908
|
preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1909
1909
|
}, "strip", z.ZodTypeAny, {
|
|
1910
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
1911
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
1910
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1911
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1912
1912
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1913
1913
|
}, {
|
|
1914
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
1915
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
1914
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1915
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1916
1916
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1917
1917
|
}>>;
|
|
1918
1918
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
@@ -1973,8 +1973,8 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1973
1973
|
randomize?: boolean | undefined;
|
|
1974
1974
|
} | undefined;
|
|
1975
1975
|
machine?: {
|
|
1976
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
1977
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
1976
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
1977
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
1978
1978
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1979
1979
|
} | undefined;
|
|
1980
1980
|
triggerSource?: string | undefined;
|
|
@@ -2029,8 +2029,8 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
2029
2029
|
randomize?: boolean | undefined;
|
|
2030
2030
|
} | undefined;
|
|
2031
2031
|
machine?: {
|
|
2032
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
2033
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
2032
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2033
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2034
2034
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2035
2035
|
} | undefined;
|
|
2036
2036
|
triggerSource?: string | undefined;
|
|
@@ -2325,12 +2325,12 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
2325
2325
|
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>]>>;
|
|
2326
2326
|
preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
2327
2327
|
}, "strip", z.ZodTypeAny, {
|
|
2328
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
2329
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
2328
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2329
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2330
2330
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2331
2331
|
}, {
|
|
2332
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
2333
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
2332
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2333
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2334
2334
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2335
2335
|
}>>;
|
|
2336
2336
|
triggerSource: z.ZodOptional<z.ZodString>;
|
|
@@ -2394,8 +2394,8 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
2394
2394
|
randomize?: boolean | undefined;
|
|
2395
2395
|
} | undefined;
|
|
2396
2396
|
machine?: {
|
|
2397
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
2398
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
2397
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2398
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2399
2399
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2400
2400
|
} | undefined;
|
|
2401
2401
|
triggerSource?: string | undefined;
|
|
@@ -2453,8 +2453,8 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
2453
2453
|
randomize?: boolean | undefined;
|
|
2454
2454
|
} | undefined;
|
|
2455
2455
|
machine?: {
|
|
2456
|
-
cpu?: 2 | 1 | 0.25 | 0.5 |
|
|
2457
|
-
memory?: 2 | 1 | 0.25 | 0.5 |
|
|
2456
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2457
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2458
2458
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2459
2459
|
} | undefined;
|
|
2460
2460
|
triggerSource?: string | undefined;
|