@openrouter/sdk 1.2.40 → 1.2.42

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.2.40";
52
+ readonly sdkVersion: "1.2.42";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.2.40 2.914.0 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.42 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.2.40",
29
+ sdkVersion: "1.2.42",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.2.40 2.914.0 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 1.2.42 2.914.0 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -26,6 +26,9 @@ export type ImageGenerationProviderPreferencesOptions = {
26
26
  amazonBedrock?: {
27
27
  [k: string]: any;
28
28
  } | undefined;
29
+ amazonBedrockClaudeOnAws?: {
30
+ [k: string]: any;
31
+ } | undefined;
29
32
  amazonNova?: {
30
33
  [k: string]: any;
31
34
  } | undefined;
@@ -35,6 +38,9 @@ export type ImageGenerationProviderPreferencesOptions = {
35
38
  anthropic?: {
36
39
  [k: string]: any;
37
40
  } | undefined;
41
+ anthropic2?: {
42
+ [k: string]: any;
43
+ } | undefined;
38
44
  anyscale?: {
39
45
  [k: string]: any;
40
46
  } | undefined;
@@ -473,6 +479,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
473
479
  "amazon-bedrock"?: {
474
480
  [k: string]: any;
475
481
  } | undefined;
482
+ "amazon-bedrock/claude-on-aws"?: {
483
+ [k: string]: any;
484
+ } | undefined;
476
485
  "amazon-nova"?: {
477
486
  [k: string]: any;
478
487
  } | undefined;
@@ -482,6 +491,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
482
491
  anthropic?: {
483
492
  [k: string]: any;
484
493
  } | undefined;
494
+ "anthropic/2"?: {
495
+ [k: string]: any;
496
+ } | undefined;
485
497
  anyscale?: {
486
498
  [k: string]: any;
487
499
  } | undefined;
@@ -25,9 +25,11 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
25
25
  akashml: z.record(z.string(), z.any()).optional(),
26
26
  alibaba: z.record(z.string(), z.any()).optional(),
27
27
  amazonBedrock: z.record(z.string(), z.any()).optional(),
28
+ amazonBedrockClaudeOnAws: z.record(z.string(), z.any()).optional(),
28
29
  amazonNova: z.record(z.string(), z.any()).optional(),
29
30
  ambient: z.record(z.string(), z.any()).optional(),
30
31
  anthropic: z.record(z.string(), z.any()).optional(),
32
+ anthropic2: z.record(z.string(), z.any()).optional(),
31
33
  anyscale: z.record(z.string(), z.any()).optional(),
32
34
  arceeAi: z.record(z.string(), z.any()).optional(),
33
35
  atlasCloud: z.record(z.string(), z.any()).optional(),
@@ -157,7 +159,9 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
157
159
  oneai: "01ai",
158
160
  aionLabs: "aion-labs",
159
161
  amazonBedrock: "amazon-bedrock",
162
+ amazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
160
163
  amazonNova: "amazon-nova",
164
+ anthropic2: "anthropic/2",
161
165
  arceeAi: "arcee-ai",
162
166
  atlasCloud: "atlas-cloud",
163
167
  blackForestLabs: "black-forest-labs",
@@ -21,6 +21,9 @@ export type ProviderOptions = {
21
21
  amazonBedrock?: {
22
22
  [k: string]: any;
23
23
  } | undefined;
24
+ amazonBedrockClaudeOnAws?: {
25
+ [k: string]: any;
26
+ } | undefined;
24
27
  amazonNova?: {
25
28
  [k: string]: any;
26
29
  } | undefined;
@@ -30,6 +33,9 @@ export type ProviderOptions = {
30
33
  anthropic?: {
31
34
  [k: string]: any;
32
35
  } | undefined;
36
+ anthropic2?: {
37
+ [k: string]: any;
38
+ } | undefined;
33
39
  anyscale?: {
34
40
  [k: string]: any;
35
41
  } | undefined;
@@ -423,6 +429,9 @@ export type ProviderOptions$Outbound = {
423
429
  "amazon-bedrock"?: {
424
430
  [k: string]: any;
425
431
  } | undefined;
432
+ "amazon-bedrock/claude-on-aws"?: {
433
+ [k: string]: any;
434
+ } | undefined;
426
435
  "amazon-nova"?: {
427
436
  [k: string]: any;
428
437
  } | undefined;
@@ -432,6 +441,9 @@ export type ProviderOptions$Outbound = {
432
441
  anthropic?: {
433
442
  [k: string]: any;
434
443
  } | undefined;
444
+ "anthropic/2"?: {
445
+ [k: string]: any;
446
+ } | undefined;
435
447
  anyscale?: {
436
448
  [k: string]: any;
437
449
  } | undefined;
@@ -12,9 +12,11 @@ export const ProviderOptions$outboundSchema = z.object({
12
12
  akashml: z.record(z.string(), z.any()).optional(),
13
13
  alibaba: z.record(z.string(), z.any()).optional(),
14
14
  amazonBedrock: z.record(z.string(), z.any()).optional(),
15
+ amazonBedrockClaudeOnAws: z.record(z.string(), z.any()).optional(),
15
16
  amazonNova: z.record(z.string(), z.any()).optional(),
16
17
  ambient: z.record(z.string(), z.any()).optional(),
17
18
  anthropic: z.record(z.string(), z.any()).optional(),
19
+ anthropic2: z.record(z.string(), z.any()).optional(),
18
20
  anyscale: z.record(z.string(), z.any()).optional(),
19
21
  arceeAi: z.record(z.string(), z.any()).optional(),
20
22
  atlasCloud: z.record(z.string(), z.any()).optional(),
@@ -144,7 +146,9 @@ export const ProviderOptions$outboundSchema = z.object({
144
146
  oneai: "01ai",
145
147
  aionLabs: "aion-labs",
146
148
  amazonBedrock: "amazon-bedrock",
149
+ amazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
147
150
  amazonNova: "amazon-nova",
151
+ anthropic2: "anthropic/2",
148
152
  arceeAi: "arcee-ai",
149
153
  atlasCloud: "atlas-cloud",
150
154
  blackForestLabs: "black-forest-labs",
@@ -42,6 +42,9 @@ export type VideoGenerationRequestOptions = {
42
42
  amazonBedrock?: {
43
43
  [k: string]: any;
44
44
  } | undefined;
45
+ amazonBedrockClaudeOnAws?: {
46
+ [k: string]: any;
47
+ } | undefined;
45
48
  amazonNova?: {
46
49
  [k: string]: any;
47
50
  } | undefined;
@@ -51,6 +54,9 @@ export type VideoGenerationRequestOptions = {
51
54
  anthropic?: {
52
55
  [k: string]: any;
53
56
  } | undefined;
57
+ anthropic2?: {
58
+ [k: string]: any;
59
+ } | undefined;
54
60
  anyscale?: {
55
61
  [k: string]: any;
56
62
  } | undefined;
@@ -515,6 +521,9 @@ export type VideoGenerationRequestOptions$Outbound = {
515
521
  "amazon-bedrock"?: {
516
522
  [k: string]: any;
517
523
  } | undefined;
524
+ "amazon-bedrock/claude-on-aws"?: {
525
+ [k: string]: any;
526
+ } | undefined;
518
527
  "amazon-nova"?: {
519
528
  [k: string]: any;
520
529
  } | undefined;
@@ -524,6 +533,9 @@ export type VideoGenerationRequestOptions$Outbound = {
524
533
  anthropic?: {
525
534
  [k: string]: any;
526
535
  } | undefined;
536
+ "anthropic/2"?: {
537
+ [k: string]: any;
538
+ } | undefined;
527
539
  anyscale?: {
528
540
  [k: string]: any;
529
541
  } | undefined;
@@ -43,9 +43,11 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
43
43
  akashml: z.record(z.string(), z.any()).optional(),
44
44
  alibaba: z.record(z.string(), z.any()).optional(),
45
45
  amazonBedrock: z.record(z.string(), z.any()).optional(),
46
+ amazonBedrockClaudeOnAws: z.record(z.string(), z.any()).optional(),
46
47
  amazonNova: z.record(z.string(), z.any()).optional(),
47
48
  ambient: z.record(z.string(), z.any()).optional(),
48
49
  anthropic: z.record(z.string(), z.any()).optional(),
50
+ anthropic2: z.record(z.string(), z.any()).optional(),
49
51
  anyscale: z.record(z.string(), z.any()).optional(),
50
52
  arceeAi: z.record(z.string(), z.any()).optional(),
51
53
  atlasCloud: z.record(z.string(), z.any()).optional(),
@@ -175,7 +177,9 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
175
177
  oneai: "01ai",
176
178
  aionLabs: "aion-labs",
177
179
  amazonBedrock: "amazon-bedrock",
180
+ amazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
178
181
  amazonNova: "amazon-nova",
182
+ anthropic2: "anthropic/2",
179
183
  arceeAi: "arcee-ai",
180
184
  atlasCloud: "atlas-cloud",
181
185
  blackForestLabs: "black-forest-labs",
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.40",
5
+ "version": "1.2.42",
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.40",
3
+ "version": "1.2.42",
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
- "typecheck": "tsc --noEmit",
77
- "typecheck:transit": "exit 0",
76
+ "compile": "tsc",
77
+ "postinstall": "node scripts/check-types.js || true",
78
78
  "test": "vitest --run --project unit",
79
79
  "test:e2e": "vitest --run --project e2e",
80
80
  "test:transit": "exit 0",
81
+ "typecheck:transit": "exit 0",
82
+ "prepare": "npm run build",
81
83
  "test:watch": "vitest --watch --project unit",
82
- "compile": "tsc",
83
- "postinstall": "node scripts/check-types.js || true",
84
- "prepare": "npm run build"
84
+ "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {