@openrouter/sdk 1.2.91 → 1.2.92

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.91";
53
+ readonly sdkVersion: "1.2.92";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.91 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.92 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.91",
32
+ sdkVersion: "1.2.92",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.91 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.92 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -2,6 +2,7 @@ import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  export declare const AnthropicSystemClearAt: {
4
4
  readonly NextUserMessage: "next_user_message";
5
+ readonly Never: "never";
5
6
  };
6
7
  export type AnthropicSystemClearAt = OpenEnum<typeof AnthropicSystemClearAt>;
7
8
  /** @internal */
@@ -5,6 +5,7 @@
5
5
  import * as openEnums from "../types/enums.js";
6
6
  export const AnthropicSystemClearAt = {
7
7
  NextUserMessage: "next_user_message",
8
+ Never: "never",
8
9
  };
9
10
  /** @internal */
10
11
  export const AnthropicSystemClearAt$outboundSchema = openEnums.outboundSchema(AnthropicSystemClearAt);
@@ -1,17 +1,18 @@
1
1
  import * as z from "zod/v4";
2
- import { ClosedEnum } from "../types/enums.js";
2
+ import { OpenEnum } from "../types/enums.js";
3
3
  export declare const PrefixMismatchBehavior: {
4
+ readonly Error: "error";
4
5
  readonly DropBlock: "drop_block";
5
6
  };
6
- export type PrefixMismatchBehavior = ClosedEnum<typeof PrefixMismatchBehavior>;
7
+ export type PrefixMismatchBehavior = OpenEnum<typeof PrefixMismatchBehavior>;
7
8
  export type AnthropicThinkingBlockBinding = {
8
- prefixMismatchBehavior: PrefixMismatchBehavior;
9
+ prefixMismatchBehavior?: PrefixMismatchBehavior | null | undefined;
9
10
  };
10
11
  /** @internal */
11
- export declare const PrefixMismatchBehavior$outboundSchema: z.ZodEnum<typeof PrefixMismatchBehavior>;
12
+ export declare const PrefixMismatchBehavior$outboundSchema: z.ZodType<string, PrefixMismatchBehavior>;
12
13
  /** @internal */
13
14
  export type AnthropicThinkingBlockBinding$Outbound = {
14
- prefix_mismatch_behavior: string;
15
+ prefix_mismatch_behavior?: string | null | undefined;
15
16
  };
16
17
  /** @internal */
17
18
  export declare const AnthropicThinkingBlockBinding$outboundSchema: z.ZodType<AnthropicThinkingBlockBinding$Outbound, AnthropicThinkingBlockBinding>;
@@ -4,14 +4,17 @@
4
4
  */
5
5
  import * as z from "zod/v4";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
+ import * as openEnums from "../types/enums.js";
7
8
  export const PrefixMismatchBehavior = {
9
+ Error: "error",
8
10
  DropBlock: "drop_block",
9
11
  };
10
12
  /** @internal */
11
- export const PrefixMismatchBehavior$outboundSchema = z.enum(PrefixMismatchBehavior);
13
+ export const PrefixMismatchBehavior$outboundSchema = openEnums.outboundSchema(PrefixMismatchBehavior);
12
14
  /** @internal */
13
15
  export const AnthropicThinkingBlockBinding$outboundSchema = z.object({
14
- prefixMismatchBehavior: PrefixMismatchBehavior$outboundSchema,
16
+ prefixMismatchBehavior: z.nullable(PrefixMismatchBehavior$outboundSchema)
17
+ .optional(),
15
18
  }).transform((v) => {
16
19
  return remap$(v, {
17
20
  prefixMismatchBehavior: "prefix_mismatch_behavior",
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.91",
5
+ "version": "1.2.92",
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.91",
3
+ "version": "1.2.92",
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
- "postinstall": "node scripts/check-types.js || true",
77
76
  "prepare": "npm run build",
78
77
  "test": "vitest --run --project unit",
78
+ "test:watch": "vitest --watch --project unit",
79
+ "typecheck:transit": "exit 0",
79
80
  "test:e2e": "vitest --run --project e2e",
80
81
  "test:transit": "exit 0",
81
82
  "typecheck": "tsc --noEmit",
82
- "typecheck:transit": "exit 0",
83
83
  "compile": "tsc",
84
- "test:watch": "vitest --watch --project unit"
84
+ "postinstall": "node scripts/check-types.js || true"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {