@openrouter/sdk 1.3.30 → 1.3.32
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/imagegenerationrequest.d.ts +3 -0
- package/esm/models/imagegenerationrequest.js +3 -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 +6 -6
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.32";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.3.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.3.32 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.32",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.3.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.3.32 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -341,6 +341,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
341
341
|
replicate?: {
|
|
342
342
|
[k: string]: any;
|
|
343
343
|
} | undefined;
|
|
344
|
+
respan?: {
|
|
345
|
+
[k: string]: any;
|
|
346
|
+
} | undefined;
|
|
344
347
|
runway?: {
|
|
345
348
|
[k: string]: any;
|
|
346
349
|
} | undefined;
|
|
@@ -821,6 +824,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
821
824
|
replicate?: {
|
|
822
825
|
[k: string]: any;
|
|
823
826
|
} | undefined;
|
|
827
|
+
respan?: {
|
|
828
|
+
[k: string]: any;
|
|
829
|
+
} | undefined;
|
|
824
830
|
runway?: {
|
|
825
831
|
[k: string]: any;
|
|
826
832
|
} | undefined;
|
|
@@ -130,6 +130,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
130
130
|
reka: z.record(z.string(), z.any()).optional(),
|
|
131
131
|
relace: z.record(z.string(), z.any()).optional(),
|
|
132
132
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
133
|
+
respan: z.record(z.string(), z.any()).optional(),
|
|
133
134
|
runway: z.record(z.string(), z.any()).optional(),
|
|
134
135
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
135
136
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
@@ -21,6 +21,8 @@ export declare const ImageGenerationRequestAspectRatio: {
|
|
|
21
21
|
readonly FortyFive: "4:5";
|
|
22
22
|
readonly FiftyTwo: "5:2";
|
|
23
23
|
readonly FiftyFour: "5:4";
|
|
24
|
+
readonly FiftySeven: "5:7";
|
|
25
|
+
readonly SeventyFive: "7:5";
|
|
24
26
|
readonly EightyOne: "8:1";
|
|
25
27
|
readonly NineHundredAndSixteen: "9:16";
|
|
26
28
|
readonly OneHundredAndSixtyNine: "16:9";
|
|
@@ -81,6 +83,7 @@ export type ImageGenerationRequestQuality = OpenEnum<typeof ImageGenerationReque
|
|
|
81
83
|
*/
|
|
82
84
|
export declare const ImageGenerationRequestResolution: {
|
|
83
85
|
readonly FiveHundredAndTwelve: "512";
|
|
86
|
+
readonly SevenHundredAndSixtyEight: "768";
|
|
84
87
|
readonly OneK: "1K";
|
|
85
88
|
readonly TwoK: "2K";
|
|
86
89
|
readonly FourK: "4K";
|
|
@@ -26,6 +26,8 @@ export const ImageGenerationRequestAspectRatio = {
|
|
|
26
26
|
FortyFive: "4:5",
|
|
27
27
|
FiftyTwo: "5:2",
|
|
28
28
|
FiftyFour: "5:4",
|
|
29
|
+
FiftySeven: "5:7",
|
|
30
|
+
SeventyFive: "7:5",
|
|
29
31
|
EightyOne: "8:1",
|
|
30
32
|
NineHundredAndSixteen: "9:16",
|
|
31
33
|
OneHundredAndSixtyNine: "16:9",
|
|
@@ -70,6 +72,7 @@ export const ImageGenerationRequestQuality = {
|
|
|
70
72
|
*/
|
|
71
73
|
export const ImageGenerationRequestResolution = {
|
|
72
74
|
FiveHundredAndTwelve: "512",
|
|
75
|
+
SevenHundredAndSixtyEight: "768",
|
|
73
76
|
OneK: "1K",
|
|
74
77
|
TwoK: "2K",
|
|
75
78
|
FourK: "4K",
|
|
@@ -114,6 +114,7 @@ export declare const Provider: {
|
|
|
114
114
|
readonly Recraft: "recraft";
|
|
115
115
|
readonly Reka: "reka";
|
|
116
116
|
readonly Relace: "relace";
|
|
117
|
+
readonly Respan: "respan";
|
|
117
118
|
readonly Runway: "runway";
|
|
118
119
|
readonly SailResearch: "sail-research";
|
|
119
120
|
readonly Sakana: "sakana";
|
|
@@ -86,6 +86,7 @@ export declare const ProviderName: {
|
|
|
86
86
|
readonly Recraft: "Recraft";
|
|
87
87
|
readonly Reka: "Reka";
|
|
88
88
|
readonly Relace: "Relace";
|
|
89
|
+
readonly Respan: "Respan";
|
|
89
90
|
readonly SailResearch: "Sail Research";
|
|
90
91
|
readonly SakanaAI: "Sakana AI";
|
|
91
92
|
readonly SambaNova: "SambaNova";
|
|
@@ -336,6 +336,9 @@ export type ProviderOptions = {
|
|
|
336
336
|
replicate?: {
|
|
337
337
|
[k: string]: any;
|
|
338
338
|
} | undefined;
|
|
339
|
+
respan?: {
|
|
340
|
+
[k: string]: any;
|
|
341
|
+
} | undefined;
|
|
339
342
|
runway?: {
|
|
340
343
|
[k: string]: any;
|
|
341
344
|
} | undefined;
|
|
@@ -771,6 +774,9 @@ export type ProviderOptions$Outbound = {
|
|
|
771
774
|
replicate?: {
|
|
772
775
|
[k: string]: any;
|
|
773
776
|
} | undefined;
|
|
777
|
+
respan?: {
|
|
778
|
+
[k: string]: any;
|
|
779
|
+
} | undefined;
|
|
774
780
|
runway?: {
|
|
775
781
|
[k: string]: any;
|
|
776
782
|
} | undefined;
|
|
@@ -117,6 +117,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
117
117
|
reka: z.record(z.string(), z.any()).optional(),
|
|
118
118
|
relace: z.record(z.string(), z.any()).optional(),
|
|
119
119
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
120
|
+
respan: z.record(z.string(), z.any()).optional(),
|
|
120
121
|
runway: z.record(z.string(), z.any()).optional(),
|
|
121
122
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
122
123
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
@@ -119,6 +119,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
119
119
|
readonly Recraft: "Recraft";
|
|
120
120
|
readonly Reka: "Reka";
|
|
121
121
|
readonly Relace: "Relace";
|
|
122
|
+
readonly Respan: "Respan";
|
|
122
123
|
readonly SailResearch: "Sail Research";
|
|
123
124
|
readonly SakanaAI: "Sakana AI";
|
|
124
125
|
readonly SambaNova: "SambaNova";
|
|
@@ -358,6 +358,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
358
358
|
replicate?: {
|
|
359
359
|
[k: string]: any;
|
|
360
360
|
} | undefined;
|
|
361
|
+
respan?: {
|
|
362
|
+
[k: string]: any;
|
|
363
|
+
} | undefined;
|
|
361
364
|
runway?: {
|
|
362
365
|
[k: string]: any;
|
|
363
366
|
} | undefined;
|
|
@@ -889,6 +892,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
889
892
|
replicate?: {
|
|
890
893
|
[k: string]: any;
|
|
891
894
|
} | undefined;
|
|
895
|
+
respan?: {
|
|
896
|
+
[k: string]: any;
|
|
897
|
+
} | undefined;
|
|
892
898
|
runway?: {
|
|
893
899
|
[k: string]: any;
|
|
894
900
|
} | undefined;
|
|
@@ -150,6 +150,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
150
150
|
reka: z.record(z.string(), z.any()).optional(),
|
|
151
151
|
relace: z.record(z.string(), z.any()).optional(),
|
|
152
152
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
153
|
+
respan: z.record(z.string(), z.any()).optional(),
|
|
153
154
|
runway: z.record(z.string(), z.any()).optional(),
|
|
154
155
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
155
156
|
sakana: 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.32",
|
|
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": [
|
|
@@ -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
|
-
"typecheck:transit": "exit 0",
|
|
77
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
78
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
79
76
|
"test:e2e": "vitest --run --project e2e",
|
|
80
77
|
"test:transit": "exit 0",
|
|
81
78
|
"test:watch": "vitest --watch --project unit",
|
|
82
|
-
"typecheck": "
|
|
79
|
+
"typecheck:transit": "exit 0",
|
|
80
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
81
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
83
82
|
"prepare": "npm run build",
|
|
84
|
-
"test": "vitest --run --project unit"
|
|
83
|
+
"test": "vitest --run --project unit",
|
|
84
|
+
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|