auth/role_grant_offer_schema.ts view source
CreateRoleGrantOfferInput import type {CreateRoleGrantOfferInput} from '@fuzdev/fuz_app/auth/role_grant_offer_schema.js'; 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
type Uuid
to_account_id
type Uuid
to_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.
type Uuid | null
role
type string
scope_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(...).
type string | null
scope_id?
type Uuid | null
message?
type string | null
expires_at
type Date