auth/standard_rpc_actions.ts

Combined admin + permit-offer + account RPC actions for fuz_app consumers.

The canonical "standard" RPC surface: every stock fuz_app RPC action a typical web consumer wants on one endpoint. Consumers that want a narrower surface drop down to the per-domain factories directly (create_admin_actions / create_permit_offer_actions / create_account_actions).

Option routing: shared roles flows to both admin and permit-offer; app_settings goes to admin only; default_ttl_ms and authorize go to permit-offer only; max_tokens goes to account only; notification_sender reaches permit-offer transparently (admin + account ignore it).

Paired with create_admin_rpc_adapters on the UI side.

Declarations
#

3 declarations

view source

create_standard_rpc_actions
#

auth/standard_rpc_actions.ts view source

(deps: PermitOfferActionDeps, options?: StandardRpcActionsOptions): RpcAction[]

Build the combined admin + permit-offer + account RPC action set.

Spreads create_admin_actions(deps, {roles, app_settings}), create_permit_offer_actions(deps, {roles, default_ttl_ms, authorize}), and create_account_actions(deps, {max_tokens}). The shared roles option flows to admin + permit-offer.

deps

StandardRpcActionsDeps (log, on_audit_event, optional audit_log_config from AppDeps; optional notification_sender for WS fan-out)

options

role schema, optional app-settings ref, permit-offer config, account config

default {}

returns

RpcAction[]

RPC actions to pass as rpc_endpoints or spread into create_rpc_endpoint

StandardRpcActionsDeps
#

StandardRpcActionsOptions
#

Depends on
#