/** Role grant, version and audit response schemas. */ import { z } from 'zod'; /** A role's per-tag ACCESS LEVEL: `none` (no access), `read`, or `write`. */ export declare const grantLevel: z.ZodEnum<{ none: "none"; read: "read"; write: "write"; }>; export type GrantLevel = z.infer; /** A role's editable grant map: feature-group TAG name → the role's access level. */ export declare const roleGrants: z.ZodRecord>; export type RoleGrants = z.infer; export declare const roleList: z.ZodArray; base_tier: z.ZodDefault>; condition: z.ZodDefault; id: z.ZodOptional; kwargs: z.ZodOptional>; }, z.core.$strict>, z.ZodNull]>>; description: z.ZodString; grants: z.ZodRecord>; name: z.ZodString; scopes: z.ZodDefault>; }, z.core.$strip>>; /** `DELETE /api/auth/roles/{name}` — the deleted role's name. */ export declare const roleDeleted: z.ZodObject<{ name: z.ZodString; deleted: z.ZodBoolean; }, z.core.$strip>; /** * One immutable role-version row (`GET /api/auth/roles/{name}/versions` → * `versions`). `body` is the role body at that version; `is_current` flags the * active pointer. Mirrors the generic versioned-store row shape. */ export declare const roleVersion: z.ZodObject<{ version: z.ZodNumber; body: z.ZodObject<{ allow_all: z.ZodDefault; base_tier: z.ZodDefault>; condition: z.ZodDefault; id: z.ZodOptional; kwargs: z.ZodOptional>; }, z.core.$strict>, z.ZodNull]>>; description: z.ZodString; grants: z.ZodRecord>; name: z.ZodString; scopes: z.ZodDefault>; }, z.core.$strip>; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>; export type RoleVersion = z.infer; /** * One who/action/before→after audit row (`GET /api/auth/roles/{name}/versions` → * `audit`). Its `body` carries the mutation kind, the actor, and the before/after * role bodies (both `null` for a create's `before` / a delete's `after`). */ export declare const roleAuditEvent: z.ZodObject<{ version: z.ZodNumber; body: z.ZodObject<{ action: z.ZodString; actor: z.ZodNullable; before: z.ZodNullable>>; after: z.ZodNullable>>; }, z.core.$strip>; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>; export type RoleAuditEvent = z.infer; /** `GET /api/auth/roles/{name}/versions` — the append-only history + audit trail. */ export declare const roleVersions: z.ZodObject<{ versions: z.ZodArray; base_tier: z.ZodDefault>; condition: z.ZodDefault; id: z.ZodOptional; kwargs: z.ZodOptional>; }, z.core.$strict>, z.ZodNull]>>; description: z.ZodString; grants: z.ZodRecord>; name: z.ZodString; scopes: z.ZodDefault>; }, z.core.$strip>; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>>; audit: z.ZodArray; before: z.ZodNullable>>; after: z.ZodNullable>>; }, z.core.$strip>; tags: z.ZodArray; created_at: z.ZodString; is_current: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; export type RoleVersions = z.infer; //# sourceMappingURL=roles.d.ts.map