/** * Browser-safe Zod model contracts shared across dbx-tools runtimes. * * This module is the single owner for model wire validation and TypeScript * types. Define schemas here and derive exported types with `z.infer`; do not * maintain parallel interfaces or generated schema mirrors. * * @module */ import { z } from "zod"; export declare const ModelClassSchema: z.ZodEnum<{ "chat-thinking": "chat-thinking"; "chat-balanced": "chat-balanced"; "chat-fast": "chat-fast"; embedding: "embedding"; }>; export type ModelClass = z.infer; /** Named runtime values for the model class contract. */ export declare const ModelClass: { readonly ChatThinking: "chat-thinking"; readonly ChatBalanced: "chat-balanced"; readonly ChatFast: "chat-fast"; readonly Embedding: "embedding"; }; export declare const ReasoningEffortSchema: z.ZodEnum<{ none: "none"; minimal: "minimal"; low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; max: "max"; }>; export type ReasoningEffort = z.infer; /** Named runtime values for the reasoning effort contract. */ export declare const ReasoningEffort: { readonly None: "none"; readonly Minimal: "minimal"; readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; readonly Xhigh: "xhigh"; readonly Max: "max"; }; /** Existing public name for reasoning effort runtime values. */ export declare const ReasoningEffortValues: { readonly None: "none"; readonly Minimal: "minimal"; readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; readonly Xhigh: "xhigh"; readonly Max: "max"; }; export declare const ModelProfileSchema: z.ZodObject<{ quality: z.ZodOptional; speed: z.ZodOptional; cost: z.ZodOptional; }, z.core.$strip>; export type ModelProfile = z.infer; export declare const ModelStatusSchema: z.ZodObject<{ deprecated: z.ZodDefault; }, z.core.$strip>; export type ModelStatus = z.infer; export declare const ServingEndpointSummarySchema: z.ZodObject<{ name: z.ZodString; displayName: z.ZodOptional; family: z.ZodOptional; task: z.ZodOptional; state: z.ZodOptional; description: z.ZodOptional; supportsTools: z.ZodOptional; profile: z.ZodOptional; speed: z.ZodOptional; cost: z.ZodOptional; }, z.core.$strip>>; class: z.ZodOptional>; serviceNames: z.ZodOptional>; modelServiceName: z.ZodOptional; reasoningEfforts: z.ZodOptional>>; status: z.ZodOptional; }, z.core.$strip>>; dimension: z.ZodOptional; }, z.core.$strip>; export type ServingEndpointSummary = z.infer; export declare const ModelQuerySchema: z.ZodObject<{ name: z.ZodOptional; search: z.ZodOptional; modelClass: z.ZodOptional>; requiresTools: z.ZodOptional; task: z.ZodOptional; dimension: z.ZodOptional; minDimension: z.ZodOptional; maxDimension: z.ZodOptional; reasoningEffort: z.ZodOptional>; includeDeprecated: z.ZodOptional; limit: z.ZodOptional; threshold: z.ZodOptional; }, z.core.$strip>; export type ModelQuery = z.infer; export declare const RankedModelSchema: z.ZodObject<{ endpoint: z.ZodObject<{ name: z.ZodString; displayName: z.ZodOptional; family: z.ZodOptional; task: z.ZodOptional; state: z.ZodOptional; description: z.ZodOptional; supportsTools: z.ZodOptional; profile: z.ZodOptional; speed: z.ZodOptional; cost: z.ZodOptional; }, z.core.$strip>>; class: z.ZodOptional>; serviceNames: z.ZodOptional>; modelServiceName: z.ZodOptional; reasoningEfforts: z.ZodOptional>>; status: z.ZodOptional; }, z.core.$strip>>; dimension: z.ZodOptional; }, z.core.$strip>; modelClass: z.ZodEnum<{ "chat-thinking": "chat-thinking"; "chat-balanced": "chat-balanced"; "chat-fast": "chat-fast"; embedding: "embedding"; }>; score: z.ZodOptional; }, z.core.$strip>; export type RankedModel = z.infer; export declare const EndpointCapabilitiesSchema: z.ZodObject<{ chat: z.ZodBoolean; embedding: z.ZodBoolean; tools: z.ZodBoolean; }, z.core.$strip>; export type EndpointCapabilities = z.infer; export declare const FamilyClassSchema: z.ZodObject<{ class: z.ZodEnum<{ "chat-thinking": "chat-thinking"; "chat-balanced": "chat-balanced"; "chat-fast": "chat-fast"; embedding: "embedding"; }>; rank: z.ZodNumber; }, z.core.$strip>; export type FamilyClass = z.infer; export declare const ModelCapabilitiesSchema: z.ZodObject<{ responses: z.ZodBoolean; imageInput: z.ZodBoolean; applyPatch: z.ZodBoolean; webSearch: z.ZodBoolean; }, z.core.$strip>; export type ModelCapabilities = z.infer; export declare const ModelRateLimitsSchema: z.ZodObject<{ inputTokensPerMinute: z.ZodNullable; outputTokensPerMinute: z.ZodNullable; queriesPerHour: z.ZodNullable; }, z.core.$strip>; export type ModelRateLimits = z.infer; export declare const ModelMetadataSchema: z.ZodObject<{ status: z.ZodObject<{ deprecated: z.ZodDefault; }, z.core.$strip>; capabilities: z.ZodObject<{ responses: z.ZodBoolean; imageInput: z.ZodBoolean; applyPatch: z.ZodBoolean; webSearch: z.ZodBoolean; }, z.core.$strip>; rateLimits: z.ZodOptional; outputTokensPerMinute: z.ZodNullable; queriesPerHour: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>; export type ModelMetadata = z.infer; export declare const ResolvedModelSchema: z.ZodObject<{ modelId: z.ZodString; matched: z.ZodBoolean; score: z.ZodOptional; }, z.core.$strip>; export type ResolvedModel = z.infer; export declare const ResolveModelOptionsSchema: z.ZodObject<{ threshold: z.ZodOptional; requiresTools: z.ZodOptional; }, z.core.$strip>; export type ResolveModelOptions = z.infer; export declare const ScoredEndpointSchema: z.ZodObject<{ endpoint: z.ZodObject<{ name: z.ZodString; displayName: z.ZodOptional; family: z.ZodOptional; task: z.ZodOptional; state: z.ZodOptional; description: z.ZodOptional; supportsTools: z.ZodOptional; profile: z.ZodOptional; speed: z.ZodOptional; cost: z.ZodOptional; }, z.core.$strip>>; class: z.ZodOptional>; serviceNames: z.ZodOptional>; modelServiceName: z.ZodOptional; reasoningEfforts: z.ZodOptional>>; status: z.ZodOptional; }, z.core.$strip>>; dimension: z.ZodOptional; }, z.core.$strip>; score: z.ZodNumber; }, z.core.$strip>; export type ScoredEndpoint = z.infer; export declare const ResolveModelInputSchema: z.ZodObject<{ explicit: z.ZodOptional; fuzzy: z.ZodOptional; threshold: z.ZodOptional; requiresTools: z.ZodOptional; modelClass: z.ZodOptional>; fallbacks: z.ZodOptional>; liveOnly: z.ZodOptional; }, z.core.$strip>; export type ResolveModelInput = z.infer; export declare const ResolvedModelSelectionSchema: z.ZodObject<{ modelId: z.ZodString; source: z.ZodEnum<{ class: "class"; explicit: "explicit"; "fuzzy-match": "fuzzy-match"; fallback: "fallback"; }>; }, z.core.$strip>; export type ResolvedModelSelection = z.infer;