/** Settings-profile record, version, diff and apply response schemas. */ import { z } from 'zod'; /** * `GET /api/config/profiles` — one row per stored profile. The list is * names+descriptions ONLY (action=read); no `env`, no `secret_keys`, no bodies. * (No `last_modified`: the list carries identity, not history — version metadata * is the `/versions` surface — so the list renders no last-modified column.) */ export declare const settingsProfileSummary: z.ZodObject<{ name: z.ZodString; description: z.ZodString; }, z.core.$strip>; export type SettingsProfileSummary = z.infer; export declare const settingsProfileList: z.ZodArray>; /** * `GET /api/config/profiles/{name}` and each version body — the stored profile * document (action=secret). `env` carries REAL values; `secret_keys` is the * per-profile secret-marks band folded into the secret-mask union for masking. */ export declare const settingsProfileBody: z.ZodObject<{ description: z.ZodString; env: z.ZodRecord; secret_keys: z.ZodArray; }, z.core.$strip>; export type SettingsProfileBody = z.infer; /** `PUT /api/config/profiles/{name}` — a minimal save ack; `version` is the new store version. */ export declare const settingsProfileSaved: z.ZodObject<{ ok: z.ZodLiteral; version: z.ZodOptional; }, z.core.$strip>; export type SettingsProfileSaved = z.infer; /** `DELETE /api/config/profiles/{name}` — a minimal removal ack. */ export declare const settingsProfileDeleted: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>; /** `POST /api/config/profiles/{name}/rollback` — the restore ack; `version` is the resulting active version. */ export declare const settingsProfileRollback: z.ZodObject<{ ok: z.ZodLiteral; version: z.ZodNumber; }, z.core.$strip>; export type SettingsProfileRollback = z.infer; /** * `POST /api/config/profiles/{name}/diff` — the SAVED profile vs the stored env * (action=secret). `changed` carries real `old`/`new` values (UI masks via * JsonDiff); `recycle_keys`/`refused_keys` are the diff's recycle-class and * boundary-refused key names, called out in the UI before apply. */ export declare const settingsProfileDiff: z.ZodObject<{ added: z.ZodArray; removed: z.ZodArray; changed: z.ZodArray>; recycle_keys: z.ZodArray; refused_keys: z.ZodArray; }, z.core.$strip>; export type SettingsProfileDiff = z.infer; /** * `POST /api/config/profiles/{name}/apply` — the dedicated `profile_apply_response` * (action=fenced, destructive). NAMES-ONLY (no env value in any * section): `hot` is the hot-swapped key names; `recycle` is the orchestrator's * per-worker section — one `{name, kind, status, generation_before}` row per recycled * target, `generation_before` the life that was recycled, the applier's OWN row carrying * the `self-deferred` status literal when the diff has serve-affecting recycle keys; * `fresh` is the per-kind list of NEW ready lives observed since the pre-apply snapshot * (each `{name, kind, generation}`), evidence of fresh capacity and never claimed as any * target's successor; `refused` is `[]` on success by construction (populated * `{key, reason}` only on a refusal), the populated refusal surfaces being the diff * preview and the refusal error report. `fanout` is the mode-wrapped fleet broadcast, * parsed EXPLICITLY so a failed propagation reaches the shared fleet-report handler. A * drift throws `ApiSchemaError`. */ export declare const profileApplyResponse: z.ZodObject<{ hot: z.ZodArray; recycle: z.ZodArray>; fresh: z.ZodArray>; refused: z.ZodArray>; fanout: z.ZodDiscriminatedUnion<[z.ZodObject<{ mode: z.ZodLiteral<"local-only">; note: z.ZodString; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"fleet">; }, z.core.$strip>, z.ZodObject<{ op: z.ZodString; reachable: z.ZodBoolean; local_only: z.ZodBoolean; results: z.ZodArray; payload: z.ZodType>; error: z.ZodNullable; detail: z.ZodNullable; }, z.core.$strip>>; error: z.ZodNullable; mode: z.ZodLiteral<"unreachable">; }, z.core.$strip>], "mode">; }, z.core.$strip>; export type ProfileApplyResponse = z.infer; /** * `GET /api/config/profiles/{name}/versions` — version METADATA only (action=read; * no bodies), the generic versioned-store row minus `body`. `is_current` flags the * active pointer. */ export declare const settingsProfileVersionMeta: z.ZodObject<{ version: z.ZodNumber; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>; export type SettingsProfileVersionMeta = z.infer; export declare const settingsProfileVersionList: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>>; /** * `GET /api/config/profiles/{name}/versions/{version}` — one immutable version WITH * its `body` (action=secret; body rendered masked per the secret-mask union). The generic * versioned-store row shape. */ export declare const settingsProfileVersion: z.ZodObject<{ version: z.ZodNumber; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; body: z.ZodObject<{ description: z.ZodString; env: z.ZodRecord; secret_keys: z.ZodArray; }, z.core.$strip>; }, z.core.$strip>; export type SettingsProfileVersion = z.infer; //# sourceMappingURL=profiles.d.ts.map