@openrouter/sdk 0.2.6 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/response-wrapper.d.ts +12 -0
- package/esm/lib/response-wrapper.js +45 -15
- package/esm/lib/tool-orchestrator.js +33 -11
- package/esm/models/chatgenerationparams.d.ts +256 -2
- package/esm/models/chatgenerationparams.js +175 -1
- package/esm/models/chatmessagecontentitemaudio.d.ts +1 -16
- package/esm/models/chatmessagecontentitemaudio.js +2 -16
- package/esm/models/index.d.ts +1 -0
- package/esm/models/index.js +1 -0
- package/esm/models/openairesponsesreasoningeffort.d.ts +1 -0
- package/esm/models/openairesponsesreasoningeffort.js +1 -0
- package/esm/models/openresponsesrequest.d.ts +111 -63
- package/esm/models/openresponsesrequest.js +70 -53
- package/esm/models/operations/createembeddings.d.ts +25 -15
- package/esm/models/operations/createembeddings.js +9 -5
- package/esm/models/operations/getparameters.d.ts +3 -0
- package/esm/models/operations/getparameters.js +3 -0
- package/esm/models/providername.d.ts +3 -0
- package/esm/models/providername.js +3 -0
- package/esm/models/publicendpoint.d.ts +24 -24
- package/esm/models/publicendpoint.js +12 -12
- package/esm/models/publicpricing.d.ts +24 -24
- package/esm/models/publicpricing.js +12 -12
- package/esm/models/schema0.d.ts +83 -0
- package/esm/models/schema0.js +85 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const Schema0Enum: {
|
|
4
|
+
readonly Ai21: "AI21";
|
|
5
|
+
readonly AionLabs: "AionLabs";
|
|
6
|
+
readonly Alibaba: "Alibaba";
|
|
7
|
+
readonly AmazonBedrock: "Amazon Bedrock";
|
|
8
|
+
readonly AmazonNova: "Amazon Nova";
|
|
9
|
+
readonly Anthropic: "Anthropic";
|
|
10
|
+
readonly ArceeAI: "Arcee AI";
|
|
11
|
+
readonly AtlasCloud: "AtlasCloud";
|
|
12
|
+
readonly Avian: "Avian";
|
|
13
|
+
readonly Azure: "Azure";
|
|
14
|
+
readonly BaseTen: "BaseTen";
|
|
15
|
+
readonly BytePlus: "BytePlus";
|
|
16
|
+
readonly BlackForestLabs: "Black Forest Labs";
|
|
17
|
+
readonly Cerebras: "Cerebras";
|
|
18
|
+
readonly Chutes: "Chutes";
|
|
19
|
+
readonly Cirrascale: "Cirrascale";
|
|
20
|
+
readonly Clarifai: "Clarifai";
|
|
21
|
+
readonly Cloudflare: "Cloudflare";
|
|
22
|
+
readonly Cohere: "Cohere";
|
|
23
|
+
readonly Crusoe: "Crusoe";
|
|
24
|
+
readonly DeepInfra: "DeepInfra";
|
|
25
|
+
readonly DeepSeek: "DeepSeek";
|
|
26
|
+
readonly Featherless: "Featherless";
|
|
27
|
+
readonly Fireworks: "Fireworks";
|
|
28
|
+
readonly Friendli: "Friendli";
|
|
29
|
+
readonly GMICloud: "GMICloud";
|
|
30
|
+
readonly GoPomelo: "GoPomelo";
|
|
31
|
+
readonly Google: "Google";
|
|
32
|
+
readonly GoogleAIStudio: "Google AI Studio";
|
|
33
|
+
readonly Groq: "Groq";
|
|
34
|
+
readonly Hyperbolic: "Hyperbolic";
|
|
35
|
+
readonly Inception: "Inception";
|
|
36
|
+
readonly InferenceNet: "InferenceNet";
|
|
37
|
+
readonly Infermatic: "Infermatic";
|
|
38
|
+
readonly Inflection: "Inflection";
|
|
39
|
+
readonly Liquid: "Liquid";
|
|
40
|
+
readonly Mara: "Mara";
|
|
41
|
+
readonly Mancer2: "Mancer 2";
|
|
42
|
+
readonly Minimax: "Minimax";
|
|
43
|
+
readonly ModelRun: "ModelRun";
|
|
44
|
+
readonly Mistral: "Mistral";
|
|
45
|
+
readonly Modular: "Modular";
|
|
46
|
+
readonly MoonshotAI: "Moonshot AI";
|
|
47
|
+
readonly Morph: "Morph";
|
|
48
|
+
readonly NCompass: "NCompass";
|
|
49
|
+
readonly Nebius: "Nebius";
|
|
50
|
+
readonly NextBit: "NextBit";
|
|
51
|
+
readonly Novita: "Novita";
|
|
52
|
+
readonly Nvidia: "Nvidia";
|
|
53
|
+
readonly OpenAI: "OpenAI";
|
|
54
|
+
readonly OpenInference: "OpenInference";
|
|
55
|
+
readonly Parasail: "Parasail";
|
|
56
|
+
readonly Perplexity: "Perplexity";
|
|
57
|
+
readonly Phala: "Phala";
|
|
58
|
+
readonly Relace: "Relace";
|
|
59
|
+
readonly SambaNova: "SambaNova";
|
|
60
|
+
readonly SiliconFlow: "SiliconFlow";
|
|
61
|
+
readonly Sourceful: "Sourceful";
|
|
62
|
+
readonly Stealth: "Stealth";
|
|
63
|
+
readonly StreamLake: "StreamLake";
|
|
64
|
+
readonly Switchpoint: "Switchpoint";
|
|
65
|
+
readonly Targon: "Targon";
|
|
66
|
+
readonly Together: "Together";
|
|
67
|
+
readonly Venice: "Venice";
|
|
68
|
+
readonly WandB: "WandB";
|
|
69
|
+
readonly Xiaomi: "Xiaomi";
|
|
70
|
+
readonly XAI: "xAI";
|
|
71
|
+
readonly ZAi: "Z.AI";
|
|
72
|
+
readonly FakeProvider: "FakeProvider";
|
|
73
|
+
};
|
|
74
|
+
export type Schema0Enum = OpenEnum<typeof Schema0Enum>;
|
|
75
|
+
export type Schema0 = Schema0Enum | string;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export declare const Schema0Enum$outboundSchema: z.ZodType<string, Schema0Enum>;
|
|
78
|
+
/** @internal */
|
|
79
|
+
export type Schema0$Outbound = string | string;
|
|
80
|
+
/** @internal */
|
|
81
|
+
export declare const Schema0$outboundSchema: z.ZodType<Schema0$Outbound, Schema0>;
|
|
82
|
+
export declare function schema0ToJSON(schema0: Schema0): string;
|
|
83
|
+
//# sourceMappingURL=schema0.d.ts.map
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
export const Schema0Enum = {
|
|
7
|
+
Ai21: "AI21",
|
|
8
|
+
AionLabs: "AionLabs",
|
|
9
|
+
Alibaba: "Alibaba",
|
|
10
|
+
AmazonBedrock: "Amazon Bedrock",
|
|
11
|
+
AmazonNova: "Amazon Nova",
|
|
12
|
+
Anthropic: "Anthropic",
|
|
13
|
+
ArceeAI: "Arcee AI",
|
|
14
|
+
AtlasCloud: "AtlasCloud",
|
|
15
|
+
Avian: "Avian",
|
|
16
|
+
Azure: "Azure",
|
|
17
|
+
BaseTen: "BaseTen",
|
|
18
|
+
BytePlus: "BytePlus",
|
|
19
|
+
BlackForestLabs: "Black Forest Labs",
|
|
20
|
+
Cerebras: "Cerebras",
|
|
21
|
+
Chutes: "Chutes",
|
|
22
|
+
Cirrascale: "Cirrascale",
|
|
23
|
+
Clarifai: "Clarifai",
|
|
24
|
+
Cloudflare: "Cloudflare",
|
|
25
|
+
Cohere: "Cohere",
|
|
26
|
+
Crusoe: "Crusoe",
|
|
27
|
+
DeepInfra: "DeepInfra",
|
|
28
|
+
DeepSeek: "DeepSeek",
|
|
29
|
+
Featherless: "Featherless",
|
|
30
|
+
Fireworks: "Fireworks",
|
|
31
|
+
Friendli: "Friendli",
|
|
32
|
+
GMICloud: "GMICloud",
|
|
33
|
+
GoPomelo: "GoPomelo",
|
|
34
|
+
Google: "Google",
|
|
35
|
+
GoogleAIStudio: "Google AI Studio",
|
|
36
|
+
Groq: "Groq",
|
|
37
|
+
Hyperbolic: "Hyperbolic",
|
|
38
|
+
Inception: "Inception",
|
|
39
|
+
InferenceNet: "InferenceNet",
|
|
40
|
+
Infermatic: "Infermatic",
|
|
41
|
+
Inflection: "Inflection",
|
|
42
|
+
Liquid: "Liquid",
|
|
43
|
+
Mara: "Mara",
|
|
44
|
+
Mancer2: "Mancer 2",
|
|
45
|
+
Minimax: "Minimax",
|
|
46
|
+
ModelRun: "ModelRun",
|
|
47
|
+
Mistral: "Mistral",
|
|
48
|
+
Modular: "Modular",
|
|
49
|
+
MoonshotAI: "Moonshot AI",
|
|
50
|
+
Morph: "Morph",
|
|
51
|
+
NCompass: "NCompass",
|
|
52
|
+
Nebius: "Nebius",
|
|
53
|
+
NextBit: "NextBit",
|
|
54
|
+
Novita: "Novita",
|
|
55
|
+
Nvidia: "Nvidia",
|
|
56
|
+
OpenAI: "OpenAI",
|
|
57
|
+
OpenInference: "OpenInference",
|
|
58
|
+
Parasail: "Parasail",
|
|
59
|
+
Perplexity: "Perplexity",
|
|
60
|
+
Phala: "Phala",
|
|
61
|
+
Relace: "Relace",
|
|
62
|
+
SambaNova: "SambaNova",
|
|
63
|
+
SiliconFlow: "SiliconFlow",
|
|
64
|
+
Sourceful: "Sourceful",
|
|
65
|
+
Stealth: "Stealth",
|
|
66
|
+
StreamLake: "StreamLake",
|
|
67
|
+
Switchpoint: "Switchpoint",
|
|
68
|
+
Targon: "Targon",
|
|
69
|
+
Together: "Together",
|
|
70
|
+
Venice: "Venice",
|
|
71
|
+
WandB: "WandB",
|
|
72
|
+
Xiaomi: "Xiaomi",
|
|
73
|
+
XAI: "xAI",
|
|
74
|
+
ZAi: "Z.AI",
|
|
75
|
+
FakeProvider: "FakeProvider",
|
|
76
|
+
};
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const Schema0Enum$outboundSchema = openEnums.outboundSchema(Schema0Enum);
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const Schema0$outboundSchema = z
|
|
81
|
+
.union([Schema0Enum$outboundSchema, z.string()]);
|
|
82
|
+
export function schema0ToJSON(schema0) {
|
|
83
|
+
return JSON.stringify(Schema0$outboundSchema.parse(schema0));
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=schema0.js.map
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|