@openrouter/sdk 1.0.18 → 1.0.20

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.
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
49
49
  export declare const SDK_METADATA: {
50
50
  readonly language: "typescript";
51
51
  readonly openapiDocVersion: "1.0.0";
52
- readonly sdkVersion: "1.0.18";
52
+ readonly sdkVersion: "1.0.20";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.0.18 2.914.0 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.0.20 2.914.0 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
26
26
  export const SDK_METADATA = {
27
27
  language: "typescript",
28
28
  openapiDocVersion: "1.0.0",
29
- sdkVersion: "1.0.18",
29
+ sdkVersion: "1.0.20",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.0.18 2.914.0 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 1.0.20 2.914.0 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -377,6 +377,9 @@ export type ImageGenerationProviderPreferencesOptions = {
377
377
  venice?: {
378
378
  [k: string]: any;
379
379
  } | undefined;
380
+ voyageai?: {
381
+ [k: string]: any;
382
+ } | undefined;
380
383
  wafer?: {
381
384
  [k: string]: any;
382
385
  } | undefined;
@@ -812,6 +815,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
812
815
  venice?: {
813
816
  [k: string]: any;
814
817
  } | undefined;
818
+ voyageai?: {
819
+ [k: string]: any;
820
+ } | undefined;
815
821
  wafer?: {
816
822
  [k: string]: any;
817
823
  } | undefined;
@@ -142,6 +142,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
142
142
  ubicloud: z.record(z.string(), z.any()).optional(),
143
143
  upstage: z.record(z.string(), z.any()).optional(),
144
144
  venice: z.record(z.string(), z.any()).optional(),
145
+ voyageai: z.record(z.string(), z.any()).optional(),
145
146
  wafer: z.record(z.string(), z.any()).optional(),
146
147
  wandb: z.record(z.string(), z.any()).optional(),
147
148
  wandbLegacy: z.record(z.string(), z.any()).optional(),
@@ -60,6 +60,7 @@ export declare const ProviderName: {
60
60
  readonly Modular: "Modular";
61
61
  readonly MoonshotAI: "Moonshot AI";
62
62
  readonly Morph: "Morph";
63
+ readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
63
64
  readonly NCompass: "NCompass";
64
65
  readonly Nebius: "Nebius";
65
66
  readonly NexAGI: "Nex AGI";
@@ -63,6 +63,7 @@ export const ProviderName = {
63
63
  Modular: "Modular",
64
64
  MoonshotAI: "Moonshot AI",
65
65
  Morph: "Morph",
66
+ VoyageAIByMongoDB: "VoyageAI by MongoDB",
66
67
  NCompass: "NCompass",
67
68
  Nebius: "Nebius",
68
69
  NexAGI: "Nex AGI",
@@ -372,6 +372,9 @@ export type ProviderOptions = {
372
372
  venice?: {
373
373
  [k: string]: any;
374
374
  } | undefined;
375
+ voyageai?: {
376
+ [k: string]: any;
377
+ } | undefined;
375
378
  wafer?: {
376
379
  [k: string]: any;
377
380
  } | undefined;
@@ -762,6 +765,9 @@ export type ProviderOptions$Outbound = {
762
765
  venice?: {
763
766
  [k: string]: any;
764
767
  } | undefined;
768
+ voyageai?: {
769
+ [k: string]: any;
770
+ } | undefined;
765
771
  wafer?: {
766
772
  [k: string]: any;
767
773
  } | undefined;
@@ -129,6 +129,7 @@ export const ProviderOptions$outboundSchema = z.object({
129
129
  ubicloud: z.record(z.string(), z.any()).optional(),
130
130
  upstage: z.record(z.string(), z.any()).optional(),
131
131
  venice: z.record(z.string(), z.any()).optional(),
132
+ voyageai: z.record(z.string(), z.any()).optional(),
132
133
  wafer: z.record(z.string(), z.any()).optional(),
133
134
  wandb: z.record(z.string(), z.any()).optional(),
134
135
  wandbLegacy: z.record(z.string(), z.any()).optional(),
@@ -93,6 +93,7 @@ export declare const ProviderResponseProviderName: {
93
93
  readonly Modular: "Modular";
94
94
  readonly MoonshotAI: "Moonshot AI";
95
95
  readonly Morph: "Morph";
96
+ readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
96
97
  readonly NCompass: "NCompass";
97
98
  readonly Nebius: "Nebius";
98
99
  readonly NexAGI: "Nex AGI";
@@ -97,6 +97,7 @@ export const ProviderResponseProviderName = {
97
97
  Modular: "Modular",
98
98
  MoonshotAI: "Moonshot AI",
99
99
  Morph: "Morph",
100
+ VoyageAIByMongoDB: "VoyageAI by MongoDB",
100
101
  NCompass: "NCompass",
101
102
  Nebius: "Nebius",
102
103
  NexAGI: "Nex AGI",
@@ -393,6 +393,9 @@ export type VideoGenerationRequestOptions = {
393
393
  venice?: {
394
394
  [k: string]: any;
395
395
  } | undefined;
396
+ voyageai?: {
397
+ [k: string]: any;
398
+ } | undefined;
396
399
  wafer?: {
397
400
  [k: string]: any;
398
401
  } | undefined;
@@ -853,6 +856,9 @@ export type VideoGenerationRequestOptions$Outbound = {
853
856
  venice?: {
854
857
  [k: string]: any;
855
858
  } | undefined;
859
+ voyageai?: {
860
+ [k: string]: any;
861
+ } | undefined;
856
862
  wafer?: {
857
863
  [k: string]: any;
858
864
  } | undefined;
@@ -159,6 +159,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
159
159
  ubicloud: z.record(z.string(), z.any()).optional(),
160
160
  upstage: z.record(z.string(), z.any()).optional(),
161
161
  venice: z.record(z.string(), z.any()).optional(),
162
+ voyageai: z.record(z.string(), z.any()).optional(),
162
163
  wafer: z.record(z.string(), z.any()).optional(),
163
164
  wandb: z.record(z.string(), z.any()).optional(),
164
165
  wandbLegacy: 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.0.18",
5
+ "version": "1.0.20",
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.0.18",
3
+ "version": "1.0.20",
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",
75
75
  "prepublishOnly": "npm run build",
76
- "prepare": "npm run build",
77
- "test": "vitest --run --project unit",
78
76
  "test:e2e": "vitest --run --project e2e",
77
+ "test:transit": "exit 0",
79
78
  "test:watch": "vitest --watch --project unit",
80
- "compile": "tsc",
79
+ "typecheck:transit": "exit 0",
81
80
  "postinstall": "node scripts/check-types.js || true",
82
- "test:transit": "exit 0",
83
81
  "typecheck": "tsc --noEmit",
84
- "typecheck:transit": "exit 0"
82
+ "compile": "tsc",
83
+ "prepare": "npm run build",
84
+ "test": "vitest --run --project unit"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {