@openrouter/sdk 1.1.2 → 1.1.7

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.
@@ -0,0 +1,11 @@
1
+ import { responsesSend } from "./responsesSend.js";
2
+ /**
3
+ * Create a response
4
+ *
5
+ * @deprecated Renamed to `responsesSend` now that the Responses API is GA. This
6
+ * alias is kept for the `beta.responses` deprecation window and will be removed
7
+ * on the sunset date (TBD). Import
8
+ * `@openrouter/sdk/funcs/responsesSend.js` instead.
9
+ */
10
+ export declare const betaResponsesSend: typeof responsesSend;
11
+ //# sourceMappingURL=betaResponsesSend.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { responsesSend } from "./responsesSend.js";
2
+ /**
3
+ * Create a response
4
+ *
5
+ * @deprecated Renamed to `responsesSend` now that the Responses API is GA. This
6
+ * alias is kept for the `beta.responses` deprecation window and will be removed
7
+ * on the sunset date (TBD). Import
8
+ * `@openrouter/sdk/funcs/responsesSend.js` instead.
9
+ */
10
+ export const betaResponsesSend = responsesSend;
11
+ //# sourceMappingURL=betaResponsesSend.js.map
@@ -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.1.2";
52
+ readonly sdkVersion: "1.1.7";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.1.2 2.914.0 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.1.7 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.1.2",
29
+ sdkVersion: "1.1.7",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.1.2 2.914.0 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 1.1.7 2.914.0 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -80,6 +80,9 @@ export type ImageGenerationProviderPreferencesOptions = {
80
80
  clarifai?: {
81
81
  [k: string]: any;
82
82
  } | undefined;
83
+ claudeOnAws?: {
84
+ [k: string]: any;
85
+ } | undefined;
83
86
  cloudflare?: {
84
87
  [k: string]: any;
85
88
  } | undefined;
@@ -518,6 +521,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
518
521
  clarifai?: {
519
522
  [k: string]: any;
520
523
  } | undefined;
524
+ "claude-on-aws"?: {
525
+ [k: string]: any;
526
+ } | undefined;
521
527
  cloudflare?: {
522
528
  [k: string]: any;
523
529
  } | undefined;
@@ -43,6 +43,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
43
43
  chutes: z.record(z.string(), z.any()).optional(),
44
44
  cirrascale: z.record(z.string(), z.any()).optional(),
45
45
  clarifai: z.record(z.string(), z.any()).optional(),
46
+ claudeOnAws: z.record(z.string(), z.any()).optional(),
46
47
  cloudflare: z.record(z.string(), z.any()).optional(),
47
48
  cohere: z.record(z.string(), z.any()).optional(),
48
49
  coreweave: z.record(z.string(), z.any()).optional(),
@@ -158,6 +159,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
158
159
  arceeAi: "arcee-ai",
159
160
  atlasCloud: "atlas-cloud",
160
161
  blackForestLabs: "black-forest-labs",
162
+ claudeOnAws: "claude-on-aws",
161
163
  fakeProvider: "fake-provider",
162
164
  fishAudio: "fish-audio",
163
165
  googleAiStudio: "google-ai-studio",
@@ -20,6 +20,7 @@ export declare const ProviderName: {
20
20
  readonly Cerebras: "Cerebras";
21
21
  readonly Chutes: "Chutes";
22
22
  readonly Cirrascale: "Cirrascale";
23
+ readonly ClaudePlatformOnAWS: "Claude Platform on AWS";
23
24
  readonly Clarifai: "Clarifai";
24
25
  readonly Cloudflare: "Cloudflare";
25
26
  readonly Cohere: "Cohere";
@@ -23,6 +23,7 @@ export const ProviderName = {
23
23
  Cerebras: "Cerebras",
24
24
  Chutes: "Chutes",
25
25
  Cirrascale: "Cirrascale",
26
+ ClaudePlatformOnAWS: "Claude Platform on AWS",
26
27
  Clarifai: "Clarifai",
27
28
  Cloudflare: "Cloudflare",
28
29
  Cohere: "Cohere",
@@ -75,6 +75,9 @@ export type ProviderOptions = {
75
75
  clarifai?: {
76
76
  [k: string]: any;
77
77
  } | undefined;
78
+ claudeOnAws?: {
79
+ [k: string]: any;
80
+ } | undefined;
78
81
  cloudflare?: {
79
82
  [k: string]: any;
80
83
  } | undefined;
@@ -468,6 +471,9 @@ export type ProviderOptions$Outbound = {
468
471
  clarifai?: {
469
472
  [k: string]: any;
470
473
  } | undefined;
474
+ "claude-on-aws"?: {
475
+ [k: string]: any;
476
+ } | undefined;
471
477
  cloudflare?: {
472
478
  [k: string]: any;
473
479
  } | undefined;
@@ -30,6 +30,7 @@ export const ProviderOptions$outboundSchema = z.object({
30
30
  chutes: z.record(z.string(), z.any()).optional(),
31
31
  cirrascale: z.record(z.string(), z.any()).optional(),
32
32
  clarifai: z.record(z.string(), z.any()).optional(),
33
+ claudeOnAws: z.record(z.string(), z.any()).optional(),
33
34
  cloudflare: z.record(z.string(), z.any()).optional(),
34
35
  cohere: z.record(z.string(), z.any()).optional(),
35
36
  coreweave: z.record(z.string(), z.any()).optional(),
@@ -145,6 +146,7 @@ export const ProviderOptions$outboundSchema = z.object({
145
146
  arceeAi: "arcee-ai",
146
147
  atlasCloud: "atlas-cloud",
147
148
  blackForestLabs: "black-forest-labs",
149
+ claudeOnAws: "claude-on-aws",
148
150
  fakeProvider: "fake-provider",
149
151
  fishAudio: "fish-audio",
150
152
  googleAiStudio: "google-ai-studio",
@@ -53,6 +53,7 @@ export declare const ProviderResponseProviderName: {
53
53
  readonly Cerebras: "Cerebras";
54
54
  readonly Chutes: "Chutes";
55
55
  readonly Cirrascale: "Cirrascale";
56
+ readonly ClaudePlatformOnAWS: "Claude Platform on AWS";
56
57
  readonly Clarifai: "Clarifai";
57
58
  readonly Cloudflare: "Cloudflare";
58
59
  readonly Cohere: "Cohere";
@@ -57,6 +57,7 @@ export const ProviderResponseProviderName = {
57
57
  Cerebras: "Cerebras",
58
58
  Chutes: "Chutes",
59
59
  Cirrascale: "Cirrascale",
60
+ ClaudePlatformOnAWS: "Claude Platform on AWS",
60
61
  Clarifai: "Clarifai",
61
62
  Cloudflare: "Cloudflare",
62
63
  Cohere: "Cohere",
@@ -96,6 +96,9 @@ export type VideoGenerationRequestOptions = {
96
96
  clarifai?: {
97
97
  [k: string]: any;
98
98
  } | undefined;
99
+ claudeOnAws?: {
100
+ [k: string]: any;
101
+ } | undefined;
99
102
  cloudflare?: {
100
103
  [k: string]: any;
101
104
  } | undefined;
@@ -559,6 +562,9 @@ export type VideoGenerationRequestOptions$Outbound = {
559
562
  clarifai?: {
560
563
  [k: string]: any;
561
564
  } | undefined;
565
+ "claude-on-aws"?: {
566
+ [k: string]: any;
567
+ } | undefined;
562
568
  cloudflare?: {
563
569
  [k: string]: any;
564
570
  } | undefined;
@@ -60,6 +60,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
60
60
  chutes: z.record(z.string(), z.any()).optional(),
61
61
  cirrascale: z.record(z.string(), z.any()).optional(),
62
62
  clarifai: z.record(z.string(), z.any()).optional(),
63
+ claudeOnAws: z.record(z.string(), z.any()).optional(),
63
64
  cloudflare: z.record(z.string(), z.any()).optional(),
64
65
  cohere: z.record(z.string(), z.any()).optional(),
65
66
  coreweave: z.record(z.string(), z.any()).optional(),
@@ -175,6 +176,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
175
176
  arceeAi: "arcee-ai",
176
177
  atlasCloud: "atlas-cloud",
177
178
  blackForestLabs: "black-forest-labs",
179
+ claudeOnAws: "claude-on-aws",
178
180
  fakeProvider: "fake-provider",
179
181
  fishAudio: "fish-audio",
180
182
  googleAiStudio: "google-ai-studio",
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.1.2",
5
+ "version": "1.1.7",
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.1.2",
3
+ "version": "1.1.7",
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
+ "compile": "tsc",
76
77
  "postinstall": "node scripts/check-types.js || true",
77
78
  "prepare": "npm run build",
78
- "test:e2e": "vitest --run --project e2e",
79
- "typecheck:transit": "exit 0",
80
- "compile": "tsc",
81
- "test": "vitest --run --project unit",
82
79
  "test:transit": "exit 0",
80
+ "typecheck": "tsc --noEmit",
81
+ "test": "vitest --run --project unit",
82
+ "test:e2e": "vitest --run --project e2e",
83
83
  "test:watch": "vitest --watch --project unit",
84
- "typecheck": "tsc --noEmit"
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {