@trigger.dev/core 0.0.0-prerelease-20250329172200 → 0.0.0-prerelease-20250430143421
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/utils.d.ts +1 -1
- package/dist/commonjs/utils.js +3 -0
- package/dist/commonjs/utils.js.map +1 -1
- package/dist/commonjs/v3/apiClient/errors.js +13 -8
- package/dist/commonjs/v3/apiClient/errors.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +42 -39
- package/dist/commonjs/v3/apiClient/index.js +4 -3
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/stream.js +51 -30
- package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
- package/dist/commonjs/v3/apps/http.d.ts +1 -1
- package/dist/commonjs/v3/apps/http.js +4 -4
- package/dist/commonjs/v3/apps/http.js.map +1 -1
- package/dist/commonjs/v3/build/flags.js +2 -2
- package/dist/commonjs/v3/build/flags.js.map +1 -1
- package/dist/commonjs/v3/build/flags.test.js +4 -0
- package/dist/commonjs/v3/build/flags.test.js.map +1 -1
- package/dist/commonjs/v3/errors.d.ts +3 -0
- package/dist/commonjs/v3/errors.js +22 -1
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/idempotencyKeys.d.ts +11 -0
- package/dist/commonjs/v3/idempotencyKeys.js +6 -1
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
- package/dist/commonjs/v3/index.d.ts +2 -2
- package/dist/commonjs/v3/index.js +5 -2
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +0 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.js +1 -6
- package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/commonjs/v3/links.d.ts +1 -0
- package/dist/commonjs/v3/links.js +1 -0
- package/dist/commonjs/v3/links.js.map +1 -1
- package/dist/commonjs/v3/logger/taskLogger.js +1 -1
- package/dist/commonjs/v3/logger/taskLogger.js.map +1 -1
- package/dist/commonjs/v3/machines/index.d.ts +7 -7
- package/dist/commonjs/v3/machines/index.js +3 -3
- package/dist/commonjs/v3/machines/index.js.map +1 -1
- package/dist/commonjs/v3/otel/tracingSDK.js +1 -1
- package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +20 -0
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +22 -21
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +2 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js +3 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +201 -198
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +3 -2
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.d.ts +4 -2
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +18 -14
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +20 -16
- package/dist/commonjs/v3/runEngineWorker/workload/http.js +23 -11
- package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +162 -162
- package/dist/commonjs/v3/runMetadata/manager.js +40 -32
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +5 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js +97 -17
- package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/noopManager.js +24 -16
- package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/commonjs/v3/runTimelineMetrics/runTimelineMetricsManager.d.ts +1 -1
- package/dist/commonjs/v3/runTimelineMetrics/runTimelineMetricsManager.js +5 -2
- package/dist/commonjs/v3/runTimelineMetrics/runTimelineMetricsManager.js.map +1 -1
- package/dist/commonjs/v3/runtime/managedRuntimeManager.d.ts +1 -0
- package/dist/commonjs/v3/runtime/managedRuntimeManager.js +15 -10
- package/dist/commonjs/v3/runtime/managedRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +247 -221
- package/dist/commonjs/v3/schemas/api.js +16 -1
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +64 -64
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +27 -27
- package/dist/commonjs/v3/schemas/common.d.ts +176 -175
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +2306 -2300
- package/dist/commonjs/v3/schemas/messages.js +2 -0
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/openTelemetry.d.ts +18 -18
- package/dist/commonjs/v3/schemas/resources.d.ts +34 -34
- package/dist/commonjs/v3/schemas/runEngine.d.ts +88 -88
- package/dist/commonjs/v3/schemas/runEngine.js +2 -2
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +145 -94
- package/dist/commonjs/v3/schemas/schemas.js +9 -1
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/style.d.ts +6 -4
- package/dist/commonjs/v3/schemas/style.js +4 -2
- package/dist/commonjs/v3/schemas/style.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhooks.d.ts +104 -104
- package/dist/commonjs/v3/semanticInternalAttributes.d.ts +2 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js +2 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/httpServer.d.ts +1 -0
- package/dist/commonjs/v3/serverOnly/httpServer.js +5 -1
- package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/k8s.js +1 -0
- package/dist/commonjs/v3/serverOnly/k8s.js.map +1 -1
- package/dist/commonjs/v3/taskContext/index.d.ts +1 -0
- package/dist/commonjs/v3/taskContext/index.js +4 -0
- package/dist/commonjs/v3/taskContext/index.js.map +1 -1
- package/dist/commonjs/v3/taskContext/otelProcessors.d.ts +3 -1
- package/dist/commonjs/v3/taskContext/otelProcessors.js +34 -1
- package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
- package/dist/commonjs/v3/taskContext/types.d.ts +1 -0
- package/dist/commonjs/v3/tracer.js +14 -16
- package/dist/commonjs/v3/tracer.js.map +1 -1
- package/dist/commonjs/v3/types/schemas.d.ts +3 -0
- package/dist/commonjs/v3/types/schemas.js +16 -0
- package/dist/commonjs/v3/types/schemas.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +1 -0
- package/dist/commonjs/v3/usage/api.d.ts +1 -0
- package/dist/commonjs/v3/usage/api.js +3 -0
- package/dist/commonjs/v3/usage/api.js.map +1 -1
- package/dist/commonjs/v3/usage/devUsageManager.d.ts +1 -0
- package/dist/commonjs/v3/usage/devUsageManager.js +1 -0
- package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/noopUsageManager.d.ts +1 -0
- package/dist/commonjs/v3/usage/noopUsageManager.js +3 -0
- package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/types.d.ts +1 -0
- package/dist/commonjs/v3/utils/{heartbeat.d.ts → interval.d.ts} +11 -9
- package/dist/commonjs/v3/utils/interval.js +95 -0
- package/dist/commonjs/v3/utils/interval.js.map +1 -0
- package/dist/commonjs/v3/workers/index.d.ts +1 -0
- package/dist/commonjs/v3/workers/index.js +3 -1
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/v3/workers/populateEnv.d.ts +23 -0
- package/dist/commonjs/v3/workers/populateEnv.js +33 -0
- package/dist/commonjs/v3/workers/populateEnv.js.map +1 -0
- package/dist/commonjs/v3/workers/taskExecutor.d.ts +3 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +36 -11
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
- package/dist/esm/utils.d.ts +1 -1
- package/dist/esm/utils.js +3 -0
- package/dist/esm/utils.js.map +1 -1
- package/dist/esm/v3/apiClient/errors.js +13 -8
- package/dist/esm/v3/apiClient/errors.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +42 -39
- package/dist/esm/v3/apiClient/index.js +5 -4
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/stream.js +51 -30
- package/dist/esm/v3/apiClient/stream.js.map +1 -1
- package/dist/esm/v3/apps/http.d.ts +1 -1
- package/dist/esm/v3/apps/http.js +4 -4
- package/dist/esm/v3/apps/http.js.map +1 -1
- package/dist/esm/v3/build/flags.js +2 -2
- package/dist/esm/v3/build/flags.js.map +1 -1
- package/dist/esm/v3/build/flags.test.js +4 -0
- package/dist/esm/v3/build/flags.test.js.map +1 -1
- package/dist/esm/v3/errors.d.ts +3 -0
- package/dist/esm/v3/errors.js +20 -0
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/idempotencyKeys.d.ts +11 -0
- package/dist/esm/v3/idempotencyKeys.js +5 -1
- package/dist/esm/v3/idempotencyKeys.js.map +1 -1
- package/dist/esm/v3/index.d.ts +2 -2
- package/dist/esm/v3/index.js +2 -2
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/isomorphic/friendlyId.d.ts +0 -1
- package/dist/esm/v3/isomorphic/friendlyId.js +0 -5
- package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/esm/v3/links.d.ts +1 -0
- package/dist/esm/v3/links.js +1 -0
- package/dist/esm/v3/links.js.map +1 -1
- package/dist/esm/v3/logger/taskLogger.js +1 -1
- package/dist/esm/v3/logger/taskLogger.js.map +1 -1
- package/dist/esm/v3/machines/index.d.ts +7 -7
- package/dist/esm/v3/machines/index.js +3 -3
- package/dist/esm/v3/machines/index.js.map +1 -1
- package/dist/esm/v3/otel/tracingSDK.js +1 -1
- package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +20 -0
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +22 -21
- package/dist/esm/v3/runEngineWorker/supervisor/http.js +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +2 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js +3 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +201 -198
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +3 -2
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/session.d.ts +4 -2
- package/dist/esm/v3/runEngineWorker/supervisor/session.js +18 -14
- package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +20 -16
- package/dist/esm/v3/runEngineWorker/workload/http.js +23 -11
- package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +162 -162
- package/dist/esm/v3/runMetadata/manager.js +40 -32
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/runMetadata/metadataStream.d.ts +5 -0
- package/dist/esm/v3/runMetadata/metadataStream.js +97 -17
- package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -1
- package/dist/esm/v3/runMetadata/noopManager.js +24 -16
- package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/esm/v3/runTimelineMetrics/runTimelineMetricsManager.d.ts +1 -1
- package/dist/esm/v3/runTimelineMetrics/runTimelineMetricsManager.js +5 -2
- package/dist/esm/v3/runTimelineMetrics/runTimelineMetricsManager.js.map +1 -1
- package/dist/esm/v3/runtime/managedRuntimeManager.d.ts +1 -0
- package/dist/esm/v3/runtime/managedRuntimeManager.js +15 -10
- package/dist/esm/v3/runtime/managedRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +247 -221
- package/dist/esm/v3/schemas/api.js +15 -0
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +64 -64
- package/dist/esm/v3/schemas/checkpoints.d.ts +27 -27
- package/dist/esm/v3/schemas/common.d.ts +176 -175
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +2306 -2300
- package/dist/esm/v3/schemas/messages.js +2 -0
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/openTelemetry.d.ts +18 -18
- package/dist/esm/v3/schemas/resources.d.ts +34 -34
- package/dist/esm/v3/schemas/runEngine.d.ts +88 -88
- package/dist/esm/v3/schemas/runEngine.js +2 -2
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +145 -94
- package/dist/esm/v3/schemas/schemas.js +8 -0
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/schemas/style.d.ts +6 -4
- package/dist/esm/v3/schemas/style.js +3 -1
- package/dist/esm/v3/schemas/style.js.map +1 -1
- package/dist/esm/v3/schemas/webhooks.d.ts +104 -104
- package/dist/esm/v3/semanticInternalAttributes.d.ts +2 -0
- package/dist/esm/v3/semanticInternalAttributes.js +2 -0
- package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/esm/v3/serverOnly/httpServer.d.ts +1 -0
- package/dist/esm/v3/serverOnly/httpServer.js +5 -1
- package/dist/esm/v3/serverOnly/httpServer.js.map +1 -1
- package/dist/esm/v3/serverOnly/k8s.js +1 -0
- package/dist/esm/v3/serverOnly/k8s.js.map +1 -1
- package/dist/esm/v3/taskContext/index.d.ts +1 -0
- package/dist/esm/v3/taskContext/index.js +4 -0
- package/dist/esm/v3/taskContext/index.js.map +1 -1
- package/dist/esm/v3/taskContext/otelProcessors.d.ts +3 -1
- package/dist/esm/v3/taskContext/otelProcessors.js +34 -1
- package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
- package/dist/esm/v3/taskContext/types.d.ts +1 -0
- package/dist/esm/v3/tracer.js +14 -16
- package/dist/esm/v3/tracer.js.map +1 -1
- package/dist/esm/v3/types/schemas.d.ts +3 -0
- package/dist/esm/v3/types/schemas.js +13 -0
- package/dist/esm/v3/types/schemas.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +1 -0
- package/dist/esm/v3/usage/api.d.ts +1 -0
- package/dist/esm/v3/usage/api.js +3 -0
- package/dist/esm/v3/usage/api.js.map +1 -1
- package/dist/esm/v3/usage/devUsageManager.d.ts +1 -0
- package/dist/esm/v3/usage/devUsageManager.js +1 -0
- package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/noopUsageManager.d.ts +1 -0
- package/dist/esm/v3/usage/noopUsageManager.js +3 -0
- package/dist/esm/v3/usage/noopUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/types.d.ts +1 -0
- package/dist/esm/v3/utils/{heartbeat.d.ts → interval.d.ts} +11 -9
- package/dist/esm/v3/utils/interval.js +91 -0
- package/dist/esm/v3/utils/interval.js.map +1 -0
- package/dist/esm/v3/workers/index.d.ts +1 -0
- package/dist/esm/v3/workers/index.js +1 -0
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/v3/workers/populateEnv.d.ts +23 -0
- package/dist/esm/v3/workers/populateEnv.js +30 -0
- package/dist/esm/v3/workers/populateEnv.js.map +1 -0
- package/dist/esm/v3/workers/taskExecutor.d.ts +3 -1
- package/dist/esm/v3/workers/taskExecutor.js +38 -13
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
- package/package.json +2 -2
- package/dist/commonjs/v3/utils/heartbeat.js +0 -79
- package/dist/commonjs/v3/utils/heartbeat.js.map +0 -1
- package/dist/esm/v3/utils/heartbeat.js +0 -75
- package/dist/esm/v3/utils/heartbeat.js.map +0 -1
|
@@ -56,17 +56,17 @@ export declare const WorkerApiSuspendRunRequestBody: z.ZodDiscriminatedUnion<"su
|
|
|
56
56
|
checkpoint: z.ZodObject<{
|
|
57
57
|
type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
|
|
58
58
|
location: z.ZodString;
|
|
59
|
-
imageRef: z.ZodString
|
|
59
|
+
imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
63
63
|
location: string;
|
|
64
|
-
imageRef
|
|
64
|
+
imageRef?: string | null | undefined;
|
|
65
65
|
reason?: string | null | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
68
68
|
location: string;
|
|
69
|
-
imageRef
|
|
69
|
+
imageRef?: string | null | undefined;
|
|
70
70
|
reason?: string | null | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -74,7 +74,7 @@ export declare const WorkerApiSuspendRunRequestBody: z.ZodDiscriminatedUnion<"su
|
|
|
74
74
|
checkpoint: {
|
|
75
75
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
76
76
|
location: string;
|
|
77
|
-
imageRef
|
|
77
|
+
imageRef?: string | null | undefined;
|
|
78
78
|
reason?: string | null | undefined;
|
|
79
79
|
};
|
|
80
80
|
}, {
|
|
@@ -82,7 +82,7 @@ export declare const WorkerApiSuspendRunRequestBody: z.ZodDiscriminatedUnion<"su
|
|
|
82
82
|
checkpoint: {
|
|
83
83
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
84
84
|
location: string;
|
|
85
|
-
imageRef
|
|
85
|
+
imageRef?: string | null | undefined;
|
|
86
86
|
reason?: string | null | undefined;
|
|
87
87
|
};
|
|
88
88
|
}>, z.ZodObject<{
|
|
@@ -179,23 +179,23 @@ export declare const WorkerApiConnectResponseBody: z.ZodObject<{
|
|
|
179
179
|
type: z.ZodString;
|
|
180
180
|
name: z.ZodString;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
type: string;
|
|
183
182
|
name: string;
|
|
184
|
-
}, {
|
|
185
183
|
type: string;
|
|
184
|
+
}, {
|
|
186
185
|
name: string;
|
|
186
|
+
type: string;
|
|
187
187
|
}>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
189
|
ok: true;
|
|
190
190
|
workerGroup: {
|
|
191
|
-
type: string;
|
|
192
191
|
name: string;
|
|
192
|
+
type: string;
|
|
193
193
|
};
|
|
194
194
|
}, {
|
|
195
195
|
ok: true;
|
|
196
196
|
workerGroup: {
|
|
197
|
-
type: string;
|
|
198
197
|
name: string;
|
|
198
|
+
type: string;
|
|
199
199
|
};
|
|
200
200
|
}>;
|
|
201
201
|
export type WorkerApiConnectResponseBody = z.infer<typeof WorkerApiConnectResponseBody>;
|
|
@@ -210,16 +210,19 @@ export declare const WorkerApiDequeueRequestBody: z.ZodObject<{
|
|
|
210
210
|
cpu: number;
|
|
211
211
|
memory: number;
|
|
212
212
|
}>>;
|
|
213
|
+
maxRunCount: z.ZodOptional<z.ZodNumber>;
|
|
213
214
|
}, "strip", z.ZodTypeAny, {
|
|
214
215
|
maxResources?: {
|
|
215
216
|
cpu: number;
|
|
216
217
|
memory: number;
|
|
217
218
|
} | undefined;
|
|
219
|
+
maxRunCount?: number | undefined;
|
|
218
220
|
}, {
|
|
219
221
|
maxResources?: {
|
|
220
222
|
cpu: number;
|
|
221
223
|
memory: number;
|
|
222
224
|
} | undefined;
|
|
225
|
+
maxRunCount?: number | undefined;
|
|
223
226
|
}>;
|
|
224
227
|
export type WorkerApiDequeueRequestBody = z.infer<typeof WorkerApiDequeueRequestBody>;
|
|
225
228
|
export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
@@ -246,19 +249,19 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
246
249
|
id: z.ZodString;
|
|
247
250
|
type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
|
|
248
251
|
location: z.ZodString;
|
|
249
|
-
imageRef: z.ZodString
|
|
252
|
+
imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
253
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
254
|
}, "strip", z.ZodTypeAny, {
|
|
252
255
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
253
256
|
id: string;
|
|
254
257
|
location: string;
|
|
255
|
-
imageRef
|
|
258
|
+
imageRef?: string | null | undefined;
|
|
256
259
|
reason?: string | null | undefined;
|
|
257
260
|
}, {
|
|
258
261
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
259
262
|
id: string;
|
|
260
263
|
location: string;
|
|
261
|
-
imageRef
|
|
264
|
+
imageRef?: string | null | undefined;
|
|
262
265
|
reason?: string | null | undefined;
|
|
263
266
|
}>>;
|
|
264
267
|
completedWaitpoints: z.ZodArray<z.ZodObject<{
|
|
@@ -313,13 +316,10 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
313
316
|
}, "strip", z.ZodTypeAny, {
|
|
314
317
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
315
318
|
id: string;
|
|
319
|
+
friendlyId: string;
|
|
316
320
|
completedAt: Date;
|
|
317
321
|
outputIsError: boolean;
|
|
318
|
-
friendlyId: string;
|
|
319
322
|
idempotencyKey?: string | undefined;
|
|
320
|
-
output?: string | undefined;
|
|
321
|
-
outputType?: string | undefined;
|
|
322
|
-
completedAfter?: Date | undefined;
|
|
323
323
|
index?: number | undefined;
|
|
324
324
|
completedByTaskRun?: {
|
|
325
325
|
id: string;
|
|
@@ -329,20 +329,20 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
329
329
|
friendlyId: string;
|
|
330
330
|
} | undefined;
|
|
331
331
|
} | undefined;
|
|
332
|
+
completedAfter?: Date | undefined;
|
|
332
333
|
completedByBatch?: {
|
|
333
334
|
id: string;
|
|
334
335
|
friendlyId: string;
|
|
335
336
|
} | undefined;
|
|
337
|
+
output?: string | undefined;
|
|
338
|
+
outputType?: string | undefined;
|
|
336
339
|
}, {
|
|
337
340
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
338
341
|
id: string;
|
|
342
|
+
friendlyId: string;
|
|
339
343
|
completedAt: Date;
|
|
340
344
|
outputIsError: boolean;
|
|
341
|
-
friendlyId: string;
|
|
342
345
|
idempotencyKey?: string | undefined;
|
|
343
|
-
output?: string | undefined;
|
|
344
|
-
outputType?: string | undefined;
|
|
345
|
-
completedAfter?: Date | undefined;
|
|
346
346
|
index?: number | undefined;
|
|
347
347
|
completedByTaskRun?: {
|
|
348
348
|
id: string;
|
|
@@ -352,10 +352,13 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
352
352
|
friendlyId: string;
|
|
353
353
|
} | undefined;
|
|
354
354
|
} | undefined;
|
|
355
|
+
completedAfter?: Date | undefined;
|
|
355
356
|
completedByBatch?: {
|
|
356
357
|
id: string;
|
|
357
358
|
friendlyId: string;
|
|
358
359
|
} | undefined;
|
|
360
|
+
output?: string | undefined;
|
|
361
|
+
outputType?: string | undefined;
|
|
359
362
|
}>, "many">;
|
|
360
363
|
backgroundWorker: z.ZodObject<{
|
|
361
364
|
id: z.ZodString;
|
|
@@ -390,14 +393,14 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
390
393
|
memory: z.ZodNumber;
|
|
391
394
|
centsPerMs: z.ZodNumber;
|
|
392
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
393
397
|
cpu: number;
|
|
394
398
|
memory: number;
|
|
395
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
396
399
|
centsPerMs: number;
|
|
397
400
|
}, {
|
|
401
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
398
402
|
cpu: number;
|
|
399
403
|
memory: number;
|
|
400
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
401
404
|
centsPerMs: number;
|
|
402
405
|
}>;
|
|
403
406
|
attemptNumber: z.ZodNumber;
|
|
@@ -408,9 +411,9 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
408
411
|
isTest: boolean;
|
|
409
412
|
traceContext: Record<string, unknown>;
|
|
410
413
|
machine: {
|
|
414
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
411
415
|
cpu: number;
|
|
412
416
|
memory: number;
|
|
413
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
414
417
|
centsPerMs: number;
|
|
415
418
|
};
|
|
416
419
|
friendlyId: string;
|
|
@@ -421,9 +424,9 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
421
424
|
isTest: boolean;
|
|
422
425
|
traceContext: Record<string, unknown>;
|
|
423
426
|
machine: {
|
|
427
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
424
428
|
cpu: number;
|
|
425
429
|
memory: number;
|
|
426
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
427
430
|
centsPerMs: number;
|
|
428
431
|
};
|
|
429
432
|
friendlyId: string;
|
|
@@ -461,9 +464,9 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
461
464
|
isTest: boolean;
|
|
462
465
|
traceContext: Record<string, unknown>;
|
|
463
466
|
machine: {
|
|
467
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
464
468
|
cpu: number;
|
|
465
469
|
memory: number;
|
|
466
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
467
470
|
centsPerMs: number;
|
|
468
471
|
};
|
|
469
472
|
friendlyId: string;
|
|
@@ -489,13 +492,10 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
489
492
|
completedWaitpoints: {
|
|
490
493
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
491
494
|
id: string;
|
|
495
|
+
friendlyId: string;
|
|
492
496
|
completedAt: Date;
|
|
493
497
|
outputIsError: boolean;
|
|
494
|
-
friendlyId: string;
|
|
495
498
|
idempotencyKey?: string | undefined;
|
|
496
|
-
output?: string | undefined;
|
|
497
|
-
outputType?: string | undefined;
|
|
498
|
-
completedAfter?: Date | undefined;
|
|
499
499
|
index?: number | undefined;
|
|
500
500
|
completedByTaskRun?: {
|
|
501
501
|
id: string;
|
|
@@ -505,10 +505,13 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
505
505
|
friendlyId: string;
|
|
506
506
|
} | undefined;
|
|
507
507
|
} | undefined;
|
|
508
|
+
completedAfter?: Date | undefined;
|
|
508
509
|
completedByBatch?: {
|
|
509
510
|
id: string;
|
|
510
511
|
friendlyId: string;
|
|
511
512
|
} | undefined;
|
|
513
|
+
output?: string | undefined;
|
|
514
|
+
outputType?: string | undefined;
|
|
512
515
|
}[];
|
|
513
516
|
dequeuedAt: Date;
|
|
514
517
|
backgroundWorker: {
|
|
@@ -524,7 +527,7 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
524
527
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
525
528
|
id: string;
|
|
526
529
|
location: string;
|
|
527
|
-
imageRef
|
|
530
|
+
imageRef?: string | null | undefined;
|
|
528
531
|
reason?: string | null | undefined;
|
|
529
532
|
} | undefined;
|
|
530
533
|
image?: string | undefined;
|
|
@@ -535,9 +538,9 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
535
538
|
isTest: boolean;
|
|
536
539
|
traceContext: Record<string, unknown>;
|
|
537
540
|
machine: {
|
|
541
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
538
542
|
cpu: number;
|
|
539
543
|
memory: number;
|
|
540
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
541
544
|
centsPerMs: number;
|
|
542
545
|
};
|
|
543
546
|
friendlyId: string;
|
|
@@ -563,13 +566,10 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
563
566
|
completedWaitpoints: {
|
|
564
567
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
565
568
|
id: string;
|
|
569
|
+
friendlyId: string;
|
|
566
570
|
completedAt: Date;
|
|
567
571
|
outputIsError: boolean;
|
|
568
|
-
friendlyId: string;
|
|
569
572
|
idempotencyKey?: string | undefined;
|
|
570
|
-
output?: string | undefined;
|
|
571
|
-
outputType?: string | undefined;
|
|
572
|
-
completedAfter?: Date | undefined;
|
|
573
573
|
index?: number | undefined;
|
|
574
574
|
completedByTaskRun?: {
|
|
575
575
|
id: string;
|
|
@@ -579,10 +579,13 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
579
579
|
friendlyId: string;
|
|
580
580
|
} | undefined;
|
|
581
581
|
} | undefined;
|
|
582
|
+
completedAfter?: Date | undefined;
|
|
582
583
|
completedByBatch?: {
|
|
583
584
|
id: string;
|
|
584
585
|
friendlyId: string;
|
|
585
586
|
} | undefined;
|
|
587
|
+
output?: string | undefined;
|
|
588
|
+
outputType?: string | undefined;
|
|
586
589
|
}[];
|
|
587
590
|
dequeuedAt: Date;
|
|
588
591
|
backgroundWorker: {
|
|
@@ -598,21 +601,21 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
598
601
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
599
602
|
id: string;
|
|
600
603
|
location: string;
|
|
601
|
-
imageRef
|
|
604
|
+
imageRef?: string | null | undefined;
|
|
602
605
|
reason?: string | null | undefined;
|
|
603
606
|
} | undefined;
|
|
604
607
|
image?: string | undefined;
|
|
605
608
|
}>, "many">;
|
|
606
609
|
export type WorkerApiDequeueResponseBody = z.infer<typeof WorkerApiDequeueResponseBody>;
|
|
607
610
|
export declare const WorkerApiRunHeartbeatRequestBody: z.ZodObject<{
|
|
608
|
-
cpu: z.ZodNumber
|
|
609
|
-
memory: z.ZodNumber
|
|
611
|
+
cpu: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
memory: z.ZodOptional<z.ZodNumber>;
|
|
610
613
|
}, "strip", z.ZodTypeAny, {
|
|
611
|
-
cpu
|
|
612
|
-
memory
|
|
614
|
+
cpu?: number | undefined;
|
|
615
|
+
memory?: number | undefined;
|
|
613
616
|
}, {
|
|
614
|
-
cpu
|
|
615
|
-
memory
|
|
617
|
+
cpu?: number | undefined;
|
|
618
|
+
memory?: number | undefined;
|
|
616
619
|
}>;
|
|
617
620
|
export type WorkerApiRunHeartbeatRequestBody = z.infer<typeof WorkerApiRunHeartbeatRequestBody>;
|
|
618
621
|
export declare const WorkerApiRunHeartbeatResponseBody: z.ZodObject<{
|
|
@@ -747,19 +750,19 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
747
750
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
748
751
|
}, "strip", z.ZodTypeAny, {
|
|
749
752
|
id: string;
|
|
753
|
+
startedAt: Date;
|
|
750
754
|
payload: string;
|
|
751
755
|
payloadType: string;
|
|
752
756
|
tags: string[];
|
|
753
757
|
isTest: boolean;
|
|
754
758
|
createdAt: Date;
|
|
755
|
-
startedAt: Date;
|
|
756
759
|
durationMs: number;
|
|
757
760
|
costInCents: number;
|
|
758
761
|
baseCostInCents: number;
|
|
759
|
-
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
760
762
|
idempotencyKey?: string | undefined;
|
|
761
763
|
maxAttempts?: number | undefined;
|
|
762
764
|
version?: string | undefined;
|
|
765
|
+
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
763
766
|
maxDuration?: number | undefined;
|
|
764
767
|
context?: any;
|
|
765
768
|
priority?: number | undefined;
|
|
@@ -769,12 +772,12 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
769
772
|
payloadType: string;
|
|
770
773
|
tags: string[];
|
|
771
774
|
createdAt: Date;
|
|
772
|
-
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
773
|
-
isTest?: boolean | undefined;
|
|
774
775
|
startedAt?: Date | undefined;
|
|
776
|
+
isTest?: boolean | undefined;
|
|
775
777
|
idempotencyKey?: string | undefined;
|
|
776
778
|
maxAttempts?: number | undefined;
|
|
777
779
|
version?: string | undefined;
|
|
780
|
+
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
778
781
|
maxDuration?: number | undefined;
|
|
779
782
|
context?: any;
|
|
780
783
|
durationMs?: number | undefined;
|
|
@@ -853,14 +856,14 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
853
856
|
memory: z.ZodNumber;
|
|
854
857
|
centsPerMs: z.ZodNumber;
|
|
855
858
|
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
856
860
|
cpu: number;
|
|
857
861
|
memory: number;
|
|
858
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
859
862
|
centsPerMs: number;
|
|
860
863
|
}, {
|
|
864
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
861
865
|
cpu: number;
|
|
862
866
|
memory: number;
|
|
863
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
864
867
|
centsPerMs: number;
|
|
865
868
|
}>;
|
|
866
869
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -879,19 +882,19 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
879
882
|
};
|
|
880
883
|
run: {
|
|
881
884
|
id: string;
|
|
885
|
+
startedAt: Date;
|
|
882
886
|
payload: string;
|
|
883
887
|
payloadType: string;
|
|
884
888
|
tags: string[];
|
|
885
889
|
isTest: boolean;
|
|
886
890
|
createdAt: Date;
|
|
887
|
-
startedAt: Date;
|
|
888
891
|
durationMs: number;
|
|
889
892
|
costInCents: number;
|
|
890
893
|
baseCostInCents: number;
|
|
891
|
-
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
892
894
|
idempotencyKey?: string | undefined;
|
|
893
895
|
maxAttempts?: number | undefined;
|
|
894
896
|
version?: string | undefined;
|
|
897
|
+
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
895
898
|
maxDuration?: number | undefined;
|
|
896
899
|
context?: any;
|
|
897
900
|
priority?: number | undefined;
|
|
@@ -919,9 +922,9 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
919
922
|
ref: string;
|
|
920
923
|
};
|
|
921
924
|
machine: {
|
|
925
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
922
926
|
cpu: number;
|
|
923
927
|
memory: number;
|
|
924
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
925
928
|
centsPerMs: number;
|
|
926
929
|
};
|
|
927
930
|
batch?: {
|
|
@@ -947,12 +950,12 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
947
950
|
payloadType: string;
|
|
948
951
|
tags: string[];
|
|
949
952
|
createdAt: Date;
|
|
950
|
-
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
951
|
-
isTest?: boolean | undefined;
|
|
952
953
|
startedAt?: Date | undefined;
|
|
954
|
+
isTest?: boolean | undefined;
|
|
953
955
|
idempotencyKey?: string | undefined;
|
|
954
956
|
maxAttempts?: number | undefined;
|
|
955
957
|
version?: string | undefined;
|
|
958
|
+
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
956
959
|
maxDuration?: number | undefined;
|
|
957
960
|
context?: any;
|
|
958
961
|
durationMs?: number | undefined;
|
|
@@ -983,9 +986,9 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
983
986
|
ref: string;
|
|
984
987
|
};
|
|
985
988
|
machine: {
|
|
989
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
986
990
|
cpu: number;
|
|
987
991
|
memory: number;
|
|
988
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
989
992
|
centsPerMs: number;
|
|
990
993
|
};
|
|
991
994
|
batch?: {
|
|
@@ -1009,19 +1012,19 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
1009
1012
|
};
|
|
1010
1013
|
run: {
|
|
1011
1014
|
id: string;
|
|
1015
|
+
startedAt: Date;
|
|
1012
1016
|
payload: string;
|
|
1013
1017
|
payloadType: string;
|
|
1014
1018
|
tags: string[];
|
|
1015
1019
|
isTest: boolean;
|
|
1016
1020
|
createdAt: Date;
|
|
1017
|
-
startedAt: Date;
|
|
1018
1021
|
durationMs: number;
|
|
1019
1022
|
costInCents: number;
|
|
1020
1023
|
baseCostInCents: number;
|
|
1021
|
-
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
1022
1024
|
idempotencyKey?: string | undefined;
|
|
1023
1025
|
maxAttempts?: number | undefined;
|
|
1024
1026
|
version?: string | undefined;
|
|
1027
|
+
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
1025
1028
|
maxDuration?: number | undefined;
|
|
1026
1029
|
context?: any;
|
|
1027
1030
|
priority?: number | undefined;
|
|
@@ -1049,9 +1052,9 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
1049
1052
|
ref: string;
|
|
1050
1053
|
};
|
|
1051
1054
|
machine: {
|
|
1055
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1052
1056
|
cpu: number;
|
|
1053
1057
|
memory: number;
|
|
1054
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1055
1058
|
centsPerMs: number;
|
|
1056
1059
|
};
|
|
1057
1060
|
batch?: {
|
|
@@ -1079,12 +1082,12 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
1079
1082
|
payloadType: string;
|
|
1080
1083
|
tags: string[];
|
|
1081
1084
|
createdAt: Date;
|
|
1082
|
-
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
1083
|
-
isTest?: boolean | undefined;
|
|
1084
1085
|
startedAt?: Date | undefined;
|
|
1086
|
+
isTest?: boolean | undefined;
|
|
1085
1087
|
idempotencyKey?: string | undefined;
|
|
1086
1088
|
maxAttempts?: number | undefined;
|
|
1087
1089
|
version?: string | undefined;
|
|
1090
|
+
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
1088
1091
|
maxDuration?: number | undefined;
|
|
1089
1092
|
context?: any;
|
|
1090
1093
|
durationMs?: number | undefined;
|
|
@@ -1115,9 +1118,9 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
|
|
|
1115
1118
|
ref: string;
|
|
1116
1119
|
};
|
|
1117
1120
|
machine: {
|
|
1121
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1118
1122
|
cpu: number;
|
|
1119
1123
|
memory: number;
|
|
1120
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1121
1124
|
centsPerMs: number;
|
|
1122
1125
|
};
|
|
1123
1126
|
batch?: {
|
|
@@ -1494,8 +1497,8 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
1494
1497
|
}>>;
|
|
1495
1498
|
}, "strip", z.ZodTypeAny, {
|
|
1496
1499
|
id: string;
|
|
1497
|
-
ok: true;
|
|
1498
1500
|
outputType: string;
|
|
1501
|
+
ok: true;
|
|
1499
1502
|
metadata?: {
|
|
1500
1503
|
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
1501
1504
|
operations?: ({
|
|
@@ -1568,15 +1571,15 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
1568
1571
|
key: string;
|
|
1569
1572
|
})[] | undefined;
|
|
1570
1573
|
} | undefined;
|
|
1574
|
+
output?: string | undefined;
|
|
1571
1575
|
usage?: {
|
|
1572
1576
|
durationMs: number;
|
|
1573
1577
|
} | undefined;
|
|
1574
1578
|
taskIdentifier?: string | undefined;
|
|
1575
|
-
output?: string | undefined;
|
|
1576
1579
|
}, {
|
|
1577
1580
|
id: string;
|
|
1578
|
-
ok: true;
|
|
1579
1581
|
outputType: string;
|
|
1582
|
+
ok: true;
|
|
1580
1583
|
metadata?: {
|
|
1581
1584
|
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
1582
1585
|
operations?: ({
|
|
@@ -1649,11 +1652,11 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
1649
1652
|
key: string;
|
|
1650
1653
|
})[] | undefined;
|
|
1651
1654
|
} | undefined;
|
|
1655
|
+
output?: string | undefined;
|
|
1652
1656
|
usage?: {
|
|
1653
1657
|
durationMs: number;
|
|
1654
1658
|
} | undefined;
|
|
1655
1659
|
taskIdentifier?: string | undefined;
|
|
1656
|
-
output?: string | undefined;
|
|
1657
1660
|
}>, z.ZodObject<{
|
|
1658
1661
|
ok: z.ZodLiteral<false>;
|
|
1659
1662
|
id: z.ZodString;
|
|
@@ -1663,14 +1666,14 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
1663
1666
|
message: z.ZodString;
|
|
1664
1667
|
stackTrace: z.ZodString;
|
|
1665
1668
|
}, "strip", z.ZodTypeAny, {
|
|
1666
|
-
type: "BUILT_IN_ERROR";
|
|
1667
|
-
message: string;
|
|
1668
1669
|
name: string;
|
|
1670
|
+
message: string;
|
|
1671
|
+
type: "BUILT_IN_ERROR";
|
|
1669
1672
|
stackTrace: string;
|
|
1670
1673
|
}, {
|
|
1671
|
-
type: "BUILT_IN_ERROR";
|
|
1672
|
-
message: string;
|
|
1673
1674
|
name: string;
|
|
1675
|
+
message: string;
|
|
1676
|
+
type: "BUILT_IN_ERROR";
|
|
1674
1677
|
stackTrace: string;
|
|
1675
1678
|
}>, z.ZodObject<{
|
|
1676
1679
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -1696,13 +1699,13 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
1696
1699
|
message: z.ZodOptional<z.ZodString>;
|
|
1697
1700
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
1698
1701
|
}, "strip", z.ZodTypeAny, {
|
|
1699
|
-
type: "INTERNAL_ERROR";
|
|
1700
1702
|
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
1703
|
+
type: "INTERNAL_ERROR";
|
|
1701
1704
|
message?: string | undefined;
|
|
1702
1705
|
stackTrace?: string | undefined;
|
|
1703
1706
|
}, {
|
|
1704
|
-
type: "INTERNAL_ERROR";
|
|
1705
1707
|
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
1708
|
+
type: "INTERNAL_ERROR";
|
|
1706
1709
|
message?: string | undefined;
|
|
1707
1710
|
stackTrace?: string | undefined;
|
|
1708
1711
|
}>]>;
|
|
@@ -2077,9 +2080,14 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2077
2080
|
}, "strip", z.ZodTypeAny, {
|
|
2078
2081
|
id: string;
|
|
2079
2082
|
error: {
|
|
2080
|
-
|
|
2081
|
-
|
|
2083
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2084
|
+
type: "INTERNAL_ERROR";
|
|
2085
|
+
message?: string | undefined;
|
|
2086
|
+
stackTrace?: string | undefined;
|
|
2087
|
+
} | {
|
|
2082
2088
|
name: string;
|
|
2089
|
+
message: string;
|
|
2090
|
+
type: "BUILT_IN_ERROR";
|
|
2083
2091
|
stackTrace: string;
|
|
2084
2092
|
} | {
|
|
2085
2093
|
type: "CUSTOM_ERROR";
|
|
@@ -2087,11 +2095,6 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2087
2095
|
} | {
|
|
2088
2096
|
type: "STRING_ERROR";
|
|
2089
2097
|
raw: string;
|
|
2090
|
-
} | {
|
|
2091
|
-
type: "INTERNAL_ERROR";
|
|
2092
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2093
|
-
message?: string | undefined;
|
|
2094
|
-
stackTrace?: string | undefined;
|
|
2095
2098
|
};
|
|
2096
2099
|
ok: false;
|
|
2097
2100
|
metadata?: {
|
|
@@ -2171,17 +2174,22 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2171
2174
|
delay: number;
|
|
2172
2175
|
error?: unknown;
|
|
2173
2176
|
} | undefined;
|
|
2174
|
-
skippedRetrying?: boolean | undefined;
|
|
2175
2177
|
usage?: {
|
|
2176
2178
|
durationMs: number;
|
|
2177
2179
|
} | undefined;
|
|
2178
2180
|
taskIdentifier?: string | undefined;
|
|
2181
|
+
skippedRetrying?: boolean | undefined;
|
|
2179
2182
|
}, {
|
|
2180
2183
|
id: string;
|
|
2181
2184
|
error: {
|
|
2182
|
-
|
|
2183
|
-
|
|
2185
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2186
|
+
type: "INTERNAL_ERROR";
|
|
2187
|
+
message?: string | undefined;
|
|
2188
|
+
stackTrace?: string | undefined;
|
|
2189
|
+
} | {
|
|
2184
2190
|
name: string;
|
|
2191
|
+
message: string;
|
|
2192
|
+
type: "BUILT_IN_ERROR";
|
|
2185
2193
|
stackTrace: string;
|
|
2186
2194
|
} | {
|
|
2187
2195
|
type: "CUSTOM_ERROR";
|
|
@@ -2189,11 +2197,6 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2189
2197
|
} | {
|
|
2190
2198
|
type: "STRING_ERROR";
|
|
2191
2199
|
raw: string;
|
|
2192
|
-
} | {
|
|
2193
|
-
type: "INTERNAL_ERROR";
|
|
2194
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2195
|
-
message?: string | undefined;
|
|
2196
|
-
stackTrace?: string | undefined;
|
|
2197
2200
|
};
|
|
2198
2201
|
ok: false;
|
|
2199
2202
|
metadata?: {
|
|
@@ -2273,33 +2276,17 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2273
2276
|
delay: number;
|
|
2274
2277
|
error?: unknown;
|
|
2275
2278
|
} | undefined;
|
|
2276
|
-
skippedRetrying?: boolean | undefined;
|
|
2277
2279
|
usage?: {
|
|
2278
2280
|
durationMs: number;
|
|
2279
2281
|
} | undefined;
|
|
2280
2282
|
taskIdentifier?: string | undefined;
|
|
2283
|
+
skippedRetrying?: boolean | undefined;
|
|
2281
2284
|
}>]>;
|
|
2282
2285
|
}, "strip", z.ZodTypeAny, {
|
|
2283
2286
|
completion: {
|
|
2284
2287
|
id: string;
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
message: string;
|
|
2288
|
-
name: string;
|
|
2289
|
-
stackTrace: string;
|
|
2290
|
-
} | {
|
|
2291
|
-
type: "CUSTOM_ERROR";
|
|
2292
|
-
raw: string;
|
|
2293
|
-
} | {
|
|
2294
|
-
type: "STRING_ERROR";
|
|
2295
|
-
raw: string;
|
|
2296
|
-
} | {
|
|
2297
|
-
type: "INTERNAL_ERROR";
|
|
2298
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2299
|
-
message?: string | undefined;
|
|
2300
|
-
stackTrace?: string | undefined;
|
|
2301
|
-
};
|
|
2302
|
-
ok: false;
|
|
2288
|
+
outputType: string;
|
|
2289
|
+
ok: true;
|
|
2303
2290
|
metadata?: {
|
|
2304
2291
|
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
2305
2292
|
operations?: ({
|
|
@@ -2372,20 +2359,31 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2372
2359
|
key: string;
|
|
2373
2360
|
})[] | undefined;
|
|
2374
2361
|
} | undefined;
|
|
2375
|
-
|
|
2376
|
-
timestamp: number;
|
|
2377
|
-
delay: number;
|
|
2378
|
-
error?: unknown;
|
|
2379
|
-
} | undefined;
|
|
2380
|
-
skippedRetrying?: boolean | undefined;
|
|
2362
|
+
output?: string | undefined;
|
|
2381
2363
|
usage?: {
|
|
2382
2364
|
durationMs: number;
|
|
2383
2365
|
} | undefined;
|
|
2384
2366
|
taskIdentifier?: string | undefined;
|
|
2385
2367
|
} | {
|
|
2386
2368
|
id: string;
|
|
2387
|
-
|
|
2388
|
-
|
|
2369
|
+
error: {
|
|
2370
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2371
|
+
type: "INTERNAL_ERROR";
|
|
2372
|
+
message?: string | undefined;
|
|
2373
|
+
stackTrace?: string | undefined;
|
|
2374
|
+
} | {
|
|
2375
|
+
name: string;
|
|
2376
|
+
message: string;
|
|
2377
|
+
type: "BUILT_IN_ERROR";
|
|
2378
|
+
stackTrace: string;
|
|
2379
|
+
} | {
|
|
2380
|
+
type: "CUSTOM_ERROR";
|
|
2381
|
+
raw: string;
|
|
2382
|
+
} | {
|
|
2383
|
+
type: "STRING_ERROR";
|
|
2384
|
+
raw: string;
|
|
2385
|
+
};
|
|
2386
|
+
ok: false;
|
|
2389
2387
|
metadata?: {
|
|
2390
2388
|
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
2391
2389
|
operations?: ({
|
|
@@ -2458,33 +2456,22 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2458
2456
|
key: string;
|
|
2459
2457
|
})[] | undefined;
|
|
2460
2458
|
} | undefined;
|
|
2459
|
+
retry?: {
|
|
2460
|
+
timestamp: number;
|
|
2461
|
+
delay: number;
|
|
2462
|
+
error?: unknown;
|
|
2463
|
+
} | undefined;
|
|
2461
2464
|
usage?: {
|
|
2462
2465
|
durationMs: number;
|
|
2463
2466
|
} | undefined;
|
|
2464
2467
|
taskIdentifier?: string | undefined;
|
|
2465
|
-
|
|
2468
|
+
skippedRetrying?: boolean | undefined;
|
|
2466
2469
|
};
|
|
2467
2470
|
}, {
|
|
2468
2471
|
completion: {
|
|
2469
2472
|
id: string;
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
message: string;
|
|
2473
|
-
name: string;
|
|
2474
|
-
stackTrace: string;
|
|
2475
|
-
} | {
|
|
2476
|
-
type: "CUSTOM_ERROR";
|
|
2477
|
-
raw: string;
|
|
2478
|
-
} | {
|
|
2479
|
-
type: "STRING_ERROR";
|
|
2480
|
-
raw: string;
|
|
2481
|
-
} | {
|
|
2482
|
-
type: "INTERNAL_ERROR";
|
|
2483
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2484
|
-
message?: string | undefined;
|
|
2485
|
-
stackTrace?: string | undefined;
|
|
2486
|
-
};
|
|
2487
|
-
ok: false;
|
|
2473
|
+
outputType: string;
|
|
2474
|
+
ok: true;
|
|
2488
2475
|
metadata?: {
|
|
2489
2476
|
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
2490
2477
|
operations?: ({
|
|
@@ -2557,20 +2544,31 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2557
2544
|
key: string;
|
|
2558
2545
|
})[] | undefined;
|
|
2559
2546
|
} | undefined;
|
|
2560
|
-
|
|
2561
|
-
timestamp: number;
|
|
2562
|
-
delay: number;
|
|
2563
|
-
error?: unknown;
|
|
2564
|
-
} | undefined;
|
|
2565
|
-
skippedRetrying?: boolean | undefined;
|
|
2547
|
+
output?: string | undefined;
|
|
2566
2548
|
usage?: {
|
|
2567
2549
|
durationMs: number;
|
|
2568
2550
|
} | undefined;
|
|
2569
2551
|
taskIdentifier?: string | undefined;
|
|
2570
2552
|
} | {
|
|
2571
2553
|
id: string;
|
|
2572
|
-
|
|
2573
|
-
|
|
2554
|
+
error: {
|
|
2555
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
2556
|
+
type: "INTERNAL_ERROR";
|
|
2557
|
+
message?: string | undefined;
|
|
2558
|
+
stackTrace?: string | undefined;
|
|
2559
|
+
} | {
|
|
2560
|
+
name: string;
|
|
2561
|
+
message: string;
|
|
2562
|
+
type: "BUILT_IN_ERROR";
|
|
2563
|
+
stackTrace: string;
|
|
2564
|
+
} | {
|
|
2565
|
+
type: "CUSTOM_ERROR";
|
|
2566
|
+
raw: string;
|
|
2567
|
+
} | {
|
|
2568
|
+
type: "STRING_ERROR";
|
|
2569
|
+
raw: string;
|
|
2570
|
+
};
|
|
2571
|
+
ok: false;
|
|
2574
2572
|
metadata?: {
|
|
2575
2573
|
metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
|
|
2576
2574
|
operations?: ({
|
|
@@ -2643,11 +2641,16 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
|
|
|
2643
2641
|
key: string;
|
|
2644
2642
|
})[] | undefined;
|
|
2645
2643
|
} | undefined;
|
|
2644
|
+
retry?: {
|
|
2645
|
+
timestamp: number;
|
|
2646
|
+
delay: number;
|
|
2647
|
+
error?: unknown;
|
|
2648
|
+
} | undefined;
|
|
2646
2649
|
usage?: {
|
|
2647
2650
|
durationMs: number;
|
|
2648
2651
|
} | undefined;
|
|
2649
2652
|
taskIdentifier?: string | undefined;
|
|
2650
|
-
|
|
2653
|
+
skippedRetrying?: boolean | undefined;
|
|
2651
2654
|
};
|
|
2652
2655
|
}>;
|
|
2653
2656
|
export type WorkerApiRunAttemptCompleteRequestBody = z.infer<typeof WorkerApiRunAttemptCompleteRequestBody>;
|
|
@@ -2802,7 +2805,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2802
2805
|
checkpoint: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
2803
2806
|
type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
|
|
2804
2807
|
location: z.ZodString;
|
|
2805
|
-
imageRef: z.ZodString
|
|
2808
|
+
imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2806
2809
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2807
2810
|
}, {
|
|
2808
2811
|
id: z.ZodString;
|
|
@@ -2812,14 +2815,14 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2812
2815
|
id: string;
|
|
2813
2816
|
friendlyId: string;
|
|
2814
2817
|
location: string;
|
|
2815
|
-
imageRef
|
|
2818
|
+
imageRef?: string | null | undefined;
|
|
2816
2819
|
reason?: string | null | undefined;
|
|
2817
2820
|
}, {
|
|
2818
2821
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
2819
2822
|
id: string;
|
|
2820
2823
|
friendlyId: string;
|
|
2821
2824
|
location: string;
|
|
2822
|
-
imageRef
|
|
2825
|
+
imageRef?: string | null | undefined;
|
|
2823
2826
|
reason?: string | null | undefined;
|
|
2824
2827
|
}>>;
|
|
2825
2828
|
completedWaitpoints: z.ZodArray<z.ZodObject<{
|
|
@@ -2874,13 +2877,10 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2874
2877
|
}, "strip", z.ZodTypeAny, {
|
|
2875
2878
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
2876
2879
|
id: string;
|
|
2880
|
+
friendlyId: string;
|
|
2877
2881
|
completedAt: Date;
|
|
2878
2882
|
outputIsError: boolean;
|
|
2879
|
-
friendlyId: string;
|
|
2880
2883
|
idempotencyKey?: string | undefined;
|
|
2881
|
-
output?: string | undefined;
|
|
2882
|
-
outputType?: string | undefined;
|
|
2883
|
-
completedAfter?: Date | undefined;
|
|
2884
2884
|
index?: number | undefined;
|
|
2885
2885
|
completedByTaskRun?: {
|
|
2886
2886
|
id: string;
|
|
@@ -2890,20 +2890,20 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2890
2890
|
friendlyId: string;
|
|
2891
2891
|
} | undefined;
|
|
2892
2892
|
} | undefined;
|
|
2893
|
+
completedAfter?: Date | undefined;
|
|
2893
2894
|
completedByBatch?: {
|
|
2894
2895
|
id: string;
|
|
2895
2896
|
friendlyId: string;
|
|
2896
2897
|
} | undefined;
|
|
2898
|
+
output?: string | undefined;
|
|
2899
|
+
outputType?: string | undefined;
|
|
2897
2900
|
}, {
|
|
2898
2901
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
2899
2902
|
id: string;
|
|
2903
|
+
friendlyId: string;
|
|
2900
2904
|
completedAt: Date;
|
|
2901
2905
|
outputIsError: boolean;
|
|
2902
|
-
friendlyId: string;
|
|
2903
2906
|
idempotencyKey?: string | undefined;
|
|
2904
|
-
output?: string | undefined;
|
|
2905
|
-
outputType?: string | undefined;
|
|
2906
|
-
completedAfter?: Date | undefined;
|
|
2907
2907
|
index?: number | undefined;
|
|
2908
2908
|
completedByTaskRun?: {
|
|
2909
2909
|
id: string;
|
|
@@ -2913,10 +2913,13 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2913
2913
|
friendlyId: string;
|
|
2914
2914
|
} | undefined;
|
|
2915
2915
|
} | undefined;
|
|
2916
|
+
completedAfter?: Date | undefined;
|
|
2916
2917
|
completedByBatch?: {
|
|
2917
2918
|
id: string;
|
|
2918
2919
|
friendlyId: string;
|
|
2919
2920
|
} | undefined;
|
|
2921
|
+
output?: string | undefined;
|
|
2922
|
+
outputType?: string | undefined;
|
|
2920
2923
|
}>, "many">;
|
|
2921
2924
|
}, "strip", z.ZodTypeAny, {
|
|
2922
2925
|
version: "1";
|
|
@@ -2935,13 +2938,10 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2935
2938
|
completedWaitpoints: {
|
|
2936
2939
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
2937
2940
|
id: string;
|
|
2941
|
+
friendlyId: string;
|
|
2938
2942
|
completedAt: Date;
|
|
2939
2943
|
outputIsError: boolean;
|
|
2940
|
-
friendlyId: string;
|
|
2941
2944
|
idempotencyKey?: string | undefined;
|
|
2942
|
-
output?: string | undefined;
|
|
2943
|
-
outputType?: string | undefined;
|
|
2944
|
-
completedAfter?: Date | undefined;
|
|
2945
2945
|
index?: number | undefined;
|
|
2946
2946
|
completedByTaskRun?: {
|
|
2947
2947
|
id: string;
|
|
@@ -2951,10 +2951,13 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2951
2951
|
friendlyId: string;
|
|
2952
2952
|
} | undefined;
|
|
2953
2953
|
} | undefined;
|
|
2954
|
+
completedAfter?: Date | undefined;
|
|
2954
2955
|
completedByBatch?: {
|
|
2955
2956
|
id: string;
|
|
2956
2957
|
friendlyId: string;
|
|
2957
2958
|
} | undefined;
|
|
2959
|
+
output?: string | undefined;
|
|
2960
|
+
outputType?: string | undefined;
|
|
2958
2961
|
}[];
|
|
2959
2962
|
batch?: {
|
|
2960
2963
|
id: string;
|
|
@@ -2965,7 +2968,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2965
2968
|
id: string;
|
|
2966
2969
|
friendlyId: string;
|
|
2967
2970
|
location: string;
|
|
2968
|
-
imageRef
|
|
2971
|
+
imageRef?: string | null | undefined;
|
|
2969
2972
|
reason?: string | null | undefined;
|
|
2970
2973
|
} | undefined;
|
|
2971
2974
|
}, {
|
|
@@ -2985,13 +2988,10 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2985
2988
|
completedWaitpoints: {
|
|
2986
2989
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
2987
2990
|
id: string;
|
|
2991
|
+
friendlyId: string;
|
|
2988
2992
|
completedAt: Date;
|
|
2989
2993
|
outputIsError: boolean;
|
|
2990
|
-
friendlyId: string;
|
|
2991
2994
|
idempotencyKey?: string | undefined;
|
|
2992
|
-
output?: string | undefined;
|
|
2993
|
-
outputType?: string | undefined;
|
|
2994
|
-
completedAfter?: Date | undefined;
|
|
2995
2995
|
index?: number | undefined;
|
|
2996
2996
|
completedByTaskRun?: {
|
|
2997
2997
|
id: string;
|
|
@@ -3001,10 +3001,13 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3001
3001
|
friendlyId: string;
|
|
3002
3002
|
} | undefined;
|
|
3003
3003
|
} | undefined;
|
|
3004
|
+
completedAfter?: Date | undefined;
|
|
3004
3005
|
completedByBatch?: {
|
|
3005
3006
|
id: string;
|
|
3006
3007
|
friendlyId: string;
|
|
3007
3008
|
} | undefined;
|
|
3009
|
+
output?: string | undefined;
|
|
3010
|
+
outputType?: string | undefined;
|
|
3008
3011
|
}[];
|
|
3009
3012
|
batch?: {
|
|
3010
3013
|
id: string;
|
|
@@ -3015,7 +3018,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3015
3018
|
id: string;
|
|
3016
3019
|
friendlyId: string;
|
|
3017
3020
|
location: string;
|
|
3018
|
-
imageRef
|
|
3021
|
+
imageRef?: string | null | undefined;
|
|
3019
3022
|
reason?: string | null | undefined;
|
|
3020
3023
|
} | undefined;
|
|
3021
3024
|
}>;
|
|
@@ -3037,13 +3040,10 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3037
3040
|
completedWaitpoints: {
|
|
3038
3041
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3039
3042
|
id: string;
|
|
3043
|
+
friendlyId: string;
|
|
3040
3044
|
completedAt: Date;
|
|
3041
3045
|
outputIsError: boolean;
|
|
3042
|
-
friendlyId: string;
|
|
3043
3046
|
idempotencyKey?: string | undefined;
|
|
3044
|
-
output?: string | undefined;
|
|
3045
|
-
outputType?: string | undefined;
|
|
3046
|
-
completedAfter?: Date | undefined;
|
|
3047
3047
|
index?: number | undefined;
|
|
3048
3048
|
completedByTaskRun?: {
|
|
3049
3049
|
id: string;
|
|
@@ -3053,10 +3053,13 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3053
3053
|
friendlyId: string;
|
|
3054
3054
|
} | undefined;
|
|
3055
3055
|
} | undefined;
|
|
3056
|
+
completedAfter?: Date | undefined;
|
|
3056
3057
|
completedByBatch?: {
|
|
3057
3058
|
id: string;
|
|
3058
3059
|
friendlyId: string;
|
|
3059
3060
|
} | undefined;
|
|
3061
|
+
output?: string | undefined;
|
|
3062
|
+
outputType?: string | undefined;
|
|
3060
3063
|
}[];
|
|
3061
3064
|
batch?: {
|
|
3062
3065
|
id: string;
|
|
@@ -3067,7 +3070,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3067
3070
|
id: string;
|
|
3068
3071
|
friendlyId: string;
|
|
3069
3072
|
location: string;
|
|
3070
|
-
imageRef
|
|
3073
|
+
imageRef?: string | null | undefined;
|
|
3071
3074
|
reason?: string | null | undefined;
|
|
3072
3075
|
} | undefined;
|
|
3073
3076
|
};
|
|
@@ -3089,13 +3092,10 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3089
3092
|
completedWaitpoints: {
|
|
3090
3093
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3091
3094
|
id: string;
|
|
3095
|
+
friendlyId: string;
|
|
3092
3096
|
completedAt: Date;
|
|
3093
3097
|
outputIsError: boolean;
|
|
3094
|
-
friendlyId: string;
|
|
3095
3098
|
idempotencyKey?: string | undefined;
|
|
3096
|
-
output?: string | undefined;
|
|
3097
|
-
outputType?: string | undefined;
|
|
3098
|
-
completedAfter?: Date | undefined;
|
|
3099
3099
|
index?: number | undefined;
|
|
3100
3100
|
completedByTaskRun?: {
|
|
3101
3101
|
id: string;
|
|
@@ -3105,10 +3105,13 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3105
3105
|
friendlyId: string;
|
|
3106
3106
|
} | undefined;
|
|
3107
3107
|
} | undefined;
|
|
3108
|
+
completedAfter?: Date | undefined;
|
|
3108
3109
|
completedByBatch?: {
|
|
3109
3110
|
id: string;
|
|
3110
3111
|
friendlyId: string;
|
|
3111
3112
|
} | undefined;
|
|
3113
|
+
output?: string | undefined;
|
|
3114
|
+
outputType?: string | undefined;
|
|
3112
3115
|
}[];
|
|
3113
3116
|
batch?: {
|
|
3114
3117
|
id: string;
|
|
@@ -3119,7 +3122,7 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
3119
3122
|
id: string;
|
|
3120
3123
|
friendlyId: string;
|
|
3121
3124
|
location: string;
|
|
3122
|
-
imageRef
|
|
3125
|
+
imageRef?: string | null | undefined;
|
|
3123
3126
|
reason?: string | null | undefined;
|
|
3124
3127
|
} | undefined;
|
|
3125
3128
|
};
|
|
@@ -3149,19 +3152,19 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3149
3152
|
id: z.ZodString;
|
|
3150
3153
|
type: z.ZodEnum<[import("../../schemas/runEngine.js").CheckpointTypeEnum]>;
|
|
3151
3154
|
location: z.ZodString;
|
|
3152
|
-
imageRef: z.ZodString
|
|
3155
|
+
imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3153
3156
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3154
3157
|
}, "strip", z.ZodTypeAny, {
|
|
3155
3158
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3156
3159
|
id: string;
|
|
3157
3160
|
location: string;
|
|
3158
|
-
imageRef
|
|
3161
|
+
imageRef?: string | null | undefined;
|
|
3159
3162
|
reason?: string | null | undefined;
|
|
3160
3163
|
}, {
|
|
3161
3164
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3162
3165
|
id: string;
|
|
3163
3166
|
location: string;
|
|
3164
|
-
imageRef
|
|
3167
|
+
imageRef?: string | null | undefined;
|
|
3165
3168
|
reason?: string | null | undefined;
|
|
3166
3169
|
}>>;
|
|
3167
3170
|
completedWaitpoints: z.ZodArray<z.ZodObject<{
|
|
@@ -3216,13 +3219,10 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3216
3219
|
}, "strip", z.ZodTypeAny, {
|
|
3217
3220
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3218
3221
|
id: string;
|
|
3222
|
+
friendlyId: string;
|
|
3219
3223
|
completedAt: Date;
|
|
3220
3224
|
outputIsError: boolean;
|
|
3221
|
-
friendlyId: string;
|
|
3222
3225
|
idempotencyKey?: string | undefined;
|
|
3223
|
-
output?: string | undefined;
|
|
3224
|
-
outputType?: string | undefined;
|
|
3225
|
-
completedAfter?: Date | undefined;
|
|
3226
3226
|
index?: number | undefined;
|
|
3227
3227
|
completedByTaskRun?: {
|
|
3228
3228
|
id: string;
|
|
@@ -3232,20 +3232,20 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3232
3232
|
friendlyId: string;
|
|
3233
3233
|
} | undefined;
|
|
3234
3234
|
} | undefined;
|
|
3235
|
+
completedAfter?: Date | undefined;
|
|
3235
3236
|
completedByBatch?: {
|
|
3236
3237
|
id: string;
|
|
3237
3238
|
friendlyId: string;
|
|
3238
3239
|
} | undefined;
|
|
3240
|
+
output?: string | undefined;
|
|
3241
|
+
outputType?: string | undefined;
|
|
3239
3242
|
}, {
|
|
3240
3243
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3241
3244
|
id: string;
|
|
3245
|
+
friendlyId: string;
|
|
3242
3246
|
completedAt: Date;
|
|
3243
3247
|
outputIsError: boolean;
|
|
3244
|
-
friendlyId: string;
|
|
3245
3248
|
idempotencyKey?: string | undefined;
|
|
3246
|
-
output?: string | undefined;
|
|
3247
|
-
outputType?: string | undefined;
|
|
3248
|
-
completedAfter?: Date | undefined;
|
|
3249
3249
|
index?: number | undefined;
|
|
3250
3250
|
completedByTaskRun?: {
|
|
3251
3251
|
id: string;
|
|
@@ -3255,10 +3255,13 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3255
3255
|
friendlyId: string;
|
|
3256
3256
|
} | undefined;
|
|
3257
3257
|
} | undefined;
|
|
3258
|
+
completedAfter?: Date | undefined;
|
|
3258
3259
|
completedByBatch?: {
|
|
3259
3260
|
id: string;
|
|
3260
3261
|
friendlyId: string;
|
|
3261
3262
|
} | undefined;
|
|
3263
|
+
output?: string | undefined;
|
|
3264
|
+
outputType?: string | undefined;
|
|
3262
3265
|
}>, "many">;
|
|
3263
3266
|
backgroundWorker: z.ZodObject<{
|
|
3264
3267
|
id: z.ZodString;
|
|
@@ -3293,14 +3296,14 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3293
3296
|
memory: z.ZodNumber;
|
|
3294
3297
|
centsPerMs: z.ZodNumber;
|
|
3295
3298
|
}, "strip", z.ZodTypeAny, {
|
|
3299
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3296
3300
|
cpu: number;
|
|
3297
3301
|
memory: number;
|
|
3298
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3299
3302
|
centsPerMs: number;
|
|
3300
3303
|
}, {
|
|
3304
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3301
3305
|
cpu: number;
|
|
3302
3306
|
memory: number;
|
|
3303
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3304
3307
|
centsPerMs: number;
|
|
3305
3308
|
}>;
|
|
3306
3309
|
attemptNumber: z.ZodNumber;
|
|
@@ -3311,9 +3314,9 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3311
3314
|
isTest: boolean;
|
|
3312
3315
|
traceContext: Record<string, unknown>;
|
|
3313
3316
|
machine: {
|
|
3317
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3314
3318
|
cpu: number;
|
|
3315
3319
|
memory: number;
|
|
3316
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3317
3320
|
centsPerMs: number;
|
|
3318
3321
|
};
|
|
3319
3322
|
friendlyId: string;
|
|
@@ -3324,9 +3327,9 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3324
3327
|
isTest: boolean;
|
|
3325
3328
|
traceContext: Record<string, unknown>;
|
|
3326
3329
|
machine: {
|
|
3330
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3327
3331
|
cpu: number;
|
|
3328
3332
|
memory: number;
|
|
3329
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3330
3333
|
centsPerMs: number;
|
|
3331
3334
|
};
|
|
3332
3335
|
friendlyId: string;
|
|
@@ -3364,9 +3367,9 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3364
3367
|
isTest: boolean;
|
|
3365
3368
|
traceContext: Record<string, unknown>;
|
|
3366
3369
|
machine: {
|
|
3370
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3367
3371
|
cpu: number;
|
|
3368
3372
|
memory: number;
|
|
3369
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3370
3373
|
centsPerMs: number;
|
|
3371
3374
|
};
|
|
3372
3375
|
friendlyId: string;
|
|
@@ -3392,13 +3395,10 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3392
3395
|
completedWaitpoints: {
|
|
3393
3396
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3394
3397
|
id: string;
|
|
3398
|
+
friendlyId: string;
|
|
3395
3399
|
completedAt: Date;
|
|
3396
3400
|
outputIsError: boolean;
|
|
3397
|
-
friendlyId: string;
|
|
3398
3401
|
idempotencyKey?: string | undefined;
|
|
3399
|
-
output?: string | undefined;
|
|
3400
|
-
outputType?: string | undefined;
|
|
3401
|
-
completedAfter?: Date | undefined;
|
|
3402
3402
|
index?: number | undefined;
|
|
3403
3403
|
completedByTaskRun?: {
|
|
3404
3404
|
id: string;
|
|
@@ -3408,10 +3408,13 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3408
3408
|
friendlyId: string;
|
|
3409
3409
|
} | undefined;
|
|
3410
3410
|
} | undefined;
|
|
3411
|
+
completedAfter?: Date | undefined;
|
|
3411
3412
|
completedByBatch?: {
|
|
3412
3413
|
id: string;
|
|
3413
3414
|
friendlyId: string;
|
|
3414
3415
|
} | undefined;
|
|
3416
|
+
output?: string | undefined;
|
|
3417
|
+
outputType?: string | undefined;
|
|
3415
3418
|
}[];
|
|
3416
3419
|
dequeuedAt: Date;
|
|
3417
3420
|
backgroundWorker: {
|
|
@@ -3427,7 +3430,7 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3427
3430
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3428
3431
|
id: string;
|
|
3429
3432
|
location: string;
|
|
3430
|
-
imageRef
|
|
3433
|
+
imageRef?: string | null | undefined;
|
|
3431
3434
|
reason?: string | null | undefined;
|
|
3432
3435
|
} | undefined;
|
|
3433
3436
|
image?: string | undefined;
|
|
@@ -3438,9 +3441,9 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3438
3441
|
isTest: boolean;
|
|
3439
3442
|
traceContext: Record<string, unknown>;
|
|
3440
3443
|
machine: {
|
|
3444
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3441
3445
|
cpu: number;
|
|
3442
3446
|
memory: number;
|
|
3443
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
3444
3447
|
centsPerMs: number;
|
|
3445
3448
|
};
|
|
3446
3449
|
friendlyId: string;
|
|
@@ -3466,13 +3469,10 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3466
3469
|
completedWaitpoints: {
|
|
3467
3470
|
type: import("../../schemas/runEngine.js").WaitpointType;
|
|
3468
3471
|
id: string;
|
|
3472
|
+
friendlyId: string;
|
|
3469
3473
|
completedAt: Date;
|
|
3470
3474
|
outputIsError: boolean;
|
|
3471
|
-
friendlyId: string;
|
|
3472
3475
|
idempotencyKey?: string | undefined;
|
|
3473
|
-
output?: string | undefined;
|
|
3474
|
-
outputType?: string | undefined;
|
|
3475
|
-
completedAfter?: Date | undefined;
|
|
3476
3476
|
index?: number | undefined;
|
|
3477
3477
|
completedByTaskRun?: {
|
|
3478
3478
|
id: string;
|
|
@@ -3482,10 +3482,13 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3482
3482
|
friendlyId: string;
|
|
3483
3483
|
} | undefined;
|
|
3484
3484
|
} | undefined;
|
|
3485
|
+
completedAfter?: Date | undefined;
|
|
3485
3486
|
completedByBatch?: {
|
|
3486
3487
|
id: string;
|
|
3487
3488
|
friendlyId: string;
|
|
3488
3489
|
} | undefined;
|
|
3490
|
+
output?: string | undefined;
|
|
3491
|
+
outputType?: string | undefined;
|
|
3489
3492
|
}[];
|
|
3490
3493
|
dequeuedAt: Date;
|
|
3491
3494
|
backgroundWorker: {
|
|
@@ -3501,7 +3504,7 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
|
|
|
3501
3504
|
type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
|
|
3502
3505
|
id: string;
|
|
3503
3506
|
location: string;
|
|
3504
|
-
imageRef
|
|
3507
|
+
imageRef?: string | null | undefined;
|
|
3505
3508
|
reason?: string | null | undefined;
|
|
3506
3509
|
} | undefined;
|
|
3507
3510
|
image?: string | undefined;
|