@composio/core 0.11.0 → 0.13.0
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/dist/BaseProvider-BBnsv9kS.d.mts +29425 -0
- package/dist/{BaseProvider-CVbQxTNa.d.cts → BaseProvider-Brb3o86-.d.mts} +91 -44
- package/dist/CustomTool-D9qwyMrv.mjs +468 -0
- package/dist/{CustomTool-C-IUByoU.d.cts → CustomTool-Dmi6ti3I.d.mts} +2 -4
- package/dist/{CustomTool-CChQSp44.d.mts → CustomTool-DrJpOhY2.d.mts} +2 -4
- package/dist/{FileModifierErrors-C7z16Dfi.mjs → FileModifierErrors-3fSwIWoa.mjs} +35 -36
- package/dist/{Telemetry-DQax33Gh.mjs → Telemetry-DhGI_J4G.mjs} +15 -15
- package/dist/{composio-pcA13w87.d.cts → composio-DHIKRdeG.d.mts} +641 -380
- package/dist/{composio-BlASKqjQ.d.mts → composio-vMwhASRc.d.mts} +1390 -1129
- package/dist/{customTool.types-QtkAZQma.d.cts → customTool.types-CKH2R2ia.d.mts} +487 -189
- package/dist/{customTool.types-DLIORcYN.d.mts → customTool.types-DXin7Cfc.d.mts} +924 -626
- package/dist/docs/error-consistency.md +97 -0
- package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +306 -0
- package/dist/docs/reference/sdk-reference/typescript/composio.mdx +205 -0
- package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +488 -0
- package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +94 -0
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +67 -0
- package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +304 -0
- package/dist/docs/reference/sdk-reference/typescript/meta.json +17 -0
- package/dist/docs/reference/sdk-reference/typescript/remote-file.mdx +107 -0
- package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +163 -0
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +229 -0
- package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +131 -0
- package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +169 -0
- package/dist/docs/reference/sdk-reference/typescript/tools.mdx +453 -0
- package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +434 -0
- package/dist/{CustomTool-D5s-aADw.mjs → errors-DSIlYfl5.mjs} +72 -459
- package/dist/experimental/index.d.mts +2 -3
- package/dist/experimental/index.mjs +1 -3
- package/dist/{fileUtils.node-Dq7ebZPC.mjs → fileUtils.node-BiO1JQsJ.mjs} +26 -25
- package/dist/index.d.mts +1708 -2400
- package/dist/index.mjs +2632 -2006
- package/dist/jsonSchema-CFKdONpP.mjs +251 -0
- package/dist/models/Files.node.d.mts +1 -2
- package/dist/models/Files.node.mjs +3 -4
- package/dist/models/Files.workerd.d.mts +0 -1
- package/dist/platform/node.d.mts +1 -2
- package/dist/platform/workerd.d.mts +1 -2
- package/dist/{chunk-CWQeghP5.mjs → rolldown-runtime-w6R9maHv.mjs} +3 -5
- package/dist/{types-J2KCXP8R.d.mts → types-D4Id3wXA.d.mts} +2 -3
- package/dist/{types-DRG5qLxI.d.cts → types-qTbYYBJw.d.mts} +2 -3
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.mjs +3 -0
- package/dist/utils/json-schema.d.mts +2 -0
- package/dist/utils/json-schema.mjs +3 -0
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +44 -24
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +3 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
- package/docs/error-consistency.md +97 -0
- package/package.json +40 -88
- package/src/composio.ts +509 -0
- package/src/errors/AuthConfigErrors.ts +23 -0
- package/src/errors/ComposioError.ts +408 -0
- package/src/errors/ConnectedAccountsErrors.ts +158 -0
- package/src/errors/ConnectionRequestErrors.ts +32 -0
- package/src/errors/FileModifierErrors.ts +100 -0
- package/src/errors/PusherErrors.ts +28 -0
- package/src/errors/RemoteFileErrors.ts +62 -0
- package/src/errors/SDKErrors.ts +92 -0
- package/src/errors/ToolErrors.ts +244 -0
- package/src/errors/ToolkitErrors.ts +39 -0
- package/src/errors/TriggerErrors.ts +120 -0
- package/src/errors/ValidationErrors.ts +99 -0
- package/src/errors/index.ts +41 -0
- package/src/experimental/index.ts +28 -0
- package/src/index.ts +64 -0
- package/src/lib/toolRouterConstants.ts +1 -0
- package/src/lib/toolRouterParams.ts +306 -0
- package/src/models/AuthConfigs.ts +398 -0
- package/src/models/AuthScheme.ts +206 -0
- package/src/models/ConnectedAccounts.ts +735 -0
- package/src/models/ConnectionRequest.ts +150 -0
- package/src/models/CustomTool.ts +676 -0
- package/src/models/Experimental.ts +202 -0
- package/src/models/Files.node.ts +93 -0
- package/src/models/Files.workerd.ts +49 -0
- package/src/models/MCP.ts +478 -0
- package/src/models/RemoteFile.ts +172 -0
- package/src/models/SessionContext.ts +147 -0
- package/src/models/Sessions.ts +21 -0
- package/src/models/ToolRouter.ts +391 -0
- package/src/models/ToolRouterSession.ts +827 -0
- package/src/models/ToolRouterSessionFileMount.ts +389 -0
- package/src/models/Toolkits.ts +412 -0
- package/src/models/Tools.ts +1260 -0
- package/src/models/Triggers.ts +1381 -0
- package/src/models/customToolExecution.ts +118 -0
- package/src/models/inlineCustomToolsPayload.ts +17 -0
- package/src/models/proxyParamsTransform.ts +26 -0
- package/src/provider/BaseProvider.ts +138 -0
- package/src/provider/ComposioProvider.ts +29 -0
- package/src/provider/OpenAIProvider.ts +547 -0
- package/src/services/internal/InternalService.ts +50 -0
- package/src/services/internal/InternalService.types.ts +14 -0
- package/src/services/pusher/Pusher.ts +230 -0
- package/src/services/telemetry/TelemetryService.ts +48 -0
- package/src/services/telemetry/TelemetryService.types.ts +67 -0
- package/src/telemetry/BatchProcessor.ts +77 -0
- package/src/telemetry/README.md +123 -0
- package/src/telemetry/Telemetry.ts +356 -0
- package/src/types/ToolRouterSessionFilesMount.types.ts +96 -0
- package/src/types/authConfigs.types.ts +174 -0
- package/src/types/composio.types.ts +1 -0
- package/src/types/connectedAccountAuthStates.types.ts +852 -0
- package/src/types/connectedAccounts.types.ts +395 -0
- package/src/types/connectionRequest.types.ts +16 -0
- package/src/types/customTool.types.ts +261 -0
- package/{dist/files.types-lo4zZd87.d.cts → src/types/files.types.ts} +3 -5
- package/src/types/mcp.experimental.types.ts +163 -0
- package/src/types/mcp.types.ts +362 -0
- package/src/types/modifiers.types.ts +663 -0
- package/src/types/org.types.ts +0 -0
- package/src/types/provider.types.ts +41 -0
- package/src/types/pusher.types.ts +18 -0
- package/src/types/requestOptions.types.ts +62 -0
- package/src/types/telemetry.types.ts +89 -0
- package/src/types/tool.types.ts +408 -0
- package/src/types/toolRouter.types.ts +761 -0
- package/src/types/toolkit.types.ts +130 -0
- package/src/types/triggers.types.ts +401 -0
- package/src/types/webhookEvents.types.ts +219 -0
- package/src/utils/buffer.ts +30 -0
- package/src/utils/cancellation.ts +22 -0
- package/src/utils/config-defaults/ConfigDefaults.node.ts +7 -0
- package/src/utils/config-defaults/ConfigDefaults.workerd.ts +10 -0
- package/src/utils/config-defaults/index.ts +1 -0
- package/src/utils/config-defaults/types.ts +14 -0
- package/src/utils/constants.ts +22 -0
- package/src/utils/crypto.ts +34 -0
- package/src/utils/env.ts +34 -0
- package/src/utils/fileDirs.ts +81 -0
- package/src/utils/fileUtils.node.ts +458 -0
- package/src/utils/json-schema.ts +1 -0
- package/src/utils/jsonSchema.ts +355 -0
- package/src/utils/logger.ts +99 -0
- package/src/utils/mime.ts +75 -0
- package/src/utils/modifiers/FileToolModifier.node.ts +477 -0
- package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +132 -0
- package/src/utils/modifiers/FileToolModifier.workerd.ts +51 -0
- package/src/utils/pagination.ts +73 -0
- package/src/utils/pusher.ts +286 -0
- package/src/utils/schemaPropertyKeys.ts +433 -0
- package/src/utils/sdk.ts +110 -0
- package/src/utils/sensitiveFileUploadPaths.node.ts +105 -0
- package/src/utils/session.ts +114 -0
- package/src/utils/toolArguments.ts +73 -0
- package/src/utils/toolkitVersion.ts +26 -0
- package/src/utils/transform.ts +42 -0
- package/src/utils/transformers/authConfigs.ts +107 -0
- package/src/utils/transformers/connectedAccounts.ts +119 -0
- package/src/utils/transformers/mcp.ts +164 -0
- package/src/utils/transformers/toolRouterResponseTransform.ts +160 -0
- package/src/utils/transformers/toolkits.ts +100 -0
- package/src/utils/transformers/triggers.ts +118 -0
- package/src/utils/uploadDirAllowlist.node.ts +178 -0
- package/src/utils/uuid.ts +7 -0
- package/src/utils/version.ts +58 -0
- package/src/utils/zodSchema.ts +90 -0
- package/dist/BaseProvider-BvHvJLXc.d.mts +0 -29378
- package/dist/CustomTool-D3-NreIm.cjs +0 -1341
- package/dist/FileModifierErrors-BYJBHiay.cjs +0 -554
- package/dist/FileToolModifier.utils.neutral-DSBQs9-i.cjs +0 -96
- package/dist/Telemetry-BQ_pl5AK.cjs +0 -360
- package/dist/buffer-BjWptbNH.cjs +0 -63
- package/dist/chunk-CQwRTUmo.cjs +0 -53
- package/dist/experimental/index.cjs +0 -5
- package/dist/experimental/index.d.cts +0 -3
- package/dist/fileUtils.node-DtnSRMWa.cjs +0 -462
- package/dist/index.cjs +0 -8523
- package/dist/index.d.cts +0 -6065
- package/dist/models/Files.node.cjs +0 -55
- package/dist/models/Files.node.d.cts +0 -56
- package/dist/models/Files.workerd.cjs +0 -29
- package/dist/models/Files.workerd.d.cts +0 -13
- package/dist/platform/node.cjs +0 -55
- package/dist/platform/node.d.cts +0 -11
- package/dist/platform/workerd.cjs +0 -42
- package/dist/platform/workerd.d.cts +0 -12
- package/dist/types-pDNm1lYs.d.cts +0 -69
- package/dist/utils/config-defaults/ConfigDefaults.node.cjs +0 -10
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +0 -7
- package/dist/utils/config-defaults/ConfigDefaults.workerd.cjs +0 -10
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +0 -7
- package/dist/utils/modifiers/FileToolModifier.node.cjs +0 -224
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +0 -22
- package/dist/utils/modifiers/FileToolModifier.workerd.cjs +0 -27
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +0 -20
- /package/dist/{FileToolModifier.utils.neutral-BpSceNK8.mjs → FileToolModifier.utils.neutral-B5rT711M.mjs} +0 -0
- /package/dist/{buffer-yOtEsT4J.mjs → buffer-PcbMMsgm.mjs} +0 -0
- /package/dist/{files.types-BXDWA_zS.d.mts → files.types-DeMC_mAW.d.mts} +0 -0
- /package/dist/{types-HpJQ8K9l.d.mts → types-DdoCRzLj.d.mts} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-
|
|
1
|
+
import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-Brb3o86-.mjs";
|
|
2
2
|
import { Composio } from "@composio/client";
|
|
3
|
-
import z, { z
|
|
3
|
+
import z$1, { z } from "zod/v3";
|
|
4
|
+
import { z as z$2 } from "zod/v4";
|
|
4
5
|
import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
|
|
5
6
|
import { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
6
7
|
|
|
@@ -17,9 +18,9 @@ declare const ConnectedAccountStatuses: {
|
|
|
17
18
|
readonly INACTIVE: "INACTIVE";
|
|
18
19
|
readonly REVOKED: "REVOKED";
|
|
19
20
|
};
|
|
20
|
-
declare const ConnectedAccountStatusSchema: z
|
|
21
|
+
declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
21
22
|
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
22
|
-
type ConnectedAccountStatusEnum = z
|
|
23
|
+
type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
|
|
23
24
|
/**
|
|
24
25
|
* Sharing model for a connected account.
|
|
25
26
|
*
|
|
@@ -33,13 +34,13 @@ declare const ConnectedAccountTypes: {
|
|
|
33
34
|
readonly PRIVATE: "PRIVATE";
|
|
34
35
|
readonly SHARED: "SHARED";
|
|
35
36
|
};
|
|
36
|
-
declare const ConnectedAccountTypeSchema: z
|
|
37
|
+
declare const ConnectedAccountTypeSchema: z.ZodEnum<["PRIVATE", "SHARED"]>;
|
|
37
38
|
type ConnectedAccountType = (typeof ConnectedAccountTypes)[keyof typeof ConnectedAccountTypes];
|
|
38
|
-
declare const ConnectedAccountAclConfigSchema: z
|
|
39
|
-
allowAllUsers: z
|
|
40
|
-
allowedUserIds: z
|
|
41
|
-
notAllowedUserIds: z
|
|
42
|
-
}, "strip", z
|
|
39
|
+
declare const ConnectedAccountAclConfigSchema: z.ZodObject<{
|
|
40
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
44
|
allowAllUsers?: boolean | undefined;
|
|
44
45
|
allowedUserIds?: string[] | undefined;
|
|
45
46
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -48,17 +49,17 @@ declare const ConnectedAccountAclConfigSchema: z$1.ZodObject<{
|
|
|
48
49
|
allowedUserIds?: string[] | undefined;
|
|
49
50
|
notAllowedUserIds?: string[] | undefined;
|
|
50
51
|
}>;
|
|
51
|
-
type ConnectedAccountAclConfig = z
|
|
52
|
+
type ConnectedAccountAclConfig = z.infer<typeof ConnectedAccountAclConfigSchema>;
|
|
52
53
|
/**
|
|
53
54
|
* Resolved ACL as it appears on responses. All three fields are populated
|
|
54
55
|
* when the field is visible; the field itself is `undefined` for callers
|
|
55
56
|
* not authorised to see it.
|
|
56
57
|
*/
|
|
57
|
-
declare const ConnectedAccountAclConfigResponseSchema: z
|
|
58
|
-
allowAllUsers: z
|
|
59
|
-
allowedUserIds: z
|
|
60
|
-
notAllowedUserIds: z
|
|
61
|
-
}, "strip", z
|
|
58
|
+
declare const ConnectedAccountAclConfigResponseSchema: z.ZodObject<{
|
|
59
|
+
allowAllUsers: z.ZodBoolean;
|
|
60
|
+
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
61
|
+
notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
63
|
allowAllUsers: boolean;
|
|
63
64
|
allowedUserIds: string[];
|
|
64
65
|
notAllowedUserIds: string[];
|
|
@@ -67,7 +68,7 @@ declare const ConnectedAccountAclConfigResponseSchema: z$1.ZodObject<{
|
|
|
67
68
|
allowedUserIds: string[];
|
|
68
69
|
notAllowedUserIds: string[];
|
|
69
70
|
}>;
|
|
70
|
-
type ConnectedAccountAclConfigResponse = z
|
|
71
|
+
type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfigResponseSchema>;
|
|
71
72
|
/**
|
|
72
73
|
* Experimental options for SHARED connections, passed at create / link time.
|
|
73
74
|
*
|
|
@@ -75,13 +76,13 @@ type ConnectedAccountAclConfigResponse = z$1.infer<typeof ConnectedAccountAclCon
|
|
|
75
76
|
* dedicated `experimental` block on every input and response so the
|
|
76
77
|
* experimental status is visible at every call site.
|
|
77
78
|
*/
|
|
78
|
-
declare const ConnectedAccountExperimentalSchema: z
|
|
79
|
-
accountType: z
|
|
80
|
-
aclConfigForShared: z
|
|
81
|
-
allowAllUsers: z
|
|
82
|
-
allowedUserIds: z
|
|
83
|
-
notAllowedUserIds: z
|
|
84
|
-
}, "strip", z
|
|
79
|
+
declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
80
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
81
|
+
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
86
|
allowAllUsers?: boolean | undefined;
|
|
86
87
|
allowedUserIds?: string[] | undefined;
|
|
87
88
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -90,7 +91,7 @@ declare const ConnectedAccountExperimentalSchema: z$1.ZodObject<{
|
|
|
90
91
|
allowedUserIds?: string[] | undefined;
|
|
91
92
|
notAllowedUserIds?: string[] | undefined;
|
|
92
93
|
}>>;
|
|
93
|
-
}, "strip", z
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
95
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
95
96
|
aclConfigForShared?: {
|
|
96
97
|
allowAllUsers?: boolean | undefined;
|
|
@@ -105,19 +106,19 @@ declare const ConnectedAccountExperimentalSchema: z$1.ZodObject<{
|
|
|
105
106
|
notAllowedUserIds?: string[] | undefined;
|
|
106
107
|
} | undefined;
|
|
107
108
|
}>;
|
|
108
|
-
type ConnectedAccountExperimental = z
|
|
109
|
+
type ConnectedAccountExperimental = z.infer<typeof ConnectedAccountExperimentalSchema>;
|
|
109
110
|
/**
|
|
110
111
|
* Resolved experimental block on retrieve / list responses. `accountType`
|
|
111
112
|
* is always present when the block is; `aclConfigForShared` is only
|
|
112
113
|
* present when the caller is authorised to see the ACL.
|
|
113
114
|
*/
|
|
114
|
-
declare const ConnectedAccountExperimentalResponseSchema: z
|
|
115
|
-
accountType: z
|
|
116
|
-
aclConfigForShared: z
|
|
117
|
-
allowAllUsers: z
|
|
118
|
-
allowedUserIds: z
|
|
119
|
-
notAllowedUserIds: z
|
|
120
|
-
}, "strip", z
|
|
115
|
+
declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
116
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
117
|
+
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
allowAllUsers: z.ZodBoolean;
|
|
119
|
+
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
120
|
+
notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
122
|
allowAllUsers: boolean;
|
|
122
123
|
allowedUserIds: string[];
|
|
123
124
|
notAllowedUserIds: string[];
|
|
@@ -126,7 +127,7 @@ declare const ConnectedAccountExperimentalResponseSchema: z$1.ZodObject<{
|
|
|
126
127
|
allowedUserIds: string[];
|
|
127
128
|
notAllowedUserIds: string[];
|
|
128
129
|
}>>;
|
|
129
|
-
}, "strip", z
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
131
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
131
132
|
aclConfigForShared?: {
|
|
132
133
|
allowAllUsers: boolean;
|
|
@@ -141,20 +142,20 @@ declare const ConnectedAccountExperimentalResponseSchema: z$1.ZodObject<{
|
|
|
141
142
|
notAllowedUserIds: string[];
|
|
142
143
|
} | undefined;
|
|
143
144
|
}>;
|
|
144
|
-
type ConnectedAccountExperimentalResponse = z
|
|
145
|
-
declare const CreateConnectedAccountParamsSchema: z
|
|
146
|
-
authConfig: z
|
|
147
|
-
id: z
|
|
148
|
-
}, "strip", z
|
|
145
|
+
type ConnectedAccountExperimentalResponse = z.infer<typeof ConnectedAccountExperimentalResponseSchema>;
|
|
146
|
+
declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
147
|
+
authConfig: z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
150
|
id: string;
|
|
150
151
|
}, {
|
|
151
152
|
id: string;
|
|
152
153
|
}>;
|
|
153
|
-
connection: z
|
|
154
|
-
data: z
|
|
155
|
-
callbackUrl: z
|
|
156
|
-
userId: z
|
|
157
|
-
}, "strip", z
|
|
154
|
+
connection: z.ZodObject<{
|
|
155
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
156
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
157
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
159
|
userId?: string | undefined;
|
|
159
160
|
data?: Record<string, unknown> | undefined;
|
|
160
161
|
callbackUrl?: string | undefined;
|
|
@@ -163,7 +164,7 @@ declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
|
163
164
|
data?: Record<string, unknown> | undefined;
|
|
164
165
|
callbackUrl?: string | undefined;
|
|
165
166
|
}>;
|
|
166
|
-
}, "strip", z
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
168
|
authConfig: {
|
|
168
169
|
id: string;
|
|
169
170
|
};
|
|
@@ -182,34 +183,34 @@ declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
|
182
183
|
callbackUrl?: string | undefined;
|
|
183
184
|
};
|
|
184
185
|
}>;
|
|
185
|
-
declare const DefaultCreateConnectedAccountParamsSchema: z
|
|
186
|
+
declare const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
|
|
186
187
|
auth_config: {
|
|
187
188
|
id: string;
|
|
188
189
|
};
|
|
189
190
|
connection: {
|
|
190
|
-
state?: z
|
|
191
|
+
state?: z.infer<typeof ConnectionDataSchema>;
|
|
191
192
|
data?: Record<string, unknown>;
|
|
192
193
|
callback_url?: string;
|
|
193
194
|
user_id?: string;
|
|
194
195
|
alias?: string;
|
|
195
196
|
};
|
|
196
197
|
}>;
|
|
197
|
-
declare const CreateConnectedAccountOptionsSchema: z
|
|
198
|
+
declare const CreateConnectedAccountOptionsSchema: z.ZodType<{
|
|
198
199
|
allowMultiple?: boolean;
|
|
199
200
|
callbackUrl?: string;
|
|
200
|
-
config?: z
|
|
201
|
+
config?: z.infer<typeof ConnectionDataSchema>;
|
|
201
202
|
alias?: string;
|
|
202
203
|
}>;
|
|
203
|
-
type CreateConnectedAccountOptions = z
|
|
204
|
-
type CreateConnectedAccountParams = z
|
|
204
|
+
type CreateConnectedAccountOptions = z.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
205
|
+
type CreateConnectedAccountParams = z.infer<typeof CreateConnectedAccountParamsSchema>;
|
|
205
206
|
/**
|
|
206
207
|
* Connected Account create response
|
|
207
208
|
*/
|
|
208
|
-
declare const CreateConnectedAccountResponseSchema: z
|
|
209
|
-
id: z
|
|
210
|
-
status: z
|
|
211
|
-
redirectUrl: z
|
|
212
|
-
}, "strip", z
|
|
209
|
+
declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
status: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
212
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
214
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
214
215
|
redirectUrl: string | null;
|
|
215
216
|
id: string;
|
|
@@ -218,14 +219,13 @@ declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
|
|
|
218
219
|
redirectUrl: string | null;
|
|
219
220
|
id: string;
|
|
220
221
|
}>;
|
|
221
|
-
type CreateConnectedAccountResponse = z
|
|
222
|
-
declare const ConnectedAccountAuthConfigSchema: z
|
|
223
|
-
id: z
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
222
|
+
type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
223
|
+
declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
224
|
+
id: z.ZodString; /** @deprecated Use `connectedAccount.state.authScheme` instead. */
|
|
225
|
+
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
|
|
226
|
+
isComposioManaged: z.ZodBoolean;
|
|
227
|
+
isDisabled: z.ZodBoolean;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
id: string;
|
|
230
230
|
isComposioManaged: boolean;
|
|
231
231
|
isDisabled: boolean;
|
|
@@ -236,128 +236,120 @@ declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
|
|
|
236
236
|
isDisabled: boolean;
|
|
237
237
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
238
238
|
}>;
|
|
239
|
-
type ConnectedAccountAuthConfig = z
|
|
240
|
-
declare const ConnectedAccountRetrieveResponseSchema: z
|
|
239
|
+
type ConnectedAccountAuthConfig = z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
240
|
+
declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
|
|
241
241
|
id: string;
|
|
242
|
-
authConfig: z
|
|
242
|
+
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
243
243
|
wordId?: string | null;
|
|
244
|
-
alias?: string | null;
|
|
245
|
-
/** @deprecated
|
|
246
|
-
data?: Record<string, unknown>;
|
|
247
|
-
/** @deprecated use connectedAccount.state instead */
|
|
244
|
+
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
245
|
+
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
248
246
|
params?: Record<string, unknown>;
|
|
249
247
|
status: ConnectedAccountStatusEnum;
|
|
250
248
|
statusReason: string | null;
|
|
251
249
|
toolkit: {
|
|
252
250
|
slug: string;
|
|
253
251
|
};
|
|
254
|
-
state?: z
|
|
252
|
+
state?: z.infer<typeof ConnectionDataSchema>;
|
|
255
253
|
testRequestEndpoint?: string;
|
|
256
254
|
isDisabled: boolean;
|
|
257
255
|
createdAt: string;
|
|
258
256
|
updatedAt: string;
|
|
259
257
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
260
258
|
}>;
|
|
261
|
-
type ConnectedAccountRetrieveResponse = z
|
|
259
|
+
type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
262
260
|
/**
|
|
263
261
|
* Type for list response item that doesn't include params
|
|
264
262
|
*/
|
|
265
263
|
type ConnectedAccountListResponseItem = Omit<ConnectedAccountRetrieveResponse, 'params'>;
|
|
266
|
-
declare const ConnectedAccountListParamsSchema: z
|
|
267
|
-
authConfigIds: z
|
|
268
|
-
cursor: z
|
|
269
|
-
limit: z
|
|
270
|
-
orderBy: z
|
|
271
|
-
statuses: z
|
|
272
|
-
toolkitSlugs: z
|
|
273
|
-
userIds: z
|
|
264
|
+
declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
265
|
+
authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
266
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
268
|
+
orderBy: z.ZodOptional<z.ZodEnum<["created_at", "updated_at"]>>;
|
|
269
|
+
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
|
|
270
|
+
toolkitSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
271
|
+
userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
274
272
|
/**
|
|
275
273
|
* Experimental — shape may change in future releases. Filter by sharing
|
|
276
274
|
* model. Default (omitted) returns PRIVATE only. Pass `'SHARED'` for only
|
|
277
275
|
* shared accounts, or `'ALL'` for `PRIVATE` + `SHARED`. Kept flat because
|
|
278
276
|
* the wire is a query string and can't carry nested objects.
|
|
279
277
|
*/
|
|
280
|
-
accountType: z
|
|
281
|
-
}, "strip", z
|
|
278
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
280
|
limit?: number | null | undefined;
|
|
283
281
|
authConfigIds?: string[] | null | undefined;
|
|
282
|
+
userIds?: string[] | null | undefined;
|
|
284
283
|
cursor?: string | null | undefined;
|
|
285
284
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
286
285
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
287
286
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
288
287
|
toolkitSlugs?: string[] | null | undefined;
|
|
289
|
-
userIds?: string[] | null | undefined;
|
|
290
288
|
}, {
|
|
291
289
|
limit?: number | null | undefined;
|
|
292
290
|
authConfigIds?: string[] | null | undefined;
|
|
291
|
+
userIds?: string[] | null | undefined;
|
|
293
292
|
cursor?: string | null | undefined;
|
|
294
293
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
295
294
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
296
295
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
297
296
|
toolkitSlugs?: string[] | null | undefined;
|
|
298
|
-
userIds?: string[] | null | undefined;
|
|
299
297
|
}>;
|
|
300
|
-
type ConnectedAccountListParams = z
|
|
301
|
-
declare const ConnectedAccountListResponseSchema: z
|
|
302
|
-
items: z
|
|
298
|
+
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
299
|
+
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
300
|
+
items: z.ZodArray<z.ZodType<{
|
|
303
301
|
id: string;
|
|
304
|
-
authConfig: z
|
|
302
|
+
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
305
303
|
wordId?: string | null;
|
|
306
|
-
alias?: string | null;
|
|
307
|
-
/** @deprecated
|
|
308
|
-
data?: Record<string, unknown>;
|
|
309
|
-
/** @deprecated use connectedAccount.state instead */
|
|
304
|
+
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
305
|
+
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
310
306
|
params?: Record<string, unknown>;
|
|
311
307
|
status: ConnectedAccountStatusEnum;
|
|
312
308
|
statusReason: string | null;
|
|
313
309
|
toolkit: {
|
|
314
310
|
slug: string;
|
|
315
311
|
};
|
|
316
|
-
state?: z
|
|
312
|
+
state?: z.infer<typeof ConnectionDataSchema>;
|
|
317
313
|
testRequestEndpoint?: string;
|
|
318
314
|
isDisabled: boolean;
|
|
319
315
|
createdAt: string;
|
|
320
316
|
updatedAt: string;
|
|
321
317
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
322
|
-
}, z
|
|
318
|
+
}, z.ZodTypeDef, {
|
|
323
319
|
id: string;
|
|
324
|
-
authConfig: z
|
|
320
|
+
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
325
321
|
wordId?: string | null;
|
|
326
|
-
alias?: string | null;
|
|
327
|
-
/** @deprecated
|
|
328
|
-
data?: Record<string, unknown>;
|
|
329
|
-
/** @deprecated use connectedAccount.state instead */
|
|
322
|
+
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
323
|
+
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
330
324
|
params?: Record<string, unknown>;
|
|
331
325
|
status: ConnectedAccountStatusEnum;
|
|
332
326
|
statusReason: string | null;
|
|
333
327
|
toolkit: {
|
|
334
328
|
slug: string;
|
|
335
329
|
};
|
|
336
|
-
state?: z
|
|
330
|
+
state?: z.infer<typeof ConnectionDataSchema>;
|
|
337
331
|
testRequestEndpoint?: string;
|
|
338
332
|
isDisabled: boolean;
|
|
339
333
|
createdAt: string;
|
|
340
334
|
updatedAt: string;
|
|
341
335
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
342
336
|
}>, "many">;
|
|
343
|
-
nextCursor: z
|
|
344
|
-
totalPages: z
|
|
345
|
-
}, "strip", z
|
|
337
|
+
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
totalPages: z.ZodNumber;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
346
340
|
items: {
|
|
347
341
|
id: string;
|
|
348
|
-
authConfig: z
|
|
342
|
+
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
349
343
|
wordId?: string | null;
|
|
350
|
-
alias?: string | null;
|
|
351
|
-
/** @deprecated
|
|
352
|
-
data?: Record<string, unknown>;
|
|
353
|
-
/** @deprecated use connectedAccount.state instead */
|
|
344
|
+
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
345
|
+
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
354
346
|
params?: Record<string, unknown>;
|
|
355
347
|
status: ConnectedAccountStatusEnum;
|
|
356
348
|
statusReason: string | null;
|
|
357
349
|
toolkit: {
|
|
358
350
|
slug: string;
|
|
359
351
|
};
|
|
360
|
-
state?: z
|
|
352
|
+
state?: z.infer<typeof ConnectionDataSchema>;
|
|
361
353
|
testRequestEndpoint?: string;
|
|
362
354
|
isDisabled: boolean;
|
|
363
355
|
createdAt: string;
|
|
@@ -369,19 +361,17 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
|
|
|
369
361
|
}, {
|
|
370
362
|
items: {
|
|
371
363
|
id: string;
|
|
372
|
-
authConfig: z
|
|
364
|
+
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
373
365
|
wordId?: string | null;
|
|
374
|
-
alias?: string | null;
|
|
375
|
-
/** @deprecated
|
|
376
|
-
data?: Record<string, unknown>;
|
|
377
|
-
/** @deprecated use connectedAccount.state instead */
|
|
366
|
+
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
367
|
+
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
378
368
|
params?: Record<string, unknown>;
|
|
379
369
|
status: ConnectedAccountStatusEnum;
|
|
380
370
|
statusReason: string | null;
|
|
381
371
|
toolkit: {
|
|
382
372
|
slug: string;
|
|
383
373
|
};
|
|
384
|
-
state?: z
|
|
374
|
+
state?: z.infer<typeof ConnectionDataSchema>;
|
|
385
375
|
testRequestEndpoint?: string;
|
|
386
376
|
isDisabled: boolean;
|
|
387
377
|
createdAt: string;
|
|
@@ -391,8 +381,8 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
|
|
|
391
381
|
totalPages: number;
|
|
392
382
|
nextCursor?: string | null | undefined;
|
|
393
383
|
}>;
|
|
394
|
-
type ConnectedAccountListResponse = z
|
|
395
|
-
declare const CreateConnectedAccountLinkOptionsSchema: z
|
|
384
|
+
type ConnectedAccountListResponse = z.infer<typeof ConnectedAccountListResponseSchema>;
|
|
385
|
+
declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
396
386
|
/**
|
|
397
387
|
* The url to redirect the user to post connecting their account.
|
|
398
388
|
*
|
|
@@ -402,11 +392,11 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
402
392
|
* @example https://your-app.com/callback
|
|
403
393
|
*
|
|
404
394
|
*/
|
|
405
|
-
callbackUrl: z
|
|
395
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
406
396
|
/**
|
|
407
397
|
* Human-readable alias for the connected account. Must be unique per userId and toolkit within the project.
|
|
408
398
|
*/
|
|
409
|
-
alias: z
|
|
399
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
410
400
|
/**
|
|
411
401
|
* Whether to allow multiple connected accounts for the same user and auth config.
|
|
412
402
|
* When `false` (default), `link()` throws `ComposioMultipleConnectedAccountsError`
|
|
@@ -414,7 +404,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
414
404
|
* the guard on `initiate()`. Pair with `alias` and a session-level
|
|
415
405
|
* `multiAccount` config to disambiguate at execution time.
|
|
416
406
|
*/
|
|
417
|
-
allowMultiple: z
|
|
407
|
+
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
418
408
|
/**
|
|
419
409
|
* Experimental options for SHARED connections. Pass `accountType: 'SHARED'`
|
|
420
410
|
* (and optionally `aclConfigForShared`) to create a connection that can
|
|
@@ -429,13 +419,13 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
429
419
|
* `allowAllUsers: true` or listing user IDs in `allowedUserIds`.
|
|
430
420
|
* `notAllowedUserIds` always wins over allow.
|
|
431
421
|
*/
|
|
432
|
-
experimental: z
|
|
433
|
-
accountType: z
|
|
434
|
-
aclConfigForShared: z
|
|
435
|
-
allowAllUsers: z
|
|
436
|
-
allowedUserIds: z
|
|
437
|
-
notAllowedUserIds: z
|
|
438
|
-
}, "strip", z
|
|
422
|
+
experimental: z.ZodOptional<z.ZodObject<{
|
|
423
|
+
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
424
|
+
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
427
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
429
|
allowAllUsers?: boolean | undefined;
|
|
440
430
|
allowedUserIds?: string[] | undefined;
|
|
441
431
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -444,7 +434,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
444
434
|
allowedUserIds?: string[] | undefined;
|
|
445
435
|
notAllowedUserIds?: string[] | undefined;
|
|
446
436
|
}>>;
|
|
447
|
-
}, "strip", z
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
438
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
449
439
|
aclConfigForShared?: {
|
|
450
440
|
allowAllUsers?: boolean | undefined;
|
|
@@ -459,10 +449,8 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
459
449
|
notAllowedUserIds?: string[] | undefined;
|
|
460
450
|
} | undefined;
|
|
461
451
|
}>>;
|
|
462
|
-
}, "strip", z
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
453
|
callbackUrl?: string | undefined;
|
|
464
|
-
alias?: string | undefined;
|
|
465
|
-
allowMultiple?: boolean | undefined;
|
|
466
454
|
experimental?: {
|
|
467
455
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
468
456
|
aclConfigForShared?: {
|
|
@@ -471,10 +459,10 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
471
459
|
notAllowedUserIds?: string[] | undefined;
|
|
472
460
|
} | undefined;
|
|
473
461
|
} | undefined;
|
|
474
|
-
}, {
|
|
475
|
-
callbackUrl?: string | undefined;
|
|
476
462
|
alias?: string | undefined;
|
|
477
463
|
allowMultiple?: boolean | undefined;
|
|
464
|
+
}, {
|
|
465
|
+
callbackUrl?: string | undefined;
|
|
478
466
|
experimental?: {
|
|
479
467
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
480
468
|
aclConfigForShared?: {
|
|
@@ -483,30 +471,32 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
|
483
471
|
notAllowedUserIds?: string[] | undefined;
|
|
484
472
|
} | undefined;
|
|
485
473
|
} | undefined;
|
|
474
|
+
alias?: string | undefined;
|
|
475
|
+
allowMultiple?: boolean | undefined;
|
|
486
476
|
}>;
|
|
487
|
-
type CreateConnectedAccountLinkOptions = z
|
|
488
|
-
declare const CreateConnectedAccountLinkResponseSchema: z
|
|
489
|
-
redirectUrl: z
|
|
490
|
-
}, "strip", z
|
|
477
|
+
type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
478
|
+
declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
479
|
+
redirectUrl: z.ZodString;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
481
|
redirectUrl: string;
|
|
492
482
|
}, {
|
|
493
483
|
redirectUrl: string;
|
|
494
484
|
}>;
|
|
495
|
-
type CreateConnectedAccountLinkResponse = z
|
|
496
|
-
declare const ConnectedAccountRefreshOptionsSchema: z
|
|
497
|
-
redirectUrl: z
|
|
498
|
-
validateCredentials: z
|
|
499
|
-
}, "strip", z
|
|
485
|
+
type CreateConnectedAccountLinkResponse = z.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
486
|
+
declare const ConnectedAccountRefreshOptionsSchema: z.ZodObject<{
|
|
487
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
488
|
+
validateCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
500
490
|
redirectUrl?: string | undefined;
|
|
501
491
|
validateCredentials?: boolean | undefined;
|
|
502
492
|
}, {
|
|
503
493
|
redirectUrl?: string | undefined;
|
|
504
494
|
validateCredentials?: boolean | undefined;
|
|
505
495
|
}>;
|
|
506
|
-
type ConnectedAccountRefreshOptions = z
|
|
507
|
-
declare const UpdateConnectedAccountParamsSchema: z
|
|
508
|
-
enabled: z
|
|
509
|
-
}, "strip", z
|
|
496
|
+
type ConnectedAccountRefreshOptions = z.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
497
|
+
declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
|
|
498
|
+
enabled: z.ZodBoolean;
|
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
500
|
enabled: boolean;
|
|
511
501
|
}, {
|
|
512
502
|
enabled: boolean;
|
|
@@ -523,11 +513,11 @@ declare const UpdateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
|
523
513
|
* Each field is optional, but at least one must be provided — passing an
|
|
524
514
|
* empty object is rejected as a no-op.
|
|
525
515
|
*/
|
|
526
|
-
declare const UpdateConnectedAccountAclParamsSchema: z
|
|
527
|
-
allowAllUsers: z
|
|
528
|
-
allowedUserIds: z
|
|
529
|
-
notAllowedUserIds: z
|
|
530
|
-
}, "strip", z
|
|
516
|
+
declare const UpdateConnectedAccountAclParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
517
|
+
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
519
|
+
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
520
|
+
}, "strip", z.ZodTypeAny, {
|
|
531
521
|
allowAllUsers?: boolean | undefined;
|
|
532
522
|
allowedUserIds?: string[] | undefined;
|
|
533
523
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -544,7 +534,7 @@ declare const UpdateConnectedAccountAclParamsSchema: z$1.ZodEffects<z$1.ZodObjec
|
|
|
544
534
|
allowedUserIds?: string[] | undefined;
|
|
545
535
|
notAllowedUserIds?: string[] | undefined;
|
|
546
536
|
}>;
|
|
547
|
-
type UpdateConnectedAccountAclParams = z
|
|
537
|
+
type UpdateConnectedAccountAclParams = z.infer<typeof UpdateConnectedAccountAclParamsSchema>;
|
|
548
538
|
//#endregion
|
|
549
539
|
//#region src/types/connectionRequest.types.d.ts
|
|
550
540
|
interface ConnectionRequestState {
|
|
@@ -559,14 +549,12 @@ interface ConnectionRequest extends ConnectionRequestState {
|
|
|
559
549
|
}
|
|
560
550
|
//#endregion
|
|
561
551
|
//#region src/types/ToolRouterSessionFilesMount.types.d.ts
|
|
562
|
-
declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
|
|
563
|
-
path: z.ZodOptional<z.ZodString>;
|
|
564
|
-
mountId: z.ZodDefault<z.ZodString>;
|
|
565
|
-
/**
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
569
|
-
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
declare const ToolRouterSessionFilesMountListOptionsSchema: z$1.ZodObject<{
|
|
553
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
554
|
+
mountId: z$1.ZodDefault<z$1.ZodString>; /** Pagination cursor from the previous response nextCursor field */
|
|
555
|
+
cursor: z$1.ZodOptional<z$1.ZodString>; /** Maximum number of files to return per page (1-500) */
|
|
556
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
557
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
570
558
|
mountId: string;
|
|
571
559
|
path?: string | undefined;
|
|
572
560
|
limit?: number | undefined;
|
|
@@ -577,14 +565,14 @@ declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
|
|
|
577
565
|
cursor?: string | undefined;
|
|
578
566
|
mountId?: string | undefined;
|
|
579
567
|
}>;
|
|
580
|
-
type ToolRouterSessionFilesMountListOptions = z.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
581
|
-
declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
582
|
-
items: z.ZodArray<z.ZodObject<{
|
|
583
|
-
last_modified: z.ZodString;
|
|
584
|
-
mount_relative_path: z.ZodString;
|
|
585
|
-
sandbox_mount_prefix: z.ZodString;
|
|
586
|
-
size: z.ZodNumber;
|
|
587
|
-
}, "strip", z.ZodTypeAny, {
|
|
568
|
+
type ToolRouterSessionFilesMountListOptions = z$1.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
569
|
+
declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
570
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
571
|
+
last_modified: z$1.ZodString;
|
|
572
|
+
mount_relative_path: z$1.ZodString;
|
|
573
|
+
sandbox_mount_prefix: z$1.ZodString;
|
|
574
|
+
size: z$1.ZodNumber;
|
|
575
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
588
576
|
last_modified: string;
|
|
589
577
|
mount_relative_path: string;
|
|
590
578
|
sandbox_mount_prefix: string;
|
|
@@ -595,8 +583,8 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
595
583
|
sandbox_mount_prefix: string;
|
|
596
584
|
size: number;
|
|
597
585
|
}>, "many">;
|
|
598
|
-
next_cursor: z.ZodOptional<z.ZodString>;
|
|
599
|
-
}, "strip", z.ZodTypeAny, {
|
|
586
|
+
next_cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
587
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
600
588
|
items: {
|
|
601
589
|
last_modified: string;
|
|
602
590
|
mount_relative_path: string;
|
|
@@ -629,14 +617,12 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
629
617
|
}[];
|
|
630
618
|
next_cursor?: string | undefined;
|
|
631
619
|
}>;
|
|
632
|
-
type FileListResponse = z.infer<typeof FileListResponseSchema>;
|
|
633
|
-
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z.ZodObject<{
|
|
634
|
-
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
mimetype: z.ZodOptional<z.ZodString>;
|
|
639
|
-
}, "strip", z.ZodTypeAny, {
|
|
620
|
+
type FileListResponse = z$1.infer<typeof FileListResponseSchema>;
|
|
621
|
+
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
|
|
622
|
+
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */remotePath: z$1.ZodOptional<z$1.ZodString>;
|
|
623
|
+
mountId: z$1.ZodDefault<z$1.ZodString>; /** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
|
|
624
|
+
mimetype: z$1.ZodOptional<z$1.ZodString>;
|
|
625
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
640
626
|
mountId: string;
|
|
641
627
|
remotePath?: string | undefined;
|
|
642
628
|
mimetype?: string | undefined;
|
|
@@ -645,29 +631,29 @@ declare const ToolRouterSessionFilesMountUploadOptionsSchema: z.ZodObject<{
|
|
|
645
631
|
remotePath?: string | undefined;
|
|
646
632
|
mimetype?: string | undefined;
|
|
647
633
|
}>;
|
|
648
|
-
type ToolRouterSessionFilesMountUploadOptions = z.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
|
|
649
|
-
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z.ZodObject<{
|
|
650
|
-
mountId: z.ZodDefault<z.ZodString>;
|
|
651
|
-
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
type ToolRouterSessionFilesMountUploadOptions = z$1.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
|
|
635
|
+
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z$1.ZodObject<{
|
|
636
|
+
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
637
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
652
638
|
mountId: string;
|
|
653
639
|
}, {
|
|
654
640
|
mountId?: string | undefined;
|
|
655
641
|
}>;
|
|
656
|
-
type ToolRouterSessionFilesMountDownloadOptions = z.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
|
|
657
|
-
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z.ZodObject<{
|
|
658
|
-
mountId: z.ZodDefault<z.ZodString>;
|
|
659
|
-
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
type ToolRouterSessionFilesMountDownloadOptions = z$1.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
|
|
643
|
+
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z$1.ZodObject<{
|
|
644
|
+
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
645
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
660
646
|
mountId: string;
|
|
661
647
|
}, {
|
|
662
648
|
mountId?: string | undefined;
|
|
663
649
|
}>;
|
|
664
|
-
type ToolRouterSessionFilesMountDeleteOptions = z.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
|
|
665
|
-
declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
|
|
666
|
-
expires_at: z.ZodString;
|
|
667
|
-
mount_relative_path: z.ZodString;
|
|
668
|
-
sandbox_mount_prefix: z.ZodString;
|
|
669
|
-
download_url: z.ZodString;
|
|
670
|
-
}, "strip", z.ZodTypeAny, {
|
|
650
|
+
type ToolRouterSessionFilesMountDeleteOptions = z$1.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
|
|
651
|
+
declare const RemoteFileDataSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
652
|
+
expires_at: z$1.ZodString;
|
|
653
|
+
mount_relative_path: z$1.ZodString;
|
|
654
|
+
sandbox_mount_prefix: z$1.ZodString;
|
|
655
|
+
download_url: z$1.ZodString;
|
|
656
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
671
657
|
mount_relative_path: string;
|
|
672
658
|
sandbox_mount_prefix: string;
|
|
673
659
|
expires_at: string;
|
|
@@ -689,11 +675,11 @@ declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
|
|
|
689
675
|
download_url: string;
|
|
690
676
|
}>;
|
|
691
677
|
/** Parsed shape from API response. Use with `new RemoteFile(data)`. */
|
|
692
|
-
type RemoteFileData = z.infer<typeof RemoteFileDataSchema>;
|
|
693
|
-
declare const FileDeleteResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
694
|
-
mount_relative_path: z.ZodString;
|
|
695
|
-
sandbox_mount_prefix: z.ZodString;
|
|
696
|
-
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
type RemoteFileData = z$1.infer<typeof RemoteFileDataSchema>;
|
|
679
|
+
declare const FileDeleteResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
680
|
+
mount_relative_path: z$1.ZodString;
|
|
681
|
+
sandbox_mount_prefix: z$1.ZodString;
|
|
682
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
697
683
|
mount_relative_path: string;
|
|
698
684
|
sandbox_mount_prefix: string;
|
|
699
685
|
}, {
|
|
@@ -706,7 +692,7 @@ declare const FileDeleteResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
706
692
|
mount_relative_path: string;
|
|
707
693
|
sandbox_mount_prefix: string;
|
|
708
694
|
}>;
|
|
709
|
-
type FileDeleteResponse = z.infer<typeof FileDeleteResponseSchema>;
|
|
695
|
+
type FileDeleteResponse = z$1.infer<typeof FileDeleteResponseSchema>;
|
|
710
696
|
//#endregion
|
|
711
697
|
//#region src/models/RemoteFile.d.ts
|
|
712
698
|
/**
|
|
@@ -784,6 +770,11 @@ declare class RemoteFile {
|
|
|
784
770
|
}
|
|
785
771
|
//#endregion
|
|
786
772
|
//#region src/models/ToolRouterSessionFileMount.d.ts
|
|
773
|
+
/**
|
|
774
|
+
* File mount for a Composio session, reached via `session.experimental.files`
|
|
775
|
+
* on a session created with `composio.sessions.create(...)`. Upload, list,
|
|
776
|
+
* download, and delete files scoped to a single session.
|
|
777
|
+
*/
|
|
787
778
|
declare class ToolRouterSessionFilesMount {
|
|
788
779
|
private readonly sessionId;
|
|
789
780
|
private readonly client;
|
|
@@ -910,10 +901,10 @@ declare const SessionPreset: {
|
|
|
910
901
|
readonly DIRECT_TOOLS: "direct_tools";
|
|
911
902
|
};
|
|
912
903
|
type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
|
|
913
|
-
declare const MCPServerTypeSchema: z.ZodEnum<["http", "sse"]>;
|
|
914
|
-
type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
|
|
904
|
+
declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
|
|
905
|
+
type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
915
906
|
/**
|
|
916
|
-
* Sandbox compute tier for the
|
|
907
|
+
* Sandbox compute tier for the session sandbox.
|
|
917
908
|
*
|
|
918
909
|
* | Tier | vCPU | RAM |
|
|
919
910
|
* | -------- | ---- | ----- |
|
|
@@ -924,68 +915,85 @@ type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
|
|
|
924
915
|
*
|
|
925
916
|
* Defaults to `standard` server-side when omitted.
|
|
926
917
|
*/
|
|
927
|
-
declare const SandboxSizeSchema: z.ZodEnum<["standard", "medium", "large", "xlarge"]>;
|
|
928
|
-
type SandboxSize = z.infer<typeof SandboxSizeSchema>;
|
|
929
|
-
declare const
|
|
930
|
-
enable: z.
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
918
|
+
declare const SandboxSizeSchema: z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>;
|
|
919
|
+
type SandboxSize = z$1.infer<typeof SandboxSizeSchema>;
|
|
920
|
+
declare const ToolRouterSandboxConfigSchema: z$1.ZodObject<{
|
|
921
|
+
enable: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
922
|
+
enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
923
|
+
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
|
|
924
|
+
sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
925
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
926
|
+
enable: boolean;
|
|
927
|
+
enableProxyExecution?: boolean | undefined;
|
|
928
|
+
autoOffloadThreshold?: number | undefined;
|
|
929
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
930
|
+
}, {
|
|
931
|
+
enable?: boolean | undefined;
|
|
932
|
+
enableProxyExecution?: boolean | undefined;
|
|
933
|
+
autoOffloadThreshold?: number | undefined;
|
|
934
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
935
|
+
}>;
|
|
936
|
+
type ToolRouterSandboxConfig = z$1.infer<typeof ToolRouterSandboxConfigSchema>;
|
|
937
|
+
declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
|
|
938
|
+
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
939
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
940
|
+
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
941
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
935
942
|
enable?: boolean | undefined;
|
|
943
|
+
callbackUrl?: string | undefined;
|
|
936
944
|
waitForConnections?: boolean | undefined;
|
|
937
945
|
}, {
|
|
938
|
-
callbackUrl?: string | undefined;
|
|
939
946
|
enable?: boolean | undefined;
|
|
947
|
+
callbackUrl?: string | undefined;
|
|
940
948
|
waitForConnections?: boolean | undefined;
|
|
941
949
|
}>;
|
|
942
|
-
declare const ToolRouterToolkitsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
943
|
-
declare const ToolRouterToolkitsDisabledConfigSchema: z.ZodObject<{
|
|
944
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
945
|
-
}, "strict", z.ZodTypeAny, {
|
|
950
|
+
declare const ToolRouterToolkitsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
951
|
+
declare const ToolRouterToolkitsDisabledConfigSchema: z$1.ZodObject<{
|
|
952
|
+
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
953
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
946
954
|
disable: string[];
|
|
947
955
|
}, {
|
|
948
956
|
disable: string[];
|
|
949
957
|
}>;
|
|
950
|
-
declare const ToolRouterToolkitsEnabledConfigSchema: z.ZodObject<{
|
|
951
|
-
enable: z.ZodArray<z.ZodString, "many">;
|
|
952
|
-
}, "strict", z.ZodTypeAny, {
|
|
958
|
+
declare const ToolRouterToolkitsEnabledConfigSchema: z$1.ZodObject<{
|
|
959
|
+
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
960
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
953
961
|
enable: string[];
|
|
954
962
|
}, {
|
|
955
963
|
enable: string[];
|
|
956
964
|
}>;
|
|
957
|
-
declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
|
|
958
|
-
enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
959
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
960
|
-
}, "strip", z.ZodTypeAny, {
|
|
965
|
+
declare const ToolRouterManageConnectionsConfigSchema: z$1.ZodObject<{
|
|
966
|
+
enable: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
967
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
968
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
961
969
|
enable: boolean;
|
|
962
970
|
callbackUrl?: string | undefined;
|
|
963
971
|
}, {
|
|
964
|
-
callbackUrl?: string | undefined;
|
|
965
972
|
enable?: boolean | undefined;
|
|
973
|
+
callbackUrl?: string | undefined;
|
|
966
974
|
}>;
|
|
967
|
-
declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
968
|
-
declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
|
|
969
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
970
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
971
|
-
}, "strict", z.ZodTypeAny, {
|
|
972
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
975
|
+
declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
976
|
+
declare const ToolRouterTagsEnableDisableSchema: z$1.ZodObject<{
|
|
977
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
978
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
979
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
973
980
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
974
|
-
}, {
|
|
975
981
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
982
|
+
}, {
|
|
976
983
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
977
|
-
}>;
|
|
978
|
-
declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
979
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
980
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
981
|
-
}, "strict", z.ZodTypeAny, {
|
|
982
984
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
985
|
+
}>;
|
|
986
|
+
declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
987
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
988
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
989
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
983
990
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
984
|
-
}, {
|
|
985
991
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
992
|
+
}, {
|
|
986
993
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
994
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
987
995
|
}>]>;
|
|
988
|
-
type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
996
|
+
type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
989
997
|
/**
|
|
990
998
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
991
999
|
* @example
|
|
@@ -1008,40 +1016,40 @@ type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
|
1008
1016
|
* }
|
|
1009
1017
|
* ```
|
|
1010
1018
|
*/
|
|
1011
|
-
declare const ToolRouterToolsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
1012
|
-
type ToolRouterToolsParam = z.infer<typeof ToolRouterToolsParamSchema>;
|
|
1013
|
-
declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1014
|
-
enable: z.ZodArray<z.ZodString, "many">;
|
|
1015
|
-
}, "strict", z.ZodTypeAny, {
|
|
1019
|
+
declare const ToolRouterToolsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1020
|
+
type ToolRouterToolsParam = z$1.infer<typeof ToolRouterToolsParamSchema>;
|
|
1021
|
+
declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
1022
|
+
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1023
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1016
1024
|
enable: string[];
|
|
1017
1025
|
}, {
|
|
1018
1026
|
enable: string[];
|
|
1019
|
-
}>, z.ZodObject<{
|
|
1020
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
1021
|
-
}, "strict", z.ZodTypeAny, {
|
|
1027
|
+
}>, z$1.ZodObject<{
|
|
1028
|
+
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1029
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1022
1030
|
disable: string[];
|
|
1023
1031
|
}, {
|
|
1024
1032
|
disable: string[];
|
|
1025
|
-
}>, z.ZodObject<{
|
|
1026
|
-
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1027
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1028
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1029
|
-
}, "strict", z.ZodTypeAny, {
|
|
1030
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1033
|
+
}>, z$1.ZodObject<{
|
|
1034
|
+
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
1035
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1036
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1037
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1031
1038
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1032
|
-
}, {
|
|
1033
1039
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1040
|
+
}, {
|
|
1034
1041
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1042
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1035
1043
|
}>]>;
|
|
1036
|
-
}, "strict", z.ZodTypeAny, {
|
|
1044
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1037
1045
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1038
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1039
1046
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1047
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1040
1048
|
};
|
|
1041
1049
|
}, {
|
|
1042
1050
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1043
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1044
1051
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1052
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1045
1053
|
};
|
|
1046
1054
|
}>]>, string[] | {
|
|
1047
1055
|
enable: string[];
|
|
@@ -1049,8 +1057,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
1049
1057
|
disable: string[];
|
|
1050
1058
|
} | {
|
|
1051
1059
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1052
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1053
1060
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1061
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1054
1062
|
};
|
|
1055
1063
|
}, string[] | {
|
|
1056
1064
|
enable: string[];
|
|
@@ -1058,45 +1066,46 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
1058
1066
|
disable: string[];
|
|
1059
1067
|
} | {
|
|
1060
1068
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1061
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1062
1069
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1070
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1063
1071
|
};
|
|
1064
1072
|
}>;
|
|
1065
|
-
type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
|
|
1066
|
-
declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
1067
|
-
sessionPreset: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"direct_tools">>>;
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1073
|
+
type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
|
|
1074
|
+
declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObject<{
|
|
1075
|
+
sessionPreset: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodLiteral<"direct_tools">>>;
|
|
1076
|
+
mcp: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1077
|
+
tools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
1078
|
+
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1079
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1071
1080
|
enable: string[];
|
|
1072
1081
|
}, {
|
|
1073
1082
|
enable: string[];
|
|
1074
|
-
}>, z.ZodObject<{
|
|
1075
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
1076
|
-
}, "strict", z.ZodTypeAny, {
|
|
1083
|
+
}>, z$1.ZodObject<{
|
|
1084
|
+
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1085
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1077
1086
|
disable: string[];
|
|
1078
1087
|
}, {
|
|
1079
1088
|
disable: string[];
|
|
1080
|
-
}>, z.ZodObject<{
|
|
1081
|
-
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1082
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1083
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1084
|
-
}, "strict", z.ZodTypeAny, {
|
|
1085
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1089
|
+
}>, z$1.ZodObject<{
|
|
1090
|
+
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
1091
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1092
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1093
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1086
1094
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1087
|
-
}, {
|
|
1088
1095
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1096
|
+
}, {
|
|
1089
1097
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1098
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1090
1099
|
}>]>;
|
|
1091
|
-
}, "strict", z.ZodTypeAny, {
|
|
1100
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1092
1101
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1093
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1094
1102
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1103
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1095
1104
|
};
|
|
1096
1105
|
}, {
|
|
1097
1106
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1098
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1099
1107
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1108
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1100
1109
|
};
|
|
1101
1110
|
}>]>, string[] | {
|
|
1102
1111
|
enable: string[];
|
|
@@ -1104,8 +1113,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1104
1113
|
disable: string[];
|
|
1105
1114
|
} | {
|
|
1106
1115
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1107
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1108
1116
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1117
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1109
1118
|
};
|
|
1110
1119
|
}, string[] | {
|
|
1111
1120
|
enable: string[];
|
|
@@ -1113,54 +1122,54 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1113
1122
|
disable: string[];
|
|
1114
1123
|
} | {
|
|
1115
1124
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1116
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1117
1125
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1126
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1118
1127
|
};
|
|
1119
1128
|
}>]>>>>;
|
|
1120
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1121
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1122
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1123
|
-
}, "strict", z.ZodTypeAny, {
|
|
1124
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1129
|
+
tags: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
1130
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1131
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1132
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1125
1133
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1126
|
-
}, {
|
|
1127
1134
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1135
|
+
}, {
|
|
1128
1136
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1137
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1129
1138
|
}>]>>>;
|
|
1130
|
-
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1131
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
1132
|
-
}, "strict", z.ZodTypeAny, {
|
|
1139
|
+
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
1140
|
+
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1141
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1133
1142
|
disable: string[];
|
|
1134
1143
|
}, {
|
|
1135
1144
|
disable: string[];
|
|
1136
|
-
}>, z.ZodObject<{
|
|
1137
|
-
enable: z.ZodArray<z.ZodString, "many">;
|
|
1138
|
-
}, "strict", z.ZodTypeAny, {
|
|
1145
|
+
}>, z$1.ZodObject<{
|
|
1146
|
+
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1147
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1139
1148
|
enable: string[];
|
|
1140
1149
|
}, {
|
|
1141
1150
|
enable: string[];
|
|
1142
1151
|
}>]>>>;
|
|
1143
|
-
authConfigs: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1144
|
-
connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
1145
|
-
manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
1146
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1147
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1148
|
-
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
1149
|
-
}, "strict", z.ZodTypeAny, {
|
|
1150
|
-
callbackUrl?: string | undefined;
|
|
1152
|
+
authConfigs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
1153
|
+
connectedAccounts: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>>>;
|
|
1154
|
+
manageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodObject<{
|
|
1155
|
+
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
1156
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1157
|
+
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1158
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1151
1159
|
enable?: boolean | undefined;
|
|
1160
|
+
callbackUrl?: string | undefined;
|
|
1152
1161
|
waitForConnections?: boolean | undefined;
|
|
1153
1162
|
}, {
|
|
1154
|
-
callbackUrl?: string | undefined;
|
|
1155
1163
|
enable?: boolean | undefined;
|
|
1164
|
+
callbackUrl?: string | undefined;
|
|
1156
1165
|
waitForConnections?: boolean | undefined;
|
|
1157
1166
|
}>]>>>>;
|
|
1158
|
-
|
|
1159
|
-
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1160
|
-
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1161
|
-
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1162
|
-
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1163
|
-
}, "strip", z.ZodTypeAny, {
|
|
1167
|
+
sandbox: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
1168
|
+
enable: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1169
|
+
enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1170
|
+
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1171
|
+
sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1172
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1164
1173
|
enable: boolean;
|
|
1165
1174
|
enableProxyExecution?: boolean | undefined;
|
|
1166
1175
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1171,11 +1180,27 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1171
1180
|
autoOffloadThreshold?: number | undefined;
|
|
1172
1181
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1173
1182
|
}>>>;
|
|
1174
|
-
|
|
1175
|
-
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1183
|
+
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
1184
|
+
enable: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1185
|
+
enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1186
|
+
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1187
|
+
sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1188
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1189
|
+
enable: boolean;
|
|
1190
|
+
enableProxyExecution?: boolean | undefined;
|
|
1191
|
+
autoOffloadThreshold?: number | undefined;
|
|
1192
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1193
|
+
}, {
|
|
1194
|
+
enable?: boolean | undefined;
|
|
1195
|
+
enableProxyExecution?: boolean | undefined;
|
|
1196
|
+
autoOffloadThreshold?: number | undefined;
|
|
1197
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1198
|
+
}>>>;
|
|
1199
|
+
multiAccount: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
1200
|
+
enable: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1201
|
+
maxAccountsPerToolkit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1202
|
+
requireExplicitSelection: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1203
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1179
1204
|
enable: boolean;
|
|
1180
1205
|
maxAccountsPerToolkit?: number | undefined;
|
|
1181
1206
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -1184,24 +1209,24 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1184
1209
|
maxAccountsPerToolkit?: number | undefined;
|
|
1185
1210
|
requireExplicitSelection?: boolean | undefined;
|
|
1186
1211
|
}>>>;
|
|
1187
|
-
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1188
|
-
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
1189
|
-
}, "strict", z.ZodTypeAny, {
|
|
1212
|
+
preload: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
1213
|
+
tools: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodLiteral<"all">]>>;
|
|
1214
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1190
1215
|
tools?: string[] | "all" | undefined;
|
|
1191
1216
|
}, {
|
|
1192
1217
|
tools?: string[] | "all" | undefined;
|
|
1193
1218
|
}>>>;
|
|
1194
|
-
experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1195
|
-
assistivePrompt: z.ZodOptional<z.ZodObject<{
|
|
1196
|
-
userTimezone: z.ZodOptional<z.ZodString>;
|
|
1197
|
-
}, "strip", z.ZodTypeAny, {
|
|
1219
|
+
experimental: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
1220
|
+
assistivePrompt: z$1.ZodOptional<z$1.ZodObject<{
|
|
1221
|
+
userTimezone: z$1.ZodOptional<z$1.ZodString>;
|
|
1222
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1198
1223
|
userTimezone?: string | undefined;
|
|
1199
1224
|
}, {
|
|
1200
1225
|
userTimezone?: string | undefined;
|
|
1201
1226
|
}>>;
|
|
1202
|
-
customTools: z.ZodOptional<z.ZodArray<z.ZodType<CustomTool, z.ZodTypeDef, CustomTool>, "many">>;
|
|
1203
|
-
customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<CustomToolkit, z.ZodTypeDef, CustomToolkit>, "many">>;
|
|
1204
|
-
}, "strip", z.ZodTypeAny, {
|
|
1227
|
+
customTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<CustomTool, z$1.ZodTypeDef, CustomTool>, "many">>;
|
|
1228
|
+
customToolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<CustomToolkit, z$1.ZodTypeDef, CustomToolkit>, "many">>;
|
|
1229
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1205
1230
|
assistivePrompt?: {
|
|
1206
1231
|
userTimezone?: string | undefined;
|
|
1207
1232
|
} | undefined;
|
|
@@ -1214,13 +1239,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1214
1239
|
customTools?: CustomTool[] | undefined;
|
|
1215
1240
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1216
1241
|
}>>>;
|
|
1217
|
-
}, "strip", z.ZodTypeAny, {
|
|
1218
|
-
preload?: {
|
|
1219
|
-
tools?: string[] | "all" | undefined;
|
|
1220
|
-
} | undefined;
|
|
1242
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1221
1243
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1222
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1223
1244
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1245
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1224
1246
|
} | undefined;
|
|
1225
1247
|
tools?: Record<string, string[] | {
|
|
1226
1248
|
enable: string[];
|
|
@@ -1228,8 +1250,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1228
1250
|
disable: string[];
|
|
1229
1251
|
} | {
|
|
1230
1252
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1231
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1232
1253
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1254
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1233
1255
|
};
|
|
1234
1256
|
}> | undefined;
|
|
1235
1257
|
toolkits?: string[] | {
|
|
@@ -1237,21 +1259,24 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1237
1259
|
} | {
|
|
1238
1260
|
enable: string[];
|
|
1239
1261
|
} | undefined;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
userTimezone?: string | undefined;
|
|
1243
|
-
} | undefined;
|
|
1244
|
-
customTools?: CustomTool[] | undefined;
|
|
1245
|
-
customToolkits?: CustomToolkit[] | undefined;
|
|
1262
|
+
preload?: {
|
|
1263
|
+
tools?: string[] | "all" | undefined;
|
|
1246
1264
|
} | undefined;
|
|
1247
|
-
sessionPreset?: "direct_tools" | undefined;
|
|
1248
1265
|
authConfigs?: Record<string, string> | undefined;
|
|
1266
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1267
|
+
mcp?: boolean | undefined;
|
|
1249
1268
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1250
1269
|
manageConnections?: boolean | {
|
|
1251
|
-
callbackUrl?: string | undefined;
|
|
1252
1270
|
enable?: boolean | undefined;
|
|
1271
|
+
callbackUrl?: string | undefined;
|
|
1253
1272
|
waitForConnections?: boolean | undefined;
|
|
1254
1273
|
} | undefined;
|
|
1274
|
+
sandbox?: {
|
|
1275
|
+
enable: boolean;
|
|
1276
|
+
enableProxyExecution?: boolean | undefined;
|
|
1277
|
+
autoOffloadThreshold?: number | undefined;
|
|
1278
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1279
|
+
} | undefined;
|
|
1255
1280
|
workbench?: {
|
|
1256
1281
|
enable: boolean;
|
|
1257
1282
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -1263,13 +1288,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1263
1288
|
maxAccountsPerToolkit?: number | undefined;
|
|
1264
1289
|
requireExplicitSelection?: boolean | undefined;
|
|
1265
1290
|
} | undefined;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1291
|
+
experimental?: {
|
|
1292
|
+
assistivePrompt?: {
|
|
1293
|
+
userTimezone?: string | undefined;
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
customTools?: CustomTool[] | undefined;
|
|
1296
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1269
1297
|
} | undefined;
|
|
1298
|
+
}, {
|
|
1270
1299
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1271
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1272
1300
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1301
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1273
1302
|
} | undefined;
|
|
1274
1303
|
tools?: Record<string, string[] | {
|
|
1275
1304
|
enable: string[];
|
|
@@ -1277,8 +1306,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1277
1306
|
disable: string[];
|
|
1278
1307
|
} | {
|
|
1279
1308
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1280
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1281
1309
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1310
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1282
1311
|
};
|
|
1283
1312
|
}> | undefined;
|
|
1284
1313
|
toolkits?: string[] | {
|
|
@@ -1286,21 +1315,24 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1286
1315
|
} | {
|
|
1287
1316
|
enable: string[];
|
|
1288
1317
|
} | undefined;
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
userTimezone?: string | undefined;
|
|
1292
|
-
} | undefined;
|
|
1293
|
-
customTools?: CustomTool[] | undefined;
|
|
1294
|
-
customToolkits?: CustomToolkit[] | undefined;
|
|
1318
|
+
preload?: {
|
|
1319
|
+
tools?: string[] | "all" | undefined;
|
|
1295
1320
|
} | undefined;
|
|
1296
|
-
sessionPreset?: "direct_tools" | undefined;
|
|
1297
1321
|
authConfigs?: Record<string, string> | undefined;
|
|
1322
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1323
|
+
mcp?: boolean | undefined;
|
|
1298
1324
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1299
1325
|
manageConnections?: boolean | {
|
|
1300
|
-
callbackUrl?: string | undefined;
|
|
1301
1326
|
enable?: boolean | undefined;
|
|
1327
|
+
callbackUrl?: string | undefined;
|
|
1302
1328
|
waitForConnections?: boolean | undefined;
|
|
1303
1329
|
} | undefined;
|
|
1330
|
+
sandbox?: {
|
|
1331
|
+
enable?: boolean | undefined;
|
|
1332
|
+
enableProxyExecution?: boolean | undefined;
|
|
1333
|
+
autoOffloadThreshold?: number | undefined;
|
|
1334
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1335
|
+
} | undefined;
|
|
1304
1336
|
workbench?: {
|
|
1305
1337
|
enable?: boolean | undefined;
|
|
1306
1338
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -1312,13 +1344,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1312
1344
|
maxAccountsPerToolkit?: number | undefined;
|
|
1313
1345
|
requireExplicitSelection?: boolean | undefined;
|
|
1314
1346
|
} | undefined;
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1347
|
+
experimental?: {
|
|
1348
|
+
assistivePrompt?: {
|
|
1349
|
+
userTimezone?: string | undefined;
|
|
1350
|
+
} | undefined;
|
|
1351
|
+
customTools?: CustomTool[] | undefined;
|
|
1352
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1318
1353
|
} | undefined;
|
|
1354
|
+
}>, {
|
|
1319
1355
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1320
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1321
1356
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1357
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1322
1358
|
} | undefined;
|
|
1323
1359
|
tools?: Record<string, string[] | {
|
|
1324
1360
|
enable: string[];
|
|
@@ -1326,8 +1362,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1326
1362
|
disable: string[];
|
|
1327
1363
|
} | {
|
|
1328
1364
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1329
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1330
1365
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1366
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1331
1367
|
};
|
|
1332
1368
|
}> | undefined;
|
|
1333
1369
|
toolkits?: string[] | {
|
|
@@ -1335,21 +1371,24 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1335
1371
|
} | {
|
|
1336
1372
|
enable: string[];
|
|
1337
1373
|
} | undefined;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
userTimezone?: string | undefined;
|
|
1341
|
-
} | undefined;
|
|
1342
|
-
customTools?: CustomTool[] | undefined;
|
|
1343
|
-
customToolkits?: CustomToolkit[] | undefined;
|
|
1374
|
+
preload?: {
|
|
1375
|
+
tools?: string[] | "all" | undefined;
|
|
1344
1376
|
} | undefined;
|
|
1345
|
-
sessionPreset?: "direct_tools" | undefined;
|
|
1346
1377
|
authConfigs?: Record<string, string> | undefined;
|
|
1378
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1379
|
+
mcp?: boolean | undefined;
|
|
1347
1380
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1348
1381
|
manageConnections?: boolean | {
|
|
1349
|
-
callbackUrl?: string | undefined;
|
|
1350
1382
|
enable?: boolean | undefined;
|
|
1383
|
+
callbackUrl?: string | undefined;
|
|
1351
1384
|
waitForConnections?: boolean | undefined;
|
|
1352
1385
|
} | undefined;
|
|
1386
|
+
sandbox?: {
|
|
1387
|
+
enable: boolean;
|
|
1388
|
+
enableProxyExecution?: boolean | undefined;
|
|
1389
|
+
autoOffloadThreshold?: number | undefined;
|
|
1390
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1391
|
+
} | undefined;
|
|
1353
1392
|
workbench?: {
|
|
1354
1393
|
enable: boolean;
|
|
1355
1394
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -1361,24 +1400,144 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1361
1400
|
maxAccountsPerToolkit?: number | undefined;
|
|
1362
1401
|
requireExplicitSelection?: boolean | undefined;
|
|
1363
1402
|
} | undefined;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1403
|
+
experimental?: {
|
|
1404
|
+
assistivePrompt?: {
|
|
1405
|
+
userTimezone?: string | undefined;
|
|
1406
|
+
} | undefined;
|
|
1407
|
+
customTools?: CustomTool[] | undefined;
|
|
1408
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1409
|
+
} | undefined;
|
|
1410
|
+
}, {
|
|
1411
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1412
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1413
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1414
|
+
} | undefined;
|
|
1415
|
+
tools?: Record<string, string[] | {
|
|
1416
|
+
enable: string[];
|
|
1417
|
+
} | {
|
|
1418
|
+
disable: string[];
|
|
1419
|
+
} | {
|
|
1420
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1421
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1422
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1423
|
+
};
|
|
1424
|
+
}> | undefined;
|
|
1425
|
+
toolkits?: string[] | {
|
|
1426
|
+
disable: string[];
|
|
1427
|
+
} | {
|
|
1428
|
+
enable: string[];
|
|
1429
|
+
} | undefined;
|
|
1430
|
+
preload?: {
|
|
1431
|
+
tools?: string[] | "all" | undefined;
|
|
1432
|
+
} | undefined;
|
|
1433
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1434
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1435
|
+
mcp?: boolean | undefined;
|
|
1436
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1437
|
+
manageConnections?: boolean | {
|
|
1438
|
+
enable?: boolean | undefined;
|
|
1439
|
+
callbackUrl?: string | undefined;
|
|
1440
|
+
waitForConnections?: boolean | undefined;
|
|
1441
|
+
} | undefined;
|
|
1442
|
+
sandbox?: {
|
|
1443
|
+
enable?: boolean | undefined;
|
|
1444
|
+
enableProxyExecution?: boolean | undefined;
|
|
1445
|
+
autoOffloadThreshold?: number | undefined;
|
|
1446
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1447
|
+
} | undefined;
|
|
1448
|
+
workbench?: {
|
|
1449
|
+
enable?: boolean | undefined;
|
|
1450
|
+
enableProxyExecution?: boolean | undefined;
|
|
1451
|
+
autoOffloadThreshold?: number | undefined;
|
|
1452
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1453
|
+
} | undefined;
|
|
1454
|
+
multiAccount?: {
|
|
1455
|
+
enable?: boolean | undefined;
|
|
1456
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1457
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1458
|
+
} | undefined;
|
|
1459
|
+
experimental?: {
|
|
1460
|
+
assistivePrompt?: {
|
|
1461
|
+
userTimezone?: string | undefined;
|
|
1462
|
+
} | undefined;
|
|
1463
|
+
customTools?: CustomTool[] | undefined;
|
|
1464
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
}>, {
|
|
1467
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1468
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1469
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1470
|
+
} | undefined;
|
|
1471
|
+
tools?: Record<string, string[] | {
|
|
1472
|
+
enable: string[];
|
|
1473
|
+
} | {
|
|
1474
|
+
disable: string[];
|
|
1475
|
+
} | {
|
|
1476
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1477
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1478
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1479
|
+
};
|
|
1480
|
+
}> | undefined;
|
|
1481
|
+
toolkits?: string[] | {
|
|
1482
|
+
disable: string[];
|
|
1483
|
+
} | {
|
|
1484
|
+
enable: string[];
|
|
1485
|
+
} | undefined;
|
|
1486
|
+
preload?: {
|
|
1487
|
+
tools?: string[] | "all" | undefined;
|
|
1488
|
+
} | undefined;
|
|
1489
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1490
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1491
|
+
mcp?: boolean | undefined;
|
|
1492
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1493
|
+
manageConnections?: boolean | {
|
|
1494
|
+
enable?: boolean | undefined;
|
|
1495
|
+
callbackUrl?: string | undefined;
|
|
1496
|
+
waitForConnections?: boolean | undefined;
|
|
1497
|
+
} | undefined;
|
|
1498
|
+
sandbox?: {
|
|
1499
|
+
enable: boolean;
|
|
1500
|
+
enableProxyExecution?: boolean | undefined;
|
|
1501
|
+
autoOffloadThreshold?: number | undefined;
|
|
1502
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1503
|
+
} | undefined;
|
|
1504
|
+
workbench?: {
|
|
1505
|
+
enable: boolean;
|
|
1506
|
+
enableProxyExecution?: boolean | undefined;
|
|
1507
|
+
autoOffloadThreshold?: number | undefined;
|
|
1508
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1509
|
+
} | undefined;
|
|
1510
|
+
multiAccount?: {
|
|
1511
|
+
enable: boolean;
|
|
1512
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1513
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1514
|
+
} | undefined;
|
|
1515
|
+
experimental?: {
|
|
1516
|
+
assistivePrompt?: {
|
|
1517
|
+
userTimezone?: string | undefined;
|
|
1518
|
+
} | undefined;
|
|
1519
|
+
customTools?: CustomTool[] | undefined;
|
|
1520
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1521
|
+
} | undefined;
|
|
1522
|
+
}, unknown>;
|
|
1523
|
+
/**
|
|
1524
|
+
* The config for the tool router session.
|
|
1525
|
+
*
|
|
1526
|
+
* @param {SessionPreset} [sessionPreset] - Shortcut that exposes every tool allowed by the session filters directly in session.tools() and the MCP tool list. Disables search, multi-execute, manage-connections, and sandbox by default; explicit overrides for supported fields still win. Without this preset, ToolRouter uses the default configuration with meta tools enabled.
|
|
1527
|
+
* @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
|
|
1528
|
+
* @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
|
|
1529
|
+
* @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
|
|
1530
|
+
* @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
|
|
1373
1531
|
* @param {Record<string, string | string[]>} connectedAccounts - The connected accounts to use in the tool router session. A single string is coerced to a single-element array before being sent to the backend.
|
|
1374
1532
|
* @param {ToolRouterConfigManageConnectionsSchema | boolean} manageConnections - The config for the manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually. If set to an object, you can configure the manage connections settings.
|
|
1375
1533
|
* @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
|
|
1376
1534
|
* @param {string} [manageConnections.callbackUrl] - The callback url to use in the tool router session
|
|
1377
|
-
* @param {object}
|
|
1378
|
-
* @param {boolean} [
|
|
1379
|
-
* @param {boolean} [
|
|
1380
|
-
* @param {number} [
|
|
1381
|
-
* @param {SandboxSize} [
|
|
1535
|
+
* @param {object} sandbox - Sandbox configuration for code execution. Preferred over workbench.
|
|
1536
|
+
* @param {boolean} [sandbox.enable] - Whether to enable the sandbox entirely. Defaults to true. When false, no code execution tools are available.
|
|
1537
|
+
* @param {boolean} [sandbox.enableProxyExecution] - Whether to enable proxy execution
|
|
1538
|
+
* @param {number} [sandbox.autoOffloadThreshold] - Auto offload threshold in characters for moving execution to the sandbox
|
|
1539
|
+
* @param {SandboxSize} [sandbox.sandboxSize] - Sandbox compute tier: 'standard' (1 vCPU/1 GB, default), 'medium' (2 vCPU/2 GB), 'large' (4 vCPU/4 GB), or 'xlarge' (8 vCPU/8 GB)
|
|
1540
|
+
* @param {object} workbench - Deprecated alias for sandbox. Accepted for backwards compatibility.
|
|
1382
1541
|
* @param {object} [multiAccount] - Multi-account configuration for this session
|
|
1383
1542
|
* @param {boolean} [multiAccount.enable] - When true, enables multi-account mode. Falls back to org/project-level config when not set.
|
|
1384
1543
|
* @param {number} [multiAccount.maxAccountsPerToolkit] - Max connected accounts per toolkit (2-10, default 5)
|
|
@@ -1386,19 +1545,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1386
1545
|
* @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
|
|
1387
1546
|
* @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
|
|
1388
1547
|
*/
|
|
1389
|
-
type ToolRouterCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
1390
|
-
declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
1391
|
-
slug: z.ZodString;
|
|
1392
|
-
name: z.ZodString;
|
|
1393
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
isNoAuth: z.ZodDefault<z.ZodBoolean>;
|
|
1395
|
-
connection: z.ZodOptional<z.ZodObject<{
|
|
1396
|
-
isActive: z.ZodBoolean;
|
|
1397
|
-
authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1398
|
-
id: z.ZodString;
|
|
1399
|
-
mode: z.ZodString;
|
|
1400
|
-
isComposioManaged: z.ZodBoolean;
|
|
1401
|
-
}, "strip", z.ZodTypeAny, {
|
|
1548
|
+
type ToolRouterCreateSessionConfig = z$1.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
1549
|
+
declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
1550
|
+
slug: z$1.ZodString;
|
|
1551
|
+
name: z$1.ZodString;
|
|
1552
|
+
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
1553
|
+
isNoAuth: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1554
|
+
connection: z$1.ZodOptional<z$1.ZodObject<{
|
|
1555
|
+
isActive: z$1.ZodBoolean;
|
|
1556
|
+
authConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
1557
|
+
id: z$1.ZodString;
|
|
1558
|
+
mode: z$1.ZodString;
|
|
1559
|
+
isComposioManaged: z$1.ZodBoolean;
|
|
1560
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1402
1561
|
id: string;
|
|
1403
1562
|
mode: string;
|
|
1404
1563
|
isComposioManaged: boolean;
|
|
@@ -1407,17 +1566,17 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1407
1566
|
mode: string;
|
|
1408
1567
|
isComposioManaged: boolean;
|
|
1409
1568
|
}>>>;
|
|
1410
|
-
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1411
|
-
id: z.ZodString;
|
|
1412
|
-
status: z.ZodString;
|
|
1413
|
-
}, "strip", z.ZodTypeAny, {
|
|
1569
|
+
connectedAccount: z$1.ZodOptional<z$1.ZodObject<{
|
|
1570
|
+
id: z$1.ZodString;
|
|
1571
|
+
status: z$1.ZodString;
|
|
1572
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1414
1573
|
status: string;
|
|
1415
1574
|
id: string;
|
|
1416
1575
|
}, {
|
|
1417
1576
|
status: string;
|
|
1418
1577
|
id: string;
|
|
1419
1578
|
}>>;
|
|
1420
|
-
}, "strip", z.ZodTypeAny, {
|
|
1579
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1421
1580
|
isActive: boolean;
|
|
1422
1581
|
authConfig?: {
|
|
1423
1582
|
id: string;
|
|
@@ -1440,9 +1599,9 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1440
1599
|
id: string;
|
|
1441
1600
|
} | undefined;
|
|
1442
1601
|
}>>;
|
|
1443
|
-
}, "strip", z.ZodTypeAny, {
|
|
1444
|
-
name: string;
|
|
1602
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1445
1603
|
slug: string;
|
|
1604
|
+
name: string;
|
|
1446
1605
|
isNoAuth: boolean;
|
|
1447
1606
|
logo?: string | undefined;
|
|
1448
1607
|
connection?: {
|
|
@@ -1458,8 +1617,8 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1458
1617
|
} | undefined;
|
|
1459
1618
|
} | undefined;
|
|
1460
1619
|
}, {
|
|
1461
|
-
name: string;
|
|
1462
1620
|
slug: string;
|
|
1621
|
+
name: string;
|
|
1463
1622
|
logo?: string | undefined;
|
|
1464
1623
|
isNoAuth?: boolean | undefined;
|
|
1465
1624
|
connection?: {
|
|
@@ -1475,19 +1634,19 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1475
1634
|
} | undefined;
|
|
1476
1635
|
} | undefined;
|
|
1477
1636
|
}>;
|
|
1478
|
-
declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
1479
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1480
|
-
slug: z.ZodString;
|
|
1481
|
-
name: z.ZodString;
|
|
1482
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
1483
|
-
isNoAuth: z.ZodDefault<z.ZodBoolean>;
|
|
1484
|
-
connection: z.ZodOptional<z.ZodObject<{
|
|
1485
|
-
isActive: z.ZodBoolean;
|
|
1486
|
-
authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1487
|
-
id: z.ZodString;
|
|
1488
|
-
mode: z.ZodString;
|
|
1489
|
-
isComposioManaged: z.ZodBoolean;
|
|
1490
|
-
}, "strip", z.ZodTypeAny, {
|
|
1637
|
+
declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
1638
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
1639
|
+
slug: z$1.ZodString;
|
|
1640
|
+
name: z$1.ZodString;
|
|
1641
|
+
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
1642
|
+
isNoAuth: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1643
|
+
connection: z$1.ZodOptional<z$1.ZodObject<{
|
|
1644
|
+
isActive: z$1.ZodBoolean;
|
|
1645
|
+
authConfig: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
1646
|
+
id: z$1.ZodString;
|
|
1647
|
+
mode: z$1.ZodString;
|
|
1648
|
+
isComposioManaged: z$1.ZodBoolean;
|
|
1649
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1491
1650
|
id: string;
|
|
1492
1651
|
mode: string;
|
|
1493
1652
|
isComposioManaged: boolean;
|
|
@@ -1496,17 +1655,17 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1496
1655
|
mode: string;
|
|
1497
1656
|
isComposioManaged: boolean;
|
|
1498
1657
|
}>>>;
|
|
1499
|
-
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1500
|
-
id: z.ZodString;
|
|
1501
|
-
status: z.ZodString;
|
|
1502
|
-
}, "strip", z.ZodTypeAny, {
|
|
1658
|
+
connectedAccount: z$1.ZodOptional<z$1.ZodObject<{
|
|
1659
|
+
id: z$1.ZodString;
|
|
1660
|
+
status: z$1.ZodString;
|
|
1661
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1503
1662
|
status: string;
|
|
1504
1663
|
id: string;
|
|
1505
1664
|
}, {
|
|
1506
1665
|
status: string;
|
|
1507
1666
|
id: string;
|
|
1508
1667
|
}>>;
|
|
1509
|
-
}, "strip", z.ZodTypeAny, {
|
|
1668
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1510
1669
|
isActive: boolean;
|
|
1511
1670
|
authConfig?: {
|
|
1512
1671
|
id: string;
|
|
@@ -1529,9 +1688,9 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1529
1688
|
id: string;
|
|
1530
1689
|
} | undefined;
|
|
1531
1690
|
}>>;
|
|
1532
|
-
}, "strip", z.ZodTypeAny, {
|
|
1533
|
-
name: string;
|
|
1691
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1534
1692
|
slug: string;
|
|
1693
|
+
name: string;
|
|
1535
1694
|
isNoAuth: boolean;
|
|
1536
1695
|
logo?: string | undefined;
|
|
1537
1696
|
connection?: {
|
|
@@ -1547,8 +1706,8 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1547
1706
|
} | undefined;
|
|
1548
1707
|
} | undefined;
|
|
1549
1708
|
}, {
|
|
1550
|
-
name: string;
|
|
1551
1709
|
slug: string;
|
|
1710
|
+
name: string;
|
|
1552
1711
|
logo?: string | undefined;
|
|
1553
1712
|
isNoAuth?: boolean | undefined;
|
|
1554
1713
|
connection?: {
|
|
@@ -1564,12 +1723,12 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1564
1723
|
} | undefined;
|
|
1565
1724
|
} | undefined;
|
|
1566
1725
|
}>, "many">;
|
|
1567
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1568
|
-
totalPages: z.ZodNumber;
|
|
1569
|
-
}, "strip", z.ZodTypeAny, {
|
|
1726
|
+
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
1727
|
+
totalPages: z$1.ZodNumber;
|
|
1728
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1570
1729
|
items: {
|
|
1571
|
-
name: string;
|
|
1572
1730
|
slug: string;
|
|
1731
|
+
name: string;
|
|
1573
1732
|
isNoAuth: boolean;
|
|
1574
1733
|
logo?: string | undefined;
|
|
1575
1734
|
connection?: {
|
|
@@ -1589,8 +1748,8 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1589
1748
|
cursor?: string | undefined;
|
|
1590
1749
|
}, {
|
|
1591
1750
|
items: {
|
|
1592
|
-
name: string;
|
|
1593
1751
|
slug: string;
|
|
1752
|
+
name: string;
|
|
1594
1753
|
logo?: string | undefined;
|
|
1595
1754
|
isNoAuth?: boolean | undefined;
|
|
1596
1755
|
connection?: {
|
|
@@ -1609,13 +1768,13 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1609
1768
|
totalPages: number;
|
|
1610
1769
|
cursor?: string | undefined;
|
|
1611
1770
|
}>;
|
|
1612
|
-
type ToolkitConnectionsDetails = z.infer<typeof ToolkitConnectionsDetailsSchema>;
|
|
1613
|
-
type ToolkitConnectionState = z.infer<typeof ToolkitConnectionStateSchema>;
|
|
1614
|
-
declare const ToolRouterMCPServerConfigSchema: z.ZodObject<{
|
|
1615
|
-
type: z.ZodEnum<["http", "sse"]>;
|
|
1616
|
-
url: z.ZodString;
|
|
1617
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1618
|
-
}, "strip", z.ZodTypeAny, {
|
|
1771
|
+
type ToolkitConnectionsDetails = z$1.infer<typeof ToolkitConnectionsDetailsSchema>;
|
|
1772
|
+
type ToolkitConnectionState = z$1.infer<typeof ToolkitConnectionStateSchema>;
|
|
1773
|
+
declare const ToolRouterMCPServerConfigSchema: z$1.ZodObject<{
|
|
1774
|
+
type: z$1.ZodEnum<["http", "sse"]>;
|
|
1775
|
+
url: z$1.ZodString;
|
|
1776
|
+
headers: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
1777
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1619
1778
|
type: "http" | "sse";
|
|
1620
1779
|
url: string;
|
|
1621
1780
|
headers?: Record<string, string> | undefined;
|
|
@@ -1624,19 +1783,19 @@ declare const ToolRouterMCPServerConfigSchema: z.ZodObject<{
|
|
|
1624
1783
|
url: string;
|
|
1625
1784
|
headers?: Record<string, string> | undefined;
|
|
1626
1785
|
}>;
|
|
1627
|
-
type ToolRouterMCPServerConfig = z.infer<typeof ToolRouterMCPServerConfigSchema>;
|
|
1786
|
+
type ToolRouterMCPServerConfig = z$1.infer<typeof ToolRouterMCPServerConfigSchema>;
|
|
1628
1787
|
type ToolRouterToolsFn<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = (modifiers?: SessionMetaToolOptions) => Promise<ReturnType<TProvider['wrapTools']>>;
|
|
1629
1788
|
type ToolRouterAuthorizeFn = (toolkit: string, options?: {
|
|
1630
1789
|
callbackUrl?: string;
|
|
1631
1790
|
alias?: string;
|
|
1632
1791
|
}) => Promise<ConnectionRequest>;
|
|
1633
|
-
declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
1634
|
-
toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1635
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1636
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
1637
|
-
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
1638
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1639
|
-
}, "strip", z.ZodTypeAny, {
|
|
1792
|
+
declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
1793
|
+
toolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
1794
|
+
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
1795
|
+
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1796
|
+
isConnected: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1797
|
+
search: z$1.ZodOptional<z$1.ZodString>;
|
|
1798
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1640
1799
|
toolkits?: string[] | undefined;
|
|
1641
1800
|
limit?: number | undefined;
|
|
1642
1801
|
search?: string | undefined;
|
|
@@ -1649,35 +1808,35 @@ declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
|
1649
1808
|
cursor?: string | undefined;
|
|
1650
1809
|
isConnected?: boolean | undefined;
|
|
1651
1810
|
}>;
|
|
1652
|
-
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
1811
|
+
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
1653
1812
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
1654
|
-
declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
1655
|
-
success: z.ZodBoolean;
|
|
1656
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1657
|
-
results: z.ZodArray<z.ZodObject<{
|
|
1658
|
-
index: z.ZodNumber;
|
|
1659
|
-
useCase: z.ZodString;
|
|
1660
|
-
primaryToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1661
|
-
relatedToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1662
|
-
toolkits: z.ZodArray<z.ZodString, "many">;
|
|
1663
|
-
difficulty: z.ZodOptional<z.ZodString>;
|
|
1664
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1665
|
-
executionGuidance: z.ZodOptional<z.ZodString>;
|
|
1666
|
-
knownPitfalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1667
|
-
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1668
|
-
planId: z.ZodOptional<z.ZodString>;
|
|
1669
|
-
recommendedPlanSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1670
|
-
referenceWorkbenchSnippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1671
|
-
code: z.ZodString;
|
|
1672
|
-
description: z.ZodString;
|
|
1673
|
-
}, "strip", z.ZodTypeAny, {
|
|
1813
|
+
declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
1814
|
+
success: z$1.ZodBoolean;
|
|
1815
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
1816
|
+
results: z$1.ZodArray<z$1.ZodObject<{
|
|
1817
|
+
index: z$1.ZodNumber;
|
|
1818
|
+
useCase: z$1.ZodString;
|
|
1819
|
+
primaryToolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1820
|
+
relatedToolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1821
|
+
toolkits: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1822
|
+
difficulty: z$1.ZodOptional<z$1.ZodString>;
|
|
1823
|
+
error: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
1824
|
+
executionGuidance: z$1.ZodOptional<z$1.ZodString>;
|
|
1825
|
+
knownPitfalls: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
1826
|
+
memory: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
1827
|
+
planId: z$1.ZodOptional<z$1.ZodString>;
|
|
1828
|
+
recommendedPlanSteps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
1829
|
+
referenceWorkbenchSnippets: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1830
|
+
code: z$1.ZodString;
|
|
1831
|
+
description: z$1.ZodString;
|
|
1832
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1674
1833
|
code: string;
|
|
1675
1834
|
description: string;
|
|
1676
1835
|
}, {
|
|
1677
1836
|
code: string;
|
|
1678
1837
|
description: string;
|
|
1679
1838
|
}>, "many">>;
|
|
1680
|
-
}, "strip", z.ZodTypeAny, {
|
|
1839
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1681
1840
|
toolkits: string[];
|
|
1682
1841
|
index: number;
|
|
1683
1842
|
useCase: string;
|
|
@@ -1712,24 +1871,24 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1712
1871
|
description: string;
|
|
1713
1872
|
}[] | undefined;
|
|
1714
1873
|
}>, "many">;
|
|
1715
|
-
toolSchemas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1716
|
-
toolSlug: z.ZodString;
|
|
1717
|
-
toolkit: z.ZodString;
|
|
1718
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1719
|
-
hasFullSchema: z.ZodOptional<z.ZodBoolean>;
|
|
1720
|
-
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1721
|
-
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1722
|
-
schemaRef: z.ZodOptional<z.ZodObject<{
|
|
1723
|
-
args: z.ZodObject<{
|
|
1724
|
-
toolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1725
|
-
}, "strip", z.ZodTypeAny, {
|
|
1874
|
+
toolSchemas: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
1875
|
+
toolSlug: z$1.ZodString;
|
|
1876
|
+
toolkit: z$1.ZodString;
|
|
1877
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
1878
|
+
hasFullSchema: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1879
|
+
inputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1880
|
+
outputSchema: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1881
|
+
schemaRef: z$1.ZodOptional<z$1.ZodObject<{
|
|
1882
|
+
args: z$1.ZodObject<{
|
|
1883
|
+
toolSlugs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1884
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1726
1885
|
toolSlugs: string[];
|
|
1727
1886
|
}, {
|
|
1728
1887
|
toolSlugs: string[];
|
|
1729
1888
|
}>;
|
|
1730
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1731
|
-
tool: z.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
|
|
1732
|
-
}, "strip", z.ZodTypeAny, {
|
|
1889
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
1890
|
+
tool: z$1.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
|
|
1891
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1733
1892
|
args: {
|
|
1734
1893
|
toolSlugs: string[];
|
|
1735
1894
|
};
|
|
@@ -1742,7 +1901,7 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1742
1901
|
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
1743
1902
|
message?: string | undefined;
|
|
1744
1903
|
}>>;
|
|
1745
|
-
}, "strip", z.ZodTypeAny, {
|
|
1904
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1746
1905
|
toolkit: string;
|
|
1747
1906
|
toolSlug: string;
|
|
1748
1907
|
description?: string | undefined;
|
|
@@ -1771,14 +1930,14 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1771
1930
|
message?: string | undefined;
|
|
1772
1931
|
} | undefined;
|
|
1773
1932
|
}>>;
|
|
1774
|
-
toolkitConnectionStatuses: z.ZodArray<z.ZodObject<{
|
|
1775
|
-
toolkit: z.ZodString;
|
|
1776
|
-
description: z.ZodString;
|
|
1777
|
-
hasActiveConnection: z.ZodBoolean;
|
|
1778
|
-
statusMessage: z.ZodString;
|
|
1779
|
-
connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1780
|
-
currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1781
|
-
}, "strip", z.ZodTypeAny, {
|
|
1933
|
+
toolkitConnectionStatuses: z$1.ZodArray<z$1.ZodObject<{
|
|
1934
|
+
toolkit: z$1.ZodString;
|
|
1935
|
+
description: z$1.ZodString;
|
|
1936
|
+
hasActiveConnection: z$1.ZodBoolean;
|
|
1937
|
+
statusMessage: z$1.ZodString;
|
|
1938
|
+
connectionDetails: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1939
|
+
currentUserInfo: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1940
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1782
1941
|
description: string;
|
|
1783
1942
|
toolkit: string;
|
|
1784
1943
|
hasActiveConnection: boolean;
|
|
@@ -1793,25 +1952,25 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1793
1952
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1794
1953
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1795
1954
|
}>, "many">;
|
|
1796
|
-
nextStepsGuidance: z.ZodArray<z.ZodString, "many">;
|
|
1797
|
-
session: z.ZodObject<{
|
|
1798
|
-
id: z.ZodString;
|
|
1799
|
-
generateId: z.ZodBoolean;
|
|
1800
|
-
instructions: z.ZodString;
|
|
1801
|
-
}, "strip", z.ZodTypeAny, {
|
|
1955
|
+
nextStepsGuidance: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1956
|
+
session: z$1.ZodObject<{
|
|
1957
|
+
id: z$1.ZodString;
|
|
1958
|
+
generateId: z$1.ZodBoolean;
|
|
1959
|
+
instructions: z$1.ZodString;
|
|
1960
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1802
1961
|
id: string;
|
|
1803
|
-
instructions: string;
|
|
1804
1962
|
generateId: boolean;
|
|
1963
|
+
instructions: string;
|
|
1805
1964
|
}, {
|
|
1806
1965
|
id: string;
|
|
1807
|
-
instructions: string;
|
|
1808
1966
|
generateId: boolean;
|
|
1967
|
+
instructions: string;
|
|
1809
1968
|
}>;
|
|
1810
|
-
timeInfo: z.ZodObject<{
|
|
1811
|
-
currentTimeUtc: z.ZodString;
|
|
1812
|
-
currentTimeUtcEpochSeconds: z.ZodNumber;
|
|
1813
|
-
message: z.ZodString;
|
|
1814
|
-
}, "strip", z.ZodTypeAny, {
|
|
1969
|
+
timeInfo: z$1.ZodObject<{
|
|
1970
|
+
currentTimeUtc: z$1.ZodString;
|
|
1971
|
+
currentTimeUtcEpochSeconds: z$1.ZodNumber;
|
|
1972
|
+
message: z$1.ZodString;
|
|
1973
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1815
1974
|
message: string;
|
|
1816
1975
|
currentTimeUtc: string;
|
|
1817
1976
|
currentTimeUtcEpochSeconds: number;
|
|
@@ -1820,7 +1979,7 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1820
1979
|
currentTimeUtc: string;
|
|
1821
1980
|
currentTimeUtcEpochSeconds: number;
|
|
1822
1981
|
}>;
|
|
1823
|
-
}, "strip", z.ZodTypeAny, {
|
|
1982
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1824
1983
|
error: string | null;
|
|
1825
1984
|
success: boolean;
|
|
1826
1985
|
results: {
|
|
@@ -1867,8 +2026,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1867
2026
|
nextStepsGuidance: string[];
|
|
1868
2027
|
session: {
|
|
1869
2028
|
id: string;
|
|
1870
|
-
instructions: string;
|
|
1871
2029
|
generateId: boolean;
|
|
2030
|
+
instructions: string;
|
|
1872
2031
|
};
|
|
1873
2032
|
timeInfo: {
|
|
1874
2033
|
message: string;
|
|
@@ -1922,8 +2081,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1922
2081
|
nextStepsGuidance: string[];
|
|
1923
2082
|
session: {
|
|
1924
2083
|
id: string;
|
|
1925
|
-
instructions: string;
|
|
1926
2084
|
generateId: boolean;
|
|
2085
|
+
instructions: string;
|
|
1927
2086
|
};
|
|
1928
2087
|
timeInfo: {
|
|
1929
2088
|
message: string;
|
|
@@ -1931,12 +2090,12 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1931
2090
|
currentTimeUtcEpochSeconds: number;
|
|
1932
2091
|
};
|
|
1933
2092
|
}>;
|
|
1934
|
-
type ToolRouterSessionSearchResponse = z.infer<typeof ToolRouterSessionSearchResponseSchema>;
|
|
1935
|
-
declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
|
|
1936
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1937
|
-
error: z.ZodNullable<z.ZodString>;
|
|
1938
|
-
logId: z.ZodString;
|
|
1939
|
-
}, "strip", z.ZodTypeAny, {
|
|
2093
|
+
type ToolRouterSessionSearchResponse = z$1.infer<typeof ToolRouterSessionSearchResponseSchema>;
|
|
2094
|
+
declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
|
|
2095
|
+
data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
2096
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
2097
|
+
logId: z$1.ZodString;
|
|
2098
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1940
2099
|
data: Record<string, unknown>;
|
|
1941
2100
|
error: string | null;
|
|
1942
2101
|
logId: string;
|
|
@@ -1945,7 +2104,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
|
|
|
1945
2104
|
error: string | null;
|
|
1946
2105
|
logId: string;
|
|
1947
2106
|
}>;
|
|
1948
|
-
type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
2107
|
+
type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
1949
2108
|
interface ToolRouterSessionProxyExecuteResponse {
|
|
1950
2109
|
/** The HTTP status code returned from the proxied API */
|
|
1951
2110
|
status: number;
|
|
@@ -1991,29 +2150,26 @@ interface ToolRouterSessionExecuteOptions {
|
|
|
1991
2150
|
account?: string;
|
|
1992
2151
|
}
|
|
1993
2152
|
type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
|
|
2153
|
+
type ToolRouterSessionWorkbenchConfig = SessionCreateResponse.Config.Workbench;
|
|
1994
2154
|
type ToolRouterSessionWarning = SessionCreateResponse.Warning;
|
|
1995
2155
|
interface ToolRouterSessionMetadata {
|
|
1996
2156
|
preload?: ToolRouterSessionPreloadConfig;
|
|
2157
|
+
workbench?: ToolRouterSessionWorkbenchConfig;
|
|
1997
2158
|
configVersion?: number;
|
|
1998
2159
|
warnings?: ToolRouterSessionWarning[];
|
|
1999
2160
|
preloadedCustomToolSlugs?: string[];
|
|
2000
2161
|
inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
|
|
2001
2162
|
}
|
|
2002
|
-
declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
2003
|
-
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2013
|
-
in: z.ZodEnum<["query", "header"]>;
|
|
2014
|
-
name: z.ZodString;
|
|
2015
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2016
|
-
}, "strip", z.ZodTypeAny, {
|
|
2163
|
+
declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
2164
|
+
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */toolkit: z$1.ZodString; /** The API endpoint URL to call */
|
|
2165
|
+
endpoint: z$1.ZodString; /** HTTP method */
|
|
2166
|
+
method: z$1.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>; /** Request body (for POST/PUT/PATCH) */
|
|
2167
|
+
body: z$1.ZodOptional<z$1.ZodUnknown>; /** Query params or headers to include */
|
|
2168
|
+
parameters: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2169
|
+
in: z$1.ZodEnum<["query", "header"]>;
|
|
2170
|
+
name: z$1.ZodString;
|
|
2171
|
+
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>;
|
|
2172
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2017
2173
|
name: string;
|
|
2018
2174
|
value: string | number;
|
|
2019
2175
|
in: "query" | "header";
|
|
@@ -2022,7 +2178,7 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
|
2022
2178
|
value: string | number;
|
|
2023
2179
|
in: "query" | "header";
|
|
2024
2180
|
}>, "many">>;
|
|
2025
|
-
}, "strip", z.ZodTypeAny, {
|
|
2181
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2026
2182
|
toolkit: string;
|
|
2027
2183
|
endpoint: string;
|
|
2028
2184
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
@@ -2043,54 +2199,54 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
|
2043
2199
|
in: "query" | "header";
|
|
2044
2200
|
}[] | undefined;
|
|
2045
2201
|
}>;
|
|
2046
|
-
type SessionProxyExecuteParams = z.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
2202
|
+
type SessionProxyExecuteParams = z$1.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
2047
2203
|
type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2048
|
-
declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
2049
|
-
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2050
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
2051
|
-
}, "strict", z.ZodTypeAny, {
|
|
2204
|
+
declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
2205
|
+
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
2206
|
+
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2207
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2052
2208
|
disable: string[];
|
|
2053
2209
|
}, {
|
|
2054
2210
|
disable: string[];
|
|
2055
|
-
}>, z.ZodObject<{
|
|
2056
|
-
enable: z.ZodArray<z.ZodString, "many">;
|
|
2057
|
-
}, "strict", z.ZodTypeAny, {
|
|
2211
|
+
}>, z$1.ZodObject<{
|
|
2212
|
+
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2213
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2058
2214
|
enable: string[];
|
|
2059
2215
|
}, {
|
|
2060
2216
|
enable: string[];
|
|
2061
2217
|
}>]>>>;
|
|
2062
|
-
tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2063
|
-
enable: z.ZodArray<z.ZodString, "many">;
|
|
2064
|
-
}, "strict", z.ZodTypeAny, {
|
|
2218
|
+
tools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
2219
|
+
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2220
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2065
2221
|
enable: string[];
|
|
2066
2222
|
}, {
|
|
2067
2223
|
enable: string[];
|
|
2068
|
-
}>, z.ZodObject<{
|
|
2069
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
2070
|
-
}, "strict", z.ZodTypeAny, {
|
|
2224
|
+
}>, z$1.ZodObject<{
|
|
2225
|
+
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2226
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2071
2227
|
disable: string[];
|
|
2072
2228
|
}, {
|
|
2073
2229
|
disable: string[];
|
|
2074
|
-
}>, z.ZodObject<{
|
|
2075
|
-
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
2076
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2077
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2078
|
-
}, "strict", z.ZodTypeAny, {
|
|
2079
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2230
|
+
}>, z$1.ZodObject<{
|
|
2231
|
+
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
2232
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2233
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2234
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2080
2235
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2081
|
-
}, {
|
|
2082
2236
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2237
|
+
}, {
|
|
2083
2238
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2239
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2084
2240
|
}>]>;
|
|
2085
|
-
}, "strict", z.ZodTypeAny, {
|
|
2241
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2086
2242
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2087
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2088
2243
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2244
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2089
2245
|
};
|
|
2090
2246
|
}, {
|
|
2091
2247
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2092
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2093
2248
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2249
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2094
2250
|
};
|
|
2095
2251
|
}>]>, string[] | {
|
|
2096
2252
|
enable: string[];
|
|
@@ -2098,8 +2254,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2098
2254
|
disable: string[];
|
|
2099
2255
|
} | {
|
|
2100
2256
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2101
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2102
2257
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2258
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2103
2259
|
};
|
|
2104
2260
|
}, string[] | {
|
|
2105
2261
|
enable: string[];
|
|
@@ -2107,41 +2263,41 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2107
2263
|
disable: string[];
|
|
2108
2264
|
} | {
|
|
2109
2265
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2110
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2111
2266
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2267
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2112
2268
|
};
|
|
2113
2269
|
}>]>>>>;
|
|
2114
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
2115
|
-
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2116
|
-
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2117
|
-
}, "strict", z.ZodTypeAny, {
|
|
2118
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2270
|
+
tags: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
2271
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2272
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2273
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2119
2274
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2120
|
-
}, {
|
|
2121
2275
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2276
|
+
}, {
|
|
2122
2277
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2278
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2123
2279
|
}>]>>>;
|
|
2124
|
-
authConfigs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2125
|
-
connectedAccounts: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>;
|
|
2126
|
-
manageConnections: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
2127
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2128
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
2129
|
-
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
2130
|
-
}, "strict", z.ZodTypeAny, {
|
|
2131
|
-
callbackUrl?: string | undefined;
|
|
2280
|
+
authConfigs: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
2281
|
+
connectedAccounts: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEffects<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>;
|
|
2282
|
+
manageConnections: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodObject<{
|
|
2283
|
+
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
2284
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
2285
|
+
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2286
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2132
2287
|
enable?: boolean | undefined;
|
|
2288
|
+
callbackUrl?: string | undefined;
|
|
2133
2289
|
waitForConnections?: boolean | undefined;
|
|
2134
2290
|
}, {
|
|
2135
|
-
callbackUrl?: string | undefined;
|
|
2136
2291
|
enable?: boolean | undefined;
|
|
2292
|
+
callbackUrl?: string | undefined;
|
|
2137
2293
|
waitForConnections?: boolean | undefined;
|
|
2138
2294
|
}>]>>>>;
|
|
2139
|
-
|
|
2140
|
-
enable: z.ZodOptional<z.ZodBoolean
|
|
2141
|
-
enableProxyExecution: z.ZodOptional<z.ZodBoolean
|
|
2142
|
-
autoOffloadThreshold: z.ZodOptional<z.ZodNumber
|
|
2143
|
-
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]
|
|
2144
|
-
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
sandbox: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
2296
|
+
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
2297
|
+
enableProxyExecution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
2298
|
+
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
2299
|
+
sandboxSize: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
|
|
2300
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2145
2301
|
enable?: boolean | undefined;
|
|
2146
2302
|
enableProxyExecution?: boolean | undefined;
|
|
2147
2303
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2152,11 +2308,27 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2152
2308
|
autoOffloadThreshold?: number | undefined;
|
|
2153
2309
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2154
2310
|
}>>>>;
|
|
2155
|
-
|
|
2156
|
-
enable: z.ZodOptional<z.ZodBoolean
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2311
|
+
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
2312
|
+
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
2313
|
+
enableProxyExecution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
2314
|
+
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
2315
|
+
sandboxSize: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
|
|
2316
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2317
|
+
enable?: boolean | undefined;
|
|
2318
|
+
enableProxyExecution?: boolean | undefined;
|
|
2319
|
+
autoOffloadThreshold?: number | undefined;
|
|
2320
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2321
|
+
}, {
|
|
2322
|
+
enable?: boolean | undefined;
|
|
2323
|
+
enableProxyExecution?: boolean | undefined;
|
|
2324
|
+
autoOffloadThreshold?: number | undefined;
|
|
2325
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2326
|
+
}>>>>;
|
|
2327
|
+
multiAccount: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
2328
|
+
enable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2329
|
+
maxAccountsPerToolkit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2330
|
+
requireExplicitSelection: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2331
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2160
2332
|
enable?: boolean | undefined;
|
|
2161
2333
|
maxAccountsPerToolkit?: number | undefined;
|
|
2162
2334
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -2165,20 +2337,17 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2165
2337
|
maxAccountsPerToolkit?: number | undefined;
|
|
2166
2338
|
requireExplicitSelection?: boolean | undefined;
|
|
2167
2339
|
}>>>>;
|
|
2168
|
-
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2169
|
-
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
2170
|
-
}, "strict", z.ZodTypeAny, {
|
|
2340
|
+
preload: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
2341
|
+
tools: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodLiteral<"all">]>>;
|
|
2342
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2171
2343
|
tools?: string[] | "all" | undefined;
|
|
2172
2344
|
}, {
|
|
2173
2345
|
tools?: string[] | "all" | undefined;
|
|
2174
2346
|
}>>>;
|
|
2175
|
-
}, "strip", z.ZodTypeAny, {
|
|
2176
|
-
preload?: {
|
|
2177
|
-
tools?: string[] | "all" | undefined;
|
|
2178
|
-
} | undefined;
|
|
2347
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2179
2348
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2180
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2181
2349
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2350
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2182
2351
|
} | undefined;
|
|
2183
2352
|
tools?: Record<string, string[] | {
|
|
2184
2353
|
enable: string[];
|
|
@@ -2186,8 +2355,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2186
2355
|
disable: string[];
|
|
2187
2356
|
} | {
|
|
2188
2357
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2189
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2190
2358
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2359
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2191
2360
|
};
|
|
2192
2361
|
}> | undefined;
|
|
2193
2362
|
toolkits?: string[] | {
|
|
@@ -2195,13 +2364,22 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2195
2364
|
} | {
|
|
2196
2365
|
enable: string[];
|
|
2197
2366
|
} | undefined;
|
|
2367
|
+
preload?: {
|
|
2368
|
+
tools?: string[] | "all" | undefined;
|
|
2369
|
+
} | undefined;
|
|
2198
2370
|
authConfigs?: Record<string, string> | undefined;
|
|
2199
2371
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2200
2372
|
manageConnections?: boolean | {
|
|
2201
|
-
callbackUrl?: string | undefined;
|
|
2202
2373
|
enable?: boolean | undefined;
|
|
2374
|
+
callbackUrl?: string | undefined;
|
|
2203
2375
|
waitForConnections?: boolean | undefined;
|
|
2204
2376
|
} | null | undefined;
|
|
2377
|
+
sandbox?: {
|
|
2378
|
+
enable?: boolean | undefined;
|
|
2379
|
+
enableProxyExecution?: boolean | undefined;
|
|
2380
|
+
autoOffloadThreshold?: number | undefined;
|
|
2381
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2382
|
+
} | null | undefined;
|
|
2205
2383
|
workbench?: {
|
|
2206
2384
|
enable?: boolean | undefined;
|
|
2207
2385
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -2214,12 +2392,56 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2214
2392
|
requireExplicitSelection?: boolean | undefined;
|
|
2215
2393
|
} | null | undefined;
|
|
2216
2394
|
}, {
|
|
2395
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2396
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2397
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2398
|
+
} | undefined;
|
|
2399
|
+
tools?: Record<string, string[] | {
|
|
2400
|
+
enable: string[];
|
|
2401
|
+
} | {
|
|
2402
|
+
disable: string[];
|
|
2403
|
+
} | {
|
|
2404
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2405
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2406
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2407
|
+
};
|
|
2408
|
+
}> | undefined;
|
|
2409
|
+
toolkits?: string[] | {
|
|
2410
|
+
disable: string[];
|
|
2411
|
+
} | {
|
|
2412
|
+
enable: string[];
|
|
2413
|
+
} | undefined;
|
|
2217
2414
|
preload?: {
|
|
2218
2415
|
tools?: string[] | "all" | undefined;
|
|
2219
2416
|
} | undefined;
|
|
2417
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2418
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2419
|
+
manageConnections?: boolean | {
|
|
2420
|
+
enable?: boolean | undefined;
|
|
2421
|
+
callbackUrl?: string | undefined;
|
|
2422
|
+
waitForConnections?: boolean | undefined;
|
|
2423
|
+
} | null | undefined;
|
|
2424
|
+
sandbox?: {
|
|
2425
|
+
enable?: boolean | undefined;
|
|
2426
|
+
enableProxyExecution?: boolean | undefined;
|
|
2427
|
+
autoOffloadThreshold?: number | undefined;
|
|
2428
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2429
|
+
} | null | undefined;
|
|
2430
|
+
workbench?: {
|
|
2431
|
+
enable?: boolean | undefined;
|
|
2432
|
+
enableProxyExecution?: boolean | undefined;
|
|
2433
|
+
autoOffloadThreshold?: number | undefined;
|
|
2434
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2435
|
+
} | null | undefined;
|
|
2436
|
+
multiAccount?: {
|
|
2437
|
+
enable?: boolean | undefined;
|
|
2438
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
2439
|
+
requireExplicitSelection?: boolean | undefined;
|
|
2440
|
+
} | null | undefined;
|
|
2441
|
+
}>, {
|
|
2220
2442
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2221
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2222
2443
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2444
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2223
2445
|
} | undefined;
|
|
2224
2446
|
tools?: Record<string, string[] | {
|
|
2225
2447
|
enable: string[];
|
|
@@ -2227,8 +2449,55 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2227
2449
|
disable: string[];
|
|
2228
2450
|
} | {
|
|
2229
2451
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2452
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2230
2453
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2454
|
+
};
|
|
2455
|
+
}> | undefined;
|
|
2456
|
+
toolkits?: string[] | {
|
|
2457
|
+
disable: string[];
|
|
2458
|
+
} | {
|
|
2459
|
+
enable: string[];
|
|
2460
|
+
} | undefined;
|
|
2461
|
+
preload?: {
|
|
2462
|
+
tools?: string[] | "all" | undefined;
|
|
2463
|
+
} | undefined;
|
|
2464
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2465
|
+
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2466
|
+
manageConnections?: boolean | {
|
|
2467
|
+
enable?: boolean | undefined;
|
|
2468
|
+
callbackUrl?: string | undefined;
|
|
2469
|
+
waitForConnections?: boolean | undefined;
|
|
2470
|
+
} | null | undefined;
|
|
2471
|
+
sandbox?: {
|
|
2472
|
+
enable?: boolean | undefined;
|
|
2473
|
+
enableProxyExecution?: boolean | undefined;
|
|
2474
|
+
autoOffloadThreshold?: number | undefined;
|
|
2475
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2476
|
+
} | null | undefined;
|
|
2477
|
+
workbench?: {
|
|
2478
|
+
enable?: boolean | undefined;
|
|
2479
|
+
enableProxyExecution?: boolean | undefined;
|
|
2480
|
+
autoOffloadThreshold?: number | undefined;
|
|
2481
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2482
|
+
} | null | undefined;
|
|
2483
|
+
multiAccount?: {
|
|
2484
|
+
enable?: boolean | undefined;
|
|
2485
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
2486
|
+
requireExplicitSelection?: boolean | undefined;
|
|
2487
|
+
} | null | undefined;
|
|
2488
|
+
}, {
|
|
2489
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2490
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2491
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2492
|
+
} | undefined;
|
|
2493
|
+
tools?: Record<string, string[] | {
|
|
2494
|
+
enable: string[];
|
|
2495
|
+
} | {
|
|
2496
|
+
disable: string[];
|
|
2497
|
+
} | {
|
|
2498
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2231
2499
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2500
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2232
2501
|
};
|
|
2233
2502
|
}> | undefined;
|
|
2234
2503
|
toolkits?: string[] | {
|
|
@@ -2236,13 +2505,22 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2236
2505
|
} | {
|
|
2237
2506
|
enable: string[];
|
|
2238
2507
|
} | undefined;
|
|
2508
|
+
preload?: {
|
|
2509
|
+
tools?: string[] | "all" | undefined;
|
|
2510
|
+
} | undefined;
|
|
2239
2511
|
authConfigs?: Record<string, string> | undefined;
|
|
2240
2512
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2241
2513
|
manageConnections?: boolean | {
|
|
2242
|
-
callbackUrl?: string | undefined;
|
|
2243
2514
|
enable?: boolean | undefined;
|
|
2515
|
+
callbackUrl?: string | undefined;
|
|
2244
2516
|
waitForConnections?: boolean | undefined;
|
|
2245
2517
|
} | null | undefined;
|
|
2518
|
+
sandbox?: {
|
|
2519
|
+
enable?: boolean | undefined;
|
|
2520
|
+
enableProxyExecution?: boolean | undefined;
|
|
2521
|
+
autoOffloadThreshold?: number | undefined;
|
|
2522
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2523
|
+
} | null | undefined;
|
|
2246
2524
|
workbench?: {
|
|
2247
2525
|
enable?: boolean | undefined;
|
|
2248
2526
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -2255,7 +2533,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodObject<{
|
|
|
2255
2533
|
requireExplicitSelection?: boolean | undefined;
|
|
2256
2534
|
} | null | undefined;
|
|
2257
2535
|
}>;
|
|
2258
|
-
type ToolRouterUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
2536
|
+
type ToolRouterUpdateSessionConfig = z$1.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
2259
2537
|
type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
|
|
2260
2538
|
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
2261
2539
|
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
@@ -2263,6 +2541,18 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2263
2541
|
mcp: ToolRouterMCPServerConfig;
|
|
2264
2542
|
/** Stored preload configuration for this session. */
|
|
2265
2543
|
preload: ToolRouterSessionPreloadConfig;
|
|
2544
|
+
/**
|
|
2545
|
+
* Resolved sandbox (code-execution) config returned by the API. `enable` defaults to `true` server-side.
|
|
2546
|
+
*
|
|
2547
|
+
* This is the read-side counterpart to the `sandbox` key you pass into `create()`.
|
|
2548
|
+
*/
|
|
2549
|
+
sandbox?: ToolRouterSessionWorkbenchConfig;
|
|
2550
|
+
/**
|
|
2551
|
+
* Resolved sandbox config for the session.
|
|
2552
|
+
*
|
|
2553
|
+
* @deprecated Use `sandbox` instead. `workbench` is a backwards-compatible alias and will be removed in a future release.
|
|
2554
|
+
*/
|
|
2555
|
+
workbench?: ToolRouterSessionWorkbenchConfig;
|
|
2266
2556
|
/** Server-side config version when returned by the API. */
|
|
2267
2557
|
configVersion?: number;
|
|
2268
2558
|
/** Non-blocking session creation warnings returned by the API. */
|
|
@@ -2287,8 +2577,20 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2287
2577
|
/** Experimental features (files, assistive prompt, etc.) */
|
|
2288
2578
|
experimental: SessionExperimental;
|
|
2289
2579
|
}
|
|
2580
|
+
/**
|
|
2581
|
+
* Session type without the typed `mcp` endpoint.
|
|
2582
|
+
*
|
|
2583
|
+
* Returned by `create()` / `use()` when `{ mcp: true }` is not passed. The
|
|
2584
|
+
* hosted MCP endpoint still exists on the underlying session at runtime — this
|
|
2585
|
+
* only hides it from the type so MCP is an explicit opt-in. Pass `{ mcp: true }`
|
|
2586
|
+
* to get a `Session` with `session.mcp` surfaced. See
|
|
2587
|
+
* https://docs.composio.dev/docs/sessions-via-mcp
|
|
2588
|
+
*/
|
|
2589
|
+
type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
|
|
2290
2590
|
//#endregion
|
|
2291
2591
|
//#region src/types/customTool.types.d.ts
|
|
2592
|
+
type AnyZodSchema = z.ZodType | z$2.ZodType;
|
|
2593
|
+
type InferZodSchema<T extends AnyZodSchema> = T extends z.ZodType ? z.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
|
|
2292
2594
|
/**
|
|
2293
2595
|
* Session context injected into custom tool execute functions at runtime.
|
|
2294
2596
|
* Provides identity context and methods to call other tools or proxy API requests.
|
|
@@ -2300,6 +2602,14 @@ interface SessionContext {
|
|
|
2300
2602
|
execute(toolSlug: string, arguments_: Record<string, unknown>): Promise<ToolRouterSessionExecuteResponse>;
|
|
2301
2603
|
/** Proxy API calls through Composio's auth layer (resolved from session toolkit). */
|
|
2302
2604
|
proxyExecute(params: SessionProxyExecuteParams): Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2605
|
+
/**
|
|
2606
|
+
* Caller-supplied AbortSignal forwarded from `session.execute(..., { signal })`.
|
|
2607
|
+
* Custom-tool execution is cooperative: long-running user code that respects
|
|
2608
|
+
* this signal (e.g. by passing it into `fetch`) can abort mid-execution and
|
|
2609
|
+
* surface as `ComposioRequestCancelledError`. Undefined when the caller did
|
|
2610
|
+
* not pass `requestOptions`.
|
|
2611
|
+
*/
|
|
2612
|
+
readonly signal?: AbortSignal;
|
|
2303
2613
|
}
|
|
2304
2614
|
/**
|
|
2305
2615
|
* Execute function for custom tools.
|
|
@@ -2309,30 +2619,30 @@ interface SessionContext {
|
|
|
2309
2619
|
* - `(input) => data` — for tools that don't need session context
|
|
2310
2620
|
* - `(input, ctx) => data` — for tools that need to call other tools or proxy APIs
|
|
2311
2621
|
*/
|
|
2312
|
-
type CustomToolExecuteFn<T extends
|
|
2622
|
+
type CustomToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ctx: SessionContext) => Promise<Record<string, unknown>>;
|
|
2313
2623
|
/**
|
|
2314
2624
|
* Zod schema for validating a custom tool slug.
|
|
2315
2625
|
* Alphanumeric, underscores, and hyphens only. No `LOCAL_` or `COMPOSIO_` prefix.
|
|
2316
2626
|
* Length is validated contextually (standalone vs extension vs toolkit) at creation time.
|
|
2317
2627
|
*/
|
|
2318
|
-
declare const CustomToolSlugSchema: z
|
|
2628
|
+
declare const CustomToolSlugSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2319
2629
|
/**
|
|
2320
2630
|
* Zod schema for validating the string/scalar fields of createCustomTool() options.
|
|
2321
2631
|
* Slug is validated separately as the first argument.
|
|
2322
2632
|
* Used internally for validation — inputParams, outputParams, and execute are checked manually.
|
|
2323
2633
|
*/
|
|
2324
|
-
declare const CreateCustomToolBaseSchema: z
|
|
2325
|
-
name: z
|
|
2326
|
-
description: z
|
|
2634
|
+
declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
2635
|
+
name: z.ZodString;
|
|
2636
|
+
description: z.ZodString;
|
|
2327
2637
|
/**
|
|
2328
2638
|
* Composio toolkit slug that this tool extends (inherits auth from).
|
|
2329
2639
|
* Must be a valid Composio toolkit slug (e.g. `'gmail'`, `'github'`, `'meta_ads'`).
|
|
2330
2640
|
* The backend validates this against the toolkit catalog.
|
|
2331
2641
|
* Leave empty for tools that don't need any Composio-managed authentication.
|
|
2332
2642
|
*/
|
|
2333
|
-
extendsToolkit: z
|
|
2334
|
-
preload: z
|
|
2335
|
-
}, "strip", z
|
|
2643
|
+
extendsToolkit: z.ZodOptional<z.ZodString>;
|
|
2644
|
+
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2645
|
+
}, "strip", z.ZodTypeAny, {
|
|
2336
2646
|
name: string;
|
|
2337
2647
|
description: string;
|
|
2338
2648
|
extendsToolkit?: string | undefined;
|
|
@@ -2344,12 +2654,9 @@ declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
|
|
|
2344
2654
|
preload?: boolean | undefined;
|
|
2345
2655
|
}>;
|
|
2346
2656
|
/** Options for creating a custom tool via `createCustomTool()`. */
|
|
2347
|
-
type CreateCustomToolParams<T extends
|
|
2348
|
-
/** Zod schema for input parameters */
|
|
2349
|
-
|
|
2350
|
-
/** Optional Zod schema for output parameters (sent to backend for documentation) */
|
|
2351
|
-
outputParams?: z$1.ZodType;
|
|
2352
|
-
/** The function that executes the tool */
|
|
2657
|
+
type CreateCustomToolParams<T extends AnyZodSchema> = z.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2658
|
+
/** Zod schema for input parameters */inputParams: T; /** Optional Zod schema for output parameters (sent to backend for documentation) */
|
|
2659
|
+
outputParams?: AnyZodSchema; /** The function that executes the tool */
|
|
2353
2660
|
execute: CustomToolExecuteFn<T>;
|
|
2354
2661
|
};
|
|
2355
2662
|
/**
|
|
@@ -2375,9 +2682,9 @@ interface CustomTool {
|
|
|
2375
2682
|
/** JSON Schema representation of the output (for backend documentation) */
|
|
2376
2683
|
readonly outputSchema?: Record<string, unknown>;
|
|
2377
2684
|
/** @internal Original Zod schema — used for runtime input validation (defaults, coercions, transforms) */
|
|
2378
|
-
readonly inputParams:
|
|
2685
|
+
readonly inputParams: AnyZodSchema;
|
|
2379
2686
|
/** Direct reference to the execute function — useful for testing */
|
|
2380
|
-
readonly execute: CustomToolExecuteFn<
|
|
2687
|
+
readonly execute: CustomToolExecuteFn<AnyZodSchema>;
|
|
2381
2688
|
}
|
|
2382
2689
|
/** Serialized tool definition sent to backend for search indexing. Uses official client type. */
|
|
2383
2690
|
type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
|
|
@@ -2386,11 +2693,11 @@ type CustomToolWireDefinition = CustomToolDefinition;
|
|
|
2386
2693
|
* Zod schema for validating the string/scalar fields of createCustomToolkit() options.
|
|
2387
2694
|
* Slug is validated separately as the first argument.
|
|
2388
2695
|
*/
|
|
2389
|
-
declare const CreateCustomToolkitBaseSchema: z
|
|
2390
|
-
name: z
|
|
2391
|
-
description: z
|
|
2392
|
-
preload: z
|
|
2393
|
-
}, "strip", z
|
|
2696
|
+
declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
2697
|
+
name: z.ZodString;
|
|
2698
|
+
description: z.ZodString;
|
|
2699
|
+
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2700
|
+
}, "strip", z.ZodTypeAny, {
|
|
2394
2701
|
name: string;
|
|
2395
2702
|
description: string;
|
|
2396
2703
|
preload?: boolean | undefined;
|
|
@@ -2400,9 +2707,8 @@ declare const CreateCustomToolkitBaseSchema: z$1.ZodObject<{
|
|
|
2400
2707
|
preload?: boolean | undefined;
|
|
2401
2708
|
}>;
|
|
2402
2709
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
2403
|
-
type CreateCustomToolkitParams = z
|
|
2404
|
-
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
|
|
2405
|
-
tools: CustomTool[];
|
|
2710
|
+
type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2711
|
+
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */tools: CustomTool[];
|
|
2406
2712
|
};
|
|
2407
2713
|
/**
|
|
2408
2714
|
* Custom toolkit definition returned from `createCustomToolkit()`.
|
|
@@ -2428,25 +2734,17 @@ interface InlineCustomToolsWirePayload {
|
|
|
2428
2734
|
}
|
|
2429
2735
|
/** @internal Entry in the per-session custom tools routing map. */
|
|
2430
2736
|
type CustomToolsMapEntry = {
|
|
2431
|
-
handle: CustomTool;
|
|
2432
|
-
/**
|
|
2433
|
-
finalSlug: string;
|
|
2434
|
-
/** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
|
|
2737
|
+
handle: CustomTool; /** @internal The final slug assigned by the prefixing rules (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
|
|
2738
|
+
finalSlug: string; /** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
|
|
2435
2739
|
toolkit?: string;
|
|
2436
2740
|
};
|
|
2437
2741
|
/** @internal Lookup maps used by ToolRouterSession for routing custom tools. */
|
|
2438
2742
|
type CustomToolsMap = {
|
|
2439
|
-
/** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */
|
|
2440
|
-
|
|
2441
|
-
/**
|
|
2442
|
-
|
|
2443
|
-
/**
|
|
2444
|
-
byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>;
|
|
2445
|
-
/** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
|
|
2446
|
-
ambiguousOriginalSlugs?: Set<string>;
|
|
2447
|
-
/** The original custom toolkits passed at session creation — used for session.customToolkits() */
|
|
2448
|
-
toolkits?: CustomToolkit[];
|
|
2449
|
-
/** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
|
|
2743
|
+
/** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */byFinalSlug: Map<string, CustomToolsMapEntry>; /** Lookup by unique original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
|
|
2744
|
+
byOriginalSlug: Map<string, CustomToolsMapEntry>; /** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
|
|
2745
|
+
byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>; /** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
|
|
2746
|
+
ambiguousOriginalSlugs?: Set<string>; /** The original custom toolkits passed at session creation — used for session.customToolkits() */
|
|
2747
|
+
toolkits?: CustomToolkit[]; /** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
|
|
2450
2748
|
tools?: CustomTool[];
|
|
2451
2749
|
};
|
|
2452
2750
|
/** A custom tool as registered in a session, with its final resolved slug. */
|
|
@@ -2472,4 +2770,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
2472
2770
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
2473
2771
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
2474
2772
|
//#endregion
|
|
2475
|
-
export {
|
|
2773
|
+
export { ToolRouterSessionProxyExecuteResponse as $, ConnectedAccountListResponseItem as $t, SessionProxyExecuteParams as A, ToolRouterSessionFilesMountDeleteOptions as At, ToolRouterCreateSessionConfigSchema as B, ConnectedAccountAclConfig as Bt, MCPServerType as C, UpdateConnectedAccountAclParams as Cn, RemoteFile as Ct, Session as D, FileListResponseSchema as Dt, SandboxSizeSchema as E, UpdateConnectedAccountParamsSchema as En, FileListResponse as Et, ToolRouterConfigTags as F, ToolRouterSessionFilesMountListOptionsSchema as Ft, ToolRouterSandboxConfigSchema as G, ConnectedAccountAuthConfigSchema as Gt, ToolRouterMCPServerConfigSchema as H, ConnectedAccountAclConfigResponseSchema as Ht, ToolRouterConfigTagsSchema as I, ToolRouterSessionFilesMountUploadOptions as It, ToolRouterSessionExecuteResponse as J, ConnectedAccountExperimentalResponseSchema as Jt, ToolRouterSessionExecuteFn as K, ConnectedAccountExperimental as Kt, ToolRouterConfigTools as L, ToolRouterSessionFilesMountUploadOptionsSchema as Lt, SessionWithoutMcp as M, ToolRouterSessionFilesMountDownloadOptions as Mt, ToolRouterAuthorizeFn as N, ToolRouterSessionFilesMountDownloadOptionsSchema as Nt, SessionExperimental as O, RemoteFileData as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolRouterSessionFilesMountListOptions as Pt, ToolRouterSessionProxyExecuteFn as Q, ConnectedAccountListResponse as Qt, ToolRouterConfigToolsSchema as R, ConnectionRequest as Rt, SessionContext as S, DefaultCreateConnectedAccountParamsSchema as Sn, ToolkitConnectionsDetailsSchema as St, SandboxSize as T, UpdateConnectedAccountParams as Tn, FileDeleteResponseSchema as Tt, ToolRouterManageConnectionsConfigSchema as U, ConnectedAccountAclConfigSchema as Ut, ToolRouterMCPServerConfig as V, ConnectedAccountAclConfigResponse as Vt, ToolRouterSandboxConfig as W, ConnectedAccountAuthConfig as Wt, ToolRouterSessionMetadata as X, ConnectedAccountListParams as Xt, ToolRouterSessionExecuteResponseSchema as Y, ConnectedAccountExperimentalSchema as Yt, ToolRouterSessionPreloadConfig as Z, ConnectedAccountListParamsSchema as Zt, CustomToolsMapEntry as _, CreateConnectedAccountOptionsSchema as _n, ToolRouterUpdateSessionConfig as _t, CreateCustomToolkitParams as a, ConnectedAccountStatus as an, ToolRouterSessionWorkbenchConfig as at, RegisteredCustomTool as b, CreateConnectedAccountResponse as bn, ToolkitConnectionStateSchema as bt, CustomToolExecuteFn as c, ConnectedAccountStatuses as cn, ToolRouterToolkitsDisabledConfigSchema as ct, CustomToolWireDefinition as d, ConnectedAccountTypes as dn, ToolRouterToolkitsOptions as dt, ConnectedAccountListResponseSchema as en, ToolRouterSessionSearchFn as et, CustomToolkit as f, CreateConnectedAccountLinkOptions as fn, ToolRouterToolkitsOptionsSchema as ft, CustomToolsMap as g, CreateConnectedAccountOptions as gn, ToolRouterToolsParamSchema as gt, CustomToolkitWireDefinition as h, CreateConnectedAccountLinkResponseSchema as hn, ToolRouterToolsParam as ht, CreateCustomToolkitBaseSchema as i, ConnectedAccountRetrieveResponseSchema as in, ToolRouterSessionWarning as it, SessionProxyExecuteParamsSchema as j, ToolRouterSessionFilesMountDeleteOptionsSchema as jt, SessionPreset as k, RemoteFileDataSchema as kt, CustomToolResponse as l, ConnectedAccountType as ln, ToolRouterToolkitsEnabledConfigSchema as lt, CustomToolkitResponse as m, CreateConnectedAccountLinkResponse as mn, ToolRouterToolsFn as mt, CreateCustomToolBaseSchema as n, ConnectedAccountRefreshOptionsSchema as nn, ToolRouterSessionSearchResponseSchema as nt, CustomTool as o, ConnectedAccountStatusEnum as on, ToolRouterTagsEnableDisableSchema as ot, CustomToolkitDefinition as p, CreateConnectedAccountLinkOptionsSchema as pn, ToolRouterToolkitsParamSchema as pt, ToolRouterSessionExecuteOptions as q, ConnectedAccountExperimentalResponse as qt, CreateCustomToolParams as r, ConnectedAccountRetrieveResponse as rn, ToolRouterSessionUpdateFn as rt, CustomToolDefinition as s, ConnectedAccountStatusSchema as sn, ToolRouterTagsParamSchema as st, AnyZodSchema as t, ConnectedAccountRefreshOptions as tn, ToolRouterSessionSearchResponse as tt, CustomToolSlugSchema as u, ConnectedAccountTypeSchema as un, ToolRouterToolkitsFn as ut, InferZodSchema as v, CreateConnectedAccountParams as vn, ToolRouterUpdateSessionConfigSchema as vt, MCPServerTypeSchema as w, UpdateConnectedAccountAclParamsSchema as wn, FileDeleteResponse as wt, RegisteredCustomToolkit as x, CreateConnectedAccountResponseSchema as xn, ToolkitConnectionsDetails as xt, InlineCustomToolsWirePayload as y, CreateConnectedAccountParamsSchema as yn, ToolkitConnectionState as yt, ToolRouterCreateSessionConfig as z, ConnectionRequestState as zt };
|