Skip to content

Type Alias: GrantRecord

type GrantRecord = object;

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

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:961
dbId string packages/sdk/src/index.ts:955
granteeTenantId string packages/sdk/src/index.ts:957
id string packages/sdk/src/index.ts:953
ownerTenantId string packages/sdk/src/index.ts:956
priceModel? string packages/sdk/src/index.ts:959
revokedAt number | null packages/sdk/src/index.ts:962
role "owner" | "grantee" packages/sdk/src/index.ts:954
scope string[] packages/sdk/src/index.ts:958
status "active" | "revoked" packages/sdk/src/index.ts:960