/** * 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 { type Command } from '../../lib/create-command.js'; import type { AdminStore } from '../../store.js'; import type { AdminUserListResponse, AdminUserResponse, CreateAdminUserRequest, DeleteAdminUserRequest, DisableAdminUserRequest, EnableAdminUserRequest, GetAdminUserRequest, ListAdminUsersRequest, OkResponse, SetAdminUserPasswordRequest, UpdateAdminUserRequest } from './schemas.js'; /** * Transport-agnostic commands for the admin-users module. * * Each command is built through `createCommand`, which folds the four * standard steps (Zod-validate input → assert admin actor + ability → * call the service → Zod-validate output) into a single declaration. * The wrapper preserves the historical `(context, input, deps)` call * signature so server fns keep working without change. * * The `deps` argument holds the `AdminStore`. The webapp wraps these in * server fns that supply `deps` from the application's singleton store; * scripts and tests construct their own store and pass it in directly. */ export interface AdminUsersCommandDeps { store: AdminStore; } export declare const listAdminUsersCommand: Command; export declare const getAdminUserCommand: Command; export declare const createAdminUserCommand: Command; export declare const updateAdminUserCommand: Command; export declare const setAdminUserPasswordCommand: Command; export declare const enableAdminUserCommand: Command; export declare const disableAdminUserCommand: Command; export declare const deleteAdminUserCommand: Command;