@openrouter/sdk 1.5.20 → 1.5.22
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/privateprovider.d.ts +4 -1
- 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 +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.5.
|
|
53
|
+
readonly sdkVersion: "1.5.22";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.22 2.950.13 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.5.
|
|
32
|
+
sdkVersion: "1.5.22",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.22 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -218,6 +218,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
218
218
|
krea?: {
|
|
219
219
|
[k: string]: any;
|
|
220
220
|
} | undefined;
|
|
221
|
+
kt?: {
|
|
222
|
+
[k: string]: any;
|
|
223
|
+
} | undefined;
|
|
221
224
|
lambda?: {
|
|
222
225
|
[k: string]: any;
|
|
223
226
|
} | undefined;
|
|
@@ -716,6 +719,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
716
719
|
krea?: {
|
|
717
720
|
[k: string]: any;
|
|
718
721
|
} | undefined;
|
|
722
|
+
kt?: {
|
|
723
|
+
[k: string]: any;
|
|
724
|
+
} | undefined;
|
|
719
725
|
lambda?: {
|
|
720
726
|
[k: string]: any;
|
|
721
727
|
} | undefined;
|
|
@@ -89,6 +89,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
89
89
|
ionstream: z.record(z.string(), z.any()).optional(),
|
|
90
90
|
klusterai: z.record(z.string(), z.any()).optional(),
|
|
91
91
|
krea: z.record(z.string(), z.any()).optional(),
|
|
92
|
+
kt: z.record(z.string(), z.any()).optional(),
|
|
92
93
|
lambda: z.record(z.string(), z.any()).optional(),
|
|
93
94
|
lepton: z.record(z.string(), z.any()).optional(),
|
|
94
95
|
liquid: z.record(z.string(), z.any()).optional(),
|
|
@@ -28,9 +28,12 @@ export type PrivateProvider = {
|
|
|
28
28
|
* Your declared data policy, or `null` when none was declared.
|
|
29
29
|
*/
|
|
30
30
|
dataPolicy: PrivateProviderDataPolicy1 | null;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable provider name shown in the UI.
|
|
33
|
+
*/
|
|
31
34
|
displayName: string;
|
|
32
35
|
/**
|
|
33
|
-
* Provider name, shown in your activity, logs and Broadcast output.
|
|
36
|
+
* Provider name, shown in your activity, logs and Broadcast output.
|
|
34
37
|
*/
|
|
35
38
|
name: string;
|
|
36
39
|
/**
|
|
@@ -213,6 +213,9 @@ export type ProviderOptions = {
|
|
|
213
213
|
krea?: {
|
|
214
214
|
[k: string]: any;
|
|
215
215
|
} | undefined;
|
|
216
|
+
kt?: {
|
|
217
|
+
[k: string]: any;
|
|
218
|
+
} | undefined;
|
|
216
219
|
lambda?: {
|
|
217
220
|
[k: string]: any;
|
|
218
221
|
} | undefined;
|
|
@@ -666,6 +669,9 @@ export type ProviderOptions$Outbound = {
|
|
|
666
669
|
krea?: {
|
|
667
670
|
[k: string]: any;
|
|
668
671
|
} | undefined;
|
|
672
|
+
kt?: {
|
|
673
|
+
[k: string]: any;
|
|
674
|
+
} | undefined;
|
|
669
675
|
lambda?: {
|
|
670
676
|
[k: string]: any;
|
|
671
677
|
} | undefined;
|
|
@@ -76,6 +76,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
76
76
|
ionstream: z.record(z.string(), z.any()).optional(),
|
|
77
77
|
klusterai: z.record(z.string(), z.any()).optional(),
|
|
78
78
|
krea: z.record(z.string(), z.any()).optional(),
|
|
79
|
+
kt: z.record(z.string(), z.any()).optional(),
|
|
79
80
|
lambda: z.record(z.string(), z.any()).optional(),
|
|
80
81
|
lepton: z.record(z.string(), z.any()).optional(),
|
|
81
82
|
liquid: z.record(z.string(), z.any()).optional(),
|
|
@@ -89,6 +89,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
89
89
|
readonly IoNet: "Io Net";
|
|
90
90
|
readonly InferactVLLM: "Inferact vLLM";
|
|
91
91
|
readonly Inflection: "Inflection";
|
|
92
|
+
readonly Kt: "KT";
|
|
92
93
|
readonly Liquid: "Liquid";
|
|
93
94
|
readonly Makora: "Makora";
|
|
94
95
|
readonly Mara: "Mara";
|
|
@@ -235,6 +235,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
235
235
|
krea?: {
|
|
236
236
|
[k: string]: any;
|
|
237
237
|
} | undefined;
|
|
238
|
+
kt?: {
|
|
239
|
+
[k: string]: any;
|
|
240
|
+
} | undefined;
|
|
238
241
|
lambda?: {
|
|
239
242
|
[k: string]: any;
|
|
240
243
|
} | undefined;
|
|
@@ -784,6 +787,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
784
787
|
krea?: {
|
|
785
788
|
[k: string]: any;
|
|
786
789
|
} | undefined;
|
|
790
|
+
kt?: {
|
|
791
|
+
[k: string]: any;
|
|
792
|
+
} | undefined;
|
|
787
793
|
lambda?: {
|
|
788
794
|
[k: string]: any;
|
|
789
795
|
} | undefined;
|
|
@@ -109,6 +109,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
109
109
|
ionstream: z.record(z.string(), z.any()).optional(),
|
|
110
110
|
klusterai: z.record(z.string(), z.any()).optional(),
|
|
111
111
|
krea: z.record(z.string(), z.any()).optional(),
|
|
112
|
+
kt: z.record(z.string(), z.any()).optional(),
|
|
112
113
|
lambda: z.record(z.string(), z.any()).optional(),
|
|
113
114
|
lepton: z.record(z.string(), z.any()).optional(),
|
|
114
115
|
liquid: 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.5.
|
|
3
|
+
"version": "1.5.22",
|
|
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 && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"test:watch": "vitest --watch --project unit",
|
|
77
|
+
"typecheck": "tsc --noEmit",
|
|
78
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
76
79
|
"postinstall": "node scripts/check-types.js || true",
|
|
80
|
+
"prepare": "npm run build",
|
|
77
81
|
"test": "vitest --run --project unit",
|
|
78
|
-
"test:e2e": "vitest --run --project e2e",
|
|
79
|
-
"test:watch": "vitest --watch --project unit",
|
|
80
82
|
"typecheck:transit": "exit 0",
|
|
81
|
-
"
|
|
82
|
-
"test:transit": "exit 0"
|
|
83
|
-
"typecheck": "tsc --noEmit",
|
|
84
|
-
"compile": "tsc && node scripts/unbarrel-imports.js"
|
|
83
|
+
"test:e2e": "vitest --run --project e2e",
|
|
84
|
+
"test:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|