@openrouter/sdk 0.12.16 → 0.12.18
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/ttsCreateSpeech.d.ts +1 -1
- package/esm/funcs/ttsCreateSpeech.js +6 -6
- 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/chatrequest.d.ts +5 -4
- package/esm/models/chatrequest.js +3 -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 +18 -0
- package/esm/models/index.js +18 -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/createaudiospeech.d.ts +56 -0
- package/esm/models/operations/createaudiospeech.js +23 -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 +9 -1
- package/esm/models/operations/index.js +9 -1
- 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/paretorouterplugin.d.ts +22 -0
- package/esm/models/paretorouterplugin.js +20 -0
- package/esm/models/responsesrequest.d.ts +5 -4
- package/esm/models/responsesrequest.js +3 -0
- package/esm/models/{operations/createtts.d.ts → speechrequest.d.ts} +23 -76
- package/esm/models/{operations/createtts.js → speechrequest.js} +18 -35
- 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/videogenerationrequest.d.ts +12 -12
- package/esm/models/videogenerationrequest.js +10 -10
- 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 +5 -2
- package/esm/sdk/sdk.js +7 -3
- package/esm/sdk/tts.d.ts +1 -1
- package/esm/sdk/workspaces.d.ts +58 -0
- package/esm/sdk/workspaces.js +80 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f9109ae06502
|
|
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 * as openEnums from "../types/enums.js";
|
|
9
|
+
import { ProviderResponse$inboundSchema, } from "./providerresponse.js";
|
|
10
|
+
/**
|
|
11
|
+
* Type of API used for the generation
|
|
12
|
+
*/
|
|
13
|
+
export const ApiType = {
|
|
14
|
+
Completions: "completions",
|
|
15
|
+
Embeddings: "embeddings",
|
|
16
|
+
Rerank: "rerank",
|
|
17
|
+
Tts: "tts",
|
|
18
|
+
Video: "video",
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ApiType$inboundSchema = openEnums
|
|
22
|
+
.inboundSchema(ApiType);
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const GenerationResponseData$inboundSchema = z.object({
|
|
25
|
+
api_type: z.nullable(ApiType$inboundSchema),
|
|
26
|
+
app_id: z.nullable(z.int()),
|
|
27
|
+
cache_discount: z.nullable(z.number()),
|
|
28
|
+
cancelled: z.nullable(z.boolean()),
|
|
29
|
+
created_at: z.string(),
|
|
30
|
+
external_user: z.nullable(z.string()),
|
|
31
|
+
finish_reason: z.nullable(z.string()),
|
|
32
|
+
generation_time: z.nullable(z.number()),
|
|
33
|
+
http_referer: z.nullable(z.string()),
|
|
34
|
+
id: z.string(),
|
|
35
|
+
is_byok: z.boolean(),
|
|
36
|
+
latency: z.nullable(z.number()),
|
|
37
|
+
model: z.string(),
|
|
38
|
+
moderation_latency: z.nullable(z.number()),
|
|
39
|
+
native_finish_reason: z.nullable(z.string()),
|
|
40
|
+
native_tokens_cached: z.nullable(z.int()),
|
|
41
|
+
native_tokens_completion: z.nullable(z.int()),
|
|
42
|
+
native_tokens_completion_images: z.nullable(z.int()),
|
|
43
|
+
native_tokens_prompt: z.nullable(z.int()),
|
|
44
|
+
native_tokens_reasoning: z.nullable(z.int()),
|
|
45
|
+
num_input_audio_prompt: z.nullable(z.int()),
|
|
46
|
+
num_media_completion: z.nullable(z.int()),
|
|
47
|
+
num_media_prompt: z.nullable(z.int()),
|
|
48
|
+
num_search_results: z.nullable(z.int()),
|
|
49
|
+
origin: z.string(),
|
|
50
|
+
provider_name: z.nullable(z.string()),
|
|
51
|
+
provider_responses: z.nullable(z.array(ProviderResponse$inboundSchema)),
|
|
52
|
+
request_id: z.nullable(z.string()).optional(),
|
|
53
|
+
router: z.nullable(z.string()),
|
|
54
|
+
session_id: z.nullable(z.string()).optional(),
|
|
55
|
+
streamed: z.nullable(z.boolean()),
|
|
56
|
+
tokens_completion: z.nullable(z.int()),
|
|
57
|
+
tokens_prompt: z.nullable(z.int()),
|
|
58
|
+
total_cost: z.number(),
|
|
59
|
+
upstream_id: z.nullable(z.string()),
|
|
60
|
+
upstream_inference_cost: z.nullable(z.number()),
|
|
61
|
+
usage: z.number(),
|
|
62
|
+
user_agent: z.nullable(z.string()),
|
|
63
|
+
web_search_engine: z.nullable(z.string()),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
"api_type": "apiType",
|
|
67
|
+
"app_id": "appId",
|
|
68
|
+
"cache_discount": "cacheDiscount",
|
|
69
|
+
"created_at": "createdAt",
|
|
70
|
+
"external_user": "externalUser",
|
|
71
|
+
"finish_reason": "finishReason",
|
|
72
|
+
"generation_time": "generationTime",
|
|
73
|
+
"http_referer": "httpReferer",
|
|
74
|
+
"is_byok": "isByok",
|
|
75
|
+
"moderation_latency": "moderationLatency",
|
|
76
|
+
"native_finish_reason": "nativeFinishReason",
|
|
77
|
+
"native_tokens_cached": "nativeTokensCached",
|
|
78
|
+
"native_tokens_completion": "nativeTokensCompletion",
|
|
79
|
+
"native_tokens_completion_images": "nativeTokensCompletionImages",
|
|
80
|
+
"native_tokens_prompt": "nativeTokensPrompt",
|
|
81
|
+
"native_tokens_reasoning": "nativeTokensReasoning",
|
|
82
|
+
"num_input_audio_prompt": "numInputAudioPrompt",
|
|
83
|
+
"num_media_completion": "numMediaCompletion",
|
|
84
|
+
"num_media_prompt": "numMediaPrompt",
|
|
85
|
+
"num_search_results": "numSearchResults",
|
|
86
|
+
"provider_name": "providerName",
|
|
87
|
+
"provider_responses": "providerResponses",
|
|
88
|
+
"request_id": "requestId",
|
|
89
|
+
"session_id": "sessionId",
|
|
90
|
+
"tokens_completion": "tokensCompletion",
|
|
91
|
+
"tokens_prompt": "tokensPrompt",
|
|
92
|
+
"total_cost": "totalCost",
|
|
93
|
+
"upstream_id": "upstreamId",
|
|
94
|
+
"upstream_inference_cost": "upstreamInferenceCost",
|
|
95
|
+
"user_agent": "userAgent",
|
|
96
|
+
"web_search_engine": "webSearchEngine",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
export function generationResponseDataFromJSON(jsonString) {
|
|
100
|
+
return safeParse(jsonString, (x) => GenerationResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GenerationResponseData' from JSON`);
|
|
101
|
+
}
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const GenerationResponse$inboundSchema = z.object({
|
|
104
|
+
data: z.lazy(() => GenerationResponseData$inboundSchema),
|
|
105
|
+
});
|
|
106
|
+
export function generationResponseFromJSON(jsonString) {
|
|
107
|
+
return safeParse(jsonString, (x) => GenerationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GenerationResponse' from JSON`);
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=generationresponse.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
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 GetWorkspaceResponse = {
|
|
6
|
+
data: Workspace;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const GetWorkspaceResponse$inboundSchema: z.ZodType<GetWorkspaceResponse, unknown>;
|
|
10
|
+
export declare function getWorkspaceResponseFromJSON(jsonString: string): SafeParseResult<GetWorkspaceResponse, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=getworkspaceresponse.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2315ba7fb584
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Workspace$inboundSchema } from "./workspace.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const GetWorkspaceResponse$inboundSchema = z.object({
|
|
10
|
+
data: Workspace$inboundSchema,
|
|
11
|
+
});
|
|
12
|
+
export function getWorkspaceResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => GetWorkspaceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetWorkspaceResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=getworkspaceresponse.js.map
|
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";
|
|
@@ -174,6 +186,7 @@ export * from "./outputwebfetchservertoolitem.js";
|
|
|
174
186
|
export * from "./outputwebsearchcallitem.js";
|
|
175
187
|
export * from "./outputwebsearchservertoolitem.js";
|
|
176
188
|
export * from "./parameter.js";
|
|
189
|
+
export * from "./paretorouterplugin.js";
|
|
177
190
|
export * from "./payloadtoolargeresponseerrordata.js";
|
|
178
191
|
export * from "./paymentrequiredresponseerrordata.js";
|
|
179
192
|
export * from "./pdfparserengine.js";
|
|
@@ -227,6 +240,7 @@ export * from "./searchqualitylevel.js";
|
|
|
227
240
|
export * from "./security.js";
|
|
228
241
|
export * from "./serviceunavailableresponseerrordata.js";
|
|
229
242
|
export * from "./shellservertool.js";
|
|
243
|
+
export * from "./speechrequest.js";
|
|
230
244
|
export * from "./storedprompttemplate.js";
|
|
231
245
|
export * from "./streamevents.js";
|
|
232
246
|
export * from "./streameventsresponsecompleted.js";
|
|
@@ -249,6 +263,8 @@ export * from "./unauthorizedresponseerrordata.js";
|
|
|
249
263
|
export * from "./unprocessableentityresponseerrordata.js";
|
|
250
264
|
export * from "./updateguardrailrequest.js";
|
|
251
265
|
export * from "./updateguardrailresponse.js";
|
|
266
|
+
export * from "./updateworkspacerequest.js";
|
|
267
|
+
export * from "./updateworkspaceresponse.js";
|
|
252
268
|
export * from "./urlcitation.js";
|
|
253
269
|
export * from "./usage.js";
|
|
254
270
|
export * from "./videogenerationrequest.js";
|
|
@@ -270,4 +286,6 @@ export * from "./websearchsource.js";
|
|
|
270
286
|
export * from "./websearchstatus.js";
|
|
271
287
|
export * from "./websearchuserlocation.js";
|
|
272
288
|
export * from "./websearchuserlocationservertool.js";
|
|
289
|
+
export * from "./workspace.js";
|
|
290
|
+
export * from "./workspacemember.js";
|
|
273
291
|
//# 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";
|
|
@@ -178,6 +190,7 @@ export * from "./outputwebfetchservertoolitem.js";
|
|
|
178
190
|
export * from "./outputwebsearchcallitem.js";
|
|
179
191
|
export * from "./outputwebsearchservertoolitem.js";
|
|
180
192
|
export * from "./parameter.js";
|
|
193
|
+
export * from "./paretorouterplugin.js";
|
|
181
194
|
export * from "./payloadtoolargeresponseerrordata.js";
|
|
182
195
|
export * from "./paymentrequiredresponseerrordata.js";
|
|
183
196
|
export * from "./pdfparserengine.js";
|
|
@@ -231,6 +244,7 @@ export * from "./searchqualitylevel.js";
|
|
|
231
244
|
export * from "./security.js";
|
|
232
245
|
export * from "./serviceunavailableresponseerrordata.js";
|
|
233
246
|
export * from "./shellservertool.js";
|
|
247
|
+
export * from "./speechrequest.js";
|
|
234
248
|
export * from "./storedprompttemplate.js";
|
|
235
249
|
export * from "./streamevents.js";
|
|
236
250
|
export * from "./streameventsresponsecompleted.js";
|
|
@@ -253,6 +267,8 @@ export * from "./unauthorizedresponseerrordata.js";
|
|
|
253
267
|
export * from "./unprocessableentityresponseerrordata.js";
|
|
254
268
|
export * from "./updateguardrailrequest.js";
|
|
255
269
|
export * from "./updateguardrailresponse.js";
|
|
270
|
+
export * from "./updateworkspacerequest.js";
|
|
271
|
+
export * from "./updateworkspaceresponse.js";
|
|
256
272
|
export * from "./urlcitation.js";
|
|
257
273
|
export * from "./usage.js";
|
|
258
274
|
export * from "./videogenerationrequest.js";
|
|
@@ -274,4 +290,6 @@ export * from "./websearchsource.js";
|
|
|
274
290
|
export * from "./websearchstatus.js";
|
|
275
291
|
export * from "./websearchuserlocation.js";
|
|
276
292
|
export * from "./websearchuserlocationservertool.js";
|
|
293
|
+
export * from "./workspace.js";
|
|
294
|
+
export * from "./workspacemember.js";
|
|
277
295
|
//# 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 CreateAudioSpeechGlobals = {
|
|
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 CreateAudioSpeechRequest = {
|
|
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
|
+
speechRequest: models.SpeechRequest;
|
|
45
|
+
};
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CreateAudioSpeechRequest$Outbound = {
|
|
48
|
+
"HTTP-Referer"?: string | undefined;
|
|
49
|
+
appTitle?: string | undefined;
|
|
50
|
+
appCategories?: string | undefined;
|
|
51
|
+
SpeechRequest: models.SpeechRequest$Outbound;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const CreateAudioSpeechRequest$outboundSchema: z.ZodType<CreateAudioSpeechRequest$Outbound, CreateAudioSpeechRequest>;
|
|
55
|
+
export declare function createAudioSpeechRequestToJSON(createAudioSpeechRequest: CreateAudioSpeechRequest): string;
|
|
56
|
+
//# sourceMappingURL=createaudiospeech.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 70089adf9736
|
|
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 CreateAudioSpeechRequest$outboundSchema = z.object({
|
|
10
|
+
httpReferer: z.string().optional(),
|
|
11
|
+
appTitle: z.string().optional(),
|
|
12
|
+
appCategories: z.string().optional(),
|
|
13
|
+
speechRequest: models.SpeechRequest$outboundSchema,
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
speechRequest: "SpeechRequest",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function createAudioSpeechRequestToJSON(createAudioSpeechRequest) {
|
|
21
|
+
return JSON.stringify(CreateAudioSpeechRequest$outboundSchema.parse(createAudioSpeechRequest));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=createaudiospeech.js.map
|