auth/admin_actions.ts view source
AdminActionOptions import type {AdminActionOptions} from '@fuzdev/fuz_app/auth/admin_actions.js'; 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.
type RoleSchemaResult
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.
type ConnectionCloser | null