@openrouter/sdk 0.12.16 → 0.12.17
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/generationsGetGeneration.d.ts +2 -1
- package/esm/funcs/generationsGetGeneration.js +2 -1
- package/esm/funcs/generationsListGenerationContent.d.ts +16 -0
- package/esm/funcs/generationsListGenerationContent.js +108 -0
- package/esm/funcs/workspacesBulkAddMembers.d.ts +19 -0
- package/esm/funcs/workspacesBulkAddMembers.js +105 -0
- package/esm/funcs/workspacesBulkRemoveMembers.d.ts +19 -0
- package/esm/funcs/workspacesBulkRemoveMembers.js +105 -0
- package/esm/funcs/workspacesCreate.d.ts +19 -0
- package/esm/funcs/workspacesCreate.js +99 -0
- package/esm/funcs/workspacesDelete.d.ts +19 -0
- package/esm/funcs/workspacesDelete.js +102 -0
- package/esm/funcs/workspacesGet.d.ts +19 -0
- package/esm/funcs/workspacesGet.js +102 -0
- package/esm/funcs/workspacesList.d.ts +21 -0
- package/esm/funcs/workspacesList.js +133 -0
- package/esm/funcs/workspacesUpdate.d.ts +19 -0
- package/esm/funcs/workspacesUpdate.js +105 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/bulkaddworkspacemembersrequest.d.ts +15 -0
- package/esm/models/bulkaddworkspacemembersrequest.js +18 -0
- package/esm/models/bulkaddworkspacemembersresponse.d.ts +18 -0
- package/esm/models/bulkaddworkspacemembersresponse.js +21 -0
- package/esm/models/bulkremoveworkspacemembersrequest.d.ts +15 -0
- package/esm/models/bulkremoveworkspacemembersrequest.js +18 -0
- package/esm/models/bulkremoveworkspacemembersresponse.d.ts +13 -0
- package/esm/models/bulkremoveworkspacemembersresponse.js +19 -0
- package/esm/models/createworkspacerequest.d.ts +55 -0
- package/esm/models/createworkspacerequest.js +31 -0
- package/esm/models/createworkspaceresponse.d.ts +11 -0
- package/esm/models/createworkspaceresponse.js +15 -0
- package/esm/models/deleteworkspaceresponse.d.ts +13 -0
- package/esm/models/deleteworkspaceresponse.js +14 -0
- package/esm/models/generationcontentdata.d.ts +55 -0
- package/esm/models/generationcontentdata.js +45 -0
- package/esm/models/generationcontentresponse.d.ts +17 -0
- package/esm/models/generationcontentresponse.js +15 -0
- package/esm/models/generationresponse.d.ts +198 -0
- package/esm/models/generationresponse.js +109 -0
- package/esm/models/getworkspaceresponse.d.ts +11 -0
- package/esm/models/getworkspaceresponse.js +15 -0
- package/esm/models/index.d.ts +16 -0
- package/esm/models/index.js +16 -0
- package/esm/models/listworkspacesresponse.d.ts +18 -0
- package/esm/models/listworkspacesresponse.js +21 -0
- package/esm/models/modelscountresponse.d.ts +4 -4
- package/esm/models/modelscountresponse.js +4 -4
- package/esm/models/operations/bulkaddworkspacemembers.d.ts +61 -0
- package/esm/models/operations/bulkaddworkspacemembers.js +24 -0
- package/esm/models/operations/bulkremoveworkspacemembers.d.ts +61 -0
- package/esm/models/operations/bulkremoveworkspacemembers.js +24 -0
- package/esm/models/operations/createworkspace.d.ts +56 -0
- package/esm/models/operations/createworkspace.js +23 -0
- package/esm/models/operations/deleteworkspace.d.ts +58 -0
- package/esm/models/operations/deleteworkspace.js +21 -0
- package/esm/models/operations/getgeneration.d.ts +0 -196
- package/esm/models/operations/getgeneration.js +0 -102
- package/esm/models/operations/getworkspace.d.ts +58 -0
- package/esm/models/operations/getworkspace.js +21 -0
- package/esm/models/operations/index.d.ts +8 -0
- package/esm/models/operations/index.js +8 -0
- package/esm/models/operations/listgenerationcontent.d.ts +58 -0
- package/esm/models/operations/listgenerationcontent.js +21 -0
- package/esm/models/operations/listworkspaces.d.ts +72 -0
- package/esm/models/operations/listworkspaces.js +35 -0
- package/esm/models/operations/updateworkspace.d.ts +61 -0
- package/esm/models/operations/updateworkspace.js +24 -0
- package/esm/models/updateworkspacerequest.d.ts +55 -0
- package/esm/models/updateworkspacerequest.js +31 -0
- package/esm/models/updateworkspaceresponse.d.ts +11 -0
- package/esm/models/updateworkspaceresponse.js +15 -0
- package/esm/models/workspace.d.ts +61 -0
- package/esm/models/workspace.js +39 -0
- package/esm/models/workspacemember.d.ts +43 -0
- package/esm/models/workspacemember.js +35 -0
- package/esm/sdk/generations.d.ts +6 -1
- package/esm/sdk/generations.js +7 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/workspaces.d.ts +58 -0
- package/esm/sdk/workspaces.js +80 -0
- package/jsr.json +1 -1
- package/package.json +6 -6
package/esm/models/index.d.ts
CHANGED
|
@@ -9,10 +9,14 @@ export * from "./badgatewayresponseerrordata.js";
|
|
|
9
9
|
export * from "./badrequestresponseerrordata.js";
|
|
10
10
|
export * from "./baseinputsunion.js";
|
|
11
11
|
export * from "./basereasoningconfig.js";
|
|
12
|
+
export * from "./bulkaddworkspacemembersrequest.js";
|
|
13
|
+
export * from "./bulkaddworkspacemembersresponse.js";
|
|
12
14
|
export * from "./bulkassignkeysrequest.js";
|
|
13
15
|
export * from "./bulkassignkeysresponse.js";
|
|
14
16
|
export * from "./bulkassignmembersrequest.js";
|
|
15
17
|
export * from "./bulkassignmembersresponse.js";
|
|
18
|
+
export * from "./bulkremoveworkspacemembersrequest.js";
|
|
19
|
+
export * from "./bulkremoveworkspacemembersresponse.js";
|
|
16
20
|
export * from "./bulkunassignkeysrequest.js";
|
|
17
21
|
export * from "./bulkunassignkeysresponse.js";
|
|
18
22
|
export * from "./bulkunassignmembersrequest.js";
|
|
@@ -70,11 +74,14 @@ export * from "./contextcompressionengine.js";
|
|
|
70
74
|
export * from "./contextcompressionplugin.js";
|
|
71
75
|
export * from "./createguardrailrequest.js";
|
|
72
76
|
export * from "./createguardrailresponse.js";
|
|
77
|
+
export * from "./createworkspacerequest.js";
|
|
78
|
+
export * from "./createworkspaceresponse.js";
|
|
73
79
|
export * from "./customtool.js";
|
|
74
80
|
export * from "./datetimeservertool.js";
|
|
75
81
|
export * from "./datetimeservertoolconfig.js";
|
|
76
82
|
export * from "./defaultparameters.js";
|
|
77
83
|
export * from "./deleteguardrailresponse.js";
|
|
84
|
+
export * from "./deleteworkspaceresponse.js";
|
|
78
85
|
export * from "./easyinputmessage.js";
|
|
79
86
|
export * from "./edgenetworktimeoutresponseerrordata.js";
|
|
80
87
|
export * from "./endpointstatus.js";
|
|
@@ -93,7 +100,11 @@ export * from "./functioncallargsdeltaevent.js";
|
|
|
93
100
|
export * from "./functioncallargsdoneevent.js";
|
|
94
101
|
export * from "./functioncallitem.js";
|
|
95
102
|
export * from "./functioncalloutputitem.js";
|
|
103
|
+
export * from "./generationcontentdata.js";
|
|
104
|
+
export * from "./generationcontentresponse.js";
|
|
105
|
+
export * from "./generationresponse.js";
|
|
96
106
|
export * from "./getguardrailresponse.js";
|
|
107
|
+
export * from "./getworkspaceresponse.js";
|
|
97
108
|
export * from "./guardrail.js";
|
|
98
109
|
export * from "./guardrailinterval.js";
|
|
99
110
|
export * from "./imageconfig.js";
|
|
@@ -124,6 +135,7 @@ export * from "./listendpointsresponse.js";
|
|
|
124
135
|
export * from "./listguardrailsresponse.js";
|
|
125
136
|
export * from "./listkeyassignmentsresponse.js";
|
|
126
137
|
export * from "./listmemberassignmentsresponse.js";
|
|
138
|
+
export * from "./listworkspacesresponse.js";
|
|
127
139
|
export * from "./mcpservertool.js";
|
|
128
140
|
export * from "./memberassignment.js";
|
|
129
141
|
export * from "./model.js";
|
|
@@ -249,6 +261,8 @@ export * from "./unauthorizedresponseerrordata.js";
|
|
|
249
261
|
export * from "./unprocessableentityresponseerrordata.js";
|
|
250
262
|
export * from "./updateguardrailrequest.js";
|
|
251
263
|
export * from "./updateguardrailresponse.js";
|
|
264
|
+
export * from "./updateworkspacerequest.js";
|
|
265
|
+
export * from "./updateworkspaceresponse.js";
|
|
252
266
|
export * from "./urlcitation.js";
|
|
253
267
|
export * from "./usage.js";
|
|
254
268
|
export * from "./videogenerationrequest.js";
|
|
@@ -270,4 +284,6 @@ export * from "./websearchsource.js";
|
|
|
270
284
|
export * from "./websearchstatus.js";
|
|
271
285
|
export * from "./websearchuserlocation.js";
|
|
272
286
|
export * from "./websearchuserlocationservertool.js";
|
|
287
|
+
export * from "./workspace.js";
|
|
288
|
+
export * from "./workspacemember.js";
|
|
273
289
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/models/index.js
CHANGED
|
@@ -13,10 +13,14 @@ export * from "./badgatewayresponseerrordata.js";
|
|
|
13
13
|
export * from "./badrequestresponseerrordata.js";
|
|
14
14
|
export * from "./baseinputsunion.js";
|
|
15
15
|
export * from "./basereasoningconfig.js";
|
|
16
|
+
export * from "./bulkaddworkspacemembersrequest.js";
|
|
17
|
+
export * from "./bulkaddworkspacemembersresponse.js";
|
|
16
18
|
export * from "./bulkassignkeysrequest.js";
|
|
17
19
|
export * from "./bulkassignkeysresponse.js";
|
|
18
20
|
export * from "./bulkassignmembersrequest.js";
|
|
19
21
|
export * from "./bulkassignmembersresponse.js";
|
|
22
|
+
export * from "./bulkremoveworkspacemembersrequest.js";
|
|
23
|
+
export * from "./bulkremoveworkspacemembersresponse.js";
|
|
20
24
|
export * from "./bulkunassignkeysrequest.js";
|
|
21
25
|
export * from "./bulkunassignkeysresponse.js";
|
|
22
26
|
export * from "./bulkunassignmembersrequest.js";
|
|
@@ -74,11 +78,14 @@ export * from "./contextcompressionengine.js";
|
|
|
74
78
|
export * from "./contextcompressionplugin.js";
|
|
75
79
|
export * from "./createguardrailrequest.js";
|
|
76
80
|
export * from "./createguardrailresponse.js";
|
|
81
|
+
export * from "./createworkspacerequest.js";
|
|
82
|
+
export * from "./createworkspaceresponse.js";
|
|
77
83
|
export * from "./customtool.js";
|
|
78
84
|
export * from "./datetimeservertool.js";
|
|
79
85
|
export * from "./datetimeservertoolconfig.js";
|
|
80
86
|
export * from "./defaultparameters.js";
|
|
81
87
|
export * from "./deleteguardrailresponse.js";
|
|
88
|
+
export * from "./deleteworkspaceresponse.js";
|
|
82
89
|
export * from "./easyinputmessage.js";
|
|
83
90
|
export * from "./edgenetworktimeoutresponseerrordata.js";
|
|
84
91
|
export * from "./endpointstatus.js";
|
|
@@ -97,7 +104,11 @@ export * from "./functioncallargsdeltaevent.js";
|
|
|
97
104
|
export * from "./functioncallargsdoneevent.js";
|
|
98
105
|
export * from "./functioncallitem.js";
|
|
99
106
|
export * from "./functioncalloutputitem.js";
|
|
107
|
+
export * from "./generationcontentdata.js";
|
|
108
|
+
export * from "./generationcontentresponse.js";
|
|
109
|
+
export * from "./generationresponse.js";
|
|
100
110
|
export * from "./getguardrailresponse.js";
|
|
111
|
+
export * from "./getworkspaceresponse.js";
|
|
101
112
|
export * from "./guardrail.js";
|
|
102
113
|
export * from "./guardrailinterval.js";
|
|
103
114
|
export * from "./imageconfig.js";
|
|
@@ -128,6 +139,7 @@ export * from "./listendpointsresponse.js";
|
|
|
128
139
|
export * from "./listguardrailsresponse.js";
|
|
129
140
|
export * from "./listkeyassignmentsresponse.js";
|
|
130
141
|
export * from "./listmemberassignmentsresponse.js";
|
|
142
|
+
export * from "./listworkspacesresponse.js";
|
|
131
143
|
export * from "./mcpservertool.js";
|
|
132
144
|
export * from "./memberassignment.js";
|
|
133
145
|
export * from "./model.js";
|
|
@@ -253,6 +265,8 @@ export * from "./unauthorizedresponseerrordata.js";
|
|
|
253
265
|
export * from "./unprocessableentityresponseerrordata.js";
|
|
254
266
|
export * from "./updateguardrailrequest.js";
|
|
255
267
|
export * from "./updateguardrailresponse.js";
|
|
268
|
+
export * from "./updateworkspacerequest.js";
|
|
269
|
+
export * from "./updateworkspaceresponse.js";
|
|
256
270
|
export * from "./urlcitation.js";
|
|
257
271
|
export * from "./usage.js";
|
|
258
272
|
export * from "./videogenerationrequest.js";
|
|
@@ -274,4 +288,6 @@ export * from "./websearchsource.js";
|
|
|
274
288
|
export * from "./websearchstatus.js";
|
|
275
289
|
export * from "./websearchuserlocation.js";
|
|
276
290
|
export * from "./websearchuserlocationservertool.js";
|
|
291
|
+
export * from "./workspace.js";
|
|
292
|
+
export * from "./workspacemember.js";
|
|
277
293
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
import { Workspace } from "./workspace.js";
|
|
5
|
+
export type ListWorkspacesResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* List of workspaces
|
|
8
|
+
*/
|
|
9
|
+
data: Array<Workspace>;
|
|
10
|
+
/**
|
|
11
|
+
* Total number of workspaces
|
|
12
|
+
*/
|
|
13
|
+
totalCount: number;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const ListWorkspacesResponse$inboundSchema: z.ZodType<ListWorkspacesResponse, unknown>;
|
|
17
|
+
export declare function listWorkspacesResponseFromJSON(jsonString: string): SafeParseResult<ListWorkspacesResponse, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=listworkspacesresponse.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9aaaad5475a3
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Workspace$inboundSchema } from "./workspace.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const ListWorkspacesResponse$inboundSchema = z.object({
|
|
11
|
+
data: z.array(Workspace$inboundSchema),
|
|
12
|
+
total_count: z.int(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
"total_count": "totalCount",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function listWorkspacesResponseFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => ListWorkspacesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWorkspacesResponse' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=listworkspacesresponse.js.map
|
|
@@ -4,7 +4,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Model count data
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type ModelsCountResponseData = {
|
|
8
8
|
/**
|
|
9
9
|
* Total number of available models
|
|
10
10
|
*/
|
|
@@ -17,11 +17,11 @@ export type ModelsCountResponse = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Model count data
|
|
19
19
|
*/
|
|
20
|
-
data:
|
|
20
|
+
data: ModelsCountResponseData;
|
|
21
21
|
};
|
|
22
22
|
/** @internal */
|
|
23
|
-
export declare const
|
|
24
|
-
export declare function
|
|
23
|
+
export declare const ModelsCountResponseData$inboundSchema: z.ZodType<ModelsCountResponseData, unknown>;
|
|
24
|
+
export declare function modelsCountResponseDataFromJSON(jsonString: string): SafeParseResult<ModelsCountResponseData, SDKValidationError>;
|
|
25
25
|
/** @internal */
|
|
26
26
|
export declare const ModelsCountResponse$inboundSchema: z.ZodType<ModelsCountResponse, unknown>;
|
|
27
27
|
export declare function modelsCountResponseFromJSON(jsonString: string): SafeParseResult<ModelsCountResponse, SDKValidationError>;
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
/** @internal */
|
|
8
|
-
export const
|
|
8
|
+
export const ModelsCountResponseData$inboundSchema = z.object({
|
|
9
9
|
count: z.int(),
|
|
10
10
|
});
|
|
11
|
-
export function
|
|
12
|
-
return safeParse(jsonString, (x) =>
|
|
11
|
+
export function modelsCountResponseDataFromJSON(jsonString) {
|
|
12
|
+
return safeParse(jsonString, (x) => ModelsCountResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsCountResponseData' from JSON`);
|
|
13
13
|
}
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const ModelsCountResponse$inboundSchema = z.object({
|
|
16
|
-
data: z.lazy(() =>
|
|
16
|
+
data: z.lazy(() => ModelsCountResponseData$inboundSchema),
|
|
17
17
|
});
|
|
18
18
|
export function modelsCountResponseFromJSON(jsonString) {
|
|
19
19
|
return safeParse(jsonString, (x) => ModelsCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsCountResponse' from JSON`);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type BulkAddWorkspaceMembersGlobals = {
|
|
4
|
+
/**
|
|
5
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This is used to track API usage per application.
|
|
9
|
+
*/
|
|
10
|
+
httpReferer?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
appTitle?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
appCategories?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
export type BulkAddWorkspaceMembersRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used to track API usage per application.
|
|
30
|
+
*/
|
|
31
|
+
httpReferer?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*/
|
|
37
|
+
appTitle?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
*/
|
|
43
|
+
appCategories?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The workspace ID (UUID) or slug
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
bulkAddWorkspaceMembersRequest: models.BulkAddWorkspaceMembersRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type BulkAddWorkspaceMembersRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
BulkAddWorkspaceMembersRequest: models.BulkAddWorkspaceMembersRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const BulkAddWorkspaceMembersRequest$outboundSchema: z.ZodType<BulkAddWorkspaceMembersRequest$Outbound, BulkAddWorkspaceMembersRequest>;
|
|
60
|
+
export declare function bulkAddWorkspaceMembersRequestToJSON(bulkAddWorkspaceMembersRequest: BulkAddWorkspaceMembersRequest): string;
|
|
61
|
+
//# sourceMappingURL=bulkaddworkspacemembers.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5868f2fbd4d9
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const BulkAddWorkspaceMembersRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
bulkAddWorkspaceMembersRequest: models.BulkAddWorkspaceMembersRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
bulkAddWorkspaceMembersRequest: "BulkAddWorkspaceMembersRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function bulkAddWorkspaceMembersRequestToJSON(bulkAddWorkspaceMembersRequest) {
|
|
22
|
+
return JSON.stringify(BulkAddWorkspaceMembersRequest$outboundSchema.parse(bulkAddWorkspaceMembersRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=bulkaddworkspacemembers.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type BulkRemoveWorkspaceMembersGlobals = {
|
|
4
|
+
/**
|
|
5
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This is used to track API usage per application.
|
|
9
|
+
*/
|
|
10
|
+
httpReferer?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
appTitle?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
appCategories?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
export type BulkRemoveWorkspaceMembersRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used to track API usage per application.
|
|
30
|
+
*/
|
|
31
|
+
httpReferer?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*/
|
|
37
|
+
appTitle?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
*/
|
|
43
|
+
appCategories?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The workspace ID (UUID) or slug
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
bulkRemoveWorkspaceMembersRequest: models.BulkRemoveWorkspaceMembersRequest;
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type BulkRemoveWorkspaceMembersRequest$Outbound = {
|
|
52
|
+
"HTTP-Referer"?: string | undefined;
|
|
53
|
+
appTitle?: string | undefined;
|
|
54
|
+
appCategories?: string | undefined;
|
|
55
|
+
id: string;
|
|
56
|
+
BulkRemoveWorkspaceMembersRequest: models.BulkRemoveWorkspaceMembersRequest$Outbound;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const BulkRemoveWorkspaceMembersRequest$outboundSchema: z.ZodType<BulkRemoveWorkspaceMembersRequest$Outbound, BulkRemoveWorkspaceMembersRequest>;
|
|
60
|
+
export declare function bulkRemoveWorkspaceMembersRequestToJSON(bulkRemoveWorkspaceMembersRequest: BulkRemoveWorkspaceMembersRequest): string;
|
|
61
|
+
//# sourceMappingURL=bulkremoveworkspacemembers.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 82eaae6cae60
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const BulkRemoveWorkspaceMembersRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
bulkRemoveWorkspaceMembersRequest: models.BulkRemoveWorkspaceMembersRequest$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
bulkRemoveWorkspaceMembersRequest: "BulkRemoveWorkspaceMembersRequest",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function bulkRemoveWorkspaceMembersRequestToJSON(bulkRemoveWorkspaceMembersRequest) {
|
|
22
|
+
return JSON.stringify(BulkRemoveWorkspaceMembersRequest$outboundSchema.parse(bulkRemoveWorkspaceMembersRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=bulkremoveworkspacemembers.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export type CreateWorkspaceGlobals = {
|
|
4
|
+
/**
|
|
5
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* This is used to track API usage per application.
|
|
9
|
+
*/
|
|
10
|
+
httpReferer?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
appTitle?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
appCategories?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
export type CreateWorkspaceRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This is used to track API usage per application.
|
|
30
|
+
*/
|
|
31
|
+
httpReferer?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*/
|
|
37
|
+
appTitle?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
*/
|
|
43
|
+
appCategories?: string | undefined;
|
|
44
|
+
createWorkspaceRequest: models.CreateWorkspaceRequest;
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CreateWorkspaceRequest$Outbound = {
|
|
48
|
+
"HTTP-Referer"?: string | undefined;
|
|
49
|
+
appTitle?: string | undefined;
|
|
50
|
+
appCategories?: string | undefined;
|
|
51
|
+
CreateWorkspaceRequest: models.CreateWorkspaceRequest$Outbound;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const CreateWorkspaceRequest$outboundSchema: z.ZodType<CreateWorkspaceRequest$Outbound, CreateWorkspaceRequest>;
|
|
55
|
+
export declare function createWorkspaceRequestToJSON(createWorkspaceRequest: CreateWorkspaceRequest): string;
|
|
56
|
+
//# sourceMappingURL=createworkspace.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 27fe97979faa
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const CreateWorkspaceRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
createWorkspaceRequest: models.CreateWorkspaceRequest$outboundSchema,
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
createWorkspaceRequest: "CreateWorkspaceRequest",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function createWorkspaceRequestToJSON(createWorkspaceRequest) {
|
|
21
|
+
return JSON.stringify(CreateWorkspaceRequest$outboundSchema.parse(createWorkspaceRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=createworkspace.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type DeleteWorkspaceGlobals = {
|
|
3
|
+
/**
|
|
4
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This is used to track API usage per application.
|
|
8
|
+
*/
|
|
9
|
+
httpReferer?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
appTitle?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
appCategories?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type DeleteWorkspaceRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* This is used to track API usage per application.
|
|
29
|
+
*/
|
|
30
|
+
httpReferer?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
*/
|
|
36
|
+
appTitle?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*/
|
|
42
|
+
appCategories?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The workspace ID (UUID) or slug
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type DeleteWorkspaceRequest$Outbound = {
|
|
50
|
+
"HTTP-Referer"?: string | undefined;
|
|
51
|
+
appTitle?: string | undefined;
|
|
52
|
+
appCategories?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const DeleteWorkspaceRequest$outboundSchema: z.ZodType<DeleteWorkspaceRequest$Outbound, DeleteWorkspaceRequest>;
|
|
57
|
+
export declare function deleteWorkspaceRequestToJSON(deleteWorkspaceRequest: DeleteWorkspaceRequest): string;
|
|
58
|
+
//# sourceMappingURL=deleteworkspace.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 38325c1278ba
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DeleteWorkspaceRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
}).transform((v) => {
|
|
14
|
+
return remap$(v, {
|
|
15
|
+
httpReferer: "HTTP-Referer",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function deleteWorkspaceRequestToJSON(deleteWorkspaceRequest) {
|
|
19
|
+
return JSON.stringify(DeleteWorkspaceRequest$outboundSchema.parse(deleteWorkspaceRequest));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=deleteworkspace.js.map
|