@openrouter/sdk 1.0.4 → 1.0.5
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 +6 -6
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.5";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.0.5 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.5",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.0.5 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -79,6 +79,7 @@ export declare const BYOKProviderSlug: {
|
|
|
79
79
|
readonly Recraft: "recraft";
|
|
80
80
|
readonly Reka: "reka";
|
|
81
81
|
readonly Relace: "relace";
|
|
82
|
+
readonly Runway: "runway";
|
|
82
83
|
readonly SailResearch: "sail-research";
|
|
83
84
|
readonly Sakana: "sakana";
|
|
84
85
|
readonly Sambanova: "sambanova";
|
|
@@ -308,6 +308,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
308
308
|
replicate?: {
|
|
309
309
|
[k: string]: any;
|
|
310
310
|
} | undefined;
|
|
311
|
+
runway?: {
|
|
312
|
+
[k: string]: any;
|
|
313
|
+
} | undefined;
|
|
311
314
|
sailResearch?: {
|
|
312
315
|
[k: string]: any;
|
|
313
316
|
} | undefined;
|
|
@@ -731,6 +734,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
731
734
|
replicate?: {
|
|
732
735
|
[k: string]: any;
|
|
733
736
|
} | undefined;
|
|
737
|
+
runway?: {
|
|
738
|
+
[k: string]: any;
|
|
739
|
+
} | undefined;
|
|
734
740
|
"sail-research"?: {
|
|
735
741
|
[k: string]: any;
|
|
736
742
|
} | undefined;
|
|
@@ -119,6 +119,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
119
119
|
reka: z.record(z.string(), z.any()).optional(),
|
|
120
120
|
relace: z.record(z.string(), z.any()).optional(),
|
|
121
121
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
122
|
+
runway: z.record(z.string(), z.any()).optional(),
|
|
122
123
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
123
124
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
124
125
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
@@ -103,6 +103,7 @@ export declare const Provider: {
|
|
|
103
103
|
readonly Recraft: "recraft";
|
|
104
104
|
readonly Reka: "reka";
|
|
105
105
|
readonly Relace: "relace";
|
|
106
|
+
readonly Runway: "runway";
|
|
106
107
|
readonly SailResearch: "sail-research";
|
|
107
108
|
readonly Sakana: "sakana";
|
|
108
109
|
readonly Sambanova: "sambanova";
|
|
@@ -303,6 +303,9 @@ export type ProviderOptions = {
|
|
|
303
303
|
replicate?: {
|
|
304
304
|
[k: string]: any;
|
|
305
305
|
} | undefined;
|
|
306
|
+
runway?: {
|
|
307
|
+
[k: string]: any;
|
|
308
|
+
} | undefined;
|
|
306
309
|
sailResearch?: {
|
|
307
310
|
[k: string]: any;
|
|
308
311
|
} | undefined;
|
|
@@ -681,6 +684,9 @@ export type ProviderOptions$Outbound = {
|
|
|
681
684
|
replicate?: {
|
|
682
685
|
[k: string]: any;
|
|
683
686
|
} | undefined;
|
|
687
|
+
runway?: {
|
|
688
|
+
[k: string]: any;
|
|
689
|
+
} | undefined;
|
|
684
690
|
"sail-research"?: {
|
|
685
691
|
[k: string]: any;
|
|
686
692
|
} | undefined;
|
|
@@ -106,6 +106,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
106
106
|
reka: z.record(z.string(), z.any()).optional(),
|
|
107
107
|
relace: z.record(z.string(), z.any()).optional(),
|
|
108
108
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
109
|
+
runway: z.record(z.string(), z.any()).optional(),
|
|
109
110
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
110
111
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
111
112
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
@@ -324,6 +324,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
324
324
|
replicate?: {
|
|
325
325
|
[k: string]: any;
|
|
326
326
|
} | undefined;
|
|
327
|
+
runway?: {
|
|
328
|
+
[k: string]: any;
|
|
329
|
+
} | undefined;
|
|
327
330
|
sailResearch?: {
|
|
328
331
|
[k: string]: any;
|
|
329
332
|
} | undefined;
|
|
@@ -772,6 +775,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
772
775
|
replicate?: {
|
|
773
776
|
[k: string]: any;
|
|
774
777
|
} | undefined;
|
|
778
|
+
runway?: {
|
|
779
|
+
[k: string]: any;
|
|
780
|
+
} | undefined;
|
|
775
781
|
"sail-research"?: {
|
|
776
782
|
[k: string]: any;
|
|
777
783
|
} | undefined;
|
|
@@ -136,6 +136,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
136
136
|
reka: z.record(z.string(), z.any()).optional(),
|
|
137
137
|
relace: z.record(z.string(), z.any()).optional(),
|
|
138
138
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
139
|
+
runway: z.record(z.string(), z.any()).optional(),
|
|
139
140
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
140
141
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
141
142
|
sambanova: 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.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"test": "vitest --run --project
|
|
77
|
-
"test:transit": "exit 0",
|
|
76
|
+
"test:e2e": "vitest --run --project e2e",
|
|
78
77
|
"test:watch": "vitest --watch --project unit",
|
|
79
78
|
"typecheck": "tsc --noEmit",
|
|
80
|
-
"
|
|
81
|
-
"test:
|
|
79
|
+
"test": "vitest --run --project unit",
|
|
80
|
+
"test:transit": "exit 0",
|
|
82
81
|
"typecheck:transit": "exit 0",
|
|
83
82
|
"compile": "tsc",
|
|
84
|
-
"postinstall": "node scripts/check-types.js || true"
|
|
83
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
+
"prepare": "npm run build"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|