@openrouter/sdk 0.13.53 → 0.13.54
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 +4 -4
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: "0.13.
|
|
52
|
+
readonly sdkVersion: "0.13.54";
|
|
53
53
|
readonly genVersion: "2.884.4";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.54 2.884.4 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: "0.13.
|
|
29
|
+
sdkVersion: "0.13.54",
|
|
30
30
|
genVersion: "2.884.4",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.13.54 2.884.4 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -77,6 +77,7 @@ export declare const BYOKProviderSlug: {
|
|
|
77
77
|
readonly Recraft: "recraft";
|
|
78
78
|
readonly Reka: "reka";
|
|
79
79
|
readonly Relace: "relace";
|
|
80
|
+
readonly SailResearch: "sail-research";
|
|
80
81
|
readonly Sakana: "sakana";
|
|
81
82
|
readonly Sambanova: "sambanova";
|
|
82
83
|
readonly Seed: "seed";
|
|
@@ -302,6 +302,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
302
302
|
replicate?: {
|
|
303
303
|
[k: string]: any | null;
|
|
304
304
|
} | undefined;
|
|
305
|
+
sailResearch?: {
|
|
306
|
+
[k: string]: any | null;
|
|
307
|
+
} | undefined;
|
|
305
308
|
sakana?: {
|
|
306
309
|
[k: string]: any | null;
|
|
307
310
|
} | undefined;
|
|
@@ -713,6 +716,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
713
716
|
replicate?: {
|
|
714
717
|
[k: string]: any | null;
|
|
715
718
|
} | undefined;
|
|
719
|
+
"sail-research"?: {
|
|
720
|
+
[k: string]: any | null;
|
|
721
|
+
} | undefined;
|
|
716
722
|
sakana?: {
|
|
717
723
|
[k: string]: any | null;
|
|
718
724
|
} | undefined;
|
|
@@ -117,6 +117,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
117
117
|
reka: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
118
118
|
relace: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
119
119
|
replicate: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
120
|
+
sailResearch: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
120
121
|
sakana: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
121
122
|
sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
122
123
|
sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -160,6 +161,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
160
161
|
mancerOld: "mancer-old",
|
|
161
162
|
nexAgi: "nex-agi",
|
|
162
163
|
openInference: "open-inference",
|
|
164
|
+
sailResearch: "sail-research",
|
|
163
165
|
sambanovaCloaked: "sambanova-cloaked",
|
|
164
166
|
sfCompute: "sf-compute",
|
|
165
167
|
togetherLite: "together-lite",
|
|
@@ -101,6 +101,7 @@ export declare const Provider: {
|
|
|
101
101
|
readonly Recraft: "recraft";
|
|
102
102
|
readonly Reka: "reka";
|
|
103
103
|
readonly Relace: "relace";
|
|
104
|
+
readonly SailResearch: "sail-research";
|
|
104
105
|
readonly Sakana: "sakana";
|
|
105
106
|
readonly Sambanova: "sambanova";
|
|
106
107
|
readonly Seed: "seed";
|
|
@@ -74,6 +74,7 @@ export declare const ProviderName: {
|
|
|
74
74
|
readonly Recraft: "Recraft";
|
|
75
75
|
readonly Reka: "Reka";
|
|
76
76
|
readonly Relace: "Relace";
|
|
77
|
+
readonly SailResearch: "Sail Research";
|
|
77
78
|
readonly SakanaAI: "Sakana AI";
|
|
78
79
|
readonly SambaNova: "SambaNova";
|
|
79
80
|
readonly Seed: "Seed";
|
|
@@ -297,6 +297,9 @@ export type ProviderOptions = {
|
|
|
297
297
|
replicate?: {
|
|
298
298
|
[k: string]: any | null;
|
|
299
299
|
} | undefined;
|
|
300
|
+
sailResearch?: {
|
|
301
|
+
[k: string]: any | null;
|
|
302
|
+
} | undefined;
|
|
300
303
|
sakana?: {
|
|
301
304
|
[k: string]: any | null;
|
|
302
305
|
} | undefined;
|
|
@@ -663,6 +666,9 @@ export type ProviderOptions$Outbound = {
|
|
|
663
666
|
replicate?: {
|
|
664
667
|
[k: string]: any | null;
|
|
665
668
|
} | undefined;
|
|
669
|
+
"sail-research"?: {
|
|
670
|
+
[k: string]: any | null;
|
|
671
|
+
} | undefined;
|
|
666
672
|
sakana?: {
|
|
667
673
|
[k: string]: any | null;
|
|
668
674
|
} | undefined;
|
|
@@ -104,6 +104,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
104
104
|
reka: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
105
105
|
relace: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
106
106
|
replicate: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
107
|
+
sailResearch: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
107
108
|
sakana: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
108
109
|
sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
109
110
|
sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -147,6 +148,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
147
148
|
mancerOld: "mancer-old",
|
|
148
149
|
nexAgi: "nex-agi",
|
|
149
150
|
openInference: "open-inference",
|
|
151
|
+
sailResearch: "sail-research",
|
|
150
152
|
sambanovaCloaked: "sambanova-cloaked",
|
|
151
153
|
sfCompute: "sf-compute",
|
|
152
154
|
togetherLite: "together-lite",
|
|
@@ -107,6 +107,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
107
107
|
readonly Recraft: "Recraft";
|
|
108
108
|
readonly Reka: "Reka";
|
|
109
109
|
readonly Relace: "Relace";
|
|
110
|
+
readonly SailResearch: "Sail Research";
|
|
110
111
|
readonly SakanaAI: "Sakana AI";
|
|
111
112
|
readonly SambaNova: "SambaNova";
|
|
112
113
|
readonly Seed: "Seed";
|
|
@@ -318,6 +318,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
318
318
|
replicate?: {
|
|
319
319
|
[k: string]: any | null;
|
|
320
320
|
} | undefined;
|
|
321
|
+
sailResearch?: {
|
|
322
|
+
[k: string]: any | null;
|
|
323
|
+
} | undefined;
|
|
321
324
|
sakana?: {
|
|
322
325
|
[k: string]: any | null;
|
|
323
326
|
} | undefined;
|
|
@@ -751,6 +754,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
751
754
|
replicate?: {
|
|
752
755
|
[k: string]: any | null;
|
|
753
756
|
} | undefined;
|
|
757
|
+
"sail-research"?: {
|
|
758
|
+
[k: string]: any | null;
|
|
759
|
+
} | undefined;
|
|
754
760
|
sakana?: {
|
|
755
761
|
[k: string]: any | null;
|
|
756
762
|
} | undefined;
|
|
@@ -134,6 +134,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
134
134
|
reka: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
135
135
|
relace: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
136
136
|
replicate: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
137
|
+
sailResearch: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
137
138
|
sakana: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
138
139
|
sambanova: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
139
140
|
sambanovaCloaked: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -177,6 +178,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
177
178
|
mancerOld: "mancer-old",
|
|
178
179
|
nexAgi: "nex-agi",
|
|
179
180
|
openInference: "open-inference",
|
|
181
|
+
sailResearch: "sail-research",
|
|
180
182
|
sambanovaCloaked: "sambanova-cloaked",
|
|
181
183
|
sfCompute: "sf-compute",
|
|
182
184
|
togetherLite: "together-lite",
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.54",
|
|
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,13 +73,13 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"test:e2e": "vitest --run --project e2e",
|
|
77
|
-
"test:transit": "exit 0",
|
|
78
|
-
"typecheck:transit": "exit 0",
|
|
79
76
|
"compile": "tsc",
|
|
80
77
|
"postinstall": "node scripts/check-types.js || true",
|
|
81
78
|
"prepare": "npm run build",
|
|
82
79
|
"test": "vitest --run --project unit",
|
|
80
|
+
"test:e2e": "vitest --run --project e2e",
|
|
81
|
+
"test:transit": "exit 0",
|
|
82
|
+
"typecheck:transit": "exit 0",
|
|
83
83
|
"test:watch": "vitest --watch --project unit",
|
|
84
84
|
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|