/** * 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 listAdminUsersRequestSchema: z.ZodObject<{ page: z.ZodDefault>; pageSize: z.ZodDefault>; query: z.ZodOptional; order: z.ZodDefault>>; desc: z.ZodDefault>; }, z.core.$strip>; export type ListAdminUsersRequest = z.infer; export declare const getAdminUserRequestSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; export type GetAdminUserRequest = z.infer; export declare const createAdminUserRequestSchema: z.ZodObject<{ email: z.ZodPipe>; password: z.ZodString; given_name: z.ZodOptional>; family_name: z.ZodOptional>; username: z.ZodOptional>; is_super_admin: z.ZodOptional; is_enabled: z.ZodOptional; is_email_verified: z.ZodOptional; preferred_locale: z.ZodOptional>; }, z.core.$strip>; export type CreateAdminUserRequest = z.infer; export declare const updateAdminUserRequestSchema: z.ZodObject<{ id: z.ZodUUID; vid: z.ZodNumber; patch: z.ZodObject<{ email: z.ZodOptional>>; given_name: z.ZodOptional>; family_name: z.ZodOptional>; username: z.ZodOptional>; is_super_admin: z.ZodOptional; is_enabled: z.ZodOptional; is_email_verified: z.ZodOptional; preferred_locale: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export type UpdateAdminUserRequest = z.infer; export declare const setAdminUserPasswordRequestSchema: z.ZodObject<{ id: z.ZodUUID; vid: z.ZodNumber; password: z.ZodString; }, z.core.$strip>; export type SetAdminUserPasswordRequest = z.infer; export declare const enableAdminUserRequestSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; export type EnableAdminUserRequest = z.infer; export declare const disableAdminUserRequestSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; export type DisableAdminUserRequest = z.infer; export declare const deleteAdminUserRequestSchema: z.ZodObject<{ id: z.ZodUUID; vid: z.ZodNumber; }, z.core.$strip>; export type DeleteAdminUserRequest = z.infer; /** * Public shape of an admin user. Deliberately excludes `password_hash` — * the DTO in `dto.ts` is responsible for producing exactly this shape * from an `AdminUserRow`, so the schema acts as a contract check. */ export declare const adminUserResponseSchema: z.ZodObject<{ id: z.ZodString; vid: z.ZodNumber; email: z.ZodString; given_name: z.ZodNullable; family_name: z.ZodNullable; username: z.ZodNullable; remember_me: z.ZodBoolean; last_login: z.ZodNullable; last_login_ip: z.ZodNullable; failed_login_attempts: z.ZodNumber; is_super_admin: z.ZodBoolean; is_enabled: z.ZodBoolean; is_email_verified: z.ZodBoolean; preferred_locale: z.ZodNullable; created_at: z.ZodDate; updated_at: z.ZodDate; }, z.core.$strip>; export type AdminUserResponse = z.infer; export declare const adminUserListResponseSchema: z.ZodObject<{ users: z.ZodArray; family_name: z.ZodNullable; username: z.ZodNullable; remember_me: z.ZodBoolean; last_login: z.ZodNullable; last_login_ip: z.ZodNullable; failed_login_attempts: z.ZodNumber; is_super_admin: z.ZodBoolean; is_enabled: z.ZodBoolean; is_email_verified: z.ZodBoolean; preferred_locale: z.ZodNullable; created_at: z.ZodDate; updated_at: z.ZodDate; }, z.core.$strip>>; meta: z.ZodObject<{ total: z.ZodNumber; total_pages: z.ZodNumber; page: z.ZodNumber; page_size: z.ZodNumber; query: z.ZodString; order: z.ZodEnum<{ created_at: "created_at"; email: "email"; family_name: "family_name"; given_name: "given_name"; updated_at: "updated_at"; username: "username"; }>; desc: z.ZodBoolean; }, z.core.$strip>; }, z.core.$strip>; export type AdminUserListResponse = z.infer; /** Empty response for void-returning mutations (set-password, enable, disable, delete). */ export declare const okResponseSchema: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strip>; export type OkResponse = z.infer;