import { z } from "zod/v4"; export declare const RunEngineVersion: z.ZodUnion, z.ZodLiteral<"V2">]>; export declare const WhoAmIResponseSchema: z.ZodObject<{ userId: z.ZodString; email: z.ZodString; dashboardUrl: z.ZodString; project: z.ZodOptional>; }, z.core.$strip>; export type WhoAmIResponse = z.infer; export declare const GetProjectResponseBody: z.ZodObject<{ id: z.ZodString; externalRef: z.ZodString; name: z.ZodString; slug: z.ZodString; createdAt: z.ZodCoercedDate; defaultRegion: z.ZodOptional>; defaultRuntime: z.ZodOptional>>; organization: z.ZodObject<{ id: z.ZodString; title: z.ZodString; slug: z.ZodString; createdAt: z.ZodCoercedDate; }, z.core.$strip>; }, z.core.$strip>; export type GetProjectResponseBody = z.infer; export declare const GetProjectsResponseBody: z.ZodArray; defaultRegion: z.ZodOptional>; defaultRuntime: z.ZodOptional>>; organization: z.ZodObject<{ id: z.ZodString; title: z.ZodString; slug: z.ZodString; createdAt: z.ZodCoercedDate; }, z.core.$strip>; }, z.core.$strip>>; export type GetProjectsResponseBody = z.infer; /** The Node.js major version currently targeted by the runtime update report. */ export declare const NODE_RUNTIME_UPDATE_MAJOR = 21; /** * Returns the observed Node.js major version for a deployment. * * `runtime: "node"` is an alias whose underlying Node.js version has changed over time, so the * recorded runtimeVersion is deliberately the source of truth here. */ export declare function nodeMajor(runtime: string | null | undefined, runtimeVersion: string | null | undefined): number | undefined; export declare function needsNodeRuntimeUpdate(runtime: string | null | undefined, runtimeVersion: string | null | undefined): boolean; export declare const GetProjectRuntimesResponseBody: z.ZodArray; project: z.ZodObject<{ name: z.ZodString; slug: z.ZodString; externalRef: z.ZodString; }, z.core.$strip>; environment: z.ZodObject<{ slug: z.ZodString; }, z.core.$strip>; deployment: z.ZodNullable; runtimeVersion: z.ZodNullable; nodeMajor: z.ZodNullable; deployedAt: z.ZodNullable>; shortCode: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>>; export type GetProjectRuntimesResponseBody = z.infer; export declare const GetOrgsResponseBody: z.ZodArray; }, z.core.$strip>>; export type GetOrgsResponseBody = z.infer; export declare const CreateOrgRequestBody: z.ZodObject<{ title: z.ZodString; companySize: z.ZodOptional; companyUrl: z.ZodOptional; }, z.core.$strip>; export type CreateOrgRequestBody = z.infer; export declare const CreateOrgResponseBody: z.ZodObject<{ id: z.ZodString; title: z.ZodString; slug: z.ZodString; createdAt: z.ZodCoercedDate; }, z.core.$strip>; export type CreateOrgResponseBody = z.infer; export declare const ActivateFreePlanResponseBody: z.ZodObject<{ plan: z.ZodLiteral<"free">; }, z.core.$strip>; export type ActivateFreePlanResponseBody = z.infer; export declare const CompleteProfileRequestBody: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; export type CompleteProfileRequestBody = z.infer; export declare const CompleteProfileResponseBody: z.ZodObject<{ updated: z.ZodBoolean; }, z.core.$strip>; export type CompleteProfileResponseBody = z.infer; export declare const CreateProjectRequestBody: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; export type CreateProjectRequestBody = z.infer; export declare const GetProjectEnvResponse: z.ZodObject<{ apiKey: z.ZodString; name: z.ZodString; apiUrl: z.ZodString; projectId: z.ZodString; defaultRuntime: z.ZodOptional>>; }, z.core.$strip>; export type GetProjectEnvResponse = z.infer; export declare const ProjectEnvironment: z.ZodObject<{ id: z.ZodString; slug: z.ZodString; type: z.ZodEnum<{ DEVELOPMENT: "DEVELOPMENT"; PREVIEW: "PREVIEW"; PRODUCTION: "PRODUCTION"; STAGING: "STAGING"; }>; isBranchableEnvironment: z.ZodBoolean; branchName: z.ZodNullable; paused: z.ZodBoolean; }, z.core.$strip>; export type ProjectEnvironment = z.infer; export declare const GetProjectEnvironmentsResponseBody: z.ZodArray; isBranchableEnvironment: z.ZodBoolean; branchName: z.ZodNullable; paused: z.ZodBoolean; }, z.core.$strip>>; export type GetProjectEnvironmentsResponseBody = z.infer; export declare const GetWorkerTaskResponse: z.ZodObject<{ id: z.ZodString; slug: z.ZodString; filePath: z.ZodString; triggerSource: z.ZodString; createdAt: z.ZodCoercedDate; payloadSchema: z.ZodOptional>; queueConfig: z.ZodOptional>; }, z.core.$strip>; export declare const GetWorkerByTagResponse: z.ZodObject<{ worker: z.ZodObject<{ id: z.ZodString; version: z.ZodString; engine: z.ZodOptional>; sdkVersion: z.ZodOptional>; cliVersion: z.ZodOptional>; tasks: z.ZodArray; payloadSchema: z.ZodOptional>; queueConfig: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; urls: z.ZodObject<{ runs: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type GetWorkerByTagResponse = z.infer; export declare const GetJWTRequestBody: z.ZodObject<{ claims: z.ZodOptional>; }, z.core.$strip>>; expirationTime: z.ZodOptional>; }, z.core.$strip>; export type GetJWTRequestBody = z.infer; export declare const GetJWTResponse: z.ZodObject<{ token: z.ZodString; environmentId: z.ZodOptional; }, z.core.$strip>; export type GetJWTResponse = z.infer; export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{ localOnly: z.ZodBoolean; metadata: z.ZodObject<{ packageVersion: z.ZodString; contentHash: z.ZodString; cliPackageVersion: z.ZodOptional; tasks: z.ZodArray; filePath: z.ZodString; exportName: z.ZodOptional; queue: z.ZodOptional>; combinedConcurrencyLimit: z.ZodNullable>; name: z.ZodOptional; }, z.core.$strip>>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional; total: z.ZodOptional; }, z.core.$strip>>; limits: z.ZodOptional>; }, z.core.$strip>>; retry: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; machine: z.ZodOptional, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>; memory: z.ZodOptional, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>; preset: z.ZodOptional>; }, z.core.$strip>>; triggerSource: z.ZodOptional; agentConfig: z.ZodOptional>; schedule: z.ZodOptional>>; window: z.ZodOptional; }, z.core.$strip>>; maxDuration: z.ZodOptional; ttl: z.ZodOptional>; payloadSchema: z.ZodOptional; }, z.core.$strip>>; prompts: z.ZodOptional; filePath: z.ZodString; exportName: z.ZodOptional; content: z.ZodOptional; model: z.ZodOptional; config: z.ZodOptional>; variableSchema: z.ZodOptional; }, z.core.$strip>>>; webhookEndpoints: z.ZodOptional; filePath: z.ZodString; exportName: z.ZodOptional; source: z.ZodString; verifierArtifact: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; config: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; algorithm: z.ZodEnum<{ sha1: "sha1"; sha256: "sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; additionalSignatureHeaders: z.ZodOptional>; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; secret: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; formPayload: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"shared-secret">; placement: z.ZodEnum<{ basic: "basic"; bearer: "bearer"; body: "body"; header: "header"; }>; fieldName: z.ZodOptional; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"url-secret">; placement: z.ZodEnum<{ path: "path"; query: "query"; }>; paramName: z.ZodString; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"asymmetric">; algorithm: z.ZodEnum<{ "ecdsa-p256": "ecdsa-p256"; ed25519: "ed25519"; "rsa-sha256": "rsa-sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; publicKeyEncoding: z.ZodOptional>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>]>; handshake: z.ZodOptional; respondStatus: z.ZodOptional, z.ZodLiteral<204>]>>; }, z.core.$strip>>; getHandshake: z.ZodOptional; matchValue: z.ZodOptional; tokenParam: z.ZodString; challengeParam: z.ZodString; }, z.core.$strip>>; response: z.ZodOptional, z.ZodLiteral<202>, z.ZodLiteral<204>]>>; acceptedBody: z.ZodOptional>; rejectedStatus: z.ZodOptional, z.ZodLiteral<401>, z.ZodLiteral<403>]>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"preset">; preset: z.ZodString; config: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; algorithm: z.ZodEnum<{ sha1: "sha1"; sha256: "sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; additionalSignatureHeaders: z.ZodOptional>; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; secret: z.ZodOptional>; stripPrefix: z.ZodOptional; }, z.core.$strip>>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; formPayload: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"shared-secret">; placement: z.ZodEnum<{ basic: "basic"; bearer: "bearer"; body: "body"; header: "header"; }>; fieldName: z.ZodOptional; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"url-secret">; placement: z.ZodEnum<{ path: "path"; query: "query"; }>; paramName: z.ZodString; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ scheme: z.ZodLiteral<"asymmetric">; algorithm: z.ZodEnum<{ "ecdsa-p256": "ecdsa-p256"; ed25519: "ed25519"; "rsa-sha256": "rsa-sha256"; }>; encoding: z.ZodEnum<{ base64: "base64"; hex: "hex"; }>; signatureHeader: z.ZodString; signature: z.ZodOptional; fieldSeparator: z.ZodOptional; field: z.ZodOptional; trim: z.ZodOptional; }, z.core.$strip>>; timestamp: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>; unit: z.ZodOptional>; format: z.ZodOptional>; toleranceSeconds: z.ZodOptional; }, z.core.$strip>>; signingString: z.ZodUnion, z.ZodObject<{ template: z.ZodString; vars: z.ZodOptional; name: z.ZodString; fallback: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"signatureField">; field: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"body">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"url">; }, z.core.$strip>, z.ZodObject<{ from: z.ZodLiteral<"constant">; value: z.ZodString; }, z.core.$strip>]>>>; }, z.core.$strip>]>; publicKeyEncoding: z.ZodOptional>; idempotencyField: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>]>; handshake: z.ZodOptional; respondStatus: z.ZodOptional, z.ZodLiteral<204>]>>; }, z.core.$strip>>; getHandshake: z.ZodOptional; matchValue: z.ZodOptional; tokenParam: z.ZodString; challengeParam: z.ZodString; }, z.core.$strip>>; response: z.ZodOptional, z.ZodLiteral<202>, z.ZodLiteral<204>]>>; acceptedBody: z.ZodOptional>; rejectedStatus: z.ZodOptional, z.ZodLiteral<401>, z.ZodLiteral<403>]>>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"bundle">; bundleUrl: z.ZodString; hash: z.ZodString; }, z.core.$strip>]>; secretProvisioning: z.ZodOptional>; setupPrompt: z.ZodOptional; metadata: z.ZodOptional>; }, z.core.$strip>>>; webhookSubscribers: z.ZodOptional; id: z.ZodString; taskId: z.ZodString; filter: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"session">; id: z.ZodString; taskIdentifier: z.ZodString; keyTemplate: z.ZodString; deliverAs: z.ZodEnum<{ action: "action"; message: "message"; }>; actionType: z.ZodOptional; connectorId: z.ZodOptional; triggerConfigTemplate: z.ZodOptional>; startOn: z.ZodOptional; filter: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>>>; queues: z.ZodOptional>; combinedConcurrencyLimit: z.ZodNullable>; }, z.core.$strip>>>; concurrencyLimits: z.ZodOptional; total: z.ZodOptional; name: z.ZodString; }, z.core.$strip>>>; sourceFiles: z.ZodOptional; }, z.core.$strip>>>; runtime: z.ZodOptional; runtimeVersion: z.ZodOptional; }, z.core.$strip>; engine: z.ZodOptional, z.ZodLiteral<"V2">]>>; supportsLazyAttempts: z.ZodOptional; buildPlatform: z.ZodOptional; targetPlatform: z.ZodOptional; }, z.core.$strip>; export type CreateBackgroundWorkerRequestBody = z.infer; export declare const BackgroundWorkerWarning: z.ZodObject<{ code: z.ZodEnum<{ schedule_default_window: "schedule_default_window"; schedule_minimum_window: "schedule_minimum_window"; }>; message: z.ZodString; }, z.core.$strip>; export type BackgroundWorkerWarning = z.infer; export declare const CreateBackgroundWorkerResponse: z.ZodObject<{ id: z.ZodString; version: z.ZodString; contentHash: z.ZodString; warnings: z.ZodOptional; message: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; export type CreateBackgroundWorkerResponse = z.infer; export declare const RunTags: z.ZodUnion]>; export type RunTags = z.infer; /** Stores the original user-provided idempotency key and scope */ export declare const IdempotencyKeyOptionsSchema: z.ZodObject<{ key: z.ZodString; scope: z.ZodEnum<{ attempt: "attempt"; global: "global"; run: "run"; }>; }, z.core.$strip>; export type IdempotencyKeyOptionsSchema = z.infer; export declare const TriggerTaskRequestBody: z.ZodObject<{ payload: z.ZodOptional; context: z.ZodOptional; options: z.ZodOptional; parentAttempt: z.ZodOptional; dependentBatch: z.ZodOptional; parentBatch: z.ZodOptional; parentRunId: z.ZodOptional; resumeParentOnCompletion: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; queue: z.ZodOptional; }, z.core.$strip>>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; delay: z.ZodOptional]>>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; machine: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; metadata: z.ZodOptional; metadataType: z.ZodOptional; payloadType: z.ZodOptional; payloadSize: z.ZodOptional; tags: z.ZodOptional]>>; test: z.ZodOptional; ttl: z.ZodOptional>; priority: z.ZodOptional; bulkActionId: z.ZodOptional; region: z.ZodOptional; debounce: z.ZodOptional>; maxDelay: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type TriggerTaskRequestBody = z.infer; export declare const TriggerTaskResponse: z.ZodObject<{ id: z.ZodString; isCached: z.ZodOptional; }, z.core.$strip>; export type TriggerTaskResponse = z.infer; export declare const BatchTriggerTaskRequestBody: z.ZodObject<{ items: z.ZodArray; context: z.ZodOptional; options: z.ZodOptional; parentAttempt: z.ZodOptional; dependentBatch: z.ZodOptional; parentBatch: z.ZodOptional; parentRunId: z.ZodOptional; resumeParentOnCompletion: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; queue: z.ZodOptional; }, z.core.$strip>>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; delay: z.ZodOptional]>>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; machine: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; metadata: z.ZodOptional; metadataType: z.ZodOptional; payloadType: z.ZodOptional; payloadSize: z.ZodOptional; tags: z.ZodOptional]>>; test: z.ZodOptional; ttl: z.ZodOptional>; priority: z.ZodOptional; bulkActionId: z.ZodOptional; region: z.ZodOptional; debounce: z.ZodOptional>; maxDelay: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; dependentAttempt: z.ZodOptional; }, z.core.$strip>; export type BatchTriggerTaskRequestBody = z.infer; export declare const BatchTriggerTaskItem: z.ZodObject<{ task: z.ZodString; payload: z.ZodOptional; context: z.ZodOptional; options: z.ZodOptional, z.ZodTransform>>; delay: z.ZodOptional]>>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; machine: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; metadata: z.ZodOptional; metadataType: z.ZodOptional; parentAttempt: z.ZodOptional; payloadType: z.ZodOptional; payloadSize: z.ZodOptional; queue: z.ZodOptional>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional>; tags: z.ZodOptional]>>; test: z.ZodOptional; ttl: z.ZodOptional>; priority: z.ZodOptional; region: z.ZodOptional; debounce: z.ZodOptional>; maxDelay: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type BatchTriggerTaskItem = z.infer; export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{ items: z.ZodArray; context: z.ZodOptional; options: z.ZodOptional, z.ZodTransform>>; delay: z.ZodOptional]>>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; machine: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; metadata: z.ZodOptional; metadataType: z.ZodOptional; parentAttempt: z.ZodOptional; payloadType: z.ZodOptional; payloadSize: z.ZodOptional; queue: z.ZodOptional>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional>; tags: z.ZodOptional]>>; test: z.ZodOptional; ttl: z.ZodOptional>; priority: z.ZodOptional; region: z.ZodOptional; debounce: z.ZodOptional>; maxDelay: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; dependentAttempt: z.ZodOptional; parentRunId: z.ZodOptional; resumeParentOnCompletion: z.ZodOptional; }, z.core.$strip>; export type BatchTriggerTaskV2RequestBody = z.infer; export declare const BatchTriggerTaskV2Response: z.ZodObject<{ id: z.ZodString; isCached: z.ZodBoolean; idempotencyKey: z.ZodOptional; runs: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; export type BatchTriggerTaskV2Response = z.infer; export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{ items: z.ZodArray; context: z.ZodOptional; options: z.ZodOptional, z.ZodTransform>>; delay: z.ZodOptional]>>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; machine: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; metadata: z.ZodOptional; metadataType: z.ZodOptional; parentAttempt: z.ZodOptional; payloadType: z.ZodOptional; payloadSize: z.ZodOptional; queue: z.ZodOptional>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional>; tags: z.ZodOptional]>>; test: z.ZodOptional; ttl: z.ZodOptional>; priority: z.ZodOptional; region: z.ZodOptional; debounce: z.ZodOptional>; maxDelay: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; parentRunId: z.ZodOptional; resumeParentOnCompletion: z.ZodOptional; }, z.core.$strip>; export type BatchTriggerTaskV3RequestBody = z.infer; export declare const BatchTriggerTaskV3Response: z.ZodObject<{ id: z.ZodString; runCount: z.ZodNumber; }, z.core.$strip>; export type BatchTriggerTaskV3Response = z.infer; /** * Phase 1: Create batch request body * Creates the batch record and optionally blocks parent run for batchTriggerAndWait */ export declare const CreateBatchRequestBody: z.ZodObject<{ runCount: z.ZodNumber; taskIdentifiers: z.ZodOptional>; parentRunId: z.ZodOptional; resumeParentOnCompletion: z.ZodOptional; idempotencyKey: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type CreateBatchRequestBody = z.infer; /** * Phase 1: Create batch response */ export declare const CreateBatchResponse: z.ZodObject<{ id: z.ZodString; runCount: z.ZodNumber; isCached: z.ZodBoolean; idempotencyKey: z.ZodOptional; }, z.core.$strip>; export type CreateBatchResponse = z.infer; /** * Phase 2: Individual item in the NDJSON stream * Each line in the NDJSON body should match this schema. * * `options` reuses the strict shape from BatchTriggerTaskItem so that the * Phase-2 streaming path validates option fields identically to the V2/V3 * batch trigger endpoints — historically this used z.record(z.string(), z.unknown()) and * let invalid values (e.g. numeric concurrencyKey) reach Prisma. */ export declare const BatchItemNDJSON: z.ZodObject<{ index: z.ZodNumber; task: z.ZodString; payload: z.ZodOptional; options: z.ZodOptional, z.ZodTransform>>; delay: z.ZodOptional]>>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; idempotencyKeyOptions: z.ZodOptional; }, z.core.$strip>>; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; machine: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; metadata: z.ZodOptional; metadataType: z.ZodOptional; parentAttempt: z.ZodOptional; payloadType: z.ZodOptional; payloadSize: z.ZodOptional; queue: z.ZodOptional>; gates: z.ZodOptional; }, z.core.$strip>>>; concurrency: z.ZodOptional>; tags: z.ZodOptional]>>; test: z.ZodOptional; ttl: z.ZodOptional>; priority: z.ZodOptional; region: z.ZodOptional; debounce: z.ZodOptional>; maxDelay: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type BatchItemNDJSON = z.infer; /** * Phase 2: Stream items response * Returned after the NDJSON stream completes */ export declare const StreamBatchItemsResponse: z.ZodObject<{ id: z.ZodString; itemsAccepted: z.ZodNumber; itemsDeduplicated: z.ZodNumber; sealed: z.ZodBoolean; enqueuedCount: z.ZodOptional; expectedCount: z.ZodOptional; }, z.core.$strip>; export type StreamBatchItemsResponse = z.infer; export declare const BatchTriggerTaskResponse: z.ZodObject<{ batchId: z.ZodString; runs: z.ZodArray; }, z.core.$strip>; export type BatchTriggerTaskResponse = z.infer; export declare const GetBatchResponseBody: z.ZodObject<{ id: z.ZodString; items: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; export type GetBatchResponseBody = z.infer; export declare const AddTagsRequestBody: z.ZodObject<{ tags: z.ZodUnion]>; }, z.core.$strip>; export type AddTagsRequestBody = z.infer; export declare const RescheduleRunRequestBody: z.ZodObject<{ delay: z.ZodUnion<[z.ZodString, z.ZodCoercedDate]>; }, z.core.$strip>; export type RescheduleRunRequestBody = z.infer; export declare const GetEnvironmentVariablesResponseBody: z.ZodObject<{ allowEmptyEnvironmentVariableValues: z.ZodOptional; variables: z.ZodRecord; }, z.core.$strip>; export type GetEnvironmentVariablesResponseBody = z.infer; export declare const StartDeploymentIndexingRequestBody: z.ZodObject<{ imageReference: z.ZodString; selfHosted: z.ZodOptional; }, z.core.$strip>; export type StartDeploymentIndexingRequestBody = z.infer; export declare const StartDeploymentIndexingResponseBody: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; }, z.core.$strip>; export type StartDeploymentIndexingResponseBody = z.infer; export declare const FinalizeDeploymentRequestBody: z.ZodObject<{ skipPromotion: z.ZodOptional; imageDigest: z.ZodOptional; skipPushToRegistry: z.ZodOptional; }, z.core.$strip>; export type FinalizeDeploymentRequestBody = z.infer; export declare const BuildServerMetadata: z.ZodObject<{ buildId: z.ZodOptional; isNativeBuild: z.ZodOptional; artifactKey: z.ZodOptional; skipPromotion: z.ZodOptional; configFilePath: z.ZodOptional; skipEnqueue: z.ZodOptional; fromBundle: z.ZodOptional; redeployOf: z.ZodOptional; }, z.core.$strip>; export type BuildServerMetadata = z.infer; export declare const GetDeploymentArtifactUrlResponseBody: z.ZodObject<{ url: z.ZodString; expiresAt: z.ZodString; }, z.core.$strip>; export type GetDeploymentArtifactUrlResponseBody = z.infer; export declare const ProgressDeploymentRequestBody: z.ZodObject<{ contentHash: z.ZodOptional; gitMeta: z.ZodOptional; source: z.ZodOptional>; ghUsername: z.ZodOptional; ghUserAvatarUrl: z.ZodOptional; commitAuthorName: z.ZodOptional; commitMessage: z.ZodOptional; commitRef: z.ZodOptional; commitSha: z.ZodOptional; dirty: z.ZodOptional; remoteUrl: z.ZodOptional; pullRequestNumber: z.ZodOptional; pullRequestTitle: z.ZodOptional; pullRequestState: z.ZodOptional>; }, z.core.$strip>>; runtime: z.ZodOptional; buildServerMetadata: z.ZodOptional; isNativeBuild: z.ZodOptional; artifactKey: z.ZodOptional; skipPromotion: z.ZodOptional; configFilePath: z.ZodOptional; skipEnqueue: z.ZodOptional; fromBundle: z.ZodOptional; redeployOf: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type ProgressDeploymentRequestBody = z.infer; export declare const CancelDeploymentRequestBody: z.ZodObject<{ reason: z.ZodOptional; }, z.core.$strip>; export type CancelDeploymentRequestBody = z.infer; export declare const ExternalBuildData: z.ZodObject<{ buildId: z.ZodString; buildToken: z.ZodString; projectId: z.ZodString; }, z.core.$strip>; export type ExternalBuildData = z.infer; export declare const DeploymentTriggeredVia: z.ZodUnion<[z.ZodEnum<{ "cli:azure_pipelines": "cli:azure_pipelines"; "cli:bitbucket_pipelines": "cli:bitbucket_pipelines"; "cli:buildkite": "cli:buildkite"; "cli:ci_other": "cli:ci_other"; "cli:circleci": "cli:circleci"; "cli:github_actions": "cli:github_actions"; "cli:gitlab_ci": "cli:gitlab_ci"; "cli:jenkins": "cli:jenkins"; "cli:manual": "cli:manual"; "cli:travis_ci": "cli:travis_ci"; dashboard: "dashboard"; "git_integration:github": "git_integration:github"; }>, z.ZodCustom]>; export type DeploymentTriggeredVia = z.infer; export declare const UpsertBranchRequestBody: z.ZodObject<{ git: z.ZodOptional; source: z.ZodOptional>; ghUsername: z.ZodOptional; ghUserAvatarUrl: z.ZodOptional; commitAuthorName: z.ZodOptional; commitMessage: z.ZodOptional; commitRef: z.ZodOptional; commitSha: z.ZodOptional; dirty: z.ZodOptional; remoteUrl: z.ZodOptional; pullRequestNumber: z.ZodOptional; pullRequestTitle: z.ZodOptional; pullRequestState: z.ZodOptional>; }, z.core.$strip>>; env: z.ZodEnum<{ development: "development"; preview: "preview"; }>; branch: z.ZodString; }, z.core.$strip>; export type UpsertBranchRequestBody = z.infer; export declare const UpsertBranchResponseBody: z.ZodObject<{ id: z.ZodString; autoArchivedBranches: z.ZodOptional>>; }, z.core.$strip>; export type UpsertBranchResponseBody = z.infer; export declare const CreateArtifactRequestBody: z.ZodObject<{ type: z.ZodDefault>; contentType: z.ZodDefault; contentLength: z.ZodOptional; }, z.core.$strip>; export type CreateArtifactRequestBody = z.infer; export declare const CreateArtifactResponseBody: z.ZodObject<{ artifactKey: z.ZodString; uploadUrl: z.ZodString; uploadFields: z.ZodRecord; expiresAt: z.ZodString; }, z.core.$strip>; export type CreateArtifactResponseBody = z.infer; export declare const DeployBaseImageRef: z.ZodString; export declare const DeployBaseImages: z.ZodObject<{ base: z.ZodOptional; buildBase: z.ZodOptional; }, z.core.$strip>; export type DeployBaseImages = z.infer; export declare const InitializeDeploymentResponseBody: z.ZodObject<{ id: z.ZodString; contentHash: z.ZodString; shortCode: z.ZodString; version: z.ZodString; imageTag: z.ZodString; imagePlatform: z.ZodString; externalId: z.ZodOptional; outcome: z.ZodOptional>; isPromoted: z.ZodOptional; externalBuildData: z.ZodNullable>>; baseImages: z.ZodOptional; buildBase: z.ZodOptional; }, z.core.$strip>>; canceledDeployments: z.ZodOptional>>; eventStream: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type InitializeDeploymentResponseBody = z.infer; declare const InitializeDeploymentRequestBodyBase: z.ZodObject<{ contentHash: z.ZodString; userId: z.ZodOptional; selfHosted: z.ZodOptional; gitMeta: z.ZodOptional; source: z.ZodOptional>; ghUsername: z.ZodOptional; ghUserAvatarUrl: z.ZodOptional; commitAuthorName: z.ZodOptional; commitMessage: z.ZodOptional; commitRef: z.ZodOptional; commitSha: z.ZodOptional; dirty: z.ZodOptional; remoteUrl: z.ZodOptional; pullRequestNumber: z.ZodOptional; pullRequestTitle: z.ZodOptional; pullRequestState: z.ZodOptional>; }, z.core.$strip>>; type: z.ZodOptional>; runtime: z.ZodOptional; initialStatus: z.ZodOptional>; isLocalBuild: z.ZodOptional; triggeredVia: z.ZodOptional, z.ZodCustom]>>; buildId: z.ZodOptional; externalId: z.ZodOptional; force: z.ZodOptional; supportsInstanceBaseImages: z.ZodOptional; }, z.core.$strip>; type BaseOutput = z.output; type NativeBuildOutput = BaseOutput & { isNativeBuild: true; skipPromotion?: boolean; artifactKey?: string; configFilePath?: string; skipEnqueue?: boolean; fromBundle?: boolean; buildEnvVars?: Record; }; type NonNativeBuildOutput = BaseOutput & { isNativeBuild: false; skipPromotion?: never; artifactKey?: never; configFilePath?: never; skipEnqueue?: never; fromBundle?: never; buildEnvVars?: never; }; export declare const InitializeDeploymentRequestBody: z.ZodPipe; selfHosted: z.ZodOptional; gitMeta: z.ZodOptional; source: z.ZodOptional>; ghUsername: z.ZodOptional; ghUserAvatarUrl: z.ZodOptional; commitAuthorName: z.ZodOptional; commitMessage: z.ZodOptional; commitRef: z.ZodOptional; commitSha: z.ZodOptional; dirty: z.ZodOptional; remoteUrl: z.ZodOptional; pullRequestNumber: z.ZodOptional; pullRequestTitle: z.ZodOptional; pullRequestState: z.ZodOptional>; }, z.core.$strip>>; type: z.ZodOptional>; runtime: z.ZodOptional; initialStatus: z.ZodOptional>; isLocalBuild: z.ZodOptional; triggeredVia: z.ZodOptional, z.ZodCustom]>>; buildId: z.ZodOptional; externalId: z.ZodOptional; force: z.ZodOptional; supportsInstanceBaseImages: z.ZodOptional; isNativeBuild: z.ZodDefault; skipPromotion: z.ZodOptional; artifactKey: z.ZodOptional; configFilePath: z.ZodOptional; skipEnqueue: z.ZodDefault>; fromBundle: z.ZodOptional; buildEnvVars: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform | undefined; }>>; export type InitializeDeploymentRequestBody = z.infer; export declare const DeployBuildPath: z.ZodEnum<{ depot: "depot"; native: "native"; native_local_bundle: "native_local_bundle"; }>; export type DeployBuildPath = z.infer; export declare const GetDeploySettingsResponseBody: z.ZodObject<{ build_path: z.ZodEnum<{ depot: "depot"; native: "native"; native_local_bundle: "native_local_bundle"; }>; }, z.core.$strip>; export type GetDeploySettingsResponseBody = z.infer; export declare const RemoteBuildProviderStatusResponseBody: z.ZodObject<{ status: z.ZodEnum<{ degraded: "degraded"; operational: "operational"; unknown: "unknown"; }>; message: z.ZodString; }, z.core.$strip>; export type RemoteBuildProviderStatusResponseBody = z.infer; export declare const GenerateRegistryCredentialsResponseBody: z.ZodObject<{ username: z.ZodString; password: z.ZodString; expiresAt: z.ZodString; repositoryUri: z.ZodString; }, z.core.$strip>; export type GenerateRegistryCredentialsResponseBody = z.infer; export declare const DeploymentErrorData: z.ZodObject<{ name: z.ZodString; message: z.ZodString; stack: z.ZodOptional; stderr: z.ZodOptional; }, z.core.$strip>; export type DeploymentErrorData = z.infer; export declare const FailDeploymentRequestBody: z.ZodObject<{ error: z.ZodObject<{ name: z.ZodString; message: z.ZodString; stack: z.ZodOptional; stderr: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type FailDeploymentRequestBody = z.infer; export declare const FailDeploymentResponseBody: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type FailDeploymentResponseBody = z.infer; export declare const PromoteDeploymentResponseBody: z.ZodObject<{ id: z.ZodString; version: z.ZodString; shortCode: z.ZodString; }, z.core.$strip>; export type PromoteDeploymentResponseBody = z.infer; export declare const GetDeploymentResponseBody: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ BUILDING: "BUILDING"; CANCELED: "CANCELED"; DEPLOYED: "DEPLOYED"; DEPLOYING: "DEPLOYING"; FAILED: "FAILED"; INSTALLING: "INSTALLING"; PENDING: "PENDING"; TIMED_OUT: "TIMED_OUT"; }>; contentHash: z.ZodString; shortCode: z.ZodString; version: z.ZodString; imageReference: z.ZodOptional>; imagePlatform: z.ZodString; commitSHA: z.ZodOptional>; externalId: z.ZodOptional; externalBuildData: z.ZodNullable>>; baseImages: z.ZodOptional; buildBase: z.ZodOptional; }, z.core.$strip>>; errorData: z.ZodOptional; stderr: z.ZodOptional; }, z.core.$strip>>>; canceledReason: z.ZodOptional>; worker: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; integrationDeployments: z.ZodOptional; }, z.core.$strip>>>>; }, z.core.$strip>; export type GetDeploymentResponseBody = z.infer; export declare const GetDeploymentBuildEnvVarsResponseBody: z.ZodObject<{ variables: z.ZodRecord; }, z.core.$strip>; export type GetDeploymentBuildEnvVarsResponseBody = z.infer; export declare const GetLatestDeploymentResponseBody: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ BUILDING: "BUILDING"; CANCELED: "CANCELED"; DEPLOYED: "DEPLOYED"; DEPLOYING: "DEPLOYING"; FAILED: "FAILED"; INSTALLING: "INSTALLING"; PENDING: "PENDING"; TIMED_OUT: "TIMED_OUT"; }>; contentHash: z.ZodString; shortCode: z.ZodString; version: z.ZodString; imageReference: z.ZodOptional>; imagePlatform: z.ZodString; commitSHA: z.ZodOptional>; externalId: z.ZodOptional; externalBuildData: z.ZodNullable>>; baseImages: z.ZodOptional; buildBase: z.ZodOptional; }, z.core.$strip>>; errorData: z.ZodOptional; stderr: z.ZodOptional; }, z.core.$strip>>>; canceledReason: z.ZodOptional>; integrationDeployments: z.ZodOptional; }, z.core.$strip>>>>; }, z.core.$strip>; export type GetLatestDeploymentResponseBody = z.infer; export declare const DeploymentLogEvent: z.ZodObject<{ type: z.ZodLiteral<"log">; data: z.ZodObject<{ level: z.ZodDefault>>; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare const DeploymentFinalizedEvent: z.ZodObject<{ type: z.ZodLiteral<"finalized">; data: z.ZodObject<{ result: z.ZodUnion<[z.ZodEnum<{ canceled: "canceled"; failed: "failed"; succeeded: "succeeded"; timed_out: "timed_out"; }>, z.ZodCustom]>; message: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export declare const DeploymentEvent: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; data: z.ZodObject<{ level: z.ZodDefault>>; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"finalized">; data: z.ZodObject<{ result: z.ZodUnion<[z.ZodEnum<{ canceled: "canceled"; failed: "failed"; succeeded: "succeeded"; timed_out: "timed_out"; }>, z.ZodCustom]>; message: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>; export type DeploymentEvent = z.infer; export type DeploymentLogEvent = z.infer; export type DeploymentFinalizedEvent = z.infer; export declare const DeploymentEventFromString: z.ZodPipe>, import("../utils/zod.js").CompatibleZodDiscriminatedUnion; data: z.ZodObject<{ level: z.ZodDefault>>; message: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"finalized">; data: z.ZodObject<{ result: z.ZodUnion<[z.ZodEnum<{ canceled: "canceled"; failed: "failed"; succeeded: "succeeded"; timed_out: "timed_out"; }>, z.ZodCustom]>; message: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>]>>; export declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{ presignedUrl: z.ZodString; storagePath: z.ZodOptional; }, z.core.$strip>; /** One page of a `chat.agent` session transcript, from `GET /api/v1/sessions/{id}/transcript`. */ export declare const SessionTranscriptResponseBody: z.ZodObject<{ messages: z.ZodArray; cursors: z.ZodOptional; lastInEventId: z.ZodOptional; }, z.core.$strip>>; nextCursor: z.ZodOptional; }, z.core.$strip>; export type SessionTranscriptResponseBody = z.infer; export declare const WorkersListResponseBody: z.ZodArray>; latestVersion: z.ZodOptional>; lastHeartbeatAt: z.ZodOptional>; isDefault: z.ZodBoolean; updatedAt: z.ZodCoercedDate; }, z.core.$strip>>; export type WorkersListResponseBody = z.infer; export declare const WorkersCreateRequestBody: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional; }, z.core.$strip>; export type WorkersCreateRequestBody = z.infer; export declare const WorkersCreateResponseBody: z.ZodObject<{ workerGroup: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional>; }, z.core.$strip>; token: z.ZodObject<{ plaintext: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type WorkersCreateResponseBody = z.infer; export declare const DevConfigResponseBody: z.ZodObject<{ environmentId: z.ZodString; dequeueIntervalWithRun: z.ZodNumber; dequeueIntervalWithoutRun: z.ZodNumber; maxConcurrentRuns: z.ZodNumber; engineUrl: z.ZodString; }, z.core.$strip>; export type DevConfigResponseBody = z.infer; export declare const DevDequeueRequestBody: z.ZodObject<{ currentWorker: z.ZodString; oldWorkers: z.ZodArray; maxResources: z.ZodOptional>; }, z.core.$strip>; export type DevDequeueRequestBody = z.infer; export declare const DevDequeueResponseBody: z.ZodObject<{ dequeuedMessages: z.ZodArray; snapshot: z.ZodObject<{ id: z.ZodString; friendlyId: z.ZodString; executionStatus: z.ZodEnum<{ DELAYED: "DELAYED"; EXECUTING: "EXECUTING"; EXECUTING_WITH_WAITPOINTS: "EXECUTING_WITH_WAITPOINTS"; FINISHED: "FINISHED"; PENDING_CANCEL: "PENDING_CANCEL"; PENDING_EXECUTING: "PENDING_EXECUTING"; QUEUED: "QUEUED"; QUEUED_EXECUTING: "QUEUED_EXECUTING"; RUN_CREATED: "RUN_CREATED"; SUSPENDED: "SUSPENDED"; }>; description: z.ZodString; createdAt: z.ZodCoercedDate; }, z.core.$strip>; dequeuedAt: z.ZodCoercedDate; workerQueueLength: z.ZodOptional; image: z.ZodOptional; checkpoint: z.ZodOptional; location: z.ZodString; imageRef: z.ZodOptional>; reason: z.ZodOptional>; }, z.core.$strip>>; completedWaitpoints: z.ZodArray; friendlyId: z.ZodString; type: z.ZodEnum<{ BATCH: "BATCH"; DATETIME: "DATETIME"; MANUAL: "MANUAL"; RUN: "RUN"; }>; completedAt: z.ZodCoercedDate; idempotencyKey: z.ZodOptional; completedByTaskRun: z.ZodOptional>; }, z.core.$strip>>; completedAfter: z.ZodOptional>; completedByBatch: z.ZodOptional>; output: z.ZodOptional; outputType: z.ZodOptional; outputIsError: z.ZodBoolean; }, z.core.$strip>>; backgroundWorker: z.ZodObject<{ id: z.ZodString; friendlyId: z.ZodString; version: z.ZodString; runtime: z.ZodOptional; }, z.core.$strip>; deployment: z.ZodObject<{ id: z.ZodOptional; friendlyId: z.ZodOptional; imagePlatform: z.ZodOptional; }, z.core.$strip>; run: z.ZodObject<{ id: z.ZodString; friendlyId: z.ZodString; isTest: z.ZodBoolean; isReplay: z.ZodDefault; machine: z.ZodObject<{ name: z.ZodEnum<{ "large-1x": "large-1x"; "large-2x": "large-2x"; "medium-1x": "medium-1x"; "medium-2x": "medium-2x"; micro: "micro"; "small-1x": "small-1x"; "small-2x": "small-2x"; }>; cpu: z.ZodNumber; memory: z.ZodNumber; centsPerMs: z.ZodNumber; }, z.core.$strip>; attemptNumber: z.ZodNumber; masterQueue: z.ZodString; traceContext: z.ZodRecord; annotations: z.ZodOptional, z.ZodCustom]>; triggerAction: z.ZodUnion<[z.ZodEnum<{ replay: "replay"; test: "test"; trigger: "trigger"; }>, z.ZodCustom]>; rootTriggerSource: z.ZodUnion<[z.ZodEnum<{ api: "api"; cli: "cli"; dashboard: "dashboard"; mcp: "mcp"; schedule: "schedule"; sdk: "sdk"; }>, z.ZodCustom]>; rootScheduleId: z.ZodOptional; taskKind: z.ZodOptional, z.ZodCustom]>>; externalDeploymentId: z.ZodOptional; webhookDeliveryId: z.ZodOptional; webhookEndpointId: z.ZodOptional; workerCell: z.ZodCatch>; workerLane: z.ZodCatch>; }, z.core.$strip>>; }, z.core.$strip>; environment: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<{ DEVELOPMENT: "DEVELOPMENT"; PREVIEW: "PREVIEW"; PRODUCTION: "PRODUCTION"; STAGING: "STAGING"; }>; }, z.core.$strip>; organization: z.ZodObject<{ id: z.ZodString; hasPrivateLink: z.ZodOptional; }, z.core.$strip>; project: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; placementTags: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>; export type DevDequeueResponseBody = z.infer; export declare const DevDisconnectRequestBody: z.ZodObject<{ runFriendlyIds: z.ZodArray; }, z.core.$strip>; export type DevDisconnectRequestBody = z.infer; export declare const DevDisconnectResponseBody: z.ZodObject<{ cancelled: z.ZodNumber; bulkActionId: z.ZodOptional; }, z.core.$strip>; export type DevDisconnectResponseBody = z.infer; export type CreateUploadPayloadUrlResponseBody = z.infer; export declare const ReplayRunRequestBody: z.ZodObject<{ payload: z.ZodOptional; payloadType: z.ZodOptional>; metadata: z.ZodOptional>; tags: z.ZodOptional]>>; queue: z.ZodOptional; concurrencyKey: z.ZodOptional, z.ZodTransform>>; machine: z.ZodOptional>; version: z.ZodOptional; region: z.ZodOptional; delay: z.ZodOptional]>>; ttl: z.ZodOptional>; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; priority: z.ZodOptional; }, z.core.$strict>; export type ReplayRunRequestBody = z.input; export declare const ReplayRunResponse: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type ReplayRunResponse = z.infer; export declare const CanceledRunResponse: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type CanceledRunResponse = z.infer; export declare const ResetIdempotencyKeyResponse: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type ResetIdempotencyKeyResponse = z.infer; export declare const ScheduleType: z.ZodUnion, z.ZodLiteral<"IMPERATIVE">]>; export declare const ScheduledTaskPayload: z.ZodObject<{ scheduleId: z.ZodString; type: z.ZodUnion, z.ZodLiteral<"IMPERATIVE">]>; timestamp: z.ZodDate; lastTimestamp: z.ZodOptional; externalId: z.ZodOptional; timezone: z.ZodString; upcoming: z.ZodArray; }, z.core.$strip>; export type ScheduledTaskPayload = z.infer; export declare const CreateScheduleOptions: z.ZodObject<{ task: z.ZodString; cron: z.ZodString; deduplicationKey: z.ZodString; externalId: z.ZodOptional; timezone: z.ZodOptional; window: z.ZodOptional; }, z.core.$strip>; export type CreateScheduleOptions = z.infer; export declare const UpdateScheduleOptions: z.ZodObject<{ task: z.ZodString; cron: z.ZodString; externalId: z.ZodOptional; timezone: z.ZodOptional; window: z.ZodOptional; }, z.core.$strip>; export type UpdateScheduleOptions = z.infer; export declare const ScheduleGenerator: z.ZodObject<{ type: z.ZodLiteral<"CRON">; expression: z.ZodString; description: z.ZodString; }, z.core.$strip>; export type ScheduleGenerator = z.infer; export declare const ScheduleObject: z.ZodObject<{ id: z.ZodString; type: z.ZodUnion, z.ZodLiteral<"IMPERATIVE">]>; task: z.ZodString; active: z.ZodBoolean; deduplicationKey: z.ZodOptional>; externalId: z.ZodOptional>; generator: z.ZodObject<{ type: z.ZodLiteral<"CRON">; expression: z.ZodString; description: z.ZodString; }, z.core.$strip>; timezone: z.ZodString; window: z.ZodOptional; nextRun: z.ZodOptional>>; nextRunEffectiveAt: z.ZodOptional>>; appliedSchedulePolicy: z.ZodOptional; }, z.core.$strip>>; environments: z.ZodArray>; }, z.core.$strip>>; }, z.core.$strip>; export type ScheduleObject = z.infer; export declare const DeletedScheduleObject: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type DeletedScheduleObject = z.infer; export declare const ListSchedulesResult: z.ZodObject<{ data: z.ZodArray, z.ZodLiteral<"IMPERATIVE">]>; task: z.ZodString; active: z.ZodBoolean; deduplicationKey: z.ZodOptional>; externalId: z.ZodOptional>; generator: z.ZodObject<{ type: z.ZodLiteral<"CRON">; expression: z.ZodString; description: z.ZodString; }, z.core.$strip>; timezone: z.ZodString; window: z.ZodOptional; nextRun: z.ZodOptional>>; nextRunEffectiveAt: z.ZodOptional>>; appliedSchedulePolicy: z.ZodOptional; }, z.core.$strip>>; environments: z.ZodArray>; }, z.core.$strip>>; }, z.core.$strip>>; pagination: z.ZodObject<{ currentPage: z.ZodNumber; totalPages: z.ZodNumber; count: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; export type ListSchedulesResult = z.infer; export declare const ListScheduleOptions: z.ZodObject<{ page: z.ZodOptional; perPage: z.ZodOptional; }, z.core.$strip>; export type ListScheduleOptions = z.infer; export declare const TimezonesResult: z.ZodObject<{ timezones: z.ZodArray; }, z.core.$strip>; export type TimezonesResult = z.infer; export declare const RunStatus: z.ZodEnum<{ CANCELED: "CANCELED"; COMPLETED: "COMPLETED"; CRASHED: "CRASHED"; DELAYED: "DELAYED"; DEQUEUED: "DEQUEUED"; EXECUTING: "EXECUTING"; EXPIRED: "EXPIRED"; FAILED: "FAILED"; PENDING_VERSION: "PENDING_VERSION"; QUEUED: "QUEUED"; SYSTEM_FAILURE: "SYSTEM_FAILURE"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; export type RunStatus = z.infer; export declare const AttemptStatus: z.ZodEnum<{ CANCELED: "CANCELED"; COMPLETED: "COMPLETED"; EXECUTING: "EXECUTING"; FAILED: "FAILED"; PAUSED: "PAUSED"; PENDING: "PENDING"; }>; export type AttemptStatus = z.infer; export declare const RunEnvironmentDetails: z.ZodObject<{ id: z.ZodString; name: z.ZodString; user: z.ZodOptional; }, z.core.$strip>; export type RunEnvironmentDetails = z.infer; export declare const RunScheduleDetails: z.ZodObject<{ id: z.ZodString; externalId: z.ZodOptional; deduplicationKey: z.ZodOptional; generator: z.ZodObject<{ type: z.ZodLiteral<"CRON">; expression: z.ZodString; description: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type RunScheduleDetails = z.infer; export declare const TriggerFunction: z.ZodEnum<{ batchTrigger: "batchTrigger"; batchTriggerAndWait: "batchTriggerAndWait"; trigger: "trigger"; triggerAndWait: "triggerAndWait"; }>; export type TriggerFunction = z.infer; export declare const RelatedRunDetails: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ CANCELED: "CANCELED"; COMPLETED: "COMPLETED"; CRASHED: "CRASHED"; DELAYED: "DELAYED"; DEQUEUED: "DEQUEUED"; EXECUTING: "EXECUTING"; EXPIRED: "EXPIRED"; FAILED: "FAILED"; PENDING_VERSION: "PENDING_VERSION"; QUEUED: "QUEUED"; SYSTEM_FAILURE: "SYSTEM_FAILURE"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; depth: z.ZodNumber; triggerFunction: z.ZodEnum<{ batchTrigger: "batchTrigger"; batchTriggerAndWait: "batchTriggerAndWait"; trigger: "trigger"; triggerAndWait: "triggerAndWait"; }>; batchId: z.ZodOptional; }, z.core.$strip>; export declare const RetrieveRunResponse: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ CANCELED: "CANCELED"; COMPLETED: "COMPLETED"; CRASHED: "CRASHED"; DELAYED: "DELAYED"; DEQUEUED: "DEQUEUED"; EXECUTING: "EXECUTING"; EXPIRED: "EXPIRED"; FAILED: "FAILED"; PENDING_VERSION: "PENDING_VERSION"; QUEUED: "QUEUED"; SYSTEM_FAILURE: "SYSTEM_FAILURE"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; depth: z.ZodNumber; triggerFunction: z.ZodEnum<{ batchTrigger: "batchTrigger"; batchTriggerAndWait: "batchTriggerAndWait"; trigger: "trigger"; triggerAndWait: "triggerAndWait"; }>; batchId: z.ZodOptional; payload: z.ZodOptional; payloadPresignedUrl: z.ZodOptional; output: z.ZodOptional; outputPresignedUrl: z.ZodOptional; error: z.ZodOptional; stackTrace: z.ZodOptional; causes: z.ZodOptional; message: z.ZodString; stackTrace: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>>; schedule: z.ZodOptional; deduplicationKey: z.ZodOptional; generator: z.ZodObject<{ type: z.ZodLiteral<"CRON">; expression: z.ZodString; description: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; relatedRuns: z.ZodObject<{ root: z.ZodOptional; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; depth: z.ZodNumber; triggerFunction: z.ZodEnum<{ batchTrigger: "batchTrigger"; batchTriggerAndWait: "batchTriggerAndWait"; trigger: "trigger"; triggerAndWait: "triggerAndWait"; }>; batchId: z.ZodOptional; }, z.core.$strip>>; parent: z.ZodOptional; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; depth: z.ZodNumber; triggerFunction: z.ZodEnum<{ batchTrigger: "batchTrigger"; batchTriggerAndWait: "batchTriggerAndWait"; trigger: "trigger"; triggerAndWait: "triggerAndWait"; }>; batchId: z.ZodOptional; }, z.core.$strip>>; children: z.ZodOptional; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; depth: z.ZodNumber; triggerFunction: z.ZodEnum<{ batchTrigger: "batchTrigger"; batchTriggerAndWait: "batchTriggerAndWait"; trigger: "trigger"; triggerAndWait: "triggerAndWait"; }>; batchId: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; attemptCount: z.ZodDefault; }, z.core.$strip>; export type RetrieveRunResponse = z.infer; export declare const ListRunResponseItem: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ CANCELED: "CANCELED"; COMPLETED: "COMPLETED"; CRASHED: "CRASHED"; DELAYED: "DELAYED"; DEQUEUED: "DEQUEUED"; EXECUTING: "EXECUTING"; EXPIRED: "EXPIRED"; FAILED: "FAILED"; PENDING_VERSION: "PENDING_VERSION"; QUEUED: "QUEUED"; SYSTEM_FAILURE: "SYSTEM_FAILURE"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; env: z.ZodObject<{ id: z.ZodString; name: z.ZodString; user: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type ListRunResponseItem = z.infer; export declare const ListRunResponse: z.ZodObject<{ data: z.ZodArray; taskIdentifier: z.ZodString; idempotencyKey: z.ZodOptional; version: z.ZodOptional; isQueued: z.ZodBoolean; isExecuting: z.ZodBoolean; isWaiting: z.ZodBoolean; isCompleted: z.ZodBoolean; isSuccess: z.ZodBoolean; isFailed: z.ZodBoolean; isCancelled: z.ZodBoolean; isTest: z.ZodBoolean; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; startedAt: z.ZodOptional>; finishedAt: z.ZodOptional>; delayedUntil: z.ZodOptional>; ttl: z.ZodOptional; expiredAt: z.ZodOptional>; tags: z.ZodArray; costInCents: z.ZodNumber; baseCostInCents: z.ZodNumber; durationMs: z.ZodNumber; metadata: z.ZodOptional>; taskKind: z.ZodOptional; region: z.ZodOptional; env: z.ZodObject<{ id: z.ZodString; name: z.ZodString; user: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; pagination: z.ZodObject<{ next: z.ZodOptional; previous: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type ListRunResponse = z.infer; export declare const CreateBulkActionRequestBody: import("../utils/zod.js").CompatibleZodDiscriminatedUnion, z.ZodArray>]>>; taskIdentifier: z.ZodOptional]>>; version: z.ZodOptional]>>; from: z.ZodOptional, z.ZodNumber]>>; to: z.ZodOptional, z.ZodNumber]>>; period: z.ZodOptional; bulkAction: z.ZodOptional; tag: z.ZodOptional]>>; schedule: z.ZodOptional; isTest: z.ZodOptional; batch: z.ZodOptional; queue: z.ZodOptional; name: z.ZodString; }, z.core.$strip>, z.ZodArray; name: z.ZodString; }, z.core.$strip>>]>>; machine: z.ZodOptional, z.ZodArray>]>>; region: z.ZodOptional]>>; }, z.core.$strip>>; runIds: z.ZodOptional>; name: z.ZodOptional; action: z.ZodLiteral<"cancel">; targetRegion: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ filter: z.ZodOptional, z.ZodArray>]>>; taskIdentifier: z.ZodOptional]>>; version: z.ZodOptional]>>; from: z.ZodOptional, z.ZodNumber]>>; to: z.ZodOptional, z.ZodNumber]>>; period: z.ZodOptional; bulkAction: z.ZodOptional; tag: z.ZodOptional]>>; schedule: z.ZodOptional; isTest: z.ZodOptional; batch: z.ZodOptional; queue: z.ZodOptional; name: z.ZodString; }, z.core.$strip>, z.ZodArray; name: z.ZodString; }, z.core.$strip>>]>>; machine: z.ZodOptional, z.ZodArray>]>>; region: z.ZodOptional]>>; }, z.core.$strip>>; runIds: z.ZodOptional>; name: z.ZodOptional; action: z.ZodLiteral<"replay">; targetRegion: z.ZodOptional; }, z.core.$strip>]>; export type CreateBulkActionRequestBody = z.infer; export declare const BulkActionStatus: z.ZodEnum<{ ABORTED: "ABORTED"; COMPLETED: "COMPLETED"; PENDING: "PENDING"; }>; export type BulkActionStatus = z.infer; export declare const BulkActionType: z.ZodEnum<{ CANCEL: "CANCEL"; REPLAY: "REPLAY"; }>; export type BulkActionType = z.infer; export declare const BulkActionObject: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; type: z.ZodEnum<{ CANCEL: "CANCEL"; REPLAY: "REPLAY"; }>; status: z.ZodEnum<{ ABORTED: "ABORTED"; COMPLETED: "COMPLETED"; PENDING: "PENDING"; }>; counts: z.ZodObject<{ total: z.ZodNumber; success: z.ZodNumber; failure: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodCoercedDate; completedAt: z.ZodOptional>; }, z.core.$strip>; export type BulkActionObject = z.infer; export declare const CreateBulkActionResponseBody: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type CreateBulkActionResponseBody = z.infer; export declare const AbortBulkActionResponseBody: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export type AbortBulkActionResponseBody = z.infer; export declare const ListBulkActionsResponseBody: z.ZodObject<{ data: z.ZodArray; type: z.ZodEnum<{ CANCEL: "CANCEL"; REPLAY: "REPLAY"; }>; status: z.ZodEnum<{ ABORTED: "ABORTED"; COMPLETED: "COMPLETED"; PENDING: "PENDING"; }>; counts: z.ZodObject<{ total: z.ZodNumber; success: z.ZodNumber; failure: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodCoercedDate; completedAt: z.ZodOptional>; }, z.core.$strip>>; pagination: z.ZodObject<{ next: z.ZodOptional; previous: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type ListBulkActionsResponseBody = z.infer; export declare const CreateEnvironmentVariableRequestBody: z.ZodObject<{ name: z.ZodString; value: z.ZodString; isSecret: z.ZodOptional; }, z.core.$strip>; export type CreateEnvironmentVariableRequestBody = z.infer; export declare const UpdateEnvironmentVariableRequestBody: z.ZodObject<{ value: z.ZodString; }, z.core.$strip>; export type UpdateEnvironmentVariableRequestBody = z.infer; export declare const ImportEnvironmentVariablesRequestBody: z.ZodObject<{ variables: z.ZodRecord; parentVariables: z.ZodOptional>; override: z.ZodOptional; isSecret: z.ZodOptional; source: z.ZodOptional; userId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"integration">; integration: z.ZodString; }, z.core.$strip>]>>; }, z.core.$strip>; export type ImportEnvironmentVariablesRequestBody = z.infer; export declare const EnvironmentVariableResponseBody: z.ZodObject<{ success: z.ZodBoolean; }, z.core.$strip>; export type EnvironmentVariableResponseBody = z.infer; export declare const EnvironmentVariableValue: z.ZodObject<{ value: z.ZodString; }, z.core.$strip>; export type EnvironmentVariableValue = z.infer; export declare const EnvironmentVariable: z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, z.core.$strip>; export declare const EnvironmentVariables: z.ZodArray>; export type EnvironmentVariables = z.infer; export declare const EnvironmentVariableWithSecret: z.ZodObject<{ name: z.ZodString; value: z.ZodString; isSecret: z.ZodBoolean; }, z.core.$strip>; export type EnvironmentVariableWithSecret = z.infer; export declare const UpdateMetadataRequestBody: z.ZodObject<{ metadata: z.ZodOptional>>>; operations: z.ZodOptional; value: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"set">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"append">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"remove">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"increment">; key: z.ZodString; value: z.ZodNumber; }, z.core.$strip>]>>>; parentOperations: z.ZodOptional; value: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"set">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"append">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"remove">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"increment">; key: z.ZodString; value: z.ZodNumber; }, z.core.$strip>]>>>; rootOperations: z.ZodOptional; value: z.ZodRecord; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"set">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"append">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"remove">; key: z.ZodString; value: z.ZodType>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"increment">; key: z.ZodString; value: z.ZodNumber; }, z.core.$strip>]>>>; }, z.core.$strip>; export type UpdateMetadataRequestBody = z.infer; export declare const UpdateMetadataResponseBody: z.ZodObject<{ metadata: z.ZodRecord>>; }, z.core.$strip>; export type UpdateMetadataResponseBody = z.infer; export declare const SubscribeRunRawShape: z.ZodObject<{ id: z.ZodString; taskIdentifier: z.ZodString; friendlyId: z.ZodString; status: z.ZodString; createdAt: z.ZodPipe>, z.ZodCoercedDate>; updatedAt: z.ZodPipe>, z.ZodCoercedDate>; startedAt: z.ZodPipe>, z.ZodTransform>; delayUntil: z.ZodPipe>, z.ZodTransform>; queuedAt: z.ZodPipe>, z.ZodTransform>; expiredAt: z.ZodPipe>, z.ZodTransform>; completedAt: z.ZodPipe>, z.ZodTransform>; idempotencyKey: z.ZodOptional>; number: z.ZodDefault; isTest: z.ZodDefault; usageDurationMs: z.ZodDefault; costInCents: z.ZodDefault; baseCostInCents: z.ZodDefault; ttl: z.ZodOptional>; payload: z.ZodOptional>; payloadType: z.ZodOptional>; metadata: z.ZodOptional>; metadataType: z.ZodOptional>; output: z.ZodOptional>; outputType: z.ZodOptional>; runTags: z.ZodDefault>>>; error: z.ZodOptional; name: z.ZodString; message: z.ZodString; stackTrace: z.ZodString; causes: z.ZodOptional; message: z.ZodString; stackTrace: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"CUSTOM_ERROR">; raw: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"STRING_ERROR">; raw: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"INTERNAL_ERROR">; code: z.ZodEnum<{ BATCH_ITEM_COULD_NOT_TRIGGER: "BATCH_ITEM_COULD_NOT_TRIGGER"; CONFIGURED_INCORRECTLY: "CONFIGURED_INCORRECTLY"; COULD_NOT_FIND_EXECUTOR: "COULD_NOT_FIND_EXECUTOR"; COULD_NOT_FIND_TASK: "COULD_NOT_FIND_TASK"; COULD_NOT_IMPORT_TASK: "COULD_NOT_IMPORT_TASK"; DISK_SPACE_EXCEEDED: "DISK_SPACE_EXCEEDED"; GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT"; HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR"; MAX_DURATION_EXCEEDED: "MAX_DURATION_EXCEEDED"; OUTDATED_SDK_VERSION: "OUTDATED_SDK_VERSION"; PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE"; POD_EVICTED: "POD_EVICTED"; POD_UNKNOWN_ERROR: "POD_UNKNOWN_ERROR"; RECURSIVE_WAIT_DEADLOCK: "RECURSIVE_WAIT_DEADLOCK"; TASK_ALREADY_RUNNING: "TASK_ALREADY_RUNNING"; TASK_DEQUEUED_INVALID_STATE: "TASK_DEQUEUED_INVALID_STATE"; TASK_DEQUEUED_QUEUE_NOT_FOUND: "TASK_DEQUEUED_QUEUE_NOT_FOUND"; TASK_DID_CONCURRENT_WAIT: "TASK_DID_CONCURRENT_WAIT"; TASK_EXECUTION_ABORTED: "TASK_EXECUTION_ABORTED"; TASK_EXECUTION_FAILED: "TASK_EXECUTION_FAILED"; TASK_HAS_N0_EXECUTION_SNAPSHOT: "TASK_HAS_N0_EXECUTION_SNAPSHOT"; TASK_INPUT_ERROR: "TASK_INPUT_ERROR"; TASK_MIDDLEWARE_ERROR: "TASK_MIDDLEWARE_ERROR"; TASK_OUTPUT_ERROR: "TASK_OUTPUT_ERROR"; TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE: "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE"; TASK_PROCESS_MAYBE_OOM_KILLED: "TASK_PROCESS_MAYBE_OOM_KILLED"; TASK_PROCESS_OOM_KILLED: "TASK_PROCESS_OOM_KILLED"; TASK_PROCESS_SIGKILL_TIMEOUT: "TASK_PROCESS_SIGKILL_TIMEOUT"; TASK_PROCESS_SIGSEGV: "TASK_PROCESS_SIGSEGV"; TASK_PROCESS_SIGTERM: "TASK_PROCESS_SIGTERM"; TASK_RUN_CANCELLED: "TASK_RUN_CANCELLED"; TASK_RUN_CRASHED: "TASK_RUN_CRASHED"; TASK_RUN_DEQUEUED_MAX_RETRIES: "TASK_RUN_DEQUEUED_MAX_RETRIES"; TASK_RUN_HEARTBEAT_TIMEOUT: "TASK_RUN_HEARTBEAT_TIMEOUT"; TASK_RUN_STALLED_EXECUTING: "TASK_RUN_STALLED_EXECUTING"; TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS: "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS"; TASK_RUN_UNCAUGHT_EXCEPTION: "TASK_RUN_UNCAUGHT_EXCEPTION"; UNSPECIFIED_ERROR: "UNSPECIFIED_ERROR"; }>; message: z.ZodOptional; stackTrace: z.ZodOptional; }, z.core.$strip>]>>>; realtimeStreams: z.ZodDefault>>>; }, z.core.$strip>; export type SubscribeRunRawShape = z.infer; export declare const BatchStatus: z.ZodEnum<{ ABORTED: "ABORTED"; COMPLETED: "COMPLETED"; PARTIAL_FAILED: "PARTIAL_FAILED"; PENDING: "PENDING"; PROCESSING: "PROCESSING"; }>; export type BatchStatus = z.infer; export declare const RetrieveBatchResponse: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ ABORTED: "ABORTED"; COMPLETED: "COMPLETED"; PARTIAL_FAILED: "PARTIAL_FAILED"; PENDING: "PENDING"; PROCESSING: "PROCESSING"; }>; idempotencyKey: z.ZodOptional; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; runCount: z.ZodNumber; runs: z.ZodArray; }, z.core.$strip>; export type RetrieveBatchResponse = z.infer; export declare const RetrieveBatchV2Response: z.ZodObject<{ id: z.ZodString; status: z.ZodEnum<{ ABORTED: "ABORTED"; COMPLETED: "COMPLETED"; PARTIAL_FAILED: "PARTIAL_FAILED"; PENDING: "PENDING"; PROCESSING: "PROCESSING"; }>; idempotencyKey: z.ZodOptional; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; runCount: z.ZodNumber; runs: z.ZodArray; processing: z.ZodObject<{ completedAt: z.ZodOptional>; errors: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; export type RetrieveBatchV2Response = z.infer; export declare const SubscribeRealtimeStreamChunkRawShape: z.ZodObject<{ id: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; key: z.ZodString; value: z.ZodString; createdAt: z.ZodCoercedDate; }, z.core.$strip>; export type SubscribeRealtimeStreamChunkRawShape = z.infer; export declare const TimePeriod: z.ZodUnion<[z.ZodString, z.ZodCoercedDate]>; export type TimePeriod = z.infer; export declare const CreateWaitpointTokenRequestBody: z.ZodObject<{ idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; timeout: z.ZodOptional]>>; tags: z.ZodOptional]>>; }, z.core.$strip>; export type CreateWaitpointTokenRequestBody = z.infer; export declare const CreateWaitpointTokenResponseBody: z.ZodObject<{ id: z.ZodString; isCached: z.ZodBoolean; url: z.ZodString; }, z.core.$strip>; export type CreateWaitpointTokenResponseBody = z.infer; export declare const CreateInputStreamWaitpointRequestBody: z.ZodObject<{ streamId: z.ZodString; timeout: z.ZodOptional; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; tags: z.ZodOptional]>>; lastSeqNum: z.ZodOptional; }, z.core.$strip>; export type CreateInputStreamWaitpointRequestBody = z.infer; export declare const CreateInputStreamWaitpointResponseBody: z.ZodObject<{ waitpointId: z.ZodString; isCached: z.ZodBoolean; }, z.core.$strip>; export type CreateInputStreamWaitpointResponseBody = z.infer; /** * Create a run-scoped waitpoint that completes when the next record lands on * a Session channel (`.in` or `.out`). Mirrors `CreateInputStreamWaitpointRequestBody` * but keyed by `{sessionId, io}` instead of `{runId, streamId}`. The run is * still the thing being suspended — Session only supplies the trigger source. */ export declare const CreateSessionStreamWaitpointRequestBody: z.ZodObject<{ session: z.ZodString; io: z.ZodEnum<{ in: "in"; out: "out"; }>; timeout: z.ZodOptional; idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; tags: z.ZodOptional]>>; lastSeqNum: z.ZodOptional; }, z.core.$strip>; export type CreateSessionStreamWaitpointRequestBody = z.infer; export declare const CreateSessionStreamWaitpointResponseBody: z.ZodObject<{ waitpointId: z.ZodString; isCached: z.ZodBoolean; }, z.core.$strip>; export type CreateSessionStreamWaitpointResponseBody = z.infer; export declare const waitpointTokenStatuses: readonly ["WAITING", "COMPLETED", "TIMED_OUT"]; export declare const WaitpointTokenStatus: z.ZodEnum<{ COMPLETED: "COMPLETED"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; export type WaitpointTokenStatus = z.infer; export declare const WaitpointTokenItem: z.ZodObject<{ id: z.ZodString; url: z.ZodString; status: z.ZodEnum<{ COMPLETED: "COMPLETED"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; completedAt: z.ZodOptional>; completedAfter: z.ZodOptional>; timeoutAt: z.ZodOptional>; idempotencyKey: z.ZodOptional; idempotencyKeyExpiresAt: z.ZodOptional>; tags: z.ZodArray; createdAt: z.ZodCoercedDate; }, z.core.$strip>; export type WaitpointTokenItem = z.infer; export declare const WaitpointListTokenItem: z.ZodObject<{ id: z.ZodString; url: z.ZodString; status: z.ZodEnum<{ COMPLETED: "COMPLETED"; TIMED_OUT: "TIMED_OUT"; WAITING: "WAITING"; }>; completedAt: z.ZodOptional>; timeoutAt: z.ZodOptional>; idempotencyKey: z.ZodOptional; idempotencyKeyExpiresAt: z.ZodOptional>; tags: z.ZodArray; createdAt: z.ZodCoercedDate; }, z.core.$strip>; export type WaitpointListTokenItem = z.infer; export declare const WaitpointRetrieveTokenResponse: z.ZodIntersection; completedAt: z.ZodOptional>; timeoutAt: z.ZodOptional>; idempotencyKey: z.ZodOptional; idempotencyKeyExpiresAt: z.ZodOptional>; tags: z.ZodArray; createdAt: z.ZodCoercedDate; }, z.core.$strip>, z.ZodObject<{ output: z.ZodOptional; outputType: z.ZodOptional; outputIsError: z.ZodOptional; }, z.core.$strip>>; export type WaitpointRetrieveTokenResponse = z.infer; export declare const CompleteWaitpointTokenRequestBody: z.ZodObject<{ data: z.ZodOptional>; }, z.core.$strip>; export type CompleteWaitpointTokenRequestBody = z.infer; /** * Trigger config persisted on a Session. Drives every run the session * schedules — `basePayload` is the customer's wire payload (for * chat.agent: `{ chatId, ...clientData }`), runtime fields like * `trigger: "preload" | "trigger"` are merged on top per-call by the * server's trigger machinery. */ export declare const SessionTriggerConfig: z.ZodObject<{ basePayload: z.ZodRecord; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>; export type SessionTriggerConfig = z.infer; /** * Request body for `POST /api/v1/sessions`. Creates a Session and * triggers its first run. Sessions are task-bound: `taskIdentifier` and * `triggerConfig` are required, and re-runs scheduled by the server * (after run termination, after `end-and-continue`) reuse the same * config. */ export declare const CreateSessionRequestBody: z.ZodObject<{ type: z.ZodString; externalId: z.ZodOptional; taskIdentifier: z.ZodString; triggerConfig: z.ZodObject<{ basePayload: z.ZodRecord; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>; tags: z.ZodOptional>; metadata: z.ZodOptional>; expiresAt: z.ZodOptional>; }, z.core.$strip>; export type CreateSessionRequestBody = z.infer; export declare const SessionItem: z.ZodObject<{ id: z.ZodString; externalId: z.ZodNullable; type: z.ZodString; taskIdentifier: z.ZodString; triggerConfig: z.ZodOptional; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; currentRunId: z.ZodOptional>; tags: z.ZodArray; metadata: z.ZodNullable>; closedAt: z.ZodNullable>; closedReason: z.ZodNullable; expiresAt: z.ZodNullable>; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; }, z.core.$strip>; export type SessionItem = z.infer; export declare const CreatedSessionResponseBody: z.ZodObject<{ id: z.ZodString; externalId: z.ZodNullable; type: z.ZodString; taskIdentifier: z.ZodString; triggerConfig: z.ZodOptional; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; currentRunId: z.ZodOptional>; tags: z.ZodArray; metadata: z.ZodNullable>; closedAt: z.ZodNullable>; closedReason: z.ZodNullable; expiresAt: z.ZodNullable>; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; runId: z.ZodString; publicAccessToken: z.ZodString; isCached: z.ZodBoolean; pendingVersion: z.ZodOptional; }, z.core.$strip>; export type CreatedSessionResponseBody = z.infer; export declare const RetrieveSessionResponseBody: z.ZodObject<{ id: z.ZodString; externalId: z.ZodNullable; type: z.ZodString; taskIdentifier: z.ZodString; triggerConfig: z.ZodOptional; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; currentRunId: z.ZodOptional>; tags: z.ZodArray; metadata: z.ZodNullable>; closedAt: z.ZodNullable>; closedReason: z.ZodNullable; expiresAt: z.ZodNullable>; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; }, z.core.$strip>; export type RetrieveSessionResponseBody = z.infer; /** * Body for `POST /api/v1/sessions/:session/end-and-continue`. Used by the * running agent to request a clean handoff to a fresh run on the latest * deployed version (typical use case: `chat.requestUpgrade`). The * server triggers a new run, atomically swaps `currentRunId`, and the * caller exits. */ export declare const EndAndContinueSessionRequestBody: z.ZodObject<{ callingRunId: z.ZodString; reason: z.ZodString; externalDeploymentId: z.ZodOptional; }, z.core.$strip>; export type EndAndContinueSessionRequestBody = z.infer; export declare const EndAndContinueSessionResponseBody: z.ZodObject<{ runId: z.ZodString; swapped: z.ZodBoolean; pendingVersion: z.ZodOptional; }, z.core.$strip>; export type EndAndContinueSessionResponseBody = z.infer; export declare const UpdateSessionRequestBody: z.ZodObject<{ tags: z.ZodOptional>; metadata: z.ZodOptional>>; externalId: z.ZodOptional, z.ZodString]>>; }, z.core.$strip>; export type UpdateSessionRequestBody = z.infer; export declare const CloseSessionRequestBody: z.ZodObject<{ reason: z.ZodOptional; callingRunId: z.ZodOptional; }, z.core.$strip>; export type CloseSessionRequestBody = z.infer; export declare const SessionStatus: z.ZodEnum<{ ACTIVE: "ACTIVE"; CLOSED: "CLOSED"; EXPIRED: "EXPIRED"; }>; export type SessionStatus = z.infer; /** * Server-side validation schema for `GET /api/v1/sessions`. Follows the same * cursor-pagination convention as runs/waitpoints (`page[size]`, * `page[after]`, `page[before]`) and uses the `filter[*]` prefix for * narrowing fields — both produced automatically by `zodfetchCursorPage` * and the matching client-side search-query helper. */ export declare const ListSessionsQueryParams: z.ZodObject<{ "page[size]": z.ZodDefault>; "page[after]": z.ZodOptional; "page[before]": z.ZodOptional; "filter[type]": z.ZodOptional]>>; "filter[tags]": z.ZodOptional]>>; "filter[taskIdentifier]": z.ZodOptional]>>; "filter[externalId]": z.ZodOptional; "filter[status]": z.ZodOptional, z.ZodArray>]>>; "filter[createdAt][period]": z.ZodOptional; "filter[createdAt][from]": z.ZodOptional>; "filter[createdAt][to]": z.ZodOptional>; }, z.core.$strip>; export type ListSessionsQueryParams = z.infer; /** * Client-facing list options — flattened shape that * {@link ApiClient.listSessions} converts into the `filter[*]` / `page[*]` * query string before sending. */ export declare const ListSessionsOptions: z.ZodObject<{ limit: z.ZodOptional; after: z.ZodOptional; before: z.ZodOptional; type: z.ZodOptional]>>; tag: z.ZodOptional]>>; taskIdentifier: z.ZodOptional]>>; externalId: z.ZodOptional; status: z.ZodOptional, z.ZodArray>]>>; period: z.ZodOptional; from: z.ZodOptional>; to: z.ZodOptional>; }, z.core.$strip>; export type ListSessionsOptions = z.infer; export declare const ListedSessionItem: z.ZodObject<{ id: z.ZodString; externalId: z.ZodNullable; type: z.ZodString; taskIdentifier: z.ZodString; triggerConfig: z.ZodOptional; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; currentRunId: z.ZodOptional>; tags: z.ZodArray; metadata: z.ZodNullable>; closedAt: z.ZodNullable>; closedReason: z.ZodNullable; expiresAt: z.ZodNullable>; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; }, z.core.$strip>; export type ListedSessionItem = z.infer; export declare const ListSessionsResponseBody: z.ZodObject<{ data: z.ZodArray; type: z.ZodString; taskIdentifier: z.ZodString; triggerConfig: z.ZodOptional; machine: z.ZodOptional>; queue: z.ZodOptional; concurrency: z.ZodOptional>; concurrencyKey: z.ZodOptional, z.ZodTransform>>; tags: z.ZodOptional>; maxAttempts: z.ZodOptional; maxDuration: z.ZodOptional; lockToVersion: z.ZodOptional; externalDeploymentId: z.ZodOptional; region: z.ZodOptional; idleTimeoutInSeconds: z.ZodOptional; ttl: z.ZodOptional>; }, z.core.$strip>>; currentRunId: z.ZodOptional>; tags: z.ZodArray; metadata: z.ZodNullable>; closedAt: z.ZodNullable>; closedReason: z.ZodNullable; expiresAt: z.ZodNullable>; createdAt: z.ZodCoercedDate; updatedAt: z.ZodCoercedDate; }, z.core.$strip>>; pagination: z.ZodObject<{ next: z.ZodOptional; previous: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type ListSessionsResponseBody = z.infer; export declare const CompleteWaitpointTokenResponseBody: z.ZodObject<{ success: z.ZodLiteral; }, z.core.$strip>; export type CompleteWaitpointTokenResponseBody = z.infer; export declare const WaitForWaitpointTokenResponseBody: z.ZodObject<{ success: z.ZodBoolean; }, z.core.$strip>; export type WaitForWaitpointTokenResponseBody = z.infer; export declare const WaitForDurationRequestBody: z.ZodObject<{ idempotencyKey: z.ZodOptional; idempotencyKeyTTL: z.ZodOptional; date: z.ZodCoercedDate; }, z.core.$strip>; export type WaitForDurationRequestBody = z.infer; export declare const WaitForDurationResponseBody: z.ZodObject<{ waitUntil: z.ZodCoercedDate; waitpoint: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type WaitForDurationResponseBody = z.infer; export declare function isWaitpointOutputTimeout(output: string): boolean; export declare function timeoutError(timeout: Date): { code: string; message: string; }; export declare const ApiDeploymentListParams: { from: z.ZodOptional; to: z.ZodOptional; period: z.ZodOptional; status: z.ZodOptional>; cursor: z.ZodOptional; limit: z.ZodOptional>; }; export declare const ApiDeploymentListOptions: z.ZodObject<{ from: z.ZodOptional; to: z.ZodOptional; period: z.ZodOptional; status: z.ZodOptional>; cursor: z.ZodOptional; limit: z.ZodOptional>; }, z.core.$strip>; export type ApiDeploymentListOptions = z.infer; export declare const ApiDeploymentListSearchParams: z.ZodObject<{ from: z.ZodOptional; to: z.ZodOptional; period: z.ZodOptional; status: z.ZodOptional>; "page[after]": z.ZodOptional; "page[size]": z.ZodOptional>; }, z.core.$strip>; export type ApiDeploymentListSearchParams = z.infer; export declare const ApiDeploymentListResponseItem: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodCoercedDate; shortCode: z.ZodString; version: z.ZodString; runtime: z.ZodNullable; runtimeVersion: z.ZodNullable; status: z.ZodEnum<{ BUILDING: "BUILDING"; CANCELED: "CANCELED"; DEPLOYED: "DEPLOYED"; DEPLOYING: "DEPLOYING"; FAILED: "FAILED"; PENDING: "PENDING"; TIMED_OUT: "TIMED_OUT"; }>; deployedAt: z.ZodOptional>; git: z.ZodOptional>; error: z.ZodOptional; stderr: z.ZodOptional; }, z.core.$strip>>; externalId: z.ZodOptional>; }, z.core.$strip>; export type ApiDeploymentListResponseItem = z.infer; export declare const RetrieveCurrentDeploymentResponseBody: z.ZodObject<{ id: z.ZodString; createdAt: z.ZodCoercedDate; shortCode: z.ZodString; version: z.ZodString; runtime: z.ZodNullable; runtimeVersion: z.ZodNullable; status: z.ZodEnum<{ BUILDING: "BUILDING"; CANCELED: "CANCELED"; DEPLOYED: "DEPLOYED"; DEPLOYING: "DEPLOYING"; FAILED: "FAILED"; PENDING: "PENDING"; TIMED_OUT: "TIMED_OUT"; }>; deployedAt: z.ZodOptional>; git: z.ZodOptional>; error: z.ZodOptional; stderr: z.ZodOptional; }, z.core.$strip>>; externalId: z.ZodOptional>; }, z.core.$strip>; export type RetrieveCurrentDeploymentResponseBody = ApiDeploymentListResponseItem; export declare const ApiBranchListResponseBody: z.ZodObject<{ branches: z.ZodArray; updatedAt: z.ZodCoercedDate; git: z.ZodOptional>; isPaused: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; export type ApiBranchListResponseBody = z.infer; export declare const RetrieveRunTraceSpanSchema: z.ZodObject<{ id: z.ZodString; parentId: z.ZodOptional; runId: z.ZodString; data: z.ZodObject<{ message: z.ZodString; taskSlug: z.ZodOptional; taskPath: z.ZodOptional; events: z.ZodOptional>; startTime: z.ZodCoercedDate; duration: z.ZodNumber; isError: z.ZodBoolean; isPartial: z.ZodBoolean; isCancelled: z.ZodBoolean; level: z.ZodString; workerVersion: z.ZodOptional; queueName: z.ZodOptional; machinePreset: z.ZodOptional; properties: z.ZodOptional>; output: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type RetrieveRunTraceSpan = z.infer & { children: Array; }; export declare const RetrieveRunTraceSpan: z.ZodType; export declare const RetrieveRunTraceResponseBody: z.ZodObject<{ trace: z.ZodObject<{ traceId: z.ZodString; rootSpan: z.ZodType>; }, z.core.$strip>; }, z.core.$strip>; export type RetrieveRunTraceResponseBody = z.infer; export declare const RetrieveRunTracePageSpan: z.ZodObject<{ id: z.ZodString; parentId: z.ZodOptional; runId: z.ZodString; message: z.ZodString; startTime: z.ZodCoercedDate; duration: z.ZodNumber; isError: z.ZodBoolean; isPartial: z.ZodBoolean; isCancelled: z.ZodBoolean; level: z.ZodString; attemptNumber: z.ZodOptional; }, z.core.$strip>; export type RetrieveRunTracePageSpan = z.infer; export declare const RetrieveRunTraceAttemptFailure: z.ZodObject<{ spanId: z.ZodString; attemptNumber: z.ZodNumber; runId: z.ZodString; }, z.core.$strip>; export type RetrieveRunTraceAttemptFailure = z.infer; export declare const RetrieveRunTracePageResponseBody: z.ZodObject<{ data: z.ZodArray; runId: z.ZodString; message: z.ZodString; startTime: z.ZodCoercedDate; duration: z.ZodNumber; isError: z.ZodBoolean; isPartial: z.ZodBoolean; isCancelled: z.ZodBoolean; level: z.ZodString; attemptNumber: z.ZodOptional; }, z.core.$strip>>; attemptFailures: z.ZodArray>; pagination: z.ZodObject<{ next: z.ZodOptional; truncated: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type RetrieveRunTracePageResponseBody = z.infer; export declare const RetrieveSpanDetailResponseBody: z.ZodObject<{ spanId: z.ZodString; parentId: z.ZodNullable; runId: z.ZodString; message: z.ZodString; isError: z.ZodBoolean; isPartial: z.ZodBoolean; isCancelled: z.ZodBoolean; level: z.ZodString; startTime: z.ZodCoercedDate; durationMs: z.ZodNumber; properties: z.ZodOptional>; events: z.ZodOptional>; entityType: z.ZodOptional; ai: z.ZodOptional; reasoningTokens: z.ZodOptional; inputCost: z.ZodOptional; outputCost: z.ZodOptional; totalCost: z.ZodOptional; cachedCost: z.ZodOptional; cacheCreationCost: z.ZodOptional; tokensPerSecond: z.ZodOptional; msToFirstChunk: z.ZodOptional; durationMs: z.ZodNumber; finishReason: z.ZodOptional; responseText: z.ZodOptional; }, z.core.$strip>>; triggeredRuns: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; export type RetrieveSpanDetailResponseBody = z.infer; export declare const CreateStreamResponseBody: z.ZodObject<{ version: z.ZodString; }, z.core.$strip>; export type CreateStreamResponseBody = z.infer; export declare const AppendToStreamResponseBody: z.ZodObject<{ ok: z.ZodBoolean; message: z.ZodOptional; }, z.core.$strip>; export type AppendToStreamResponseBody = z.infer; export declare const SendInputStreamResponseBody: z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>; export type SendInputStreamResponseBody = z.infer; /** * Response body for `GET /realtime/v1/sessions/:id/:io/records`. A non-SSE, * `wait=0` drain of a session channel — used at run boot for snapshot * replay where the SSE long-poll tax (~1s on empty streams) was the * dominant cost. * * `data` is the parsed chunk body (the SDK writer puts the chunk object * directly into the S2 record envelope; the route unwraps the envelope * and forwards the inner object as-is). Callers use it directly — no * additional JSON.parse step. Schema is `z.unknown()` because chunk * shape varies by `chunk.type` (the AI SDK's `UIMessageChunk` * discriminated union plus Trigger control records); consumers * already runtime-check on the discriminator and tolerate malformed * records by skipping them. */ export declare const ReadSessionStreamRecordsResponseBody: z.ZodObject<{ records: z.ZodArray>>; }, z.core.$strip>>; }, z.core.$strip>; export type ReadSessionStreamRecordsResponseBody = z.infer; export declare const ResolvePromptRequestBody: z.ZodObject<{ variables: z.ZodDefault>; label: z.ZodOptional; version: z.ZodOptional; }, z.core.$strip>; export type ResolvePromptRequestBody = z.infer; export declare const ResolvePromptResponseBody: z.ZodObject<{ data: z.ZodObject<{ promptId: z.ZodString; slug: z.ZodString; version: z.ZodNumber; labels: z.ZodArray; template: z.ZodOptional; text: z.ZodOptional; model: z.ZodNullable>; config: z.ZodNullable>>; }, z.core.$strip>; }, z.core.$strip>; export type ResolvePromptResponseBody = z.infer; export declare const ListPromptsResponseBody: z.ZodObject<{ data: z.ZodArray; tags: z.ZodArray; defaultModel: z.ZodNullable; currentVersion: z.ZodNullable; hasOverride: z.ZodBoolean; updatedAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type ListPromptsResponseBody = z.infer; export declare const ListPromptVersionsResponseBody: z.ZodObject<{ data: z.ZodArray; source: z.ZodString; model: z.ZodNullable; textContent: z.ZodNullable; commitMessage: z.ZodNullable; contentHash: z.ZodString; createdAt: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type ListPromptVersionsResponseBody = z.infer; export declare const PromotePromptVersionRequestBody: z.ZodObject<{ version: z.ZodNumber; }, z.core.$strip>; export type PromotePromptVersionRequestBody = z.infer; export declare const CreatePromptOverrideRequestBody: z.ZodObject<{ textContent: z.ZodString; model: z.ZodOptional; commitMessage: z.ZodOptional; source: z.ZodOptional; }, z.core.$strip>; export type CreatePromptOverrideRequestBody = z.infer; export declare const UpdatePromptOverrideRequestBody: z.ZodObject<{ textContent: z.ZodOptional; model: z.ZodOptional; commitMessage: z.ZodOptional; }, z.core.$strip>; export type UpdatePromptOverrideRequestBody = z.infer; export declare const ReactivatePromptOverrideRequestBody: z.ZodObject<{ version: z.ZodNumber; }, z.core.$strip>; export type ReactivatePromptOverrideRequestBody = z.infer; export declare const PromptOkResponseBody: z.ZodObject<{ ok: z.ZodBoolean; }, z.core.$strip>; export type PromptOkResponseBody = z.infer; export declare const PromptOverrideCreatedResponseBody: z.ZodObject<{ ok: z.ZodBoolean; version: z.ZodNumber; }, z.core.$strip>; export type PromptOverrideCreatedResponseBody = z.infer; export {};