apiblaze 0.21.19 → 0.21.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -5
  2. package/dist/index.js +6943 -5483
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # apiblaze
2
2
 
3
- > **Superseded 2026-09-24** for throttling, quota and credits by `specs/TQC/final_throttling_quota_credits.MD`. Upstash is gone; anything below about Redis keys, Lua gates, leases-on-Upstash or the reclaim/reconcile crons is historical.
3
+ > **Superseded 2026-09-24** for throttling, quota and credits by `specs/TQC/final_throttling_quota_credits.MD`. Upstash is gone; anything below about Redis keys, Lua gates, leases-on-Upstash or the reclaim crons is historical. Money history is the money ledger (`apiblaze billing history`, `apiblaze op ledger`).
4
4
 
5
5
  CLI for [APIblaze](https://apiblaze.com) — chat with your APIs, run them as serverless proxies, and let your customers self-serve keys, users & groups from your own site.
6
6
 
@@ -226,15 +226,15 @@ Every chat turn shows its cost.
226
226
 
227
227
  ### Producer — limits
228
228
 
229
- Three names, fixed: **rate limit** (requests per second — Standard mode is approximate per
230
- location and free, Strict is exact per consumer), **quota** (an exact count per fixed UTC
229
+ Three names, fixed: **rate limit** (requests per second per consumer key — approximate per
230
+ location, free, a burst may briefly exceed it), **quota** (an exact count per fixed UTC
231
231
  window) and **spend cap** (exact dollars per month). Every rate is shown with its 10-second
232
232
  figure beside it (`50/s (500 per 10 s)`), because that is the window the Standard limiter counts.
233
233
 
234
234
  | Command | What it does |
235
235
  |---|---|
236
236
  | `apiblaze limits get <project> [--version v]` | Show mode, rate limits, ceiling, quota, spend cap, credential quota |
237
- | `apiblaze limits set <project> [--rate n] [--end-user-rate n] [--mode strict\|standard] [--quota n --period daily\|weekly\|monthly] [--spend-cap usd] [--credential-quota n]` | Change any subset (`--quota none` / `--spend-cap none` clear). A rate above the self-serve ceiling is refused and the output prints the exact `limits request-max` command |
237
+ | `apiblaze limits set <project> [--rate n] [--end-user-rate n] [--quota n --period daily\|weekly\|monthly] [--spend-cap usd] [--credential-quota n]` | Change any subset (`--quota none` / `--spend-cap none` clear). A rate above the self-serve ceiling is refused and the output prints the exact `limits request-max` command |
238
238
  | `apiblaze limits request-max <project> --rps n [--use-case "…"]` | Ask for a higher ceiling (instant to 1,000/s for a proven wallet; an operator approves above) |
239
239
  | `apiblaze limits usage <project> [--watch]` | The team quota meter: used / in use / limit / resets in. Per-project usage is not exposed by the API yet — the output says so |
240
240
  | `apiblaze config <project> limits.<key> [value]` | The same settings by key: `limits.mode`, `limits.consumerRps`, `limits.endUserRps`, `limits.ceilingRps` (read-only), `limits.quota.limit`, `limits.quota.period`, `limits.spendCapCents`. The old `throttling.*` keys still work for one release |
@@ -248,7 +248,7 @@ figure beside it (`50/s (500 per 10 s)`), because that is the window the Standar
248
248
  |---|---|
249
249
  | `apiblaze billing balance [--team]` | Available, in use (pre-paid to live requests), grace owed, status, auto-rebuy, last top-up. Numbers are shown only to the wallet owner |
250
250
  | `apiblaze billing topup <usd> [--team] [--open]` | Prints (or opens) the dashboard wallet page for that amount — card checkout runs in your browser session |
251
- | `apiblaze billing history [--since d] [--until d] [--project p] [--format table\|json\|csv] [--raw]` | Usage and exact cost as daily rollups, per consumer key; `--raw` = hourly |
251
+ | `apiblaze billing history [--since d] [--until d] [--project p] [--limit n] [--before cursor] [--format table\|json\|csv] [--raw]` | The team's money ledger, newest first: pending lines (made by the wallet, not sent yet), then events (kind, amount, balance after) and 5-minute usage blocks (requests, amount); follows pages up to `--limit` (default 100) and prints a `--before` cursor when more remain. Then usage and exact cost per project as daily rollups; `--raw` = one usage row per 5-minute bucket |
252
252
  | `apiblaze billing rebuy on\|off\|status [--amount usd] [--threshold usd]` | Auto-rebuy: add `--amount` whenever available drops under `--threshold` |
253
253
 
254
254
  When a call is refused for money or limits, every command prints the same thing for the same