@openrouter/sdk 1.5.55 → 1.5.57
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/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/additionaltoolsitem.d.ts +5 -4
- package/esm/models/additionaltoolsitem.js +3 -0
- package/esm/models/alignmentresponsesrejected.d.ts +4 -1
- package/esm/models/alignmentresponsesrejected.js +6 -0
- package/esm/models/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/createworkspacerequest.d.ts +1 -0
- package/esm/models/createworkspacerequest.js +1 -0
- package/esm/models/decisionschoicequestion.d.ts +4 -4
- package/esm/models/decisionschoicequestion.js +1 -5
- package/esm/models/decisionsnoulquestion.d.ts +12 -12
- package/esm/models/decisionsnoulquestion.js +3 -7
- package/esm/models/decisionsscorequestion.d.ts +4 -4
- package/esm/models/decisionsscorequestion.js +1 -5
- package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.js +1 -0
- package/esm/models/imagegenerationrequest.d.ts +51 -4
- package/esm/models/imagegenerationrequest.js +32 -1
- package/esm/models/index.d.ts +6 -0
- package/esm/models/index.js +6 -0
- package/esm/models/mcpapprovalrequestitem.d.ts +7 -0
- package/esm/models/mcpapprovalrequestitem.js +19 -1
- package/esm/models/mcpcallitem.d.ts +17 -1
- package/esm/models/mcpcallitem.js +18 -0
- package/esm/models/mcpservertool.d.ts +78 -69
- package/esm/models/mcpservertool.js +135 -105
- package/esm/models/mcpservertoolopenrouter.d.ts +28 -0
- package/esm/models/mcpservertoolopenrouter.js +20 -0
- package/esm/models/mcpservertoolparameters.d.ts +152 -0
- package/esm/models/mcpservertoolparameters.js +134 -0
- package/esm/models/openairesponsestoolchoiceunion.d.ts +3 -2
- package/esm/models/openairesponsestoolchoiceunion.js +3 -0
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/outputitemmcpapprovalrequest.d.ts +14 -0
- package/esm/models/outputitemmcpapprovalrequest.js +23 -0
- package/esm/models/outputitemmcpcall.d.ts +74 -0
- package/esm/models/outputitemmcpcall.js +94 -0
- package/esm/models/outputitemmcplisttools.d.ts +25 -0
- package/esm/models/outputitemmcplisttools.js +37 -0
- package/esm/models/outputitems.d.ts +3 -0
- package/esm/models/outputitems.js +2 -0
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/provideroptions.d.ts +6 -0
- package/esm/models/provideroptions.js +1 -0
- package/esm/models/providerresponse.d.ts +1 -0
- package/esm/models/providerresponse.js +1 -0
- package/esm/models/responsesrequest.d.ts +9 -0
- package/esm/models/responsesrequest.js +3 -0
- package/esm/models/toolchoicemcp.d.ts +33 -0
- package/esm/models/toolchoicemcp.js +42 -0
- package/esm/models/toolsearchoutputitem.d.ts +5 -4
- package/esm/models/toolsearchoutputitem.js +3 -0
- package/esm/models/updateworkspacerequest.d.ts +1 -0
- package/esm/models/updateworkspacerequest.js +1 -0
- package/esm/models/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +1 -0
- package/esm/sdk/sdk.d.ts +0 -9
- package/esm/sdk/sdk.js +1 -7
- package/jsr.json +1 -1
- package/package.json +5 -5
- package/esm/funcs/call-model.d.ts +0 -67
- package/esm/funcs/call-model.js +0 -98
- package/esm/lib/anthropic-compat.d.ts +0 -51
- package/esm/lib/anthropic-compat.js +0 -222
- package/esm/lib/async-params.d.ts +0 -107
- package/esm/lib/async-params.js +0 -88
- package/esm/lib/chat-compat.d.ts +0 -47
- package/esm/lib/chat-compat.js +0 -111
- package/esm/lib/claude-constants.d.ts +0 -22
- package/esm/lib/claude-constants.js +0 -20
- package/esm/lib/claude-type-guards.d.ts +0 -10
- package/esm/lib/claude-type-guards.js +0 -70
- package/esm/lib/conversation-state.d.ts +0 -63
- package/esm/lib/conversation-state.js +0 -210
- package/esm/lib/model-result.d.ts +0 -373
- package/esm/lib/model-result.js +0 -1414
- package/esm/lib/next-turn-params.d.ts +0 -30
- package/esm/lib/next-turn-params.js +0 -135
- package/esm/lib/reusable-stream.d.ts +0 -39
- package/esm/lib/reusable-stream.js +0 -192
- package/esm/lib/stop-conditions.d.ts +0 -80
- package/esm/lib/stop-conditions.js +0 -104
- package/esm/lib/stream-transformers.d.ts +0 -118
- package/esm/lib/stream-transformers.js +0 -852
- package/esm/lib/stream-type-guards.d.ts +0 -49
- package/esm/lib/stream-type-guards.js +0 -85
- package/esm/lib/tool-context.d.ts +0 -68
- package/esm/lib/tool-context.js +0 -175
- package/esm/lib/tool-event-broadcaster.d.ts +0 -44
- package/esm/lib/tool-event-broadcaster.js +0 -146
- package/esm/lib/tool-executor.d.ts +0 -74
- package/esm/lib/tool-executor.js +0 -267
- package/esm/lib/tool-orchestrator.d.ts +0 -52
- package/esm/lib/tool-orchestrator.js +0 -180
- package/esm/lib/tool-types.d.ts +0 -573
- package/esm/lib/tool-types.js +0 -80
- package/esm/lib/tool.d.ts +0 -108
- package/esm/lib/tool.js +0 -74
- package/esm/lib/turn-context.d.ts +0 -52
- package/esm/lib/turn-context.js +0 -59
|
@@ -4,11 +4,26 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
export const McpApprovalRequestItemType = {
|
|
8
9
|
McpApprovalRequest: "mcp_approval_request",
|
|
9
10
|
};
|
|
10
11
|
/** @internal */
|
|
11
|
-
export const McpApprovalRequestItemType$
|
|
12
|
+
export const McpApprovalRequestItemType$inboundSchema = z.enum(McpApprovalRequestItemType);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const McpApprovalRequestItemType$outboundSchema = McpApprovalRequestItemType$inboundSchema;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const McpApprovalRequestItem$inboundSchema = z.object({
|
|
17
|
+
arguments: z.string(),
|
|
18
|
+
id: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
server_label: z.string(),
|
|
21
|
+
type: McpApprovalRequestItemType$inboundSchema,
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"server_label": "serverLabel",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
12
27
|
/** @internal */
|
|
13
28
|
export const McpApprovalRequestItem$outboundSchema = z.object({
|
|
14
29
|
arguments: z.string(),
|
|
@@ -24,4 +39,7 @@ export const McpApprovalRequestItem$outboundSchema = z.object({
|
|
|
24
39
|
export function mcpApprovalRequestItemToJSON(mcpApprovalRequestItem) {
|
|
25
40
|
return JSON.stringify(McpApprovalRequestItem$outboundSchema.parse(mcpApprovalRequestItem));
|
|
26
41
|
}
|
|
42
|
+
export function mcpApprovalRequestItemFromJSON(jsonString) {
|
|
43
|
+
return safeParse(jsonString, (x) => McpApprovalRequestItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'McpApprovalRequestItem' from JSON`);
|
|
44
|
+
}
|
|
27
45
|
//# sourceMappingURL=mcpapprovalrequestitem.js.map
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
import { McpToolCallError, McpToolCallError$Outbound } from "./mcptoolcallerror.js";
|
|
6
|
+
export declare const McpCallItemStatus: {
|
|
7
|
+
readonly InProgress: "in_progress";
|
|
8
|
+
readonly Completed: "completed";
|
|
9
|
+
readonly Incomplete: "incomplete";
|
|
10
|
+
readonly Calling: "calling";
|
|
11
|
+
readonly Failed: "failed";
|
|
12
|
+
};
|
|
13
|
+
export type McpCallItemStatus = OpenEnum<typeof McpCallItemStatus>;
|
|
6
14
|
export declare const McpCallItemType: {
|
|
7
15
|
readonly McpCall: "mcp_call";
|
|
8
16
|
};
|
|
@@ -11,6 +19,7 @@ export type McpCallItemType = ClosedEnum<typeof McpCallItemType>;
|
|
|
11
19
|
* An MCP tool call with its output or error
|
|
12
20
|
*/
|
|
13
21
|
export type McpCallItem = {
|
|
22
|
+
approvalRequestId?: string | null | undefined;
|
|
14
23
|
arguments: string;
|
|
15
24
|
/**
|
|
16
25
|
* Error from an MCP tool call, either a plain message or a structured error
|
|
@@ -20,9 +29,14 @@ export type McpCallItem = {
|
|
|
20
29
|
name: string;
|
|
21
30
|
output?: string | null | undefined;
|
|
22
31
|
serverLabel: string;
|
|
32
|
+
status?: McpCallItemStatus | undefined;
|
|
23
33
|
type: McpCallItemType;
|
|
24
34
|
};
|
|
25
35
|
/** @internal */
|
|
36
|
+
export declare const McpCallItemStatus$inboundSchema: z.ZodType<McpCallItemStatus, unknown>;
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const McpCallItemStatus$outboundSchema: z.ZodType<string, McpCallItemStatus>;
|
|
39
|
+
/** @internal */
|
|
26
40
|
export declare const McpCallItemType$inboundSchema: z.ZodEnum<typeof McpCallItemType>;
|
|
27
41
|
/** @internal */
|
|
28
42
|
export declare const McpCallItemType$outboundSchema: z.ZodEnum<typeof McpCallItemType>;
|
|
@@ -30,12 +44,14 @@ export declare const McpCallItemType$outboundSchema: z.ZodEnum<typeof McpCallIte
|
|
|
30
44
|
export declare const McpCallItem$inboundSchema: z.ZodType<McpCallItem, unknown>;
|
|
31
45
|
/** @internal */
|
|
32
46
|
export type McpCallItem$Outbound = {
|
|
47
|
+
approval_request_id?: string | null | undefined;
|
|
33
48
|
arguments: string;
|
|
34
49
|
error?: McpToolCallError$Outbound | null | undefined;
|
|
35
50
|
id: string;
|
|
36
51
|
name: string;
|
|
37
52
|
output?: string | null | undefined;
|
|
38
53
|
server_label: string;
|
|
54
|
+
status?: string | undefined;
|
|
39
55
|
type: string;
|
|
40
56
|
};
|
|
41
57
|
/** @internal */
|
|
@@ -5,40 +5,58 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
8
9
|
import { McpToolCallError$inboundSchema, McpToolCallError$outboundSchema, } from "./mcptoolcallerror.js";
|
|
10
|
+
export const McpCallItemStatus = {
|
|
11
|
+
InProgress: "in_progress",
|
|
12
|
+
Completed: "completed",
|
|
13
|
+
Incomplete: "incomplete",
|
|
14
|
+
Calling: "calling",
|
|
15
|
+
Failed: "failed",
|
|
16
|
+
};
|
|
9
17
|
export const McpCallItemType = {
|
|
10
18
|
McpCall: "mcp_call",
|
|
11
19
|
};
|
|
12
20
|
/** @internal */
|
|
21
|
+
export const McpCallItemStatus$inboundSchema = openEnums.inboundSchema(McpCallItemStatus);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const McpCallItemStatus$outboundSchema = openEnums.outboundSchema(McpCallItemStatus);
|
|
24
|
+
/** @internal */
|
|
13
25
|
export const McpCallItemType$inboundSchema = z.enum(McpCallItemType);
|
|
14
26
|
/** @internal */
|
|
15
27
|
export const McpCallItemType$outboundSchema = McpCallItemType$inboundSchema;
|
|
16
28
|
/** @internal */
|
|
17
29
|
export const McpCallItem$inboundSchema = z
|
|
18
30
|
.object({
|
|
31
|
+
approval_request_id: z.nullable(z.string()).optional(),
|
|
19
32
|
arguments: z.string(),
|
|
20
33
|
error: z.nullable(McpToolCallError$inboundSchema).optional(),
|
|
21
34
|
id: z.string(),
|
|
22
35
|
name: z.string(),
|
|
23
36
|
output: z.nullable(z.string()).optional(),
|
|
24
37
|
server_label: z.string(),
|
|
38
|
+
status: McpCallItemStatus$inboundSchema.optional(),
|
|
25
39
|
type: McpCallItemType$inboundSchema,
|
|
26
40
|
}).transform((v) => {
|
|
27
41
|
return remap$(v, {
|
|
42
|
+
"approval_request_id": "approvalRequestId",
|
|
28
43
|
"server_label": "serverLabel",
|
|
29
44
|
});
|
|
30
45
|
});
|
|
31
46
|
/** @internal */
|
|
32
47
|
export const McpCallItem$outboundSchema = z.object({
|
|
48
|
+
approvalRequestId: z.nullable(z.string()).optional(),
|
|
33
49
|
arguments: z.string(),
|
|
34
50
|
error: z.nullable(McpToolCallError$outboundSchema).optional(),
|
|
35
51
|
id: z.string(),
|
|
36
52
|
name: z.string(),
|
|
37
53
|
output: z.nullable(z.string()).optional(),
|
|
38
54
|
serverLabel: z.string(),
|
|
55
|
+
status: McpCallItemStatus$outboundSchema.optional(),
|
|
39
56
|
type: McpCallItemType$outboundSchema,
|
|
40
57
|
}).transform((v) => {
|
|
41
58
|
return remap$(v, {
|
|
59
|
+
approvalRequestId: "approval_request_id",
|
|
42
60
|
serverLabel: "server_label",
|
|
43
61
|
});
|
|
44
62
|
});
|
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
export type
|
|
5
|
+
export type McpServerToolAllowedTools = {
|
|
6
6
|
readOnly?: boolean | undefined;
|
|
7
7
|
toolNames?: Array<string> | undefined;
|
|
8
|
+
additionalProperties?: {
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
} | undefined;
|
|
8
11
|
};
|
|
9
|
-
export type
|
|
10
|
-
export declare const
|
|
11
|
-
readonly ConnectorDropbox: "connector_dropbox";
|
|
12
|
-
readonly ConnectorGmail: "connector_gmail";
|
|
13
|
-
readonly ConnectorGooglecalendar: "connector_googlecalendar";
|
|
14
|
-
readonly ConnectorGoogledrive: "connector_googledrive";
|
|
15
|
-
readonly ConnectorMicrosoftteams: "connector_microsoftteams";
|
|
16
|
-
readonly ConnectorOutlookcalendar: "connector_outlookcalendar";
|
|
17
|
-
readonly ConnectorOutlookemail: "connector_outlookemail";
|
|
18
|
-
readonly ConnectorSharepoint: "connector_sharepoint";
|
|
19
|
-
};
|
|
20
|
-
export type ConnectorId = OpenEnum<typeof ConnectorId>;
|
|
21
|
-
export declare const RequireApprovalNever: {
|
|
12
|
+
export type McpServerToolAllowedToolsUnion = Array<string> | McpServerToolAllowedTools;
|
|
13
|
+
export declare const McpServerToolRequireApprovalNever: {
|
|
22
14
|
readonly Never: "never";
|
|
23
15
|
};
|
|
24
|
-
export type
|
|
25
|
-
export declare const
|
|
16
|
+
export type McpServerToolRequireApprovalNever = ClosedEnum<typeof McpServerToolRequireApprovalNever>;
|
|
17
|
+
export declare const McpServerToolRequireApprovalAlways: {
|
|
26
18
|
readonly Always: "always";
|
|
27
19
|
};
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
20
|
+
export type McpServerToolRequireApprovalAlways = ClosedEnum<typeof McpServerToolRequireApprovalAlways>;
|
|
21
|
+
export type McpServerToolAlways = {
|
|
22
|
+
readOnly?: boolean | undefined;
|
|
30
23
|
toolNames?: Array<string> | undefined;
|
|
24
|
+
additionalProperties?: {
|
|
25
|
+
[k: string]: any;
|
|
26
|
+
} | undefined;
|
|
31
27
|
};
|
|
32
|
-
export type
|
|
28
|
+
export type McpServerToolNever = {
|
|
29
|
+
readOnly?: boolean | undefined;
|
|
33
30
|
toolNames?: Array<string> | undefined;
|
|
31
|
+
additionalProperties?: {
|
|
32
|
+
[k: string]: any;
|
|
33
|
+
} | undefined;
|
|
34
34
|
};
|
|
35
|
-
export type
|
|
36
|
-
always?:
|
|
37
|
-
never?:
|
|
35
|
+
export type McpServerToolRequireApproval = {
|
|
36
|
+
always?: McpServerToolAlways | undefined;
|
|
37
|
+
never?: McpServerToolNever | undefined;
|
|
38
|
+
additionalProperties?: {
|
|
39
|
+
[k: string]: any;
|
|
40
|
+
} | undefined;
|
|
38
41
|
};
|
|
39
|
-
export type
|
|
42
|
+
export type McpServerToolRequireApprovalUnion = McpServerToolRequireApproval | McpServerToolRequireApprovalAlways | McpServerToolRequireApprovalNever;
|
|
40
43
|
export declare const McpServerToolType: {
|
|
41
44
|
readonly Mcp: "mcp";
|
|
42
45
|
};
|
|
@@ -45,88 +48,93 @@ export type McpServerToolType = ClosedEnum<typeof McpServerToolType>;
|
|
|
45
48
|
* MCP (Model Context Protocol) tool configuration
|
|
46
49
|
*/
|
|
47
50
|
export type McpServerTool = {
|
|
48
|
-
allowedTools?: Array<string> |
|
|
51
|
+
allowedTools?: Array<string> | McpServerToolAllowedTools | null | undefined;
|
|
49
52
|
authorization?: string | undefined;
|
|
50
|
-
connectorId?:
|
|
53
|
+
connectorId?: string | undefined;
|
|
51
54
|
headers?: {
|
|
52
55
|
[k: string]: string;
|
|
53
56
|
} | null | undefined;
|
|
54
|
-
requireApproval?:
|
|
57
|
+
requireApproval?: McpServerToolRequireApproval | McpServerToolRequireApprovalAlways | McpServerToolRequireApprovalNever | null | undefined;
|
|
55
58
|
serverDescription?: string | undefined;
|
|
56
59
|
serverLabel: string;
|
|
57
60
|
serverUrl?: string | undefined;
|
|
58
61
|
type: McpServerToolType;
|
|
62
|
+
additionalProperties?: {
|
|
63
|
+
[k: string]: any;
|
|
64
|
+
} | undefined;
|
|
59
65
|
};
|
|
60
66
|
/** @internal */
|
|
61
|
-
export declare const
|
|
67
|
+
export declare const McpServerToolAllowedTools$inboundSchema: z.ZodType<McpServerToolAllowedTools, unknown>;
|
|
62
68
|
/** @internal */
|
|
63
|
-
export type
|
|
69
|
+
export type McpServerToolAllowedTools$Outbound = {
|
|
64
70
|
read_only?: boolean | undefined;
|
|
65
71
|
tool_names?: Array<string> | undefined;
|
|
72
|
+
[additionalProperties: string]: unknown;
|
|
66
73
|
};
|
|
67
74
|
/** @internal */
|
|
68
|
-
export declare const
|
|
69
|
-
export declare function
|
|
70
|
-
export declare function
|
|
71
|
-
/** @internal */
|
|
72
|
-
export declare const AllowedToolsUnion$inboundSchema: z.ZodType<AllowedToolsUnion, unknown>;
|
|
75
|
+
export declare const McpServerToolAllowedTools$outboundSchema: z.ZodType<McpServerToolAllowedTools$Outbound, McpServerToolAllowedTools>;
|
|
76
|
+
export declare function mcpServerToolAllowedToolsToJSON(mcpServerToolAllowedTools: McpServerToolAllowedTools): string;
|
|
77
|
+
export declare function mcpServerToolAllowedToolsFromJSON(jsonString: string): SafeParseResult<McpServerToolAllowedTools, SDKValidationError>;
|
|
73
78
|
/** @internal */
|
|
74
|
-
export
|
|
79
|
+
export declare const McpServerToolAllowedToolsUnion$inboundSchema: z.ZodType<McpServerToolAllowedToolsUnion, unknown>;
|
|
75
80
|
/** @internal */
|
|
76
|
-
export
|
|
77
|
-
export declare function allowedToolsUnionToJSON(allowedToolsUnion: AllowedToolsUnion): string;
|
|
78
|
-
export declare function allowedToolsUnionFromJSON(jsonString: string): SafeParseResult<AllowedToolsUnion, SDKValidationError>;
|
|
81
|
+
export type McpServerToolAllowedToolsUnion$Outbound = Array<string> | McpServerToolAllowedTools$Outbound;
|
|
79
82
|
/** @internal */
|
|
80
|
-
export declare const
|
|
83
|
+
export declare const McpServerToolAllowedToolsUnion$outboundSchema: z.ZodType<McpServerToolAllowedToolsUnion$Outbound, McpServerToolAllowedToolsUnion>;
|
|
84
|
+
export declare function mcpServerToolAllowedToolsUnionToJSON(mcpServerToolAllowedToolsUnion: McpServerToolAllowedToolsUnion): string;
|
|
85
|
+
export declare function mcpServerToolAllowedToolsUnionFromJSON(jsonString: string): SafeParseResult<McpServerToolAllowedToolsUnion, SDKValidationError>;
|
|
81
86
|
/** @internal */
|
|
82
|
-
export declare const
|
|
87
|
+
export declare const McpServerToolRequireApprovalNever$inboundSchema: z.ZodEnum<typeof McpServerToolRequireApprovalNever>;
|
|
83
88
|
/** @internal */
|
|
84
|
-
export declare const
|
|
89
|
+
export declare const McpServerToolRequireApprovalNever$outboundSchema: z.ZodEnum<typeof McpServerToolRequireApprovalNever>;
|
|
85
90
|
/** @internal */
|
|
86
|
-
export declare const
|
|
91
|
+
export declare const McpServerToolRequireApprovalAlways$inboundSchema: z.ZodEnum<typeof McpServerToolRequireApprovalAlways>;
|
|
87
92
|
/** @internal */
|
|
88
|
-
export declare const
|
|
93
|
+
export declare const McpServerToolRequireApprovalAlways$outboundSchema: z.ZodEnum<typeof McpServerToolRequireApprovalAlways>;
|
|
89
94
|
/** @internal */
|
|
90
|
-
export declare const
|
|
95
|
+
export declare const McpServerToolAlways$inboundSchema: z.ZodType<McpServerToolAlways, unknown>;
|
|
91
96
|
/** @internal */
|
|
92
|
-
export
|
|
93
|
-
|
|
94
|
-
export type Always$Outbound = {
|
|
97
|
+
export type McpServerToolAlways$Outbound = {
|
|
98
|
+
read_only?: boolean | undefined;
|
|
95
99
|
tool_names?: Array<string> | undefined;
|
|
100
|
+
[additionalProperties: string]: unknown;
|
|
96
101
|
};
|
|
97
102
|
/** @internal */
|
|
98
|
-
export declare const
|
|
99
|
-
export declare function
|
|
100
|
-
export declare function
|
|
103
|
+
export declare const McpServerToolAlways$outboundSchema: z.ZodType<McpServerToolAlways$Outbound, McpServerToolAlways>;
|
|
104
|
+
export declare function mcpServerToolAlwaysToJSON(mcpServerToolAlways: McpServerToolAlways): string;
|
|
105
|
+
export declare function mcpServerToolAlwaysFromJSON(jsonString: string): SafeParseResult<McpServerToolAlways, SDKValidationError>;
|
|
101
106
|
/** @internal */
|
|
102
|
-
export declare const
|
|
107
|
+
export declare const McpServerToolNever$inboundSchema: z.ZodType<McpServerToolNever, unknown>;
|
|
103
108
|
/** @internal */
|
|
104
|
-
export type
|
|
109
|
+
export type McpServerToolNever$Outbound = {
|
|
110
|
+
read_only?: boolean | undefined;
|
|
105
111
|
tool_names?: Array<string> | undefined;
|
|
112
|
+
[additionalProperties: string]: unknown;
|
|
106
113
|
};
|
|
107
114
|
/** @internal */
|
|
108
|
-
export declare const
|
|
109
|
-
export declare function
|
|
110
|
-
export declare function
|
|
115
|
+
export declare const McpServerToolNever$outboundSchema: z.ZodType<McpServerToolNever$Outbound, McpServerToolNever>;
|
|
116
|
+
export declare function mcpServerToolNeverToJSON(mcpServerToolNever: McpServerToolNever): string;
|
|
117
|
+
export declare function mcpServerToolNeverFromJSON(jsonString: string): SafeParseResult<McpServerToolNever, SDKValidationError>;
|
|
111
118
|
/** @internal */
|
|
112
|
-
export declare const
|
|
119
|
+
export declare const McpServerToolRequireApproval$inboundSchema: z.ZodType<McpServerToolRequireApproval, unknown>;
|
|
113
120
|
/** @internal */
|
|
114
|
-
export type
|
|
115
|
-
always?:
|
|
116
|
-
never?:
|
|
121
|
+
export type McpServerToolRequireApproval$Outbound = {
|
|
122
|
+
always?: McpServerToolAlways$Outbound | undefined;
|
|
123
|
+
never?: McpServerToolNever$Outbound | undefined;
|
|
124
|
+
[additionalProperties: string]: unknown;
|
|
117
125
|
};
|
|
118
126
|
/** @internal */
|
|
119
|
-
export declare const
|
|
120
|
-
export declare function
|
|
121
|
-
export declare function
|
|
127
|
+
export declare const McpServerToolRequireApproval$outboundSchema: z.ZodType<McpServerToolRequireApproval$Outbound, McpServerToolRequireApproval>;
|
|
128
|
+
export declare function mcpServerToolRequireApprovalToJSON(mcpServerToolRequireApproval: McpServerToolRequireApproval): string;
|
|
129
|
+
export declare function mcpServerToolRequireApprovalFromJSON(jsonString: string): SafeParseResult<McpServerToolRequireApproval, SDKValidationError>;
|
|
122
130
|
/** @internal */
|
|
123
|
-
export declare const
|
|
131
|
+
export declare const McpServerToolRequireApprovalUnion$inboundSchema: z.ZodType<McpServerToolRequireApprovalUnion, unknown>;
|
|
124
132
|
/** @internal */
|
|
125
|
-
export type
|
|
133
|
+
export type McpServerToolRequireApprovalUnion$Outbound = McpServerToolRequireApproval$Outbound | string | string;
|
|
126
134
|
/** @internal */
|
|
127
|
-
export declare const
|
|
128
|
-
export declare function
|
|
129
|
-
export declare function
|
|
135
|
+
export declare const McpServerToolRequireApprovalUnion$outboundSchema: z.ZodType<McpServerToolRequireApprovalUnion$Outbound, McpServerToolRequireApprovalUnion>;
|
|
136
|
+
export declare function mcpServerToolRequireApprovalUnionToJSON(mcpServerToolRequireApprovalUnion: McpServerToolRequireApprovalUnion): string;
|
|
137
|
+
export declare function mcpServerToolRequireApprovalUnionFromJSON(jsonString: string): SafeParseResult<McpServerToolRequireApprovalUnion, SDKValidationError>;
|
|
130
138
|
/** @internal */
|
|
131
139
|
export declare const McpServerToolType$inboundSchema: z.ZodEnum<typeof McpServerToolType>;
|
|
132
140
|
/** @internal */
|
|
@@ -135,17 +143,18 @@ export declare const McpServerToolType$outboundSchema: z.ZodEnum<typeof McpServe
|
|
|
135
143
|
export declare const McpServerTool$inboundSchema: z.ZodType<McpServerTool, unknown>;
|
|
136
144
|
/** @internal */
|
|
137
145
|
export type McpServerTool$Outbound = {
|
|
138
|
-
allowed_tools?: Array<string> |
|
|
146
|
+
allowed_tools?: Array<string> | McpServerToolAllowedTools$Outbound | null | undefined;
|
|
139
147
|
authorization?: string | undefined;
|
|
140
148
|
connector_id?: string | undefined;
|
|
141
149
|
headers?: {
|
|
142
150
|
[k: string]: string;
|
|
143
151
|
} | null | undefined;
|
|
144
|
-
require_approval?:
|
|
152
|
+
require_approval?: McpServerToolRequireApproval$Outbound | string | string | null | undefined;
|
|
145
153
|
server_description?: string | undefined;
|
|
146
154
|
server_label: string;
|
|
147
155
|
server_url?: string | undefined;
|
|
148
156
|
type: string;
|
|
157
|
+
[additionalProperties: string]: unknown;
|
|
149
158
|
};
|
|
150
159
|
/** @internal */
|
|
151
160
|
export declare const McpServerTool$outboundSchema: z.ZodType<McpServerTool$Outbound, McpServerTool>;
|