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