@openrouter/sdk 1.5.111 → 1.5.113

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.5.111";
52
+ readonly sdkVersion: "1.5.113";
53
53
  readonly genVersion: "2.960.8";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.5.111 2.960.8 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.113 2.960.8 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
25
25
  export const SDK_METADATA = {
26
26
  language: "typescript",
27
27
  openapiDocVersion: "1.0.0",
28
- sdkVersion: "1.5.111",
28
+ sdkVersion: "1.5.113",
29
29
  genVersion: "2.960.8",
30
- userAgent: "speakeasy-sdk/typescript 1.5.111 2.960.8 1.0.0 @openrouter/sdk",
30
+ userAgent: "speakeasy-sdk/typescript 1.5.113 2.960.8 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -8,7 +8,7 @@ export declare const ReasoningFormat: {
8
8
  readonly BedrockXaiResponsesV1: "bedrock-xai-responses-v1";
9
9
  readonly XaiResponsesV1: "xai-responses-v1";
10
10
  readonly MetaResponsesV1: "meta-responses-v1";
11
- readonly GoogleVertexResponsesV1: "google-vertex-responses-v1";
11
+ readonly GoogleVertexMetaResponsesV1: "google-vertex-meta-responses-v1";
12
12
  readonly OpenrouterStealthV1: "openrouter-stealth-v1";
13
13
  readonly AnthropicClaudeV1: "anthropic-claude-v1";
14
14
  readonly GoogleGeminiV1: "google-gemini-v1";
@@ -10,7 +10,7 @@ export const ReasoningFormat = {
10
10
  BedrockXaiResponsesV1: "bedrock-xai-responses-v1",
11
11
  XaiResponsesV1: "xai-responses-v1",
12
12
  MetaResponsesV1: "meta-responses-v1",
13
- GoogleVertexResponsesV1: "google-vertex-responses-v1",
13
+ GoogleVertexMetaResponsesV1: "google-vertex-meta-responses-v1",
14
14
  OpenrouterStealthV1: "openrouter-stealth-v1",
15
15
  AnthropicClaudeV1: "anthropic-claude-v1",
16
16
  GoogleGeminiV1: "google-gemini-v1",
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { ScalarFilterOperator } from "./scalarfilteroperator.js";
3
3
  /**
4
- * Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
4
+ * Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name; `endpoint` — endpoint UUID, returned as is (the same `endpoint_id` /activity reports). Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
5
5
  */
6
6
  export type ScalarFilterValue = string | number;
7
7
  export type ScalarFilter = {
@@ -14,7 +14,7 @@ export type ScalarFilter = {
14
14
  */
15
15
  operator: ScalarFilterOperator;
16
16
  /**
17
- * Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
17
+ * Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name; `endpoint` — endpoint UUID, returned as is (the same `endpoint_id` /activity reports). Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
18
18
  */
19
19
  value: string | number;
20
20
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4";
2
2
  import { SetFilterOperator } from "./setfilteroperator.js";
3
3
  /**
4
- * Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name. Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
4
+ * Several dimensions are enriched in responses (returned as human-readable labels), but filters must use the underlying ID: `api_key_id` — numeric ID (from generation metadata) or key hash (64-char hex from GET /api/v1/keys, resolved server-side); `user` — Clerk user ID (e.g. "user_abc123"), not the display name; `workspace` — workspace UUID, not the workspace name (filtering or grouping by the account default workspace also covers activity recorded before workspace resolution existed, which is attributed to that default workspace); `app` — numeric app ID, not the app title; `model` — permaslug (e.g. "openai/gpt-4o"), not the display name; `endpoint` — endpoint UUID, returned as is (the same `endpoint_id` /activity reports). Other dimensions (provider, origin, country, etc.) are not enriched and accept the value as returned.
5
5
  */
6
6
  export type SetFilterValue = string | number;
7
7
  export type SetFilter = {
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.111",
5
+ "version": "1.5.113",
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.5.111",
3
+ "version": "1.5.113",
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": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "test:e2e": "vitest --run --project e2e",
76
+ "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
77
+ "postinstall": "node scripts/check-types.js || true",
78
+ "prepare": "npm run build",
77
79
  "test:transit": "exit 0",
78
80
  "test:watch": "vitest --watch --project unit",
79
- "test": "vitest --run --project unit",
80
81
  "typecheck": "tsc --noEmit",
81
- "typecheck:transit": "exit 0",
82
- "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
83
- "postinstall": "node scripts/check-types.js || true",
84
- "prepare": "npm run build"
82
+ "test": "vitest --run --project unit",
83
+ "test:e2e": "vitest --run --project e2e",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {
87
87