import { z } from "#compiled/zod/index.js"; import { type InputRequest } from "#client/index.js"; import type { ConnectionAuthorizationChallenge } from "#public/connections/errors.js"; declare const invokeResumeSchema: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; declare const invocationInputRequestSchema: z.ZodObject<{ allowFreeform: z.ZodOptional; kind: z.ZodEnum<{ question: "question"; "session-limit": "session-limit"; "tool-approval": "tool-approval"; }>; prompt: z.ZodString; requestId: z.ZodString; options: z.ZodOptional; id: z.ZodString; label: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>; declare const invokeResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"running">; }, z.core.$strict>, z.ZodObject<{ requests: z.ZodReadonly; kind: z.ZodEnum<{ question: "question"; "session-limit": "session-limit"; "tool-approval": "tool-approval"; }>; prompt: z.ZodString; requestId: z.ZodString; options: z.ZodOptional; id: z.ZodString; label: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>>>; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"input-required">; }, z.core.$strict>, z.ZodObject<{ authorizations: z.ZodReadonly>>; description: z.ZodString; name: z.ZodString; webhookUrl: z.ZodOptional; }, z.core.$strict>>>; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"authorization-required">; }, z.core.$strict>, z.ZodObject<{ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{ message: z.ZodOptional; status: z.ZodLiteral<"completed">; }, z.core.$strict>, z.ZodObject<{ message: z.ZodString; status: z.ZodLiteral<"failed">; }, z.core.$strict>], "status">; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"ready">; }, z.core.$strict>, z.ZodObject<{ message: z.ZodString; status: z.ZodLiteral<"failed">; }, z.core.$strict>, z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; resume: z.ZodOptional; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>>; status: z.ZodLiteral<"authentication-required">; }, z.core.$strict>], "status">; /** Durable session coordinates emitted by `eve invoke`. Credentials are deliberately excluded. */ export type InvokeResume = z.infer; export type InvocationInputRequest = z.infer; /** Result emitted by one non-interactive agent invocation. */ export type InvokeResult = z.infer; export type InvokeAuthenticationFailure = Extract; /** Projects a runtime input request to the stable invocation-facing contract. */ export declare function projectInvocationInputRequest(request: InputRequest): InvocationInputRequest; /** Parses a complete, resumable result from a previous `eve invoke` command. */ export declare function parseInvokeResumeInput(value: unknown): InvokeResult & { resume: InvokeResume; }; /** JSON Schema generated from the canonical invoke result runtime schema. */ export declare const invokeResultJsonSchema: { $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#"; $anchor?: string; $ref?: string; $dynamicRef?: string; $dynamicAnchor?: string; $vocabulary?: Record; $comment?: string; $defs?: Record; type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer"; additionalItems?: z.core.JSONSchema._JSONSchema; unevaluatedItems?: z.core.JSONSchema._JSONSchema; prefixItems?: z.core.JSONSchema._JSONSchema[]; items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[]; contains?: z.core.JSONSchema._JSONSchema; additionalProperties?: z.core.JSONSchema._JSONSchema; unevaluatedProperties?: z.core.JSONSchema._JSONSchema; properties?: Record; patternProperties?: Record; dependentSchemas?: Record; propertyNames?: z.core.JSONSchema._JSONSchema; if?: z.core.JSONSchema._JSONSchema; then?: z.core.JSONSchema._JSONSchema; else?: z.core.JSONSchema._JSONSchema; allOf?: z.core.JSONSchema.JSONSchema[]; anyOf?: z.core.JSONSchema.JSONSchema[]; oneOf?: z.core.JSONSchema.JSONSchema[]; not?: z.core.JSONSchema._JSONSchema; multipleOf?: number; maximum?: number; exclusiveMaximum?: number | boolean; minimum?: number; exclusiveMinimum?: number | boolean; maxLength?: number; minLength?: number; pattern?: string; maxItems?: number; minItems?: number; uniqueItems?: boolean; maxContains?: number; minContains?: number; maxProperties?: number; minProperties?: number; required?: string[]; dependentRequired?: Record; enum?: Array; const?: string | number | boolean | null; id?: string; description?: string; default?: unknown; deprecated?: boolean; readOnly?: boolean; writeOnly?: boolean; nullable?: boolean; examples?: unknown[]; format?: string; contentMediaType?: string; contentEncoding?: string; contentSchema?: z.core.JSONSchema.JSONSchema; _prefault?: unknown; "~standard": z.core.ZodStandardSchemaWithJSON; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"running">; }, z.core.$strict>, z.ZodObject<{ requests: z.ZodReadonly; kind: z.ZodEnum<{ question: "question"; "session-limit": "session-limit"; "tool-approval": "tool-approval"; }>; prompt: z.ZodString; requestId: z.ZodString; options: z.ZodOptional; id: z.ZodString; label: z.ZodString; }, z.core.$strict>>>; }, z.core.$strict>>>; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"input-required">; }, z.core.$strict>, z.ZodObject<{ authorizations: z.ZodReadonly>>; description: z.ZodString; name: z.ZodString; webhookUrl: z.ZodOptional; }, z.core.$strict>>>; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"authorization-required">; }, z.core.$strict>, z.ZodObject<{ outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{ message: z.ZodOptional; status: z.ZodLiteral<"completed">; }, z.core.$strict>, z.ZodObject<{ message: z.ZodString; status: z.ZodLiteral<"failed">; }, z.core.$strict>], "status">; resume: z.ZodObject<{ session: z.ZodObject<{ sessionId: z.ZodString; streamIndex: z.ZodNumber; }, z.core.$strict>; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>; status: z.ZodLiteral<"ready">; }, z.core.$strict>, z.ZodObject<{ message: z.ZodString; status: z.ZodLiteral<"failed">; }, z.core.$strict>, z.ZodObject<{ code: z.ZodOptional; message: z.ZodString; resume: z.ZodOptional; target: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"local">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"remote">; serverUrl: z.ZodURL; }, z.core.$strict>], "kind">; }, z.core.$strict>>; status: z.ZodLiteral<"authentication-required">; }, z.core.$strict>], "status">>; $id: string; title: string; }; export {};