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