/** * 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 { AdminRoleListResponse, AdminRoleResponse, CreateAdminRoleRequest, DeleteAdminRoleRequest, GetAdminRoleRequest, GetRolesForUserRequest, ListAdminRolesRequest, OkResponse, ReorderAdminRolesRequest, SetRolesForUserRequest, UpdateAdminRoleRequest, UserRolesResponse } from './schemas.js'; /** * Transport-agnostic commands for the admin-roles module. * * Every command goes through `createCommand`, which folds the four * standard steps (validate → assert admin actor + ability → invoke * service → validate output) into one declaration. * * Reorder uses the `update` ability — see `abilities.ts` for the * rationale (same trust level as content updates; splitting it would * force a redundant key on every role-managing role). */ export interface AdminRolesCommandDeps { store: AdminStore; } export declare const listAdminRolesCommand: Command; export declare const getAdminRoleCommand: Command; export declare const createAdminRoleCommand: Command; export declare const updateAdminRoleCommand: Command; export declare const deleteAdminRoleCommand: Command; export declare const reorderAdminRolesCommand: Command; export declare const getRolesForUserCommand: Command; export declare const setRolesForUserCommand: Command;