/** * Model Schema Definitions * * Re-exports model info types from @cline/shared (canonical source) * and defines provider-level schemas local to @cline/llms. */ import { z } from "zod"; export { ApiFormat, ApiFormatSchema, type ModelCapability, ModelCapabilitySchema, type ModelInfo, ModelInfoSchema, type ModelMetadata, ModelMetadataSchema, type ModelModalities, ModelModalitiesSchema, type ModelModality, ModelModalitySchema, type ModelOperation, type ModelOperationMode, ModelOperationModeSchema, ModelOperationSchema, type ModelPricing, ModelPricingSchema, type ModelStatus, ModelStatusSchema, type ThinkingConfig, ThinkingConfigSchema, } from "@cline/shared"; import { ProviderCapabilitySchema } from "@cline/shared"; export declare const ModelEntrySchema: z.ZodObject<{ id: z.ZodString; info: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; description: z.ZodOptional; maxTokens: z.ZodOptional; contextWindow: z.ZodOptional; maxInputTokens: z.ZodOptional; capabilities: z.ZodOptional>>; operation: z.ZodOptional>; operationModes: z.ZodOptional>>; modalities: z.ZodOptional>; output: z.ZodArray>; }, z.core.$strip>>; reasoningOptions: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"effort">; values: z.ZodArray>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"budget_tokens">; min: z.ZodOptional; max: z.ZodOptional; }, z.core.$strict>], "type">>>; apiFormat: z.ZodOptional>; systemRole: z.ZodOptional>; temperature: z.ZodOptional; pricing: z.ZodOptional; output: z.ZodOptional; cacheWrite: z.ZodOptional; cacheRead: z.ZodOptional; }, z.core.$strip>>; thinkingConfig: z.ZodOptional; outputPrice: z.ZodOptional; thinkingLevel: z.ZodOptional>; }, z.core.$strip>>; status: z.ZodOptional>; deprecationNotice: z.ZodOptional; replacedBy: z.ZodOptional; releaseDate: z.ZodOptional; deprecationDate: z.ZodOptional; family: z.ZodOptional; metadata: z.ZodOptional; }, z.core.$catchall>>; }, z.core.$strip>; }, z.core.$strip>; export type ModelEntry = z.infer; export type ProviderCapability = z.infer; export declare const ProviderProtocolSchema: z.ZodEnum<{ anthropic: "anthropic"; gemini: "gemini"; "openai-responses": "openai-responses"; "openai-chat": "openai-chat"; "openai-r1": "openai-r1"; "ai-sdk": "ai-sdk"; }>; declare const ProviderClientSchema: z.ZodEnum<{ anthropic: "anthropic"; "openai-compatible": "openai-compatible"; gemini: "gemini"; vertex: "vertex"; bedrock: "bedrock"; custom: "custom"; openai: "openai"; "openai-r1": "openai-r1"; "ai-sdk": "ai-sdk"; "ai-sdk-community": "ai-sdk-community"; fetch: "fetch"; }>; /** * ProviderSource indicates how a provider was added to the system, * which can be useful for determining trust level and whether to prompt the user for confirmation before using it. * For example, providers with source "system" are built-in and can be trusted, * while providers with source "file" were added by the user using a local JSON file, * and providers with source "discovery" were found through network discovery. */ declare const ProviderSourceSchema: z.ZodEnum<{ system: "system"; file: "file"; discovery: "discovery"; }>; export type ProviderClient = z.infer; export type ProviderProtocol = z.infer; export type ProviderSource = z.infer; export declare const ProviderInfoSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; protocol: z.ZodOptional>; baseUrl: z.ZodOptional; modelsSourceUrl: z.ZodOptional; defaultModelId: z.ZodString; capabilities: z.ZodOptional>>; env: z.ZodOptional>; client: z.ZodEnum<{ anthropic: "anthropic"; "openai-compatible": "openai-compatible"; gemini: "gemini"; vertex: "vertex"; bedrock: "bedrock"; custom: "custom"; openai: "openai"; "openai-r1": "openai-r1"; "ai-sdk": "ai-sdk"; "ai-sdk-community": "ai-sdk-community"; fetch: "fetch"; }>; source: z.ZodDefault>; metadata: z.ZodOptional>; }, z.core.$strip>; export type ProviderInfo = z.infer; export declare const ModelCollectionSchema: z.ZodObject<{ provider: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodOptional; protocol: z.ZodOptional>; baseUrl: z.ZodOptional; modelsSourceUrl: z.ZodOptional; defaultModelId: z.ZodString; capabilities: z.ZodOptional>>; env: z.ZodOptional>; client: z.ZodEnum<{ anthropic: "anthropic"; "openai-compatible": "openai-compatible"; gemini: "gemini"; vertex: "vertex"; bedrock: "bedrock"; custom: "custom"; openai: "openai"; "openai-r1": "openai-r1"; "ai-sdk": "ai-sdk"; "ai-sdk-community": "ai-sdk-community"; fetch: "fetch"; }>; source: z.ZodDefault>; metadata: z.ZodOptional>; }, z.core.$strip>; models: z.ZodRecord; description: z.ZodOptional; maxTokens: z.ZodOptional; contextWindow: z.ZodOptional; maxInputTokens: z.ZodOptional; capabilities: z.ZodOptional>>; operation: z.ZodOptional>; operationModes: z.ZodOptional>>; modalities: z.ZodOptional>; output: z.ZodArray>; }, z.core.$strip>>; reasoningOptions: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"effort">; values: z.ZodArray>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"budget_tokens">; min: z.ZodOptional; max: z.ZodOptional; }, z.core.$strict>], "type">>>; apiFormat: z.ZodOptional>; systemRole: z.ZodOptional>; temperature: z.ZodOptional; pricing: z.ZodOptional; output: z.ZodOptional; cacheWrite: z.ZodOptional; cacheRead: z.ZodOptional; }, z.core.$strip>>; thinkingConfig: z.ZodOptional; outputPrice: z.ZodOptional; thinkingLevel: z.ZodOptional>; }, z.core.$strip>>; status: z.ZodOptional>; deprecationNotice: z.ZodOptional; replacedBy: z.ZodOptional; releaseDate: z.ZodOptional; deprecationDate: z.ZodOptional; family: z.ZodOptional; metadata: z.ZodOptional; }, z.core.$catchall>>; }, z.core.$strip>>; }, z.core.$strip>; export type ModelCollection = z.infer; //# sourceMappingURL=types.d.ts.map