@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.
@@ -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.21";
53
+ readonly sdkVersion: "1.5.23";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.21 2.950.13 1.0.0 @openrouter/sdk";
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.21",
32
+ sdkVersion: "1.5.23",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.21 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.23 2.950.13 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -60,6 +60,7 @@ export declare const BYOKProviderSlug: {
60
60
  readonly IoNet: "io-net";
61
61
  readonly Ionstream: "ionstream";
62
62
  readonly Krea: "krea";
63
+ readonly Kt: "kt";
63
64
  readonly Liquid: "liquid";
64
65
  readonly Makora: "makora";
65
66
  readonly Mancer: "mancer";
@@ -63,6 +63,7 @@ export const BYOKProviderSlug = {
63
63
  IoNet: "io-net",
64
64
  Ionstream: "ionstream",
65
65
  Krea: "krea",
66
+ Kt: "kt",
66
67
  Liquid: "liquid",
67
68
  Makora: "makora",
68
69
  Mancer: "mancer",
@@ -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 end-user identifier for attribution.
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
  };
@@ -84,6 +84,7 @@ export declare const Provider: {
84
84
  readonly IoNet: "io-net";
85
85
  readonly Ionstream: "ionstream";
86
86
  readonly Krea: "krea";
87
+ readonly Kt: "kt";
87
88
  readonly Liquid: "liquid";
88
89
  readonly Makora: "makora";
89
90
  readonly Mancer: "mancer";
@@ -67,6 +67,7 @@ export const Provider = {
67
67
  IoNet: "io-net",
68
68
  Ionstream: "ionstream",
69
69
  Krea: "krea",
70
+ Kt: "kt",
70
71
  Liquid: "liquid",
71
72
  Makora: "makora",
72
73
  Mancer: "mancer",
@@ -56,6 +56,7 @@ export declare const ProviderName: {
56
56
  readonly IoNet: "Io Net";
57
57
  readonly InferactVLLM: "Inferact vLLM";
58
58
  readonly Inflection: "Inflection";
59
+ readonly Kt: "KT";
59
60
  readonly Liquid: "Liquid";
60
61
  readonly Makora: "Makora";
61
62
  readonly Mara: "Mara";
@@ -59,6 +59,7 @@ export const ProviderName = {
59
59
  IoNet: "Io Net",
60
60
  InferactVLLM: "Inferact vLLM",
61
61
  Inflection: "Inflection",
62
+ Kt: "KT",
62
63
  Liquid: "Liquid",
63
64
  Makora: "Makora",
64
65
  Mara: "Mara",
@@ -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";
@@ -93,6 +93,7 @@ export const ProviderResponseProviderName = {
93
93
  IoNet: "Io Net",
94
94
  InferactVLLM: "Inferact vLLM",
95
95
  Inflection: "Inflection",
96
+ Kt: "KT",
96
97
  Liquid: "Liquid",
97
98
  Makora: "Makora",
98
99
  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
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.21",
5
+ "version": "1.5.23",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.5.21",
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
- "postinstall": "node scripts/check-types.js || true",
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:e2e": "vitest --run --project e2e",
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