/** Access-policy validation, version and rollback response schemas. */ import { z } from 'zod'; /** * `POST /api/auth/validate-condition` — the fail-closed jq guard. `ok` is the * compile/render result; `result` is the boolean of a sample evaluation, or * `null` when no `sample_context` was supplied (compile-only). A broken condition * is a `400 {error}` surfaced by the transport, NEVER a false `ok` — so a * syntactically-broken condition can be caught before it locks a key out. A drift * throws `ApiSchemaError`. */ export declare const validateConditionResult: z.ZodObject<{ ok: z.ZodBoolean; result: z.ZodNullable; }, z.core.$strip>; export type ValidateConditionResult = z.infer; /** * One immutable policy version row * (`GET /api/auth/api-keys/{user_id}/policy/versions`). `is_current` flags the * active pointer; `tags` is the generic per-version label list (kind-agnostic), * mirroring the preset version shape. */ export declare const policyVersion: z.ZodObject<{ version: z.ZodNumber; body: z.ZodObject<{ condition: z.ZodDefault; id: z.ZodOptional; kwargs: z.ZodOptional>; }, z.core.$strict>, z.ZodNull]>>; policy_data: z.ZodDefault>; scopes: z.ZodDefault>; }, z.core.$strip>; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>; export type PolicyVersion = z.infer; export declare const policyVersionList: z.ZodArray; id: z.ZodOptional; kwargs: z.ZodOptional>; }, z.core.$strict>, z.ZodNull]>>; policy_data: z.ZodDefault>; scopes: z.ZodDefault>; }, z.core.$strip>; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>>; /** `POST /api/auth/api-keys/{user_id}/policy/rollback` — the re-pointed version. */ export declare const policyRollback: z.ZodObject<{ user_id: z.ZodString; active_version: z.ZodNumber; }, z.core.$strip>; //# sourceMappingURL=policy.d.ts.map