import * as s from '../schemas'; import type { Transport } from './transport'; /** * Body for binding a webhook verifier to a topic * (PUT `/api/hooks/topics/{topic}/verifier`). `verifier` is a registered verifier * NAME, resolved against the live registry at bind time (an unknown name is a loud * 400). `config` is that verifier's config object — it carries a `secret_env` name, * never a secret value — and defaults to `{}` when omitted. */ export interface TopicVerifierBody { readonly verifier: string; readonly config?: Record; } export declare function hooksClient(t: Transport): { listHooks: (topic?: string, signal?: AbortSignal) => Promise<{ items: { cancel_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; condition: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; execution_key: string; execution_key_fingerprint: string; extras_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; name: string; resume_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; start_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; state_binding: { states: { input_injections: { into: string; jq: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; template_jq: string | null; }[]; scope_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; state: string; subject_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; }; templates: string[]; updates: { adapter: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; jq: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; op_id: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; template_jq: string | null; }[]; }[]; } | null; subject: { key_expr: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; }; kind: string; target_kind: "tool" | "agent"; target_name: string; } | null; tool: string; tool_kwargs: Record; topic: string; }[]; total: number; topic_verifiers: Record; }>; trigger_auth: Record; }>; registerHook: (params: s.HookRegister) => Promise<{ registered: boolean; name: string; }>; unregisterHook: (name: string) => Promise<{ removed: boolean; name: string; }>; listHookVerifiers: (signal?: AbortSignal) => Promise; setTopicVerifier: (topic: string, body: TopicVerifierBody) => Promise<{ topic: string; verifier: string; }>; deleteTopicVerifier: (topic: string) => Promise<{ removed: boolean; topic: string; }>; }; //# sourceMappingURL=hooks-client.d.ts.map