@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,7 +1,8 @@
|
|
|
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-BBnsv9kS.mjs";
|
|
2
|
+
import { Composio } from "@composio/client";
|
|
2
3
|
import z$1, { z } from "zod/v3";
|
|
4
|
+
import { z as z$2 } from "zod/v4";
|
|
3
5
|
import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
|
|
4
|
-
import { Composio } from "@composio/client";
|
|
5
6
|
import { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
6
7
|
|
|
7
8
|
//#region src/types/connectedAccounts.types.d.ts
|
|
@@ -211,17 +212,16 @@ declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
|
|
|
211
212
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
212
213
|
}, "strip", z.ZodTypeAny, {
|
|
213
214
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
214
|
-
redirectUrl: string | null;
|
|
215
215
|
id: string;
|
|
216
|
+
redirectUrl: string | null;
|
|
216
217
|
}, {
|
|
217
218
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
218
|
-
redirectUrl: string | null;
|
|
219
219
|
id: string;
|
|
220
|
+
redirectUrl: string | null;
|
|
220
221
|
}>;
|
|
221
222
|
type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
222
223
|
declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
223
|
-
id: z.ZodString;
|
|
224
|
-
/** @deprecated use connectedAccount.state.authScheme instead */
|
|
224
|
+
id: z.ZodString; /** @deprecated Use `connectedAccount.state.authScheme` instead. */
|
|
225
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
226
|
isComposioManaged: z.ZodBoolean;
|
|
227
227
|
isDisabled: z.ZodBoolean;
|
|
@@ -241,10 +241,8 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
|
|
|
241
241
|
id: string;
|
|
242
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;
|
|
@@ -279,23 +277,23 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
|
279
277
|
*/
|
|
280
278
|
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
281
279
|
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
|
|
280
|
+
userIds?: string[] | null | undefined;
|
|
283
281
|
authConfigIds?: string[] | null | undefined;
|
|
284
282
|
cursor?: string | null | undefined;
|
|
283
|
+
limit?: number | 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
|
+
userIds?: string[] | null | undefined;
|
|
292
290
|
authConfigIds?: string[] | null | undefined;
|
|
293
291
|
cursor?: string | null | undefined;
|
|
292
|
+
limit?: number | 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
298
|
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
301
299
|
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
@@ -303,10 +301,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
303
301
|
id: string;
|
|
304
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;
|
|
@@ -323,10 +319,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
323
319
|
id: string;
|
|
324
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;
|
|
@@ -347,10 +341,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
347
341
|
id: string;
|
|
348
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;
|
|
@@ -371,10 +363,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
371
363
|
id: string;
|
|
372
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;
|
|
@@ -461,8 +451,6 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
461
451
|
}>>;
|
|
462
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.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,6 +471,8 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
483
471
|
notAllowedUserIds?: string[] | undefined;
|
|
484
472
|
} | undefined;
|
|
485
473
|
} | undefined;
|
|
474
|
+
alias?: string | undefined;
|
|
475
|
+
allowMultiple?: boolean | undefined;
|
|
486
476
|
}>;
|
|
487
477
|
type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
488
478
|
declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
@@ -561,20 +551,18 @@ interface ConnectionRequest extends ConnectionRequestState {
|
|
|
561
551
|
//#region src/types/ToolRouterSessionFilesMount.types.d.ts
|
|
562
552
|
declare const ToolRouterSessionFilesMountListOptionsSchema: z$1.ZodObject<{
|
|
563
553
|
path: z$1.ZodOptional<z$1.ZodString>;
|
|
564
|
-
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
565
|
-
/**
|
|
566
|
-
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
567
|
-
/** Maximum number of files to return per page (1-500) */
|
|
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) */
|
|
568
556
|
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
569
557
|
}, "strip", z$1.ZodTypeAny, {
|
|
570
558
|
mountId: string;
|
|
571
559
|
path?: string | undefined;
|
|
572
|
-
limit?: number | undefined;
|
|
573
560
|
cursor?: string | undefined;
|
|
561
|
+
limit?: number | undefined;
|
|
574
562
|
}, {
|
|
575
563
|
path?: string | undefined;
|
|
576
|
-
limit?: number | undefined;
|
|
577
564
|
cursor?: string | undefined;
|
|
565
|
+
limit?: number | undefined;
|
|
578
566
|
mountId?: string | undefined;
|
|
579
567
|
}>;
|
|
580
568
|
type ToolRouterSessionFilesMountListOptions = z$1.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
@@ -631,10 +619,8 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
631
619
|
}>;
|
|
632
620
|
type FileListResponse = z$1.infer<typeof FileListResponseSchema>;
|
|
633
621
|
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
|
|
634
|
-
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
|
|
635
|
-
|
|
636
|
-
mountId: z$1.ZodDefault<z$1.ZodString>;
|
|
637
|
-
/** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
|
|
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). */
|
|
638
624
|
mimetype: z$1.ZodOptional<z$1.ZodString>;
|
|
639
625
|
}, "strip", z$1.ZodTypeAny, {
|
|
640
626
|
mountId: string;
|
|
@@ -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;
|
|
@@ -913,7 +904,7 @@ type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
|
|
|
913
904
|
declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
|
|
914
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
|
* | -------- | ---- | ----- |
|
|
@@ -926,17 +917,34 @@ type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
|
926
917
|
*/
|
|
927
918
|
declare const SandboxSizeSchema: z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>;
|
|
928
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>;
|
|
929
937
|
declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
|
|
930
938
|
enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
|
|
931
939
|
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
932
940
|
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
933
941
|
}, "strict", z$1.ZodTypeAny, {
|
|
934
|
-
callbackUrl?: string | undefined;
|
|
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
950
|
declare const ToolRouterToolkitsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
@@ -961,29 +969,29 @@ declare const ToolRouterManageConnectionsConfigSchema: z$1.ZodObject<{
|
|
|
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
975
|
declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
968
976
|
declare const ToolRouterTagsEnableDisableSchema: z$1.ZodObject<{
|
|
969
977
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
970
978
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
971
979
|
}, "strict", z$1.ZodTypeAny, {
|
|
972
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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;
|
|
984
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
977
985
|
}>;
|
|
978
986
|
declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
979
987
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
980
988
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
981
989
|
}, "strict", z$1.ZodTypeAny, {
|
|
982
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
996
|
type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
989
997
|
/**
|
|
@@ -1027,21 +1035,21 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1027
1035
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1028
1036
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1029
1037
|
}, "strict", z$1.ZodTypeAny, {
|
|
1030
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
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$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
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,13 +1066,14 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
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
1073
|
type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
|
|
1066
|
-
declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
1074
|
+
declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObject<{
|
|
1067
1075
|
sessionPreset: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodLiteral<"direct_tools">>>;
|
|
1076
|
+
mcp: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
|
|
1068
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<{
|
|
1069
1078
|
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1070
1079
|
}, "strict", z$1.ZodTypeAny, {
|
|
@@ -1082,21 +1091,21 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1082
1091
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1083
1092
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1084
1093
|
}, "strict", z$1.ZodTypeAny, {
|
|
1085
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
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$1.ZodEffects<z$1.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,19 +1122,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.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
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<{
|
|
1121
1130
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1122
1131
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1123
1132
|
}, "strict", z$1.ZodTypeAny, {
|
|
1124
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
1139
|
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
1131
1140
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
@@ -1147,14 +1156,30 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1147
1156
|
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1148
1157
|
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1149
1158
|
}, "strict", z$1.ZodTypeAny, {
|
|
1150
|
-
callbackUrl?: string | undefined;
|
|
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
|
}>]>>>>;
|
|
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, {
|
|
1173
|
+
enable: boolean;
|
|
1174
|
+
enableProxyExecution?: boolean | undefined;
|
|
1175
|
+
autoOffloadThreshold?: number | undefined;
|
|
1176
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1177
|
+
}, {
|
|
1178
|
+
enable?: boolean | undefined;
|
|
1179
|
+
enableProxyExecution?: boolean | undefined;
|
|
1180
|
+
autoOffloadThreshold?: number | undefined;
|
|
1181
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1182
|
+
}>>>;
|
|
1158
1183
|
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
1159
1184
|
enable: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
1160
1185
|
enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -1215,21 +1240,14 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1215
1240
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1216
1241
|
}>>>;
|
|
1217
1242
|
}, "strip", z$1.ZodTypeAny, {
|
|
1218
|
-
preload?: {
|
|
1219
|
-
tools?: string[] | "all" | undefined;
|
|
1220
|
-
} | undefined;
|
|
1221
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1222
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1223
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1224
|
-
} | undefined;
|
|
1225
1243
|
tools?: Record<string, string[] | {
|
|
1226
1244
|
enable: string[];
|
|
1227
1245
|
} | {
|
|
1228
1246
|
disable: string[];
|
|
1229
1247
|
} | {
|
|
1230
1248
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1231
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1232
1249
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1250
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1233
1251
|
};
|
|
1234
1252
|
}> | undefined;
|
|
1235
1253
|
toolkits?: string[] | {
|
|
@@ -1237,21 +1255,28 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1237
1255
|
} | {
|
|
1238
1256
|
enable: string[];
|
|
1239
1257
|
} | undefined;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1258
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1259
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1260
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
preload?: {
|
|
1263
|
+
tools?: string[] | "all" | undefined;
|
|
1246
1264
|
} | undefined;
|
|
1247
1265
|
sessionPreset?: "direct_tools" | undefined;
|
|
1266
|
+
mcp?: boolean | undefined;
|
|
1248
1267
|
authConfigs?: Record<string, string> | 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,22 +1288,22 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1263
1288
|
maxAccountsPerToolkit?: number | undefined;
|
|
1264
1289
|
requireExplicitSelection?: boolean | undefined;
|
|
1265
1290
|
} | undefined;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1291
|
+
experimental?: {
|
|
1292
|
+
assistivePrompt?: {
|
|
1293
|
+
userTimezone?: string | undefined;
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
customTools?: CustomTool[] | undefined;
|
|
1296
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1273
1297
|
} | undefined;
|
|
1298
|
+
}, {
|
|
1274
1299
|
tools?: Record<string, string[] | {
|
|
1275
1300
|
enable: string[];
|
|
1276
1301
|
} | {
|
|
1277
1302
|
disable: string[];
|
|
1278
1303
|
} | {
|
|
1279
1304
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1280
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1281
1305
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1306
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1282
1307
|
};
|
|
1283
1308
|
}> | undefined;
|
|
1284
1309
|
toolkits?: string[] | {
|
|
@@ -1286,21 +1311,28 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1286
1311
|
} | {
|
|
1287
1312
|
enable: string[];
|
|
1288
1313
|
} | undefined;
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1314
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1315
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1316
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1317
|
+
} | undefined;
|
|
1318
|
+
preload?: {
|
|
1319
|
+
tools?: string[] | "all" | undefined;
|
|
1295
1320
|
} | undefined;
|
|
1296
1321
|
sessionPreset?: "direct_tools" | undefined;
|
|
1322
|
+
mcp?: boolean | undefined;
|
|
1297
1323
|
authConfigs?: Record<string, string> | 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,22 +1344,78 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1312
1344
|
maxAccountsPerToolkit?: number | undefined;
|
|
1313
1345
|
requireExplicitSelection?: boolean | undefined;
|
|
1314
1346
|
} | undefined;
|
|
1347
|
+
experimental?: {
|
|
1348
|
+
assistivePrompt?: {
|
|
1349
|
+
userTimezone?: string | undefined;
|
|
1350
|
+
} | undefined;
|
|
1351
|
+
customTools?: CustomTool[] | undefined;
|
|
1352
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1353
|
+
} | undefined;
|
|
1315
1354
|
}>, {
|
|
1316
|
-
|
|
1317
|
-
|
|
1355
|
+
tools?: Record<string, string[] | {
|
|
1356
|
+
enable: string[];
|
|
1357
|
+
} | {
|
|
1358
|
+
disable: string[];
|
|
1359
|
+
} | {
|
|
1360
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1361
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1362
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1363
|
+
};
|
|
1364
|
+
}> | undefined;
|
|
1365
|
+
toolkits?: string[] | {
|
|
1366
|
+
disable: string[];
|
|
1367
|
+
} | {
|
|
1368
|
+
enable: string[];
|
|
1318
1369
|
} | undefined;
|
|
1319
1370
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1320
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1321
1371
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1372
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1373
|
+
} | undefined;
|
|
1374
|
+
preload?: {
|
|
1375
|
+
tools?: string[] | "all" | undefined;
|
|
1376
|
+
} | undefined;
|
|
1377
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1378
|
+
mcp?: boolean | undefined;
|
|
1379
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1380
|
+
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1381
|
+
manageConnections?: boolean | {
|
|
1382
|
+
enable?: boolean | undefined;
|
|
1383
|
+
callbackUrl?: string | undefined;
|
|
1384
|
+
waitForConnections?: boolean | undefined;
|
|
1385
|
+
} | undefined;
|
|
1386
|
+
sandbox?: {
|
|
1387
|
+
enable: boolean;
|
|
1388
|
+
enableProxyExecution?: boolean | undefined;
|
|
1389
|
+
autoOffloadThreshold?: number | undefined;
|
|
1390
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1391
|
+
} | undefined;
|
|
1392
|
+
workbench?: {
|
|
1393
|
+
enable: boolean;
|
|
1394
|
+
enableProxyExecution?: boolean | undefined;
|
|
1395
|
+
autoOffloadThreshold?: number | undefined;
|
|
1396
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
multiAccount?: {
|
|
1399
|
+
enable: boolean;
|
|
1400
|
+
maxAccountsPerToolkit?: number | undefined;
|
|
1401
|
+
requireExplicitSelection?: boolean | undefined;
|
|
1402
|
+
} | undefined;
|
|
1403
|
+
experimental?: {
|
|
1404
|
+
assistivePrompt?: {
|
|
1405
|
+
userTimezone?: string | undefined;
|
|
1406
|
+
} | undefined;
|
|
1407
|
+
customTools?: CustomTool[] | undefined;
|
|
1408
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1322
1409
|
} | undefined;
|
|
1410
|
+
}, {
|
|
1323
1411
|
tools?: Record<string, string[] | {
|
|
1324
1412
|
enable: string[];
|
|
1325
1413
|
} | {
|
|
1326
1414
|
disable: string[];
|
|
1327
1415
|
} | {
|
|
1328
1416
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1329
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1330
1417
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1418
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1331
1419
|
};
|
|
1332
1420
|
}> | undefined;
|
|
1333
1421
|
toolkits?: string[] | {
|
|
@@ -1335,6 +1423,39 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1335
1423
|
} | {
|
|
1336
1424
|
enable: string[];
|
|
1337
1425
|
} | undefined;
|
|
1426
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1427
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1428
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1429
|
+
} | undefined;
|
|
1430
|
+
preload?: {
|
|
1431
|
+
tools?: string[] | "all" | undefined;
|
|
1432
|
+
} | undefined;
|
|
1433
|
+
sessionPreset?: "direct_tools" | undefined;
|
|
1434
|
+
mcp?: boolean | undefined;
|
|
1435
|
+
authConfigs?: Record<string, string> | 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;
|
|
1338
1459
|
experimental?: {
|
|
1339
1460
|
assistivePrompt?: {
|
|
1340
1461
|
userTimezone?: string | undefined;
|
|
@@ -1342,14 +1463,44 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1342
1463
|
customTools?: CustomTool[] | undefined;
|
|
1343
1464
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1344
1465
|
} | undefined;
|
|
1466
|
+
}>, {
|
|
1467
|
+
tools?: Record<string, string[] | {
|
|
1468
|
+
enable: string[];
|
|
1469
|
+
} | {
|
|
1470
|
+
disable: string[];
|
|
1471
|
+
} | {
|
|
1472
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1473
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1474
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1475
|
+
};
|
|
1476
|
+
}> | undefined;
|
|
1477
|
+
toolkits?: string[] | {
|
|
1478
|
+
disable: string[];
|
|
1479
|
+
} | {
|
|
1480
|
+
enable: string[];
|
|
1481
|
+
} | undefined;
|
|
1482
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1483
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1484
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1485
|
+
} | undefined;
|
|
1486
|
+
preload?: {
|
|
1487
|
+
tools?: string[] | "all" | undefined;
|
|
1488
|
+
} | undefined;
|
|
1345
1489
|
sessionPreset?: "direct_tools" | undefined;
|
|
1490
|
+
mcp?: boolean | undefined;
|
|
1346
1491
|
authConfigs?: Record<string, string> | undefined;
|
|
1347
1492
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1348
1493
|
manageConnections?: boolean | {
|
|
1349
|
-
callbackUrl?: string | undefined;
|
|
1350
1494
|
enable?: boolean | undefined;
|
|
1495
|
+
callbackUrl?: string | undefined;
|
|
1351
1496
|
waitForConnections?: boolean | undefined;
|
|
1352
1497
|
} | undefined;
|
|
1498
|
+
sandbox?: {
|
|
1499
|
+
enable: boolean;
|
|
1500
|
+
enableProxyExecution?: boolean | undefined;
|
|
1501
|
+
autoOffloadThreshold?: number | undefined;
|
|
1502
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1503
|
+
} | undefined;
|
|
1353
1504
|
workbench?: {
|
|
1354
1505
|
enable: boolean;
|
|
1355
1506
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -1361,11 +1512,18 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1361
1512
|
maxAccountsPerToolkit?: number | undefined;
|
|
1362
1513
|
requireExplicitSelection?: boolean | undefined;
|
|
1363
1514
|
} | undefined;
|
|
1515
|
+
experimental?: {
|
|
1516
|
+
assistivePrompt?: {
|
|
1517
|
+
userTimezone?: string | undefined;
|
|
1518
|
+
} | undefined;
|
|
1519
|
+
customTools?: CustomTool[] | undefined;
|
|
1520
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1521
|
+
} | undefined;
|
|
1364
1522
|
}, unknown>;
|
|
1365
1523
|
/**
|
|
1366
1524
|
* The config for the tool router session.
|
|
1367
1525
|
*
|
|
1368
|
-
* @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
|
|
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.
|
|
1369
1527
|
* @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
|
|
1370
1528
|
* @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
|
|
1371
1529
|
* @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
|
|
@@ -1374,11 +1532,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
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)
|
|
@@ -1638,15 +1797,15 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
|
1638
1797
|
search: z$1.ZodOptional<z$1.ZodString>;
|
|
1639
1798
|
}, "strip", z$1.ZodTypeAny, {
|
|
1640
1799
|
toolkits?: string[] | undefined;
|
|
1800
|
+
cursor?: string | undefined;
|
|
1641
1801
|
limit?: number | undefined;
|
|
1642
1802
|
search?: string | undefined;
|
|
1643
|
-
cursor?: string | undefined;
|
|
1644
1803
|
isConnected?: boolean | undefined;
|
|
1645
1804
|
}, {
|
|
1646
1805
|
toolkits?: string[] | undefined;
|
|
1806
|
+
cursor?: string | undefined;
|
|
1647
1807
|
limit?: number | undefined;
|
|
1648
1808
|
search?: string | undefined;
|
|
1649
|
-
cursor?: string | undefined;
|
|
1650
1809
|
isConnected?: boolean | undefined;
|
|
1651
1810
|
}>;
|
|
1652
1811
|
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
@@ -1779,15 +1938,15 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1779
1938
|
connectionDetails: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1780
1939
|
currentUserInfo: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1781
1940
|
}, "strip", z$1.ZodTypeAny, {
|
|
1782
|
-
description: string;
|
|
1783
1941
|
toolkit: string;
|
|
1942
|
+
description: string;
|
|
1784
1943
|
hasActiveConnection: boolean;
|
|
1785
1944
|
statusMessage: string;
|
|
1786
1945
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1787
1946
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1788
1947
|
}, {
|
|
1789
|
-
description: string;
|
|
1790
1948
|
toolkit: string;
|
|
1949
|
+
description: string;
|
|
1791
1950
|
hasActiveConnection: boolean;
|
|
1792
1951
|
statusMessage: string;
|
|
1793
1952
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -1800,12 +1959,12 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1800
1959
|
instructions: z$1.ZodString;
|
|
1801
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
1969
|
timeInfo: z$1.ZodObject<{
|
|
1811
1970
|
currentTimeUtc: z$1.ZodString;
|
|
@@ -1857,8 +2016,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1857
2016
|
} | undefined;
|
|
1858
2017
|
}>;
|
|
1859
2018
|
toolkitConnectionStatuses: {
|
|
1860
|
-
description: string;
|
|
1861
2019
|
toolkit: string;
|
|
2020
|
+
description: string;
|
|
1862
2021
|
hasActiveConnection: boolean;
|
|
1863
2022
|
statusMessage: string;
|
|
1864
2023
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -1867,8 +2026,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.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;
|
|
@@ -1912,8 +2071,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1912
2071
|
} | undefined;
|
|
1913
2072
|
}>;
|
|
1914
2073
|
toolkitConnectionStatuses: {
|
|
1915
|
-
description: string;
|
|
1916
2074
|
toolkit: string;
|
|
2075
|
+
description: string;
|
|
1917
2076
|
hasActiveConnection: boolean;
|
|
1918
2077
|
statusMessage: string;
|
|
1919
2078
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -1922,8 +2081,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.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;
|
|
@@ -1937,12 +2096,12 @@ declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
|
|
|
1937
2096
|
error: z$1.ZodNullable<z$1.ZodString>;
|
|
1938
2097
|
logId: z$1.ZodString;
|
|
1939
2098
|
}, "strip", z$1.ZodTypeAny, {
|
|
1940
|
-
data: Record<string, unknown>;
|
|
1941
2099
|
error: string | null;
|
|
2100
|
+
data: Record<string, unknown>;
|
|
1942
2101
|
logId: string;
|
|
1943
2102
|
}, {
|
|
1944
|
-
data: Record<string, unknown>;
|
|
1945
2103
|
error: string | null;
|
|
2104
|
+
data: Record<string, unknown>;
|
|
1946
2105
|
logId: string;
|
|
1947
2106
|
}>;
|
|
1948
2107
|
type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
@@ -1991,35 +2150,32 @@ 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
2163
|
declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
2003
|
-
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
/** HTTP method */
|
|
2008
|
-
method: z$1.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2009
|
-
/** Request body (for POST/PUT/PATCH) */
|
|
2010
|
-
body: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
2011
|
-
/** Query params or headers to include */
|
|
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 */
|
|
2012
2168
|
parameters: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2013
2169
|
in: z$1.ZodEnum<["query", "header"]>;
|
|
2014
2170
|
name: z$1.ZodString;
|
|
2015
2171
|
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>;
|
|
2016
2172
|
}, "strip", z$1.ZodTypeAny, {
|
|
2017
|
-
name: string;
|
|
2018
2173
|
value: string | number;
|
|
2174
|
+
name: string;
|
|
2019
2175
|
in: "query" | "header";
|
|
2020
2176
|
}, {
|
|
2021
|
-
name: string;
|
|
2022
2177
|
value: string | number;
|
|
2178
|
+
name: string;
|
|
2023
2179
|
in: "query" | "header";
|
|
2024
2180
|
}>, "many">>;
|
|
2025
2181
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -2028,8 +2184,8 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2028
2184
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2029
2185
|
body?: unknown;
|
|
2030
2186
|
parameters?: {
|
|
2031
|
-
name: string;
|
|
2032
2187
|
value: string | number;
|
|
2188
|
+
name: string;
|
|
2033
2189
|
in: "query" | "header";
|
|
2034
2190
|
}[] | undefined;
|
|
2035
2191
|
}, {
|
|
@@ -2038,14 +2194,14 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2038
2194
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2039
2195
|
body?: unknown;
|
|
2040
2196
|
parameters?: {
|
|
2041
|
-
name: string;
|
|
2042
2197
|
value: string | number;
|
|
2198
|
+
name: string;
|
|
2043
2199
|
in: "query" | "header";
|
|
2044
2200
|
}[] | undefined;
|
|
2045
2201
|
}>;
|
|
2046
2202
|
type SessionProxyExecuteParams = z$1.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
2047
2203
|
type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2048
|
-
declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
2204
|
+
declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
2049
2205
|
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
2050
2206
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2051
2207
|
}, "strict", z$1.ZodTypeAny, {
|
|
@@ -2076,21 +2232,21 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2076
2232
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2077
2233
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2078
2234
|
}, "strict", z$1.ZodTypeAny, {
|
|
2079
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
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$1.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,19 +2263,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.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
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<{
|
|
2115
2271
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2116
2272
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2117
2273
|
}, "strict", z$1.ZodTypeAny, {
|
|
2118
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
2280
|
authConfigs: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
2125
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[]>>>>;
|
|
@@ -2128,19 +2284,35 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2128
2284
|
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
2129
2285
|
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2130
2286
|
}, "strict", z$1.ZodTypeAny, {
|
|
2131
|
-
callbackUrl?: string | undefined;
|
|
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
|
}>]>>>>;
|
|
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, {
|
|
2301
|
+
enable?: boolean | undefined;
|
|
2302
|
+
enableProxyExecution?: boolean | undefined;
|
|
2303
|
+
autoOffloadThreshold?: number | undefined;
|
|
2304
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2305
|
+
}, {
|
|
2306
|
+
enable?: boolean | undefined;
|
|
2307
|
+
enableProxyExecution?: boolean | undefined;
|
|
2308
|
+
autoOffloadThreshold?: number | undefined;
|
|
2309
|
+
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2310
|
+
}>>>>;
|
|
2139
2311
|
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
2140
|
-
enable: z$1.ZodOptional<z$1.ZodBoolean
|
|
2141
|
-
enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean
|
|
2142
|
-
autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber
|
|
2143
|
-
sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]
|
|
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"]>>>;
|
|
2144
2316
|
}, "strip", z$1.ZodTypeAny, {
|
|
2145
2317
|
enable?: boolean | undefined;
|
|
2146
2318
|
enableProxyExecution?: boolean | undefined;
|
|
@@ -2173,21 +2345,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2173
2345
|
tools?: string[] | "all" | undefined;
|
|
2174
2346
|
}>>>;
|
|
2175
2347
|
}, "strip", z$1.ZodTypeAny, {
|
|
2176
|
-
preload?: {
|
|
2177
|
-
tools?: string[] | "all" | undefined;
|
|
2178
|
-
} | undefined;
|
|
2179
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2180
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2181
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2182
|
-
} | undefined;
|
|
2183
2348
|
tools?: Record<string, string[] | {
|
|
2184
2349
|
enable: string[];
|
|
2185
2350
|
} | {
|
|
2186
2351
|
disable: string[];
|
|
2187
2352
|
} | {
|
|
2188
2353
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2189
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2190
2354
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2355
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2191
2356
|
};
|
|
2192
2357
|
}> | undefined;
|
|
2193
2358
|
toolkits?: string[] | {
|
|
@@ -2195,13 +2360,26 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2195
2360
|
} | {
|
|
2196
2361
|
enable: string[];
|
|
2197
2362
|
} | undefined;
|
|
2363
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2364
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2365
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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,21 +2392,108 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2214
2392
|
requireExplicitSelection?: boolean | undefined;
|
|
2215
2393
|
} | null | undefined;
|
|
2216
2394
|
}, {
|
|
2395
|
+
tools?: Record<string, string[] | {
|
|
2396
|
+
enable: string[];
|
|
2397
|
+
} | {
|
|
2398
|
+
disable: string[];
|
|
2399
|
+
} | {
|
|
2400
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2401
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2402
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2403
|
+
};
|
|
2404
|
+
}> | undefined;
|
|
2405
|
+
toolkits?: string[] | {
|
|
2406
|
+
disable: string[];
|
|
2407
|
+
} | {
|
|
2408
|
+
enable: string[];
|
|
2409
|
+
} | undefined;
|
|
2410
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2411
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2412
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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
|
+
}>, {
|
|
2442
|
+
tools?: Record<string, string[] | {
|
|
2443
|
+
enable: string[];
|
|
2444
|
+
} | {
|
|
2445
|
+
disable: string[];
|
|
2446
|
+
} | {
|
|
2447
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2448
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2449
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2450
|
+
};
|
|
2451
|
+
}> | undefined;
|
|
2452
|
+
toolkits?: string[] | {
|
|
2453
|
+
disable: string[];
|
|
2454
|
+
} | {
|
|
2455
|
+
enable: string[];
|
|
2456
|
+
} | undefined;
|
|
2220
2457
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2221
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2222
2458
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2459
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2223
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
|
+
}, {
|
|
2224
2489
|
tools?: Record<string, string[] | {
|
|
2225
2490
|
enable: string[];
|
|
2226
2491
|
} | {
|
|
2227
2492
|
disable: string[];
|
|
2228
2493
|
} | {
|
|
2229
2494
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2230
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2231
2495
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2496
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2232
2497
|
};
|
|
2233
2498
|
}> | undefined;
|
|
2234
2499
|
toolkits?: string[] | {
|
|
@@ -2236,13 +2501,26 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2236
2501
|
} | {
|
|
2237
2502
|
enable: string[];
|
|
2238
2503
|
} | undefined;
|
|
2504
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2505
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2506
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
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;
|
|
@@ -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,7 +2619,7 @@ 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.
|
|
@@ -2344,12 +2654,9 @@ declare const CreateCustomToolBaseSchema: z.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.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;
|
|
@@ -2401,8 +2708,7 @@ declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
|
2401
2708
|
}>;
|
|
2402
2709
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
2403
2710
|
type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2404
|
-
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
|
|
2405
|
-
tools: CustomTool[];
|
|
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 };
|