@openrouter/sdk 1.1.12 → 1.1.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: "1.1.12";
52
+ readonly sdkVersion: "1.1.14";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.1.12 2.914.0 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.1.14 2.914.0 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: "1.1.12",
29
+ sdkVersion: "1.1.14",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.1.12 2.914.0 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 1.1.14 2.914.0 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -24,7 +24,7 @@ export type ChatWebSearchShorthand = {
24
24
  */
25
25
  engine?: WebSearchEngineEnum | undefined;
26
26
  /**
27
- * Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, and xAI. Not supported with OpenAI (silently ignored). Cannot be used with allowed_domains.
27
+ * Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and xAI. Cannot be used with allowed_domains.
28
28
  */
29
29
  excludedDomains?: Array<string> | undefined;
30
30
  /**
@@ -12,7 +12,7 @@ export type WebSearchConfig = {
12
12
  */
13
13
  engine?: WebSearchEngineEnum | undefined;
14
14
  /**
15
- * Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, and xAI. Not supported with OpenAI (silently ignored). Cannot be used with allowed_domains.
15
+ * Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and xAI. Cannot be used with allowed_domains.
16
16
  */
17
17
  excludedDomains?: Array<string> | undefined;
18
18
  /**
@@ -3,6 +3,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
4
  export type WebSearchDomainFilter = {
5
5
  allowedDomains?: Array<string> | null | undefined;
6
+ blockedDomains?: Array<string> | null | undefined;
6
7
  excludedDomains?: Array<string> | null | undefined;
7
8
  };
8
9
  /** @internal */
@@ -10,6 +11,7 @@ export declare const WebSearchDomainFilter$inboundSchema: z.ZodType<WebSearchDom
10
11
  /** @internal */
11
12
  export type WebSearchDomainFilter$Outbound = {
12
13
  allowed_domains?: Array<string> | null | undefined;
14
+ blocked_domains?: Array<string> | null | undefined;
13
15
  excluded_domains?: Array<string> | null | undefined;
14
16
  };
15
17
  /** @internal */
@@ -8,20 +8,24 @@ import { safeParse } from "../lib/schemas.js";
8
8
  /** @internal */
9
9
  export const WebSearchDomainFilter$inboundSchema = z.object({
10
10
  allowed_domains: z.nullable(z.array(z.string())).optional(),
11
+ blocked_domains: z.nullable(z.array(z.string())).optional(),
11
12
  excluded_domains: z.nullable(z.array(z.string())).optional(),
12
13
  }).transform((v) => {
13
14
  return remap$(v, {
14
15
  "allowed_domains": "allowedDomains",
16
+ "blocked_domains": "blockedDomains",
15
17
  "excluded_domains": "excludedDomains",
16
18
  });
17
19
  });
18
20
  /** @internal */
19
21
  export const WebSearchDomainFilter$outboundSchema = z.object({
20
22
  allowedDomains: z.nullable(z.array(z.string())).optional(),
23
+ blockedDomains: z.nullable(z.array(z.string())).optional(),
21
24
  excludedDomains: z.nullable(z.array(z.string())).optional(),
22
25
  }).transform((v) => {
23
26
  return remap$(v, {
24
27
  allowedDomains: "allowed_domains",
28
+ blockedDomains: "blocked_domains",
25
29
  excludedDomains: "excluded_domains",
26
30
  });
27
31
  });
@@ -15,7 +15,7 @@ export type WebSearchServerToolConfig = {
15
15
  */
16
16
  engine?: WebSearchEngineEnum | undefined;
17
17
  /**
18
- * Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, and xAI. Not supported with OpenAI (silently ignored). Cannot be used with allowed_domains.
18
+ * Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and xAI. Cannot be used with allowed_domains.
19
19
  */
20
20
  excludedDomains?: Array<string> | undefined;
21
21
  /**
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.1.12",
5
+ "version": "1.1.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": "1.1.12",
3
+ "version": "1.1.14",
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": [
@@ -21,8 +21,8 @@
21
21
  "license": "Apache-2.0",
22
22
  "packageManager": "pnpm@10.22.0",
23
23
  "publishConfig": {
24
- "provenance": true,
25
- "access": "public"
24
+ "access": "public",
25
+ "provenance": true
26
26
  },
27
27
  "type": "module",
28
28
  "main": "./esm/index.js",
@@ -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",
76
+ "postinstall": "node scripts/check-types.js || true",
77
+ "test": "vitest --run --project unit",
79
78
  "typecheck": "tsc --noEmit",
80
79
  "compile": "tsc",
81
- "postinstall": "node scripts/check-types.js || true",
82
80
  "prepare": "npm run build",
83
- "test": "vitest --run --project unit",
84
- "test:e2e": "vitest --run --project e2e"
81
+ "test:e2e": "vitest --run --project e2e",
82
+ "test:transit": "exit 0",
83
+ "test:watch": "vitest --watch --project unit",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {