@openrouter/sdk 1.5.121 → 1.5.123

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.
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Create or update a workspace budget
14
14
  *
15
15
  * @remarks
16
- * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
+ * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). Requires an organization-scoped management key with both budgets:view and budgets:update. The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
17
  */
18
18
  export declare function workspacesSetBudget(client: OpenRouterCore, request: operations.UpsertWorkspaceBudgetRequest, options?: RequestOptions): APIPromise<Result<models.UpsertWorkspaceBudgetResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=workspacesSetBudget.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Create or update a workspace budget
17
17
  *
18
18
  * @remarks
19
- * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
+ * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). Requires an organization-scoped management key with both budgets:view and budgets:update. The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
20
  */
21
21
  export function workspacesSetBudget(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -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.121";
52
+ readonly sdkVersion: "1.5.123";
53
53
  readonly genVersion: "2.960.8";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.5.121 2.960.8 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.123 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.121",
28
+ sdkVersion: "1.5.123",
29
29
  genVersion: "2.960.8",
30
- userAgent: "speakeasy-sdk/typescript 1.5.121 2.960.8 1.0.0 @openrouter/sdk",
30
+ userAgent: "speakeasy-sdk/typescript 1.5.123 2.960.8 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -18,6 +18,7 @@ export declare const Parameter: {
18
18
  readonly Seed: "seed";
19
19
  readonly ResponseFormat: "response_format";
20
20
  readonly StructuredOutputs: "structured_outputs";
21
+ readonly StrictToolSchemas: "strict_tool_schemas";
21
22
  readonly Stop: "stop";
22
23
  readonly Tools: "tools";
23
24
  readonly ToolChoice: "tool_choice";
@@ -20,6 +20,7 @@ export const Parameter = {
20
20
  Seed: "seed",
21
21
  ResponseFormat: "response_format",
22
22
  StructuredOutputs: "structured_outputs",
23
+ StrictToolSchemas: "strict_tool_schemas",
23
24
  Stop: "stop",
24
25
  Tools: "tools",
25
26
  ToolChoice: "tool_choice",
@@ -21,6 +21,7 @@ export declare const PrivateEndpointDeclaredParameter: {
21
21
  readonly Seed: "seed";
22
22
  readonly ResponseFormat: "response_format";
23
23
  readonly StructuredOutputs: "structured_outputs";
24
+ readonly StrictToolSchemas: "strict_tool_schemas";
24
25
  readonly Stop: "stop";
25
26
  readonly Tools: "tools";
26
27
  readonly ToolChoice: "tool_choice";
@@ -23,6 +23,7 @@ export const PrivateEndpointDeclaredParameter = {
23
23
  Seed: "seed",
24
24
  ResponseFormat: "response_format",
25
25
  StructuredOutputs: "structured_outputs",
26
+ StrictToolSchemas: "strict_tool_schemas",
26
27
  Stop: "stop",
27
28
  Tools: "tools",
28
29
  ToolChoice: "tool_choice",
@@ -33,6 +33,7 @@ export declare const PrivateEndpointSettingsExcludedParameter: {
33
33
  readonly Seed: "seed";
34
34
  readonly ResponseFormat: "response_format";
35
35
  readonly StructuredOutputs: "structured_outputs";
36
+ readonly StrictToolSchemas: "strict_tool_schemas";
36
37
  readonly Stop: "stop";
37
38
  readonly Tools: "tools";
38
39
  readonly ToolChoice: "tool_choice";
@@ -26,6 +26,7 @@ export const PrivateEndpointSettingsExcludedParameter = {
26
26
  Seed: "seed",
27
27
  ResponseFormat: "response_format",
28
28
  StructuredOutputs: "structured_outputs",
29
+ StrictToolSchemas: "strict_tool_schemas",
29
30
  Stop: "stop",
30
31
  Tools: "tools",
31
32
  ToolChoice: "tool_choice",
@@ -31,6 +31,7 @@ export declare const UpdatePrivateEndpointSettingsRequestExcludedParameter: {
31
31
  readonly Seed: "seed";
32
32
  readonly ResponseFormat: "response_format";
33
33
  readonly StructuredOutputs: "structured_outputs";
34
+ readonly StrictToolSchemas: "strict_tool_schemas";
34
35
  readonly Stop: "stop";
35
36
  readonly Tools: "tools";
36
37
  readonly ToolChoice: "tool_choice";
@@ -25,6 +25,7 @@ export const UpdatePrivateEndpointSettingsRequestExcludedParameter = {
25
25
  Seed: "seed",
26
26
  ResponseFormat: "response_format",
27
27
  StructuredOutputs: "structured_outputs",
28
+ StrictToolSchemas: "strict_tool_schemas",
28
29
  Stop: "stop",
29
30
  Tools: "tools",
30
31
  ToolChoice: "tool_choice",
@@ -88,7 +88,7 @@ export declare class Workspaces extends ClientSDK {
88
88
  * Create or update a workspace budget
89
89
  *
90
90
  * @remarks
91
- * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
91
+ * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). Requires an organization-scoped management key with both budgets:view and budgets:update. The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
92
92
  */
93
93
  setBudget(request: operations.UpsertWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.UpsertWorkspaceBudgetResponse>;
94
94
  }
@@ -120,7 +120,7 @@ export class Workspaces extends ClientSDK {
120
120
  * Create or update a workspace budget
121
121
  *
122
122
  * @remarks
123
- * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
123
+ * Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). Requires an organization-scoped management key with both budgets:view and budgets:update. The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
124
124
  */
125
125
  async setBudget(request, options) {
126
126
  return unwrapAsync(workspacesSetBudget(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.121",
5
+ "version": "1.5.123",
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.121",
3
+ "version": "1.5.123",
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
- "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
76
+ "typecheck": "tsc --noEmit",
77
77
  "postinstall": "node scripts/check-types.js || true",
78
- "prepare": "npm run build",
79
78
  "test": "vitest --run --project unit",
80
- "test:transit": "exit 0",
81
79
  "test:e2e": "vitest --run --project e2e",
80
+ "test:transit": "exit 0",
82
81
  "test:watch": "vitest --watch --project unit",
83
- "typecheck": "tsc --noEmit",
84
- "typecheck:transit": "exit 0"
82
+ "typecheck:transit": "exit 0",
83
+ "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
84
+ "prepare": "npm run build"
85
85
  },
86
86
  "peerDependencies": {
87
87