@openrouter/sdk 0.12.13 → 0.12.14

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: "0.12.13";
52
+ readonly sdkVersion: "0.12.14";
53
53
  readonly genVersion: "2.879.1";
54
- readonly userAgent: "speakeasy-sdk/typescript 0.12.13 2.879.1 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 0.12.14 2.879.1 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: "0.12.13",
29
+ sdkVersion: "0.12.14",
30
30
  genVersion: "2.879.1",
31
- userAgent: "speakeasy-sdk/typescript 0.12.13 2.879.1 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 0.12.14 2.879.1 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -5,7 +5,7 @@ import { ImageGenerationServerToolConfigUnion } from "./imagegenerationservertoo
5
5
  */
6
6
  export type ImageGenerationServerToolConfig = {
7
7
  /**
8
- * Which image generation model to use (e.g. "openai/gpt-image-1"). Defaults to "openai/gpt-image-1".
8
+ * Which image generation model to use (e.g. "openai/gpt-5-image"). Defaults to "openai/gpt-5-image".
9
9
  */
10
10
  model?: string | undefined;
11
11
  additionalProperties?: {
@@ -9,6 +9,10 @@ export type OutputImageGenerationServerToolItem = {
9
9
  id?: string | undefined;
10
10
  imageB64?: string | undefined;
11
11
  imageUrl?: string | undefined;
12
+ /**
13
+ * The generated image as a base64-encoded string or URL, matching OpenAI image_generation_call format
14
+ */
15
+ result?: string | null | undefined;
12
16
  revisedPrompt?: string | undefined;
13
17
  status: ToolCallStatus;
14
18
  type: "openrouter:image_generation";
@@ -10,6 +10,7 @@ export const OutputImageGenerationServerToolItem$inboundSchema = z.object({
10
10
  id: z.string().optional(),
11
11
  imageB64: z.string().optional(),
12
12
  imageUrl: z.string().optional(),
13
+ result: z.nullable(z.string()).optional(),
13
14
  revisedPrompt: z.string().optional(),
14
15
  status: ToolCallStatus$inboundSchema,
15
16
  type: z.literal("openrouter:image_generation"),
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.12.13",
5
+ "version": "0.12.14",
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": "0.12.13",
3
+ "version": "0.12.14",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
6
6
  "keywords": [
@@ -69,15 +69,15 @@
69
69
  "lint": "eslint --cache --max-warnings=0 src",
70
70
  "build": "tsc",
71
71
  "prepublishOnly": "npm run build",
72
+ "postinstall": "node scripts/check-types.js || true",
72
73
  "test": "vitest --run --project unit",
73
74
  "test:e2e": "vitest --run --project e2e",
75
+ "prepare": "npm run build",
74
76
  "test:transit": "exit 0",
75
- "typecheck:transit": "exit 0",
76
- "postinstall": "node scripts/check-types.js || true",
77
77
  "test:watch": "vitest --watch --project unit",
78
78
  "typecheck": "tsc --noEmit",
79
- "compile": "tsc",
80
- "prepare": "npm run build"
79
+ "typecheck:transit": "exit 0",
80
+ "compile": "tsc"
81
81
  },
82
82
  "peerDependencies": {},
83
83
  "devDependencies": {