@openrouter/sdk 1.2.115 → 1.2.117
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/workspacesDeleteBudget.js +3 -3
- package/esm/funcs/workspacesGetBudget.js +3 -3
- package/esm/funcs/workspacesListBudgets.js +2 -2
- package/esm/funcs/workspacesSetBudget.js +3 -3
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/anthropicthinkingblockbinding.d.ts +24 -0
- package/esm/models/anthropicthinkingblockbinding.js +13 -0
- package/esm/models/operations/deleteworkspacebudget.d.ts +2 -2
- package/esm/models/operations/deleteworkspacebudget.js +2 -1
- package/esm/models/operations/getworkspacebudget.d.ts +2 -2
- package/esm/models/operations/getworkspacebudget.js +2 -1
- package/esm/models/operations/listworkspacebudgets.d.ts +2 -2
- package/esm/models/operations/listworkspacebudgets.js +2 -1
- package/esm/models/operations/upsertworkspacebudget.d.ts +2 -2
- package/esm/models/operations/upsertworkspacebudget.js +2 -1
- package/esm/sdk/workspaces.d.ts +23 -23
- package/esm/sdk/workspaces.js +27 -27
- package/jsr.json +1 -1
- package/package.json +5 -5
|
@@ -30,16 +30,16 @@ async function $do(client, request, options) {
|
|
|
30
30
|
const payload = parsed.value;
|
|
31
31
|
const body = null;
|
|
32
32
|
const pathParams = {
|
|
33
|
-
|
|
33
|
+
interval: encodeSimple("interval", payload.interval, {
|
|
34
34
|
explode: false,
|
|
35
35
|
charEncoding: "percent",
|
|
36
36
|
}),
|
|
37
|
-
|
|
37
|
+
workspace_ref: encodeSimple("workspace_ref", payload.workspace_ref, {
|
|
38
38
|
explode: false,
|
|
39
39
|
charEncoding: "percent",
|
|
40
40
|
}),
|
|
41
41
|
};
|
|
42
|
-
const path = pathToFunc("/workspaces/{
|
|
42
|
+
const path = pathToFunc("/workspaces/{workspace_ref}/budgets/{interval}")(pathParams);
|
|
43
43
|
const headers = new Headers(compactMap({
|
|
44
44
|
Accept: "application/json",
|
|
45
45
|
"HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
|
|
@@ -30,16 +30,16 @@ async function $do(client, request, options) {
|
|
|
30
30
|
const payload = parsed.value;
|
|
31
31
|
const body = null;
|
|
32
32
|
const pathParams = {
|
|
33
|
-
|
|
33
|
+
interval: encodeSimple("interval", payload.interval, {
|
|
34
34
|
explode: false,
|
|
35
35
|
charEncoding: "percent",
|
|
36
36
|
}),
|
|
37
|
-
|
|
37
|
+
workspace_ref: encodeSimple("workspace_ref", payload.workspace_ref, {
|
|
38
38
|
explode: false,
|
|
39
39
|
charEncoding: "percent",
|
|
40
40
|
}),
|
|
41
41
|
};
|
|
42
|
-
const path = pathToFunc("/workspaces/{
|
|
42
|
+
const path = pathToFunc("/workspaces/{workspace_ref}/budgets/{interval}")(pathParams);
|
|
43
43
|
const headers = new Headers(compactMap({
|
|
44
44
|
Accept: "application/json",
|
|
45
45
|
"HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
|
|
@@ -30,12 +30,12 @@ async function $do(client, request, options) {
|
|
|
30
30
|
const payload = parsed.value;
|
|
31
31
|
const body = null;
|
|
32
32
|
const pathParams = {
|
|
33
|
-
|
|
33
|
+
workspace_ref: encodeSimple("workspace_ref", payload.workspace_ref, {
|
|
34
34
|
explode: false,
|
|
35
35
|
charEncoding: "percent",
|
|
36
36
|
}),
|
|
37
37
|
};
|
|
38
|
-
const path = pathToFunc("/workspaces/{
|
|
38
|
+
const path = pathToFunc("/workspaces/{workspace_ref}/budgets")(pathParams);
|
|
39
39
|
const headers = new Headers(compactMap({
|
|
40
40
|
Accept: "application/json",
|
|
41
41
|
"HTTP-Referer": encodeSimple("HTTP-Referer", payload["HTTP-Referer"] ?? client._options.httpReferer, { explode: false, charEncoding: "none" }),
|
|
@@ -32,16 +32,16 @@ async function $do(client, request, options) {
|
|
|
32
32
|
explode: true,
|
|
33
33
|
});
|
|
34
34
|
const pathParams = {
|
|
35
|
-
|
|
35
|
+
interval: encodeSimple("interval", payload.interval, {
|
|
36
36
|
explode: false,
|
|
37
37
|
charEncoding: "percent",
|
|
38
38
|
}),
|
|
39
|
-
|
|
39
|
+
workspace_ref: encodeSimple("workspace_ref", payload.workspace_ref, {
|
|
40
40
|
explode: false,
|
|
41
41
|
charEncoding: "percent",
|
|
42
42
|
}),
|
|
43
43
|
};
|
|
44
|
-
const path = pathToFunc("/workspaces/{
|
|
44
|
+
const path = pathToFunc("/workspaces/{workspace_ref}/budgets/{interval}")(pathParams);
|
|
45
45
|
const headers = new Headers(compactMap({
|
|
46
46
|
"Content-Type": "application/json",
|
|
47
47
|
Accept: "application/json",
|
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.2.
|
|
53
|
+
readonly sdkVersion: "1.2.117";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.117 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.
|
|
32
|
+
sdkVersion: "1.2.117",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.117 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,17 +1,41 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MismatchBehavior: {
|
|
9
|
+
readonly Error: "error";
|
|
10
|
+
readonly DropBlock: "drop_block";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
16
|
+
*/
|
|
17
|
+
export type MismatchBehavior = OpenEnum<typeof MismatchBehavior>;
|
|
3
18
|
export declare const PrefixMismatchBehavior: {
|
|
4
19
|
readonly Error: "error";
|
|
5
20
|
readonly DropBlock: "drop_block";
|
|
6
21
|
};
|
|
7
22
|
export type PrefixMismatchBehavior = OpenEnum<typeof PrefixMismatchBehavior>;
|
|
8
23
|
export type AnthropicThinkingBlockBinding = {
|
|
24
|
+
/**
|
|
25
|
+
* Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
28
|
+
*/
|
|
29
|
+
mismatchBehavior?: MismatchBehavior | null | undefined;
|
|
9
30
|
prefixMismatchBehavior?: PrefixMismatchBehavior | null | undefined;
|
|
10
31
|
};
|
|
11
32
|
/** @internal */
|
|
33
|
+
export declare const MismatchBehavior$outboundSchema: z.ZodType<string, MismatchBehavior>;
|
|
34
|
+
/** @internal */
|
|
12
35
|
export declare const PrefixMismatchBehavior$outboundSchema: z.ZodType<string, PrefixMismatchBehavior>;
|
|
13
36
|
/** @internal */
|
|
14
37
|
export type AnthropicThinkingBlockBinding$Outbound = {
|
|
38
|
+
mismatch_behavior?: string | null | undefined;
|
|
15
39
|
prefix_mismatch_behavior?: string | null | undefined;
|
|
16
40
|
};
|
|
17
41
|
/** @internal */
|
|
@@ -5,18 +5,31 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
12
|
+
*/
|
|
13
|
+
export const MismatchBehavior = {
|
|
14
|
+
Error: "error",
|
|
15
|
+
DropBlock: "drop_block",
|
|
16
|
+
};
|
|
8
17
|
export const PrefixMismatchBehavior = {
|
|
9
18
|
Error: "error",
|
|
10
19
|
DropBlock: "drop_block",
|
|
11
20
|
};
|
|
12
21
|
/** @internal */
|
|
22
|
+
export const MismatchBehavior$outboundSchema = openEnums.outboundSchema(MismatchBehavior);
|
|
23
|
+
/** @internal */
|
|
13
24
|
export const PrefixMismatchBehavior$outboundSchema = openEnums.outboundSchema(PrefixMismatchBehavior);
|
|
14
25
|
/** @internal */
|
|
15
26
|
export const AnthropicThinkingBlockBinding$outboundSchema = z.object({
|
|
27
|
+
mismatchBehavior: z.nullable(MismatchBehavior$outboundSchema).optional(),
|
|
16
28
|
prefixMismatchBehavior: z.nullable(PrefixMismatchBehavior$outboundSchema)
|
|
17
29
|
.optional(),
|
|
18
30
|
}).transform((v) => {
|
|
19
31
|
return remap$(v, {
|
|
32
|
+
mismatchBehavior: "mismatch_behavior",
|
|
20
33
|
prefixMismatchBehavior: "prefix_mismatch_behavior",
|
|
21
34
|
});
|
|
22
35
|
});
|
|
@@ -44,7 +44,7 @@ export type DeleteWorkspaceBudgetRequest = {
|
|
|
44
44
|
/**
|
|
45
45
|
* The workspace ID (UUID) or slug
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
workspaceRef: string;
|
|
48
48
|
/**
|
|
49
49
|
* Budget reset interval. Use "lifetime" for a one-time budget that never resets.
|
|
50
50
|
*/
|
|
@@ -55,7 +55,7 @@ export type DeleteWorkspaceBudgetRequest$Outbound = {
|
|
|
55
55
|
"HTTP-Referer"?: string | undefined;
|
|
56
56
|
appTitle?: string | undefined;
|
|
57
57
|
appCategories?: string | undefined;
|
|
58
|
-
|
|
58
|
+
workspace_ref: string;
|
|
59
59
|
interval: string;
|
|
60
60
|
};
|
|
61
61
|
/** @internal */
|
|
@@ -10,11 +10,12 @@ export const DeleteWorkspaceBudgetRequest$outboundSchema = z.object({
|
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
|
|
13
|
+
workspaceRef: z.string(),
|
|
14
14
|
interval: models.WorkspaceBudgetInterval$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
18
|
+
workspaceRef: "workspace_ref",
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
export function deleteWorkspaceBudgetRequestToJSON(deleteWorkspaceBudgetRequest) {
|
|
@@ -44,7 +44,7 @@ export type GetWorkspaceBudgetRequest = {
|
|
|
44
44
|
/**
|
|
45
45
|
* The workspace ID (UUID) or slug
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
workspaceRef: string;
|
|
48
48
|
/**
|
|
49
49
|
* Budget reset interval. Use "lifetime" for a one-time budget that never resets.
|
|
50
50
|
*/
|
|
@@ -55,7 +55,7 @@ export type GetWorkspaceBudgetRequest$Outbound = {
|
|
|
55
55
|
"HTTP-Referer"?: string | undefined;
|
|
56
56
|
appTitle?: string | undefined;
|
|
57
57
|
appCategories?: string | undefined;
|
|
58
|
-
|
|
58
|
+
workspace_ref: string;
|
|
59
59
|
interval: string;
|
|
60
60
|
};
|
|
61
61
|
/** @internal */
|
|
@@ -10,11 +10,12 @@ export const GetWorkspaceBudgetRequest$outboundSchema = z.object({
|
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
|
|
13
|
+
workspaceRef: z.string(),
|
|
14
14
|
interval: models.WorkspaceBudgetInterval$outboundSchema,
|
|
15
15
|
}).transform((v) => {
|
|
16
16
|
return remap$(v, {
|
|
17
17
|
httpReferer: "HTTP-Referer",
|
|
18
|
+
workspaceRef: "workspace_ref",
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
export function getWorkspaceBudgetRequestToJSON(getWorkspaceBudgetRequest) {
|
|
@@ -43,14 +43,14 @@ export type ListWorkspaceBudgetsRequest = {
|
|
|
43
43
|
/**
|
|
44
44
|
* The workspace ID (UUID) or slug
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
workspaceRef: string;
|
|
47
47
|
};
|
|
48
48
|
/** @internal */
|
|
49
49
|
export type ListWorkspaceBudgetsRequest$Outbound = {
|
|
50
50
|
"HTTP-Referer"?: string | undefined;
|
|
51
51
|
appTitle?: string | undefined;
|
|
52
52
|
appCategories?: string | undefined;
|
|
53
|
-
|
|
53
|
+
workspace_ref: string;
|
|
54
54
|
};
|
|
55
55
|
/** @internal */
|
|
56
56
|
export declare const ListWorkspaceBudgetsRequest$outboundSchema: z.ZodType<ListWorkspaceBudgetsRequest$Outbound, ListWorkspaceBudgetsRequest>;
|
|
@@ -9,10 +9,11 @@ export const ListWorkspaceBudgetsRequest$outboundSchema = z.object({
|
|
|
9
9
|
httpReferer: z.string().optional(),
|
|
10
10
|
appTitle: z.string().optional(),
|
|
11
11
|
appCategories: z.string().optional(),
|
|
12
|
-
|
|
12
|
+
workspaceRef: z.string(),
|
|
13
13
|
}).transform((v) => {
|
|
14
14
|
return remap$(v, {
|
|
15
15
|
httpReferer: "HTTP-Referer",
|
|
16
|
+
workspaceRef: "workspace_ref",
|
|
16
17
|
});
|
|
17
18
|
});
|
|
18
19
|
export function listWorkspaceBudgetsRequestToJSON(listWorkspaceBudgetsRequest) {
|
|
@@ -44,7 +44,7 @@ export type UpsertWorkspaceBudgetRequest = {
|
|
|
44
44
|
/**
|
|
45
45
|
* The workspace ID (UUID) or slug
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
workspaceRef: string;
|
|
48
48
|
/**
|
|
49
49
|
* Budget reset interval. Use "lifetime" for a one-time budget that never resets.
|
|
50
50
|
*/
|
|
@@ -56,7 +56,7 @@ export type UpsertWorkspaceBudgetRequest$Outbound = {
|
|
|
56
56
|
"HTTP-Referer"?: string | undefined;
|
|
57
57
|
appTitle?: string | undefined;
|
|
58
58
|
appCategories?: string | undefined;
|
|
59
|
-
|
|
59
|
+
workspace_ref: string;
|
|
60
60
|
interval: string;
|
|
61
61
|
UpsertWorkspaceBudgetRequest: models.UpsertWorkspaceBudgetRequest$Outbound;
|
|
62
62
|
};
|
|
@@ -10,12 +10,13 @@ export const UpsertWorkspaceBudgetRequest$outboundSchema = z.object({
|
|
|
10
10
|
httpReferer: z.string().optional(),
|
|
11
11
|
appTitle: z.string().optional(),
|
|
12
12
|
appCategories: z.string().optional(),
|
|
13
|
-
|
|
13
|
+
workspaceRef: z.string(),
|
|
14
14
|
interval: models.WorkspaceBudgetInterval$outboundSchema,
|
|
15
15
|
upsertWorkspaceBudgetRequest: models.UpsertWorkspaceBudgetRequest$outboundSchema,
|
|
16
16
|
}).transform((v) => {
|
|
17
17
|
return remap$(v, {
|
|
18
18
|
httpReferer: "HTTP-Referer",
|
|
19
|
+
workspaceRef: "workspace_ref",
|
|
19
20
|
upsertWorkspaceBudgetRequest: "UpsertWorkspaceBudgetRequest",
|
|
20
21
|
});
|
|
21
22
|
});
|
package/esm/sdk/workspaces.d.ts
CHANGED
|
@@ -41,55 +41,55 @@ export declare class Workspaces extends ClientSDK {
|
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.UpdateWorkspaceRequest, options?: RequestOptions): Promise<models.UpdateWorkspaceResponse>;
|
|
43
43
|
/**
|
|
44
|
-
* List workspace
|
|
44
|
+
* List workspace members
|
|
45
45
|
*
|
|
46
46
|
* @remarks
|
|
47
|
-
* List all
|
|
47
|
+
* List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
listMembers(request: operations.ListWorkspaceMembersRequest, options?: RequestOptions): Promise<PageIterator<operations.ListWorkspaceMembersResponse, {
|
|
50
|
+
offset: number;
|
|
51
|
+
}>>;
|
|
50
52
|
/**
|
|
51
|
-
*
|
|
53
|
+
* Bulk add members to a workspace
|
|
52
54
|
*
|
|
53
55
|
* @remarks
|
|
54
|
-
*
|
|
56
|
+
* Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
55
57
|
*/
|
|
56
|
-
|
|
58
|
+
bulkAddMembers(request: operations.BulkAddWorkspaceMembersRequest, options?: RequestOptions): Promise<models.BulkAddWorkspaceMembersResponse>;
|
|
57
59
|
/**
|
|
58
|
-
*
|
|
60
|
+
* Bulk remove members from a workspace
|
|
59
61
|
*
|
|
60
62
|
* @remarks
|
|
61
|
-
*
|
|
63
|
+
* Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
62
64
|
*/
|
|
63
|
-
|
|
65
|
+
bulkRemoveMembers(request: operations.BulkRemoveWorkspaceMembersRequest, options?: RequestOptions): Promise<models.BulkRemoveWorkspaceMembersResponse>;
|
|
64
66
|
/**
|
|
65
|
-
*
|
|
67
|
+
* List workspace budgets
|
|
66
68
|
*
|
|
67
69
|
* @remarks
|
|
68
|
-
*
|
|
70
|
+
* List all budgets configured for a workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
69
71
|
*/
|
|
70
|
-
|
|
72
|
+
listBudgets(request: operations.ListWorkspaceBudgetsRequest, options?: RequestOptions): Promise<models.ListWorkspaceBudgetsResponse>;
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
74
|
+
* Delete a workspace budget
|
|
73
75
|
*
|
|
74
76
|
* @remarks
|
|
75
|
-
*
|
|
77
|
+
* Remove the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
76
78
|
*/
|
|
77
|
-
|
|
78
|
-
offset: number;
|
|
79
|
-
}>>;
|
|
79
|
+
deleteBudget(request: operations.DeleteWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.DeleteWorkspaceBudgetResponse>;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Get a workspace budget
|
|
82
82
|
*
|
|
83
83
|
* @remarks
|
|
84
|
-
*
|
|
84
|
+
* Retrieve the budget for a given interval. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
getBudget(request: operations.GetWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.GetWorkspaceBudgetResponse>;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Create or update a workspace budget
|
|
89
89
|
*
|
|
90
90
|
* @remarks
|
|
91
|
-
*
|
|
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.
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
setBudget(request: operations.UpsertWorkspaceBudgetRequest, options?: RequestOptions): Promise<models.UpsertWorkspaceBudgetResponse>;
|
|
94
94
|
}
|
|
95
95
|
//# sourceMappingURL=workspaces.d.ts.map
|
package/esm/sdk/workspaces.js
CHANGED
|
@@ -63,6 +63,33 @@ export class Workspaces extends ClientSDK {
|
|
|
63
63
|
async update(request, options) {
|
|
64
64
|
return unwrapAsync(workspacesUpdate(this, request, options));
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* List workspace members
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
71
|
+
*/
|
|
72
|
+
async listMembers(request, options) {
|
|
73
|
+
return unwrapResultIterator(workspacesListMembers(this, request, options));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Bulk add members to a workspace
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
80
|
+
*/
|
|
81
|
+
async bulkAddMembers(request, options) {
|
|
82
|
+
return unwrapAsync(workspacesBulkAddMembers(this, request, options));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Bulk remove members from a workspace
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
89
|
+
*/
|
|
90
|
+
async bulkRemoveMembers(request, options) {
|
|
91
|
+
return unwrapAsync(workspacesBulkRemoveMembers(this, request, options));
|
|
92
|
+
}
|
|
66
93
|
/**
|
|
67
94
|
* List workspace budgets
|
|
68
95
|
*
|
|
@@ -99,32 +126,5 @@ export class Workspaces extends ClientSDK {
|
|
|
99
126
|
async setBudget(request, options) {
|
|
100
127
|
return unwrapAsync(workspacesSetBudget(this, request, options));
|
|
101
128
|
}
|
|
102
|
-
/**
|
|
103
|
-
* List workspace members
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* List all members of a workspace. Returns paginated results. For the default workspace, returns all organization members (implicit membership). [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
107
|
-
*/
|
|
108
|
-
async listMembers(request, options) {
|
|
109
|
-
return unwrapResultIterator(workspacesListMembers(this, request, options));
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Bulk add members to a workspace
|
|
113
|
-
*
|
|
114
|
-
* @remarks
|
|
115
|
-
* Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
116
|
-
*/
|
|
117
|
-
async bulkAddMembers(request, options) {
|
|
118
|
-
return unwrapAsync(workspacesBulkAddMembers(this, request, options));
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Bulk remove members from a workspace
|
|
122
|
-
*
|
|
123
|
-
* @remarks
|
|
124
|
-
* Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
125
|
-
*/
|
|
126
|
-
async bulkRemoveMembers(request, options) {
|
|
127
|
-
return unwrapAsync(workspacesBulkRemoveMembers(this, request, options));
|
|
128
|
-
}
|
|
129
129
|
}
|
|
130
130
|
//# sourceMappingURL=workspaces.js.map
|
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.117",
|
|
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,14 +73,14 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
-
"test": "vitest --run --project unit",
|
|
78
|
-
"test:watch": "vitest --watch --project unit",
|
|
79
|
-
"typecheck": "tsc --noEmit",
|
|
80
76
|
"compile": "tsc",
|
|
77
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
81
78
|
"prepare": "npm run build",
|
|
82
79
|
"test:e2e": "vitest --run --project e2e",
|
|
80
|
+
"typecheck": "tsc --noEmit",
|
|
81
|
+
"test": "vitest --run --project unit",
|
|
83
82
|
"test:transit": "exit 0",
|
|
83
|
+
"test:watch": "vitest --watch --project unit",
|
|
84
84
|
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|