auth/admin_actions.ts view source
AdminActionOptions Options for create_admin_actions.
roles
Role schema result from create_role_schema(). Defaults to builtin
roles only. Used to derive grantable_roles (the subset whose
RoleSpec.grant_paths includes 'admin') returned by
admin_account_list.
app_settings
Mutable in-memory app settings ref — typically ctx.app_settings from
AppServerContext. When provided, the factory wires the
app_settings_get and app_settings_update handlers; the update
handler mutates this ref so signup middleware reads the new value
without a DB round trip. When omitted, those two methods have no
handler and RPC dispatch returns method_not_found.
connection_closer
Live-connection closer — when set, admin_session_revoke_all and
admin_token_revoke_all handlers eagerly close affected WebSocket
sockets for the target account BEFORE emitting the corresponding
audit event. Mirrors the self-service surface (see
AccountActionOptions.connection_closer). BackendWebsocketTransport
satisfies this interface structurally. When absent, only the
listener-based close (transports_ws_auth_guard) runs.
ConnectionCloser | null