/** * 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 { AccountResponse, ChangeAccountPasswordRequest, GetAccountRequest, SetPreferredLocaleRequest, UpdateAccountRequest } from './schemas.js'; /** * Transport-agnostic commands for admin-account self-service. * * Same `createCommand` shape as the other admin modules, with one * deliberate difference: `auth` is `{ authenticated: true }` rather than * `{ ability }`. There is no ability key to gate against — the security * property is "you may only mutate your own row," enforced structurally * by sourcing the target id from `actor.id` rather than from the request * payload. The request schemas do not accept an `id` field, so a caller * has no way to express "operate on someone else." */ export interface AdminAccountCommandDeps { store: AdminStore; } export declare const getAccountCommand: Command; export declare const updateAccountCommand: Command; export declare const changeAccountPasswordCommand: Command; export declare const setPreferredLocaleCommand: Command;