Spaces:
Paused
Paused
Download shared/types.ts from lenson78/codex-proxy: direct link, hf CLI and curl.
- Browser
- Download file 950 Bytes
-
https://huggingface.co/spaces/lenson78/codex-proxy/resolve/2ee979792eeb63e5cf4eb9cda45edfceb60ecbfa/shared/types.ts
- Command line
-
hf download hf://spaces/lenson78/codex-proxy@2ee979792eeb63e5cf4eb9cda45edfceb60ecbfa/shared/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/lenson78/codex-proxy/resolve/2ee979792eeb63e5cf4eb9cda45edfceb60ecbfa/shared/types.ts
950 Bytes
| export interface AccountQuota { | |
| rate_limit?: { | |
| used_percent?: number | null; | |
| limit_reached?: boolean; | |
| reset_at?: number | null; | |
| limit_window_seconds?: number | null; | |
| }; | |
| } | |
| export interface Account { | |
| id: string; | |
| email: string; | |
| status: string; | |
| planType?: string; | |
| usage?: { | |
| request_count?: number; | |
| input_tokens?: number; | |
| output_tokens?: number; | |
| window_request_count?: number; | |
| window_input_tokens?: number; | |
| window_output_tokens?: number; | |
| }; | |
| quota?: AccountQuota; | |
| proxyId?: string; | |
| proxyName?: string; | |
| } | |
| export interface ProxyHealthInfo { | |
| exitIp: string | null; | |
| latencyMs: number; | |
| lastChecked: string; | |
| error: string | null; | |
| } | |
| export interface ProxyEntry { | |
| id: string; | |
| name: string; | |
| url: string; | |
| status: "active" | "unreachable" | "disabled"; | |
| health: ProxyHealthInfo | null; | |
| addedAt: string; | |
| } | |
| export interface ProxyAssignment { | |
| accountId: string; | |
| proxyId: string; | |
| } | |