Skip to content

Type Alias: MintGrantRequest

type MintGrantRequest = object;

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

SK-EKP-008 — the cross-tenant read-grant control plane (EK-06). A grant lets the owner sell a grantee read-only query access to one named hosted knowledge DB — revocable, fail-closed, per-query metered. These verbs are session-only, the same threat model as the key verbs: a leaked sk_live_ must never open one tenant’s data to another, so they ride a first-party cookie (withCredentials: true), never a bearer. Enforcement of the grant on the buyer’s /v1/ask (scope, role, metering) is EK-06 box 2, server-side. POST /v1/grants mint request. scope enumerates the bare table names the grantee may read and is authoritative — schema widening never widens it. priceModel is an opaque tag the private selling surface (SK-EKP-003) writes and interprets; the public core never reads it and no fee logic, fee %, or Stripe call lives here (SK-EKP-002).

Property Type Defined in
dbId string packages/sdk/src/index.ts:684
granteeTenantId string packages/sdk/src/index.ts:685
priceModel? string packages/sdk/src/index.ts:687
scope string[] packages/sdk/src/index.ts:686