Grant
Defined in: src/schema.ts:72
A balance added to a metered / credits / capacity feature (ADR 0005).
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
actor? |
Actor |
- | src/schema.ts:86 |
amount |
number |
- | src/schema.ts:75 |
createdAt |
string |
- | src/schema.ts:87 |
expiresAt? |
string |
- | src/schema.ts:84 |
feature |
string |
- | src/schema.ts:74 |
id |
string |
- | src/schema.ts:73 |
metadata? |
JsonObject |
- | src/schema.ts:88 |
priority |
number |
Lower is consumed first (one-off grants). Default 0. |
src/schema.ts:82 |
reason? |
string |
- | src/schema.ts:85 |
recurring? |
boolean |
Recurring grants add amount to every period’s allowance. One-off grants (no recurring) are their own bucket, consumed after the allowance. |
src/schema.ts:80 |
startsAt? |
string |
- | src/schema.ts:83 |