import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Name of the provider */ export declare const ProviderResponseProviderName: { readonly AnyScale: "AnyScale"; readonly Atoma: "Atoma"; readonly CentML: "Cent-ML"; readonly CrofAI: "CrofAI"; readonly Enfer: "Enfer"; readonly GoPomelo: "GoPomelo"; readonly HuggingFace: "HuggingFace"; readonly Hyperbolic2: "Hyperbolic 2"; readonly InoCloud: "InoCloud"; readonly Kluster: "Kluster"; readonly Lambda: "Lambda"; readonly Lepton: "Lepton"; readonly Lynn2: "Lynn 2"; readonly Lynn: "Lynn"; readonly Mancer: "Mancer"; readonly Meta: "Meta"; readonly Modal: "Modal"; readonly Nineteen: "Nineteen"; readonly OctoAI: "OctoAI"; readonly Recursal: "Recursal"; readonly Reflection: "Reflection"; readonly Replicate: "Replicate"; readonly SambaNova2: "SambaNova 2"; readonly SFCompute: "SF Compute"; readonly Targon: "Targon"; readonly Together2: "Together 2"; readonly Ubicloud: "Ubicloud"; readonly OneDotAI: "01.AI"; readonly AkashML: "AkashML"; readonly Ai21: "AI21"; readonly AionLabs: "AionLabs"; readonly Alibaba: "Alibaba"; readonly Ambient: "Ambient"; readonly Baidu: "Baidu"; readonly AmazonBedrock: "Amazon Bedrock"; readonly AmazonNova: "Amazon Nova"; readonly Anthropic: "Anthropic"; readonly ArceeAI: "Arcee AI"; readonly AtlasCloud: "AtlasCloud"; readonly Avian: "Avian"; readonly Azure: "Azure"; readonly BaseTen: "BaseTen"; readonly BytePlus: "BytePlus"; readonly BlackForestLabs: "Black Forest Labs"; readonly Cerebras: "Cerebras"; readonly Chutes: "Chutes"; readonly Cirrascale: "Cirrascale"; readonly Clarifai: "Clarifai"; readonly Cloudflare: "Cloudflare"; readonly Cohere: "Cohere"; readonly Crucible: "Crucible"; readonly Crusoe: "Crusoe"; readonly Darkbloom: "Darkbloom"; readonly DeepInfra: "DeepInfra"; readonly DeepSeek: "DeepSeek"; readonly DekaLLM: "DekaLLM"; readonly DigitalOcean: "DigitalOcean"; readonly Featherless: "Featherless"; readonly Fireworks: "Fireworks"; readonly Friendli: "Friendli"; readonly GMICloud: "GMICloud"; readonly Google: "Google"; readonly GoogleAIStudio: "Google AI Studio"; readonly Groq: "Groq"; readonly Hyperbolic: "Hyperbolic"; readonly Inception: "Inception"; readonly Inceptron: "Inceptron"; readonly InferenceNet: "InferenceNet"; readonly Ionstream: "Ionstream"; readonly Infermatic: "Infermatic"; readonly IoNet: "Io Net"; readonly Inflection: "Inflection"; readonly Liquid: "Liquid"; readonly Mara: "Mara"; readonly Mancer2: "Mancer 2"; readonly Minimax: "Minimax"; readonly ModelRun: "ModelRun"; readonly Mistral: "Mistral"; readonly Modular: "Modular"; readonly MoonshotAI: "Moonshot AI"; readonly Morph: "Morph"; readonly NCompass: "NCompass"; readonly Nebius: "Nebius"; readonly NexAGI: "Nex AGI"; readonly NextBit: "NextBit"; readonly Novita: "Novita"; readonly Nvidia: "Nvidia"; readonly OpenAI: "OpenAI"; readonly OpenInference: "OpenInference"; readonly Parasail: "Parasail"; readonly Poolside: "Poolside"; readonly Perceptron: "Perceptron"; readonly Perplexity: "Perplexity"; readonly Phala: "Phala"; readonly Recraft: "Recraft"; readonly Reka: "Reka"; readonly Relace: "Relace"; readonly SambaNova: "SambaNova"; readonly Seed: "Seed"; readonly SiliconFlow: "SiliconFlow"; readonly Sourceful: "Sourceful"; readonly StepFun: "StepFun"; readonly Stealth: "Stealth"; readonly StreamLake: "StreamLake"; readonly Switchpoint: "Switchpoint"; readonly Together: "Together"; readonly Upstage: "Upstage"; readonly Venice: "Venice"; readonly WandB: "WandB"; readonly Xiaomi: "Xiaomi"; readonly XAI: "xAI"; readonly ZAi: "Z.AI"; readonly FakeProvider: "FakeProvider"; }; /** * Name of the provider */ export type ProviderResponseProviderName = OpenEnum; /** * Details of a provider response for a generation attempt */ export type ProviderResponse = { /** * Internal endpoint identifier */ endpointId?: string | undefined; /** * Upstream provider response identifier */ id?: string | undefined; /** * Whether the request used a bring-your-own-key */ isByok?: boolean | undefined; /** * Response latency in milliseconds */ latency?: number | undefined; /** * Canonical model slug */ modelPermaslug?: string | undefined; /** * Name of the provider */ providerName?: ProviderResponseProviderName | undefined; /** * HTTP status code from the provider */ status: number | null; }; /** @internal */ export declare const ProviderResponseProviderName$inboundSchema: z.ZodType; /** @internal */ export declare const ProviderResponse$inboundSchema: z.ZodType; export declare function providerResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=providerresponse.d.ts.map