diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f35559c85..0320639d6 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: "" id: "" management: - docChecksum: 3cdd0a6bb971453b3f08e69bc6940ee5 + docChecksum: 1da07a20ce1249a56e900563184936d0 docVersion: 1.0.0 speakeasyVersion: 1.808.1 generationVersion: 2.960.8 - releaseVersion: 1.5.162 - configChecksum: d725f07fbdad6b88d9f38aa716b04f93 + releaseVersion: 1.5.163 + configChecksum: 12e444b386c6afc9e6d7e474cc4be3a5 repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git installationURL: https://github.com/OpenRouterTeam/typescript-sdk published: true @@ -23925,6 +23925,4 @@ examples: "500": application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}} examplesVersion: 1.0.2 -releaseNotes: | - ## Typescript SDK Changes: - * `openrouter.batch.cancel()`: **Added** +releaseNotes: "## Typescript SDK Changes:\n* `openrouter.alpha.decisions.create()`: \n * `request.decisionsRequest.provider` **Changed**\n* `openrouter.alpha.extractions.create()`: \n * `request.extractionsRequest.provider` **Changed**\n* `openrouter.tts.createSpeech()`: \n * `request.speechRequest.provider` **Changed**\n* `openrouter.stt.createTranscription()`: \n * `request.sttRequest.provider` **Changed**\n* `openrouter.stt.listModels()`: `response.data[].endpoints[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n* `openrouter.stt.getModel()`: `response.endpoints[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n* `openrouter.batch.createBatches()`: \n * `request.batchSubmitBody.provider.only[].union(ProviderName).enum(celeris)` **Added**\n* `openrouter.byok.list()`: \n * `request.provider` **Changed**\n * `response.data[].provider.enum(celeris)` **Added**\n* `openrouter.byok.create()`: \n * `request.createByokKeyRequest.provider.enum(celeris)` **Added**\n * `response.data.provider.enum(celeris)` **Added**\n* `openrouter.byok.get()`: `response.data.provider.enum(celeris)` **Added**\n* `openrouter.byok.update()`: `response.data.provider.enum(celeris)` **Added**\n* `openrouter.chat.send()`: \n * `request.chatRequest.provider` **Changed**\n* `openrouter.embeddings.generate()`: \n * `request.requestBody.provider` **Changed**\n* `openrouter.embeddings.listModels()`: `response.data[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n* `openrouter.endpoints.listZdrEndpoints()`: `response.data[].providerName.enum(celeris)` **Added**\n* `openrouter.endpoints.list()`: `response.data.endpoints[].providerName.enum(celeris)` **Added**\n* `openrouter.generations.getGeneration()`: `response.data.providerResponses[].providerName.enum(celeris)` **Added**\n* `openrouter.images.generate()`: \n * `request.imageGenerationRequest.provider` **Changed**\n* `openrouter.images.listModels()`: `response.data[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n* `openrouter.images.listModelEndpoints()`: `response.endpoints[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n* `openrouter.presets.createPresetsChatCompletions()`: \n * `request.chatRequest.provider` **Changed**\n* `openrouter.presets.createPresetsMessages()`: \n * `request.messagesRequest.provider` **Changed**\n* `openrouter.presets.createPresetsResponses()`: \n * `request.responsesRequest.provider` **Changed**\n* `openrouter.rerank.rerank()`: \n * `request.requestBody.provider` **Changed**\n* `openrouter.rerank.listModels()`: `response.data[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n* `openrouter.responses.send()`: \n * `request.responsesRequest.provider` **Changed**\n* `openrouter.beta.responses.send()`: \n * `request.responsesRequest.provider` **Changed**\n* `openrouter.systemOne.create()`: \n * `request.decisionsRequest.provider` **Changed**\n* `openrouter.videoGeneration.generate()`: \n * `request.videoGenerationRequest.provider` **Changed**\n* `openrouter.videoGeneration.listVideosModels()`: `response.data[].inputModalities[].union(audio).supportedInputs.formats.values[]` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ef8502c3c..9457f8ab5 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -38,7 +38,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true typescript: - version: 1.5.162 + version: 1.5.163 acceptHeaderEnum: false additionalDependencies: dependencies: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index bbfa86ae9..0a90d663f 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -7648,6 +7648,7 @@ components: - 'baseten' - 'black-forest-labs' - 'byteplus' + - 'celeris' - 'cerebras' - 'chutes' - 'cirrascale' @@ -21893,6 +21894,7 @@ components: - 'BaseTen' - 'BytePlus' - 'Black Forest Labs' + - 'Celeris' - 'Cerebras' - 'Chutes' - 'Cirrascale' @@ -23274,6 +23276,9 @@ components: enum: - 'audio/wav' - 'audio/mpeg' + - 'audio/pcm' + - 'audio/pcmu' + - 'audio/pcma' type: 'string' x-speakeasy-unknown-values: allow type: 'array' @@ -32287,6 +32292,7 @@ components: - 'BaseTen' - 'BytePlus' - 'Black Forest Labs' + - 'Celeris' - 'Cerebras' - 'Chutes' - 'Cirrascale' @@ -32473,6 +32479,9 @@ components: byteplus: additionalProperties: {} type: 'object' + celeris: + additionalProperties: {} + type: 'object' centml: additionalProperties: {} type: 'object' @@ -33127,6 +33136,7 @@ components: - 'BaseTen' - 'BytePlus' - 'Black Forest Labs' + - 'Celeris' - 'Cerebras' - 'Chutes' - 'Cirrascale' @@ -45461,6 +45471,7 @@ paths: - 'baseten' - 'black-forest-labs' - 'byteplus' + - 'celeris' - 'cerebras' - 'chutes' - 'cirrascale' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 676ded3b2..1df1502fa 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.808.1 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:156bdb27a76cafe9a8cb5e591993ea477fb203cd76b75b2e210940306fd853b2 - sourceBlobDigest: sha256:5c3e81867d7b6d9c38dabd7d19083b202928e9bde6707c0502925911c17d5308 + sourceRevisionDigest: sha256:d58eac0deb8ac4d42bf5d6dbb71be1898302cac456c186fc741567076eea6b62 + sourceBlobDigest: sha256:d465a667da4a498b035f073d79580c8d2a4a750097712f3e9739560186e1db5b tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: openrouter: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:156bdb27a76cafe9a8cb5e591993ea477fb203cd76b75b2e210940306fd853b2 - sourceBlobDigest: sha256:5c3e81867d7b6d9c38dabd7d19083b202928e9bde6707c0502925911c17d5308 + sourceRevisionDigest: sha256:d58eac0deb8ac4d42bf5d6dbb71be1898302cac456c186fc741567076eea6b62 + sourceBlobDigest: sha256:d465a667da4a498b035f073d79580c8d2a4a750097712f3e9739560186e1db5b codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:4025b56ae8d6b4856845dec105f30d44408a7f5f6de257c1e7eaa01cdbc0cc8c + codeSamplesRevisionDigest: sha256:b29b59555cf4c32422a791f152a1eb1673352d4dd77f925c0e463ea839ac43e1 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.808.1 diff --git a/RELEASES.md b/RELEASES.md index 654ca33a3..113f9ba3d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5996,4 +5996,14 @@ Based on: ### Generated - [typescript v1.5.162] . ### Releases -- [NPM v1.5.162] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.162 - . \ No newline at end of file +- [NPM v1.5.162] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.162 - . + +## 2026-12-02 21:07:04 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.5.163] . +### Releases +- [NPM v1.5.163] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.163 - . \ No newline at end of file diff --git a/docs/models/byokproviderslug.mdx b/docs/models/byokproviderslug.mdx index 62097a166..051723035 100644 --- a/docs/models/byokproviderslug.mdx +++ b/docs/models/byokproviderslug.mdx @@ -17,5 +17,5 @@ let value: BYOKProviderSlug = "openai"; ## Values ```typescript -"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-bedrock/claude-on-aws" | "amazon-nova" | "ambient" | "antdigital" | "anthropic" | "anthropic/2" | "arcee-ai" | "assemblyai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "claude-on-aws" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "doubleword" | "elevenlabs" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "kt" | "langchain" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parallel" | "parasail" | "pareto-alpha" | "pareto-inference" | "particle-ai" | "pearl-research" | "perceptron" | "perplexity" | "phala" | "poolside" | "primalabs" | "primeintellect" | "quiver" | "recraft" | "recursive" | "reka" | "relace" | "respan" | "river" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "scaledown" | "seed" | "siliconflow" | "sourceful" | "speechify" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "typesafe" | "unbiased" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized +"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-bedrock/claude-on-aws" | "amazon-nova" | "ambient" | "antdigital" | "anthropic" | "anthropic/2" | "arcee-ai" | "assemblyai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "celeris" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "claude-on-aws" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "doubleword" | "elevenlabs" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "kt" | "langchain" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parallel" | "parasail" | "pareto-alpha" | "pareto-inference" | "particle-ai" | "pearl-research" | "perceptron" | "perplexity" | "phala" | "poolside" | "primalabs" | "primeintellect" | "quiver" | "recraft" | "recursive" | "reka" | "relace" | "respan" | "river" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "scaledown" | "seed" | "siliconflow" | "sourceful" | "speechify" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "typesafe" | "unbiased" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/imagegenerationproviderpreferencesoptions.mdx b/docs/models/imagegenerationproviderpreferencesoptions.mdx index 3d9f938d5..02deddf6b 100644 --- a/docs/models/imagegenerationproviderpreferencesoptions.mdx +++ b/docs/models/imagegenerationproviderpreferencesoptions.mdx @@ -39,6 +39,7 @@ let value: ImageGenerationProviderPreferencesOptions = {}; | `baseten` | Record\ | ➖ | N/A | | `blackForestLabs` | Record\ | ➖ | N/A | | `byteplus` | Record\ | ➖ | N/A | +| `celeris` | Record\ | ➖ | N/A | | `centml` | Record\ | ➖ | N/A | | `cerebras` | Record\ | ➖ | N/A | | `chutes` | Record\ | ➖ | N/A | diff --git a/docs/models/operations/provider.mdx b/docs/models/operations/provider.mdx index 943a38dc5..a374721cc 100644 --- a/docs/models/operations/provider.mdx +++ b/docs/models/operations/provider.mdx @@ -17,5 +17,5 @@ let value: Provider = "openai"; ## Values ```typescript -"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-bedrock/claude-on-aws" | "amazon-nova" | "ambient" | "antdigital" | "anthropic" | "anthropic/2" | "arcee-ai" | "assemblyai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "claude-on-aws" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "doubleword" | "elevenlabs" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "kt" | "langchain" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parallel" | "parasail" | "pareto-alpha" | "pareto-inference" | "particle-ai" | "pearl-research" | "perceptron" | "perplexity" | "phala" | "poolside" | "primalabs" | "primeintellect" | "quiver" | "recraft" | "recursive" | "reka" | "relace" | "respan" | "river" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "scaledown" | "seed" | "siliconflow" | "sourceful" | "speechify" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "typesafe" | "unbiased" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized +"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-bedrock/claude-on-aws" | "amazon-nova" | "ambient" | "antdigital" | "anthropic" | "anthropic/2" | "arcee-ai" | "assemblyai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "celeris" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "claude-on-aws" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "doubleword" | "elevenlabs" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "kt" | "langchain" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parallel" | "parasail" | "pareto-alpha" | "pareto-inference" | "particle-ai" | "pearl-research" | "perceptron" | "perplexity" | "phala" | "poolside" | "primalabs" | "primeintellect" | "quiver" | "recraft" | "recursive" | "reka" | "relace" | "respan" | "river" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "scaledown" | "seed" | "siliconflow" | "sourceful" | "speechify" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "typesafe" | "unbiased" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/providername.mdx b/docs/models/providername.mdx index efdb20b20..e1303db4d 100644 --- a/docs/models/providername.mdx +++ b/docs/models/providername.mdx @@ -15,5 +15,5 @@ let value: ProviderName = "OpenAI"; ## Values ```typescript -"Modal" | "AkashML" | "AI21" | "AionLabs" | "Alibaba" | "Ambient" | "Ant Digital" | "Baidu" | "Amazon Bedrock" | "Amazon Nova" | "Anthropic" | "Arcee AI" | "AssemblyAI" | "AtlasCloud" | "Avian" | "Azure" | "BaseTen" | "BytePlus" | "Black Forest Labs" | "Cerebras" | "Chutes" | "Cirrascale" | "Claude Platform on AWS" | "Clarifai" | "Cloudflare" | "Cohere" | "CoreWeave" | "Cosine" | "Crucible" | "Crusoe" | "Darkbloom" | "Databricks" | "Decart" | "Deepgram" | "DeepInfra" | "DeepSeek" | "DekaLLM" | "DigitalOcean" | "Doubleword" | "ElevenLabs" | "Featherless" | "Fireworks" | "Fish Audio" | "Friendli" | "GMICloud" | "Google" | "Google AI Studio" | "Groq" | "HeyGen" | "Inception" | "Inceptron" | "InferenceNet" | "Ionstream" | "Infermatic" | "Io Net" | "Inferact vLLM" | "Inflection" | "KT" | "LangChain" | "Liquid" | "Makora" | "Mara" | "Mancer 2" | "Meta" | "Minimax" | "ModelRun" | "Mistral" | "Modular" | "Moonshot AI" | "Morph" | "VoyageAI by MongoDB" | "TypeSafe" | "Near AI" | "Nebius" | "Nex AGI" | "NextBit" | "Novita" | "Nvidia" | "Ollama" | "OpenAI" | "OpenInference" | "Parallel" | "Parasail" | "ParetoAlpha" | "Pareto Inference" | "Particle AI" | "Pearl Research" | "Poolside" | "PrimaLabs" | "PrimeIntellect" | "Perceptron" | "Perplexity" | "Phala" | "Recraft" | "Recursive" | "Reka" | "Relace" | "Respan" | "River" | "Sail Research" | "Sakana AI" | "SambaNova" | "ScaleDown" | "Seed" | "SiliconFlow" | "Sourceful" | "Speechify" | "StepFun" | "Stealth" | "StreamLake" | "Switchpoint" | "Tencent" | "Tenstorrent" | "Thinking Machines" | "Together" | "Unbiased" | "Upstage" | "Venice" | "Wafer" | "WandB" | "Quiver" | "Krea" | "Runway" | "Xiaomi" | "xAI" | "Z.AI" | "FakeProvider" | Unrecognized +"Modal" | "AkashML" | "AI21" | "AionLabs" | "Alibaba" | "Ambient" | "Ant Digital" | "Baidu" | "Amazon Bedrock" | "Amazon Nova" | "Anthropic" | "Arcee AI" | "AssemblyAI" | "AtlasCloud" | "Avian" | "Azure" | "BaseTen" | "BytePlus" | "Black Forest Labs" | "Celeris" | "Cerebras" | "Chutes" | "Cirrascale" | "Claude Platform on AWS" | "Clarifai" | "Cloudflare" | "Cohere" | "CoreWeave" | "Cosine" | "Crucible" | "Crusoe" | "Darkbloom" | "Databricks" | "Decart" | "Deepgram" | "DeepInfra" | "DeepSeek" | "DekaLLM" | "DigitalOcean" | "Doubleword" | "ElevenLabs" | "Featherless" | "Fireworks" | "Fish Audio" | "Friendli" | "GMICloud" | "Google" | "Google AI Studio" | "Groq" | "HeyGen" | "Inception" | "Inceptron" | "InferenceNet" | "Ionstream" | "Infermatic" | "Io Net" | "Inferact vLLM" | "Inflection" | "KT" | "LangChain" | "Liquid" | "Makora" | "Mara" | "Mancer 2" | "Meta" | "Minimax" | "ModelRun" | "Mistral" | "Modular" | "Moonshot AI" | "Morph" | "VoyageAI by MongoDB" | "TypeSafe" | "Near AI" | "Nebius" | "Nex AGI" | "NextBit" | "Novita" | "Nvidia" | "Ollama" | "OpenAI" | "OpenInference" | "Parallel" | "Parasail" | "ParetoAlpha" | "Pareto Inference" | "Particle AI" | "Pearl Research" | "Poolside" | "PrimaLabs" | "PrimeIntellect" | "Perceptron" | "Perplexity" | "Phala" | "Recraft" | "Recursive" | "Reka" | "Relace" | "Respan" | "River" | "Sail Research" | "Sakana AI" | "SambaNova" | "ScaleDown" | "Seed" | "SiliconFlow" | "Sourceful" | "Speechify" | "StepFun" | "Stealth" | "StreamLake" | "Switchpoint" | "Tencent" | "Tenstorrent" | "Thinking Machines" | "Together" | "Unbiased" | "Upstage" | "Venice" | "Wafer" | "WandB" | "Quiver" | "Krea" | "Runway" | "Xiaomi" | "xAI" | "Z.AI" | "FakeProvider" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/provideroptions.mdx b/docs/models/provideroptions.mdx index 081caf03f..0e1f07601 100644 --- a/docs/models/provideroptions.mdx +++ b/docs/models/provideroptions.mdx @@ -39,6 +39,7 @@ let value: ProviderOptions = {}; | `baseten` | Record\ | ➖ | N/A | | `blackForestLabs` | Record\ | ➖ | N/A | | `byteplus` | Record\ | ➖ | N/A | +| `celeris` | Record\ | ➖ | N/A | | `centml` | Record\ | ➖ | N/A | | `cerebras` | Record\ | ➖ | N/A | | `chutes` | Record\ | ➖ | N/A | diff --git a/docs/models/providerresponseprovidername.mdx b/docs/models/providerresponseprovidername.mdx index 25af16db3..1a9b8cd8f 100644 --- a/docs/models/providerresponseprovidername.mdx +++ b/docs/models/providerresponseprovidername.mdx @@ -17,5 +17,5 @@ let value: ProviderResponseProviderName = "OpenAI"; ## Values ```typescript -"AnyScale" | "Atoma" | "Cent-ML" | "CrofAI" | "Enfer" | "GoPomelo" | "HuggingFace" | "Hyperbolic" | "Hyperbolic 2" | "InoCloud" | "Kluster" | "Lambda" | "Lepton" | "Lynn 2" | "Lynn" | "Mancer" | "Modal" | "NCompass" | "Nineteen" | "OctoAI" | "Recursal" | "Reflection" | "Replicate" | "SambaNova 2" | "SF Compute" | "Targon" | "Together 2" | "Ubicloud" | "01.AI" | "AkashML" | "AI21" | "AionLabs" | "Alibaba" | "Ambient" | "Ant Digital" | "Baidu" | "Amazon Bedrock" | "Amazon Nova" | "Anthropic" | "Arcee AI" | "AssemblyAI" | "AtlasCloud" | "Avian" | "Azure" | "BaseTen" | "BytePlus" | "Black Forest Labs" | "Cerebras" | "Chutes" | "Cirrascale" | "Claude Platform on AWS" | "Clarifai" | "Cloudflare" | "Cohere" | "CoreWeave" | "Cosine" | "Crucible" | "Crusoe" | "Darkbloom" | "Databricks" | "Decart" | "Deepgram" | "DeepInfra" | "DeepSeek" | "DekaLLM" | "DigitalOcean" | "Doubleword" | "ElevenLabs" | "Featherless" | "Fireworks" | "Fish Audio" | "Friendli" | "GMICloud" | "Google" | "Google AI Studio" | "Groq" | "HeyGen" | "Inception" | "Inceptron" | "InferenceNet" | "Ionstream" | "Infermatic" | "Io Net" | "Inferact vLLM" | "Inflection" | "KT" | "LangChain" | "Liquid" | "Makora" | "Mara" | "Mancer 2" | "Meta" | "Minimax" | "ModelRun" | "Mistral" | "Modular" | "Moonshot AI" | "Morph" | "VoyageAI by MongoDB" | "TypeSafe" | "Near AI" | "Nebius" | "Nex AGI" | "NextBit" | "Novita" | "Nvidia" | "Ollama" | "OpenAI" | "OpenInference" | "Parallel" | "Parasail" | "ParetoAlpha" | "Pareto Inference" | "Particle AI" | "Pearl Research" | "Poolside" | "PrimaLabs" | "PrimeIntellect" | "Perceptron" | "Perplexity" | "Phala" | "Recraft" | "Recursive" | "Reka" | "Relace" | "Respan" | "River" | "Sail Research" | "Sakana AI" | "SambaNova" | "ScaleDown" | "Seed" | "SiliconFlow" | "Sourceful" | "Speechify" | "StepFun" | "Stealth" | "StreamLake" | "Switchpoint" | "Tencent" | "Tenstorrent" | "Thinking Machines" | "Together" | "Unbiased" | "Upstage" | "Venice" | "Wafer" | "WandB" | "Quiver" | "Krea" | "Runway" | "Xiaomi" | "xAI" | "Z.AI" | "FakeProvider" | Unrecognized +"AnyScale" | "Atoma" | "Cent-ML" | "CrofAI" | "Enfer" | "GoPomelo" | "HuggingFace" | "Hyperbolic" | "Hyperbolic 2" | "InoCloud" | "Kluster" | "Lambda" | "Lepton" | "Lynn 2" | "Lynn" | "Mancer" | "Modal" | "NCompass" | "Nineteen" | "OctoAI" | "Recursal" | "Reflection" | "Replicate" | "SambaNova 2" | "SF Compute" | "Targon" | "Together 2" | "Ubicloud" | "01.AI" | "AkashML" | "AI21" | "AionLabs" | "Alibaba" | "Ambient" | "Ant Digital" | "Baidu" | "Amazon Bedrock" | "Amazon Nova" | "Anthropic" | "Arcee AI" | "AssemblyAI" | "AtlasCloud" | "Avian" | "Azure" | "BaseTen" | "BytePlus" | "Black Forest Labs" | "Celeris" | "Cerebras" | "Chutes" | "Cirrascale" | "Claude Platform on AWS" | "Clarifai" | "Cloudflare" | "Cohere" | "CoreWeave" | "Cosine" | "Crucible" | "Crusoe" | "Darkbloom" | "Databricks" | "Decart" | "Deepgram" | "DeepInfra" | "DeepSeek" | "DekaLLM" | "DigitalOcean" | "Doubleword" | "ElevenLabs" | "Featherless" | "Fireworks" | "Fish Audio" | "Friendli" | "GMICloud" | "Google" | "Google AI Studio" | "Groq" | "HeyGen" | "Inception" | "Inceptron" | "InferenceNet" | "Ionstream" | "Infermatic" | "Io Net" | "Inferact vLLM" | "Inflection" | "KT" | "LangChain" | "Liquid" | "Makora" | "Mara" | "Mancer 2" | "Meta" | "Minimax" | "ModelRun" | "Mistral" | "Modular" | "Moonshot AI" | "Morph" | "VoyageAI by MongoDB" | "TypeSafe" | "Near AI" | "Nebius" | "Nex AGI" | "NextBit" | "Novita" | "Nvidia" | "Ollama" | "OpenAI" | "OpenInference" | "Parallel" | "Parasail" | "ParetoAlpha" | "Pareto Inference" | "Particle AI" | "Pearl Research" | "Poolside" | "PrimaLabs" | "PrimeIntellect" | "Perceptron" | "Perplexity" | "Phala" | "Recraft" | "Recursive" | "Reka" | "Relace" | "Respan" | "River" | "Sail Research" | "Sakana AI" | "SambaNova" | "ScaleDown" | "Seed" | "SiliconFlow" | "Sourceful" | "Speechify" | "StepFun" | "Stealth" | "StreamLake" | "Switchpoint" | "Tencent" | "Tenstorrent" | "Thinking Machines" | "Together" | "Unbiased" | "Upstage" | "Venice" | "Wafer" | "WandB" | "Quiver" | "Krea" | "Runway" | "Xiaomi" | "xAI" | "Z.AI" | "FakeProvider" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/valueenum7.mdx b/docs/models/valueenum7.mdx index 6e8902b0a..ce11211f1 100644 --- a/docs/models/valueenum7.mdx +++ b/docs/models/valueenum7.mdx @@ -7,7 +7,7 @@ title: "ValueEnum7" ```typescript import { ValueEnum7 } from "@openrouter/sdk/models"; -let value: ValueEnum7 = "audio/mpeg"; +let value: ValueEnum7 = "audio/pcma"; // Open enum: unrecognized values are captured as Unrecognized ``` @@ -15,5 +15,5 @@ let value: ValueEnum7 = "audio/mpeg"; ## Values ```typescript -"audio/wav" | "audio/mpeg" | Unrecognized +"audio/wav" | "audio/mpeg" | "audio/pcm" | "audio/pcmu" | "audio/pcma" | Unrecognized ``` \ No newline at end of file diff --git a/docs/models/videogenerationrequestoptions.mdx b/docs/models/videogenerationrequestoptions.mdx index 5ec6b11fb..0127ff86a 100644 --- a/docs/models/videogenerationrequestoptions.mdx +++ b/docs/models/videogenerationrequestoptions.mdx @@ -39,6 +39,7 @@ let value: VideoGenerationRequestOptions = {}; | `baseten` | Record\ | ➖ | N/A | | `blackForestLabs` | Record\ | ➖ | N/A | | `byteplus` | Record\ | ➖ | N/A | +| `celeris` | Record\ | ➖ | N/A | | `centml` | Record\ | ➖ | N/A | | `cerebras` | Record\ | ➖ | N/A | | `chutes` | Record\ | ➖ | N/A | diff --git a/jsr.json b/jsr.json index dbdfe4830..c792ce1dc 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@openrouter/sdk", - "version": "1.5.162", + "version": "1.5.163", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package.json b/package.json index d6fd55b2e..821873af2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/sdk", - "version": "1.5.162", + "version": "1.5.163", "author": "OpenRouter", "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.", "keywords": [ @@ -73,14 +73,14 @@ "lint": "eslint --cache --max-warnings=0 src", "build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js", "prepublishOnly": "npm run build", + "test:e2e": "vitest --run --project e2e", + "typecheck": "tsc --noEmit", "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js", + "postinstall": "node scripts/check-types.js || true", "prepare": "npm run build", "test": "vitest --run --project unit", "test:transit": "exit 0", "test:watch": "vitest --watch --project unit", - "typecheck": "tsc --noEmit", - "postinstall": "node scripts/check-types.js || true", - "test:e2e": "vitest --run --project e2e", "typecheck:transit": "exit 0" }, "peerDependencies": { diff --git a/src/lib/config.ts b/src/lib/config.ts index 814d6895a..eb0004916 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0.0", - sdkVersion: "1.5.162", + sdkVersion: "1.5.163", genVersion: "2.960.8", - userAgent: "speakeasy-sdk/typescript 1.5.162 2.960.8 1.0.0 @openrouter/sdk", + userAgent: "speakeasy-sdk/typescript 1.5.163 2.960.8 1.0.0 @openrouter/sdk", } as const; diff --git a/src/models/byokproviderslug.ts b/src/models/byokproviderslug.ts index 41a1a3694..0780ff7ec 100644 --- a/src/models/byokproviderslug.ts +++ b/src/models/byokproviderslug.ts @@ -30,6 +30,7 @@ export const BYOKProviderSlug = { Baseten: "baseten", BlackForestLabs: "black-forest-labs", Byteplus: "byteplus", + Celeris: "celeris", Cerebras: "cerebras", Chutes: "chutes", Cirrascale: "cirrascale", diff --git a/src/models/imagegenerationproviderpreferences.ts b/src/models/imagegenerationproviderpreferences.ts index 70b979acc..e4d50680c 100644 --- a/src/models/imagegenerationproviderpreferences.ts +++ b/src/models/imagegenerationproviderpreferences.ts @@ -69,6 +69,7 @@ export type ImageGenerationProviderPreferencesOptions = { baseten?: { [k: string]: any } | undefined; blackForestLabs?: { [k: string]: any } | undefined; byteplus?: { [k: string]: any } | undefined; + celeris?: { [k: string]: any } | undefined; centml?: { [k: string]: any } | undefined; cerebras?: { [k: string]: any } | undefined; chutes?: { [k: string]: any } | undefined; @@ -331,6 +332,7 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = { baseten?: { [k: string]: any } | undefined; "black-forest-labs"?: { [k: string]: any } | undefined; byteplus?: { [k: string]: any } | undefined; + celeris?: { [k: string]: any } | undefined; centml?: { [k: string]: any } | undefined; cerebras?: { [k: string]: any } | undefined; chutes?: { [k: string]: any } | undefined; @@ -498,6 +500,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema: baseten: z.record(z.string(), z.any()).optional(), blackForestLabs: z.record(z.string(), z.any()).optional(), byteplus: z.record(z.string(), z.any()).optional(), + celeris: z.record(z.string(), z.any()).optional(), centml: z.record(z.string(), z.any()).optional(), cerebras: z.record(z.string(), z.any()).optional(), chutes: z.record(z.string(), z.any()).optional(), diff --git a/src/models/modelinputmodalityv2.ts b/src/models/modelinputmodalityv2.ts index db276e4e9..b2c49a6eb 100644 --- a/src/models/modelinputmodalityv2.ts +++ b/src/models/modelinputmodalityv2.ts @@ -102,6 +102,9 @@ export type ModelInputModalityV2File = { export const ValueEnum7 = { AudioWav: "audio/wav", AudioMpeg: "audio/mpeg", + AudioPcm: "audio/pcm", + AudioPcmu: "audio/pcmu", + AudioPcma: "audio/pcma", } as const; export type ValueEnum7 = OpenEnum; diff --git a/src/models/operations/listbyokkeys.ts b/src/models/operations/listbyokkeys.ts index 9b925f3dd..c84988a86 100644 --- a/src/models/operations/listbyokkeys.ts +++ b/src/models/operations/listbyokkeys.ts @@ -57,6 +57,7 @@ export const Provider = { Baseten: "baseten", BlackForestLabs: "black-forest-labs", Byteplus: "byteplus", + Celeris: "celeris", Cerebras: "cerebras", Chutes: "chutes", Cirrascale: "cirrascale", diff --git a/src/models/providername.ts b/src/models/providername.ts index 815fc29ee..d423e7aa7 100644 --- a/src/models/providername.ts +++ b/src/models/providername.ts @@ -26,6 +26,7 @@ export const ProviderName = { BaseTen: "BaseTen", BytePlus: "BytePlus", BlackForestLabs: "Black Forest Labs", + Celeris: "Celeris", Cerebras: "Cerebras", Chutes: "Chutes", Cirrascale: "Cirrascale", diff --git a/src/models/provideroptions.ts b/src/models/provideroptions.ts index 3f61cc12b..39c749120 100644 --- a/src/models/provideroptions.ts +++ b/src/models/provideroptions.ts @@ -32,6 +32,7 @@ export type ProviderOptions = { baseten?: { [k: string]: any } | undefined; blackForestLabs?: { [k: string]: any } | undefined; byteplus?: { [k: string]: any } | undefined; + celeris?: { [k: string]: any } | undefined; centml?: { [k: string]: any } | undefined; cerebras?: { [k: string]: any } | undefined; chutes?: { [k: string]: any } | undefined; @@ -195,6 +196,7 @@ export type ProviderOptions$Outbound = { baseten?: { [k: string]: any } | undefined; "black-forest-labs"?: { [k: string]: any } | undefined; byteplus?: { [k: string]: any } | undefined; + celeris?: { [k: string]: any } | undefined; centml?: { [k: string]: any } | undefined; cerebras?: { [k: string]: any } | undefined; chutes?: { [k: string]: any } | undefined; @@ -361,6 +363,7 @@ export const ProviderOptions$outboundSchema: z.ZodType< baseten: z.record(z.string(), z.any()).optional(), blackForestLabs: z.record(z.string(), z.any()).optional(), byteplus: z.record(z.string(), z.any()).optional(), + celeris: z.record(z.string(), z.any()).optional(), centml: z.record(z.string(), z.any()).optional(), cerebras: z.record(z.string(), z.any()).optional(), chutes: z.record(z.string(), z.any()).optional(), diff --git a/src/models/providerresponse.ts b/src/models/providerresponse.ts index d22a47df5..787c9205b 100644 --- a/src/models/providerresponse.ts +++ b/src/models/providerresponse.ts @@ -61,6 +61,7 @@ export const ProviderResponseProviderName = { BaseTen: "BaseTen", BytePlus: "BytePlus", BlackForestLabs: "Black Forest Labs", + Celeris: "Celeris", Cerebras: "Cerebras", Chutes: "Chutes", Cirrascale: "Cirrascale", diff --git a/src/models/videogenerationrequest.ts b/src/models/videogenerationrequest.ts index 6e32d098c..2e4f7e27a 100644 --- a/src/models/videogenerationrequest.ts +++ b/src/models/videogenerationrequest.ts @@ -101,6 +101,7 @@ export type VideoGenerationRequestOptions = { baseten?: { [k: string]: any } | undefined; blackForestLabs?: { [k: string]: any } | undefined; byteplus?: { [k: string]: any } | undefined; + celeris?: { [k: string]: any } | undefined; centml?: { [k: string]: any } | undefined; cerebras?: { [k: string]: any } | undefined; chutes?: { [k: string]: any } | undefined; @@ -438,6 +439,7 @@ export type VideoGenerationRequestOptions$Outbound = { baseten?: { [k: string]: any } | undefined; "black-forest-labs"?: { [k: string]: any } | undefined; byteplus?: { [k: string]: any } | undefined; + celeris?: { [k: string]: any } | undefined; centml?: { [k: string]: any } | undefined; cerebras?: { [k: string]: any } | undefined; chutes?: { [k: string]: any } | undefined; @@ -604,6 +606,7 @@ export const VideoGenerationRequestOptions$outboundSchema: z.ZodType< baseten: z.record(z.string(), z.any()).optional(), blackForestLabs: z.record(z.string(), z.any()).optional(), byteplus: z.record(z.string(), z.any()).optional(), + celeris: z.record(z.string(), z.any()).optional(), centml: z.record(z.string(), z.any()).optional(), cerebras: z.record(z.string(), z.any()).optional(), chutes: z.record(z.string(), z.any()).optional(),