@trigger.dev/core 4.0.0 → 4.0.2
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/logger.js +2 -1
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +90 -1
- package/dist/commonjs/v3/apiClient/index.js +29 -0
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/config.d.ts +1 -1
- package/dist/commonjs/v3/isomorphic/dates.d.ts +13 -0
- package/dist/commonjs/v3/isomorphic/dates.js +39 -0
- package/dist/commonjs/v3/isomorphic/dates.js.map +1 -0
- package/dist/commonjs/v3/isomorphic/index.d.ts +1 -0
- package/dist/commonjs/v3/isomorphic/index.js +1 -0
- package/dist/commonjs/v3/isomorphic/index.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +2 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +6 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +3 -0
- package/dist/commonjs/v3/schemas/api.d.ts +569 -2
- package/dist/commonjs/v3/schemas/api.js +144 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +3 -0
- package/dist/commonjs/v3/schemas/runEngine.d.ts +3 -0
- package/dist/commonjs/v3/schemas/runEngine.js +1 -0
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.js +6 -5
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/logger.js +2 -1
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +90 -1
- package/dist/esm/v3/apiClient/index.js +30 -1
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/config.d.ts +1 -1
- package/dist/esm/v3/isomorphic/dates.d.ts +13 -0
- package/dist/esm/v3/isomorphic/dates.js +36 -0
- package/dist/esm/v3/isomorphic/dates.js.map +1 -0
- package/dist/esm/v3/isomorphic/index.d.ts +1 -0
- package/dist/esm/v3/isomorphic/index.js +1 -0
- package/dist/esm/v3/isomorphic/index.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +2 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +6 -0
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +3 -0
- package/dist/esm/v3/schemas/api.d.ts +569 -2
- package/dist/esm/v3/schemas/api.js +141 -1
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/checkpoints.d.ts +3 -0
- package/dist/esm/v3/schemas/runEngine.d.ts +3 -0
- package/dist/esm/v3/schemas/runEngine.js +1 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.js +6 -2
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -2
|
@@ -133,6 +133,31 @@ export declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
133
133
|
externalRef: string;
|
|
134
134
|
}>, "many">;
|
|
135
135
|
export type GetProjectsResponseBody = z.infer<typeof GetProjectsResponseBody>;
|
|
136
|
+
export declare const GetOrgsResponseBody: z.ZodArray<z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
title: z.ZodString;
|
|
139
|
+
slug: z.ZodString;
|
|
140
|
+
createdAt: z.ZodDate;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
id: string;
|
|
143
|
+
createdAt: Date;
|
|
144
|
+
slug: string;
|
|
145
|
+
title: string;
|
|
146
|
+
}, {
|
|
147
|
+
id: string;
|
|
148
|
+
createdAt: Date;
|
|
149
|
+
slug: string;
|
|
150
|
+
title: string;
|
|
151
|
+
}>, "many">;
|
|
152
|
+
export type GetOrgsResponseBody = z.infer<typeof GetOrgsResponseBody>;
|
|
153
|
+
export declare const CreateProjectRequestBody: z.ZodObject<{
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
name: string;
|
|
157
|
+
}, {
|
|
158
|
+
name: string;
|
|
159
|
+
}>;
|
|
160
|
+
export type CreateProjectRequestBody = z.infer<typeof CreateProjectRequestBody>;
|
|
136
161
|
export declare const GetProjectEnvResponse: z.ZodObject<{
|
|
137
162
|
apiKey: z.ZodString;
|
|
138
163
|
name: z.ZodString;
|
|
@@ -150,6 +175,162 @@ export declare const GetProjectEnvResponse: z.ZodObject<{
|
|
|
150
175
|
projectId: string;
|
|
151
176
|
}>;
|
|
152
177
|
export type GetProjectEnvResponse = z.infer<typeof GetProjectEnvResponse>;
|
|
178
|
+
export declare const GetWorkerTaskResponse: z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
slug: z.ZodString;
|
|
181
|
+
filePath: z.ZodString;
|
|
182
|
+
triggerSource: z.ZodString;
|
|
183
|
+
createdAt: z.ZodDate;
|
|
184
|
+
payloadSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
id: string;
|
|
187
|
+
createdAt: Date;
|
|
188
|
+
filePath: string;
|
|
189
|
+
slug: string;
|
|
190
|
+
triggerSource: string;
|
|
191
|
+
payloadSchema?: any;
|
|
192
|
+
}, {
|
|
193
|
+
id: string;
|
|
194
|
+
createdAt: Date;
|
|
195
|
+
filePath: string;
|
|
196
|
+
slug: string;
|
|
197
|
+
triggerSource: string;
|
|
198
|
+
payloadSchema?: any;
|
|
199
|
+
}>;
|
|
200
|
+
export declare const GetWorkerByTagResponse: z.ZodObject<{
|
|
201
|
+
worker: z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
version: z.ZodString;
|
|
204
|
+
engine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
+
sdkVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
cliVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
slug: z.ZodString;
|
|
210
|
+
filePath: z.ZodString;
|
|
211
|
+
triggerSource: z.ZodString;
|
|
212
|
+
createdAt: z.ZodDate;
|
|
213
|
+
payloadSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
id: string;
|
|
216
|
+
createdAt: Date;
|
|
217
|
+
filePath: string;
|
|
218
|
+
slug: string;
|
|
219
|
+
triggerSource: string;
|
|
220
|
+
payloadSchema?: any;
|
|
221
|
+
}, {
|
|
222
|
+
id: string;
|
|
223
|
+
createdAt: Date;
|
|
224
|
+
filePath: string;
|
|
225
|
+
slug: string;
|
|
226
|
+
triggerSource: string;
|
|
227
|
+
payloadSchema?: any;
|
|
228
|
+
}>, "many">;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
id: string;
|
|
231
|
+
version: string;
|
|
232
|
+
tasks: {
|
|
233
|
+
id: string;
|
|
234
|
+
createdAt: Date;
|
|
235
|
+
filePath: string;
|
|
236
|
+
slug: string;
|
|
237
|
+
triggerSource: string;
|
|
238
|
+
payloadSchema?: any;
|
|
239
|
+
}[];
|
|
240
|
+
engine?: string | null | undefined;
|
|
241
|
+
sdkVersion?: string | null | undefined;
|
|
242
|
+
cliVersion?: string | null | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
id: string;
|
|
245
|
+
version: string;
|
|
246
|
+
tasks: {
|
|
247
|
+
id: string;
|
|
248
|
+
createdAt: Date;
|
|
249
|
+
filePath: string;
|
|
250
|
+
slug: string;
|
|
251
|
+
triggerSource: string;
|
|
252
|
+
payloadSchema?: any;
|
|
253
|
+
}[];
|
|
254
|
+
engine?: string | null | undefined;
|
|
255
|
+
sdkVersion?: string | null | undefined;
|
|
256
|
+
cliVersion?: string | null | undefined;
|
|
257
|
+
}>;
|
|
258
|
+
urls: z.ZodObject<{
|
|
259
|
+
runs: z.ZodString;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
runs: string;
|
|
262
|
+
}, {
|
|
263
|
+
runs: string;
|
|
264
|
+
}>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
worker: {
|
|
267
|
+
id: string;
|
|
268
|
+
version: string;
|
|
269
|
+
tasks: {
|
|
270
|
+
id: string;
|
|
271
|
+
createdAt: Date;
|
|
272
|
+
filePath: string;
|
|
273
|
+
slug: string;
|
|
274
|
+
triggerSource: string;
|
|
275
|
+
payloadSchema?: any;
|
|
276
|
+
}[];
|
|
277
|
+
engine?: string | null | undefined;
|
|
278
|
+
sdkVersion?: string | null | undefined;
|
|
279
|
+
cliVersion?: string | null | undefined;
|
|
280
|
+
};
|
|
281
|
+
urls: {
|
|
282
|
+
runs: string;
|
|
283
|
+
};
|
|
284
|
+
}, {
|
|
285
|
+
worker: {
|
|
286
|
+
id: string;
|
|
287
|
+
version: string;
|
|
288
|
+
tasks: {
|
|
289
|
+
id: string;
|
|
290
|
+
createdAt: Date;
|
|
291
|
+
filePath: string;
|
|
292
|
+
slug: string;
|
|
293
|
+
triggerSource: string;
|
|
294
|
+
payloadSchema?: any;
|
|
295
|
+
}[];
|
|
296
|
+
engine?: string | null | undefined;
|
|
297
|
+
sdkVersion?: string | null | undefined;
|
|
298
|
+
cliVersion?: string | null | undefined;
|
|
299
|
+
};
|
|
300
|
+
urls: {
|
|
301
|
+
runs: string;
|
|
302
|
+
};
|
|
303
|
+
}>;
|
|
304
|
+
export type GetWorkerByTagResponse = z.infer<typeof GetWorkerByTagResponse>;
|
|
305
|
+
export declare const GetJWTRequestBody: z.ZodObject<{
|
|
306
|
+
claims: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
scopes: string[];
|
|
310
|
+
}, {
|
|
311
|
+
scopes?: string[] | undefined;
|
|
312
|
+
}>>;
|
|
313
|
+
expirationTime: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
claims?: {
|
|
316
|
+
scopes: string[];
|
|
317
|
+
} | undefined;
|
|
318
|
+
expirationTime?: string | number | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
claims?: {
|
|
321
|
+
scopes?: string[] | undefined;
|
|
322
|
+
} | undefined;
|
|
323
|
+
expirationTime?: string | number | undefined;
|
|
324
|
+
}>;
|
|
325
|
+
export type GetJWTRequestBody = z.infer<typeof GetJWTRequestBody>;
|
|
326
|
+
export declare const GetJWTResponse: z.ZodObject<{
|
|
327
|
+
token: z.ZodString;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
token: string;
|
|
330
|
+
}, {
|
|
331
|
+
token: string;
|
|
332
|
+
}>;
|
|
333
|
+
export type GetJWTResponse = z.infer<typeof GetJWTResponse>;
|
|
153
334
|
export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
154
335
|
localOnly: z.ZodBoolean;
|
|
155
336
|
metadata: z.ZodObject<{
|
|
@@ -1349,23 +1530,23 @@ export declare const BatchTriggerTaskV2Response: z.ZodObject<{
|
|
|
1349
1530
|
}>, "many">;
|
|
1350
1531
|
}, "strip", z.ZodTypeAny, {
|
|
1351
1532
|
id: string;
|
|
1352
|
-
isCached: boolean;
|
|
1353
1533
|
runs: {
|
|
1354
1534
|
id: string;
|
|
1355
1535
|
taskIdentifier: string;
|
|
1356
1536
|
isCached: boolean;
|
|
1357
1537
|
idempotencyKey?: string | undefined;
|
|
1358
1538
|
}[];
|
|
1539
|
+
isCached: boolean;
|
|
1359
1540
|
idempotencyKey?: string | undefined;
|
|
1360
1541
|
}, {
|
|
1361
1542
|
id: string;
|
|
1362
|
-
isCached: boolean;
|
|
1363
1543
|
runs: {
|
|
1364
1544
|
id: string;
|
|
1365
1545
|
taskIdentifier: string;
|
|
1366
1546
|
isCached: boolean;
|
|
1367
1547
|
idempotencyKey?: string | undefined;
|
|
1368
1548
|
}[];
|
|
1549
|
+
isCached: boolean;
|
|
1369
1550
|
idempotencyKey?: string | undefined;
|
|
1370
1551
|
}>;
|
|
1371
1552
|
export type BatchTriggerTaskV2Response = z.infer<typeof BatchTriggerTaskV2Response>;
|
|
@@ -2345,6 +2526,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2345
2526
|
executionStatus: import("./runEngine.js").TaskRunExecutionStatus;
|
|
2346
2527
|
}>;
|
|
2347
2528
|
dequeuedAt: z.ZodDate;
|
|
2529
|
+
workerQueueLength: z.ZodOptional<z.ZodNumber>;
|
|
2348
2530
|
image: z.ZodOptional<z.ZodString>;
|
|
2349
2531
|
checkpoint: z.ZodOptional<z.ZodObject<{
|
|
2350
2532
|
id: z.ZodString;
|
|
@@ -2646,6 +2828,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2646
2828
|
imageRef?: string | null | undefined;
|
|
2647
2829
|
reason?: string | null | undefined;
|
|
2648
2830
|
} | undefined;
|
|
2831
|
+
workerQueueLength?: number | undefined;
|
|
2649
2832
|
image?: string | undefined;
|
|
2650
2833
|
placementTags?: {
|
|
2651
2834
|
key: string;
|
|
@@ -2726,6 +2909,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2726
2909
|
imageRef?: string | null | undefined;
|
|
2727
2910
|
reason?: string | null | undefined;
|
|
2728
2911
|
} | undefined;
|
|
2912
|
+
workerQueueLength?: number | undefined;
|
|
2729
2913
|
image?: string | undefined;
|
|
2730
2914
|
placementTags?: {
|
|
2731
2915
|
key: string;
|
|
@@ -2808,6 +2992,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2808
2992
|
imageRef?: string | null | undefined;
|
|
2809
2993
|
reason?: string | null | undefined;
|
|
2810
2994
|
} | undefined;
|
|
2995
|
+
workerQueueLength?: number | undefined;
|
|
2811
2996
|
image?: string | undefined;
|
|
2812
2997
|
placementTags?: {
|
|
2813
2998
|
key: string;
|
|
@@ -2890,6 +3075,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2890
3075
|
imageRef?: string | null | undefined;
|
|
2891
3076
|
reason?: string | null | undefined;
|
|
2892
3077
|
} | undefined;
|
|
3078
|
+
workerQueueLength?: number | undefined;
|
|
2893
3079
|
image?: string | undefined;
|
|
2894
3080
|
placementTags?: {
|
|
2895
3081
|
key: string;
|
|
@@ -5533,3 +5719,384 @@ export declare function timeoutError(timeout: Date): {
|
|
|
5533
5719
|
code: string;
|
|
5534
5720
|
message: string;
|
|
5535
5721
|
};
|
|
5722
|
+
export declare const ApiDeploymentListParams: {
|
|
5723
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5724
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5725
|
+
from: z.ZodOptional<z.ZodString>;
|
|
5726
|
+
to: z.ZodOptional<z.ZodString>;
|
|
5727
|
+
period: z.ZodOptional<z.ZodString>;
|
|
5728
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
5729
|
+
};
|
|
5730
|
+
export declare const ApiDeploymentListOptions: z.ZodObject<{
|
|
5731
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5732
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5733
|
+
from: z.ZodOptional<z.ZodString>;
|
|
5734
|
+
to: z.ZodOptional<z.ZodString>;
|
|
5735
|
+
period: z.ZodOptional<z.ZodString>;
|
|
5736
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
5737
|
+
}, "strip", z.ZodTypeAny, {
|
|
5738
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5739
|
+
limit?: number | undefined;
|
|
5740
|
+
cursor?: string | undefined;
|
|
5741
|
+
from?: string | undefined;
|
|
5742
|
+
to?: string | undefined;
|
|
5743
|
+
period?: string | undefined;
|
|
5744
|
+
}, {
|
|
5745
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5746
|
+
limit?: number | undefined;
|
|
5747
|
+
cursor?: string | undefined;
|
|
5748
|
+
from?: string | undefined;
|
|
5749
|
+
to?: string | undefined;
|
|
5750
|
+
period?: string | undefined;
|
|
5751
|
+
}>;
|
|
5752
|
+
export type ApiDeploymentListOptions = z.infer<typeof ApiDeploymentListOptions>;
|
|
5753
|
+
export declare const ApiDeploymentListSearchParams: z.ZodObject<{
|
|
5754
|
+
"page[after]": z.ZodOptional<z.ZodString>;
|
|
5755
|
+
"page[size]": z.ZodOptional<z.ZodNumber>;
|
|
5756
|
+
from: z.ZodOptional<z.ZodString>;
|
|
5757
|
+
to: z.ZodOptional<z.ZodString>;
|
|
5758
|
+
period: z.ZodOptional<z.ZodString>;
|
|
5759
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
5760
|
+
}, "strip", z.ZodTypeAny, {
|
|
5761
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5762
|
+
from?: string | undefined;
|
|
5763
|
+
to?: string | undefined;
|
|
5764
|
+
period?: string | undefined;
|
|
5765
|
+
"page[after]"?: string | undefined;
|
|
5766
|
+
"page[size]"?: number | undefined;
|
|
5767
|
+
}, {
|
|
5768
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5769
|
+
from?: string | undefined;
|
|
5770
|
+
to?: string | undefined;
|
|
5771
|
+
period?: string | undefined;
|
|
5772
|
+
"page[after]"?: string | undefined;
|
|
5773
|
+
"page[size]"?: number | undefined;
|
|
5774
|
+
}>;
|
|
5775
|
+
export type ApiDeploymentListSearchParams = z.infer<typeof ApiDeploymentListSearchParams>;
|
|
5776
|
+
export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|
|
5777
|
+
id: z.ZodString;
|
|
5778
|
+
createdAt: z.ZodDate;
|
|
5779
|
+
shortCode: z.ZodString;
|
|
5780
|
+
version: z.ZodString;
|
|
5781
|
+
runtime: z.ZodString;
|
|
5782
|
+
runtimeVersion: z.ZodString;
|
|
5783
|
+
status: z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>;
|
|
5784
|
+
deployedAt: z.ZodOptional<z.ZodDate>;
|
|
5785
|
+
git: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5786
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
5787
|
+
name: z.ZodString;
|
|
5788
|
+
message: z.ZodString;
|
|
5789
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
5790
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
5791
|
+
}, "strip", z.ZodTypeAny, {
|
|
5792
|
+
message: string;
|
|
5793
|
+
name: string;
|
|
5794
|
+
stack?: string | undefined;
|
|
5795
|
+
stderr?: string | undefined;
|
|
5796
|
+
}, {
|
|
5797
|
+
message: string;
|
|
5798
|
+
name: string;
|
|
5799
|
+
stack?: string | undefined;
|
|
5800
|
+
stderr?: string | undefined;
|
|
5801
|
+
}>>;
|
|
5802
|
+
}, "strip", z.ZodTypeAny, {
|
|
5803
|
+
status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
|
|
5804
|
+
id: string;
|
|
5805
|
+
createdAt: Date;
|
|
5806
|
+
version: string;
|
|
5807
|
+
shortCode: string;
|
|
5808
|
+
runtime: string;
|
|
5809
|
+
runtimeVersion: string;
|
|
5810
|
+
error?: {
|
|
5811
|
+
message: string;
|
|
5812
|
+
name: string;
|
|
5813
|
+
stack?: string | undefined;
|
|
5814
|
+
stderr?: string | undefined;
|
|
5815
|
+
} | undefined;
|
|
5816
|
+
git?: Record<string, any> | undefined;
|
|
5817
|
+
deployedAt?: Date | undefined;
|
|
5818
|
+
}, {
|
|
5819
|
+
status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
|
|
5820
|
+
id: string;
|
|
5821
|
+
createdAt: Date;
|
|
5822
|
+
version: string;
|
|
5823
|
+
shortCode: string;
|
|
5824
|
+
runtime: string;
|
|
5825
|
+
runtimeVersion: string;
|
|
5826
|
+
error?: {
|
|
5827
|
+
message: string;
|
|
5828
|
+
name: string;
|
|
5829
|
+
stack?: string | undefined;
|
|
5830
|
+
stderr?: string | undefined;
|
|
5831
|
+
} | undefined;
|
|
5832
|
+
git?: Record<string, any> | undefined;
|
|
5833
|
+
deployedAt?: Date | undefined;
|
|
5834
|
+
}>;
|
|
5835
|
+
export type ApiDeploymentListResponseItem = z.infer<typeof ApiDeploymentListResponseItem>;
|
|
5836
|
+
export declare const ApiBranchListResponseBody: z.ZodObject<{
|
|
5837
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
5838
|
+
id: z.ZodString;
|
|
5839
|
+
name: z.ZodString;
|
|
5840
|
+
createdAt: z.ZodDate;
|
|
5841
|
+
updatedAt: z.ZodDate;
|
|
5842
|
+
git: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5843
|
+
isPaused: z.ZodBoolean;
|
|
5844
|
+
}, "strip", z.ZodTypeAny, {
|
|
5845
|
+
name: string;
|
|
5846
|
+
id: string;
|
|
5847
|
+
createdAt: Date;
|
|
5848
|
+
updatedAt: Date;
|
|
5849
|
+
isPaused: boolean;
|
|
5850
|
+
git?: Record<string, any> | undefined;
|
|
5851
|
+
}, {
|
|
5852
|
+
name: string;
|
|
5853
|
+
id: string;
|
|
5854
|
+
createdAt: Date;
|
|
5855
|
+
updatedAt: Date;
|
|
5856
|
+
isPaused: boolean;
|
|
5857
|
+
git?: Record<string, any> | undefined;
|
|
5858
|
+
}>, "many">;
|
|
5859
|
+
}, "strip", z.ZodTypeAny, {
|
|
5860
|
+
branches: {
|
|
5861
|
+
name: string;
|
|
5862
|
+
id: string;
|
|
5863
|
+
createdAt: Date;
|
|
5864
|
+
updatedAt: Date;
|
|
5865
|
+
isPaused: boolean;
|
|
5866
|
+
git?: Record<string, any> | undefined;
|
|
5867
|
+
}[];
|
|
5868
|
+
}, {
|
|
5869
|
+
branches: {
|
|
5870
|
+
name: string;
|
|
5871
|
+
id: string;
|
|
5872
|
+
createdAt: Date;
|
|
5873
|
+
updatedAt: Date;
|
|
5874
|
+
isPaused: boolean;
|
|
5875
|
+
git?: Record<string, any> | undefined;
|
|
5876
|
+
}[];
|
|
5877
|
+
}>;
|
|
5878
|
+
export type ApiBranchListResponseBody = z.infer<typeof ApiBranchListResponseBody>;
|
|
5879
|
+
export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
5880
|
+
id: z.ZodString;
|
|
5881
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5882
|
+
message: z.ZodString;
|
|
5883
|
+
data: z.ZodObject<{
|
|
5884
|
+
runId: z.ZodString;
|
|
5885
|
+
taskSlug: z.ZodOptional<z.ZodString>;
|
|
5886
|
+
taskPath: z.ZodOptional<z.ZodString>;
|
|
5887
|
+
events: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
5888
|
+
startTime: z.ZodDate;
|
|
5889
|
+
duration: z.ZodNumber;
|
|
5890
|
+
isError: z.ZodBoolean;
|
|
5891
|
+
isPartial: z.ZodBoolean;
|
|
5892
|
+
isCancelled: z.ZodBoolean;
|
|
5893
|
+
level: z.ZodString;
|
|
5894
|
+
environmentType: z.ZodString;
|
|
5895
|
+
workerVersion: z.ZodOptional<z.ZodString>;
|
|
5896
|
+
queueName: z.ZodOptional<z.ZodString>;
|
|
5897
|
+
machinePreset: z.ZodOptional<z.ZodString>;
|
|
5898
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5899
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
5900
|
+
}, "strip", z.ZodTypeAny, {
|
|
5901
|
+
duration: number;
|
|
5902
|
+
isCancelled: boolean;
|
|
5903
|
+
runId: string;
|
|
5904
|
+
startTime: Date;
|
|
5905
|
+
isError: boolean;
|
|
5906
|
+
isPartial: boolean;
|
|
5907
|
+
level: string;
|
|
5908
|
+
environmentType: string;
|
|
5909
|
+
output?: unknown;
|
|
5910
|
+
properties?: Record<string, any> | undefined;
|
|
5911
|
+
taskSlug?: string | undefined;
|
|
5912
|
+
taskPath?: string | undefined;
|
|
5913
|
+
events?: any[] | undefined;
|
|
5914
|
+
workerVersion?: string | undefined;
|
|
5915
|
+
queueName?: string | undefined;
|
|
5916
|
+
machinePreset?: string | undefined;
|
|
5917
|
+
}, {
|
|
5918
|
+
duration: number;
|
|
5919
|
+
isCancelled: boolean;
|
|
5920
|
+
runId: string;
|
|
5921
|
+
startTime: Date;
|
|
5922
|
+
isError: boolean;
|
|
5923
|
+
isPartial: boolean;
|
|
5924
|
+
level: string;
|
|
5925
|
+
environmentType: string;
|
|
5926
|
+
output?: unknown;
|
|
5927
|
+
properties?: Record<string, any> | undefined;
|
|
5928
|
+
taskSlug?: string | undefined;
|
|
5929
|
+
taskPath?: string | undefined;
|
|
5930
|
+
events?: any[] | undefined;
|
|
5931
|
+
workerVersion?: string | undefined;
|
|
5932
|
+
queueName?: string | undefined;
|
|
5933
|
+
machinePreset?: string | undefined;
|
|
5934
|
+
}>;
|
|
5935
|
+
}, "strip", z.ZodTypeAny, {
|
|
5936
|
+
message: string;
|
|
5937
|
+
id: string;
|
|
5938
|
+
data: {
|
|
5939
|
+
duration: number;
|
|
5940
|
+
isCancelled: boolean;
|
|
5941
|
+
runId: string;
|
|
5942
|
+
startTime: Date;
|
|
5943
|
+
isError: boolean;
|
|
5944
|
+
isPartial: boolean;
|
|
5945
|
+
level: string;
|
|
5946
|
+
environmentType: string;
|
|
5947
|
+
output?: unknown;
|
|
5948
|
+
properties?: Record<string, any> | undefined;
|
|
5949
|
+
taskSlug?: string | undefined;
|
|
5950
|
+
taskPath?: string | undefined;
|
|
5951
|
+
events?: any[] | undefined;
|
|
5952
|
+
workerVersion?: string | undefined;
|
|
5953
|
+
queueName?: string | undefined;
|
|
5954
|
+
machinePreset?: string | undefined;
|
|
5955
|
+
};
|
|
5956
|
+
parentId?: string | undefined;
|
|
5957
|
+
}, {
|
|
5958
|
+
message: string;
|
|
5959
|
+
id: string;
|
|
5960
|
+
data: {
|
|
5961
|
+
duration: number;
|
|
5962
|
+
isCancelled: boolean;
|
|
5963
|
+
runId: string;
|
|
5964
|
+
startTime: Date;
|
|
5965
|
+
isError: boolean;
|
|
5966
|
+
isPartial: boolean;
|
|
5967
|
+
level: string;
|
|
5968
|
+
environmentType: string;
|
|
5969
|
+
output?: unknown;
|
|
5970
|
+
properties?: Record<string, any> | undefined;
|
|
5971
|
+
taskSlug?: string | undefined;
|
|
5972
|
+
taskPath?: string | undefined;
|
|
5973
|
+
events?: any[] | undefined;
|
|
5974
|
+
workerVersion?: string | undefined;
|
|
5975
|
+
queueName?: string | undefined;
|
|
5976
|
+
machinePreset?: string | undefined;
|
|
5977
|
+
};
|
|
5978
|
+
parentId?: string | undefined;
|
|
5979
|
+
}>;
|
|
5980
|
+
export type RetrieveRunTraceSpan = z.infer<typeof RetrieveRunTraceSpanSchema> & {
|
|
5981
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
5982
|
+
};
|
|
5983
|
+
export declare const RetrieveRunTraceSpan: z.ZodType<RetrieveRunTraceSpan>;
|
|
5984
|
+
export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
5985
|
+
trace: z.ZodObject<{
|
|
5986
|
+
traceId: z.ZodString;
|
|
5987
|
+
rootSpan: z.ZodType<RetrieveRunTraceSpan, z.ZodTypeDef, RetrieveRunTraceSpan>;
|
|
5988
|
+
}, "strip", z.ZodTypeAny, {
|
|
5989
|
+
traceId: string;
|
|
5990
|
+
rootSpan: {
|
|
5991
|
+
message: string;
|
|
5992
|
+
id: string;
|
|
5993
|
+
data: {
|
|
5994
|
+
duration: number;
|
|
5995
|
+
isCancelled: boolean;
|
|
5996
|
+
runId: string;
|
|
5997
|
+
startTime: Date;
|
|
5998
|
+
isError: boolean;
|
|
5999
|
+
isPartial: boolean;
|
|
6000
|
+
level: string;
|
|
6001
|
+
environmentType: string;
|
|
6002
|
+
output?: unknown;
|
|
6003
|
+
properties?: Record<string, any> | undefined;
|
|
6004
|
+
taskSlug?: string | undefined;
|
|
6005
|
+
taskPath?: string | undefined;
|
|
6006
|
+
events?: any[] | undefined;
|
|
6007
|
+
workerVersion?: string | undefined;
|
|
6008
|
+
queueName?: string | undefined;
|
|
6009
|
+
machinePreset?: string | undefined;
|
|
6010
|
+
};
|
|
6011
|
+
parentId?: string | undefined;
|
|
6012
|
+
} & {
|
|
6013
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6014
|
+
};
|
|
6015
|
+
}, {
|
|
6016
|
+
traceId: string;
|
|
6017
|
+
rootSpan: {
|
|
6018
|
+
message: string;
|
|
6019
|
+
id: string;
|
|
6020
|
+
data: {
|
|
6021
|
+
duration: number;
|
|
6022
|
+
isCancelled: boolean;
|
|
6023
|
+
runId: string;
|
|
6024
|
+
startTime: Date;
|
|
6025
|
+
isError: boolean;
|
|
6026
|
+
isPartial: boolean;
|
|
6027
|
+
level: string;
|
|
6028
|
+
environmentType: string;
|
|
6029
|
+
output?: unknown;
|
|
6030
|
+
properties?: Record<string, any> | undefined;
|
|
6031
|
+
taskSlug?: string | undefined;
|
|
6032
|
+
taskPath?: string | undefined;
|
|
6033
|
+
events?: any[] | undefined;
|
|
6034
|
+
workerVersion?: string | undefined;
|
|
6035
|
+
queueName?: string | undefined;
|
|
6036
|
+
machinePreset?: string | undefined;
|
|
6037
|
+
};
|
|
6038
|
+
parentId?: string | undefined;
|
|
6039
|
+
} & {
|
|
6040
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6041
|
+
};
|
|
6042
|
+
}>;
|
|
6043
|
+
}, "strip", z.ZodTypeAny, {
|
|
6044
|
+
trace: {
|
|
6045
|
+
traceId: string;
|
|
6046
|
+
rootSpan: {
|
|
6047
|
+
message: string;
|
|
6048
|
+
id: string;
|
|
6049
|
+
data: {
|
|
6050
|
+
duration: number;
|
|
6051
|
+
isCancelled: boolean;
|
|
6052
|
+
runId: string;
|
|
6053
|
+
startTime: Date;
|
|
6054
|
+
isError: boolean;
|
|
6055
|
+
isPartial: boolean;
|
|
6056
|
+
level: string;
|
|
6057
|
+
environmentType: string;
|
|
6058
|
+
output?: unknown;
|
|
6059
|
+
properties?: Record<string, any> | undefined;
|
|
6060
|
+
taskSlug?: string | undefined;
|
|
6061
|
+
taskPath?: string | undefined;
|
|
6062
|
+
events?: any[] | undefined;
|
|
6063
|
+
workerVersion?: string | undefined;
|
|
6064
|
+
queueName?: string | undefined;
|
|
6065
|
+
machinePreset?: string | undefined;
|
|
6066
|
+
};
|
|
6067
|
+
parentId?: string | undefined;
|
|
6068
|
+
} & {
|
|
6069
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6070
|
+
};
|
|
6071
|
+
};
|
|
6072
|
+
}, {
|
|
6073
|
+
trace: {
|
|
6074
|
+
traceId: string;
|
|
6075
|
+
rootSpan: {
|
|
6076
|
+
message: string;
|
|
6077
|
+
id: string;
|
|
6078
|
+
data: {
|
|
6079
|
+
duration: number;
|
|
6080
|
+
isCancelled: boolean;
|
|
6081
|
+
runId: string;
|
|
6082
|
+
startTime: Date;
|
|
6083
|
+
isError: boolean;
|
|
6084
|
+
isPartial: boolean;
|
|
6085
|
+
level: string;
|
|
6086
|
+
environmentType: string;
|
|
6087
|
+
output?: unknown;
|
|
6088
|
+
properties?: Record<string, any> | undefined;
|
|
6089
|
+
taskSlug?: string | undefined;
|
|
6090
|
+
taskPath?: string | undefined;
|
|
6091
|
+
events?: any[] | undefined;
|
|
6092
|
+
workerVersion?: string | undefined;
|
|
6093
|
+
queueName?: string | undefined;
|
|
6094
|
+
machinePreset?: string | undefined;
|
|
6095
|
+
};
|
|
6096
|
+
parentId?: string | undefined;
|
|
6097
|
+
} & {
|
|
6098
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6099
|
+
};
|
|
6100
|
+
};
|
|
6101
|
+
}>;
|
|
6102
|
+
export type RetrieveRunTraceResponseBody = z.infer<typeof RetrieveRunTraceResponseBody>;
|