@openrouter/sdk 1.0.12 → 1.0.13
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/models/byokproviderslug.d.ts +2 -0
- package/esm/models/byokproviderslug.js +2 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +12 -0
- package/esm/models/imagegenerationproviderpreferences.js +4 -0
- package/esm/models/operations/listbyokkeys.d.ts +2 -0
- package/esm/models/operations/listbyokkeys.js +2 -0
- package/esm/models/provideroptions.d.ts +12 -0
- package/esm/models/provideroptions.js +4 -0
- package/esm/models/videogenerationrequest.d.ts +12 -0
- package/esm/models/videogenerationrequest.js +4 -0
- package/jsr.json +1 -1
- package/package.json +4 -4
package/esm/lib/config.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
49
49
|
export declare const SDK_METADATA: {
|
|
50
50
|
readonly language: "typescript";
|
|
51
51
|
readonly openapiDocVersion: "1.0.0";
|
|
52
|
-
readonly sdkVersion: "1.0.
|
|
52
|
+
readonly sdkVersion: "1.0.13";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.0.13 2.914.0 1.0.0 @openrouter/sdk";
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
|
|
|
26
26
|
export const SDK_METADATA = {
|
|
27
27
|
language: "typescript",
|
|
28
28
|
openapiDocVersion: "1.0.0",
|
|
29
|
-
sdkVersion: "1.0.
|
|
29
|
+
sdkVersion: "1.0.13",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.0.13 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -83,6 +83,7 @@ export declare const BYOKProviderSlug: {
|
|
|
83
83
|
readonly Runway: "runway";
|
|
84
84
|
readonly SailResearch: "sail-research";
|
|
85
85
|
readonly Sakana: "sakana";
|
|
86
|
+
readonly SakanaAi: "sakana-ai";
|
|
86
87
|
readonly Sambanova: "sambanova";
|
|
87
88
|
readonly Seed: "seed";
|
|
88
89
|
readonly Siliconflow: "siliconflow";
|
|
@@ -97,6 +98,7 @@ export declare const BYOKProviderSlug: {
|
|
|
97
98
|
readonly Venice: "venice";
|
|
98
99
|
readonly Wafer: "wafer";
|
|
99
100
|
readonly Wandb: "wandb";
|
|
101
|
+
readonly WandbLegacy: "wandb-legacy";
|
|
100
102
|
readonly Xai: "xai";
|
|
101
103
|
readonly Xiaomi: "xiaomi";
|
|
102
104
|
readonly ZAi: "z-ai";
|
|
@@ -86,6 +86,7 @@ export const BYOKProviderSlug = {
|
|
|
86
86
|
Runway: "runway",
|
|
87
87
|
SailResearch: "sail-research",
|
|
88
88
|
Sakana: "sakana",
|
|
89
|
+
SakanaAi: "sakana-ai",
|
|
89
90
|
Sambanova: "sambanova",
|
|
90
91
|
Seed: "seed",
|
|
91
92
|
Siliconflow: "siliconflow",
|
|
@@ -100,6 +101,7 @@ export const BYOKProviderSlug = {
|
|
|
100
101
|
Venice: "venice",
|
|
101
102
|
Wafer: "wafer",
|
|
102
103
|
Wandb: "wandb",
|
|
104
|
+
WandbLegacy: "wandb-legacy",
|
|
103
105
|
Xai: "xai",
|
|
104
106
|
Xiaomi: "xiaomi",
|
|
105
107
|
ZAi: "z-ai",
|
|
@@ -320,6 +320,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
320
320
|
sakana?: {
|
|
321
321
|
[k: string]: any;
|
|
322
322
|
} | undefined;
|
|
323
|
+
sakanaAi?: {
|
|
324
|
+
[k: string]: any;
|
|
325
|
+
} | undefined;
|
|
323
326
|
sambanova?: {
|
|
324
327
|
[k: string]: any;
|
|
325
328
|
} | undefined;
|
|
@@ -380,6 +383,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
380
383
|
wandb?: {
|
|
381
384
|
[k: string]: any;
|
|
382
385
|
} | undefined;
|
|
386
|
+
wandbLegacy?: {
|
|
387
|
+
[k: string]: any;
|
|
388
|
+
} | undefined;
|
|
383
389
|
xai?: {
|
|
384
390
|
[k: string]: any;
|
|
385
391
|
} | undefined;
|
|
@@ -749,6 +755,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
749
755
|
sakana?: {
|
|
750
756
|
[k: string]: any;
|
|
751
757
|
} | undefined;
|
|
758
|
+
"sakana-ai"?: {
|
|
759
|
+
[k: string]: any;
|
|
760
|
+
} | undefined;
|
|
752
761
|
sambanova?: {
|
|
753
762
|
[k: string]: any;
|
|
754
763
|
} | undefined;
|
|
@@ -809,6 +818,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
809
818
|
wandb?: {
|
|
810
819
|
[k: string]: any;
|
|
811
820
|
} | undefined;
|
|
821
|
+
"wandb-legacy"?: {
|
|
822
|
+
[k: string]: any;
|
|
823
|
+
} | undefined;
|
|
812
824
|
xai?: {
|
|
813
825
|
[k: string]: any;
|
|
814
826
|
} | undefined;
|
|
@@ -123,6 +123,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
123
123
|
runway: z.record(z.string(), z.any()).optional(),
|
|
124
124
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
125
125
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
126
|
+
sakanaAi: z.record(z.string(), z.any()).optional(),
|
|
126
127
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
127
128
|
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
128
129
|
seed: z.record(z.string(), z.any()).optional(),
|
|
@@ -143,6 +144,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
143
144
|
venice: z.record(z.string(), z.any()).optional(),
|
|
144
145
|
wafer: z.record(z.string(), z.any()).optional(),
|
|
145
146
|
wandb: z.record(z.string(), z.any()).optional(),
|
|
147
|
+
wandbLegacy: z.record(z.string(), z.any()).optional(),
|
|
146
148
|
xai: z.record(z.string(), z.any()).optional(),
|
|
147
149
|
xiaomi: z.record(z.string(), z.any()).optional(),
|
|
148
150
|
zAi: z.record(z.string(), z.any()).optional(),
|
|
@@ -168,9 +170,11 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
168
170
|
nexAgi: "nex-agi",
|
|
169
171
|
openInference: "open-inference",
|
|
170
172
|
sailResearch: "sail-research",
|
|
173
|
+
sakanaAi: "sakana-ai",
|
|
171
174
|
sambanovaCloaked: "sambanova-cloaked",
|
|
172
175
|
sfCompute: "sf-compute",
|
|
173
176
|
togetherLite: "together-lite",
|
|
177
|
+
wandbLegacy: "wandb-legacy",
|
|
174
178
|
zAi: "z-ai",
|
|
175
179
|
});
|
|
176
180
|
});
|
|
@@ -107,6 +107,7 @@ export declare const Provider: {
|
|
|
107
107
|
readonly Runway: "runway";
|
|
108
108
|
readonly SailResearch: "sail-research";
|
|
109
109
|
readonly Sakana: "sakana";
|
|
110
|
+
readonly SakanaAi: "sakana-ai";
|
|
110
111
|
readonly Sambanova: "sambanova";
|
|
111
112
|
readonly Seed: "seed";
|
|
112
113
|
readonly Siliconflow: "siliconflow";
|
|
@@ -121,6 +122,7 @@ export declare const Provider: {
|
|
|
121
122
|
readonly Venice: "venice";
|
|
122
123
|
readonly Wafer: "wafer";
|
|
123
124
|
readonly Wandb: "wandb";
|
|
125
|
+
readonly WandbLegacy: "wandb-legacy";
|
|
124
126
|
readonly Xai: "xai";
|
|
125
127
|
readonly Xiaomi: "xiaomi";
|
|
126
128
|
readonly ZAi: "z-ai";
|
|
@@ -90,6 +90,7 @@ export const Provider = {
|
|
|
90
90
|
Runway: "runway",
|
|
91
91
|
SailResearch: "sail-research",
|
|
92
92
|
Sakana: "sakana",
|
|
93
|
+
SakanaAi: "sakana-ai",
|
|
93
94
|
Sambanova: "sambanova",
|
|
94
95
|
Seed: "seed",
|
|
95
96
|
Siliconflow: "siliconflow",
|
|
@@ -104,6 +105,7 @@ export const Provider = {
|
|
|
104
105
|
Venice: "venice",
|
|
105
106
|
Wafer: "wafer",
|
|
106
107
|
Wandb: "wandb",
|
|
108
|
+
WandbLegacy: "wandb-legacy",
|
|
107
109
|
Xai: "xai",
|
|
108
110
|
Xiaomi: "xiaomi",
|
|
109
111
|
ZAi: "z-ai",
|
|
@@ -315,6 +315,9 @@ export type ProviderOptions = {
|
|
|
315
315
|
sakana?: {
|
|
316
316
|
[k: string]: any;
|
|
317
317
|
} | undefined;
|
|
318
|
+
sakanaAi?: {
|
|
319
|
+
[k: string]: any;
|
|
320
|
+
} | undefined;
|
|
318
321
|
sambanova?: {
|
|
319
322
|
[k: string]: any;
|
|
320
323
|
} | undefined;
|
|
@@ -375,6 +378,9 @@ export type ProviderOptions = {
|
|
|
375
378
|
wandb?: {
|
|
376
379
|
[k: string]: any;
|
|
377
380
|
} | undefined;
|
|
381
|
+
wandbLegacy?: {
|
|
382
|
+
[k: string]: any;
|
|
383
|
+
} | undefined;
|
|
378
384
|
xai?: {
|
|
379
385
|
[k: string]: any;
|
|
380
386
|
} | undefined;
|
|
@@ -699,6 +705,9 @@ export type ProviderOptions$Outbound = {
|
|
|
699
705
|
sakana?: {
|
|
700
706
|
[k: string]: any;
|
|
701
707
|
} | undefined;
|
|
708
|
+
"sakana-ai"?: {
|
|
709
|
+
[k: string]: any;
|
|
710
|
+
} | undefined;
|
|
702
711
|
sambanova?: {
|
|
703
712
|
[k: string]: any;
|
|
704
713
|
} | undefined;
|
|
@@ -759,6 +768,9 @@ export type ProviderOptions$Outbound = {
|
|
|
759
768
|
wandb?: {
|
|
760
769
|
[k: string]: any;
|
|
761
770
|
} | undefined;
|
|
771
|
+
"wandb-legacy"?: {
|
|
772
|
+
[k: string]: any;
|
|
773
|
+
} | undefined;
|
|
762
774
|
xai?: {
|
|
763
775
|
[k: string]: any;
|
|
764
776
|
} | undefined;
|
|
@@ -110,6 +110,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
110
110
|
runway: z.record(z.string(), z.any()).optional(),
|
|
111
111
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
112
112
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
113
|
+
sakanaAi: z.record(z.string(), z.any()).optional(),
|
|
113
114
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
114
115
|
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
115
116
|
seed: z.record(z.string(), z.any()).optional(),
|
|
@@ -130,6 +131,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
130
131
|
venice: z.record(z.string(), z.any()).optional(),
|
|
131
132
|
wafer: z.record(z.string(), z.any()).optional(),
|
|
132
133
|
wandb: z.record(z.string(), z.any()).optional(),
|
|
134
|
+
wandbLegacy: z.record(z.string(), z.any()).optional(),
|
|
133
135
|
xai: z.record(z.string(), z.any()).optional(),
|
|
134
136
|
xiaomi: z.record(z.string(), z.any()).optional(),
|
|
135
137
|
zAi: z.record(z.string(), z.any()).optional(),
|
|
@@ -155,9 +157,11 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
155
157
|
nexAgi: "nex-agi",
|
|
156
158
|
openInference: "open-inference",
|
|
157
159
|
sailResearch: "sail-research",
|
|
160
|
+
sakanaAi: "sakana-ai",
|
|
158
161
|
sambanovaCloaked: "sambanova-cloaked",
|
|
159
162
|
sfCompute: "sf-compute",
|
|
160
163
|
togetherLite: "together-lite",
|
|
164
|
+
wandbLegacy: "wandb-legacy",
|
|
161
165
|
zAi: "z-ai",
|
|
162
166
|
});
|
|
163
167
|
});
|
|
@@ -336,6 +336,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
336
336
|
sakana?: {
|
|
337
337
|
[k: string]: any;
|
|
338
338
|
} | undefined;
|
|
339
|
+
sakanaAi?: {
|
|
340
|
+
[k: string]: any;
|
|
341
|
+
} | undefined;
|
|
339
342
|
sambanova?: {
|
|
340
343
|
[k: string]: any;
|
|
341
344
|
} | undefined;
|
|
@@ -396,6 +399,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
396
399
|
wandb?: {
|
|
397
400
|
[k: string]: any;
|
|
398
401
|
} | undefined;
|
|
402
|
+
wandbLegacy?: {
|
|
403
|
+
[k: string]: any;
|
|
404
|
+
} | undefined;
|
|
399
405
|
xai?: {
|
|
400
406
|
[k: string]: any;
|
|
401
407
|
} | undefined;
|
|
@@ -790,6 +796,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
790
796
|
sakana?: {
|
|
791
797
|
[k: string]: any;
|
|
792
798
|
} | undefined;
|
|
799
|
+
"sakana-ai"?: {
|
|
800
|
+
[k: string]: any;
|
|
801
|
+
} | undefined;
|
|
793
802
|
sambanova?: {
|
|
794
803
|
[k: string]: any;
|
|
795
804
|
} | undefined;
|
|
@@ -850,6 +859,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
850
859
|
wandb?: {
|
|
851
860
|
[k: string]: any;
|
|
852
861
|
} | undefined;
|
|
862
|
+
"wandb-legacy"?: {
|
|
863
|
+
[k: string]: any;
|
|
864
|
+
} | undefined;
|
|
853
865
|
xai?: {
|
|
854
866
|
[k: string]: any;
|
|
855
867
|
} | undefined;
|
|
@@ -140,6 +140,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
140
140
|
runway: z.record(z.string(), z.any()).optional(),
|
|
141
141
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
142
142
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
143
|
+
sakanaAi: z.record(z.string(), z.any()).optional(),
|
|
143
144
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
144
145
|
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
145
146
|
seed: z.record(z.string(), z.any()).optional(),
|
|
@@ -160,6 +161,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
160
161
|
venice: z.record(z.string(), z.any()).optional(),
|
|
161
162
|
wafer: z.record(z.string(), z.any()).optional(),
|
|
162
163
|
wandb: z.record(z.string(), z.any()).optional(),
|
|
164
|
+
wandbLegacy: z.record(z.string(), z.any()).optional(),
|
|
163
165
|
xai: z.record(z.string(), z.any()).optional(),
|
|
164
166
|
xiaomi: z.record(z.string(), z.any()).optional(),
|
|
165
167
|
zAi: z.record(z.string(), z.any()).optional(),
|
|
@@ -185,9 +187,11 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
185
187
|
nexAgi: "nex-agi",
|
|
186
188
|
openInference: "open-inference",
|
|
187
189
|
sailResearch: "sail-research",
|
|
190
|
+
sakanaAi: "sakana-ai",
|
|
188
191
|
sambanovaCloaked: "sambanova-cloaked",
|
|
189
192
|
sfCompute: "sf-compute",
|
|
190
193
|
togetherLite: "together-lite",
|
|
194
|
+
wandbLegacy: "wandb-legacy",
|
|
191
195
|
zAi: "z-ai",
|
|
192
196
|
});
|
|
193
197
|
});
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
76
|
"compile": "tsc",
|
|
77
77
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
-
"test": "vitest --run --project unit",
|
|
79
|
-
"test:transit": "exit 0",
|
|
80
|
-
"test:watch": "vitest --watch --project unit",
|
|
81
78
|
"prepare": "npm run build",
|
|
79
|
+
"test": "vitest --run --project unit",
|
|
82
80
|
"test:e2e": "vitest --run --project e2e",
|
|
81
|
+
"test:watch": "vitest --watch --project unit",
|
|
83
82
|
"typecheck": "tsc --noEmit",
|
|
83
|
+
"test:transit": "exit 0",
|
|
84
84
|
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|