@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.
@@ -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.20";
53
+ readonly sdkVersion: "1.5.22";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.20 2.950.13 1.0.0 @openrouter/sdk";
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.20",
32
+ sdkVersion: "1.5.22",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.20 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.22 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(),
@@ -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",
@@ -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. 2-64 letters, numbers, spaces, dots, underscores or hyphens. Cannot be changed later. Neither the name nor its slug may match a public provider name or slug (case-insensitive); other customers may use the same name.
36
+ * Provider name, shown in your activity, logs and Broadcast output.
34
37
  */
35
38
  name: string;
36
39
  /**
@@ -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.20",
5
+ "version": "1.5.22",
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.20",
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
- "prepare": "npm run build",
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