@openrouter/sdk 0.12.0 → 0.12.1

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.12.0";
52
+ readonly sdkVersion: "0.12.1";
53
53
  readonly genVersion: "2.879.1";
54
- readonly userAgent: "speakeasy-sdk/typescript 0.12.0 2.879.1 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 0.12.1 2.879.1 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.12.0",
29
+ sdkVersion: "0.12.1",
30
30
  genVersion: "2.879.1",
31
- userAgent: "speakeasy-sdk/typescript 0.12.0 2.879.1 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 0.12.1 2.879.1 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -17,6 +17,10 @@ export type CreateGuardrailRequest = {
17
17
  * Whether to enforce zero data retention
18
18
  */
19
19
  enforceZdr?: boolean | null | undefined;
20
+ /**
21
+ * Array of model identifiers to exclude from routing (slug or canonical_slug accepted)
22
+ */
23
+ ignoredModels?: Array<string> | null | undefined;
20
24
  /**
21
25
  * List of provider IDs to exclude from routing
22
26
  */
@@ -40,6 +44,7 @@ export type CreateGuardrailRequest$Outbound = {
40
44
  allowed_providers?: Array<string> | null | undefined;
41
45
  description?: string | null | undefined;
42
46
  enforce_zdr?: boolean | null | undefined;
47
+ ignored_models?: Array<string> | null | undefined;
43
48
  ignored_providers?: Array<string> | null | undefined;
44
49
  limit_usd?: number | undefined;
45
50
  name: string;
@@ -11,6 +11,7 @@ export const CreateGuardrailRequest$outboundSchema = z.object({
11
11
  allowedProviders: z.nullable(z.array(z.string())).optional(),
12
12
  description: z.nullable(z.string()).optional(),
13
13
  enforceZdr: z.nullable(z.boolean()).optional(),
14
+ ignoredModels: z.nullable(z.array(z.string())).optional(),
14
15
  ignoredProviders: z.nullable(z.array(z.string())).optional(),
15
16
  limitUsd: z.number().optional(),
16
17
  name: z.string(),
@@ -20,6 +21,7 @@ export const CreateGuardrailRequest$outboundSchema = z.object({
20
21
  allowedModels: "allowed_models",
21
22
  allowedProviders: "allowed_providers",
22
23
  enforceZdr: "enforce_zdr",
24
+ ignoredModels: "ignored_models",
23
25
  ignoredProviders: "ignored_providers",
24
26
  limitUsd: "limit_usd",
25
27
  resetInterval: "reset_interval",
@@ -27,6 +27,10 @@ export type Guardrail = {
27
27
  * Unique identifier for the guardrail
28
28
  */
29
29
  id: string;
30
+ /**
31
+ * Array of model canonical_slugs to exclude from routing
32
+ */
33
+ ignoredModels?: Array<string> | null | undefined;
30
34
  /**
31
35
  * List of provider IDs to exclude from routing
32
36
  */
@@ -14,6 +14,7 @@ export const Guardrail$inboundSchema = z.object({
14
14
  description: z.nullable(z.string()).optional(),
15
15
  enforce_zdr: z.nullable(z.boolean()).optional(),
16
16
  id: z.string(),
17
+ ignored_models: z.nullable(z.array(z.string())).optional(),
17
18
  ignored_providers: z.nullable(z.array(z.string())).optional(),
18
19
  limit_usd: z.number().optional(),
19
20
  name: z.string(),
@@ -25,6 +26,7 @@ export const Guardrail$inboundSchema = z.object({
25
26
  "allowed_providers": "allowedProviders",
26
27
  "created_at": "createdAt",
27
28
  "enforce_zdr": "enforceZdr",
29
+ "ignored_models": "ignoredModels",
28
30
  "ignored_providers": "ignoredProviders",
29
31
  "limit_usd": "limitUsd",
30
32
  "reset_interval": "resetInterval",
@@ -17,6 +17,10 @@ export type UpdateGuardrailRequest = {
17
17
  * Whether to enforce zero data retention
18
18
  */
19
19
  enforceZdr?: boolean | null | undefined;
20
+ /**
21
+ * Array of model identifiers to exclude from routing (slug or canonical_slug accepted)
22
+ */
23
+ ignoredModels?: Array<string> | null | undefined;
20
24
  /**
21
25
  * List of provider IDs to exclude from routing
22
26
  */
@@ -40,6 +44,7 @@ export type UpdateGuardrailRequest$Outbound = {
40
44
  allowed_providers?: Array<string> | null | undefined;
41
45
  description?: string | null | undefined;
42
46
  enforce_zdr?: boolean | null | undefined;
47
+ ignored_models?: Array<string> | null | undefined;
43
48
  ignored_providers?: Array<string> | null | undefined;
44
49
  limit_usd?: number | undefined;
45
50
  name?: string | undefined;
@@ -11,6 +11,7 @@ export const UpdateGuardrailRequest$outboundSchema = z.object({
11
11
  allowedProviders: z.nullable(z.array(z.string())).optional(),
12
12
  description: z.nullable(z.string()).optional(),
13
13
  enforceZdr: z.nullable(z.boolean()).optional(),
14
+ ignoredModels: z.nullable(z.array(z.string())).optional(),
14
15
  ignoredProviders: z.nullable(z.array(z.string())).optional(),
15
16
  limitUsd: z.number().optional(),
16
17
  name: z.string().optional(),
@@ -20,6 +21,7 @@ export const UpdateGuardrailRequest$outboundSchema = z.object({
20
21
  allowedModels: "allowed_models",
21
22
  allowedProviders: "allowed_providers",
22
23
  enforceZdr: "enforce_zdr",
24
+ ignoredModels: "ignored_models",
23
25
  ignoredProviders: "ignored_providers",
24
26
  limitUsd: "limit_usd",
25
27
  resetInterval: "reset_interval",
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.12.0",
5
+ "version": "0.12.1",
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.12.0",
3
+ "version": "0.12.1",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
6
6
  "keywords": [
@@ -69,15 +69,15 @@
69
69
  "lint": "eslint --cache --max-warnings=0 src",
70
70
  "build": "tsc",
71
71
  "prepublishOnly": "npm run build",
72
+ "compile": "tsc",
72
73
  "postinstall": "node scripts/check-types.js || true",
73
74
  "prepare": "npm run build",
74
- "test:watch": "vitest --watch --project unit",
75
75
  "test": "vitest --run --project unit",
76
76
  "test:e2e": "vitest --run --project e2e",
77
77
  "test:transit": "exit 0",
78
+ "test:watch": "vitest --watch --project unit",
78
79
  "typecheck": "tsc --noEmit",
79
- "typecheck:transit": "exit 0",
80
- "compile": "tsc"
80
+ "typecheck:transit": "exit 0"
81
81
  },
82
82
  "peerDependencies": {},
83
83
  "devDependencies": {