auth/role_grant_offer_queries.ts view source
AcceptOfferInput import type {AcceptOfferInput} from '@fuzdev/fuz_app/auth/role_grant_offer_queries.js'; Input for query_accept_offer.
offer_id
type Uuid
to_account_id
Account of the accepting recipient — IDOR guard against another account accepting the offer.
type Uuid
actor_id
Accepting actor — the actor that will hold the resulting role_grant.
Must belong to to_account_id; the query verifies and throws if not
(defense-in-depth — the action handler passes auth.actor.id which
is session-bound, but the query enforces the invariant for all
callers including tests and future direct consumers).
Required because under multi-actor an account may host many actors; the resulting role_grant must bind to the actor that actually accepted, not "an" actor on the account picked by query order.
type Uuid
ip?
Optional IP to stamp on the audit events.
type string | null