tensorfeed
Advanced tools
+30
-0
@@ -1464,2 +1464,15 @@ /** | ||
| /** | ||
| * Cross-provider uptime leaderboard. Free, 7-day cap. | ||
| * | ||
| * Returns providers ranked by uptime % DESC computed from minute-resolution | ||
| * counters (~720 samples per provider per day at the 2-min poll cadence). | ||
| * Each entry includes per-bucket poll counts plus `downtime_minutes` and | ||
| * `hard_down_minutes` (excludes degraded). For windows up to 90 days plus | ||
| * `incident_count` and `mttr_minutes` per provider, use the premium | ||
| * `statusLeaderboard()` (1 credit). | ||
| */ | ||
| statusLeaderboardFree(options?: { | ||
| days?: number; | ||
| }): Promise<unknown>; | ||
| /** | ||
| * Top-1 model recommendation. Free, 5 calls per UTC day per IP. | ||
@@ -1560,2 +1573,19 @@ * For full top-N with score breakdown and no rate limit, use routing(). | ||
| /** | ||
| * Cross-provider uptime leaderboard. Costs 1 credit. | ||
| * | ||
| * Same minute-resolution counter source as the free `statusLeaderboardFree()` | ||
| * but extends the window to the full 90-day retention horizon and adds | ||
| * `incident_count` and `mttr_minutes` (mean time to recover from resolved | ||
| * incidents) per provider. Returns providers ranked by uptime % DESC, with | ||
| * `hard_down_minutes` as tie-breaker. Aimed at SRE/ops/procurement teams | ||
| * comparing AI vendor reliability. | ||
| * | ||
| * @throws Error if no token is set on the client | ||
| * @throws PaymentRequired if the token has insufficient credits | ||
| */ | ||
| statusLeaderboard(options?: { | ||
| from?: string; | ||
| to?: string; | ||
| }): Promise<unknown>; | ||
| /** | ||
| * Register a webhook watch on a price change or status transition. | ||
@@ -1562,0 +1592,0 @@ * Costs 1 credit at registration. Watch lives 90 days, fires up to |
+33
-0
@@ -263,2 +263,15 @@ /** | ||
| } | ||
| /** | ||
| * Cross-provider uptime leaderboard. Free, 7-day cap. | ||
| * | ||
| * Returns providers ranked by uptime % DESC computed from minute-resolution | ||
| * counters (~720 samples per provider per day at the 2-min poll cadence). | ||
| * Each entry includes per-bucket poll counts plus `downtime_minutes` and | ||
| * `hard_down_minutes` (excludes degraded). For windows up to 90 days plus | ||
| * `incident_count` and `mttr_minutes` per provider, use the premium | ||
| * `statusLeaderboard()` (1 credit). | ||
| */ | ||
| async statusLeaderboardFree(options) { | ||
| return this.get('/status/leaderboard', { days: options?.days }); | ||
| } | ||
| // ── Free: routing preview (rate-limited) ─────────────────────── | ||
@@ -415,2 +428,22 @@ /** | ||
| } | ||
| /** | ||
| * Cross-provider uptime leaderboard. Costs 1 credit. | ||
| * | ||
| * Same minute-resolution counter source as the free `statusLeaderboardFree()` | ||
| * but extends the window to the full 90-day retention horizon and adds | ||
| * `incident_count` and `mttr_minutes` (mean time to recover from resolved | ||
| * incidents) per provider. Returns providers ranked by uptime % DESC, with | ||
| * `hard_down_minutes` as tie-breaker. Aimed at SRE/ops/procurement teams | ||
| * comparing AI vendor reliability. | ||
| * | ||
| * @throws Error if no token is set on the client | ||
| * @throws PaymentRequired if the token has insufficient credits | ||
| */ | ||
| async statusLeaderboard(options) { | ||
| this.requireToken('statusLeaderboard'); | ||
| return this.request('GET', '/premium/status/leaderboard', { | ||
| params: { from: options?.from, to: options?.to }, | ||
| requireToken: true, | ||
| }); | ||
| } | ||
| // ── Paid: webhook watches (1 credit per registration) ───────── | ||
@@ -417,0 +450,0 @@ /** |
+1
-1
| { | ||
| "name": "tensorfeed", | ||
| "version": "1.23.0", | ||
| "version": "1.24.0", | ||
| "description": "JavaScript/TypeScript SDK for the TensorFeed.ai API: AI news, status, model pricing, benchmarks, premium history series, webhook watches, and agent-payable premium routing (USDC on Base)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
98417
3.04%2654
2.43%