/** * log10x_retriever_register — write the Retriever endpoint + queue * coordinates onto an existing environment-config document. * * The env document is the single source of truth for everything tools * need to act on a given Log10x environment: cluster identity, SIEM * destination, offload destinations, streamer endpoint, and (this * tool's responsibility) the Retriever block: query URL, offload * bucket, and the four SQS queues the Retriever coordinates on. * * Precondition: the environment must already exist in the env-config * store (created by `log10x_env_register`). This tool refuses to * conjure a partial document — without the cluster + destination * fields a freshly-stamped retriever block would orphan the rest of * the schema. Surface the missing-env error verbatim so the agent * knows to call `log10x_env_register` first. * * Storage: walks the SAME store chain `log10x_env_register` writes to — * k8s ConfigMap → AWS SSM → GCP Secret Manager → Azure App Configuration * → local file. Read finds the store that holds the env doc; write goes * back to the SAME store so the merged document overlays the original * (writing to a lower-precedence backend would silently shadow the source * of truth — the resolver would still pick the k8s ConfigMap on the next * read and ignore the local-file edit). * * Idempotent: calling twice with the same args replaces the retriever * block in place. `updated_at` is refreshed on every write so the * resolver's stale-env-var detection can spot drift. */ import { z } from 'zod'; import type { EnvConfigStore } from '../lib/env-config/store-interface.js'; import { type StructuredOutput } from '../lib/output-types.js'; export declare const retrieverRegisterSchema: { env_id: z.ZodString; url: z.ZodString; input_bucket: z.ZodString; input_prefix: z.ZodOptional; query_queues: z.ZodObject<{ index: z.ZodString; subquery: z.ZodString; stream: z.ZodString; query: z.ZodString; }, "strip", z.ZodTypeAny, { query: string; index: string; subquery: string; stream: string; }, { query: string; index: string; subquery: string; stream: string; }>; query_log_group: z.ZodOptional; helm_release: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; namespace: string; chart_version?: string | undefined; }, { name: string; namespace: string; chart_version?: string | undefined; }>>; }; interface RetrieverRegisterArgs { env_id: string; url: string; input_bucket: string; input_prefix?: string; query_queues: { index: string; subquery: string; stream: string; query: string; }; query_log_group?: string; helm_release?: { name: string; namespace: string; chart_version?: string; }; } export declare function executeRetrieverRegister(args: RetrieverRegisterArgs, storesOverride?: EnvConfigStore[]): Promise; export {};