@openrouter/sdk 1.2.32 → 1.2.34
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.
- package/esm/funcs/workspacesDelete.d.ts +1 -1
- package/esm/funcs/workspacesDelete.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/chatwebsearchshorthand.d.ts +1 -1
- package/esm/models/legacywebsearchservertool.d.ts +1 -1
- package/esm/models/operations/deleteworkspace.d.ts +1 -1
- package/esm/models/preview20250311websearchservertool.d.ts +1 -1
- package/esm/models/previewwebsearchservertool.d.ts +1 -1
- package/esm/models/websearchconfig.d.ts +1 -1
- package/esm/models/websearchmode.d.ts +2 -2
- package/esm/models/websearchmode.js +1 -1
- package/esm/models/websearchplugin.d.ts +1 -1
- package/esm/models/websearchservertool.d.ts +1 -1
- package/esm/models/websearchservertoolconfig.d.ts +1 -1
- package/esm/sdk/workspaces.d.ts +1 -1
- package/esm/sdk/workspaces.js +1 -1
- package/jsr.json +1 -1
- package/package.json +7 -7
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Delete a workspace
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is
|
|
16
|
+
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function workspacesDelete(client: OpenRouterCore, request: operations.DeleteWorkspaceRequest, options?: RequestOptions): APIPromise<Result<models.DeleteWorkspaceResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=workspacesDelete.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Delete a workspace
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is
|
|
20
|
+
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
21
|
*/
|
|
22
22
|
export function workspacesDelete(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -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.2.
|
|
52
|
+
readonly sdkVersion: "1.2.34";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.34 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.2.
|
|
29
|
+
sdkVersion: "1.2.34",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.2.34 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -45,7 +45,7 @@ export type ChatWebSearchShorthand = {
|
|
|
45
45
|
*/
|
|
46
46
|
maxUses?: number | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
48
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
49
49
|
*/
|
|
50
50
|
mode?: WebSearchMode | undefined;
|
|
51
51
|
parameters?: WebSearchConfig | undefined;
|
|
@@ -29,7 +29,7 @@ export type LegacyWebSearchServerTool = {
|
|
|
29
29
|
*/
|
|
30
30
|
maxUses?: number | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
32
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
33
33
|
*/
|
|
34
34
|
mode?: WebSearchMode | undefined;
|
|
35
35
|
/**
|
|
@@ -45,7 +45,7 @@ export type DeleteWorkspaceRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
id: string;
|
|
47
47
|
/**
|
|
48
|
-
* Required to delete the default workspace (
|
|
48
|
+
* Required to delete the default workspace (not yet generally available; callers not enabled for it receive a 403 while the capability rolls out). Deleting it permanently disables the account’s unscoped inference API keys (management/provisioning keys are retained) and its budgets, guardrails, classifiers, and broadcast destinations. Ignored for non-default workspaces.
|
|
49
49
|
*/
|
|
50
50
|
confirmDefaultSettingsDeletion?: boolean | undefined;
|
|
51
51
|
};
|
|
@@ -29,7 +29,7 @@ export type Preview20250311WebSearchServerTool = {
|
|
|
29
29
|
*/
|
|
30
30
|
maxUses?: number | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
32
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
33
33
|
*/
|
|
34
34
|
mode?: WebSearchMode | undefined;
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ export type PreviewWebSearchServerTool = {
|
|
|
29
29
|
*/
|
|
30
30
|
maxUses?: number | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
32
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
33
33
|
*/
|
|
34
34
|
mode?: WebSearchMode | undefined;
|
|
35
35
|
/**
|
|
@@ -33,7 +33,7 @@ export type WebSearchConfig = {
|
|
|
33
33
|
*/
|
|
34
34
|
maxUses?: number | undefined;
|
|
35
35
|
/**
|
|
36
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
36
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
37
37
|
*/
|
|
38
38
|
mode?: WebSearchMode | undefined;
|
|
39
39
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
4
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
5
5
|
*/
|
|
6
6
|
export declare const WebSearchMode: {
|
|
7
7
|
readonly Instant: "instant";
|
|
@@ -15,7 +15,7 @@ export declare const WebSearchMode: {
|
|
|
15
15
|
readonly Advanced: "advanced";
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
18
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
19
19
|
*/
|
|
20
20
|
export type WebSearchMode = OpenEnum<typeof WebSearchMode>;
|
|
21
21
|
/** @internal */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as openEnums from "../types/enums.js";
|
|
6
6
|
/**
|
|
7
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
7
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
8
8
|
*/
|
|
9
9
|
export const WebSearchMode = {
|
|
10
10
|
Instant: "instant",
|
|
@@ -40,7 +40,7 @@ export type WebSearchPlugin = {
|
|
|
40
40
|
*/
|
|
41
41
|
maxUses?: number | undefined;
|
|
42
42
|
/**
|
|
43
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
43
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
44
44
|
*/
|
|
45
45
|
mode?: WebSearchMode | undefined;
|
|
46
46
|
searchPrompt?: string | undefined;
|
|
@@ -29,7 +29,7 @@ export type WebSearchServerTool = {
|
|
|
29
29
|
*/
|
|
30
30
|
maxUses?: number | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
32
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
33
33
|
*/
|
|
34
34
|
mode?: WebSearchMode | undefined;
|
|
35
35
|
/**
|
|
@@ -36,7 +36,7 @@ export type WebSearchServerToolConfig = {
|
|
|
36
36
|
*/
|
|
37
37
|
maxUses?: number | undefined;
|
|
38
38
|
/**
|
|
39
|
-
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
39
|
+
* Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.
|
|
40
40
|
*/
|
|
41
41
|
mode?: WebSearchMode | undefined;
|
|
42
42
|
/**
|
package/esm/sdk/workspaces.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class Workspaces extends ClientSDK {
|
|
|
23
23
|
* Delete a workspace
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is
|
|
26
|
+
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
27
|
*/
|
|
28
28
|
delete(request: operations.DeleteWorkspaceRequest, options?: RequestOptions): Promise<models.DeleteWorkspaceResponse>;
|
|
29
29
|
/**
|
package/esm/sdk/workspaces.js
CHANGED
|
@@ -40,7 +40,7 @@ export class Workspaces extends ClientSDK {
|
|
|
40
40
|
* Delete a workspace
|
|
41
41
|
*
|
|
42
42
|
* @remarks
|
|
43
|
-
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is
|
|
43
|
+
* Delete an existing workspace. Workspaces with active API keys cannot be deleted; remove the keys first. Deleting the default workspace is not yet generally available; callers not enabled for it receive a 403 while the capability rolls out. When permitted, it requires `confirm_default_settings_deletion=true` and additionally disables the account’s unscoped inference API keys; management (provisioning) keys are retained. Deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
44
44
|
*/
|
|
45
45
|
async delete(request, options) {
|
|
46
46
|
return unwrapAsync(workspacesDelete(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.34",
|
|
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
|
-
"typecheck": "tsc --noEmit",
|
|
77
|
-
"compile": "tsc",
|
|
78
|
-
"test:watch": "vitest --watch --project unit",
|
|
79
|
-
"typecheck:transit": "exit 0",
|
|
80
76
|
"postinstall": "node scripts/check-types.js || true",
|
|
81
77
|
"prepare": "npm run build",
|
|
82
|
-
"test": "vitest --run --project unit",
|
|
83
78
|
"test:e2e": "vitest --run --project e2e",
|
|
84
|
-
"
|
|
79
|
+
"typecheck:transit": "exit 0",
|
|
80
|
+
"test": "vitest --run --project unit",
|
|
81
|
+
"test:transit": "exit 0",
|
|
82
|
+
"test:watch": "vitest --watch --project unit",
|
|
83
|
+
"typecheck": "tsc --noEmit",
|
|
84
|
+
"compile": "tsc"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|