/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import { z } from 'zod'; export declare const listRegisteredAbilitiesRequestSchema: z.ZodOptional>; export type ListRegisteredAbilitiesRequest = z.infer; export declare const whoHasAbilityRequestSchema: z.ZodObject<{ ability: z.ZodString; }, z.core.$strip>; export type WhoHasAbilityRequest = z.infer; export declare const getRoleAbilitiesRequestSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; export type GetRoleAbilitiesRequest = z.infer; export declare const setRoleAbilitiesRequestSchema: z.ZodObject<{ id: z.ZodUUID; abilities: z.ZodArray; }, z.core.$strip>; export type SetRoleAbilitiesRequest = z.infer; export declare const abilityDescriptorResponseSchema: z.ZodObject<{ key: z.ZodString; label: z.ZodString; description: z.ZodNullable; group: z.ZodString; source: z.ZodNullable>; }, z.core.$strip>; export type AbilityDescriptorResponse = z.infer; export declare const abilityGroupResponseSchema: z.ZodObject<{ group: z.ZodString; abilities: z.ZodArray; group: z.ZodString; source: z.ZodNullable>; }, z.core.$strip>>; }, z.core.$strip>; export type AbilityGroupResponse = z.infer; /** * Inspector list payload. Returns both the flat list and the grouped * buckets so the UI can render either shape without re-bucketing. */ export declare const listRegisteredAbilitiesResponseSchema: z.ZodObject<{ abilities: z.ZodArray; group: z.ZodString; source: z.ZodNullable>; }, z.core.$strip>>; groups: z.ZodArray; group: z.ZodString; source: z.ZodNullable>; }, z.core.$strip>>; }, z.core.$strip>>; total: z.ZodNumber; }, z.core.$strip>; export type ListRegisteredAbilitiesResponse = z.infer; /** * Who-has-ability matrix entry. Roles and users are surfaced in the * same response so the inline-expand row in the inspector renders in * one round-trip. */ export declare const abilityHolderRoleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; machine_name: z.ZodString; }, z.core.$strip>; export type AbilityHolderRole = z.infer; export declare const abilityHolderUserSchema: z.ZodObject<{ id: z.ZodString; email: z.ZodString; given_name: z.ZodNullable; family_name: z.ZodNullable; }, z.core.$strip>; export type AbilityHolderUser = z.infer; export declare const whoHasAbilityResponseSchema: z.ZodObject<{ ability: z.ZodString; roles: z.ZodArray>; users: z.ZodArray; family_name: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>; export type WhoHasAbilityResponse = z.infer; /** * Editor payloads. `roleId` is echoed back on both responses so the * caller can match async writes against the role they were editing * without holding the id separately. `abilities` is the authoritative * stored set after the write. */ export declare const getRoleAbilitiesResponseSchema: z.ZodObject<{ roleId: z.ZodString; abilities: z.ZodArray; }, z.core.$strip>; export type GetRoleAbilitiesResponse = z.infer; export declare const setRoleAbilitiesResponseSchema: z.ZodObject<{ roleId: z.ZodString; abilities: z.ZodArray; }, z.core.$strip>; export type SetRoleAbilitiesResponse = z.infer;