@openrouter/sdk 1.5.91 → 1.5.92
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/workspacesBulkAddMembers.d.ts +1 -1
- package/esm/funcs/workspacesBulkAddMembers.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/bulkaddworkspacemembersrequest.d.ts +1 -1
- package/esm/models/bulkaddworkspacemembersresponse.d.ts +1 -1
- package/esm/models/createworkspacerequest.d.ts +1 -1
- package/esm/models/updateworkspacerequest.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 +5 -5
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Bulk add members to a workspace
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Add multiple organization members to a workspace.
|
|
16
|
+
* Add multiple organization members to a workspace. New members are assigned the workspace role that matches their organization role. Users who are already members of the workspace keep their current role and are not included in the response. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function workspacesBulkAddMembers(client: OpenRouterCore, request: operations.BulkAddWorkspaceMembersRequest, options?: RequestOptions): APIPromise<Result<models.BulkAddWorkspaceMembersResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=workspacesBulkAddMembers.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Bulk add members to a workspace
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Add multiple organization members to a workspace.
|
|
20
|
+
* Add multiple organization members to a workspace. New members are assigned the workspace role that matches their organization role. Users who are already members of the workspace keep their current role and are not included in the response. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
21
21
|
*/
|
|
22
22
|
export function workspacesBulkAddMembers(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -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.5.
|
|
53
|
+
readonly sdkVersion: "1.5.92";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.92 2.950.13 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.5.
|
|
32
|
+
sdkVersion: "1.5.92",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.92 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export type BulkAddWorkspaceMembersRequest = {
|
|
3
3
|
/**
|
|
4
|
-
* List of user IDs to add to the workspace.
|
|
4
|
+
* List of user IDs to add to the workspace. New members are assigned the workspace role that matches their organization role; users already in the workspace keep their current role.
|
|
5
5
|
*/
|
|
6
6
|
userIds: Array<string>;
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
4
4
|
import { WorkspaceMember } from "./workspacemember.js";
|
|
5
5
|
export type BulkAddWorkspaceMembersResponse = {
|
|
6
6
|
/**
|
|
7
|
-
* Number of workspace memberships created
|
|
7
|
+
* Number of workspace memberships created
|
|
8
8
|
*/
|
|
9
9
|
addedCount: number;
|
|
10
10
|
/**
|
|
@@ -46,7 +46,7 @@ export type CreateWorkspaceRequest = {
|
|
|
46
46
|
*/
|
|
47
47
|
ioLoggingSamplingRate?: number | undefined;
|
|
48
48
|
/**
|
|
49
|
-
* Whether data discount logging is enabled
|
|
49
|
+
* Whether data discount logging is enabled. Enabling it requires the account to allow workspace data-discount logging; otherwise the request returns 403.
|
|
50
50
|
*/
|
|
51
51
|
isDataDiscountLoggingEnabled?: boolean | undefined;
|
|
52
52
|
/**
|
|
@@ -46,7 +46,7 @@ export type UpdateWorkspaceRequest = {
|
|
|
46
46
|
*/
|
|
47
47
|
ioLoggingSamplingRate?: number | undefined;
|
|
48
48
|
/**
|
|
49
|
-
* Whether data discount logging is enabled
|
|
49
|
+
* Whether data discount logging is enabled. Enabling it requires the account to allow workspace data-discount logging; otherwise the request returns 403.
|
|
50
50
|
*/
|
|
51
51
|
isDataDiscountLoggingEnabled?: boolean | undefined;
|
|
52
52
|
/**
|
package/esm/sdk/workspaces.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare class Workspaces extends ClientSDK {
|
|
|
53
53
|
* Bulk add members to a workspace
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Add multiple organization members to a workspace.
|
|
56
|
+
* Add multiple organization members to a workspace. New members are assigned the workspace role that matches their organization role. Users who are already members of the workspace keep their current role and are not included in the response. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
57
57
|
*/
|
|
58
58
|
bulkAddMembers(request: operations.BulkAddWorkspaceMembersRequest, options?: RequestOptions): Promise<models.BulkAddWorkspaceMembersResponse>;
|
|
59
59
|
/**
|
package/esm/sdk/workspaces.js
CHANGED
|
@@ -76,7 +76,7 @@ export class Workspaces extends ClientSDK {
|
|
|
76
76
|
* Bulk add members to a workspace
|
|
77
77
|
*
|
|
78
78
|
* @remarks
|
|
79
|
-
* Add multiple organization members to a workspace.
|
|
79
|
+
* Add multiple organization members to a workspace. New members are assigned the workspace role that matches their organization role. Users who are already members of the workspace keep their current role and are not included in the response. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
80
80
|
*/
|
|
81
81
|
async bulkAddMembers(request, options) {
|
|
82
82
|
return unwrapAsync(workspacesBulkAddMembers(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.5.
|
|
3
|
+
"version": "1.5.92",
|
|
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": [
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
76
|
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
77
|
+
"test:e2e": "vitest --run --project e2e",
|
|
78
|
+
"typecheck": "tsc --noEmit",
|
|
79
|
+
"typecheck:transit": "exit 0",
|
|
77
80
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
81
|
"prepare": "npm run build",
|
|
79
82
|
"test": "vitest --run --project unit",
|
|
80
|
-
"test:e2e": "vitest --run --project e2e",
|
|
81
|
-
"typecheck": "tsc --noEmit",
|
|
82
83
|
"test:transit": "exit 0",
|
|
83
|
-
"test:watch": "vitest --watch --project unit"
|
|
84
|
-
"typecheck:transit": "exit 0"
|
|
84
|
+
"test:watch": "vitest --watch --project unit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|