@openrouter/sdk 1.2.111 → 1.2.112
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 -1
- package/esm/models/byokproviderslug.js +1 -1
- package/esm/models/imagegenerationproviderpreferences.d.ts +2 -2
- package/esm/models/imagegenerationproviderpreferences.js +1 -2
- package/esm/models/operations/listbyokkeys.d.ts +1 -1
- package/esm/models/operations/listbyokkeys.js +1 -1
- package/esm/models/provideroptions.d.ts +2 -2
- package/esm/models/provideroptions.js +1 -2
- package/esm/models/videogenerationrequest.d.ts +2 -2
- package/esm/models/videogenerationrequest.js +1 -2
- package/jsr.json +1 -1
- package/package.json +5 -5
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.112";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.112 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.112",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.112 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -80,7 +80,7 @@ export declare const BYOKProviderSlug: {
|
|
|
80
80
|
readonly Perplexity: "perplexity";
|
|
81
81
|
readonly Phala: "phala";
|
|
82
82
|
readonly Poolside: "poolside";
|
|
83
|
-
readonly
|
|
83
|
+
readonly Primeintellect: "primeintellect";
|
|
84
84
|
readonly Quiver: "quiver";
|
|
85
85
|
readonly Recraft: "recraft";
|
|
86
86
|
readonly Reka: "reka";
|
|
@@ -311,7 +311,7 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
311
311
|
poolside?: {
|
|
312
312
|
[k: string]: any;
|
|
313
313
|
} | undefined;
|
|
314
|
-
|
|
314
|
+
primeintellect?: {
|
|
315
315
|
[k: string]: any;
|
|
316
316
|
} | undefined;
|
|
317
317
|
quiver?: {
|
|
@@ -776,7 +776,7 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
776
776
|
poolside?: {
|
|
777
777
|
[k: string]: any;
|
|
778
778
|
} | undefined;
|
|
779
|
-
|
|
779
|
+
primeintellect?: {
|
|
780
780
|
[k: string]: any;
|
|
781
781
|
} | undefined;
|
|
782
782
|
quiver?: {
|
|
@@ -120,7 +120,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
120
120
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
121
121
|
phala: z.record(z.string(), z.any()).optional(),
|
|
122
122
|
poolside: z.record(z.string(), z.any()).optional(),
|
|
123
|
-
|
|
123
|
+
primeintellect: z.record(z.string(), z.any()).optional(),
|
|
124
124
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
125
125
|
recraft: z.record(z.string(), z.any()).optional(),
|
|
126
126
|
recursal: z.record(z.string(), z.any()).optional(),
|
|
@@ -182,7 +182,6 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
182
182
|
mancerOld: "mancer-old",
|
|
183
183
|
nexAgi: "nex-agi",
|
|
184
184
|
openInference: "open-inference",
|
|
185
|
-
primeIntellect: "prime-intellect",
|
|
186
185
|
sailResearch: "sail-research",
|
|
187
186
|
sakanaAi: "sakana-ai",
|
|
188
187
|
sambanovaCloaked: "sambanova-cloaked",
|
|
@@ -104,7 +104,7 @@ export declare const Provider: {
|
|
|
104
104
|
readonly Perplexity: "perplexity";
|
|
105
105
|
readonly Phala: "phala";
|
|
106
106
|
readonly Poolside: "poolside";
|
|
107
|
-
readonly
|
|
107
|
+
readonly Primeintellect: "primeintellect";
|
|
108
108
|
readonly Quiver: "quiver";
|
|
109
109
|
readonly Recraft: "recraft";
|
|
110
110
|
readonly Reka: "reka";
|
|
@@ -306,7 +306,7 @@ export type ProviderOptions = {
|
|
|
306
306
|
poolside?: {
|
|
307
307
|
[k: string]: any;
|
|
308
308
|
} | undefined;
|
|
309
|
-
|
|
309
|
+
primeintellect?: {
|
|
310
310
|
[k: string]: any;
|
|
311
311
|
} | undefined;
|
|
312
312
|
quiver?: {
|
|
@@ -726,7 +726,7 @@ export type ProviderOptions$Outbound = {
|
|
|
726
726
|
poolside?: {
|
|
727
727
|
[k: string]: any;
|
|
728
728
|
} | undefined;
|
|
729
|
-
|
|
729
|
+
primeintellect?: {
|
|
730
730
|
[k: string]: any;
|
|
731
731
|
} | undefined;
|
|
732
732
|
quiver?: {
|
|
@@ -107,7 +107,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
107
107
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
108
108
|
phala: z.record(z.string(), z.any()).optional(),
|
|
109
109
|
poolside: z.record(z.string(), z.any()).optional(),
|
|
110
|
-
|
|
110
|
+
primeintellect: z.record(z.string(), z.any()).optional(),
|
|
111
111
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
112
112
|
recraft: z.record(z.string(), z.any()).optional(),
|
|
113
113
|
recursal: z.record(z.string(), z.any()).optional(),
|
|
@@ -169,7 +169,6 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
169
169
|
mancerOld: "mancer-old",
|
|
170
170
|
nexAgi: "nex-agi",
|
|
171
171
|
openInference: "open-inference",
|
|
172
|
-
primeIntellect: "prime-intellect",
|
|
173
172
|
sailResearch: "sail-research",
|
|
174
173
|
sakanaAi: "sakana-ai",
|
|
175
174
|
sambanovaCloaked: "sambanova-cloaked",
|
|
@@ -327,7 +327,7 @@ export type VideoGenerationRequestOptions = {
|
|
|
327
327
|
poolside?: {
|
|
328
328
|
[k: string]: any;
|
|
329
329
|
} | undefined;
|
|
330
|
-
|
|
330
|
+
primeintellect?: {
|
|
331
331
|
[k: string]: any;
|
|
332
332
|
} | undefined;
|
|
333
333
|
quiver?: {
|
|
@@ -826,7 +826,7 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
826
826
|
poolside?: {
|
|
827
827
|
[k: string]: any;
|
|
828
828
|
} | undefined;
|
|
829
|
-
|
|
829
|
+
primeintellect?: {
|
|
830
830
|
[k: string]: any;
|
|
831
831
|
} | undefined;
|
|
832
832
|
quiver?: {
|
|
@@ -138,7 +138,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
138
138
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
139
139
|
phala: z.record(z.string(), z.any()).optional(),
|
|
140
140
|
poolside: z.record(z.string(), z.any()).optional(),
|
|
141
|
-
|
|
141
|
+
primeintellect: z.record(z.string(), z.any()).optional(),
|
|
142
142
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
143
143
|
recraft: z.record(z.string(), z.any()).optional(),
|
|
144
144
|
recursal: z.record(z.string(), z.any()).optional(),
|
|
@@ -200,7 +200,6 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
200
200
|
mancerOld: "mancer-old",
|
|
201
201
|
nexAgi: "nex-agi",
|
|
202
202
|
openInference: "open-inference",
|
|
203
|
-
primeIntellect: "prime-intellect",
|
|
204
203
|
sailResearch: "sail-research",
|
|
205
204
|
sakanaAi: "sakana-ai",
|
|
206
205
|
sambanovaCloaked: "sambanova-cloaked",
|
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.112",
|
|
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
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
76
77
|
"test": "vitest --run --project unit",
|
|
77
78
|
"test:e2e": "vitest --run --project e2e",
|
|
78
79
|
"test:transit": "exit 0",
|
|
80
|
+
"test:watch": "vitest --watch --project unit",
|
|
79
81
|
"typecheck": "tsc --noEmit",
|
|
80
|
-
"
|
|
82
|
+
"compile": "tsc",
|
|
81
83
|
"prepare": "npm run build",
|
|
82
|
-
"
|
|
83
|
-
"typecheck:transit": "exit 0",
|
|
84
|
-
"compile": "tsc"
|
|
84
|
+
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|