@openrouter/sdk 1.2.73 → 1.2.74

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.
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  * @generated-id: 548699dffed1
4
4
  */
5
- import { encodeSimple } from "../lib/encodings.js";
5
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
6
6
  import { matchStatusCode } from "../lib/http.js";
7
7
  import * as M from "../lib/matchers.js";
8
8
  import { compactMap } from "../lib/primitives.js";
@@ -36,6 +36,9 @@ async function $do(client, request, options) {
36
36
  }),
37
37
  };
38
38
  const path = pathToFunc("/workspaces/{id}")(pathParams);
39
+ const query = encodeFormQuery({
40
+ "confirm_default_workspace_deletion": payload.confirm_default_workspace_deletion,
41
+ });
39
42
  const headers = new Headers(compactMap({
40
43
  Accept: "application/json",
41
44
  "HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
@@ -73,6 +76,7 @@ async function $do(client, request, options) {
73
76
  baseURL: options?.serverURL,
74
77
  path: path,
75
78
  headers: headers,
79
+ query: query,
76
80
  body: body,
77
81
  userAgent: client._options.userAgent,
78
82
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.2.73";
53
+ readonly sdkVersion: "1.2.74";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.73 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.74 2.914.0 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.2.73",
32
+ sdkVersion: "1.2.74",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.73 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.74 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -44,6 +44,10 @@ export type DeleteWorkspaceRequest = {
44
44
  * The workspace ID (UUID) or slug
45
45
  */
46
46
  id: string;
47
+ /**
48
+ * Required to delete the default workspace. 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
+ */
50
+ confirmDefaultWorkspaceDeletion?: boolean | undefined;
47
51
  };
48
52
  /** @internal */
49
53
  export type DeleteWorkspaceRequest$Outbound = {
@@ -51,6 +55,7 @@ export type DeleteWorkspaceRequest$Outbound = {
51
55
  appTitle?: string | undefined;
52
56
  appCategories?: string | undefined;
53
57
  id: string;
58
+ confirm_default_workspace_deletion?: boolean | undefined;
54
59
  };
55
60
  /** @internal */
56
61
  export declare const DeleteWorkspaceRequest$outboundSchema: z.ZodType<DeleteWorkspaceRequest$Outbound, DeleteWorkspaceRequest>;
@@ -10,9 +10,11 @@ export const DeleteWorkspaceRequest$outboundSchema = z.object({
10
10
  appTitle: z.string().optional(),
11
11
  appCategories: z.string().optional(),
12
12
  id: z.string(),
13
+ confirmDefaultWorkspaceDeletion: z.boolean().optional(),
13
14
  }).transform((v) => {
14
15
  return remap$(v, {
15
16
  httpReferer: "HTTP-Referer",
17
+ confirmDefaultWorkspaceDeletion: "confirm_default_workspace_deletion",
16
18
  });
17
19
  });
18
20
  export function deleteWorkspaceRequestToJSON(deleteWorkspaceRequest) {
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.73",
5
+ "version": "1.2.74",
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.2.73",
3
+ "version": "1.2.74",
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
- "compile": "tsc",
77
- "prepare": "npm run build",
78
76
  "test": "vitest --run --project unit",
77
+ "test:e2e": "vitest --run --project e2e",
78
+ "test:transit": "exit 0",
79
79
  "test:watch": "vitest --watch --project unit",
80
80
  "typecheck": "tsc --noEmit",
81
- "typecheck:transit": "exit 0",
81
+ "compile": "tsc",
82
82
  "postinstall": "node scripts/check-types.js || true",
83
- "test:e2e": "vitest --run --project e2e",
84
- "test:transit": "exit 0"
83
+ "prepare": "npm run build",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {