eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
22 lines (21 loc) • 921 B
TypeScript
import { z } from "#compiled/zod/index.js";
declare const gatewayCatalogModelSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodString;
owned_by: z.ZodString;
released: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
tags: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString>>>;
pricing: z.ZodCatch<z.ZodOptional<z.ZodObject<{
service_tiers: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
}, z.core.$strip>>>;
}, z.core.$strip>;
/** One model entry from the AI Gateway catalog response. */
export type GatewayCatalogModel = z.infer<typeof gatewayCatalogModelSchema>;
/**
* Validates a Gateway catalog response. A malformed payload throws, but a
* malformed entry is skipped so one experimental entry shape cannot discard
* the rest of the catalog.
*/
export declare function parseGatewayModelCatalog(input: unknown): GatewayCatalogModel[];
export {};