Skip to content

Type Alias: GrantRecord

type GrantRecord = object;

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

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:716
dbId string packages/sdk/src/index.ts:710
granteeTenantId string packages/sdk/src/index.ts:712
id string packages/sdk/src/index.ts:708
ownerTenantId string packages/sdk/src/index.ts:711
priceModel? string packages/sdk/src/index.ts:714
revokedAt number | null packages/sdk/src/index.ts:717
role "owner" | "grantee" packages/sdk/src/index.ts:709
scope string[] packages/sdk/src/index.ts:713
status "active" | "revoked" packages/sdk/src/index.ts:715