Skip to content

Type Alias: GrantRecord

type GrantRecord = object;

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

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:817
dbId string packages/sdk/src/index.ts:811
granteeTenantId string packages/sdk/src/index.ts:813
id string packages/sdk/src/index.ts:809
ownerTenantId string packages/sdk/src/index.ts:812
priceModel? string packages/sdk/src/index.ts:815
revokedAt number | null packages/sdk/src/index.ts:818
role "owner" | "grantee" packages/sdk/src/index.ts:810
scope string[] packages/sdk/src/index.ts:814
status "active" | "revoked" packages/sdk/src/index.ts:816