import { Type } from "typebox"; /** * Plugin control-surface protocol schemas. * * These payloads let the gateway expose plugin-provided UI actions without * baking plugin-specific payload shapes into the core protocol. */ /** Arbitrary plugin-owned JSON payload carried opaquely through the gateway. */ export declare const PluginJsonValueSchema: Type.TUnknown; /** Descriptor for one plugin-provided control UI action or surface. */ export declare const PluginControlUiDescriptorSchema: Type.TObject<{ id: Type.TString; pluginId: Type.TString; pluginName: Type.TOptional; surface: Type.TUnion<[Type.TLiteral<"session">, Type.TLiteral<"tool">, Type.TLiteral<"run">, Type.TLiteral<"settings">]>; label: Type.TString; description: Type.TOptional; placement: Type.TOptional; schema: Type.TOptional; requiredScopes: Type.TOptional>; }>; /** Empty request payload for listing plugin UI descriptors. */ export declare const PluginsUiDescriptorsParamsSchema: Type.TObject<{}>; /** Response payload containing all plugin UI descriptors visible to the client. */ export declare const PluginsUiDescriptorsResultSchema: Type.TObject<{ ok: Type.TLiteral; descriptors: Type.TArray; surface: Type.TUnion<[Type.TLiteral<"session">, Type.TLiteral<"tool">, Type.TLiteral<"run">, Type.TLiteral<"settings">]>; label: Type.TString; description: Type.TOptional; placement: Type.TOptional; schema: Type.TOptional; requiredScopes: Type.TOptional>; }>>; }>; /** Request payload for invoking one plugin-owned session action. */ export declare const PluginsSessionActionParamsSchema: Type.TObject<{ pluginId: Type.TString; actionId: Type.TString; sessionKey: Type.TOptional; payload: Type.TOptional; }>; /** Successful plugin action result, optionally continuing the agent turn. */ export declare const PluginsSessionActionSuccessResultSchema: Type.TObject<{ ok: Type.TLiteral; result: Type.TOptional; continueAgent: Type.TOptional; reply: Type.TOptional; }>; /** Failed plugin action result with plugin-owned detail payload. */ export declare const PluginsSessionActionFailureResultSchema: Type.TObject<{ ok: Type.TLiteral; error: Type.TString; code: Type.TOptional; details: Type.TOptional; }>; /** Discriminated plugin action result returned to gateway clients. */ export declare const PluginsSessionActionResultSchema: Type.TUnion<[Type.TObject<{ ok: Type.TLiteral; result: Type.TOptional; continueAgent: Type.TOptional; reply: Type.TOptional; }>, Type.TObject<{ ok: Type.TLiteral; error: Type.TString; code: Type.TOptional; details: Type.TOptional; }>]>;