@openrouter/sdk 1.2.51 → 1.2.52
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.2.
|
|
53
|
+
readonly sdkVersion: "1.2.52";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.52 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.2.
|
|
32
|
+
sdkVersion: "1.2.52",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.52 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -224,6 +224,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
224
224
|
lynnPrivate?: {
|
|
225
225
|
[k: string]: any;
|
|
226
226
|
} | undefined;
|
|
227
|
+
makora?: {
|
|
228
|
+
[k: string]: any;
|
|
229
|
+
} | undefined;
|
|
227
230
|
mancer?: {
|
|
228
231
|
[k: string]: any;
|
|
229
232
|
} | undefined;
|
|
@@ -677,6 +680,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
677
680
|
"lynn-private"?: {
|
|
678
681
|
[k: string]: any;
|
|
679
682
|
} | undefined;
|
|
683
|
+
makora?: {
|
|
684
|
+
[k: string]: any;
|
|
685
|
+
} | undefined;
|
|
680
686
|
mancer?: {
|
|
681
687
|
[k: string]: any;
|
|
682
688
|
} | undefined;
|
|
@@ -91,6 +91,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
91
91
|
liquid: z.record(z.string(), z.any()).optional(),
|
|
92
92
|
lynn: z.record(z.string(), z.any()).optional(),
|
|
93
93
|
lynnPrivate: z.record(z.string(), z.any()).optional(),
|
|
94
|
+
makora: z.record(z.string(), z.any()).optional(),
|
|
94
95
|
mancer: z.record(z.string(), z.any()).optional(),
|
|
95
96
|
mancerOld: z.record(z.string(), z.any()).optional(),
|
|
96
97
|
mara: z.record(z.string(), z.any()).optional(),
|
|
@@ -54,6 +54,7 @@ export declare const ProviderName: {
|
|
|
54
54
|
readonly InferactVLLM: "Inferact vLLM";
|
|
55
55
|
readonly Inflection: "Inflection";
|
|
56
56
|
readonly Liquid: "Liquid";
|
|
57
|
+
readonly Makora: "Makora";
|
|
57
58
|
readonly Mara: "Mara";
|
|
58
59
|
readonly Mancer2: "Mancer 2";
|
|
59
60
|
readonly Meta: "Meta";
|
|
@@ -219,6 +219,9 @@ export type ProviderOptions = {
|
|
|
219
219
|
lynnPrivate?: {
|
|
220
220
|
[k: string]: any;
|
|
221
221
|
} | undefined;
|
|
222
|
+
makora?: {
|
|
223
|
+
[k: string]: any;
|
|
224
|
+
} | undefined;
|
|
222
225
|
mancer?: {
|
|
223
226
|
[k: string]: any;
|
|
224
227
|
} | undefined;
|
|
@@ -627,6 +630,9 @@ export type ProviderOptions$Outbound = {
|
|
|
627
630
|
"lynn-private"?: {
|
|
628
631
|
[k: string]: any;
|
|
629
632
|
} | undefined;
|
|
633
|
+
makora?: {
|
|
634
|
+
[k: string]: any;
|
|
635
|
+
} | undefined;
|
|
630
636
|
mancer?: {
|
|
631
637
|
[k: string]: any;
|
|
632
638
|
} | undefined;
|
|
@@ -78,6 +78,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
78
78
|
liquid: z.record(z.string(), z.any()).optional(),
|
|
79
79
|
lynn: z.record(z.string(), z.any()).optional(),
|
|
80
80
|
lynnPrivate: z.record(z.string(), z.any()).optional(),
|
|
81
|
+
makora: z.record(z.string(), z.any()).optional(),
|
|
81
82
|
mancer: z.record(z.string(), z.any()).optional(),
|
|
82
83
|
mancerOld: z.record(z.string(), z.any()).optional(),
|
|
83
84
|
mara: z.record(z.string(), z.any()).optional(),
|
|
@@ -86,6 +86,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
86
86
|
readonly InferactVLLM: "Inferact vLLM";
|
|
87
87
|
readonly Inflection: "Inflection";
|
|
88
88
|
readonly Liquid: "Liquid";
|
|
89
|
+
readonly Makora: "Makora";
|
|
89
90
|
readonly Mara: "Mara";
|
|
90
91
|
readonly Mancer2: "Mancer 2";
|
|
91
92
|
readonly Meta: "Meta";
|
|
@@ -240,6 +240,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
240
240
|
lynnPrivate?: {
|
|
241
241
|
[k: string]: any;
|
|
242
242
|
} | undefined;
|
|
243
|
+
makora?: {
|
|
244
|
+
[k: string]: any;
|
|
245
|
+
} | undefined;
|
|
243
246
|
mancer?: {
|
|
244
247
|
[k: string]: any;
|
|
245
248
|
} | undefined;
|
|
@@ -727,6 +730,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
727
730
|
"lynn-private"?: {
|
|
728
731
|
[k: string]: any;
|
|
729
732
|
} | undefined;
|
|
733
|
+
makora?: {
|
|
734
|
+
[k: string]: any;
|
|
735
|
+
} | undefined;
|
|
730
736
|
mancer?: {
|
|
731
737
|
[k: string]: any;
|
|
732
738
|
} | undefined;
|
|
@@ -109,6 +109,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
109
109
|
liquid: z.record(z.string(), z.any()).optional(),
|
|
110
110
|
lynn: z.record(z.string(), z.any()).optional(),
|
|
111
111
|
lynnPrivate: z.record(z.string(), z.any()).optional(),
|
|
112
|
+
makora: z.record(z.string(), z.any()).optional(),
|
|
112
113
|
mancer: z.record(z.string(), z.any()).optional(),
|
|
113
114
|
mancerOld: z.record(z.string(), z.any()).optional(),
|
|
114
115
|
mara: 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.2.
|
|
3
|
+
"version": "1.2.52",
|
|
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
|
+
"provenance": true,
|
|
25
|
+
"access": "public"
|
|
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",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"prepare": "npm run build",
|
|
77
|
+
"test:e2e": "vitest --run --project e2e",
|
|
78
|
+
"test:watch": "vitest --watch --project unit",
|
|
79
|
+
"typecheck": "tsc --noEmit",
|
|
76
80
|
"typecheck:transit": "exit 0",
|
|
77
81
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
82
|
"test": "vitest --run --project unit",
|
|
79
|
-
"compile": "tsc",
|
|
80
|
-
"prepare": "npm run build",
|
|
81
|
-
"test:e2e": "vitest --run --project e2e",
|
|
82
83
|
"test:transit": "exit 0",
|
|
83
|
-
"
|
|
84
|
-
"typecheck": "tsc --noEmit"
|
|
84
|
+
"compile": "tsc"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|