@openrouter/sdk 0.13.34 → 0.13.35

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.13.34";
52
+ readonly sdkVersion: "0.13.35";
53
53
  readonly genVersion: "2.884.4";
54
- readonly userAgent: "speakeasy-sdk/typescript 0.13.34 2.884.4 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 0.13.35 2.884.4 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.13.34",
29
+ sdkVersion: "0.13.35",
30
30
  genVersion: "2.884.4",
31
- userAgent: "speakeasy-sdk/typescript 0.13.34 2.884.4 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 0.13.35 2.884.4 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -2,9 +2,14 @@ import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
4
  import { ReasoningEffort } from "./reasoningeffort.js";
5
+ import { ReasoningMode } from "./reasoningmode.js";
5
6
  import { ReasoningSummaryVerbosity } from "./reasoningsummaryverbosity.js";
6
7
  export type BaseReasoningConfig = {
7
8
  effort?: ReasoningEffort | null | undefined;
9
+ /**
10
+ * Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.
11
+ */
12
+ mode?: ReasoningMode | null | undefined;
8
13
  summary?: ReasoningSummaryVerbosity | null | undefined;
9
14
  };
10
15
  /** @internal */
@@ -5,10 +5,12 @@
5
5
  import * as z from "zod/v4";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import { ReasoningEffort$inboundSchema, } from "./reasoningeffort.js";
8
+ import { ReasoningMode$inboundSchema } from "./reasoningmode.js";
8
9
  import { ReasoningSummaryVerbosity$inboundSchema, } from "./reasoningsummaryverbosity.js";
9
10
  /** @internal */
10
11
  export const BaseReasoningConfig$inboundSchema = z.object({
11
12
  effort: z.nullable(ReasoningEffort$inboundSchema).optional(),
13
+ mode: z.nullable(ReasoningMode$inboundSchema).optional(),
12
14
  summary: z.nullable(ReasoningSummaryVerbosity$inboundSchema).optional(),
13
15
  });
14
16
  export function baseReasoningConfigFromJSON(jsonString) {
@@ -418,6 +418,7 @@ export * from "./reasoningdoneevent.js";
418
418
  export * from "./reasoningeffort.js";
419
419
  export * from "./reasoningformat.js";
420
420
  export * from "./reasoningitem.js";
421
+ export * from "./reasoningmode.js";
421
422
  export * from "./reasoningsummarypartaddedevent.js";
422
423
  export * from "./reasoningsummarypartdoneevent.js";
423
424
  export * from "./reasoningsummarytext.js";
@@ -422,6 +422,7 @@ export * from "./reasoningdoneevent.js";
422
422
  export * from "./reasoningeffort.js";
423
423
  export * from "./reasoningformat.js";
424
424
  export * from "./reasoningitem.js";
425
+ export * from "./reasoningmode.js";
425
426
  export * from "./reasoningsummarypartaddedevent.js";
426
427
  export * from "./reasoningsummarypartdoneevent.js";
427
428
  export * from "./reasoningsummarytext.js";
@@ -1,11 +1,16 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ReasoningEffort } from "./reasoningeffort.js";
3
+ import { ReasoningMode } from "./reasoningmode.js";
3
4
  import { ReasoningSummaryVerbosity } from "./reasoningsummaryverbosity.js";
4
5
  /**
5
6
  * Configuration for reasoning mode in the response
6
7
  */
7
8
  export type ReasoningConfig = {
8
9
  effort?: ReasoningEffort | null | undefined;
10
+ /**
11
+ * Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.
12
+ */
13
+ mode?: ReasoningMode | null | undefined;
9
14
  summary?: ReasoningSummaryVerbosity | null | undefined;
10
15
  enabled?: boolean | null | undefined;
11
16
  maxTokens?: number | null | undefined;
@@ -13,6 +18,7 @@ export type ReasoningConfig = {
13
18
  /** @internal */
14
19
  export type ReasoningConfig$Outbound = {
15
20
  effort?: string | null | undefined;
21
+ mode?: string | null | undefined;
16
22
  summary?: string | null | undefined;
17
23
  enabled?: boolean | null | undefined;
18
24
  max_tokens?: number | null | undefined;
@@ -5,10 +5,12 @@
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { ReasoningEffort$outboundSchema, } from "./reasoningeffort.js";
8
+ import { ReasoningMode$outboundSchema, } from "./reasoningmode.js";
8
9
  import { ReasoningSummaryVerbosity$outboundSchema, } from "./reasoningsummaryverbosity.js";
9
10
  /** @internal */
10
11
  export const ReasoningConfig$outboundSchema = z.object({
11
12
  effort: z.nullable(ReasoningEffort$outboundSchema).optional(),
13
+ mode: z.nullable(ReasoningMode$outboundSchema).optional(),
12
14
  summary: z.nullable(ReasoningSummaryVerbosity$outboundSchema).optional(),
13
15
  enabled: z.nullable(z.boolean()).optional(),
14
16
  maxTokens: z.nullable(z.int()).optional(),
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.
5
+ */
6
+ export declare const ReasoningMode: {
7
+ readonly Standard: "standard";
8
+ readonly Pro: "pro";
9
+ };
10
+ /**
11
+ * Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.
12
+ */
13
+ export type ReasoningMode = OpenEnum<typeof ReasoningMode>;
14
+ /** @internal */
15
+ export declare const ReasoningMode$inboundSchema: z.ZodType<ReasoningMode, unknown>;
16
+ /** @internal */
17
+ export declare const ReasoningMode$outboundSchema: z.ZodType<string, ReasoningMode>;
18
+ //# sourceMappingURL=reasoningmode.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0f9d520ad1ae
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Selects the reasoning mode. `standard` is the default; `pro` engages deeper reasoning on models that support it, billed at standard token rates. Only supported by OpenAI GPT-5.6 and newer.
8
+ */
9
+ export const ReasoningMode = {
10
+ Standard: "standard",
11
+ Pro: "pro",
12
+ };
13
+ /** @internal */
14
+ export const ReasoningMode$inboundSchema = openEnums.inboundSchema(ReasoningMode);
15
+ /** @internal */
16
+ export const ReasoningMode$outboundSchema = openEnums.outboundSchema(ReasoningMode);
17
+ //# sourceMappingURL=reasoningmode.js.map
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.13.34",
5
+ "version": "0.13.35",
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.13.34",
3
+ "version": "0.13.35",
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
- "test:transit": "exit 0",
77
- "test:watch": "vitest --watch --project unit",
78
- "typecheck:transit": "exit 0",
79
76
  "compile": "tsc",
80
- "postinstall": "node scripts/check-types.js || true",
81
77
  "prepare": "npm run build",
82
78
  "test": "vitest --run --project unit",
79
+ "typecheck": "tsc --noEmit",
80
+ "typecheck:transit": "exit 0",
81
+ "postinstall": "node scripts/check-types.js || true",
83
82
  "test:e2e": "vitest --run --project e2e",
84
- "typecheck": "tsc --noEmit"
83
+ "test:transit": "exit 0",
84
+ "test:watch": "vitest --watch --project unit"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {