Skip to content

Type Alias: GrantRecord

type GrantRecord = object;

Defined in: packages/sdk/src/index.ts:943

One row in listGrants() — both sides of the marketplace in one list: grants the caller sold (role: "owner") and grants it holds (role: "grantee"). revokedAt is non-null on revoked rows; active rows sort before revoked (one contiguous slice per section, same contract as the keys list).

Property Type Defined in
createdAt number packages/sdk/src/index.ts:952
dbId string packages/sdk/src/index.ts:946
granteeTenantId string packages/sdk/src/index.ts:948
id string packages/sdk/src/index.ts:944
ownerTenantId string packages/sdk/src/index.ts:947
priceModel? string packages/sdk/src/index.ts:950
revokedAt number | null packages/sdk/src/index.ts:953
role "owner" | "grantee" packages/sdk/src/index.ts:945
scope string[] packages/sdk/src/index.ts:949
status "active" | "revoked" packages/sdk/src/index.ts:951