@openrouter/sdk 1.2.114 → 1.2.115

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.2.114";
53
+ readonly sdkVersion: "1.2.115";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.114 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.115 2.914.0 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.2.114",
32
+ sdkVersion: "1.2.115",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.114 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.115 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -67,6 +67,7 @@ export declare const BYOKProviderSlug: {
67
67
  readonly Modular: "modular";
68
68
  readonly Moonshotai: "moonshotai";
69
69
  readonly Morph: "morph";
70
+ readonly NearAi: "near-ai";
70
71
  readonly Nebius: "nebius";
71
72
  readonly NexAgi: "nex-agi";
72
73
  readonly Nextbit: "nextbit";
@@ -70,6 +70,7 @@ export const BYOKProviderSlug = {
70
70
  Modular: "modular",
71
71
  Moonshotai: "moonshotai",
72
72
  Morph: "morph",
73
+ NearAi: "near-ai",
73
74
  Nebius: "nebius",
74
75
  NexAgi: "nex-agi",
75
76
  Nextbit: "nextbit",
@@ -266,6 +266,9 @@ export type ImageGenerationProviderPreferencesOptions = {
266
266
  ncompass?: {
267
267
  [k: string]: any;
268
268
  } | undefined;
269
+ nearAi?: {
270
+ [k: string]: any;
271
+ } | undefined;
269
272
  nebius?: {
270
273
  [k: string]: any;
271
274
  } | undefined;
@@ -731,6 +734,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
731
734
  ncompass?: {
732
735
  [k: string]: any;
733
736
  } | undefined;
737
+ "near-ai"?: {
738
+ [k: string]: any;
739
+ } | undefined;
734
740
  nebius?: {
735
741
  [k: string]: any;
736
742
  } | undefined;
@@ -105,6 +105,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
105
105
  moonshotai: z.record(z.string(), z.any()).optional(),
106
106
  morph: z.record(z.string(), z.any()).optional(),
107
107
  ncompass: z.record(z.string(), z.any()).optional(),
108
+ nearAi: z.record(z.string(), z.any()).optional(),
108
109
  nebius: z.record(z.string(), z.any()).optional(),
109
110
  nexAgi: z.record(z.string(), z.any()).optional(),
110
111
  nextbit: z.record(z.string(), z.any()).optional(),
@@ -180,6 +181,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
180
181
  ioNet: "io-net",
181
182
  lynnPrivate: "lynn-private",
182
183
  mancerOld: "mancer-old",
184
+ nearAi: "near-ai",
183
185
  nexAgi: "nex-agi",
184
186
  openInference: "open-inference",
185
187
  sailResearch: "sail-research",
@@ -91,6 +91,7 @@ export declare const Provider: {
91
91
  readonly Modular: "modular";
92
92
  readonly Moonshotai: "moonshotai";
93
93
  readonly Morph: "morph";
94
+ readonly NearAi: "near-ai";
94
95
  readonly Nebius: "nebius";
95
96
  readonly NexAgi: "nex-agi";
96
97
  readonly Nextbit: "nextbit";
@@ -74,6 +74,7 @@ export const Provider = {
74
74
  Modular: "modular",
75
75
  Moonshotai: "moonshotai",
76
76
  Morph: "morph",
77
+ NearAi: "near-ai",
77
78
  Nebius: "nebius",
78
79
  NexAgi: "nex-agi",
79
80
  Nextbit: "nextbit",
@@ -66,6 +66,7 @@ export declare const ProviderName: {
66
66
  readonly MoonshotAI: "Moonshot AI";
67
67
  readonly Morph: "Morph";
68
68
  readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
69
+ readonly NearAI: "Near AI";
69
70
  readonly Nebius: "Nebius";
70
71
  readonly NexAGI: "Nex AGI";
71
72
  readonly NextBit: "NextBit";
@@ -69,6 +69,7 @@ export const ProviderName = {
69
69
  MoonshotAI: "Moonshot AI",
70
70
  Morph: "Morph",
71
71
  VoyageAIByMongoDB: "VoyageAI by MongoDB",
72
+ NearAI: "Near AI",
72
73
  Nebius: "Nebius",
73
74
  NexAGI: "Nex AGI",
74
75
  NextBit: "NextBit",
@@ -261,6 +261,9 @@ export type ProviderOptions = {
261
261
  ncompass?: {
262
262
  [k: string]: any;
263
263
  } | undefined;
264
+ nearAi?: {
265
+ [k: string]: any;
266
+ } | undefined;
264
267
  nebius?: {
265
268
  [k: string]: any;
266
269
  } | undefined;
@@ -681,6 +684,9 @@ export type ProviderOptions$Outbound = {
681
684
  ncompass?: {
682
685
  [k: string]: any;
683
686
  } | undefined;
687
+ "near-ai"?: {
688
+ [k: string]: any;
689
+ } | undefined;
684
690
  nebius?: {
685
691
  [k: string]: any;
686
692
  } | undefined;
@@ -92,6 +92,7 @@ export const ProviderOptions$outboundSchema = z.object({
92
92
  moonshotai: z.record(z.string(), z.any()).optional(),
93
93
  morph: z.record(z.string(), z.any()).optional(),
94
94
  ncompass: z.record(z.string(), z.any()).optional(),
95
+ nearAi: z.record(z.string(), z.any()).optional(),
95
96
  nebius: z.record(z.string(), z.any()).optional(),
96
97
  nexAgi: z.record(z.string(), z.any()).optional(),
97
98
  nextbit: z.record(z.string(), z.any()).optional(),
@@ -167,6 +168,7 @@ export const ProviderOptions$outboundSchema = z.object({
167
168
  ioNet: "io-net",
168
169
  lynnPrivate: "lynn-private",
169
170
  mancerOld: "mancer-old",
171
+ nearAi: "near-ai",
170
172
  nexAgi: "nex-agi",
171
173
  openInference: "open-inference",
172
174
  sailResearch: "sail-research",
@@ -99,6 +99,7 @@ export declare const ProviderResponseProviderName: {
99
99
  readonly MoonshotAI: "Moonshot AI";
100
100
  readonly Morph: "Morph";
101
101
  readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
102
+ readonly NearAI: "Near AI";
102
103
  readonly Nebius: "Nebius";
103
104
  readonly NexAGI: "Nex AGI";
104
105
  readonly NextBit: "NextBit";
@@ -103,6 +103,7 @@ export const ProviderResponseProviderName = {
103
103
  MoonshotAI: "Moonshot AI",
104
104
  Morph: "Morph",
105
105
  VoyageAIByMongoDB: "VoyageAI by MongoDB",
106
+ NearAI: "Near AI",
106
107
  Nebius: "Nebius",
107
108
  NexAGI: "Nex AGI",
108
109
  NextBit: "NextBit",
@@ -282,6 +282,9 @@ export type VideoGenerationRequestOptions = {
282
282
  ncompass?: {
283
283
  [k: string]: any;
284
284
  } | undefined;
285
+ nearAi?: {
286
+ [k: string]: any;
287
+ } | undefined;
285
288
  nebius?: {
286
289
  [k: string]: any;
287
290
  } | undefined;
@@ -781,6 +784,9 @@ export type VideoGenerationRequestOptions$Outbound = {
781
784
  ncompass?: {
782
785
  [k: string]: any;
783
786
  } | undefined;
787
+ "near-ai"?: {
788
+ [k: string]: any;
789
+ } | undefined;
784
790
  nebius?: {
785
791
  [k: string]: any;
786
792
  } | undefined;
@@ -123,6 +123,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
123
123
  moonshotai: z.record(z.string(), z.any()).optional(),
124
124
  morph: z.record(z.string(), z.any()).optional(),
125
125
  ncompass: z.record(z.string(), z.any()).optional(),
126
+ nearAi: z.record(z.string(), z.any()).optional(),
126
127
  nebius: z.record(z.string(), z.any()).optional(),
127
128
  nexAgi: z.record(z.string(), z.any()).optional(),
128
129
  nextbit: z.record(z.string(), z.any()).optional(),
@@ -198,6 +199,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
198
199
  ioNet: "io-net",
199
200
  lynnPrivate: "lynn-private",
200
201
  mancerOld: "mancer-old",
202
+ nearAi: "near-ai",
201
203
  nexAgi: "nex-agi",
202
204
  openInference: "open-inference",
203
205
  sailResearch: "sail-research",
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.114",
5
+ "version": "1.2.115",
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.2.114",
3
+ "version": "1.2.115",
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": [
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "packageManager": "pnpm@10.22.0",
23
23
  "publishConfig": {
24
- "provenance": true,
25
- "access": "public"
24
+ "access": "public",
25
+ "provenance": true
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./esm/index.js",
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc",
75
75
  "prepublishOnly": "npm run build",
76
+ "postinstall": "node scripts/check-types.js || true",
76
77
  "test": "vitest --run --project unit",
77
- "test:e2e": "vitest --run --project e2e",
78
- "test:transit": "exit 0",
78
+ "test:watch": "vitest --watch --project unit",
79
79
  "typecheck": "tsc --noEmit",
80
80
  "compile": "tsc",
81
81
  "prepare": "npm run build",
82
- "test:watch": "vitest --watch --project unit",
83
- "typecheck:transit": "exit 0",
84
- "postinstall": "node scripts/check-types.js || true"
82
+ "test:e2e": "vitest --run --project e2e",
83
+ "test:transit": "exit 0",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {