Skip to content

Type Alias: GrantRecord

type GrantRecord = object;

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

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:846
dbId string packages/sdk/src/index.ts:840
granteeTenantId string packages/sdk/src/index.ts:842
id string packages/sdk/src/index.ts:838
ownerTenantId string packages/sdk/src/index.ts:841
priceModel? string packages/sdk/src/index.ts:844
revokedAt number | null packages/sdk/src/index.ts:847
role "owner" | "grantee" packages/sdk/src/index.ts:839
scope string[] packages/sdk/src/index.ts:843
status "active" | "revoked" packages/sdk/src/index.ts:845