import { z } from "zod"; export declare const interruptSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"approval">; }, "strip", z.ZodTypeAny, { type: "approval"; }, { type: "approval"; }>]>; export declare const blobSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodEnum<["application/json", "image/png", "image/jpeg"]>; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }>; export declare const VersionedTextsSchema: z.ZodObject<{ current: z.ZodObject<{ version: z.ZodString; content: z.ZodString; }, "strip", z.ZodTypeAny, { version: string; content: string; }, { version: string; content: string; }>; history: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }>; export declare const integrationSchema: z.ZodObject<{ toolhouse: z.ZodNullable>>; langfuse: z.ZodNullable>>; tavily: z.ZodNullable>>; valtown: z.ZodNullable>>; slack: z.ZodNullable; }, "strip", z.ZodTypeAny, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }>>>; email: z.ZodNullable; validateSPFandDKIM: z.ZodOptional; }, "strip", z.ZodTypeAny, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }>>>; }, "strip", z.ZodTypeAny, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }>; export declare const learningSchema: z.ZodObject<{ summary: z.ZodString; entities: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; }, { type: "tool"; name: string; }>, "many">; relevance: z.ZodObject<{ temporality: z.ZodEnum<["transient", "persistent"]>; }, "strip", z.ZodTypeAny, { temporality: "transient" | "persistent"; }, { temporality: "transient" | "persistent"; }>; }, "strip", z.ZodTypeAny, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }>; export declare const unifiedMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject; data: z.ZodObject<{ done: z.ZodOptional; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; message: z.ZodOptional; learnings: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; }, { type: "tool"; name: string; }>, "many">; relevance: z.ZodObject<{ temporality: z.ZodEnum<["transient", "persistent"]>; }, "strip", z.ZodTypeAny, { temporality: "transient" | "persistent"; }, { temporality: "transient" | "persistent"; }>; }, "strip", z.ZodTypeAny, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }>, "many">>; issue: z.ZodOptional; invocations: z.ZodOptional; toolName: z.ZodString; reasoning: z.ZodOptional; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }, { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ id: z.ZodString; result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strict", z.ZodTypeAny, { id: string; result: {} & { [k: string]: unknown; }; }, { id: string; result: {} & { [k: string]: unknown; }; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>]>; export type UnifiedMessage = z.infer; export type MessageTypes = "agent" | "human" | "template" | "invocation-result" | "supervisor" | "agent-invalid"; export type UnifiedMessageOfType = Extract; export declare const FunctionConfigSchema: z.ZodObject<{ cache: z.ZodOptional>; retryCountOnStall: z.ZodOptional; timeoutSeconds: z.ZodOptional; private: z.ZodOptional>; }, "strip", z.ZodTypeAny, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }>; export declare const definition: { readonly live: { readonly method: "GET"; readonly path: "/live"; readonly responses: { readonly 200: z.ZodObject<{ status: z.ZodString; }, "strip", z.ZodTypeAny, { status: string; }, { status: string; }>; }; }; readonly createEphemeralSetup: { readonly method: "POST"; readonly path: "/ephemeral-setup"; readonly responses: { readonly 200: z.ZodObject<{ clusterId: z.ZodString; apiKey: z.ZodString; }, "strip", z.ZodTypeAny, { apiKey: string; clusterId: string; }, { apiKey: string; clusterId: string; }>; }; readonly body: z.ZodUndefined; }; readonly getContract: { readonly method: "GET"; readonly path: "/contract"; readonly responses: { readonly 200: z.ZodObject<{ contract: z.ZodString; }, "strip", z.ZodTypeAny, { contract: string; }, { contract: string; }>; }; }; readonly createStructuredOutput: { readonly method: "POST"; readonly path: "/clusters/:clusterId/structured-output"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ prompt: z.ZodString; resultSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; modelId: z.ZodEnum<["claude-3-5-sonnet", "claude-3-haiku"]>; temperature: z.ZodDefault>; }, "strip", z.ZodTypeAny, { prompt: string; modelId: "claude-3-5-sonnet" | "claude-3-haiku"; temperature: number; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { prompt: string; modelId: "claude-3-5-sonnet" | "claude-3-haiku"; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; temperature?: number | undefined; }>; readonly responses: { readonly 200: z.ZodUnknown; readonly 401: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly getJob: { readonly method: "GET"; readonly path: "/clusters/:clusterId/jobs/:jobId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly responses: { readonly 200: z.ZodObject<{ id: z.ZodString; status: z.ZodString; targetFn: z.ZodString; service: z.ZodString; executingMachineId: z.ZodNullable; targetArgs: z.ZodString; result: z.ZodNullable; resultType: z.ZodNullable; createdAt: z.ZodDate; blobs: z.ZodArray; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }>, "many">; approved: z.ZodNullable; approvalRequested: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; targetArgs: string; resultType: string | null; blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; approved: boolean | null; approvalRequested: boolean | null; }, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; targetArgs: string; resultType: string | null; blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; approved: boolean | null; approvalRequested: boolean | null; }>; }; }; readonly createJob: { readonly method: "POST"; readonly path: "/clusters/:clusterId/jobs"; readonly query: z.ZodObject<{ waitTime: z.ZodDefault; }, "strip", z.ZodTypeAny, { waitTime: number; }, { waitTime?: number | undefined; }>; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ service: z.ZodString; function: z.ZodString; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { function: string; service: string; input: {} & { [k: string]: unknown; }; }, { function: string; service: string; input: {} & { [k: string]: unknown; }; }>; readonly responses: { readonly 401: z.ZodUndefined; readonly 200: z.ZodObject<{ id: z.ZodString; result: z.ZodNullable; resultType: z.ZodNullable>; status: z.ZodEnum<["pending", "running", "success", "failure", "stalled"]>; }, "strip", z.ZodTypeAny, { status: "pending" | "running" | "success" | "failure" | "stalled"; id: string; resultType: "resolution" | "rejection" | "interrupt" | null; result?: any; }, { status: "pending" | "running" | "success" | "failure" | "stalled"; id: string; resultType: "resolution" | "rejection" | "interrupt" | null; result?: any; }>; }; }; readonly cancelJob: { readonly method: "POST"; readonly path: "/clusters/:clusterId/jobs/:jobId/cancel"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; readonly body: z.ZodUndefined; }; readonly createJobResult: { readonly method: "POST"; readonly path: "/clusters/:clusterId/jobs/:jobId/result"; readonly headers: z.ZodObject<{ "x-machine-id": z.ZodOptional; "x-machine-sdk-version": z.ZodOptional; "x-machine-sdk-language": z.ZodOptional; "x-forwarded-for": z.ZodOptional>; "x-sentinel-no-mask": z.ZodOptional>; "x-sentinel-unmask-keys": z.ZodOptional; authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; readonly body: z.ZodObject<{ result: z.ZodAny; resultType: z.ZodEnum<["resolution", "rejection", "interrupt"]>; meta: z.ZodObject<{ functionExecutionTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { functionExecutionTime?: number | undefined; }, { functionExecutionTime?: number | undefined; }>; }, "strip", z.ZodTypeAny, { resultType: "resolution" | "rejection" | "interrupt"; meta: { functionExecutionTime?: number | undefined; }; result?: any; }, { resultType: "resolution" | "rejection" | "interrupt"; meta: { functionExecutionTime?: number | undefined; }; result?: any; }>; }; readonly listJobs: { readonly method: "GET"; readonly path: "/clusters/:clusterId/jobs"; readonly query: z.ZodObject<{ service: z.ZodString; status: z.ZodDefault>; limit: z.ZodDefault; acknowledge: z.ZodDefault; }, "strip", z.ZodTypeAny, { service: string; status: "done" | "pending" | "running" | "paused" | "failed"; limit: number; acknowledge: boolean; }, { service: string; status?: "done" | "pending" | "running" | "paused" | "failed" | undefined; limit?: number | undefined; acknowledge?: boolean | undefined; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly headers: z.ZodObject<{ "x-machine-id": z.ZodOptional; "x-machine-sdk-version": z.ZodOptional; "x-machine-sdk-language": z.ZodOptional; "x-forwarded-for": z.ZodOptional>; "x-sentinel-no-mask": z.ZodOptional>; "x-sentinel-unmask-keys": z.ZodOptional; authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }>; readonly responses: { readonly 401: z.ZodUndefined; readonly 410: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; readonly 200: z.ZodArray; runContext: z.ZodNullable; approved: z.ZodBoolean; }, "strip", z.ZodTypeAny, { function: string; id: string; approved: boolean; input?: any; authContext?: any; runContext?: any; }, { function: string; id: string; approved: boolean; input?: any; authContext?: any; runContext?: any; }>, "many">; }; }; readonly createJobApproval: { readonly method: "POST"; readonly path: "/clusters/:clusterId/jobs/:jobId/approval"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly responses: { readonly 204: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; readonly body: z.ZodObject<{ approved: z.ZodBoolean; }, "strip", z.ZodTypeAny, { approved: boolean; }, { approved: boolean; }>; }; readonly createJobBlob: { readonly method: "POST"; readonly path: "/clusters/:clusterId/jobs/:jobId/blobs"; readonly headers: z.ZodObject<{ authorization: z.ZodString; "x-machine-id": z.ZodString; "x-machine-sdk-version": z.ZodString; "x-machine-sdk-language": z.ZodString; "x-forwarded-for": z.ZodOptional; "x-sentinel-no-mask": z.ZodOptional; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id": string; "x-machine-sdk-version": string; "x-machine-sdk-language": string; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; }, { authorization: string; "x-machine-id": string; "x-machine-sdk-version": string; "x-machine-sdk-language": string; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly responses: { readonly 201: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; readonly body: z.ZodIntersection; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "id" | "createdAt" | "jobId" | "workflowId">, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; name: string; encoding: "base64"; size: number; }, { type: "application/json" | "image/png" | "image/jpeg"; name: string; encoding: "base64"; size: number; }>, z.ZodObject<{ data: z.ZodString; }, "strip", z.ZodTypeAny, { data: string; }, { data: string; }>>; }; readonly createMachine: { readonly method: "POST"; readonly path: "/machines"; readonly headers: z.ZodObject<{ "x-machine-id": z.ZodOptional; "x-machine-sdk-version": z.ZodOptional; "x-machine-sdk-language": z.ZodOptional; "x-forwarded-for": z.ZodOptional>; "x-sentinel-no-mask": z.ZodOptional>; "x-sentinel-unmask-keys": z.ZodOptional; authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }>; readonly body: z.ZodObject<{ service: z.ZodOptional; functions: z.ZodOptional; schema: z.ZodOptional; config: z.ZodOptional>; retryCountOnStall: z.ZodOptional; timeoutSeconds: z.ZodOptional; private: z.ZodOptional>; }, "strip", z.ZodTypeAny, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { service?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }, { service?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }>; readonly responses: { readonly 200: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly 204: z.ZodUndefined; }; }; readonly createCluster: { readonly method: "POST"; readonly path: "/clusters"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 204: z.ZodUndefined; }; readonly body: z.ZodObject<{ description: z.ZodString; name: z.ZodOptional; isDemo: z.ZodDefault>; }, "strip", z.ZodTypeAny, { description: string; isDemo: boolean; name?: string | undefined; }, { description: string; name?: string | undefined; isDemo?: boolean | undefined; }>; }; readonly deleteCluster: { readonly method: "DELETE"; readonly path: "/clusters/:clusterId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodUndefined; readonly responses: { readonly 204: z.ZodUndefined; }; }; readonly updateCluster: { readonly method: "PUT"; readonly path: "/clusters/:clusterId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; readonly body: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional; additionalContext: z.ZodOptional; history: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }>>; debug: z.ZodOptional; enableCustomAuth: z.ZodOptional; enableKnowledgebase: z.ZodOptional; handleCustomAuthFunction: z.ZodOptional; }, "strip", z.ZodTypeAny, { name?: string | undefined; description?: string | undefined; additionalContext?: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | undefined; debug?: boolean | undefined; enableCustomAuth?: boolean | undefined; enableKnowledgebase?: boolean | undefined; handleCustomAuthFunction?: string | undefined; }, { name?: string | undefined; description?: string | undefined; additionalContext?: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | undefined; debug?: boolean | undefined; enableCustomAuth?: boolean | undefined; enableKnowledgebase?: boolean | undefined; handleCustomAuthFunction?: string | undefined; }>; }; readonly getCluster: { readonly method: "GET"; readonly path: "/clusters/:clusterId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; additionalContext: z.ZodNullable; history: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }>>; createdAt: z.ZodDate; debug: z.ZodBoolean; enableCustomAuth: z.ZodBoolean; handleCustomAuthFunction: z.ZodNullable; isDemo: z.ZodBoolean; machines: z.ZodArray; ip: z.ZodNullable; sdkVersion: z.ZodNullable; sdkLanguage: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }, { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }>, "many">; services: z.ZodArray; timestamp: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; timestamp: Date | null; definition?: unknown; }, { service: string; timestamp: Date | null; definition?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; description: string | null; isDemo: boolean; additionalContext: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | null; debug: boolean; enableCustomAuth: boolean; handleCustomAuthFunction: string | null; machines: { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }[]; services: { service: string; timestamp: Date | null; definition?: unknown; }[]; }, { id: string; name: string; createdAt: Date; description: string | null; isDemo: boolean; additionalContext: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | null; debug: boolean; enableCustomAuth: boolean; handleCustomAuthFunction: string | null; machines: { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }[]; services: { service: string; timestamp: Date | null; definition?: unknown; }[]; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly listClusters: { readonly method: "GET"; readonly path: "/clusters"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodArray; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; description: string | null; }, { id: string; name: string; createdAt: Date; description: string | null; }>, "many">; readonly 401: z.ZodUndefined; }; }; readonly getIntegrations: { readonly method: "GET"; readonly path: "/clusters/:clusterId/integrations"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodObject<{ toolhouse: z.ZodNullable>>; langfuse: z.ZodNullable>>; tavily: z.ZodNullable>>; valtown: z.ZodNullable>>; slack: z.ZodNullable; }, "strip", z.ZodTypeAny, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }>>>; email: z.ZodNullable; validateSPFandDKIM: z.ZodOptional; }, "strip", z.ZodTypeAny, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }>>>; }, "strip", z.ZodTypeAny, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }>; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly upsertIntegrations: { readonly method: "PUT"; readonly path: "/clusters/:clusterId/integrations"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodUndefined; readonly 401: z.ZodUndefined; readonly 400: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly body: z.ZodObject<{ toolhouse: z.ZodNullable>>; langfuse: z.ZodNullable>>; tavily: z.ZodNullable>>; valtown: z.ZodNullable>>; slack: z.ZodNullable; }, "strip", z.ZodTypeAny, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }>>>; email: z.ZodNullable; validateSPFandDKIM: z.ZodOptional; }, "strip", z.ZodTypeAny, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }>>>; }, "strip", z.ZodTypeAny, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }>; }; readonly listEvents: { readonly method: "GET"; readonly path: "/clusters/:clusterId/events"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodArray; service: z.ZodNullable; createdAt: z.ZodDate; jobId: z.ZodNullable; targetFn: z.ZodNullable; resultType: z.ZodNullable; status: z.ZodNullable; workflowId: z.ZodNullable; meta: z.ZodNullable; id: z.ZodString; }, "strip", z.ZodTypeAny, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; workflowId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: any; }, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; workflowId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: any; }>, "many">; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; readonly query: z.ZodObject<{ type: z.ZodOptional; jobId: z.ZodOptional; machineId: z.ZodOptional; service: z.ZodOptional; workflowId: z.ZodOptional; includeMeta: z.ZodOptional; }, "strip", z.ZodTypeAny, { service?: string | undefined; type?: string | undefined; jobId?: string | undefined; workflowId?: string | undefined; machineId?: string | undefined; includeMeta?: string | undefined; }, { service?: string | undefined; type?: string | undefined; jobId?: string | undefined; workflowId?: string | undefined; machineId?: string | undefined; includeMeta?: string | undefined; }>; }; readonly getEventMeta: { readonly method: "GET"; readonly path: "/clusters/:clusterId/events/:eventId/meta"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodObject<{ type: z.ZodString; machineId: z.ZodNullable; service: z.ZodNullable; createdAt: z.ZodDate; jobId: z.ZodNullable; targetFn: z.ZodNullable; resultType: z.ZodNullable; status: z.ZodNullable; meta: z.ZodUnknown; id: z.ZodString; }, "strip", z.ZodTypeAny, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: unknown; }, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: unknown; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; }; readonly listUsageActivity: { readonly method: "GET"; readonly path: "/clusters/:clusterId/usage"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodObject<{ modelUsage: z.ZodArray; totalInputTokens: z.ZodNumber; totalOutputTokens: z.ZodNumber; totalModelInvocations: z.ZodNumber; }, "strip", z.ZodTypeAny, { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }, { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }>, "many">; agentRuns: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { modelUsage: { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }[]; agentRuns: { date: string; totalAgentRuns: number; }[]; }, { modelUsage: { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }[]; agentRuns: { date: string; totalAgentRuns: number; }[]; }>; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly createRun: { readonly method: "POST"; readonly path: "/clusters/:clusterId/runs"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ id: z.ZodEffects, string | undefined, string | undefined>; runId: z.ZodEffects, string | undefined, string | undefined>; initialPrompt: z.ZodOptional; systemPrompt: z.ZodOptional; name: z.ZodOptional; model: z.ZodOptional>; resultSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; attachedFunctions: z.ZodOptional, "many">>; onStatusChange: z.ZodOptional, "many">>>; function: z.ZodOptional>; webhook: z.ZodOptional; }, "strip", z.ZodTypeAny, { statuses: ("done" | "pending" | "running" | "paused" | "failed")[]; function?: { function: string; service: string; } | undefined; webhook?: string | undefined; }, { function?: { function: string; service: string; } | undefined; statuses?: ("done" | "pending" | "running" | "paused" | "failed")[] | undefined; webhook?: string | undefined; }>>; tags: z.ZodOptional>; test: z.ZodOptional; mocks: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { output: {} & { [k: string]: unknown; }; }, { output: {} & { [k: string]: unknown; }; }>>>; }, "strip", z.ZodTypeAny, { enabled: boolean; mocks?: Record | undefined; }, { enabled?: boolean | undefined; mocks?: Record | undefined; }>>; agentId: z.ZodOptional; input: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; context: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; reasoningTraces: z.ZodOptional>; callSummarization: z.ZodOptional>; interactive: z.ZodDefault; enableResultGrounding: z.ZodDefault; }, "strip", z.ZodTypeAny, { interactive: boolean; enableResultGrounding: boolean; id?: string | undefined; name?: string | undefined; agentId?: string | undefined; input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; runId?: string | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; model?: "claude-3-5-sonnet" | "claude-3-haiku" | undefined; attachedFunctions?: { function: string; service: string; }[] | undefined; onStatusChange?: { statuses: ("done" | "pending" | "running" | "paused" | "failed")[]; function?: { function: string; service: string; } | undefined; webhook?: string | undefined; } | undefined; tags?: Record | undefined; test?: { enabled: boolean; mocks?: Record | undefined; } | undefined; context?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; reasoningTraces?: boolean | undefined; callSummarization?: boolean | undefined; }, { id?: string | undefined; name?: string | undefined; agentId?: string | undefined; input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; runId?: string | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; model?: "claude-3-5-sonnet" | "claude-3-haiku" | undefined; attachedFunctions?: { function: string; service: string; }[] | undefined; onStatusChange?: { function?: { function: string; service: string; } | undefined; statuses?: ("done" | "pending" | "running" | "paused" | "failed")[] | undefined; webhook?: string | undefined; } | undefined; tags?: Record | undefined; test?: { enabled?: boolean | undefined; mocks?: Record | undefined; } | undefined; context?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; reasoningTraces?: boolean | undefined; callSummarization?: boolean | undefined; interactive?: boolean | undefined; enableResultGrounding?: boolean | undefined; }>; readonly responses: { readonly 201: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; readonly 401: z.ZodUndefined; readonly 400: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly deleteRun: { readonly method: "DELETE"; readonly path: "/clusters/:clusterId/runs/:runId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodUndefined; readonly responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ runId: z.ZodString; clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; }; readonly listRuns: { readonly method: "GET"; readonly path: "/clusters/:clusterId/runs"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly query: z.ZodObject<{ userId: z.ZodOptional; test: z.ZodOptional>; limit: z.ZodDefault; tags: z.ZodOptional; agentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { limit: number; agentId?: string | undefined; tags?: string | undefined; test?: boolean | undefined; userId?: string | undefined; }, { agentId?: string | undefined; limit?: number | undefined; tags?: string | undefined; test?: string | undefined; userId?: string | undefined; }>; readonly responses: { readonly 200: z.ZodArray; createdAt: z.ZodDate; status: z.ZodNullable>; test: z.ZodBoolean; agentId: z.ZodNullable; agentVersion: z.ZodNullable; feedbackScore: z.ZodNullable; }, "strip", z.ZodTypeAny, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string; createdAt: Date; agentId: string | null; test: boolean; userId: string | null; agentVersion: number | null; feedbackScore: number | null; }, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string; createdAt: Date; agentId: string | null; test: boolean; userId: string | null; agentVersion: number | null; feedbackScore: number | null; }>, "many">; readonly 401: z.ZodUndefined; }; }; readonly getRun: { readonly method: "GET"; readonly path: "/clusters/:clusterId/runs/:runId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodObject<{ id: z.ZodString; userId: z.ZodNullable; status: z.ZodNullable>; failureReason: z.ZodNullable; test: z.ZodBoolean; feedbackComment: z.ZodNullable; feedbackScore: z.ZodNullable; context: z.ZodNullable; authContext: z.ZodNullable; result: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; tags: z.ZodNullable>; attachedFunctions: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; result: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; attachedFunctions: string[] | null; tags: Record | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; authContext?: any; context?: any; }, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; result: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; attachedFunctions: string[] | null; tags: Record | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; authContext?: any; context?: any; }>; readonly 401: z.ZodUndefined; }; }; readonly createFeedback: { readonly method: "POST"; readonly path: "/clusters/:clusterId/runs/:runId/feedback"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ comment: z.ZodNullable; score: z.ZodNullable; }, "strip", z.ZodTypeAny, { comment: string | null; score: number | null; }, { comment: string | null; score: number | null; }>; readonly responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ runId: z.ZodString; clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; }; readonly oas: { readonly method: "GET"; readonly path: "/public/oas.json"; readonly responses: { readonly 200: z.ZodUnknown; }; }; readonly createMessage: { readonly method: "POST"; readonly path: "/clusters/:clusterId/runs/:runId/messages"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ id: z.ZodOptional; message: z.ZodString; type: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; type?: "human" | "supervisor" | undefined; id?: string | undefined; }, { message: string; type?: "human" | "supervisor" | undefined; id?: string | undefined; }>; readonly responses: { readonly 201: z.ZodUndefined; readonly 401: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ runId: z.ZodString; clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; }; readonly listMessages: { readonly method: "GET"; readonly path: "/clusters/:clusterId/runs/:runId/messages"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly query: z.ZodObject<{ waitTime: z.ZodDefault; after: z.ZodDefault; limit: z.ZodDefault; }, "strip", z.ZodTypeAny, { waitTime: number; limit: number; after: string; }, { waitTime?: number | undefined; limit?: number | undefined; after?: string | undefined; }>; readonly responses: { readonly 200: z.ZodArray; data: z.ZodObject<{ done: z.ZodOptional; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; message: z.ZodOptional; learnings: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; }, { type: "tool"; name: string; }>, "many">; relevance: z.ZodObject<{ temporality: z.ZodEnum<["transient", "persistent"]>; }, "strip", z.ZodTypeAny, { temporality: "transient" | "persistent"; }, { temporality: "transient" | "persistent"; }>; }, "strip", z.ZodTypeAny, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }>, "many">>; issue: z.ZodOptional; invocations: z.ZodOptional; toolName: z.ZodString; reasoning: z.ZodOptional; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }, { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ id: z.ZodString; result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strict", z.ZodTypeAny, { id: string; result: {} & { [k: string]: unknown; }; }, { id: string; result: {} & { [k: string]: unknown; }; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>]>, "many">; readonly 401: z.ZodUndefined; }; }; readonly listRunReferences: { readonly method: "GET"; readonly path: "/clusters/:clusterId/runs/:runId/references"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; runId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly query: z.ZodObject<{ token: z.ZodString; before: z.ZodString; }, "strip", z.ZodTypeAny, { token: string; before: string; }, { token: string; before: string; }>; readonly responses: { readonly 200: z.ZodArray; createdAt: z.ZodDate; status: z.ZodString; targetFn: z.ZodString; service: z.ZodString; executingMachineId: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; }, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; }>, "many">; }; }; readonly createApiKey: { readonly method: "POST"; readonly path: "/clusters/:clusterId/api-keys"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly body: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; readonly responses: { readonly 200: z.ZodObject<{ id: z.ZodString; key: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; key: string; }, { id: string; key: string; }>; }; }; readonly listApiKeys: { readonly method: "GET"; readonly path: "/clusters/:clusterId/api-keys"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly responses: { readonly 200: z.ZodArray; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; createdBy: string; revokedAt: Date | null; }, { id: string; name: string; createdAt: Date; createdBy: string; revokedAt: Date | null; }>, "many">; }; }; readonly revokeApiKey: { readonly method: "DELETE"; readonly path: "/clusters/:clusterId/api-keys/:keyId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; keyId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; keyId: string; }, { clusterId: string; keyId: string; }>; readonly body: z.ZodUndefined; readonly responses: { readonly 204: z.ZodUndefined; }; }; readonly listMachines: { readonly method: "GET"; readonly path: "/clusters/:clusterId/machines"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly query: z.ZodObject<{ limit: z.ZodDefault; }, "strip", z.ZodTypeAny, { limit: number; }, { limit?: number | undefined; }>; readonly responses: { readonly 200: z.ZodArray, "many">; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly listServices: { readonly method: "GET"; readonly path: "/clusters/:clusterId/services"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodArray; functions: z.ZodOptional; schema: z.ZodOptional; config: z.ZodOptional>; retryCountOnStall: z.ZodOptional; timeoutSeconds: z.ZodOptional; private: z.ZodOptional>; }, "strip", z.ZodTypeAny, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }>, "many">>; timestamp: z.ZodDate; }, "strip", z.ZodTypeAny, { name: string; timestamp: Date; description?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }, { name: string; timestamp: Date; description?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }>, "many">; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly getRunTimeline: { readonly method: "GET"; readonly path: "/clusters/:clusterId/runs/:runId/timeline"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly query: z.ZodObject<{ messagesAfter: z.ZodDefault; activityAfter: z.ZodDefault; }, "strip", z.ZodTypeAny, { messagesAfter: string; activityAfter: string; }, { messagesAfter?: string | undefined; activityAfter?: string | undefined; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; runId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly responses: { readonly 404: z.ZodUndefined; readonly 200: z.ZodObject<{ messages: z.ZodArray; data: z.ZodObject<{ done: z.ZodOptional; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; message: z.ZodOptional; learnings: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; }, { type: "tool"; name: string; }>, "many">; relevance: z.ZodObject<{ temporality: z.ZodEnum<["transient", "persistent"]>; }, "strip", z.ZodTypeAny, { temporality: "transient" | "persistent"; }, { temporality: "transient" | "persistent"; }>; }, "strip", z.ZodTypeAny, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }>, "many">>; issue: z.ZodOptional; invocations: z.ZodOptional; toolName: z.ZodString; reasoning: z.ZodOptional; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }, { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ id: z.ZodString; result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strict", z.ZodTypeAny, { id: string; result: {} & { [k: string]: unknown; }; }, { id: string; result: {} & { [k: string]: unknown; }; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>]>, "many">; activity: z.ZodArray; service: z.ZodNullable; createdAt: z.ZodDate; jobId: z.ZodNullable; targetFn: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }, { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }>, "many">; jobs: z.ZodArray; createdAt: z.ZodDate; approved: z.ZodNullable; approvalRequested: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }, { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }>, "many">; run: z.ZodObject<{ id: z.ZodString; userId: z.ZodNullable; status: z.ZodNullable>; failureReason: z.ZodNullable; test: z.ZodBoolean; context: z.ZodNullable; authContext: z.ZodNullable; feedbackComment: z.ZodNullable; feedbackScore: z.ZodNullable; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; tags: z.ZodOptional>>; attachedFunctions: z.ZodNullable>; name: z.ZodNullable; }, "strip", z.ZodTypeAny, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }>; blobs: z.ZodArray; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }>, "many">; }, "strip", z.ZodTypeAny, { blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; messages: ({ type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; })[]; activity: { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }[]; jobs: { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }[]; run: { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }; }, { blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; messages: ({ type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; })[]; activity: { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }[]; jobs: { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }[]; run: { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }; }>; }; }; readonly getBlobData: { readonly method: "GET"; readonly path: "/clusters/:clusterId/blobs/:blobId/data"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; blobId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; blobId: string; }, { clusterId: string; blobId: string; }>; readonly responses: { readonly 200: z.ZodAny; readonly 404: z.ZodUndefined; }; }; readonly getAgent: { readonly method: "GET"; readonly path: "/clusters/:clusterId/agents/:agentId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodObject<{ id: z.ZodString; clusterId: z.ZodString; name: z.ZodString; initialPrompt: z.ZodNullable; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodDate; updatedAt: z.ZodDate; versions: z.ZodArray; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { name: string; version: number; resultSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; }, { name: string; version: number; resultSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; clusterId: string; resultSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; updatedAt: Date; versions: { name: string; version: number; resultSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; }[]; }, { id: string; name: string; createdAt: Date; clusterId: string; resultSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; updatedAt: Date; versions: { name: string; version: number; resultSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; }[]; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; readonly query: z.ZodObject<{ withPreviousVersions: z.ZodDefault>; }, "strip", z.ZodTypeAny, { withPreviousVersions: "true" | "false"; }, { withPreviousVersions?: "true" | "false" | undefined; }>; }; readonly createAgent: { readonly method: "POST"; readonly path: "/clusters/:clusterId/agents"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ name: z.ZodString; initialPrompt: z.ZodOptional; systemPrompt: z.ZodOptional; attachedFunctions: z.ZodOptional>; resultSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; }, "strip", z.ZodTypeAny, { name: string; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }, { name: string; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }>; readonly responses: { readonly 201: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; readonly 401: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly upsertAgent: { readonly method: "PUT"; readonly path: "/clusters/:clusterId/agents/:agentId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; readonly body: z.ZodObject<{ name: z.ZodOptional; initialPrompt: z.ZodOptional; systemPrompt: z.ZodOptional; attachedFunctions: z.ZodOptional>; resultSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }, { name?: string | undefined; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }>; readonly responses: { readonly 200: z.ZodObject<{ id: z.ZodString; clusterId: z.ZodString; name: z.ZodString; initialPrompt: z.ZodNullable; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly deleteAgent: { readonly method: "DELETE"; readonly path: "/clusters/:clusterId/agent/:agentId"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; readonly body: z.ZodUndefined; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; }; readonly listAgents: { readonly method: "GET"; readonly path: "/clusters/:clusterId/agents"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodArray; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }>, "many">; readonly 401: z.ZodUndefined; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; }; readonly getAgentMetrics: { readonly method: "GET"; readonly path: "/clusters/:clusterId/agents/:agentId/metrics"; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly responses: { readonly 200: z.ZodArray; jobFailureCount: z.ZodNumber; timeToCompletion: z.ZodNumber; jobCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { createdAt: Date; feedbackScore: number | null; jobFailureCount: number; timeToCompletion: number; jobCount: number; }, { createdAt: Date; feedbackScore: number | null; jobFailureCount: number; timeToCompletion: number; jobCount: number; }>, "many">; }; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; }; readonly createNangoSession: { readonly method: "POST"; readonly path: "/clusters/:clusterId/nango/sessions"; readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; readonly body: z.ZodObject<{ integration: z.ZodString; }, "strip", z.ZodTypeAny, { integration: string; }, { integration: string; }>; readonly responses: { readonly 200: z.ZodObject<{ token: z.ZodString; }, "strip", z.ZodTypeAny, { token: string; }, { token: string; }>; }; }; readonly createNangoEvent: { readonly method: "POST"; readonly path: "/nango/events"; readonly headers: z.ZodObject<{ "x-nango-signature": z.ZodString; }, "strip", z.ZodTypeAny, { "x-nango-signature": string; }, { "x-nango-signature": string; }>; readonly body: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; readonly responses: { readonly 200: z.ZodUndefined; }; }; }; export declare const contract: { readonly live: { readonly method: "GET"; path: "/live"; responses: { readonly 200: z.ZodObject<{ status: z.ZodString; }, "strip", z.ZodTypeAny, { status: string; }, { status: string; }>; }; }; readonly createEphemeralSetup: { readonly method: "POST"; readonly body: z.ZodUndefined; path: "/ephemeral-setup"; responses: { readonly 200: z.ZodObject<{ clusterId: z.ZodString; apiKey: z.ZodString; }, "strip", z.ZodTypeAny, { apiKey: string; clusterId: string; }, { apiKey: string; clusterId: string; }>; }; }; readonly getContract: { readonly method: "GET"; path: "/contract"; responses: { readonly 200: z.ZodObject<{ contract: z.ZodString; }, "strip", z.ZodTypeAny, { contract: string; }, { contract: string; }>; }; }; readonly createStructuredOutput: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ prompt: z.ZodString; resultSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; modelId: z.ZodEnum<["claude-3-5-sonnet", "claude-3-haiku"]>; temperature: z.ZodDefault>; }, "strip", z.ZodTypeAny, { prompt: string; modelId: "claude-3-5-sonnet" | "claude-3-haiku"; temperature: number; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { prompt: string; modelId: "claude-3-5-sonnet" | "claude-3-haiku"; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; temperature?: number | undefined; }>; path: "/clusters/:clusterId/structured-output"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodUnknown; readonly 401: z.ZodUndefined; }; }; readonly getJob: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/jobs/:jobId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ id: z.ZodString; status: z.ZodString; targetFn: z.ZodString; service: z.ZodString; executingMachineId: z.ZodNullable; targetArgs: z.ZodString; result: z.ZodNullable; resultType: z.ZodNullable; createdAt: z.ZodDate; blobs: z.ZodArray; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }>, "many">; approved: z.ZodNullable; approvalRequested: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; targetArgs: string; resultType: string | null; blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; approved: boolean | null; approvalRequested: boolean | null; }, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; targetArgs: string; resultType: string | null; blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; approved: boolean | null; approvalRequested: boolean | null; }>; }; }; readonly createJob: { readonly query: z.ZodObject<{ waitTime: z.ZodDefault; }, "strip", z.ZodTypeAny, { waitTime: number; }, { waitTime?: number | undefined; }>; readonly method: "POST"; readonly body: z.ZodObject<{ service: z.ZodString; function: z.ZodString; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { function: string; service: string; input: {} & { [k: string]: unknown; }; }, { function: string; service: string; input: {} & { [k: string]: unknown; }; }>; path: "/clusters/:clusterId/jobs"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 401: z.ZodUndefined; readonly 200: z.ZodObject<{ id: z.ZodString; result: z.ZodNullable; resultType: z.ZodNullable>; status: z.ZodEnum<["pending", "running", "success", "failure", "stalled"]>; }, "strip", z.ZodTypeAny, { status: "pending" | "running" | "success" | "failure" | "stalled"; id: string; resultType: "resolution" | "rejection" | "interrupt" | null; result?: any; }, { status: "pending" | "running" | "success" | "failure" | "stalled"; id: string; resultType: "resolution" | "rejection" | "interrupt" | null; result?: any; }>; }; }; readonly cancelJob: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodUndefined; path: "/clusters/:clusterId/jobs/:jobId/cancel"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; }; readonly createJobResult: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ result: z.ZodAny; resultType: z.ZodEnum<["resolution", "rejection", "interrupt"]>; meta: z.ZodObject<{ functionExecutionTime: z.ZodOptional; }, "strip", z.ZodTypeAny, { functionExecutionTime?: number | undefined; }, { functionExecutionTime?: number | undefined; }>; }, "strip", z.ZodTypeAny, { resultType: "resolution" | "rejection" | "interrupt"; meta: { functionExecutionTime?: number | undefined; }; result?: any; }, { resultType: "resolution" | "rejection" | "interrupt"; meta: { functionExecutionTime?: number | undefined; }; result?: any; }>; path: "/clusters/:clusterId/jobs/:jobId/result"; headers: z.ZodObject<{ "x-machine-id": z.ZodOptional; "x-machine-sdk-version": z.ZodOptional; "x-machine-sdk-language": z.ZodOptional; "x-forwarded-for": z.ZodOptional>; "x-sentinel-no-mask": z.ZodOptional>; "x-sentinel-unmask-keys": z.ZodOptional; authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }>; responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; }; readonly listJobs: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly query: z.ZodObject<{ service: z.ZodString; status: z.ZodDefault>; limit: z.ZodDefault; acknowledge: z.ZodDefault; }, "strip", z.ZodTypeAny, { service: string; status: "done" | "pending" | "running" | "paused" | "failed"; limit: number; acknowledge: boolean; }, { service: string; status?: "done" | "pending" | "running" | "paused" | "failed" | undefined; limit?: number | undefined; acknowledge?: boolean | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/jobs"; headers: z.ZodObject<{ "x-machine-id": z.ZodOptional; "x-machine-sdk-version": z.ZodOptional; "x-machine-sdk-language": z.ZodOptional; "x-forwarded-for": z.ZodOptional>; "x-sentinel-no-mask": z.ZodOptional>; "x-sentinel-unmask-keys": z.ZodOptional; authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }>; responses: { readonly 401: z.ZodUndefined; readonly 410: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; readonly 200: z.ZodArray; runContext: z.ZodNullable; approved: z.ZodBoolean; }, "strip", z.ZodTypeAny, { function: string; id: string; approved: boolean; input?: any; authContext?: any; runContext?: any; }, { function: string; id: string; approved: boolean; input?: any; authContext?: any; runContext?: any; }>, "many">; }; }; readonly createJobApproval: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ approved: z.ZodBoolean; }, "strip", z.ZodTypeAny, { approved: boolean; }, { approved: boolean; }>; path: "/clusters/:clusterId/jobs/:jobId/approval"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly createJobBlob: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; jobId: z.ZodString; }, "strip", z.ZodTypeAny, { jobId: string; clusterId: string; }, { jobId: string; clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodIntersection; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "id" | "createdAt" | "jobId" | "workflowId">, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; name: string; encoding: "base64"; size: number; }, { type: "application/json" | "image/png" | "image/jpeg"; name: string; encoding: "base64"; size: number; }>, z.ZodObject<{ data: z.ZodString; }, "strip", z.ZodTypeAny, { data: string; }, { data: string; }>>; path: "/clusters/:clusterId/jobs/:jobId/blobs"; headers: z.ZodObject<{ authorization: z.ZodString; "x-machine-id": z.ZodString; "x-machine-sdk-version": z.ZodString; "x-machine-sdk-language": z.ZodString; "x-forwarded-for": z.ZodOptional; "x-sentinel-no-mask": z.ZodOptional; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id": string; "x-machine-sdk-version": string; "x-machine-sdk-language": string; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; }, { authorization: string; "x-machine-id": string; "x-machine-sdk-version": string; "x-machine-sdk-language": string; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; }>; responses: { readonly 201: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly createMachine: { readonly method: "POST"; readonly body: z.ZodObject<{ service: z.ZodOptional; functions: z.ZodOptional; schema: z.ZodOptional; config: z.ZodOptional>; retryCountOnStall: z.ZodOptional; timeoutSeconds: z.ZodOptional; private: z.ZodOptional>; }, "strip", z.ZodTypeAny, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { service?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }, { service?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }>; path: "/machines"; headers: z.ZodObject<{ "x-machine-id": z.ZodOptional; "x-machine-sdk-version": z.ZodOptional; "x-machine-sdk-language": z.ZodOptional; "x-forwarded-for": z.ZodOptional>; "x-sentinel-no-mask": z.ZodOptional>; "x-sentinel-unmask-keys": z.ZodOptional; authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }, { authorization: string; "x-machine-id"?: string | undefined; "x-machine-sdk-version"?: string | undefined; "x-machine-sdk-language"?: string | undefined; "x-forwarded-for"?: string | undefined; "x-sentinel-no-mask"?: string | undefined; "x-sentinel-unmask-keys"?: string | undefined; }>; responses: { readonly 200: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly 204: z.ZodUndefined; }; }; readonly createCluster: { readonly method: "POST"; readonly body: z.ZodObject<{ description: z.ZodString; name: z.ZodOptional; isDemo: z.ZodDefault>; }, "strip", z.ZodTypeAny, { description: string; isDemo: boolean; name?: string | undefined; }, { description: string; name?: string | undefined; isDemo?: boolean | undefined; }>; path: "/clusters"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; }; }; readonly deleteCluster: { readonly method: "DELETE"; readonly body: z.ZodUndefined; path: "/clusters/:clusterId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; }; }; readonly updateCluster: { readonly method: "PUT"; readonly body: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional; additionalContext: z.ZodOptional; history: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }>>; debug: z.ZodOptional; enableCustomAuth: z.ZodOptional; enableKnowledgebase: z.ZodOptional; handleCustomAuthFunction: z.ZodOptional; }, "strip", z.ZodTypeAny, { name?: string | undefined; description?: string | undefined; additionalContext?: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | undefined; debug?: boolean | undefined; enableCustomAuth?: boolean | undefined; enableKnowledgebase?: boolean | undefined; handleCustomAuthFunction?: string | undefined; }, { name?: string | undefined; description?: string | undefined; additionalContext?: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | undefined; debug?: boolean | undefined; enableCustomAuth?: boolean | undefined; enableKnowledgebase?: boolean | undefined; handleCustomAuthFunction?: string | undefined; }>; path: "/clusters/:clusterId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; }; readonly getCluster: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; additionalContext: z.ZodNullable; history: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }, { current: { version: string; content: string; }; history: { version: string; content: string; }[]; }>>; createdAt: z.ZodDate; debug: z.ZodBoolean; enableCustomAuth: z.ZodBoolean; handleCustomAuthFunction: z.ZodNullable; isDemo: z.ZodBoolean; machines: z.ZodArray; ip: z.ZodNullable; sdkVersion: z.ZodNullable; sdkLanguage: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }, { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }>, "many">; services: z.ZodArray; timestamp: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; timestamp: Date | null; definition?: unknown; }, { service: string; timestamp: Date | null; definition?: unknown; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; description: string | null; isDemo: boolean; additionalContext: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | null; debug: boolean; enableCustomAuth: boolean; handleCustomAuthFunction: string | null; machines: { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }[]; services: { service: string; timestamp: Date | null; definition?: unknown; }[]; }, { id: string; name: string; createdAt: Date; description: string | null; isDemo: boolean; additionalContext: { current: { version: string; content: string; }; history: { version: string; content: string; }[]; } | null; debug: boolean; enableCustomAuth: boolean; handleCustomAuthFunction: string | null; machines: { id: string; lastPingAt: Date | null; ip: string | null; sdkVersion: string | null; sdkLanguage: string | null; }[]; services: { service: string; timestamp: Date | null; definition?: unknown; }[]; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; }; readonly listClusters: { readonly method: "GET"; path: "/clusters"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; description: string | null; }, { id: string; name: string; createdAt: Date; description: string | null; }>, "many">; readonly 401: z.ZodUndefined; }; }; readonly getIntegrations: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/integrations"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ toolhouse: z.ZodNullable>>; langfuse: z.ZodNullable>>; tavily: z.ZodNullable>>; valtown: z.ZodNullable>>; slack: z.ZodNullable; }, "strip", z.ZodTypeAny, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }>>>; email: z.ZodNullable; validateSPFandDKIM: z.ZodOptional; }, "strip", z.ZodTypeAny, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }>>>; }, "strip", z.ZodTypeAny, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }>; }; }; readonly upsertIntegrations: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "PUT"; readonly body: z.ZodObject<{ toolhouse: z.ZodNullable>>; langfuse: z.ZodNullable>>; tavily: z.ZodNullable>>; valtown: z.ZodNullable>>; slack: z.ZodNullable; }, "strip", z.ZodTypeAny, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }, { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; }>>>; email: z.ZodNullable; validateSPFandDKIM: z.ZodOptional; }, "strip", z.ZodTypeAny, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }, { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; }>>>; }, "strip", z.ZodTypeAny, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }, { toolhouse?: { apiKey: string; } | null | undefined; langfuse?: { publicKey: string; secretKey: string; baseUrl: string; sendMessagePayloads: boolean; } | null | undefined; tavily?: { apiKey: string; } | null | undefined; valtown?: { endpoint: string; token: string; } | null | undefined; slack?: { nangoConnectionId: string; botUserId: string; teamId: string; agentId?: string | undefined; } | null | undefined; email?: { connectionId: string; agentId?: string | undefined; validateSPFandDKIM?: boolean | undefined; } | null | undefined; }>; path: "/clusters/:clusterId/integrations"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodUndefined; readonly 401: z.ZodUndefined; readonly 400: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly listEvents: { readonly query: z.ZodObject<{ type: z.ZodOptional; jobId: z.ZodOptional; machineId: z.ZodOptional; service: z.ZodOptional; workflowId: z.ZodOptional; includeMeta: z.ZodOptional; }, "strip", z.ZodTypeAny, { service?: string | undefined; type?: string | undefined; jobId?: string | undefined; workflowId?: string | undefined; machineId?: string | undefined; includeMeta?: string | undefined; }, { service?: string | undefined; type?: string | undefined; jobId?: string | undefined; workflowId?: string | undefined; machineId?: string | undefined; includeMeta?: string | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/events"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; service: z.ZodNullable; createdAt: z.ZodDate; jobId: z.ZodNullable; targetFn: z.ZodNullable; resultType: z.ZodNullable; status: z.ZodNullable; workflowId: z.ZodNullable; meta: z.ZodNullable; id: z.ZodString; }, "strip", z.ZodTypeAny, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; workflowId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: any; }, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; workflowId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: any; }>, "many">; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; }; readonly getEventMeta: { readonly method: "GET"; path: "/clusters/:clusterId/events/:eventId/meta"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ type: z.ZodString; machineId: z.ZodNullable; service: z.ZodNullable; createdAt: z.ZodDate; jobId: z.ZodNullable; targetFn: z.ZodNullable; resultType: z.ZodNullable; status: z.ZodNullable; meta: z.ZodUnknown; id: z.ZodString; }, "strip", z.ZodTypeAny, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: unknown; }, { service: string | null; type: string; status: string | null; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; resultType: string | null; machineId: string | null; meta?: unknown; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; }; readonly listUsageActivity: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/usage"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ modelUsage: z.ZodArray; totalInputTokens: z.ZodNumber; totalOutputTokens: z.ZodNumber; totalModelInvocations: z.ZodNumber; }, "strip", z.ZodTypeAny, { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }, { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }>, "many">; agentRuns: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { modelUsage: { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }[]; agentRuns: { date: string; totalAgentRuns: number; }[]; }, { modelUsage: { date: string; modelId: string | null; totalInputTokens: number; totalOutputTokens: number; totalModelInvocations: number; }[]; agentRuns: { date: string; totalAgentRuns: number; }[]; }>; }; }; readonly createRun: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ id: z.ZodEffects, string | undefined, string | undefined>; runId: z.ZodEffects, string | undefined, string | undefined>; initialPrompt: z.ZodOptional; systemPrompt: z.ZodOptional; name: z.ZodOptional; model: z.ZodOptional>; resultSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; attachedFunctions: z.ZodOptional, "many">>; onStatusChange: z.ZodOptional, "many">>>; function: z.ZodOptional>; webhook: z.ZodOptional; }, "strip", z.ZodTypeAny, { statuses: ("done" | "pending" | "running" | "paused" | "failed")[]; function?: { function: string; service: string; } | undefined; webhook?: string | undefined; }, { function?: { function: string; service: string; } | undefined; statuses?: ("done" | "pending" | "running" | "paused" | "failed")[] | undefined; webhook?: string | undefined; }>>; tags: z.ZodOptional>; test: z.ZodOptional; mocks: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { output: {} & { [k: string]: unknown; }; }, { output: {} & { [k: string]: unknown; }; }>>>; }, "strip", z.ZodTypeAny, { enabled: boolean; mocks?: Record | undefined; }, { enabled?: boolean | undefined; mocks?: Record | undefined; }>>; agentId: z.ZodOptional; input: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; context: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; reasoningTraces: z.ZodOptional>; callSummarization: z.ZodOptional>; interactive: z.ZodDefault; enableResultGrounding: z.ZodDefault; }, "strip", z.ZodTypeAny, { interactive: boolean; enableResultGrounding: boolean; id?: string | undefined; name?: string | undefined; agentId?: string | undefined; input?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; runId?: string | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; model?: "claude-3-5-sonnet" | "claude-3-haiku" | undefined; attachedFunctions?: { function: string; service: string; }[] | undefined; onStatusChange?: { statuses: ("done" | "pending" | "running" | "paused" | "failed")[]; function?: { function: string; service: string; } | undefined; webhook?: string | undefined; } | undefined; tags?: Record | undefined; test?: { enabled: boolean; mocks?: Record | undefined; } | undefined; context?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; reasoningTraces?: boolean | undefined; callSummarization?: boolean | undefined; }, { id?: string | undefined; name?: string | undefined; agentId?: string | undefined; input?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; runId?: string | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; model?: "claude-3-5-sonnet" | "claude-3-haiku" | undefined; attachedFunctions?: { function: string; service: string; }[] | undefined; onStatusChange?: { function?: { function: string; service: string; } | undefined; statuses?: ("done" | "pending" | "running" | "paused" | "failed")[] | undefined; webhook?: string | undefined; } | undefined; tags?: Record | undefined; test?: { enabled?: boolean | undefined; mocks?: Record | undefined; } | undefined; context?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; reasoningTraces?: boolean | undefined; callSummarization?: boolean | undefined; interactive?: boolean | undefined; enableResultGrounding?: boolean | undefined; }>; path: "/clusters/:clusterId/runs"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 201: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; readonly 401: z.ZodUndefined; readonly 400: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly deleteRun: { readonly pathParams: z.ZodObject<{ runId: z.ZodString; clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly method: "DELETE"; readonly body: z.ZodUndefined; path: "/clusters/:clusterId/runs/:runId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; }; }; readonly listRuns: { readonly query: z.ZodObject<{ userId: z.ZodOptional; test: z.ZodOptional>; limit: z.ZodDefault; tags: z.ZodOptional; agentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { limit: number; agentId?: string | undefined; tags?: string | undefined; test?: boolean | undefined; userId?: string | undefined; }, { agentId?: string | undefined; limit?: number | undefined; tags?: string | undefined; test?: string | undefined; userId?: string | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/runs"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; createdAt: z.ZodDate; status: z.ZodNullable>; test: z.ZodBoolean; agentId: z.ZodNullable; agentVersion: z.ZodNullable; feedbackScore: z.ZodNullable; }, "strip", z.ZodTypeAny, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string; createdAt: Date; agentId: string | null; test: boolean; userId: string | null; agentVersion: number | null; feedbackScore: number | null; }, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string; createdAt: Date; agentId: string | null; test: boolean; userId: string | null; agentVersion: number | null; feedbackScore: number | null; }>, "many">; readonly 401: z.ZodUndefined; }; }; readonly getRun: { readonly method: "GET"; path: "/clusters/:clusterId/runs/:runId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ id: z.ZodString; userId: z.ZodNullable; status: z.ZodNullable>; failureReason: z.ZodNullable; test: z.ZodBoolean; feedbackComment: z.ZodNullable; feedbackScore: z.ZodNullable; context: z.ZodNullable; authContext: z.ZodNullable; result: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; tags: z.ZodNullable>; attachedFunctions: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; result: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; attachedFunctions: string[] | null; tags: Record | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; authContext?: any; context?: any; }, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; result: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; attachedFunctions: string[] | null; tags: Record | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; authContext?: any; context?: any; }>; readonly 401: z.ZodUndefined; }; }; readonly createFeedback: { readonly pathParams: z.ZodObject<{ runId: z.ZodString; clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ comment: z.ZodNullable; score: z.ZodNullable; }, "strip", z.ZodTypeAny, { comment: string | null; score: number | null; }, { comment: string | null; score: number | null; }>; path: "/clusters/:clusterId/runs/:runId/feedback"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; readonly 404: z.ZodUndefined; }; }; readonly oas: { readonly method: "GET"; path: "/public/oas.json"; responses: { readonly 200: z.ZodUnknown; }; }; readonly createMessage: { readonly pathParams: z.ZodObject<{ runId: z.ZodString; clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ id: z.ZodOptional; message: z.ZodString; type: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; type?: "human" | "supervisor" | undefined; id?: string | undefined; }, { message: string; type?: "human" | "supervisor" | undefined; id?: string | undefined; }>; path: "/clusters/:clusterId/runs/:runId/messages"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 201: z.ZodUndefined; readonly 401: z.ZodUndefined; }; }; readonly listMessages: { readonly query: z.ZodObject<{ waitTime: z.ZodDefault; after: z.ZodDefault; limit: z.ZodDefault; }, "strip", z.ZodTypeAny, { waitTime: number; limit: number; after: string; }, { waitTime?: number | undefined; limit?: number | undefined; after?: string | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/runs/:runId/messages"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; data: z.ZodObject<{ done: z.ZodOptional; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; message: z.ZodOptional; learnings: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; }, { type: "tool"; name: string; }>, "many">; relevance: z.ZodObject<{ temporality: z.ZodEnum<["transient", "persistent"]>; }, "strip", z.ZodTypeAny, { temporality: "transient" | "persistent"; }, { temporality: "transient" | "persistent"; }>; }, "strip", z.ZodTypeAny, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }>, "many">>; issue: z.ZodOptional; invocations: z.ZodOptional; toolName: z.ZodString; reasoning: z.ZodOptional; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }, { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ id: z.ZodString; result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strict", z.ZodTypeAny, { id: string; result: {} & { [k: string]: unknown; }; }, { id: string; result: {} & { [k: string]: unknown; }; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>]>, "many">; readonly 401: z.ZodUndefined; }; }; readonly listRunReferences: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; runId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly query: z.ZodObject<{ token: z.ZodString; before: z.ZodString; }, "strip", z.ZodTypeAny, { token: string; before: string; }, { token: string; before: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/runs/:runId/references"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; createdAt: z.ZodDate; status: z.ZodString; targetFn: z.ZodString; service: z.ZodString; executingMachineId: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; }, { service: string; status: string; id: string; createdAt: Date; result: string | null; targetFn: string; executingMachineId: string | null; }>, "many">; }; }; readonly createApiKey: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; path: "/clusters/:clusterId/api-keys"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ id: z.ZodString; key: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; key: string; }, { id: string; key: string; }>; }; }; readonly listApiKeys: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/api-keys"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; createdBy: string; revokedAt: Date | null; }, { id: string; name: string; createdAt: Date; createdBy: string; revokedAt: Date | null; }>, "many">; }; }; readonly revokeApiKey: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; keyId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; keyId: string; }, { clusterId: string; keyId: string; }>; readonly method: "DELETE"; readonly body: z.ZodUndefined; path: "/clusters/:clusterId/api-keys/:keyId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; }; }; readonly listMachines: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly query: z.ZodObject<{ limit: z.ZodDefault; }, "strip", z.ZodTypeAny, { limit: number; }, { limit?: number | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/machines"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray, "many">; }; }; readonly listServices: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/services"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; functions: z.ZodOptional; schema: z.ZodOptional; config: z.ZodOptional>; retryCountOnStall: z.ZodOptional; timeoutSeconds: z.ZodOptional; private: z.ZodOptional>; }, "strip", z.ZodTypeAny, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }, { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; }>>; }, "strip", z.ZodTypeAny, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }, { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }>, "many">>; timestamp: z.ZodDate; }, "strip", z.ZodTypeAny, { name: string; timestamp: Date; description?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }, { name: string; timestamp: Date; description?: string | undefined; functions?: { name: string; description?: string | undefined; schema?: string | undefined; config?: { cache?: { keyPath: string; ttlSeconds: number; } | undefined; retryCountOnStall?: number | undefined; timeoutSeconds?: number | undefined; private?: boolean | undefined; } | undefined; }[] | undefined; }>, "many">; }; }; readonly getRunTimeline: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; runId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; runId: string; }, { clusterId: string; runId: string; }>; readonly query: z.ZodObject<{ messagesAfter: z.ZodDefault; activityAfter: z.ZodDefault; }, "strip", z.ZodTypeAny, { messagesAfter: string; activityAfter: string; }, { messagesAfter?: string | undefined; activityAfter?: string | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/runs/:runId/timeline"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 404: z.ZodUndefined; readonly 200: z.ZodObject<{ messages: z.ZodArray; data: z.ZodObject<{ done: z.ZodOptional; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; message: z.ZodOptional; learnings: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; }, { type: "tool"; name: string; }>, "many">; relevance: z.ZodObject<{ temporality: z.ZodEnum<["transient", "persistent"]>; }, "strip", z.ZodTypeAny, { temporality: "transient" | "persistent"; }, { temporality: "transient" | "persistent"; }>; }, "strip", z.ZodTypeAny, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }, { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }>, "many">>; issue: z.ZodOptional; invocations: z.ZodOptional; toolName: z.ZodString; reasoning: z.ZodOptional; input: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strip", z.ZodTypeAny, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }, { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }>, "many">>; }, "strict", z.ZodTypeAny, { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }, { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ id: z.ZodString; result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; }, "strict", z.ZodTypeAny, { id: string; result: {} & { [k: string]: unknown; }; }, { id: string; result: {} & { [k: string]: unknown; }; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>, z.ZodObject; data: z.ZodObject<{ message: z.ZodString; details: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strict", z.ZodTypeAny, { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; }, { id: z.ZodString; createdAt: z.ZodOptional; pending: z.ZodOptional; metadata: z.ZodNullable>>; }>, "strip", z.ZodTypeAny, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }, { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; }>]>, "many">; activity: z.ZodArray; service: z.ZodNullable; createdAt: z.ZodDate; jobId: z.ZodNullable; targetFn: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }, { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }>, "many">; jobs: z.ZodArray; createdAt: z.ZodDate; approved: z.ZodNullable; approvalRequested: z.ZodNullable; }, "strip", z.ZodTypeAny, { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }, { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }>, "many">; run: z.ZodObject<{ id: z.ZodString; userId: z.ZodNullable; status: z.ZodNullable>; failureReason: z.ZodNullable; test: z.ZodBoolean; context: z.ZodNullable; authContext: z.ZodNullable; feedbackComment: z.ZodNullable; feedbackScore: z.ZodNullable; result: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; tags: z.ZodOptional>>; attachedFunctions: z.ZodNullable>; name: z.ZodNullable; }, "strip", z.ZodTypeAny, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }, { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }>; blobs: z.ZodArray; encoding: z.ZodEnum<["base64"]>; size: z.ZodNumber; createdAt: z.ZodDate; jobId: z.ZodNullable; workflowId: z.ZodNullable; }, "strip", z.ZodTypeAny, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }, { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }>, "many">; }, "strip", z.ZodTypeAny, { blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; messages: ({ type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "human"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "template"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "supervisor"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; })[]; activity: { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }[]; jobs: { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }[]; run: { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }; }, { blobs: { type: "application/json" | "image/png" | "image/jpeg"; id: string; name: string; encoding: "base64"; size: number; createdAt: Date; jobId: string | null; workflowId: string | null; }[]; messages: ({ type: "agent"; id: string; data: { message?: string | undefined; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; done?: boolean | undefined; learnings?: { summary: string; entities: { type: "tool"; name: string; }[]; relevance: { temporality: "transient" | "persistent"; }; }[] | undefined; issue?: string | undefined; invocations?: { toolName: string; input: {} & { [k: string]: unknown; }; id?: string | undefined; reasoning?: string | undefined; }[] | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "invocation-result"; id: string; data: { id: string; result: {} & { [k: string]: unknown; }; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "human"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "template"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "supervisor"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; } | { type: "agent-invalid"; id: string; data: { message: string; details?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }; createdAt?: Date | undefined; pending?: boolean | undefined; metadata?: Record | null | undefined; })[]; activity: { service: string | null; type: string; id: string; createdAt: Date; jobId: string | null; targetFn: string | null; machineId: string | null; }[]; jobs: { service: string; status: string; id: string; createdAt: Date; targetFn: string; resultType: string | null; approved: boolean | null; approvalRequested: boolean | null; }[]; run: { status: "done" | "pending" | "running" | "paused" | "failed" | null; id: string; name: string | null; attachedFunctions: string[] | null; test: boolean; userId: string | null; feedbackScore: number | null; failureReason: string | null; feedbackComment: string | null; result?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; authContext?: any; tags?: Record | null | undefined; context?: any; }; }>; }; }; readonly getBlobData: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; blobId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; blobId: string; }, { clusterId: string; blobId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/blobs/:blobId/data"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodAny; readonly 404: z.ZodUndefined; }; }; readonly getAgent: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; readonly query: z.ZodObject<{ withPreviousVersions: z.ZodDefault>; }, "strip", z.ZodTypeAny, { withPreviousVersions: "true" | "false"; }, { withPreviousVersions?: "true" | "false" | undefined; }>; readonly method: "GET"; path: "/clusters/:clusterId/agents/:agentId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ id: z.ZodString; clusterId: z.ZodString; name: z.ZodString; initialPrompt: z.ZodNullable; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; createdAt: z.ZodDate; updatedAt: z.ZodDate; versions: z.ZodArray; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { name: string; version: number; resultSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; }, { name: string; version: number; resultSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; clusterId: string; resultSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; updatedAt: Date; versions: { name: string; version: number; resultSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null; }[]; }, { id: string; name: string; createdAt: Date; clusterId: string; resultSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; updatedAt: Date; versions: { name: string; version: number; resultSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; inputSchema: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null; }[]; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly createAgent: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ name: z.ZodString; initialPrompt: z.ZodOptional; systemPrompt: z.ZodOptional; attachedFunctions: z.ZodOptional>; resultSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; }, "strip", z.ZodTypeAny, { name: string; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }, { name: string; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }>; path: "/clusters/:clusterId/agents"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 201: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; readonly 401: z.ZodUndefined; }; }; readonly upsertAgent: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; readonly method: "PUT"; readonly body: z.ZodObject<{ name: z.ZodOptional; initialPrompt: z.ZodOptional; systemPrompt: z.ZodOptional; attachedFunctions: z.ZodOptional>; resultSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; inputSchema: z.ZodNullable, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; resultSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }, { name?: string | undefined; resultSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; initialPrompt?: string | undefined; systemPrompt?: string | undefined; attachedFunctions?: string[] | undefined; inputSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined; }>; path: "/clusters/:clusterId/agents/:agentId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ id: z.ZodString; clusterId: z.ZodString; name: z.ZodString; initialPrompt: z.ZodNullable; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }>; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly deleteAgent: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; readonly method: "DELETE"; readonly body: z.ZodUndefined; path: "/clusters/:clusterId/agent/:agentId"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 204: z.ZodUndefined; readonly 401: z.ZodUndefined; readonly 404: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; }; }; readonly listAgents: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/agents"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; systemPrompt: z.ZodNullable; attachedFunctions: z.ZodArray; resultSchema: z.ZodNullable; createdAt: z.ZodDate; updatedAt: z.ZodDate; }, "strip", z.ZodTypeAny, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }, { id: string; name: string; createdAt: Date; clusterId: string; initialPrompt: string | null; systemPrompt: string | null; attachedFunctions: string[]; updatedAt: Date; resultSchema?: unknown; }>, "many">; readonly 401: z.ZodUndefined; }; }; readonly getAgentMetrics: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; agentId: z.ZodString; }, "strip", z.ZodTypeAny, { agentId: string; clusterId: string; }, { agentId: string; clusterId: string; }>; readonly method: "GET"; path: "/clusters/:clusterId/agents/:agentId/metrics"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodArray; jobFailureCount: z.ZodNumber; timeToCompletion: z.ZodNumber; jobCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { createdAt: Date; feedbackScore: number | null; jobFailureCount: number; timeToCompletion: number; jobCount: number; }, { createdAt: Date; feedbackScore: number | null; jobFailureCount: number; timeToCompletion: number; jobCount: number; }>, "many">; }; }; readonly createNangoSession: { readonly pathParams: z.ZodObject<{ clusterId: z.ZodString; }, "strip", z.ZodTypeAny, { clusterId: string; }, { clusterId: string; }>; readonly method: "POST"; readonly body: z.ZodObject<{ integration: z.ZodString; }, "strip", z.ZodTypeAny, { integration: string; }, { integration: string; }>; path: "/clusters/:clusterId/nango/sessions"; headers: z.ZodObject<{ authorization: z.ZodString; }, "strip", z.ZodTypeAny, { authorization: string; }, { authorization: string; }>; responses: { readonly 200: z.ZodObject<{ token: z.ZodString; }, "strip", z.ZodTypeAny, { token: string; }, { token: string; }>; }; }; readonly createNangoEvent: { readonly method: "POST"; readonly body: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; path: "/nango/events"; headers: z.ZodObject<{ "x-nango-signature": z.ZodString; }, "strip", z.ZodTypeAny, { "x-nango-signature": string; }, { "x-nango-signature": string; }>; responses: { readonly 200: z.ZodUndefined; }; }; };