@trigger.dev/core 4.0.0-v4-beta.28 → 4.0.1
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/schemas/api.d.ts +564 -2
- package/dist/commonjs/v3/schemas/api.js +144 -3
- package/dist/commonjs/v3/schemas/api.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/schemas/api.d.ts +564 -2
- package/dist/esm/v3/schemas/api.js +141 -1
- package/dist/esm/v3/schemas/api.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>;
|
|
@@ -5533,3 +5714,384 @@ export declare function timeoutError(timeout: Date): {
|
|
|
5533
5714
|
code: string;
|
|
5534
5715
|
message: string;
|
|
5535
5716
|
};
|
|
5717
|
+
export declare const ApiDeploymentListParams: {
|
|
5718
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5719
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5720
|
+
from: z.ZodOptional<z.ZodString>;
|
|
5721
|
+
to: z.ZodOptional<z.ZodString>;
|
|
5722
|
+
period: z.ZodOptional<z.ZodString>;
|
|
5723
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
5724
|
+
};
|
|
5725
|
+
export declare const ApiDeploymentListOptions: z.ZodObject<{
|
|
5726
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5727
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5728
|
+
from: z.ZodOptional<z.ZodString>;
|
|
5729
|
+
to: z.ZodOptional<z.ZodString>;
|
|
5730
|
+
period: z.ZodOptional<z.ZodString>;
|
|
5731
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
5732
|
+
}, "strip", z.ZodTypeAny, {
|
|
5733
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5734
|
+
limit?: number | undefined;
|
|
5735
|
+
cursor?: string | undefined;
|
|
5736
|
+
from?: string | undefined;
|
|
5737
|
+
to?: string | undefined;
|
|
5738
|
+
period?: string | undefined;
|
|
5739
|
+
}, {
|
|
5740
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5741
|
+
limit?: number | undefined;
|
|
5742
|
+
cursor?: string | undefined;
|
|
5743
|
+
from?: string | undefined;
|
|
5744
|
+
to?: string | undefined;
|
|
5745
|
+
period?: string | undefined;
|
|
5746
|
+
}>;
|
|
5747
|
+
export type ApiDeploymentListOptions = z.infer<typeof ApiDeploymentListOptions>;
|
|
5748
|
+
export declare const ApiDeploymentListSearchParams: z.ZodObject<{
|
|
5749
|
+
"page[after]": z.ZodOptional<z.ZodString>;
|
|
5750
|
+
"page[size]": z.ZodOptional<z.ZodNumber>;
|
|
5751
|
+
from: z.ZodOptional<z.ZodString>;
|
|
5752
|
+
to: z.ZodOptional<z.ZodString>;
|
|
5753
|
+
period: z.ZodOptional<z.ZodString>;
|
|
5754
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>>;
|
|
5755
|
+
}, "strip", z.ZodTypeAny, {
|
|
5756
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5757
|
+
from?: string | undefined;
|
|
5758
|
+
to?: string | undefined;
|
|
5759
|
+
period?: string | undefined;
|
|
5760
|
+
"page[after]"?: string | undefined;
|
|
5761
|
+
"page[size]"?: number | undefined;
|
|
5762
|
+
}, {
|
|
5763
|
+
status?: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | undefined;
|
|
5764
|
+
from?: string | undefined;
|
|
5765
|
+
to?: string | undefined;
|
|
5766
|
+
period?: string | undefined;
|
|
5767
|
+
"page[after]"?: string | undefined;
|
|
5768
|
+
"page[size]"?: number | undefined;
|
|
5769
|
+
}>;
|
|
5770
|
+
export type ApiDeploymentListSearchParams = z.infer<typeof ApiDeploymentListSearchParams>;
|
|
5771
|
+
export declare const ApiDeploymentListResponseItem: z.ZodObject<{
|
|
5772
|
+
id: z.ZodString;
|
|
5773
|
+
createdAt: z.ZodDate;
|
|
5774
|
+
shortCode: z.ZodString;
|
|
5775
|
+
version: z.ZodString;
|
|
5776
|
+
runtime: z.ZodString;
|
|
5777
|
+
runtimeVersion: z.ZodString;
|
|
5778
|
+
status: z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>;
|
|
5779
|
+
deployedAt: z.ZodOptional<z.ZodDate>;
|
|
5780
|
+
git: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5781
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
5782
|
+
name: z.ZodString;
|
|
5783
|
+
message: z.ZodString;
|
|
5784
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
5785
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
5786
|
+
}, "strip", z.ZodTypeAny, {
|
|
5787
|
+
message: string;
|
|
5788
|
+
name: string;
|
|
5789
|
+
stack?: string | undefined;
|
|
5790
|
+
stderr?: string | undefined;
|
|
5791
|
+
}, {
|
|
5792
|
+
message: string;
|
|
5793
|
+
name: string;
|
|
5794
|
+
stack?: string | undefined;
|
|
5795
|
+
stderr?: string | undefined;
|
|
5796
|
+
}>>;
|
|
5797
|
+
}, "strip", z.ZodTypeAny, {
|
|
5798
|
+
status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
|
|
5799
|
+
id: string;
|
|
5800
|
+
createdAt: Date;
|
|
5801
|
+
version: string;
|
|
5802
|
+
shortCode: string;
|
|
5803
|
+
runtime: string;
|
|
5804
|
+
runtimeVersion: string;
|
|
5805
|
+
error?: {
|
|
5806
|
+
message: string;
|
|
5807
|
+
name: string;
|
|
5808
|
+
stack?: string | undefined;
|
|
5809
|
+
stderr?: string | undefined;
|
|
5810
|
+
} | undefined;
|
|
5811
|
+
git?: Record<string, any> | undefined;
|
|
5812
|
+
deployedAt?: Date | undefined;
|
|
5813
|
+
}, {
|
|
5814
|
+
status: "CANCELED" | "FAILED" | "TIMED_OUT" | "PENDING" | "BUILDING" | "DEPLOYING" | "DEPLOYED";
|
|
5815
|
+
id: string;
|
|
5816
|
+
createdAt: Date;
|
|
5817
|
+
version: string;
|
|
5818
|
+
shortCode: string;
|
|
5819
|
+
runtime: string;
|
|
5820
|
+
runtimeVersion: string;
|
|
5821
|
+
error?: {
|
|
5822
|
+
message: string;
|
|
5823
|
+
name: string;
|
|
5824
|
+
stack?: string | undefined;
|
|
5825
|
+
stderr?: string | undefined;
|
|
5826
|
+
} | undefined;
|
|
5827
|
+
git?: Record<string, any> | undefined;
|
|
5828
|
+
deployedAt?: Date | undefined;
|
|
5829
|
+
}>;
|
|
5830
|
+
export type ApiDeploymentListResponseItem = z.infer<typeof ApiDeploymentListResponseItem>;
|
|
5831
|
+
export declare const ApiBranchListResponseBody: z.ZodObject<{
|
|
5832
|
+
branches: z.ZodArray<z.ZodObject<{
|
|
5833
|
+
id: z.ZodString;
|
|
5834
|
+
name: z.ZodString;
|
|
5835
|
+
createdAt: z.ZodDate;
|
|
5836
|
+
updatedAt: z.ZodDate;
|
|
5837
|
+
git: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5838
|
+
isPaused: z.ZodBoolean;
|
|
5839
|
+
}, "strip", z.ZodTypeAny, {
|
|
5840
|
+
name: string;
|
|
5841
|
+
id: string;
|
|
5842
|
+
createdAt: Date;
|
|
5843
|
+
updatedAt: Date;
|
|
5844
|
+
isPaused: boolean;
|
|
5845
|
+
git?: Record<string, any> | undefined;
|
|
5846
|
+
}, {
|
|
5847
|
+
name: string;
|
|
5848
|
+
id: string;
|
|
5849
|
+
createdAt: Date;
|
|
5850
|
+
updatedAt: Date;
|
|
5851
|
+
isPaused: boolean;
|
|
5852
|
+
git?: Record<string, any> | undefined;
|
|
5853
|
+
}>, "many">;
|
|
5854
|
+
}, "strip", z.ZodTypeAny, {
|
|
5855
|
+
branches: {
|
|
5856
|
+
name: string;
|
|
5857
|
+
id: string;
|
|
5858
|
+
createdAt: Date;
|
|
5859
|
+
updatedAt: Date;
|
|
5860
|
+
isPaused: boolean;
|
|
5861
|
+
git?: Record<string, any> | undefined;
|
|
5862
|
+
}[];
|
|
5863
|
+
}, {
|
|
5864
|
+
branches: {
|
|
5865
|
+
name: string;
|
|
5866
|
+
id: string;
|
|
5867
|
+
createdAt: Date;
|
|
5868
|
+
updatedAt: Date;
|
|
5869
|
+
isPaused: boolean;
|
|
5870
|
+
git?: Record<string, any> | undefined;
|
|
5871
|
+
}[];
|
|
5872
|
+
}>;
|
|
5873
|
+
export type ApiBranchListResponseBody = z.infer<typeof ApiBranchListResponseBody>;
|
|
5874
|
+
export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{
|
|
5875
|
+
id: z.ZodString;
|
|
5876
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
5877
|
+
message: z.ZodString;
|
|
5878
|
+
data: z.ZodObject<{
|
|
5879
|
+
runId: z.ZodString;
|
|
5880
|
+
taskSlug: z.ZodOptional<z.ZodString>;
|
|
5881
|
+
taskPath: z.ZodOptional<z.ZodString>;
|
|
5882
|
+
events: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
5883
|
+
startTime: z.ZodDate;
|
|
5884
|
+
duration: z.ZodNumber;
|
|
5885
|
+
isError: z.ZodBoolean;
|
|
5886
|
+
isPartial: z.ZodBoolean;
|
|
5887
|
+
isCancelled: z.ZodBoolean;
|
|
5888
|
+
level: z.ZodString;
|
|
5889
|
+
environmentType: z.ZodString;
|
|
5890
|
+
workerVersion: z.ZodOptional<z.ZodString>;
|
|
5891
|
+
queueName: z.ZodOptional<z.ZodString>;
|
|
5892
|
+
machinePreset: z.ZodOptional<z.ZodString>;
|
|
5893
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5894
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
5895
|
+
}, "strip", z.ZodTypeAny, {
|
|
5896
|
+
duration: number;
|
|
5897
|
+
isCancelled: boolean;
|
|
5898
|
+
runId: string;
|
|
5899
|
+
startTime: Date;
|
|
5900
|
+
isError: boolean;
|
|
5901
|
+
isPartial: boolean;
|
|
5902
|
+
level: string;
|
|
5903
|
+
environmentType: string;
|
|
5904
|
+
output?: unknown;
|
|
5905
|
+
properties?: Record<string, any> | undefined;
|
|
5906
|
+
taskSlug?: string | undefined;
|
|
5907
|
+
taskPath?: string | undefined;
|
|
5908
|
+
events?: any[] | undefined;
|
|
5909
|
+
workerVersion?: string | undefined;
|
|
5910
|
+
queueName?: string | undefined;
|
|
5911
|
+
machinePreset?: string | undefined;
|
|
5912
|
+
}, {
|
|
5913
|
+
duration: number;
|
|
5914
|
+
isCancelled: boolean;
|
|
5915
|
+
runId: string;
|
|
5916
|
+
startTime: Date;
|
|
5917
|
+
isError: boolean;
|
|
5918
|
+
isPartial: boolean;
|
|
5919
|
+
level: string;
|
|
5920
|
+
environmentType: string;
|
|
5921
|
+
output?: unknown;
|
|
5922
|
+
properties?: Record<string, any> | undefined;
|
|
5923
|
+
taskSlug?: string | undefined;
|
|
5924
|
+
taskPath?: string | undefined;
|
|
5925
|
+
events?: any[] | undefined;
|
|
5926
|
+
workerVersion?: string | undefined;
|
|
5927
|
+
queueName?: string | undefined;
|
|
5928
|
+
machinePreset?: string | undefined;
|
|
5929
|
+
}>;
|
|
5930
|
+
}, "strip", z.ZodTypeAny, {
|
|
5931
|
+
message: string;
|
|
5932
|
+
id: string;
|
|
5933
|
+
data: {
|
|
5934
|
+
duration: number;
|
|
5935
|
+
isCancelled: boolean;
|
|
5936
|
+
runId: string;
|
|
5937
|
+
startTime: Date;
|
|
5938
|
+
isError: boolean;
|
|
5939
|
+
isPartial: boolean;
|
|
5940
|
+
level: string;
|
|
5941
|
+
environmentType: string;
|
|
5942
|
+
output?: unknown;
|
|
5943
|
+
properties?: Record<string, any> | undefined;
|
|
5944
|
+
taskSlug?: string | undefined;
|
|
5945
|
+
taskPath?: string | undefined;
|
|
5946
|
+
events?: any[] | undefined;
|
|
5947
|
+
workerVersion?: string | undefined;
|
|
5948
|
+
queueName?: string | undefined;
|
|
5949
|
+
machinePreset?: string | undefined;
|
|
5950
|
+
};
|
|
5951
|
+
parentId?: string | undefined;
|
|
5952
|
+
}, {
|
|
5953
|
+
message: string;
|
|
5954
|
+
id: string;
|
|
5955
|
+
data: {
|
|
5956
|
+
duration: number;
|
|
5957
|
+
isCancelled: boolean;
|
|
5958
|
+
runId: string;
|
|
5959
|
+
startTime: Date;
|
|
5960
|
+
isError: boolean;
|
|
5961
|
+
isPartial: boolean;
|
|
5962
|
+
level: string;
|
|
5963
|
+
environmentType: string;
|
|
5964
|
+
output?: unknown;
|
|
5965
|
+
properties?: Record<string, any> | undefined;
|
|
5966
|
+
taskSlug?: string | undefined;
|
|
5967
|
+
taskPath?: string | undefined;
|
|
5968
|
+
events?: any[] | undefined;
|
|
5969
|
+
workerVersion?: string | undefined;
|
|
5970
|
+
queueName?: string | undefined;
|
|
5971
|
+
machinePreset?: string | undefined;
|
|
5972
|
+
};
|
|
5973
|
+
parentId?: string | undefined;
|
|
5974
|
+
}>;
|
|
5975
|
+
export type RetrieveRunTraceSpan = z.infer<typeof RetrieveRunTraceSpanSchema> & {
|
|
5976
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
5977
|
+
};
|
|
5978
|
+
export declare const RetrieveRunTraceSpan: z.ZodType<RetrieveRunTraceSpan>;
|
|
5979
|
+
export declare const RetrieveRunTraceResponseBody: z.ZodObject<{
|
|
5980
|
+
trace: z.ZodObject<{
|
|
5981
|
+
traceId: z.ZodString;
|
|
5982
|
+
rootSpan: z.ZodType<RetrieveRunTraceSpan, z.ZodTypeDef, RetrieveRunTraceSpan>;
|
|
5983
|
+
}, "strip", z.ZodTypeAny, {
|
|
5984
|
+
traceId: string;
|
|
5985
|
+
rootSpan: {
|
|
5986
|
+
message: string;
|
|
5987
|
+
id: string;
|
|
5988
|
+
data: {
|
|
5989
|
+
duration: number;
|
|
5990
|
+
isCancelled: boolean;
|
|
5991
|
+
runId: string;
|
|
5992
|
+
startTime: Date;
|
|
5993
|
+
isError: boolean;
|
|
5994
|
+
isPartial: boolean;
|
|
5995
|
+
level: string;
|
|
5996
|
+
environmentType: string;
|
|
5997
|
+
output?: unknown;
|
|
5998
|
+
properties?: Record<string, any> | undefined;
|
|
5999
|
+
taskSlug?: string | undefined;
|
|
6000
|
+
taskPath?: string | undefined;
|
|
6001
|
+
events?: any[] | undefined;
|
|
6002
|
+
workerVersion?: string | undefined;
|
|
6003
|
+
queueName?: string | undefined;
|
|
6004
|
+
machinePreset?: string | undefined;
|
|
6005
|
+
};
|
|
6006
|
+
parentId?: string | undefined;
|
|
6007
|
+
} & {
|
|
6008
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6009
|
+
};
|
|
6010
|
+
}, {
|
|
6011
|
+
traceId: string;
|
|
6012
|
+
rootSpan: {
|
|
6013
|
+
message: string;
|
|
6014
|
+
id: string;
|
|
6015
|
+
data: {
|
|
6016
|
+
duration: number;
|
|
6017
|
+
isCancelled: boolean;
|
|
6018
|
+
runId: string;
|
|
6019
|
+
startTime: Date;
|
|
6020
|
+
isError: boolean;
|
|
6021
|
+
isPartial: boolean;
|
|
6022
|
+
level: string;
|
|
6023
|
+
environmentType: string;
|
|
6024
|
+
output?: unknown;
|
|
6025
|
+
properties?: Record<string, any> | undefined;
|
|
6026
|
+
taskSlug?: string | undefined;
|
|
6027
|
+
taskPath?: string | undefined;
|
|
6028
|
+
events?: any[] | undefined;
|
|
6029
|
+
workerVersion?: string | undefined;
|
|
6030
|
+
queueName?: string | undefined;
|
|
6031
|
+
machinePreset?: string | undefined;
|
|
6032
|
+
};
|
|
6033
|
+
parentId?: string | undefined;
|
|
6034
|
+
} & {
|
|
6035
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6036
|
+
};
|
|
6037
|
+
}>;
|
|
6038
|
+
}, "strip", z.ZodTypeAny, {
|
|
6039
|
+
trace: {
|
|
6040
|
+
traceId: string;
|
|
6041
|
+
rootSpan: {
|
|
6042
|
+
message: string;
|
|
6043
|
+
id: string;
|
|
6044
|
+
data: {
|
|
6045
|
+
duration: number;
|
|
6046
|
+
isCancelled: boolean;
|
|
6047
|
+
runId: string;
|
|
6048
|
+
startTime: Date;
|
|
6049
|
+
isError: boolean;
|
|
6050
|
+
isPartial: boolean;
|
|
6051
|
+
level: string;
|
|
6052
|
+
environmentType: string;
|
|
6053
|
+
output?: unknown;
|
|
6054
|
+
properties?: Record<string, any> | undefined;
|
|
6055
|
+
taskSlug?: string | undefined;
|
|
6056
|
+
taskPath?: string | undefined;
|
|
6057
|
+
events?: any[] | undefined;
|
|
6058
|
+
workerVersion?: string | undefined;
|
|
6059
|
+
queueName?: string | undefined;
|
|
6060
|
+
machinePreset?: string | undefined;
|
|
6061
|
+
};
|
|
6062
|
+
parentId?: string | undefined;
|
|
6063
|
+
} & {
|
|
6064
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6065
|
+
};
|
|
6066
|
+
};
|
|
6067
|
+
}, {
|
|
6068
|
+
trace: {
|
|
6069
|
+
traceId: string;
|
|
6070
|
+
rootSpan: {
|
|
6071
|
+
message: string;
|
|
6072
|
+
id: string;
|
|
6073
|
+
data: {
|
|
6074
|
+
duration: number;
|
|
6075
|
+
isCancelled: boolean;
|
|
6076
|
+
runId: string;
|
|
6077
|
+
startTime: Date;
|
|
6078
|
+
isError: boolean;
|
|
6079
|
+
isPartial: boolean;
|
|
6080
|
+
level: string;
|
|
6081
|
+
environmentType: string;
|
|
6082
|
+
output?: unknown;
|
|
6083
|
+
properties?: Record<string, any> | undefined;
|
|
6084
|
+
taskSlug?: string | undefined;
|
|
6085
|
+
taskPath?: string | undefined;
|
|
6086
|
+
events?: any[] | undefined;
|
|
6087
|
+
workerVersion?: string | undefined;
|
|
6088
|
+
queueName?: string | undefined;
|
|
6089
|
+
machinePreset?: string | undefined;
|
|
6090
|
+
};
|
|
6091
|
+
parentId?: string | undefined;
|
|
6092
|
+
} & {
|
|
6093
|
+
children: Array<RetrieveRunTraceSpan>;
|
|
6094
|
+
};
|
|
6095
|
+
};
|
|
6096
|
+
}>;
|
|
6097
|
+
export type RetrieveRunTraceResponseBody = z.infer<typeof RetrieveRunTraceResponseBody>;
|