Sign In

tensorfeed

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tensorfeed - npm Package Compare versions

Comparing version
1.23.0
to
1.24.0
+30
-0
dist/index.d.ts

@@ -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

@@ -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",