UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

56 lines 1.63 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * AI Gateway quota associated with an API key. */ export type APIKeyQuota = { /** * The unique identifier for the quota. */ quotaEntityId: string; /** * The quota limit amount. */ limitAmount: number; /** * The current amount spent against the quota. */ currentSpend: number; /** * The current BYOK spend (tracked separately). */ currentByokSpend: number; /** * Whether BYOK (Bring Your Own Key) spend counts against the quota. */ includeByokInQuota: boolean; /** * How often the quota refreshes. */ refreshPeriod: string; /** * Whether the quota is currently active. */ active: boolean; /** * Whether the quota has been archived. */ archived: boolean; /** * Spend percentages (a subset of [50, 75, 100]) at which to send a spend alert. Empty or undefined disables alerts. */ alertThresholds?: Array<number> | undefined; /** * Timestamp (in milliseconds) of when the quota was created. */ createdAt: number; /** * Timestamp (in milliseconds) of when the quota was last updated. */ updatedAt: number; }; /** @internal */ export declare const APIKeyQuota$inboundSchema: z.ZodType<APIKeyQuota, z.ZodTypeDef, unknown>; export declare function apiKeyQuotaFromJSON(jsonString: string): SafeParseResult<APIKeyQuota, SDKValidationError>; //# sourceMappingURL=apikeyquota.d.ts.map