@openrouter/sdk 1.2.41 → 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.41";
52
+ readonly sdkVersion: "1.2.42";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.2.41 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.41",
29
+ sdkVersion: "1.2.42",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.2.41 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
@@ -38,6 +38,9 @@ export type ImageGenerationProviderPreferencesOptions = {
38
38
  anthropic?: {
39
39
  [k: string]: any;
40
40
  } | undefined;
41
+ anthropic2?: {
42
+ [k: string]: any;
43
+ } | undefined;
41
44
  anyscale?: {
42
45
  [k: string]: any;
43
46
  } | undefined;
@@ -488,6 +491,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
488
491
  anthropic?: {
489
492
  [k: string]: any;
490
493
  } | undefined;
494
+ "anthropic/2"?: {
495
+ [k: string]: any;
496
+ } | undefined;
491
497
  anyscale?: {
492
498
  [k: string]: any;
493
499
  } | undefined;
@@ -29,6 +29,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
29
29
  amazonNova: z.record(z.string(), z.any()).optional(),
30
30
  ambient: z.record(z.string(), z.any()).optional(),
31
31
  anthropic: z.record(z.string(), z.any()).optional(),
32
+ anthropic2: z.record(z.string(), z.any()).optional(),
32
33
  anyscale: z.record(z.string(), z.any()).optional(),
33
34
  arceeAi: z.record(z.string(), z.any()).optional(),
34
35
  atlasCloud: z.record(z.string(), z.any()).optional(),
@@ -160,6 +161,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
160
161
  amazonBedrock: "amazon-bedrock",
161
162
  amazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
162
163
  amazonNova: "amazon-nova",
164
+ anthropic2: "anthropic/2",
163
165
  arceeAi: "arcee-ai",
164
166
  atlasCloud: "atlas-cloud",
165
167
  blackForestLabs: "black-forest-labs",
@@ -33,6 +33,9 @@ export type ProviderOptions = {
33
33
  anthropic?: {
34
34
  [k: string]: any;
35
35
  } | undefined;
36
+ anthropic2?: {
37
+ [k: string]: any;
38
+ } | undefined;
36
39
  anyscale?: {
37
40
  [k: string]: any;
38
41
  } | undefined;
@@ -438,6 +441,9 @@ export type ProviderOptions$Outbound = {
438
441
  anthropic?: {
439
442
  [k: string]: any;
440
443
  } | undefined;
444
+ "anthropic/2"?: {
445
+ [k: string]: any;
446
+ } | undefined;
441
447
  anyscale?: {
442
448
  [k: string]: any;
443
449
  } | undefined;
@@ -16,6 +16,7 @@ export const ProviderOptions$outboundSchema = z.object({
16
16
  amazonNova: z.record(z.string(), z.any()).optional(),
17
17
  ambient: z.record(z.string(), z.any()).optional(),
18
18
  anthropic: z.record(z.string(), z.any()).optional(),
19
+ anthropic2: z.record(z.string(), z.any()).optional(),
19
20
  anyscale: z.record(z.string(), z.any()).optional(),
20
21
  arceeAi: z.record(z.string(), z.any()).optional(),
21
22
  atlasCloud: z.record(z.string(), z.any()).optional(),
@@ -147,6 +148,7 @@ export const ProviderOptions$outboundSchema = z.object({
147
148
  amazonBedrock: "amazon-bedrock",
148
149
  amazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
149
150
  amazonNova: "amazon-nova",
151
+ anthropic2: "anthropic/2",
150
152
  arceeAi: "arcee-ai",
151
153
  atlasCloud: "atlas-cloud",
152
154
  blackForestLabs: "black-forest-labs",
@@ -54,6 +54,9 @@ export type VideoGenerationRequestOptions = {
54
54
  anthropic?: {
55
55
  [k: string]: any;
56
56
  } | undefined;
57
+ anthropic2?: {
58
+ [k: string]: any;
59
+ } | undefined;
57
60
  anyscale?: {
58
61
  [k: string]: any;
59
62
  } | undefined;
@@ -530,6 +533,9 @@ export type VideoGenerationRequestOptions$Outbound = {
530
533
  anthropic?: {
531
534
  [k: string]: any;
532
535
  } | undefined;
536
+ "anthropic/2"?: {
537
+ [k: string]: any;
538
+ } | undefined;
533
539
  anyscale?: {
534
540
  [k: string]: any;
535
541
  } | undefined;
@@ -47,6 +47,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
47
47
  amazonNova: z.record(z.string(), z.any()).optional(),
48
48
  ambient: z.record(z.string(), z.any()).optional(),
49
49
  anthropic: z.record(z.string(), z.any()).optional(),
50
+ anthropic2: z.record(z.string(), z.any()).optional(),
50
51
  anyscale: z.record(z.string(), z.any()).optional(),
51
52
  arceeAi: z.record(z.string(), z.any()).optional(),
52
53
  atlasCloud: z.record(z.string(), z.any()).optional(),
@@ -178,6 +179,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
178
179
  amazonBedrock: "amazon-bedrock",
179
180
  amazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
180
181
  amazonNova: "amazon-nova",
182
+ anthropic2: "anthropic/2",
181
183
  arceeAi: "arcee-ai",
182
184
  atlasCloud: "atlas-cloud",
183
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.41",
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.41",
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,14 +73,14 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "tsc",
75
75
  "prepublishOnly": "npm run build",
76
- "typecheck:transit": "exit 0",
77
76
  "compile": "tsc",
78
77
  "postinstall": "node scripts/check-types.js || true",
79
78
  "test": "vitest --run --project unit",
79
+ "test:e2e": "vitest --run --project e2e",
80
80
  "test:transit": "exit 0",
81
- "test:watch": "vitest --watch --project unit",
81
+ "typecheck:transit": "exit 0",
82
82
  "prepare": "npm run build",
83
- "test:e2e": "vitest --run --project e2e",
83
+ "test:watch": "vitest --watch --project unit",
84
84
  "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {},