auth/role_grant_offer_queries.ts view source
AcceptOfferInput Input for query_accept_offer.
offer_id
Uuidto_account_id
Account of the accepting recipient β IDOR guard against another account accepting the offer.
Uuidactor_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.
Uuidip
Optional IP to stamp on the audit events.
string | null