/** * 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 listAdminRolesRequestSchema: z.ZodOptional>; export type ListAdminRolesRequest = z.infer; export declare const getAdminRoleRequestSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; export type GetAdminRoleRequest = z.infer; export declare const createAdminRoleRequestSchema: z.ZodObject<{ name: z.ZodString; machine_name: z.ZodString; description: z.ZodOptional>; order: z.ZodOptional; }, z.core.$strip>; export type CreateAdminRoleRequest = z.infer; export declare const updateAdminRoleRequestSchema: z.ZodObject<{ id: z.ZodUUID; vid: z.ZodNumber; patch: z.ZodObject<{ name: z.ZodOptional; description: z.ZodOptional>; order: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export type UpdateAdminRoleRequest = z.infer; export declare const deleteAdminRoleRequestSchema: z.ZodObject<{ id: z.ZodUUID; vid: z.ZodNumber; }, z.core.$strip>; export type DeleteAdminRoleRequest = z.infer; export declare const reorderAdminRolesRequestSchema: z.ZodObject<{ ids: z.ZodArray; }, z.core.$strip>; export type ReorderAdminRolesRequest = z.infer; export declare const getRolesForUserRequestSchema: z.ZodObject<{ userId: z.ZodUUID; }, z.core.$strip>; export type GetRolesForUserRequest = z.infer; export declare const setRolesForUserRequestSchema: z.ZodObject<{ userId: z.ZodUUID; roleIds: z.ZodArray; }, z.core.$strip>; export type SetRolesForUserRequest = z.infer; export declare const adminRoleResponseSchema: z.ZodObject<{ id: z.ZodString; vid: z.ZodNumber; name: z.ZodString; machine_name: z.ZodString; description: z.ZodNullable; order: z.ZodNumber; created_at: z.ZodDate; updated_at: z.ZodDate; }, z.core.$strip>; export type AdminRoleResponse = z.infer; export declare const adminRoleListResponseSchema: z.ZodObject<{ roles: z.ZodArray; order: z.ZodNumber; created_at: z.ZodDate; updated_at: z.ZodDate; }, z.core.$strip>>; }, z.core.$strip>; export type AdminRoleListResponse = z.infer; /** * User-roles editor payload. `userId` is echoed back so the caller can * match async writes; `roles` is the authoritative role-set after the * write, shaped as full role rows so the drawer renders names without a * second fetch. */ export declare const userRolesResponseSchema: z.ZodObject<{ userId: z.ZodString; roles: z.ZodArray; order: z.ZodNumber; created_at: z.ZodDate; updated_at: z.ZodDate; }, z.core.$strip>>; }, z.core.$strip>; export type UserRolesResponse = z.infer; /** Empty response for void-returning mutations (delete, reorder). */ export declare const okResponseSchema: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>; export type OkResponse = z.infer;