@openrouter/sdk 1.2.109 → 1.2.110

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.
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.2.109";
53
+ readonly sdkVersion: "1.2.110";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.109 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.110 2.914.0 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.2.109",
32
+ sdkVersion: "1.2.110",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.109 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.110 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -13,16 +13,11 @@ export type BashServerToolConfig = {
13
13
  * Execution environment for the bash server tool.
14
14
  */
15
15
  environment?: BashServerToolEnvironment | undefined;
16
- /**
17
- * How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours).
18
- */
19
- sleepAfterSeconds?: number | undefined;
20
16
  };
21
17
  /** @internal */
22
18
  export type BashServerToolConfig$Outbound = {
23
19
  engine?: string | undefined;
24
20
  environment?: BashServerToolEnvironment$Outbound | undefined;
25
- sleep_after_seconds?: number | undefined;
26
21
  };
27
22
  /** @internal */
28
23
  export declare const BashServerToolConfig$outboundSchema: z.ZodType<BashServerToolConfig$Outbound, BashServerToolConfig>;
@@ -3,18 +3,12 @@
3
3
  * @generated-id: 77c2f874ae9c
4
4
  */
5
5
  import * as z from "zod/v4";
6
- import { remap as remap$ } from "../lib/primitives.js";
7
6
  import { BashServerToolEngine$outboundSchema, } from "./bashservertoolengine.js";
8
7
  import { BashServerToolEnvironment$outboundSchema, } from "./bashservertoolenvironment.js";
9
8
  /** @internal */
10
9
  export const BashServerToolConfig$outboundSchema = z.object({
11
10
  engine: BashServerToolEngine$outboundSchema.optional(),
12
11
  environment: BashServerToolEnvironment$outboundSchema.optional(),
13
- sleepAfterSeconds: z.int().optional(),
14
- }).transform((v) => {
15
- return remap$(v, {
16
- sleepAfterSeconds: "sleep_after_seconds",
17
- });
18
12
  });
19
13
  export function bashServerToolConfigToJSON(bashServerToolConfig) {
20
14
  return JSON.stringify(BashServerToolConfig$outboundSchema.parse(bashServerToolConfig));
@@ -13,16 +13,11 @@ export type ShellServerToolConfig = {
13
13
  * Server-side execution environment for the shell tool. Only container-backed environments are supported; "local" shells are not.
14
14
  */
15
15
  environment?: ShellServerToolEnvironment | undefined;
16
- /**
17
- * How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours).
18
- */
19
- sleepAfterSeconds?: number | undefined;
20
16
  };
21
17
  /** @internal */
22
18
  export type ShellServerToolConfig$Outbound = {
23
19
  engine?: string | undefined;
24
20
  environment?: ShellServerToolEnvironment$Outbound | undefined;
25
- sleep_after_seconds?: number | undefined;
26
21
  };
27
22
  /** @internal */
28
23
  export declare const ShellServerToolConfig$outboundSchema: z.ZodType<ShellServerToolConfig$Outbound, ShellServerToolConfig>;
@@ -3,18 +3,12 @@
3
3
  * @generated-id: c6c92c223699
4
4
  */
5
5
  import * as z from "zod/v4";
6
- import { remap as remap$ } from "../lib/primitives.js";
7
6
  import { ShellServerToolEngine$outboundSchema, } from "./shellservertoolengine.js";
8
7
  import { ShellServerToolEnvironment$outboundSchema, } from "./shellservertoolenvironment.js";
9
8
  /** @internal */
10
9
  export const ShellServerToolConfig$outboundSchema = z.object({
11
10
  engine: ShellServerToolEngine$outboundSchema.optional(),
12
11
  environment: ShellServerToolEnvironment$outboundSchema.optional(),
13
- sleepAfterSeconds: z.int().optional(),
14
- }).transform((v) => {
15
- return remap$(v, {
16
- sleepAfterSeconds: "sleep_after_seconds",
17
- });
18
12
  });
19
13
  export function shellServerToolConfigToJSON(shellServerToolConfig) {
20
14
  return JSON.stringify(ShellServerToolConfig$outboundSchema.parse(shellServerToolConfig));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.109",
5
+ "version": "1.2.110",
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.109",
3
+ "version": "1.2.110",
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
+ "postinstall": "node scripts/check-types.js || true",
76
77
  "prepare": "npm run build",
77
78
  "test": "vitest --run --project unit",
79
+ "test:e2e": "vitest --run --project e2e",
80
+ "test:transit": "exit 0",
78
81
  "typecheck": "tsc --noEmit",
79
82
  "typecheck:transit": "exit 0",
80
83
  "compile": "tsc",
81
- "postinstall": "node scripts/check-types.js || true",
82
- "test:e2e": "vitest --run --project e2e",
83
- "test:transit": "exit 0",
84
84
  "test:watch": "vitest --watch --project unit"
85
85
  },
86
86
  "peerDependencies": {},