import { Type } from "typebox"; /** Generated media/file attachment metadata carried by internal agent events. */ export declare const AgentGeneratedAttachmentSchema: Type.TObject<{ type: Type.TOptional; path: Type.TOptional; url: Type.TOptional; mediaUrl: Type.TOptional; filePath: Type.TOptional; mimeType: Type.TOptional; name: Type.TOptional; }>; /** Internal completion event surfaced when child automation reports back to a parent run. */ export declare const AgentInternalEventSchema: Type.TObject<{ type: Type.TLiteral<"task_completion">; source: Type.TString; childSessionKey: Type.TString; childSessionId: Type.TOptional; announceType: Type.TString; taskLabel: Type.TString; status: Type.TString; statusLabel: Type.TString; result: Type.TString; attachments: Type.TOptional; path: Type.TOptional; url: Type.TOptional; mediaUrl: Type.TOptional; filePath: Type.TOptional; mimeType: Type.TOptional; name: Type.TOptional; }>>>; mediaUrls: Type.TOptional>; statsLine: Type.TOptional; replyInstruction: Type.TString; }>; /** Stream event emitted by the agent runtime over the gateway protocol. */ export declare const AgentEventSchema: Type.TObject<{ runId: Type.TString; seq: Type.TInteger; stream: Type.TString; ts: Type.TInteger; spawnedBy: Type.TOptional; isHeartbeat: Type.TOptional; data: Type.TRecord<"^.*$", Type.TUnknown>; }>; /** Channel context injected into message actions so tools can reply in-place. */ export declare const MessageActionToolContextSchema: Type.TObject<{ currentChannelId: Type.TOptional; currentGraphChannelId: Type.TOptional; currentChannelProvider: Type.TOptional; currentThreadTs: Type.TOptional; currentMessageId: Type.TOptional>; replyToMode: Type.TOptional, Type.TLiteral<"first">, Type.TLiteral<"all">, Type.TLiteral<"batched">]>>; hasRepliedRef: Type.TOptional>; skipCrossContextDecoration: Type.TOptional; }>; /** Request to execute a channel message action through a configured adapter. */ export declare const MessageActionParamsSchema: Type.TObject<{ channel: Type.TString; action: Type.TString; params: Type.TRecord<"^.*$", Type.TUnknown>; accountId: Type.TOptional; requesterSenderId: Type.TOptional; senderIsOwner: Type.TOptional; sessionKey: Type.TOptional; sessionId: Type.TOptional; inboundTurnKind: Type.TOptional; agentId: Type.TOptional; toolContext: Type.TOptional; currentGraphChannelId: Type.TOptional; currentChannelProvider: Type.TOptional; currentThreadTs: Type.TOptional; currentMessageId: Type.TOptional>; replyToMode: Type.TOptional, Type.TLiteral<"first">, Type.TLiteral<"all">, Type.TLiteral<"batched">]>>; hasRepliedRef: Type.TOptional>; skipCrossContextDecoration: Type.TOptional; }>>; idempotencyKey: Type.TString; }>; /** Outbound send request shared by channel adapters. */ export declare const SendParamsSchema: Type.TObject<{ to: Type.TString; message: Type.TOptional; mediaUrl: Type.TOptional; mediaUrls: Type.TOptional>; /** Base64 attachment payload for gateway-local media materialization. */ buffer: Type.TOptional; /** Optional filename for a base64 attachment payload. */ filename: Type.TOptional; /** Optional MIME type for a base64 attachment payload. */ contentType: Type.TOptional; asVoice: Type.TOptional; gifPlayback: Type.TOptional; channel: Type.TOptional; accountId: Type.TOptional; /** Optional agent id for per-agent media root resolution on gateway sends. */ agentId: Type.TOptional; /** Reply target message id for native quoted/threaded sends where supported. */ replyToId: Type.TOptional; /** Thread id (channel-specific meaning, e.g. Telegram forum topic id). */ threadId: Type.TOptional; /** Force document-style media sends where supported. */ forceDocument: Type.TOptional; /** Send silently (no notification) where supported. */ silent: Type.TOptional; /** Channel-specific parse mode for formatted text. */ parseMode: Type.TOptional>; /** Optional session key for mirroring delivered output back into the transcript. */ sessionKey: Type.TOptional; idempotencyKey: Type.TString; }>; /** Poll creation request for adapters that support native polls. */ export declare const PollParamsSchema: Type.TObject<{ to: Type.TString; question: Type.TString; options: Type.TArray; maxSelections: Type.TOptional; /** Poll duration in seconds (channel-specific limits may apply). */ durationSeconds: Type.TOptional; durationHours: Type.TOptional; /** Send silently (no notification) where supported. */ silent: Type.TOptional; /** Poll anonymity where supported (e.g. Telegram polls default to anonymous). */ isAnonymous: Type.TOptional; /** Thread id (channel-specific meaning, e.g. Telegram forum topic id). */ threadId: Type.TOptional; channel: Type.TOptional; accountId: Type.TOptional; idempotencyKey: Type.TString; }>; /** Main agent-run request accepted by the gateway. */ export declare const AgentParamsSchema: Type.TObject<{ message: Type.TString; agentId: Type.TOptional; provider: Type.TOptional; model: Type.TOptional; to: Type.TOptional; replyTo: Type.TOptional; sessionId: Type.TOptional; sessionKey: Type.TOptional; thinking: Type.TOptional; deliver: Type.TOptional; attachments: Type.TOptional>; channel: Type.TOptional; replyChannel: Type.TOptional; accountId: Type.TOptional; replyAccountId: Type.TOptional; threadId: Type.TOptional; groupId: Type.TOptional; groupChannel: Type.TOptional; groupSpace: Type.TOptional; timeout: Type.TOptional; bestEffortDeliver: Type.TOptional; lane: Type.TOptional; cleanupBundleMcpOnRunEnd: Type.TOptional; modelRun: Type.TOptional; promptMode: Type.TOptional, Type.TLiteral<"minimal">, Type.TLiteral<"none">]>>; extraSystemPrompt: Type.TOptional; bootstrapContextMode: Type.TOptional, Type.TLiteral<"lightweight">]>>; bootstrapContextRunKind: Type.TOptional, Type.TLiteral<"heartbeat">, Type.TLiteral<"cron">]>>; acpTurnSource: Type.TOptional>; internalRuntimeHandoffId: Type.TOptional; internalEvents: Type.TOptional; source: Type.TString; childSessionKey: Type.TString; childSessionId: Type.TOptional; announceType: Type.TString; taskLabel: Type.TString; status: Type.TString; statusLabel: Type.TString; result: Type.TString; attachments: Type.TOptional; path: Type.TOptional; url: Type.TOptional; mediaUrl: Type.TOptional; filePath: Type.TOptional; mimeType: Type.TOptional; name: Type.TOptional; }>>>; mediaUrls: Type.TOptional>; statsLine: Type.TOptional; replyInstruction: Type.TString; }>>>; inputProvenance: Type.TOptional; sourceSessionKey: Type.TOptional; sourceChannel: Type.TOptional; sourceTool: Type.TOptional; }>>; suppressPromptPersistence: Type.TOptional; sessionEffects: Type.TOptional, Type.TLiteral<"internal">]>>; sourceReplyDeliveryMode: Type.TOptional, Type.TLiteral<"message_tool_only">]>>; disableMessageTool: Type.TOptional; voiceWakeTrigger: Type.TOptional; idempotencyKey: Type.TString; label: Type.TOptional; }>; /** Identity lookup request for the current or selected agent/session. */ export declare const AgentIdentityParamsSchema: Type.TObject<{ agentId: Type.TOptional; sessionKey: Type.TOptional; }>; /** Public display identity returned for an agent. */ export declare const AgentIdentityResultSchema: Type.TObject<{ agentId: Type.TString; name: Type.TOptional; avatar: Type.TOptional; avatarSource: Type.TOptional; avatarStatus: Type.TOptional; avatarReason: Type.TOptional; emoji: Type.TOptional; }>; /** Waits for a submitted agent run to complete or time out. */ export declare const AgentWaitParamsSchema: Type.TObject<{ runId: Type.TString; timeoutMs: Type.TOptional; }>; /** Wake request from external schedulers or devices into an agent session. */ export declare const WakeParamsSchema: Type.TObject<{ mode: Type.TUnion<[Type.TLiteral<"now">, Type.TLiteral<"next-heartbeat">]>; text: Type.TString; sessionKey: Type.TOptional; }>;