auth/role_grant_offer_schema.ts view source
CreateRoleGrantOfferInput Input for query_role_grant_offer_create.
expires_at must be supplied — the query layer does not apply a default,
so callers can thread their own TTL (typically ROLE_GRANT_OFFER_DEFAULT_TTL_MS).
from_actor_id
Uuidto_account_id
Uuidto_actor_id
Optional actor-grain target on the recipient account. When set,
query_role_grant_offer_create validates that the actor belongs to
to_account_id and stamps the column; accept then matches against
this specific actor. Omit (or pass null) for the account-grain
default — any actor on to_account_id may accept.
Uuid | nullrole
stringscope_kind
Machine-readable kind for the scope_id. Required iff scope_id is
set; must be null when scope_id is null (DB-level CHECK rejects the
mismatch). Consumer-declared via create_scope_kind_schema(...).
string | nullscope_id
Uuid | nullmessage
string | nullexpires_at
Date