/** * 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 */ /** * Transport-agnostic commands for per-user admin preferences. * * Same self-service posture as admin-account: `auth` is * `{ authenticated: true }` (no ability key), and the security property * "you may only touch your own preferences" is structural — the target * id comes from `actor.id`, never from the request payload. */ import { type Command } from '../../lib/create-command.js'; import type { AdminStore } from '../../store.js'; import type { GetPreferenceRequest, PreferenceResponse, SetPreferenceRequest } from './schemas.js'; export interface AdminPreferencesCommandDeps { store: AdminStore; } export declare const getPreferenceCommand: Command; export declare const setPreferenceCommand: Command;