@trigger.dev/core 0.0.0-re2-20250503165707 → 0.0.0-re2-20250506164201
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/runEngineWorker/supervisor/http.d.ts +53 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +9 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +393 -3
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +16 -7
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +53 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +374 -3
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.js +2 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.js.map +1 -1
- package/dist/commonjs/v3/runtime/{managedRuntimeManager.d.ts → sharedRuntimeManager.d.ts} +13 -6
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js +276 -0
- package/dist/commonjs/v3/runtime/sharedRuntimeManager.js.map +1 -0
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +4 -4
- package/dist/commonjs/v3/schemas/messages.d.ts +228 -3814
- package/dist/commonjs/v3/schemas/messages.js +9 -54
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +0 -23
- package/dist/commonjs/v3/schemas/schemas.js +1 -12
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/httpServer.d.ts +1 -0
- package/dist/commonjs/v3/serverOnly/httpServer.js +12 -2
- package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
- package/dist/commonjs/v3/timeout/usageTimeoutManager.js +3 -0
- package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +1 -0
- package/dist/commonjs/v3/utils/interval.d.ts +3 -1
- package/dist/commonjs/v3/utils/interval.js +5 -1
- package/dist/commonjs/v3/utils/interval.js.map +1 -1
- package/dist/commonjs/v3/workers/index.d.ts +1 -1
- package/dist/commonjs/v3/workers/index.js +3 -3
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +53 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.js +10 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +393 -3
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +15 -6
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +53 -0
- package/dist/esm/v3/runEngineWorker/workload/http.js +9 -1
- package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +374 -3
- package/dist/esm/v3/runEngineWorker/workload/schemas.js +2 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.js.map +1 -1
- package/dist/esm/v3/runtime/{managedRuntimeManager.d.ts → sharedRuntimeManager.d.ts} +13 -6
- package/dist/esm/v3/runtime/sharedRuntimeManager.js +272 -0
- package/dist/esm/v3/runtime/sharedRuntimeManager.js.map +1 -0
- package/dist/esm/v3/schemas/checkpoints.d.ts +4 -4
- package/dist/esm/v3/schemas/messages.d.ts +228 -3814
- package/dist/esm/v3/schemas/messages.js +10 -55
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +0 -23
- package/dist/esm/v3/schemas/schemas.js +0 -11
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/serverOnly/httpServer.d.ts +1 -0
- package/dist/esm/v3/serverOnly/httpServer.js +12 -2
- package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
- package/dist/esm/v3/timeout/usageTimeoutManager.js +3 -0
- package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +1 -0
- package/dist/esm/v3/utils/interval.d.ts +3 -1
- package/dist/esm/v3/utils/interval.js +5 -1
- package/dist/esm/v3/utils/interval.js.map +1 -1
- package/dist/esm/v3/workers/index.d.ts +1 -1
- package/dist/esm/v3/workers/index.js +1 -1
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
- package/dist/commonjs/v3/runtime/managedRuntimeManager.js +0 -189
- package/dist/commonjs/v3/runtime/managedRuntimeManager.js.map +0 -1
- package/dist/esm/v3/runtime/managedRuntimeManager.js +0 -185
- package/dist/esm/v3/runtime/managedRuntimeManager.js.map +0 -1
|
@@ -324,6 +324,59 @@ export declare class SupervisorHttpClient {
|
|
|
324
324
|
} | undefined;
|
|
325
325
|
};
|
|
326
326
|
}>>;
|
|
327
|
+
getSnapshotsSince(runId: string, snapshotId: string, runnerId?: string): Promise<import("../../zodfetch.js").ApiResult<{
|
|
328
|
+
snapshots: {
|
|
329
|
+
version: "1";
|
|
330
|
+
run: {
|
|
331
|
+
status: import("../../index.js").TaskRunStatus;
|
|
332
|
+
id: string;
|
|
333
|
+
friendlyId: string;
|
|
334
|
+
attemptNumber?: number | null | undefined;
|
|
335
|
+
};
|
|
336
|
+
snapshot: {
|
|
337
|
+
id: string;
|
|
338
|
+
description: string;
|
|
339
|
+
friendlyId: string;
|
|
340
|
+
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
341
|
+
};
|
|
342
|
+
completedWaitpoints: {
|
|
343
|
+
type: import("../../index.js").WaitpointType;
|
|
344
|
+
id: string;
|
|
345
|
+
completedAt: Date;
|
|
346
|
+
friendlyId: string;
|
|
347
|
+
outputIsError: boolean;
|
|
348
|
+
idempotencyKey?: string | undefined;
|
|
349
|
+
output?: string | undefined;
|
|
350
|
+
outputType?: string | undefined;
|
|
351
|
+
index?: number | undefined;
|
|
352
|
+
completedByTaskRun?: {
|
|
353
|
+
id: string;
|
|
354
|
+
friendlyId: string;
|
|
355
|
+
batch?: {
|
|
356
|
+
id: string;
|
|
357
|
+
friendlyId: string;
|
|
358
|
+
} | undefined;
|
|
359
|
+
} | undefined;
|
|
360
|
+
completedAfter?: Date | undefined;
|
|
361
|
+
completedByBatch?: {
|
|
362
|
+
id: string;
|
|
363
|
+
friendlyId: string;
|
|
364
|
+
} | undefined;
|
|
365
|
+
}[];
|
|
366
|
+
batch?: {
|
|
367
|
+
id: string;
|
|
368
|
+
friendlyId: string;
|
|
369
|
+
} | undefined;
|
|
370
|
+
checkpoint?: {
|
|
371
|
+
type: import("../../index.js").CheckpointTypeEnum;
|
|
372
|
+
id: string;
|
|
373
|
+
friendlyId: string;
|
|
374
|
+
location: string;
|
|
375
|
+
imageRef?: string | null | undefined;
|
|
376
|
+
reason?: string | null | undefined;
|
|
377
|
+
} | undefined;
|
|
378
|
+
}[];
|
|
379
|
+
}>>;
|
|
327
380
|
sendDebugLog(runId: string, body: WorkerApiDebugLogBody, runnerId?: string): Promise<void>;
|
|
328
381
|
continueRunExecution(runId: string, snapshotId: string, runnerId?: string): Promise<import("../../zodfetch.js").ApiResult<{
|
|
329
382
|
run: {
|
|
@@ -106,6 +106,15 @@ class SupervisorHttpClient {
|
|
|
106
106
|
},
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
+
async getSnapshotsSince(runId, snapshotId, runnerId) {
|
|
110
|
+
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkerApiRunSnapshotsSinceResponseBody, `${this.apiUrl}/engine/v1/worker-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
|
|
111
|
+
method: "GET",
|
|
112
|
+
headers: {
|
|
113
|
+
...this.defaultHeaders,
|
|
114
|
+
...this.runnerIdHeader(runnerId),
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
109
118
|
async sendDebugLog(runId, body, runnerId) {
|
|
110
119
|
try {
|
|
111
120
|
const res = await (0, zodfetch_js_1.wrapZodFetch)(zod_1.z.unknown(), `${this.apiUrl}/engine/v1/worker-actions/runs/${runId}/logs/debug`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/supervisor/http.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/supervisor/http.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6CAmBsB;AAEtB,uCAAoD;AACpD,mDAAiD;AACjD,wCAA2C;AAC3C,4CAA8C;AAI9C,MAAa,oBAAoB;IACd,MAAM,CAAS;IACf,WAAW,CAAS;IACpB,YAAY,CAAS;IACrB,cAAc,CAAyB;IAExD,YAAY,IAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,cAAc,GAAG,IAAA,iCAAuB,EAAC,IAAI,CAAC,CAAC;QAEpD,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QAC3E,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAChF,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,YAAY,EAA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KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,KAAa,EAAE,UAAkB,EAAE,QAAiB;QAC7E,OAAO,IAAA,0BAAY,EACjB,qDAAwC,EACxC,GAAG,IAAI,CAAC,MAAM,kCAAkC,KAAK,cAAc,UAAU,WAAW,EACxF;YACE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,cAAc;gBACtB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC;aACjC;SACF,CACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,QAAQ,EACR,IAAI,GAML;QACC,OAAO,IAAA,0BAAY,EACjB,4CAA+B,EAC/B,GAAG,IAAI,CAAC,MAAM,kCAAkC,KAAK,cAAc,UAAU,UAAU,EACvF;YACE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,cAAc;gBACtB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC;gBAChC,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;SAC3B,CACF,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,QAAiB;QACtC,OAAO,IAAA,uBAAa,EAAC;YACnB,CAAC,0BAAc,CAAC,SAAS,CAAC,EAAE,QAAQ;SACrC,CAAC,CAAC;IACL,CAAC;CACF;AAlPD,oDAkPC"}
|
|
@@ -3510,18 +3510,37 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3510
3510
|
image?: string | undefined;
|
|
3511
3511
|
}>, "many">;
|
|
3512
3512
|
export type WorkerApiDequeueFromVersionResponseBody = z.infer<typeof WorkerApiDequeueFromVersionResponseBody>;
|
|
3513
|
+
export declare const DebugLogPropertiesValue: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>;
|
|
3514
|
+
export declare const DebugLogProperties: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>>>;
|
|
3515
|
+
export type DebugLogProperties = z.infer<typeof DebugLogProperties>;
|
|
3516
|
+
export declare const DebugLogPropertiesInput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3517
|
+
export type DebugLogPropertiesInput = z.infer<typeof DebugLogPropertiesInput>;
|
|
3518
|
+
export declare const WorkerApiDebugLogBodyInput: z.ZodObject<{
|
|
3519
|
+
time: z.ZodDate;
|
|
3520
|
+
message: z.ZodString;
|
|
3521
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3522
|
+
}, "strip", z.ZodTypeAny, {
|
|
3523
|
+
message: string;
|
|
3524
|
+
time: Date;
|
|
3525
|
+
properties?: Record<string, unknown> | undefined;
|
|
3526
|
+
}, {
|
|
3527
|
+
message: string;
|
|
3528
|
+
time: Date;
|
|
3529
|
+
properties?: Record<string, unknown> | undefined;
|
|
3530
|
+
}>;
|
|
3531
|
+
export type WorkerApiDebugLogBodyInput = z.infer<typeof WorkerApiDebugLogBodyInput>;
|
|
3513
3532
|
export declare const WorkerApiDebugLogBody: z.ZodObject<{
|
|
3514
3533
|
time: z.ZodDate;
|
|
3515
3534
|
message: z.ZodString;
|
|
3516
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodNullable<z.ZodString
|
|
3535
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>>>>;
|
|
3517
3536
|
}, "strip", z.ZodTypeAny, {
|
|
3518
3537
|
message: string;
|
|
3519
3538
|
time: Date;
|
|
3520
|
-
properties?: Record<string, string | number | boolean | (string | null)[] | (number | null)[] | (boolean | null)[] | undefined> | undefined;
|
|
3539
|
+
properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
|
|
3521
3540
|
}, {
|
|
3522
3541
|
message: string;
|
|
3523
3542
|
time: Date;
|
|
3524
|
-
properties?: Record<string, string | number | boolean | (string | null)[] | (number | null)[] | (boolean | null)[] | undefined> | undefined;
|
|
3543
|
+
properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
|
|
3525
3544
|
}>;
|
|
3526
3545
|
export type WorkerApiDebugLogBody = z.infer<typeof WorkerApiDebugLogBody>;
|
|
3527
3546
|
export declare const WorkerApiSuspendCompletionResponseBody: z.ZodObject<{
|
|
@@ -3535,3 +3554,374 @@ export declare const WorkerApiSuspendCompletionResponseBody: z.ZodObject<{
|
|
|
3535
3554
|
error?: string | undefined;
|
|
3536
3555
|
}>;
|
|
3537
3556
|
export type WorkerApiSuspendCompletionResponseBody = z.infer<typeof WorkerApiSuspendCompletionResponseBody>;
|
|
3557
|
+
export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
|
|
3558
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
3559
|
+
version: z.ZodLiteral<"1">;
|
|
3560
|
+
snapshot: z.ZodObject<{
|
|
3561
|
+
id: z.ZodString;
|
|
3562
|
+
friendlyId: z.ZodString;
|
|
3563
|
+
executionStatus: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunExecutionStatus]>;
|
|
3564
|
+
description: z.ZodString;
|
|
3565
|
+
}, "strip", z.ZodTypeAny, {
|
|
3566
|
+
id: string;
|
|
3567
|
+
description: string;
|
|
3568
|
+
friendlyId: string;
|
|
3569
|
+
executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
|
|
3570
|
+
}, {
|
|
3571
|
+
id: string;
|
|
3572
|
+
description: string;
|
|
3573
|
+
friendlyId: string;
|
|
3574
|
+
executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
|
|
3575
|
+
}>;
|
|
3576
|
+
run: z.ZodObject<{
|
|
3577
|
+
id: z.ZodString;
|
|
3578
|
+
friendlyId: z.ZodString;
|
|
3579
|
+
status: z.ZodEnum<[import("../../schemas/runEngine.js").TaskRunStatus]>;
|
|
3580
|
+
attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3581
|
+
}, "strip", z.ZodTypeAny, {
|
|
3582
|
+
status: import("../../schemas/runEngine.js").TaskRunStatus;
|
|
3583
|
+
id: string;
|
|
3584
|
+
friendlyId: string;
|
|
3585
|
+
attemptNumber?: number | null | undefined;
|
|
3586
|
+
}, {
|
|
3587
|
+
status: import("../../schemas/runEngine.js").TaskRunStatus;
|
|
3588
|
+
id: string;
|
|
3589
|
+
friendlyId: string;
|
|
3590
|
+
attemptNumber?: number | null | undefined;
|
|
3591
|
+
}>;
|
|
3592
|
+
batch: z.ZodOptional<z.ZodObject<{
|
|
3593
|
+
id: z.ZodString;
|
|
3594
|
+
friendlyId: z.ZodString;
|
|
3595
|
+
}, "strip", z.ZodTypeAny, {
|
|
3596
|
+
id: string;
|
|
3597
|
+
friendlyId: string;
|
|
3598
|
+
}, {
|
|
3599
|
+
id: string;
|
|
3600
|
+
friendlyId: string;
|
|
3601
|
+
}>>;
|
|
3602
|
+
checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
3603
|
+
type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
|
|
3604
|
+
location: z.ZodString;
|
|
3605
|
+
imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3606
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3607
|
+
}, {
|
|
3608
|
+
id: z.ZodString;
|
|
3609
|
+
friendlyId: z.ZodString;
|
|
3610
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3611
|
+
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3612
|
+
id: string;
|
|
3613
|
+
friendlyId: string;
|
|
3614
|
+
location: string;
|
|
3615
|
+
imageRef?: string | null | undefined;
|
|
3616
|
+
reason?: string | null | undefined;
|
|
3617
|
+
}, {
|
|
3618
|
+
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3619
|
+
id: string;
|
|
3620
|
+
friendlyId: string;
|
|
3621
|
+
location: string;
|
|
3622
|
+
imageRef?: string | null | undefined;
|
|
3623
|
+
reason?: string | null | undefined;
|
|
3624
|
+
}>>;
|
|
3625
|
+
completedWaitpoints: z.ZodArray<z.ZodObject<{
|
|
3626
|
+
id: z.ZodString;
|
|
3627
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
3628
|
+
friendlyId: z.ZodString;
|
|
3629
|
+
type: z.ZodEnum<[import("../../schemas/runEngine.js").WaitpointType]>;
|
|
3630
|
+
completedAt: z.ZodDate;
|
|
3631
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
3632
|
+
completedByTaskRun: z.ZodOptional<z.ZodObject<{
|
|
3633
|
+
id: z.ZodString;
|
|
3634
|
+
friendlyId: z.ZodString;
|
|
3635
|
+
batch: z.ZodOptional<z.ZodObject<{
|
|
3636
|
+
id: z.ZodString;
|
|
3637
|
+
friendlyId: z.ZodString;
|
|
3638
|
+
}, "strip", z.ZodTypeAny, {
|
|
3639
|
+
id: string;
|
|
3640
|
+
friendlyId: string;
|
|
3641
|
+
}, {
|
|
3642
|
+
id: string;
|
|
3643
|
+
friendlyId: string;
|
|
3644
|
+
}>>;
|
|
3645
|
+
}, "strip", z.ZodTypeAny, {
|
|
3646
|
+
id: string;
|
|
3647
|
+
friendlyId: string;
|
|
3648
|
+
batch?: {
|
|
3649
|
+
id: string;
|
|
3650
|
+
friendlyId: string;
|
|
3651
|
+
} | undefined;
|
|
3652
|
+
}, {
|
|
3653
|
+
id: string;
|
|
3654
|
+
friendlyId: string;
|
|
3655
|
+
batch?: {
|
|
3656
|
+
id: string;
|
|
3657
|
+
friendlyId: string;
|
|
3658
|
+
} | undefined;
|
|
3659
|
+
}>>;
|
|
3660
|
+
completedAfter: z.ZodOptional<z.ZodDate>;
|
|
3661
|
+
completedByBatch: z.ZodOptional<z.ZodObject<{
|
|
3662
|
+
id: z.ZodString;
|
|
3663
|
+
friendlyId: z.ZodString;
|
|
3664
|
+
}, "strip", z.ZodTypeAny, {
|
|
3665
|
+
id: string;
|
|
3666
|
+
friendlyId: string;
|
|
3667
|
+
}, {
|
|
3668
|
+
id: string;
|
|
3669
|
+
friendlyId: string;
|
|
3670
|
+
}>>;
|
|
3671
|
+
output: z.ZodOptional<z.ZodString>;
|
|
3672
|
+
outputType: z.ZodOptional<z.ZodString>;
|
|
3673
|
+
outputIsError: z.ZodBoolean;
|
|
3674
|
+
}, "strip", z.ZodTypeAny, {
|
|
3675
|
+
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3676
|
+
id: string;
|
|
3677
|
+
completedAt: Date;
|
|
3678
|
+
friendlyId: string;
|
|
3679
|
+
outputIsError: boolean;
|
|
3680
|
+
idempotencyKey?: string | undefined;
|
|
3681
|
+
output?: string | undefined;
|
|
3682
|
+
outputType?: string | undefined;
|
|
3683
|
+
index?: number | undefined;
|
|
3684
|
+
completedByTaskRun?: {
|
|
3685
|
+
id: string;
|
|
3686
|
+
friendlyId: string;
|
|
3687
|
+
batch?: {
|
|
3688
|
+
id: string;
|
|
3689
|
+
friendlyId: string;
|
|
3690
|
+
} | undefined;
|
|
3691
|
+
} | undefined;
|
|
3692
|
+
completedAfter?: Date | undefined;
|
|
3693
|
+
completedByBatch?: {
|
|
3694
|
+
id: string;
|
|
3695
|
+
friendlyId: string;
|
|
3696
|
+
} | undefined;
|
|
3697
|
+
}, {
|
|
3698
|
+
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3699
|
+
id: string;
|
|
3700
|
+
completedAt: Date;
|
|
3701
|
+
friendlyId: string;
|
|
3702
|
+
outputIsError: boolean;
|
|
3703
|
+
idempotencyKey?: string | undefined;
|
|
3704
|
+
output?: string | undefined;
|
|
3705
|
+
outputType?: string | undefined;
|
|
3706
|
+
index?: number | undefined;
|
|
3707
|
+
completedByTaskRun?: {
|
|
3708
|
+
id: string;
|
|
3709
|
+
friendlyId: string;
|
|
3710
|
+
batch?: {
|
|
3711
|
+
id: string;
|
|
3712
|
+
friendlyId: string;
|
|
3713
|
+
} | undefined;
|
|
3714
|
+
} | undefined;
|
|
3715
|
+
completedAfter?: Date | undefined;
|
|
3716
|
+
completedByBatch?: {
|
|
3717
|
+
id: string;
|
|
3718
|
+
friendlyId: string;
|
|
3719
|
+
} | undefined;
|
|
3720
|
+
}>, "many">;
|
|
3721
|
+
}, "strip", z.ZodTypeAny, {
|
|
3722
|
+
version: "1";
|
|
3723
|
+
run: {
|
|
3724
|
+
status: import("../../schemas/runEngine.js").TaskRunStatus;
|
|
3725
|
+
id: string;
|
|
3726
|
+
friendlyId: string;
|
|
3727
|
+
attemptNumber?: number | null | undefined;
|
|
3728
|
+
};
|
|
3729
|
+
snapshot: {
|
|
3730
|
+
id: string;
|
|
3731
|
+
description: string;
|
|
3732
|
+
friendlyId: string;
|
|
3733
|
+
executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
|
|
3734
|
+
};
|
|
3735
|
+
completedWaitpoints: {
|
|
3736
|
+
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3737
|
+
id: string;
|
|
3738
|
+
completedAt: Date;
|
|
3739
|
+
friendlyId: string;
|
|
3740
|
+
outputIsError: boolean;
|
|
3741
|
+
idempotencyKey?: string | undefined;
|
|
3742
|
+
output?: string | undefined;
|
|
3743
|
+
outputType?: string | undefined;
|
|
3744
|
+
index?: number | undefined;
|
|
3745
|
+
completedByTaskRun?: {
|
|
3746
|
+
id: string;
|
|
3747
|
+
friendlyId: string;
|
|
3748
|
+
batch?: {
|
|
3749
|
+
id: string;
|
|
3750
|
+
friendlyId: string;
|
|
3751
|
+
} | undefined;
|
|
3752
|
+
} | undefined;
|
|
3753
|
+
completedAfter?: Date | undefined;
|
|
3754
|
+
completedByBatch?: {
|
|
3755
|
+
id: string;
|
|
3756
|
+
friendlyId: string;
|
|
3757
|
+
} | undefined;
|
|
3758
|
+
}[];
|
|
3759
|
+
batch?: {
|
|
3760
|
+
id: string;
|
|
3761
|
+
friendlyId: string;
|
|
3762
|
+
} | undefined;
|
|
3763
|
+
checkpoint?: {
|
|
3764
|
+
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3765
|
+
id: string;
|
|
3766
|
+
friendlyId: string;
|
|
3767
|
+
location: string;
|
|
3768
|
+
imageRef?: string | null | undefined;
|
|
3769
|
+
reason?: string | null | undefined;
|
|
3770
|
+
} | undefined;
|
|
3771
|
+
}, {
|
|
3772
|
+
version: "1";
|
|
3773
|
+
run: {
|
|
3774
|
+
status: import("../../schemas/runEngine.js").TaskRunStatus;
|
|
3775
|
+
id: string;
|
|
3776
|
+
friendlyId: string;
|
|
3777
|
+
attemptNumber?: number | null | undefined;
|
|
3778
|
+
};
|
|
3779
|
+
snapshot: {
|
|
3780
|
+
id: string;
|
|
3781
|
+
description: string;
|
|
3782
|
+
friendlyId: string;
|
|
3783
|
+
executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
|
|
3784
|
+
};
|
|
3785
|
+
completedWaitpoints: {
|
|
3786
|
+
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3787
|
+
id: string;
|
|
3788
|
+
completedAt: Date;
|
|
3789
|
+
friendlyId: string;
|
|
3790
|
+
outputIsError: boolean;
|
|
3791
|
+
idempotencyKey?: string | undefined;
|
|
3792
|
+
output?: string | undefined;
|
|
3793
|
+
outputType?: string | undefined;
|
|
3794
|
+
index?: number | undefined;
|
|
3795
|
+
completedByTaskRun?: {
|
|
3796
|
+
id: string;
|
|
3797
|
+
friendlyId: string;
|
|
3798
|
+
batch?: {
|
|
3799
|
+
id: string;
|
|
3800
|
+
friendlyId: string;
|
|
3801
|
+
} | undefined;
|
|
3802
|
+
} | undefined;
|
|
3803
|
+
completedAfter?: Date | undefined;
|
|
3804
|
+
completedByBatch?: {
|
|
3805
|
+
id: string;
|
|
3806
|
+
friendlyId: string;
|
|
3807
|
+
} | undefined;
|
|
3808
|
+
}[];
|
|
3809
|
+
batch?: {
|
|
3810
|
+
id: string;
|
|
3811
|
+
friendlyId: string;
|
|
3812
|
+
} | undefined;
|
|
3813
|
+
checkpoint?: {
|
|
3814
|
+
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3815
|
+
id: string;
|
|
3816
|
+
friendlyId: string;
|
|
3817
|
+
location: string;
|
|
3818
|
+
imageRef?: string | null | undefined;
|
|
3819
|
+
reason?: string | null | undefined;
|
|
3820
|
+
} | undefined;
|
|
3821
|
+
}>, "many">;
|
|
3822
|
+
}, "strip", z.ZodTypeAny, {
|
|
3823
|
+
snapshots: {
|
|
3824
|
+
version: "1";
|
|
3825
|
+
run: {
|
|
3826
|
+
status: import("../../schemas/runEngine.js").TaskRunStatus;
|
|
3827
|
+
id: string;
|
|
3828
|
+
friendlyId: string;
|
|
3829
|
+
attemptNumber?: number | null | undefined;
|
|
3830
|
+
};
|
|
3831
|
+
snapshot: {
|
|
3832
|
+
id: string;
|
|
3833
|
+
description: string;
|
|
3834
|
+
friendlyId: string;
|
|
3835
|
+
executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
|
|
3836
|
+
};
|
|
3837
|
+
completedWaitpoints: {
|
|
3838
|
+
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3839
|
+
id: string;
|
|
3840
|
+
completedAt: Date;
|
|
3841
|
+
friendlyId: string;
|
|
3842
|
+
outputIsError: boolean;
|
|
3843
|
+
idempotencyKey?: string | undefined;
|
|
3844
|
+
output?: string | undefined;
|
|
3845
|
+
outputType?: string | undefined;
|
|
3846
|
+
index?: number | undefined;
|
|
3847
|
+
completedByTaskRun?: {
|
|
3848
|
+
id: string;
|
|
3849
|
+
friendlyId: string;
|
|
3850
|
+
batch?: {
|
|
3851
|
+
id: string;
|
|
3852
|
+
friendlyId: string;
|
|
3853
|
+
} | undefined;
|
|
3854
|
+
} | undefined;
|
|
3855
|
+
completedAfter?: Date | undefined;
|
|
3856
|
+
completedByBatch?: {
|
|
3857
|
+
id: string;
|
|
3858
|
+
friendlyId: string;
|
|
3859
|
+
} | undefined;
|
|
3860
|
+
}[];
|
|
3861
|
+
batch?: {
|
|
3862
|
+
id: string;
|
|
3863
|
+
friendlyId: string;
|
|
3864
|
+
} | undefined;
|
|
3865
|
+
checkpoint?: {
|
|
3866
|
+
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3867
|
+
id: string;
|
|
3868
|
+
friendlyId: string;
|
|
3869
|
+
location: string;
|
|
3870
|
+
imageRef?: string | null | undefined;
|
|
3871
|
+
reason?: string | null | undefined;
|
|
3872
|
+
} | undefined;
|
|
3873
|
+
}[];
|
|
3874
|
+
}, {
|
|
3875
|
+
snapshots: {
|
|
3876
|
+
version: "1";
|
|
3877
|
+
run: {
|
|
3878
|
+
status: import("../../schemas/runEngine.js").TaskRunStatus;
|
|
3879
|
+
id: string;
|
|
3880
|
+
friendlyId: string;
|
|
3881
|
+
attemptNumber?: number | null | undefined;
|
|
3882
|
+
};
|
|
3883
|
+
snapshot: {
|
|
3884
|
+
id: string;
|
|
3885
|
+
description: string;
|
|
3886
|
+
friendlyId: string;
|
|
3887
|
+
executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
|
|
3888
|
+
};
|
|
3889
|
+
completedWaitpoints: {
|
|
3890
|
+
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3891
|
+
id: string;
|
|
3892
|
+
completedAt: Date;
|
|
3893
|
+
friendlyId: string;
|
|
3894
|
+
outputIsError: boolean;
|
|
3895
|
+
idempotencyKey?: string | undefined;
|
|
3896
|
+
output?: string | undefined;
|
|
3897
|
+
outputType?: string | undefined;
|
|
3898
|
+
index?: number | undefined;
|
|
3899
|
+
completedByTaskRun?: {
|
|
3900
|
+
id: string;
|
|
3901
|
+
friendlyId: string;
|
|
3902
|
+
batch?: {
|
|
3903
|
+
id: string;
|
|
3904
|
+
friendlyId: string;
|
|
3905
|
+
} | undefined;
|
|
3906
|
+
} | undefined;
|
|
3907
|
+
completedAfter?: Date | undefined;
|
|
3908
|
+
completedByBatch?: {
|
|
3909
|
+
id: string;
|
|
3910
|
+
friendlyId: string;
|
|
3911
|
+
} | undefined;
|
|
3912
|
+
}[];
|
|
3913
|
+
batch?: {
|
|
3914
|
+
id: string;
|
|
3915
|
+
friendlyId: string;
|
|
3916
|
+
} | undefined;
|
|
3917
|
+
checkpoint?: {
|
|
3918
|
+
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3919
|
+
id: string;
|
|
3920
|
+
friendlyId: string;
|
|
3921
|
+
location: string;
|
|
3922
|
+
imageRef?: string | null | undefined;
|
|
3923
|
+
reason?: string | null | undefined;
|
|
3924
|
+
} | undefined;
|
|
3925
|
+
}[];
|
|
3926
|
+
}>;
|
|
3927
|
+
export type WorkerApiRunSnapshotsSinceResponseBody = z.infer<typeof WorkerApiRunSnapshotsSinceResponseBody>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkerApiSuspendCompletionResponseBody = exports.WorkerApiDebugLogBody = exports.WorkerApiDequeueFromVersionResponseBody = exports.WorkerApiRunLatestSnapshotResponseBody = exports.WorkerApiRunAttemptCompleteResponseBody = exports.WorkerApiRunAttemptCompleteRequestBody = exports.WorkerApiRunAttemptStartResponseBody = exports.WorkerApiRunAttemptStartRequestBody = exports.WorkerApiRunHeartbeatResponseBody = exports.WorkerApiRunHeartbeatRequestBody = exports.WorkerApiDequeueResponseBody = exports.WorkerApiDequeueRequestBody = exports.WorkerApiConnectResponseBody = exports.WorkerApiConnectRequestBody = exports.WorkerApiContinueRunExecutionRequestBody = exports.WorkerApiSuspendRunResponseBody = exports.WorkerApiSuspendRunRequestBody = exports.WorkerApiHeartbeatResponseBody = exports.WorkerApiHeartbeatRequestBody = void 0;
|
|
3
|
+
exports.WorkerApiRunSnapshotsSinceResponseBody = exports.WorkerApiSuspendCompletionResponseBody = exports.WorkerApiDebugLogBody = exports.WorkerApiDebugLogBodyInput = exports.DebugLogPropertiesInput = exports.DebugLogProperties = exports.DebugLogPropertiesValue = exports.WorkerApiDequeueFromVersionResponseBody = exports.WorkerApiRunLatestSnapshotResponseBody = exports.WorkerApiRunAttemptCompleteResponseBody = exports.WorkerApiRunAttemptCompleteRequestBody = exports.WorkerApiRunAttemptStartResponseBody = exports.WorkerApiRunAttemptStartRequestBody = exports.WorkerApiRunHeartbeatResponseBody = exports.WorkerApiRunHeartbeatRequestBody = exports.WorkerApiDequeueResponseBody = exports.WorkerApiDequeueRequestBody = exports.WorkerApiConnectResponseBody = exports.WorkerApiConnectRequestBody = exports.WorkerApiContinueRunExecutionRequestBody = exports.WorkerApiSuspendRunResponseBody = exports.WorkerApiSuspendRunRequestBody = exports.WorkerApiHeartbeatResponseBody = exports.WorkerApiHeartbeatRequestBody = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_js_1 = require("../../schemas/common.js");
|
|
6
6
|
const runEngine_js_1 = require("../../schemas/runEngine.js");
|
|
@@ -70,22 +70,31 @@ exports.WorkerApiRunLatestSnapshotResponseBody = zod_1.z.object({
|
|
|
70
70
|
execution: runEngine_js_1.RunExecutionData,
|
|
71
71
|
});
|
|
72
72
|
exports.WorkerApiDequeueFromVersionResponseBody = runEngine_js_1.DequeuedMessage.array();
|
|
73
|
-
|
|
73
|
+
exports.DebugLogPropertiesValue = zod_1.z.union([
|
|
74
74
|
zod_1.z.string(),
|
|
75
75
|
zod_1.z.number(),
|
|
76
76
|
zod_1.z.boolean(),
|
|
77
|
-
zod_1.z.array(zod_1.z.string().
|
|
78
|
-
zod_1.z.array(zod_1.z.number().
|
|
79
|
-
zod_1.z.array(zod_1.z.boolean().
|
|
77
|
+
zod_1.z.array(zod_1.z.string().nullish()),
|
|
78
|
+
zod_1.z.array(zod_1.z.number().nullish()),
|
|
79
|
+
zod_1.z.array(zod_1.z.boolean().nullish()),
|
|
80
80
|
]);
|
|
81
|
-
|
|
81
|
+
exports.DebugLogProperties = zod_1.z.record(zod_1.z.string(), exports.DebugLogPropertiesValue.optional());
|
|
82
|
+
exports.DebugLogPropertiesInput = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
83
|
+
exports.WorkerApiDebugLogBodyInput = zod_1.z.object({
|
|
84
|
+
time: zod_1.z.coerce.date(),
|
|
85
|
+
message: zod_1.z.string(),
|
|
86
|
+
properties: exports.DebugLogPropertiesInput.optional(),
|
|
87
|
+
});
|
|
82
88
|
exports.WorkerApiDebugLogBody = zod_1.z.object({
|
|
83
89
|
time: zod_1.z.coerce.date(),
|
|
84
90
|
message: zod_1.z.string(),
|
|
85
|
-
properties:
|
|
91
|
+
properties: exports.DebugLogProperties.optional(),
|
|
86
92
|
});
|
|
87
93
|
exports.WorkerApiSuspendCompletionResponseBody = zod_1.z.object({
|
|
88
94
|
success: zod_1.z.boolean(),
|
|
89
95
|
error: zod_1.z.string().optional(),
|
|
90
96
|
});
|
|
97
|
+
exports.WorkerApiRunSnapshotsSinceResponseBody = zod_1.z.object({
|
|
98
|
+
snapshots: zod_1.z.array(runEngine_js_1.RunExecutionData),
|
|
99
|
+
});
|
|
91
100
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/supervisor/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uDAAiE;AACjE,6DAQoC;AAEvB,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;KACtB,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;KACtB,CAAC;IACF,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,EAAE,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACpB,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;IAC5E,OAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QACxB,UAAU,EAAE,8BAAe;KAC5B,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,OAA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apshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
|
|
190
|
+
snapshots: {
|
|
191
|
+
version: "1";
|
|
192
|
+
run: {
|
|
193
|
+
status: import("../../index.js").TaskRunStatus;
|
|
194
|
+
id: string;
|
|
195
|
+
friendlyId: string;
|
|
196
|
+
attemptNumber?: number | null | undefined;
|
|
197
|
+
};
|
|
198
|
+
snapshot: {
|
|
199
|
+
id: string;
|
|
200
|
+
description: string;
|
|
201
|
+
friendlyId: string;
|
|
202
|
+
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
203
|
+
};
|
|
204
|
+
completedWaitpoints: {
|
|
205
|
+
type: import("../../index.js").WaitpointType;
|
|
206
|
+
id: string;
|
|
207
|
+
completedAt: Date;
|
|
208
|
+
friendlyId: string;
|
|
209
|
+
outputIsError: boolean;
|
|
210
|
+
idempotencyKey?: string | undefined;
|
|
211
|
+
output?: string | undefined;
|
|
212
|
+
outputType?: string | undefined;
|
|
213
|
+
index?: number | undefined;
|
|
214
|
+
completedByTaskRun?: {
|
|
215
|
+
id: string;
|
|
216
|
+
friendlyId: string;
|
|
217
|
+
batch?: {
|
|
218
|
+
id: string;
|
|
219
|
+
friendlyId: string;
|
|
220
|
+
} | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
completedAfter?: Date | undefined;
|
|
223
|
+
completedByBatch?: {
|
|
224
|
+
id: string;
|
|
225
|
+
friendlyId: string;
|
|
226
|
+
} | undefined;
|
|
227
|
+
}[];
|
|
228
|
+
batch?: {
|
|
229
|
+
id: string;
|
|
230
|
+
friendlyId: string;
|
|
231
|
+
} | undefined;
|
|
232
|
+
checkpoint?: {
|
|
233
|
+
type: import("../../index.js").CheckpointTypeEnum;
|
|
234
|
+
id: string;
|
|
235
|
+
friendlyId: string;
|
|
236
|
+
location: string;
|
|
237
|
+
imageRef?: string | null | undefined;
|
|
238
|
+
reason?: string | null | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
}[];
|
|
241
|
+
}>>;
|
|
189
242
|
sendDebugLog(runId: string, body: WorkloadDebugLogRequestBody): Promise<void>;
|
|
190
243
|
/** @deprecated Not currently used */
|
|
191
244
|
dequeue(): Promise<import("../../zodfetch.js").ApiResult<{
|
|
@@ -86,6 +86,14 @@ class WorkloadHttpClient {
|
|
|
86
86
|
},
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
+
async getSnapshotsSince(runId, snapshotId) {
|
|
90
|
+
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: {
|
|
93
|
+
...this.defaultHeaders(),
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
}
|
|
89
97
|
async sendDebugLog(runId, body) {
|
|
90
98
|
try {
|
|
91
99
|
const res = await (0, zodfetch_js_1.wrapZodFetch)(zod_1.z.unknown(), `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/logs/debug`, {
|