import { z } from 'zod'; export type FleetWireJsonValue = string | number | boolean | null | FleetWireJsonValue[] | { [key: string]: FleetWireJsonValue; }; export declare const FleetWireJsonValueSchema: z.ZodType; export declare const FleetWireVersionSchema: z.ZodLiteral<1>; export type FleetWireVersion = z.infer; export declare const FleetDeliveryModeSchema: z.ZodEnum<{ wait: "wait"; steer: "steer"; }>; export type FleetDeliveryMode = z.infer; /** * Negotiates an authoritative delivery cursor in `agent.register` replies. * It is a capacity capability so older engines never materialize it as an * invokable action. */ export declare const FLEET_DELIVERY_CURSOR_CAPABILITY = "relay:delivery-cursor-v1"; /** * Canonical capability kinds. `action` capabilities are invokable handlers the * engine materializes and dispatches to the registering provider; `capacity` * capabilities (`spawn:`, `release`) describe what a node can run and * feed placement and `ctx.spawnAgent` delegation without being materialized. * Registrations that omit `kind` (or carry a legacy value) are classified by * name: `spawn:*` and `release` are capacity, everything else is an action. */ export declare const FleetCapabilityKindSchema: z.ZodEnum<{ action: "action"; capacity: "capacity"; }>; export type FleetCapabilityKind = z.infer; export declare const FleetCapabilitySchema: z.ZodObject<{ name: z.ZodString; kind: z.ZodOptional; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>; export type FleetCapability = z.infer; /** * Provider identity carried on connection-scoped node frames. `name` is the * provider's stable identity — persistence, capability-conflict checks, and * routing key on it. `instance_id` is the connection epoch: re-registering the * same name with a new instance replaces the previous attachment (reconnect), * while a name whose current instance is still connected is rejected. */ export declare const FleetProviderIdentitySchema: z.ZodObject<{ name: z.ZodString; instance_id: z.ZodString; }, z.core.$strict>; export type FleetProviderIdentity = z.infer; /** Per-capability outcome reported in a `node.register` reply. */ export declare const FleetCapabilityAcceptanceSchema: z.ZodObject<{ name: z.ZodString; kind: z.ZodEnum<{ action: "action"; capacity: "capacity"; }>; accepted: z.ZodBoolean; reason: z.ZodOptional; }, z.core.$strict>; export type FleetCapabilityAcceptance = z.infer; export declare const FleetNodeRegisterMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"node.register">; name: z.ZodString; node_id: z.ZodString; provider: z.ZodOptional>; capabilities: z.ZodArray; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>>; max_agents: z.ZodNumber; tags: z.ZodArray; version: z.ZodString; machine_id: z.ZodOptional; resume_cursor: z.ZodOptional>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetNodeRegisterMessage = z.infer; export declare const FleetNodeHeartbeatMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"node.heartbeat">; provider: z.ZodOptional>; load: z.ZodNumber; active_agents: z.ZodNumber; handlers_live: z.ZodBoolean; name: z.ZodOptional; node_id: z.ZodOptional; capabilities: z.ZodOptional; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>>>; max_agents: z.ZodOptional; version: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetNodeHeartbeatMessage = z.infer; export declare const FleetNodeDeregisterMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"node.deregister">; provider: z.ZodOptional>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetNodeDeregisterMessage = z.infer; /** * `node.spawn` — a provider's handler context delegating a spawn to its own * node's capacity executor (the broker provider). Capacity-direct: the engine * bypasses action dispatch, so a `spawn:` shadow handler that delegates * cannot re-enter itself. The target is always the connection's node — a node * credential cannot direct a spawn at another node (that is workspace-level * placement, which uses agent/workspace credentials). */ export declare const FleetNodeSpawnMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"node.spawn">; input: z.ZodRecord>>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetNodeSpawnMessage = z.infer; export declare const FleetAgentRegisterMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.register">; name: z.ZodString; invocation_id: z.ZodOptional; session_ref: z.ZodOptional; resumable: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetAgentRegisterMessage = z.infer; export declare const FleetAgentDeregisterMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.deregister">; agent_id: z.ZodString; name: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetAgentDeregisterMessage = z.infer; export declare const FleetDeliveryAckMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"delivery.ack">; agent: z.ZodString; up_to_seq: z.ZodNumber; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetDeliveryAckMessage = z.infer; export declare const FleetActionResultOutputMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"action.result">; invocation_id: z.ZodString; output: z.ZodType>; error: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetActionResultOutputMessage = z.infer; export declare const FleetActionResultErrorMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"action.result">; invocation_id: z.ZodString; error: z.ZodString; output: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetActionResultErrorMessage = z.infer; export declare const FleetActionResultMessageSchema: z.ZodUnion; invocation_id: z.ZodString; output: z.ZodType>; error: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action.result">; invocation_id: z.ZodString; error: z.ZodString; output: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>]>; export type FleetActionResultMessage = z.infer; export declare const FleetInventoryAgentSchema: z.ZodObject<{ agent_id: z.ZodString; name: z.ZodString; invocation_id: z.ZodOptional; session_ref: z.ZodOptional; }, z.core.$strict>; export type FleetInventoryAgent = z.infer; export declare const FleetInventorySyncMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"inventory.sync">; agents: z.ZodArray; session_ref: z.ZodOptional; }, z.core.$strict>>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetInventorySyncMessage = z.infer; export declare const AgentRegisterReplyDataSchema: z.ZodObject<{ agent_id: z.ZodString; token: z.ZodString; name: z.ZodOptional; delivery_ack_seq: z.ZodOptional; }, z.core.$strict>; export type AgentRegisterReplyData = z.infer; /** * `node.register` reply data. Carries the resolved provider identity and * per-capability acceptance alongside the node's public descriptor (which is * passed through as additional fields). */ export declare const NodeRegisterReplyDataSchema: z.ZodObject<{ provider: z.ZodObject<{ name: z.ZodString; instance_id: z.ZodString; }, z.core.$strict>; accepted_capabilities: z.ZodArray; accepted: z.ZodBoolean; reason: z.ZodOptional; }, z.core.$strict>>; }, z.core.$loose>; export type NodeRegisterReplyData = z.infer; export declare const FleetReplyMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"reply">; ok: z.ZodLiteral; data: z.ZodType>; id: z.ZodString; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetReplyMessage = z.infer; export declare const FleetErrorMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"error">; ok: z.ZodLiteral; code: z.ZodString; message: z.ZodString; id: z.ZodString; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetErrorMessage = z.infer; export declare const FleetDeliverMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"deliver">; delivery_id: z.ZodString; agent_id: z.ZodString; agent: z.ZodString; msg_id: z.ZodString; seq: z.ZodNumber; mode: z.ZodEnum<{ wait: "wait"; steer: "steer"; }>; payload: z.ZodType>; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetDeliverMessage = z.infer; export declare const FleetActionInvokeMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"action.invoke">; invocation_id: z.ZodString; action: z.ZodString; agent_id: z.ZodOptional; agent_name: z.ZodOptional; input: z.ZodType>; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetActionInvokeMessage = z.infer; export declare const FleetContextUpdateMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"context.update">; topic: z.ZodEnum<{ agent: "agent"; channel: "channel"; presence: "presence"; thread: "thread"; }>; event: z.ZodString; channel_id: z.ZodOptional>; agent_ids: z.ZodOptional>; data: z.ZodType>; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetContextUpdateMessage = z.infer; export declare const FleetPingMessageSchema: z.ZodObject<{ type: z.ZodLiteral<"ping">; v: z.ZodLiteral<1>; }, z.core.$strict>; export type FleetPingMessage = z.infer; export declare const FleetBrokerToRelaycastNonActionResultMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"node.register">; name: z.ZodString; node_id: z.ZodString; provider: z.ZodOptional>; capabilities: z.ZodArray; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>>; max_agents: z.ZodNumber; tags: z.ZodArray; version: z.ZodString; machine_id: z.ZodOptional; resume_cursor: z.ZodOptional>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"node.heartbeat">; provider: z.ZodOptional>; load: z.ZodNumber; active_agents: z.ZodNumber; handlers_live: z.ZodBoolean; name: z.ZodOptional; node_id: z.ZodOptional; capabilities: z.ZodOptional; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>>>; max_agents: z.ZodOptional; version: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"node.deregister">; provider: z.ZodOptional>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"node.spawn">; input: z.ZodRecord>>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agent.register">; name: z.ZodString; invocation_id: z.ZodOptional; session_ref: z.ZodOptional; resumable: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agent.deregister">; agent_id: z.ZodString; name: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"delivery.ack">; agent: z.ZodString; up_to_seq: z.ZodNumber; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"inventory.sync">; agents: z.ZodArray; session_ref: z.ZodOptional; }, z.core.$strict>>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>], "type">; export type FleetBrokerToRelaycastNonActionResultMessage = z.infer; export declare const FleetBrokerToRelaycastMessageSchema: z.ZodUnion; name: z.ZodString; node_id: z.ZodString; provider: z.ZodOptional>; capabilities: z.ZodArray; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>>; max_agents: z.ZodNumber; tags: z.ZodArray; version: z.ZodString; machine_id: z.ZodOptional; resume_cursor: z.ZodOptional>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"node.heartbeat">; provider: z.ZodOptional>; load: z.ZodNumber; active_agents: z.ZodNumber; handlers_live: z.ZodBoolean; name: z.ZodOptional; node_id: z.ZodOptional; capabilities: z.ZodOptional; global: z.ZodOptional; queue: z.ZodOptional; metadata: z.ZodOptional>>>; }, z.core.$strict>>>; max_agents: z.ZodOptional; version: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"node.deregister">; provider: z.ZodOptional>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"node.spawn">; input: z.ZodRecord>>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agent.register">; name: z.ZodString; invocation_id: z.ZodOptional; session_ref: z.ZodOptional; resumable: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"agent.deregister">; agent_id: z.ZodString; name: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"delivery.ack">; agent: z.ZodString; up_to_seq: z.ZodNumber; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"inventory.sync">; agents: z.ZodArray; session_ref: z.ZodOptional; }, z.core.$strict>>; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>], "type">, z.ZodUnion; invocation_id: z.ZodString; output: z.ZodType>; error: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action.result">; invocation_id: z.ZodString; error: z.ZodString; output: z.ZodOptional; id: z.ZodOptional; v: z.ZodLiteral<1>; }, z.core.$strict>]>]>; export type FleetBrokerToRelaycastMessage = z.infer; export type FleetBrokerToRelaycastMessageType = FleetBrokerToRelaycastMessage['type']; export declare const FleetRelaycastToBrokerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"deliver">; delivery_id: z.ZodString; agent_id: z.ZodString; agent: z.ZodString; msg_id: z.ZodString; seq: z.ZodNumber; mode: z.ZodEnum<{ wait: "wait"; steer: "steer"; }>; payload: z.ZodType>; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"action.invoke">; invocation_id: z.ZodString; action: z.ZodString; agent_id: z.ZodOptional; agent_name: z.ZodOptional; input: z.ZodType>; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"context.update">; topic: z.ZodEnum<{ agent: "agent"; channel: "channel"; presence: "presence"; thread: "thread"; }>; event: z.ZodString; channel_id: z.ZodOptional>; agent_ids: z.ZodOptional>; data: z.ZodType>; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ping">; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"reply">; ok: z.ZodLiteral; data: z.ZodType>; id: z.ZodString; v: z.ZodLiteral<1>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"error">; ok: z.ZodLiteral; code: z.ZodString; message: z.ZodString; id: z.ZodString; v: z.ZodLiteral<1>; }, z.core.$strict>], "type">; export type FleetRelaycastToBrokerMessage = z.infer; export type FleetRelaycastToBrokerMessageType = FleetRelaycastToBrokerMessage['type']; export declare function parseFleetBrokerToRelaycastMessage(value: unknown): FleetBrokerToRelaycastMessage; export declare function parseFleetRelaycastToBrokerMessage(value: unknown): FleetRelaycastToBrokerMessage; //# sourceMappingURL=fleet-wire.d.ts.map