@openrouter/sdk 1.5.21 → 1.5.23
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/jevrouterplugin.d.ts +1 -1
- package/esm/models/operations/createkeys.d.ts +1 -1
- 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 +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.23";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.23 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.23",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.23 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(),
|
|
@@ -14,7 +14,7 @@ export type JevRouterPlugin = {
|
|
|
14
14
|
excludedModels?: Array<string> | undefined;
|
|
15
15
|
id: "jev-router";
|
|
16
16
|
/**
|
|
17
|
-
* Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. "anthropic/*"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). `allowed_models` is an alias; entries from both fields are combined.
|
|
17
|
+
* Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. "anthropic/*"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). When no entry matches any catalog model, for example a misspelled slug, the request fails with 404 instead. `allowed_models` is an alias; entries from both fields are combined.
|
|
18
18
|
*/
|
|
19
19
|
models?: Array<string> | undefined;
|
|
20
20
|
};
|
|
@@ -32,7 +32,7 @@ export type External = {
|
|
|
32
32
|
*/
|
|
33
33
|
apiKey?: string | undefined;
|
|
34
34
|
/**
|
|
35
|
-
* Partner's
|
|
35
|
+
* Partner's external user identifier for attribution: 1 to 512 characters after surrounding whitespace is trimmed, well-formed Unicode, no NUL. For organization keys outside HIPAA workspaces, the value is registered as an external user if it does not exist yet, and the key is linked to it.
|
|
36
36
|
*/
|
|
37
37
|
user: string;
|
|
38
38
|
};
|
|
@@ -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.23",
|
|
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
|
-
"
|
|
77
|
-
"prepare": "npm run build",
|
|
78
|
-
"test": "vitest --run --project unit",
|
|
76
|
+
"test:e2e": "vitest --run --project e2e",
|
|
79
77
|
"typecheck": "tsc --noEmit",
|
|
80
|
-
"typecheck:transit": "exit 0",
|
|
81
78
|
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
82
|
-
"test
|
|
79
|
+
"test": "vitest --run --project unit",
|
|
83
80
|
"test:transit": "exit 0",
|
|
84
|
-
"test:watch": "vitest --watch --project unit"
|
|
81
|
+
"test:watch": "vitest --watch --project unit",
|
|
82
|
+
"typecheck:transit": "exit 0",
|
|
83
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
+
"prepare": "npm run build"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|