@openrouter/sdk 1.1.23 → 1.1.24

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.1.23";
52
+ readonly sdkVersion: "1.1.24";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.1.23 2.914.0 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.1.24 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.23",
29
+ sdkVersion: "1.1.24",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.1.23 2.914.0 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 1.1.24 2.914.0 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -48,7 +48,7 @@ export type SpeechRequest = {
48
48
  /**
49
49
  * Voice identifier (provider-specific).
50
50
  */
51
- voice: string;
51
+ voice?: string | undefined;
52
52
  };
53
53
  /** @internal */
54
54
  export type SpeechRequestProvider$Outbound = {
@@ -66,7 +66,7 @@ export type SpeechRequest$Outbound = {
66
66
  provider?: SpeechRequestProvider$Outbound | undefined;
67
67
  response_format: string;
68
68
  speed?: number | undefined;
69
- voice: string;
69
+ voice?: string | undefined;
70
70
  };
71
71
  /** @internal */
72
72
  export declare const SpeechRequest$outboundSchema: z.ZodType<SpeechRequest$Outbound, SpeechRequest>;
@@ -29,7 +29,7 @@ export const SpeechRequest$outboundSchema = z.object({
29
29
  provider: z.lazy(() => SpeechRequestProvider$outboundSchema).optional(),
30
30
  responseFormat: SpeechRequestResponseFormat$outboundSchema.default("pcm"),
31
31
  speed: z.number().optional(),
32
- voice: z.string(),
32
+ voice: z.string().optional(),
33
33
  }).transform((v) => {
34
34
  return remap$(v, {
35
35
  responseFormat: "response_format",
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.1.23",
5
+ "version": "1.1.24",
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.23",
3
+ "version": "1.1.24",
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",
77
- "postinstall": "node scripts/check-types.js || true",
78
- "test:transit": "exit 0",
79
- "test:watch": "vitest --watch --project unit",
80
- "prepare": "npm run build",
81
- "test": "vitest --run --project unit",
82
76
  "test:e2e": "vitest --run --project e2e",
77
+ "test:watch": "vitest --watch --project unit",
83
78
  "typecheck": "tsc --noEmit",
84
- "typecheck:transit": "exit 0"
79
+ "typecheck:transit": "exit 0",
80
+ "postinstall": "node scripts/check-types.js || true",
81
+ "prepare": "npm run build",
82
+ "test:transit": "exit 0",
83
+ "compile": "tsc",
84
+ "test": "vitest --run --project unit"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {