@openrouter/sdk 1.2.53 → 1.2.55
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/containersDownloadContainerFileContent.d.ts +18 -0
- package/esm/funcs/containersDownloadContainerFileContent.js +107 -0
- package/esm/funcs/containersGetContainerFile.d.ts +19 -0
- package/esm/funcs/containersGetContainerFile.js +107 -0
- package/esm/funcs/containersListContainerFiles.d.ts +19 -0
- package/esm/funcs/containersListContainerFiles.js +108 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/additionaltoolsitem.d.ts +10 -4
- package/esm/models/additionaltoolsitem.js +8 -0
- package/esm/models/containerfile.d.ts +53 -0
- package/esm/models/containerfile.js +40 -0
- package/esm/models/containerfilelistresponse.d.ts +25 -0
- package/esm/models/containerfilelistresponse.js +31 -0
- package/esm/models/index.d.ts +4 -0
- package/esm/models/index.js +4 -0
- package/esm/models/messagesrequest.d.ts +5 -4
- package/esm/models/messagesrequest.js +3 -0
- package/esm/models/openresponsesresult.d.ts +4 -0
- package/esm/models/openresponsesresult.js +5 -0
- package/esm/models/operations/downloadcontainerfilecontent.d.ts +63 -0
- package/esm/models/operations/downloadcontainerfilecontent.js +24 -0
- package/esm/models/operations/getcontainerfile.d.ts +63 -0
- package/esm/models/operations/getcontainerfile.js +24 -0
- package/esm/models/operations/index.d.ts +3 -0
- package/esm/models/operations/index.js +3 -0
- package/esm/models/operations/listcontainerfiles.d.ts +68 -0
- package/esm/models/operations/listcontainerfiles.js +24 -0
- package/esm/models/responsesrequest.d.ts +14 -0
- package/esm/models/responsesrequest.js +8 -0
- package/esm/models/toolsearchservertool.d.ts +28 -0
- package/esm/models/toolsearchservertool.js +20 -0
- package/esm/models/toolsearchservertoolconfig.d.ts +18 -0
- package/esm/models/toolsearchservertoolconfig.js +18 -0
- package/esm/sdk/containers.d.ts +27 -0
- package/esm/sdk/containers.js +39 -0
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 74b945b6c8e1
|
|
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 { ContainerFile$inboundSchema } from "./containerfile.js";
|
|
9
|
+
export const ContainerFileListResponseObject = {
|
|
10
|
+
List: "list",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ContainerFileListResponseObject$inboundSchema = z.enum(ContainerFileListResponseObject);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const ContainerFileListResponse$inboundSchema = z.object({
|
|
16
|
+
data: z.array(ContainerFile$inboundSchema),
|
|
17
|
+
first_id: z.nullable(z.string()),
|
|
18
|
+
has_more: z.boolean(),
|
|
19
|
+
last_id: z.nullable(z.string()),
|
|
20
|
+
object: ContainerFileListResponseObject$inboundSchema,
|
|
21
|
+
}).transform((v) => {
|
|
22
|
+
return remap$(v, {
|
|
23
|
+
"first_id": "firstId",
|
|
24
|
+
"has_more": "hasMore",
|
|
25
|
+
"last_id": "lastId",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export function containerFileListResponseFromJSON(jsonString) {
|
|
29
|
+
return safeParse(jsonString, (x) => ContainerFileListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ContainerFileListResponse' from JSON`);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=containerfilelistresponse.js.map
|
package/esm/models/index.d.ts
CHANGED
|
@@ -148,6 +148,8 @@ export * from "./compoundfilter.js";
|
|
|
148
148
|
export * from "./computeruseservertool.js";
|
|
149
149
|
export * from "./conflictresponseerrordata.js";
|
|
150
150
|
export * from "./containerautoenvironment.js";
|
|
151
|
+
export * from "./containerfile.js";
|
|
152
|
+
export * from "./containerfilelistresponse.js";
|
|
151
153
|
export * from "./containerreferenceenvironment.js";
|
|
152
154
|
export * from "./contentfilteraction.js";
|
|
153
155
|
export * from "./contentfilterbuiltinaction.js";
|
|
@@ -555,6 +557,8 @@ export * from "./textdoneevent.js";
|
|
|
555
557
|
export * from "./textextendedconfig.js";
|
|
556
558
|
export * from "./toolcallstatus.js";
|
|
557
559
|
export * from "./toolchoiceallowed.js";
|
|
560
|
+
export * from "./toolsearchservertool.js";
|
|
561
|
+
export * from "./toolsearchservertoolconfig.js";
|
|
558
562
|
export * from "./toomanyrequestsresponseerrordata.js";
|
|
559
563
|
export * from "./topproviderinfo.js";
|
|
560
564
|
export * from "./traceconfig.js";
|
package/esm/models/index.js
CHANGED
|
@@ -152,6 +152,8 @@ export * from "./compoundfilter.js";
|
|
|
152
152
|
export * from "./computeruseservertool.js";
|
|
153
153
|
export * from "./conflictresponseerrordata.js";
|
|
154
154
|
export * from "./containerautoenvironment.js";
|
|
155
|
+
export * from "./containerfile.js";
|
|
156
|
+
export * from "./containerfilelistresponse.js";
|
|
155
157
|
export * from "./containerreferenceenvironment.js";
|
|
156
158
|
export * from "./contentfilteraction.js";
|
|
157
159
|
export * from "./contentfilterbuiltinaction.js";
|
|
@@ -559,6 +561,8 @@ export * from "./textdoneevent.js";
|
|
|
559
561
|
export * from "./textextendedconfig.js";
|
|
560
562
|
export * from "./toolcallstatus.js";
|
|
561
563
|
export * from "./toolchoiceallowed.js";
|
|
564
|
+
export * from "./toolsearchservertool.js";
|
|
565
|
+
export * from "./toolsearchservertoolconfig.js";
|
|
562
566
|
export * from "./toomanyrequestsresponseerrordata.js";
|
|
563
567
|
export * from "./topproviderinfo.js";
|
|
564
568
|
export * from "./traceconfig.js";
|
|
@@ -31,6 +31,7 @@ import { ProviderPreferences, ProviderPreferences$Outbound } from "./providerpre
|
|
|
31
31
|
import { ResponseHealingPlugin, ResponseHealingPlugin$Outbound } from "./responsehealingplugin.js";
|
|
32
32
|
import { ShellServerToolOpenRouter, ShellServerToolOpenRouter$Outbound } from "./shellservertoolopenrouter.js";
|
|
33
33
|
import { StopServerToolsWhenCondition, StopServerToolsWhenCondition$Outbound } from "./stopservertoolswhencondition.js";
|
|
34
|
+
import { ToolSearchServerTool, ToolSearchServerTool$Outbound } from "./toolsearchservertool.js";
|
|
34
35
|
import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
|
|
35
36
|
import { WebFetchPlugin, WebFetchPlugin$Outbound } from "./webfetchplugin.js";
|
|
36
37
|
import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js";
|
|
@@ -248,7 +249,7 @@ export type ToolCustom = {
|
|
|
248
249
|
name: string;
|
|
249
250
|
type?: ToolTypeCustom | undefined;
|
|
250
251
|
};
|
|
251
|
-
export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | AnthropicToolSearchToolBm25 | AnthropicToolSearchToolRegex | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool | ShellServerToolOpenRouter;
|
|
252
|
+
export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | AnthropicToolSearchToolBm25 | AnthropicToolSearchToolRegex | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool | ShellServerToolOpenRouter | ToolSearchServerTool;
|
|
252
253
|
/**
|
|
253
254
|
* Request schema for Anthropic Messages API endpoint
|
|
254
255
|
*/
|
|
@@ -295,7 +296,7 @@ export type MessagesRequest = {
|
|
|
295
296
|
temperature?: number | undefined;
|
|
296
297
|
thinking?: ThinkingEnabled | ThinkingDisabled | ThinkingAdaptive | undefined;
|
|
297
298
|
toolChoice?: ToolChoiceAuto | ToolChoiceAny | ToolChoiceNone | ToolChoiceTool | undefined;
|
|
298
|
-
tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | AnthropicToolSearchToolBm25 | AnthropicToolSearchToolRegex | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool | ShellServerToolOpenRouter> | undefined;
|
|
299
|
+
tools?: Array<ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | AnthropicToolSearchToolBm25 | AnthropicToolSearchToolRegex | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool | ShellServerToolOpenRouter | ToolSearchServerTool> | undefined;
|
|
299
300
|
topK?: number | undefined;
|
|
300
301
|
topP?: number | undefined;
|
|
301
302
|
/**
|
|
@@ -582,7 +583,7 @@ export type ToolCustom$Outbound = {
|
|
|
582
583
|
export declare const ToolCustom$outboundSchema: z.ZodType<ToolCustom$Outbound, ToolCustom>;
|
|
583
584
|
export declare function toolCustomToJSON(toolCustom: ToolCustom): string;
|
|
584
585
|
/** @internal */
|
|
585
|
-
export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | AnthropicToolSearchToolBm25$Outbound | AnthropicToolSearchToolRegex$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | MessagesSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound | ShellServerToolOpenRouter$Outbound;
|
|
586
|
+
export type MessagesRequestToolUnion$Outbound = ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | AnthropicToolSearchToolBm25$Outbound | AnthropicToolSearchToolRegex$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | MessagesSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound;
|
|
586
587
|
/** @internal */
|
|
587
588
|
export declare const MessagesRequestToolUnion$outboundSchema: z.ZodType<MessagesRequestToolUnion$Outbound, MessagesRequestToolUnion>;
|
|
588
589
|
export declare function messagesRequestToolUnionToJSON(messagesRequestToolUnion: MessagesRequestToolUnion): string;
|
|
@@ -609,7 +610,7 @@ export type MessagesRequest$Outbound = {
|
|
|
609
610
|
temperature?: number | undefined;
|
|
610
611
|
thinking?: ThinkingEnabled$Outbound | ThinkingDisabled$Outbound | ThinkingAdaptive$Outbound | undefined;
|
|
611
612
|
tool_choice?: ToolChoiceAuto$Outbound | ToolChoiceAny$Outbound | ToolChoiceNone$Outbound | ToolChoiceTool$Outbound | undefined;
|
|
612
|
-
tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | AnthropicToolSearchToolBm25$Outbound | AnthropicToolSearchToolRegex$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | MessagesSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound | ShellServerToolOpenRouter$Outbound> | undefined;
|
|
613
|
+
tools?: Array<ToolAdvisor20260301$Outbound | ToolCustom$Outbound | ToolBash20250124$Outbound | ToolTextEditor20250124$Outbound | ToolWebSearch20250305$Outbound | ToolWebSearch20260209$Outbound | AnthropicToolSearchToolBm25$Outbound | AnthropicToolSearchToolRegex$Outbound | BashServerTool$Outbound | DatetimeServerTool$Outbound | ImageGenerationServerToolOpenRouter$Outbound | MessagesSearchModelsServerTool$Outbound | WebFetchServerTool$Outbound | OpenRouterWebSearchServerTool$Outbound | MessagesRequestTool$Outbound | ShellServerToolOpenRouter$Outbound | ToolSearchServerTool$Outbound> | undefined;
|
|
613
614
|
top_k?: number | undefined;
|
|
614
615
|
top_p?: number | undefined;
|
|
615
616
|
trace?: TraceConfig$Outbound | undefined;
|
|
@@ -36,6 +36,7 @@ import { ProviderPreferences$outboundSchema, } from "./providerpreferences.js";
|
|
|
36
36
|
import { ResponseHealingPlugin$outboundSchema, } from "./responsehealingplugin.js";
|
|
37
37
|
import { ShellServerToolOpenRouter$outboundSchema, } from "./shellservertoolopenrouter.js";
|
|
38
38
|
import { StopServerToolsWhenCondition$outboundSchema, } from "./stopservertoolswhencondition.js";
|
|
39
|
+
import { ToolSearchServerTool$outboundSchema, } from "./toolsearchservertool.js";
|
|
39
40
|
import { TraceConfig$outboundSchema, } from "./traceconfig.js";
|
|
40
41
|
import { WebFetchPlugin$outboundSchema, } from "./webfetchplugin.js";
|
|
41
42
|
import { WebFetchServerTool$outboundSchema, } from "./webfetchservertool.js";
|
|
@@ -518,6 +519,7 @@ export const MessagesRequestToolUnion$outboundSchema = z.union([
|
|
|
518
519
|
OpenRouterWebSearchServerTool$outboundSchema,
|
|
519
520
|
z.lazy(() => MessagesRequestTool$outboundSchema),
|
|
520
521
|
ShellServerToolOpenRouter$outboundSchema,
|
|
522
|
+
ToolSearchServerTool$outboundSchema,
|
|
521
523
|
]);
|
|
522
524
|
export function messagesRequestToolUnionToJSON(messagesRequestToolUnion) {
|
|
523
525
|
return JSON.stringify(MessagesRequestToolUnion$outboundSchema.parse(messagesRequestToolUnion));
|
|
@@ -586,6 +588,7 @@ export const MessagesRequest$outboundSchema = z.object({
|
|
|
586
588
|
OpenRouterWebSearchServerTool$outboundSchema,
|
|
587
589
|
z.lazy(() => MessagesRequestTool$outboundSchema),
|
|
588
590
|
ShellServerToolOpenRouter$outboundSchema,
|
|
591
|
+
ToolSearchServerTool$outboundSchema,
|
|
589
592
|
])).optional(),
|
|
590
593
|
topK: z.int().optional(),
|
|
591
594
|
topP: z.number().optional(),
|
|
@@ -46,6 +46,10 @@ export type OpenResponsesResultToolFunction = {
|
|
|
46
46
|
} | null;
|
|
47
47
|
strict?: boolean | null | undefined;
|
|
48
48
|
type: "function";
|
|
49
|
+
/**
|
|
50
|
+
* Withhold this tool from the model until `openrouter:tool_search` finds it. Requires the tool search server tool; at least one tool must remain non-deferred.
|
|
51
|
+
*/
|
|
52
|
+
deferLoading?: boolean | undefined;
|
|
49
53
|
};
|
|
50
54
|
export type OpenResponsesResultToolUnion = OpenResponsesResultToolFunction | (PreviewWebSearchServerTool & {
|
|
51
55
|
type: "web_search_preview";
|
|
@@ -46,6 +46,11 @@ export const OpenResponsesResultToolFunction$inboundSchema = z.object({
|
|
|
46
46
|
parameters: z.nullable(z.record(z.string(), z.any())),
|
|
47
47
|
strict: z.nullable(z.boolean()).optional(),
|
|
48
48
|
type: z.literal("function"),
|
|
49
|
+
defer_loading: z.boolean().optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"defer_loading": "deferLoading",
|
|
53
|
+
});
|
|
49
54
|
});
|
|
50
55
|
export function openResponsesResultToolFunctionFromJSON(jsonString) {
|
|
51
56
|
return safeParse(jsonString, (x) => OpenResponsesResultToolFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesResultToolFunction' from JSON`);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type DownloadContainerFileContentGlobals = {
|
|
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 DownloadContainerFileContentRequest = {
|
|
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 sandbox session id, exactly as stored — a restarted session has its own `-r<nonce>`-suffixed id.
|
|
45
|
+
*/
|
|
46
|
+
sessionId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Container file id (`cfile_` + base64url of the file path).
|
|
49
|
+
*/
|
|
50
|
+
fileId: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type DownloadContainerFileContentRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
session_id: string;
|
|
58
|
+
file_id: string;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const DownloadContainerFileContentRequest$outboundSchema: z.ZodType<DownloadContainerFileContentRequest$Outbound, DownloadContainerFileContentRequest>;
|
|
62
|
+
export declare function downloadContainerFileContentRequestToJSON(downloadContainerFileContentRequest: DownloadContainerFileContentRequest): string;
|
|
63
|
+
//# sourceMappingURL=downloadcontainerfilecontent.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0bc1bd778769
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const DownloadContainerFileContentRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
sessionId: z.string(),
|
|
13
|
+
fileId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
sessionId: "session_id",
|
|
18
|
+
fileId: "file_id",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function downloadContainerFileContentRequestToJSON(downloadContainerFileContentRequest) {
|
|
22
|
+
return JSON.stringify(DownloadContainerFileContentRequest$outboundSchema.parse(downloadContainerFileContentRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=downloadcontainerfilecontent.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type GetContainerFileGlobals = {
|
|
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 GetContainerFileRequest = {
|
|
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 sandbox session id, exactly as stored — a restarted session has its own `-r<nonce>`-suffixed id.
|
|
45
|
+
*/
|
|
46
|
+
sessionId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Container file id (`cfile_` + base64url of the file path).
|
|
49
|
+
*/
|
|
50
|
+
fileId: string;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetContainerFileRequest$Outbound = {
|
|
54
|
+
"HTTP-Referer"?: string | undefined;
|
|
55
|
+
appTitle?: string | undefined;
|
|
56
|
+
appCategories?: string | undefined;
|
|
57
|
+
session_id: string;
|
|
58
|
+
file_id: string;
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
export declare const GetContainerFileRequest$outboundSchema: z.ZodType<GetContainerFileRequest$Outbound, GetContainerFileRequest>;
|
|
62
|
+
export declare function getContainerFileRequestToJSON(getContainerFileRequest: GetContainerFileRequest): string;
|
|
63
|
+
//# sourceMappingURL=getcontainerfile.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2fb4120bb6ff
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetContainerFileRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
sessionId: z.string(),
|
|
13
|
+
fileId: z.string(),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
httpReferer: "HTTP-Referer",
|
|
17
|
+
sessionId: "session_id",
|
|
18
|
+
fileId: "file_id",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function getContainerFileRequestToJSON(getContainerFileRequest) {
|
|
22
|
+
return JSON.stringify(GetContainerFileRequest$outboundSchema.parse(getContainerFileRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=getcontainerfile.js.map
|
|
@@ -30,12 +30,14 @@ export * from "./deleteobservabilitydestination.js";
|
|
|
30
30
|
export * from "./deletescimgroupmapping.js";
|
|
31
31
|
export * from "./deleteworkspace.js";
|
|
32
32
|
export * from "./deleteworkspacebudget.js";
|
|
33
|
+
export * from "./downloadcontainerfilecontent.js";
|
|
33
34
|
export * from "./downloadfilecontent.js";
|
|
34
35
|
export * from "./exchangeauthcodeforapikey.js";
|
|
35
36
|
export * from "./getanalyticsmeta.js";
|
|
36
37
|
export * from "./getapprankings.js";
|
|
37
38
|
export * from "./getbenchmarks.js";
|
|
38
39
|
export * from "./getbyokkey.js";
|
|
40
|
+
export * from "./getcontainerfile.js";
|
|
39
41
|
export * from "./getcredits.js";
|
|
40
42
|
export * from "./getcurrentkey.js";
|
|
41
43
|
export * from "./getfilemetadata.js";
|
|
@@ -57,6 +59,7 @@ export * from "./getworkspace.js";
|
|
|
57
59
|
export * from "./getworkspacebudget.js";
|
|
58
60
|
export * from "./list.js";
|
|
59
61
|
export * from "./listbyokkeys.js";
|
|
62
|
+
export * from "./listcontainerfiles.js";
|
|
60
63
|
export * from "./listembeddingsmodels.js";
|
|
61
64
|
export * from "./listendpoints.js";
|
|
62
65
|
export * from "./listendpointszdr.js";
|
|
@@ -34,12 +34,14 @@ export * from "./deleteobservabilitydestination.js";
|
|
|
34
34
|
export * from "./deletescimgroupmapping.js";
|
|
35
35
|
export * from "./deleteworkspace.js";
|
|
36
36
|
export * from "./deleteworkspacebudget.js";
|
|
37
|
+
export * from "./downloadcontainerfilecontent.js";
|
|
37
38
|
export * from "./downloadfilecontent.js";
|
|
38
39
|
export * from "./exchangeauthcodeforapikey.js";
|
|
39
40
|
export * from "./getanalyticsmeta.js";
|
|
40
41
|
export * from "./getapprankings.js";
|
|
41
42
|
export * from "./getbenchmarks.js";
|
|
42
43
|
export * from "./getbyokkey.js";
|
|
44
|
+
export * from "./getcontainerfile.js";
|
|
43
45
|
export * from "./getcredits.js";
|
|
44
46
|
export * from "./getcurrentkey.js";
|
|
45
47
|
export * from "./getfilemetadata.js";
|
|
@@ -61,6 +63,7 @@ export * from "./getworkspace.js";
|
|
|
61
63
|
export * from "./getworkspacebudget.js";
|
|
62
64
|
export * from "./list.js";
|
|
63
65
|
export * from "./listbyokkeys.js";
|
|
66
|
+
export * from "./listcontainerfiles.js";
|
|
64
67
|
export * from "./listembeddingsmodels.js";
|
|
65
68
|
export * from "./listendpoints.js";
|
|
66
69
|
export * from "./listendpointszdr.js";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
export type ListContainerFilesGlobals = {
|
|
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 ListContainerFilesRequest = {
|
|
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 sandbox session id, exactly as stored — a restarted session has its own `-r<nonce>`-suffixed id.
|
|
45
|
+
*/
|
|
46
|
+
sessionId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum number of files to return (1-1000). Defaults to 100 when absent.
|
|
49
|
+
*/
|
|
50
|
+
limit?: number | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Forward cursor: a container file id from a previous page (typically `last_id`); listing resumes strictly after that file.
|
|
53
|
+
*/
|
|
54
|
+
after?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type ListContainerFilesRequest$Outbound = {
|
|
58
|
+
"HTTP-Referer"?: string | undefined;
|
|
59
|
+
appTitle?: string | undefined;
|
|
60
|
+
appCategories?: string | undefined;
|
|
61
|
+
session_id: string;
|
|
62
|
+
limit: number;
|
|
63
|
+
after?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
/** @internal */
|
|
66
|
+
export declare const ListContainerFilesRequest$outboundSchema: z.ZodType<ListContainerFilesRequest$Outbound, ListContainerFilesRequest>;
|
|
67
|
+
export declare function listContainerFilesRequestToJSON(listContainerFilesRequest: ListContainerFilesRequest): string;
|
|
68
|
+
//# sourceMappingURL=listcontainerfiles.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 833ac1772f55
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const ListContainerFilesRequest$outboundSchema = z.object({
|
|
9
|
+
httpReferer: z.string().optional(),
|
|
10
|
+
appTitle: z.string().optional(),
|
|
11
|
+
appCategories: z.string().optional(),
|
|
12
|
+
sessionId: z.string(),
|
|
13
|
+
limit: z.int().default(100),
|
|
14
|
+
after: z.string().optional(),
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
httpReferer: "HTTP-Referer",
|
|
18
|
+
sessionId: "session_id",
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
export function listContainerFilesRequestToJSON(listContainerFilesRequest) {
|
|
22
|
+
return JSON.stringify(ListContainerFilesRequest$outboundSchema.parse(listContainerFilesRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=listcontainerfiles.js.map
|
|
@@ -48,6 +48,7 @@ import { StopServerToolsWhenCondition, StopServerToolsWhenCondition$Outbound } f
|
|
|
48
48
|
import { StoredPromptTemplate, StoredPromptTemplate$Outbound } from "./storedprompttemplate.js";
|
|
49
49
|
import { SubagentServerToolOpenRouter, SubagentServerToolOpenRouter$Outbound } from "./subagentservertoolopenrouter.js";
|
|
50
50
|
import { TextExtendedConfig, TextExtendedConfig$Outbound } from "./textextendedconfig.js";
|
|
51
|
+
import { ToolSearchServerTool, ToolSearchServerTool$Outbound } from "./toolsearchservertool.js";
|
|
51
52
|
import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
|
|
52
53
|
import { WebFetchPlugin, WebFetchPlugin$Outbound } from "./webfetchplugin.js";
|
|
53
54
|
import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchservertool.js";
|
|
@@ -95,6 +96,10 @@ export type ResponsesRequestToolFunction = {
|
|
|
95
96
|
} | null;
|
|
96
97
|
strict?: boolean | null | undefined;
|
|
97
98
|
type: "function";
|
|
99
|
+
/**
|
|
100
|
+
* Withhold this tool from the model until `openrouter:tool_search` finds it. Requires the tool search server tool; at least one tool must remain non-deferred.
|
|
101
|
+
*/
|
|
102
|
+
deferLoading?: boolean | undefined;
|
|
98
103
|
};
|
|
99
104
|
export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | (PreviewWebSearchServerTool & {
|
|
100
105
|
type: "web_search_preview";
|
|
@@ -148,6 +153,8 @@ export type ResponsesRequestToolUnion = ResponsesRequestToolFunction | (PreviewW
|
|
|
148
153
|
type: "openrouter:bash";
|
|
149
154
|
}) | (ShellServerToolOpenRouter & {
|
|
150
155
|
type: "openrouter:shell";
|
|
156
|
+
}) | (ToolSearchServerTool & {
|
|
157
|
+
type: "openrouter:tool_search";
|
|
151
158
|
});
|
|
152
159
|
/**
|
|
153
160
|
* Request schema for Responses endpoint
|
|
@@ -292,6 +299,8 @@ export type ResponsesRequest = {
|
|
|
292
299
|
type: "openrouter:bash";
|
|
293
300
|
}) | (ShellServerToolOpenRouter & {
|
|
294
301
|
type: "openrouter:shell";
|
|
302
|
+
}) | (ToolSearchServerTool & {
|
|
303
|
+
type: "openrouter:tool_search";
|
|
295
304
|
})> | undefined;
|
|
296
305
|
topK?: number | undefined;
|
|
297
306
|
topLogprobs?: number | null | undefined;
|
|
@@ -334,6 +343,7 @@ export type ResponsesRequestToolFunction$Outbound = {
|
|
|
334
343
|
} | null;
|
|
335
344
|
strict?: boolean | null | undefined;
|
|
336
345
|
type: "function";
|
|
346
|
+
defer_loading?: boolean | undefined;
|
|
337
347
|
};
|
|
338
348
|
/** @internal */
|
|
339
349
|
export declare const ResponsesRequestToolFunction$outboundSchema: z.ZodType<ResponsesRequestToolFunction$Outbound, ResponsesRequestToolFunction>;
|
|
@@ -391,6 +401,8 @@ export type ResponsesRequestToolUnion$Outbound = ResponsesRequestToolFunction$Ou
|
|
|
391
401
|
type: "openrouter:bash";
|
|
392
402
|
}) | (ShellServerToolOpenRouter$Outbound & {
|
|
393
403
|
type: "openrouter:shell";
|
|
404
|
+
}) | (ToolSearchServerTool$Outbound & {
|
|
405
|
+
type: "openrouter:tool_search";
|
|
394
406
|
});
|
|
395
407
|
/** @internal */
|
|
396
408
|
export declare const ResponsesRequestToolUnion$outboundSchema: z.ZodType<ResponsesRequestToolUnion$Outbound, ResponsesRequestToolUnion>;
|
|
@@ -485,6 +497,8 @@ export type ResponsesRequest$Outbound = {
|
|
|
485
497
|
type: "openrouter:bash";
|
|
486
498
|
}) | (ShellServerToolOpenRouter$Outbound & {
|
|
487
499
|
type: "openrouter:shell";
|
|
500
|
+
}) | (ToolSearchServerTool$Outbound & {
|
|
501
|
+
type: "openrouter:tool_search";
|
|
488
502
|
})> | undefined;
|
|
489
503
|
top_k?: number | undefined;
|
|
490
504
|
top_logprobs?: number | null | undefined;
|
|
@@ -53,6 +53,7 @@ import { StopServerToolsWhenCondition$outboundSchema, } from "./stopservertoolsw
|
|
|
53
53
|
import { StoredPromptTemplate$outboundSchema, } from "./storedprompttemplate.js";
|
|
54
54
|
import { SubagentServerToolOpenRouter$outboundSchema, } from "./subagentservertoolopenrouter.js";
|
|
55
55
|
import { TextExtendedConfig$outboundSchema, } from "./textextendedconfig.js";
|
|
56
|
+
import { ToolSearchServerTool$outboundSchema, } from "./toolsearchservertool.js";
|
|
56
57
|
import { TraceConfig$outboundSchema, } from "./traceconfig.js";
|
|
57
58
|
import { WebFetchPlugin$outboundSchema, } from "./webfetchplugin.js";
|
|
58
59
|
import { WebFetchServerTool$outboundSchema, } from "./webfetchservertool.js";
|
|
@@ -111,6 +112,11 @@ export const ResponsesRequestToolFunction$outboundSchema = z.object({
|
|
|
111
112
|
parameters: z.nullable(z.record(z.string(), z.any())),
|
|
112
113
|
strict: z.nullable(z.boolean()).optional(),
|
|
113
114
|
type: z.literal("function"),
|
|
115
|
+
deferLoading: z.boolean().optional(),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
deferLoading: "defer_loading",
|
|
119
|
+
});
|
|
114
120
|
});
|
|
115
121
|
export function responsesRequestToolFunctionToJSON(responsesRequestToolFunction) {
|
|
116
122
|
return JSON.stringify(ResponsesRequestToolFunction$outboundSchema.parse(responsesRequestToolFunction));
|
|
@@ -144,6 +150,7 @@ export const ResponsesRequestToolUnion$outboundSchema = z.union([
|
|
|
144
150
|
ApplyPatchServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:apply_patch") })),
|
|
145
151
|
BashServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:bash") })),
|
|
146
152
|
ShellServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:shell") })),
|
|
153
|
+
ToolSearchServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:tool_search") })),
|
|
147
154
|
]);
|
|
148
155
|
export function responsesRequestToolUnionToJSON(responsesRequestToolUnion) {
|
|
149
156
|
return JSON.stringify(ResponsesRequestToolUnion$outboundSchema.parse(responsesRequestToolUnion));
|
|
@@ -223,6 +230,7 @@ export const ResponsesRequest$outboundSchema = z.object({
|
|
|
223
230
|
ApplyPatchServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:apply_patch") })),
|
|
224
231
|
BashServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:bash") })),
|
|
225
232
|
ShellServerToolOpenRouter$outboundSchema.and(z.object({ type: z.literal("openrouter:shell") })),
|
|
233
|
+
ToolSearchServerTool$outboundSchema.and(z.object({ type: z.literal("openrouter:tool_search") })),
|
|
226
234
|
])).optional(),
|
|
227
235
|
topK: z.int().optional(),
|
|
228
236
|
topLogprobs: z.nullable(z.int()).optional(),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { ToolSearchServerToolConfig, ToolSearchServerToolConfig$Outbound } from "./toolsearchservertoolconfig.js";
|
|
4
|
+
export declare const ToolSearchServerToolType: {
|
|
5
|
+
readonly OpenrouterToolSearch: "openrouter:tool_search";
|
|
6
|
+
};
|
|
7
|
+
export type ToolSearchServerToolType = ClosedEnum<typeof ToolSearchServerToolType>;
|
|
8
|
+
/**
|
|
9
|
+
* OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable
|
|
10
|
+
*/
|
|
11
|
+
export type ToolSearchServerTool = {
|
|
12
|
+
/**
|
|
13
|
+
* Configuration for the openrouter:tool_search server tool
|
|
14
|
+
*/
|
|
15
|
+
parameters?: ToolSearchServerToolConfig | undefined;
|
|
16
|
+
type: ToolSearchServerToolType;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const ToolSearchServerToolType$outboundSchema: z.ZodEnum<typeof ToolSearchServerToolType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type ToolSearchServerTool$Outbound = {
|
|
22
|
+
parameters?: ToolSearchServerToolConfig$Outbound | undefined;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const ToolSearchServerTool$outboundSchema: z.ZodType<ToolSearchServerTool$Outbound, ToolSearchServerTool>;
|
|
27
|
+
export declare function toolSearchServerToolToJSON(toolSearchServerTool: ToolSearchServerTool): string;
|
|
28
|
+
//# sourceMappingURL=toolsearchservertool.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: de3e685fadd8
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ToolSearchServerToolConfig$outboundSchema, } from "./toolsearchservertoolconfig.js";
|
|
7
|
+
export const ToolSearchServerToolType = {
|
|
8
|
+
OpenrouterToolSearch: "openrouter:tool_search",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ToolSearchServerToolType$outboundSchema = z.enum(ToolSearchServerToolType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ToolSearchServerTool$outboundSchema = z.object({
|
|
14
|
+
parameters: ToolSearchServerToolConfig$outboundSchema.optional(),
|
|
15
|
+
type: ToolSearchServerToolType$outboundSchema,
|
|
16
|
+
});
|
|
17
|
+
export function toolSearchServerToolToJSON(toolSearchServerTool) {
|
|
18
|
+
return JSON.stringify(ToolSearchServerTool$outboundSchema.parse(toolSearchServerTool));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=toolsearchservertool.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for the openrouter:tool_search server tool
|
|
4
|
+
*/
|
|
5
|
+
export type ToolSearchServerToolConfig = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum tools returned by one search. Defaults to 5.
|
|
8
|
+
*/
|
|
9
|
+
maxResults?: number | undefined;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type ToolSearchServerToolConfig$Outbound = {
|
|
13
|
+
max_results?: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const ToolSearchServerToolConfig$outboundSchema: z.ZodType<ToolSearchServerToolConfig$Outbound, ToolSearchServerToolConfig>;
|
|
17
|
+
export declare function toolSearchServerToolConfigToJSON(toolSearchServerToolConfig: ToolSearchServerToolConfig): string;
|
|
18
|
+
//# sourceMappingURL=toolsearchservertoolconfig.d.ts.map
|