@openrouter/sdk 1.3.26 → 1.3.27
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 +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.js +1 -0
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/provideroptions.d.ts +6 -0
- package/esm/models/provideroptions.js +1 -0
- package/esm/models/providerresponse.d.ts +1 -0
- package/esm/models/providerresponse.js +1 -0
- package/esm/models/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +1 -0
- package/jsr.json +1 -1
- package/package.json +8 -8
package/esm/lib/config.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
50
50
|
export declare const SDK_METADATA: {
|
|
51
51
|
readonly language: "typescript";
|
|
52
52
|
readonly openapiDocVersion: "1.0.0";
|
|
53
|
-
readonly sdkVersion: "1.3.
|
|
53
|
+
readonly sdkVersion: "1.3.27";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.3.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.3.27 2.914.0 1.0.0 @openrouter/sdk";
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
export const SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "1.3.
|
|
32
|
+
sdkVersion: "1.3.27",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.3.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.3.27 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -95,6 +95,7 @@ export declare const BYOKProviderSlug: {
|
|
|
95
95
|
readonly Sakana: "sakana";
|
|
96
96
|
readonly SakanaAi: "sakana-ai";
|
|
97
97
|
readonly Sambanova: "sambanova";
|
|
98
|
+
readonly Scaledown: "scaledown";
|
|
98
99
|
readonly Seed: "seed";
|
|
99
100
|
readonly Siliconflow: "siliconflow";
|
|
100
101
|
readonly Sourceful: "sourceful";
|
|
@@ -359,6 +359,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
359
359
|
sambanovaCloaked?: {
|
|
360
360
|
[k: string]: any;
|
|
361
361
|
} | undefined;
|
|
362
|
+
scaledown?: {
|
|
363
|
+
[k: string]: any;
|
|
364
|
+
} | undefined;
|
|
362
365
|
seed?: {
|
|
363
366
|
[k: string]: any;
|
|
364
367
|
} | undefined;
|
|
@@ -836,6 +839,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
836
839
|
"sambanova-cloaked"?: {
|
|
837
840
|
[k: string]: any;
|
|
838
841
|
} | undefined;
|
|
842
|
+
scaledown?: {
|
|
843
|
+
[k: string]: any;
|
|
844
|
+
} | undefined;
|
|
839
845
|
seed?: {
|
|
840
846
|
[k: string]: any;
|
|
841
847
|
} | undefined;
|
|
@@ -136,6 +136,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
136
136
|
sakanaAi: z.record(z.string(), z.any()).optional(),
|
|
137
137
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
138
138
|
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
139
|
+
scaledown: z.record(z.string(), z.any()).optional(),
|
|
139
140
|
seed: z.record(z.string(), z.any()).optional(),
|
|
140
141
|
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
141
142
|
siliconflow: z.record(z.string(), z.any()).optional(),
|
|
@@ -119,6 +119,7 @@ export declare const Provider: {
|
|
|
119
119
|
readonly Sakana: "sakana";
|
|
120
120
|
readonly SakanaAi: "sakana-ai";
|
|
121
121
|
readonly Sambanova: "sambanova";
|
|
122
|
+
readonly Scaledown: "scaledown";
|
|
122
123
|
readonly Seed: "seed";
|
|
123
124
|
readonly Siliconflow: "siliconflow";
|
|
124
125
|
readonly Sourceful: "sourceful";
|
|
@@ -89,6 +89,7 @@ export declare const ProviderName: {
|
|
|
89
89
|
readonly SailResearch: "Sail Research";
|
|
90
90
|
readonly SakanaAI: "Sakana AI";
|
|
91
91
|
readonly SambaNova: "SambaNova";
|
|
92
|
+
readonly ScaleDown: "ScaleDown";
|
|
92
93
|
readonly Seed: "Seed";
|
|
93
94
|
readonly SiliconFlow: "SiliconFlow";
|
|
94
95
|
readonly Sourceful: "Sourceful";
|
|
@@ -354,6 +354,9 @@ export type ProviderOptions = {
|
|
|
354
354
|
sambanovaCloaked?: {
|
|
355
355
|
[k: string]: any;
|
|
356
356
|
} | undefined;
|
|
357
|
+
scaledown?: {
|
|
358
|
+
[k: string]: any;
|
|
359
|
+
} | undefined;
|
|
357
360
|
seed?: {
|
|
358
361
|
[k: string]: any;
|
|
359
362
|
} | undefined;
|
|
@@ -786,6 +789,9 @@ export type ProviderOptions$Outbound = {
|
|
|
786
789
|
"sambanova-cloaked"?: {
|
|
787
790
|
[k: string]: any;
|
|
788
791
|
} | undefined;
|
|
792
|
+
scaledown?: {
|
|
793
|
+
[k: string]: any;
|
|
794
|
+
} | undefined;
|
|
789
795
|
seed?: {
|
|
790
796
|
[k: string]: any;
|
|
791
797
|
} | undefined;
|
|
@@ -123,6 +123,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
123
123
|
sakanaAi: z.record(z.string(), z.any()).optional(),
|
|
124
124
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
125
125
|
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
126
|
+
scaledown: z.record(z.string(), z.any()).optional(),
|
|
126
127
|
seed: z.record(z.string(), z.any()).optional(),
|
|
127
128
|
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
128
129
|
siliconflow: z.record(z.string(), z.any()).optional(),
|
|
@@ -122,6 +122,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
122
122
|
readonly SailResearch: "Sail Research";
|
|
123
123
|
readonly SakanaAI: "Sakana AI";
|
|
124
124
|
readonly SambaNova: "SambaNova";
|
|
125
|
+
readonly ScaleDown: "ScaleDown";
|
|
125
126
|
readonly Seed: "Seed";
|
|
126
127
|
readonly SiliconFlow: "SiliconFlow";
|
|
127
128
|
readonly Sourceful: "Sourceful";
|
|
@@ -376,6 +376,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
376
376
|
sambanovaCloaked?: {
|
|
377
377
|
[k: string]: any;
|
|
378
378
|
} | undefined;
|
|
379
|
+
scaledown?: {
|
|
380
|
+
[k: string]: any;
|
|
381
|
+
} | undefined;
|
|
379
382
|
seed?: {
|
|
380
383
|
[k: string]: any;
|
|
381
384
|
} | undefined;
|
|
@@ -904,6 +907,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
904
907
|
"sambanova-cloaked"?: {
|
|
905
908
|
[k: string]: any;
|
|
906
909
|
} | undefined;
|
|
910
|
+
scaledown?: {
|
|
911
|
+
[k: string]: any;
|
|
912
|
+
} | undefined;
|
|
907
913
|
seed?: {
|
|
908
914
|
[k: string]: any;
|
|
909
915
|
} | undefined;
|
|
@@ -156,6 +156,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
156
156
|
sakanaAi: z.record(z.string(), z.any()).optional(),
|
|
157
157
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
158
158
|
sambanovaCloaked: z.record(z.string(), z.any()).optional(),
|
|
159
|
+
scaledown: z.record(z.string(), z.any()).optional(),
|
|
159
160
|
seed: z.record(z.string(), z.any()).optional(),
|
|
160
161
|
sfCompute: z.record(z.string(), z.any()).optional(),
|
|
161
162
|
siliconflow: z.record(z.string(), z.any()).optional(),
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.27",
|
|
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": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
77
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
+
"prepare": "npm run build",
|
|
76
79
|
"test": "vitest --run --project unit",
|
|
77
80
|
"test:e2e": "vitest --run --project e2e",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
|
-
"typecheck:transit": "exit 0",
|
|
80
81
|
"test:transit": "exit 0",
|
|
81
82
|
"test:watch": "vitest --watch --project unit",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"prepare": "npm run build"
|
|
83
|
+
"typecheck": "tsc --noEmit",
|
|
84
|
+
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|