@composio/core 0.11.0 → 0.12.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-CVbQxTNa.d.cts → BaseProvider-BBnsv9kS.d.mts} +139 -92
- package/dist/CustomTool-DEB4BQPl.mjs +468 -0
- package/dist/{CustomTool-C-IUByoU.d.cts → CustomTool-DH18rVQu.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-CHnEggnv.d.mts} +394 -349
- package/dist/{customTool.types-QtkAZQma.d.cts → customTool.types-DpIdOJjL.d.mts} +171 -192
- package/dist/{CustomTool-D5s-aADw.mjs → errors-D5f4pfvI.mjs} +70 -457
- 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 +1685 -2400
- package/dist/index.mjs +2238 -1912
- package/dist/jsonSchema-daqF3S3d.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-CaI5Z4PA.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/package.json +39 -88
- package/dist/BaseProvider-BvHvJLXc.d.mts +0 -29378
- package/dist/CustomTool-CChQSp44.d.mts +0 -76
- 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/composio-BlASKqjQ.d.mts +0 -5437
- package/dist/customTool.types-DLIORcYN.d.mts +0 -2475
- 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/files.types-lo4zZd87.d.cts +0 -17
- 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-DRG5qLxI.d.cts +0 -13
- 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 use connectedAccount.state instead */
|
|
246
|
-
data?: Record<string, unknown>;
|
|
247
|
-
/** @deprecated use connectedAccount.state instead */
|
|
244
|
+
alias?: string | null; /** @deprecated use connectedAccount.state instead */
|
|
245
|
+
data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
|
|
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 use connectedAccount.state instead */
|
|
308
|
-
data?: Record<string, unknown>;
|
|
309
|
-
/** @deprecated use connectedAccount.state instead */
|
|
304
|
+
alias?: string | null; /** @deprecated use connectedAccount.state instead */
|
|
305
|
+
data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
|
|
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 use connectedAccount.state instead */
|
|
328
|
-
data?: Record<string, unknown>;
|
|
329
|
-
/** @deprecated use connectedAccount.state instead */
|
|
322
|
+
alias?: string | null; /** @deprecated use connectedAccount.state instead */
|
|
323
|
+
data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
|
|
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 use connectedAccount.state instead */
|
|
352
|
-
data?: Record<string, unknown>;
|
|
353
|
-
/** @deprecated use connectedAccount.state instead */
|
|
344
|
+
alias?: string | null; /** @deprecated use connectedAccount.state instead */
|
|
345
|
+
data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
|
|
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 use connectedAccount.state instead */
|
|
376
|
-
data?: Record<string, unknown>;
|
|
377
|
-
/** @deprecated use connectedAccount.state instead */
|
|
366
|
+
alias?: string | null; /** @deprecated use connectedAccount.state instead */
|
|
367
|
+
data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
|
|
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;
|
|
@@ -931,12 +917,12 @@ declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
|
|
|
931
917
|
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
932
918
|
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
933
919
|
}, "strict", z$1.ZodTypeAny, {
|
|
934
|
-
callbackUrl?: string | undefined;
|
|
935
920
|
enable?: boolean | undefined;
|
|
921
|
+
callbackUrl?: string | undefined;
|
|
936
922
|
waitForConnections?: boolean | undefined;
|
|
937
923
|
}, {
|
|
938
|
-
callbackUrl?: string | undefined;
|
|
939
924
|
enable?: boolean | undefined;
|
|
925
|
+
callbackUrl?: string | undefined;
|
|
940
926
|
waitForConnections?: boolean | undefined;
|
|
941
927
|
}>;
|
|
942
928
|
declare const ToolRouterToolkitsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
@@ -961,29 +947,29 @@ declare const ToolRouterManageConnectionsConfigSchema: z$1.ZodObject<{
|
|
|
961
947
|
enable: boolean;
|
|
962
948
|
callbackUrl?: string | undefined;
|
|
963
949
|
}, {
|
|
964
|
-
callbackUrl?: string | undefined;
|
|
965
950
|
enable?: boolean | undefined;
|
|
951
|
+
callbackUrl?: string | undefined;
|
|
966
952
|
}>;
|
|
967
953
|
declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
968
954
|
declare const ToolRouterTagsEnableDisableSchema: z$1.ZodObject<{
|
|
969
955
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
970
956
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
971
957
|
}, "strict", z$1.ZodTypeAny, {
|
|
972
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
973
958
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
974
|
-
}, {
|
|
975
959
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
960
|
+
}, {
|
|
976
961
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
962
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
977
963
|
}>;
|
|
978
964
|
declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
979
965
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
980
966
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
981
967
|
}, "strict", z$1.ZodTypeAny, {
|
|
982
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
983
968
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
984
|
-
}, {
|
|
985
969
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
970
|
+
}, {
|
|
986
971
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
972
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
987
973
|
}>]>;
|
|
988
974
|
type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
989
975
|
/**
|
|
@@ -1027,21 +1013,21 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1027
1013
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1028
1014
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1029
1015
|
}, "strict", z$1.ZodTypeAny, {
|
|
1030
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1031
1016
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1032
|
-
}, {
|
|
1033
1017
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1018
|
+
}, {
|
|
1034
1019
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1020
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1035
1021
|
}>]>;
|
|
1036
1022
|
}, "strict", z$1.ZodTypeAny, {
|
|
1037
1023
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1038
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1039
1024
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1025
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1040
1026
|
};
|
|
1041
1027
|
}, {
|
|
1042
1028
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1043
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1044
1029
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1030
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1045
1031
|
};
|
|
1046
1032
|
}>]>, string[] | {
|
|
1047
1033
|
enable: string[];
|
|
@@ -1049,8 +1035,8 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1049
1035
|
disable: string[];
|
|
1050
1036
|
} | {
|
|
1051
1037
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1052
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1053
1038
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1039
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1054
1040
|
};
|
|
1055
1041
|
}, string[] | {
|
|
1056
1042
|
enable: string[];
|
|
@@ -1058,8 +1044,8 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1058
1044
|
disable: string[];
|
|
1059
1045
|
} | {
|
|
1060
1046
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1061
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1062
1047
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1048
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1063
1049
|
};
|
|
1064
1050
|
}>;
|
|
1065
1051
|
type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
|
|
@@ -1082,21 +1068,21 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1082
1068
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1083
1069
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1084
1070
|
}, "strict", z$1.ZodTypeAny, {
|
|
1085
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1086
1071
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1087
|
-
}, {
|
|
1088
1072
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1073
|
+
}, {
|
|
1089
1074
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1075
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1090
1076
|
}>]>;
|
|
1091
1077
|
}, "strict", z$1.ZodTypeAny, {
|
|
1092
1078
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1093
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1094
1079
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1080
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1095
1081
|
};
|
|
1096
1082
|
}, {
|
|
1097
1083
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1098
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1099
1084
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1085
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1100
1086
|
};
|
|
1101
1087
|
}>]>, string[] | {
|
|
1102
1088
|
enable: string[];
|
|
@@ -1104,8 +1090,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1104
1090
|
disable: string[];
|
|
1105
1091
|
} | {
|
|
1106
1092
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1107
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1108
1093
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1094
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1109
1095
|
};
|
|
1110
1096
|
}, string[] | {
|
|
1111
1097
|
enable: string[];
|
|
@@ -1113,19 +1099,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1113
1099
|
disable: string[];
|
|
1114
1100
|
} | {
|
|
1115
1101
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1116
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1117
1102
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1103
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1118
1104
|
};
|
|
1119
1105
|
}>]>>>>;
|
|
1120
1106
|
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
1107
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1122
1108
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1123
1109
|
}, "strict", z$1.ZodTypeAny, {
|
|
1124
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1125
1110
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1126
|
-
}, {
|
|
1127
1111
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1112
|
+
}, {
|
|
1128
1113
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1114
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1129
1115
|
}>]>>>;
|
|
1130
1116
|
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
1131
1117
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
@@ -1147,12 +1133,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1147
1133
|
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
1148
1134
|
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1149
1135
|
}, "strict", z$1.ZodTypeAny, {
|
|
1150
|
-
callbackUrl?: string | undefined;
|
|
1151
1136
|
enable?: boolean | undefined;
|
|
1137
|
+
callbackUrl?: string | undefined;
|
|
1152
1138
|
waitForConnections?: boolean | undefined;
|
|
1153
1139
|
}, {
|
|
1154
|
-
callbackUrl?: string | undefined;
|
|
1155
1140
|
enable?: boolean | undefined;
|
|
1141
|
+
callbackUrl?: string | undefined;
|
|
1156
1142
|
waitForConnections?: boolean | undefined;
|
|
1157
1143
|
}>]>>>>;
|
|
1158
1144
|
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -1215,21 +1201,14 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1215
1201
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1216
1202
|
}>>>;
|
|
1217
1203
|
}, "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
1204
|
tools?: Record<string, string[] | {
|
|
1226
1205
|
enable: string[];
|
|
1227
1206
|
} | {
|
|
1228
1207
|
disable: string[];
|
|
1229
1208
|
} | {
|
|
1230
1209
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1231
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1232
1210
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1211
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1233
1212
|
};
|
|
1234
1213
|
}> | undefined;
|
|
1235
1214
|
toolkits?: string[] | {
|
|
@@ -1237,19 +1216,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1237
1216
|
} | {
|
|
1238
1217
|
enable: string[];
|
|
1239
1218
|
} | undefined;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1219
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1220
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1221
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1222
|
+
} | undefined;
|
|
1223
|
+
preload?: {
|
|
1224
|
+
tools?: string[] | "all" | undefined;
|
|
1246
1225
|
} | undefined;
|
|
1247
1226
|
sessionPreset?: "direct_tools" | undefined;
|
|
1248
1227
|
authConfigs?: Record<string, string> | undefined;
|
|
1249
1228
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1250
1229
|
manageConnections?: boolean | {
|
|
1251
|
-
callbackUrl?: string | undefined;
|
|
1252
1230
|
enable?: boolean | undefined;
|
|
1231
|
+
callbackUrl?: string | undefined;
|
|
1253
1232
|
waitForConnections?: boolean | undefined;
|
|
1254
1233
|
} | undefined;
|
|
1255
1234
|
workbench?: {
|
|
@@ -1263,22 +1242,22 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1263
1242
|
maxAccountsPerToolkit?: number | undefined;
|
|
1264
1243
|
requireExplicitSelection?: boolean | undefined;
|
|
1265
1244
|
} | undefined;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1245
|
+
experimental?: {
|
|
1246
|
+
assistivePrompt?: {
|
|
1247
|
+
userTimezone?: string | undefined;
|
|
1248
|
+
} | undefined;
|
|
1249
|
+
customTools?: CustomTool[] | undefined;
|
|
1250
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1273
1251
|
} | undefined;
|
|
1252
|
+
}, {
|
|
1274
1253
|
tools?: Record<string, string[] | {
|
|
1275
1254
|
enable: string[];
|
|
1276
1255
|
} | {
|
|
1277
1256
|
disable: string[];
|
|
1278
1257
|
} | {
|
|
1279
1258
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1280
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1281
1259
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1260
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1282
1261
|
};
|
|
1283
1262
|
}> | undefined;
|
|
1284
1263
|
toolkits?: string[] | {
|
|
@@ -1286,19 +1265,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1286
1265
|
} | {
|
|
1287
1266
|
enable: string[];
|
|
1288
1267
|
} | undefined;
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1268
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1269
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1270
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1271
|
+
} | undefined;
|
|
1272
|
+
preload?: {
|
|
1273
|
+
tools?: string[] | "all" | undefined;
|
|
1295
1274
|
} | undefined;
|
|
1296
1275
|
sessionPreset?: "direct_tools" | undefined;
|
|
1297
1276
|
authConfigs?: Record<string, string> | undefined;
|
|
1298
1277
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1299
1278
|
manageConnections?: boolean | {
|
|
1300
|
-
callbackUrl?: string | undefined;
|
|
1301
1279
|
enable?: boolean | undefined;
|
|
1280
|
+
callbackUrl?: string | undefined;
|
|
1302
1281
|
waitForConnections?: boolean | undefined;
|
|
1303
1282
|
} | undefined;
|
|
1304
1283
|
workbench?: {
|
|
@@ -1312,22 +1291,22 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1312
1291
|
maxAccountsPerToolkit?: number | undefined;
|
|
1313
1292
|
requireExplicitSelection?: boolean | undefined;
|
|
1314
1293
|
} | undefined;
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1294
|
+
experimental?: {
|
|
1295
|
+
assistivePrompt?: {
|
|
1296
|
+
userTimezone?: string | undefined;
|
|
1297
|
+
} | undefined;
|
|
1298
|
+
customTools?: CustomTool[] | undefined;
|
|
1299
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1322
1300
|
} | undefined;
|
|
1301
|
+
}>, {
|
|
1323
1302
|
tools?: Record<string, string[] | {
|
|
1324
1303
|
enable: string[];
|
|
1325
1304
|
} | {
|
|
1326
1305
|
disable: string[];
|
|
1327
1306
|
} | {
|
|
1328
1307
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1329
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1330
1308
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1309
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1331
1310
|
};
|
|
1332
1311
|
}> | undefined;
|
|
1333
1312
|
toolkits?: string[] | {
|
|
@@ -1335,19 +1314,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1335
1314
|
} | {
|
|
1336
1315
|
enable: string[];
|
|
1337
1316
|
} | undefined;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1317
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1318
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1319
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
preload?: {
|
|
1322
|
+
tools?: string[] | "all" | undefined;
|
|
1344
1323
|
} | undefined;
|
|
1345
1324
|
sessionPreset?: "direct_tools" | undefined;
|
|
1346
1325
|
authConfigs?: Record<string, string> | undefined;
|
|
1347
1326
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1348
1327
|
manageConnections?: boolean | {
|
|
1349
|
-
callbackUrl?: string | undefined;
|
|
1350
1328
|
enable?: boolean | undefined;
|
|
1329
|
+
callbackUrl?: string | undefined;
|
|
1351
1330
|
waitForConnections?: boolean | undefined;
|
|
1352
1331
|
} | undefined;
|
|
1353
1332
|
workbench?: {
|
|
@@ -1361,6 +1340,13 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1361
1340
|
maxAccountsPerToolkit?: number | undefined;
|
|
1362
1341
|
requireExplicitSelection?: boolean | undefined;
|
|
1363
1342
|
} | undefined;
|
|
1343
|
+
experimental?: {
|
|
1344
|
+
assistivePrompt?: {
|
|
1345
|
+
userTimezone?: string | undefined;
|
|
1346
|
+
} | undefined;
|
|
1347
|
+
customTools?: CustomTool[] | undefined;
|
|
1348
|
+
customToolkits?: CustomToolkit[] | undefined;
|
|
1349
|
+
} | undefined;
|
|
1364
1350
|
}, unknown>;
|
|
1365
1351
|
/**
|
|
1366
1352
|
* The config for the tool router session.
|
|
@@ -1638,15 +1624,15 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
|
1638
1624
|
search: z$1.ZodOptional<z$1.ZodString>;
|
|
1639
1625
|
}, "strip", z$1.ZodTypeAny, {
|
|
1640
1626
|
toolkits?: string[] | undefined;
|
|
1627
|
+
cursor?: string | undefined;
|
|
1641
1628
|
limit?: number | undefined;
|
|
1642
1629
|
search?: string | undefined;
|
|
1643
|
-
cursor?: string | undefined;
|
|
1644
1630
|
isConnected?: boolean | undefined;
|
|
1645
1631
|
}, {
|
|
1646
1632
|
toolkits?: string[] | undefined;
|
|
1633
|
+
cursor?: string | undefined;
|
|
1647
1634
|
limit?: number | undefined;
|
|
1648
1635
|
search?: string | undefined;
|
|
1649
|
-
cursor?: string | undefined;
|
|
1650
1636
|
isConnected?: boolean | undefined;
|
|
1651
1637
|
}>;
|
|
1652
1638
|
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
@@ -1779,15 +1765,15 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1779
1765
|
connectionDetails: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1780
1766
|
currentUserInfo: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
1781
1767
|
}, "strip", z$1.ZodTypeAny, {
|
|
1782
|
-
description: string;
|
|
1783
1768
|
toolkit: string;
|
|
1769
|
+
description: string;
|
|
1784
1770
|
hasActiveConnection: boolean;
|
|
1785
1771
|
statusMessage: string;
|
|
1786
1772
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1787
1773
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1788
1774
|
}, {
|
|
1789
|
-
description: string;
|
|
1790
1775
|
toolkit: string;
|
|
1776
|
+
description: string;
|
|
1791
1777
|
hasActiveConnection: boolean;
|
|
1792
1778
|
statusMessage: string;
|
|
1793
1779
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -1800,12 +1786,12 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1800
1786
|
instructions: z$1.ZodString;
|
|
1801
1787
|
}, "strip", z$1.ZodTypeAny, {
|
|
1802
1788
|
id: string;
|
|
1803
|
-
instructions: string;
|
|
1804
1789
|
generateId: boolean;
|
|
1790
|
+
instructions: string;
|
|
1805
1791
|
}, {
|
|
1806
1792
|
id: string;
|
|
1807
|
-
instructions: string;
|
|
1808
1793
|
generateId: boolean;
|
|
1794
|
+
instructions: string;
|
|
1809
1795
|
}>;
|
|
1810
1796
|
timeInfo: z$1.ZodObject<{
|
|
1811
1797
|
currentTimeUtc: z$1.ZodString;
|
|
@@ -1857,8 +1843,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1857
1843
|
} | undefined;
|
|
1858
1844
|
}>;
|
|
1859
1845
|
toolkitConnectionStatuses: {
|
|
1860
|
-
description: string;
|
|
1861
1846
|
toolkit: string;
|
|
1847
|
+
description: string;
|
|
1862
1848
|
hasActiveConnection: boolean;
|
|
1863
1849
|
statusMessage: string;
|
|
1864
1850
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -1867,8 +1853,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1867
1853
|
nextStepsGuidance: string[];
|
|
1868
1854
|
session: {
|
|
1869
1855
|
id: string;
|
|
1870
|
-
instructions: string;
|
|
1871
1856
|
generateId: boolean;
|
|
1857
|
+
instructions: string;
|
|
1872
1858
|
};
|
|
1873
1859
|
timeInfo: {
|
|
1874
1860
|
message: string;
|
|
@@ -1912,8 +1898,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1912
1898
|
} | undefined;
|
|
1913
1899
|
}>;
|
|
1914
1900
|
toolkitConnectionStatuses: {
|
|
1915
|
-
description: string;
|
|
1916
1901
|
toolkit: string;
|
|
1902
|
+
description: string;
|
|
1917
1903
|
hasActiveConnection: boolean;
|
|
1918
1904
|
statusMessage: string;
|
|
1919
1905
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -1922,8 +1908,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1922
1908
|
nextStepsGuidance: string[];
|
|
1923
1909
|
session: {
|
|
1924
1910
|
id: string;
|
|
1925
|
-
instructions: string;
|
|
1926
1911
|
generateId: boolean;
|
|
1912
|
+
instructions: string;
|
|
1927
1913
|
};
|
|
1928
1914
|
timeInfo: {
|
|
1929
1915
|
message: string;
|
|
@@ -1937,12 +1923,12 @@ declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
|
|
|
1937
1923
|
error: z$1.ZodNullable<z$1.ZodString>;
|
|
1938
1924
|
logId: z$1.ZodString;
|
|
1939
1925
|
}, "strip", z$1.ZodTypeAny, {
|
|
1940
|
-
data: Record<string, unknown>;
|
|
1941
1926
|
error: string | null;
|
|
1927
|
+
data: Record<string, unknown>;
|
|
1942
1928
|
logId: string;
|
|
1943
1929
|
}, {
|
|
1944
|
-
data: Record<string, unknown>;
|
|
1945
1930
|
error: string | null;
|
|
1931
|
+
data: Record<string, unknown>;
|
|
1946
1932
|
logId: string;
|
|
1947
1933
|
}>;
|
|
1948
1934
|
type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
@@ -2000,26 +1986,21 @@ interface ToolRouterSessionMetadata {
|
|
|
2000
1986
|
inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
|
|
2001
1987
|
}
|
|
2002
1988
|
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 */
|
|
1989
|
+
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */toolkit: z$1.ZodString; /** The API endpoint URL to call */
|
|
1990
|
+
endpoint: z$1.ZodString; /** HTTP method */
|
|
1991
|
+
method: z$1.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>; /** Request body (for POST/PUT/PATCH) */
|
|
1992
|
+
body: z$1.ZodOptional<z$1.ZodUnknown>; /** Query params or headers to include */
|
|
2012
1993
|
parameters: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
2013
1994
|
in: z$1.ZodEnum<["query", "header"]>;
|
|
2014
1995
|
name: z$1.ZodString;
|
|
2015
1996
|
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>;
|
|
2016
1997
|
}, "strip", z$1.ZodTypeAny, {
|
|
2017
|
-
name: string;
|
|
2018
1998
|
value: string | number;
|
|
1999
|
+
name: string;
|
|
2019
2000
|
in: "query" | "header";
|
|
2020
2001
|
}, {
|
|
2021
|
-
name: string;
|
|
2022
2002
|
value: string | number;
|
|
2003
|
+
name: string;
|
|
2023
2004
|
in: "query" | "header";
|
|
2024
2005
|
}>, "many">>;
|
|
2025
2006
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -2028,8 +2009,8 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2028
2009
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2029
2010
|
body?: unknown;
|
|
2030
2011
|
parameters?: {
|
|
2031
|
-
name: string;
|
|
2032
2012
|
value: string | number;
|
|
2013
|
+
name: string;
|
|
2033
2014
|
in: "query" | "header";
|
|
2034
2015
|
}[] | undefined;
|
|
2035
2016
|
}, {
|
|
@@ -2038,8 +2019,8 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2038
2019
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2039
2020
|
body?: unknown;
|
|
2040
2021
|
parameters?: {
|
|
2041
|
-
name: string;
|
|
2042
2022
|
value: string | number;
|
|
2023
|
+
name: string;
|
|
2043
2024
|
in: "query" | "header";
|
|
2044
2025
|
}[] | undefined;
|
|
2045
2026
|
}>;
|
|
@@ -2076,21 +2057,21 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2076
2057
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2077
2058
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2078
2059
|
}, "strict", z$1.ZodTypeAny, {
|
|
2079
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2080
2060
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2081
|
-
}, {
|
|
2082
2061
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2062
|
+
}, {
|
|
2083
2063
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2064
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2084
2065
|
}>]>;
|
|
2085
2066
|
}, "strict", z$1.ZodTypeAny, {
|
|
2086
2067
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2087
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2088
2068
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2069
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2089
2070
|
};
|
|
2090
2071
|
}, {
|
|
2091
2072
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2092
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2093
2073
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2074
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2094
2075
|
};
|
|
2095
2076
|
}>]>, string[] | {
|
|
2096
2077
|
enable: string[];
|
|
@@ -2098,8 +2079,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2098
2079
|
disable: string[];
|
|
2099
2080
|
} | {
|
|
2100
2081
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2101
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2102
2082
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2083
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2103
2084
|
};
|
|
2104
2085
|
}, string[] | {
|
|
2105
2086
|
enable: string[];
|
|
@@ -2107,19 +2088,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2107
2088
|
disable: string[];
|
|
2108
2089
|
} | {
|
|
2109
2090
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2110
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2111
2091
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2092
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2112
2093
|
};
|
|
2113
2094
|
}>]>>>>;
|
|
2114
2095
|
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
2096
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2116
2097
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2117
2098
|
}, "strict", z$1.ZodTypeAny, {
|
|
2118
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2119
2099
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2120
|
-
}, {
|
|
2121
2100
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2101
|
+
}, {
|
|
2122
2102
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2103
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2123
2104
|
}>]>>>;
|
|
2124
2105
|
authConfigs: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
2125
2106
|
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,12 +2109,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2128
2109
|
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
2129
2110
|
waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2130
2111
|
}, "strict", z$1.ZodTypeAny, {
|
|
2131
|
-
callbackUrl?: string | undefined;
|
|
2132
2112
|
enable?: boolean | undefined;
|
|
2113
|
+
callbackUrl?: string | undefined;
|
|
2133
2114
|
waitForConnections?: boolean | undefined;
|
|
2134
2115
|
}, {
|
|
2135
|
-
callbackUrl?: string | undefined;
|
|
2136
2116
|
enable?: boolean | undefined;
|
|
2117
|
+
callbackUrl?: string | undefined;
|
|
2137
2118
|
waitForConnections?: boolean | undefined;
|
|
2138
2119
|
}>]>>>>;
|
|
2139
2120
|
workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -2173,21 +2154,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2173
2154
|
tools?: string[] | "all" | undefined;
|
|
2174
2155
|
}>>>;
|
|
2175
2156
|
}, "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
2157
|
tools?: Record<string, string[] | {
|
|
2184
2158
|
enable: string[];
|
|
2185
2159
|
} | {
|
|
2186
2160
|
disable: string[];
|
|
2187
2161
|
} | {
|
|
2188
2162
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2189
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2190
2163
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2164
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2191
2165
|
};
|
|
2192
2166
|
}> | undefined;
|
|
2193
2167
|
toolkits?: string[] | {
|
|
@@ -2195,11 +2169,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2195
2169
|
} | {
|
|
2196
2170
|
enable: string[];
|
|
2197
2171
|
} | undefined;
|
|
2172
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2173
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2174
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2175
|
+
} | undefined;
|
|
2176
|
+
preload?: {
|
|
2177
|
+
tools?: string[] | "all" | undefined;
|
|
2178
|
+
} | undefined;
|
|
2198
2179
|
authConfigs?: Record<string, string> | undefined;
|
|
2199
2180
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2200
2181
|
manageConnections?: boolean | {
|
|
2201
|
-
callbackUrl?: string | undefined;
|
|
2202
2182
|
enable?: boolean | undefined;
|
|
2183
|
+
callbackUrl?: string | undefined;
|
|
2203
2184
|
waitForConnections?: boolean | undefined;
|
|
2204
2185
|
} | null | undefined;
|
|
2205
2186
|
workbench?: {
|
|
@@ -2214,21 +2195,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2214
2195
|
requireExplicitSelection?: boolean | undefined;
|
|
2215
2196
|
} | null | undefined;
|
|
2216
2197
|
}, {
|
|
2217
|
-
preload?: {
|
|
2218
|
-
tools?: string[] | "all" | undefined;
|
|
2219
|
-
} | undefined;
|
|
2220
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2221
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2222
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2223
|
-
} | undefined;
|
|
2224
2198
|
tools?: Record<string, string[] | {
|
|
2225
2199
|
enable: string[];
|
|
2226
2200
|
} | {
|
|
2227
2201
|
disable: string[];
|
|
2228
2202
|
} | {
|
|
2229
2203
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2230
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2231
2204
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2205
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2232
2206
|
};
|
|
2233
2207
|
}> | undefined;
|
|
2234
2208
|
toolkits?: string[] | {
|
|
@@ -2236,11 +2210,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2236
2210
|
} | {
|
|
2237
2211
|
enable: string[];
|
|
2238
2212
|
} | undefined;
|
|
2213
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2214
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2215
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2216
|
+
} | undefined;
|
|
2217
|
+
preload?: {
|
|
2218
|
+
tools?: string[] | "all" | undefined;
|
|
2219
|
+
} | undefined;
|
|
2239
2220
|
authConfigs?: Record<string, string> | undefined;
|
|
2240
2221
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2241
2222
|
manageConnections?: boolean | {
|
|
2242
|
-
callbackUrl?: string | undefined;
|
|
2243
2223
|
enable?: boolean | undefined;
|
|
2224
|
+
callbackUrl?: string | undefined;
|
|
2244
2225
|
waitForConnections?: boolean | undefined;
|
|
2245
2226
|
} | null | undefined;
|
|
2246
2227
|
workbench?: {
|
|
@@ -2289,6 +2270,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2289
2270
|
}
|
|
2290
2271
|
//#endregion
|
|
2291
2272
|
//#region src/types/customTool.types.d.ts
|
|
2273
|
+
type AnyZodSchema = z.ZodType | z$2.ZodType;
|
|
2274
|
+
type InferZodSchema<T extends AnyZodSchema> = T extends z.ZodType ? z.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
|
|
2292
2275
|
/**
|
|
2293
2276
|
* Session context injected into custom tool execute functions at runtime.
|
|
2294
2277
|
* Provides identity context and methods to call other tools or proxy API requests.
|
|
@@ -2300,6 +2283,14 @@ interface SessionContext {
|
|
|
2300
2283
|
execute(toolSlug: string, arguments_: Record<string, unknown>): Promise<ToolRouterSessionExecuteResponse>;
|
|
2301
2284
|
/** Proxy API calls through Composio's auth layer (resolved from session toolkit). */
|
|
2302
2285
|
proxyExecute(params: SessionProxyExecuteParams): Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2286
|
+
/**
|
|
2287
|
+
* Caller-supplied AbortSignal forwarded from `session.execute(..., { signal })`.
|
|
2288
|
+
* Custom-tool execution is cooperative: long-running user code that respects
|
|
2289
|
+
* this signal (e.g. by passing it into `fetch`) can abort mid-execution and
|
|
2290
|
+
* surface as `ComposioRequestCancelledError`. Undefined when the caller did
|
|
2291
|
+
* not pass `requestOptions`.
|
|
2292
|
+
*/
|
|
2293
|
+
readonly signal?: AbortSignal;
|
|
2303
2294
|
}
|
|
2304
2295
|
/**
|
|
2305
2296
|
* Execute function for custom tools.
|
|
@@ -2309,7 +2300,7 @@ interface SessionContext {
|
|
|
2309
2300
|
* - `(input) => data` — for tools that don't need session context
|
|
2310
2301
|
* - `(input, ctx) => data` — for tools that need to call other tools or proxy APIs
|
|
2311
2302
|
*/
|
|
2312
|
-
type CustomToolExecuteFn<T extends
|
|
2303
|
+
type CustomToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ctx: SessionContext) => Promise<Record<string, unknown>>;
|
|
2313
2304
|
/**
|
|
2314
2305
|
* Zod schema for validating a custom tool slug.
|
|
2315
2306
|
* Alphanumeric, underscores, and hyphens only. No `LOCAL_` or `COMPOSIO_` prefix.
|
|
@@ -2344,12 +2335,9 @@ declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
|
2344
2335
|
preload?: boolean | undefined;
|
|
2345
2336
|
}>;
|
|
2346
2337
|
/** 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 */
|
|
2338
|
+
type CreateCustomToolParams<T extends AnyZodSchema> = z.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2339
|
+
/** Zod schema for input parameters */inputParams: T; /** Optional Zod schema for output parameters (sent to backend for documentation) */
|
|
2340
|
+
outputParams?: AnyZodSchema; /** The function that executes the tool */
|
|
2353
2341
|
execute: CustomToolExecuteFn<T>;
|
|
2354
2342
|
};
|
|
2355
2343
|
/**
|
|
@@ -2375,9 +2363,9 @@ interface CustomTool {
|
|
|
2375
2363
|
/** JSON Schema representation of the output (for backend documentation) */
|
|
2376
2364
|
readonly outputSchema?: Record<string, unknown>;
|
|
2377
2365
|
/** @internal Original Zod schema — used for runtime input validation (defaults, coercions, transforms) */
|
|
2378
|
-
readonly inputParams:
|
|
2366
|
+
readonly inputParams: AnyZodSchema;
|
|
2379
2367
|
/** Direct reference to the execute function — useful for testing */
|
|
2380
|
-
readonly execute: CustomToolExecuteFn<
|
|
2368
|
+
readonly execute: CustomToolExecuteFn<AnyZodSchema>;
|
|
2381
2369
|
}
|
|
2382
2370
|
/** Serialized tool definition sent to backend for search indexing. Uses official client type. */
|
|
2383
2371
|
type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
|
|
@@ -2401,8 +2389,7 @@ declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
|
2401
2389
|
}>;
|
|
2402
2390
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
2403
2391
|
type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2404
|
-
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
|
|
2405
|
-
tools: CustomTool[];
|
|
2392
|
+
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */tools: CustomTool[];
|
|
2406
2393
|
};
|
|
2407
2394
|
/**
|
|
2408
2395
|
* Custom toolkit definition returned from `createCustomToolkit()`.
|
|
@@ -2428,25 +2415,17 @@ interface InlineCustomToolsWirePayload {
|
|
|
2428
2415
|
}
|
|
2429
2416
|
/** @internal Entry in the per-session custom tools routing map. */
|
|
2430
2417
|
type CustomToolsMapEntry = {
|
|
2431
|
-
handle: CustomTool;
|
|
2432
|
-
/**
|
|
2433
|
-
finalSlug: string;
|
|
2434
|
-
/** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
|
|
2418
|
+
handle: CustomTool; /** @internal The final slug assigned by the prefixing rules (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
|
|
2419
|
+
finalSlug: string; /** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
|
|
2435
2420
|
toolkit?: string;
|
|
2436
2421
|
};
|
|
2437
2422
|
/** @internal Lookup maps used by ToolRouterSession for routing custom tools. */
|
|
2438
2423
|
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. */
|
|
2424
|
+
/** 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() */
|
|
2425
|
+
byOriginalSlug: Map<string, CustomToolsMapEntry>; /** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
|
|
2426
|
+
byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>; /** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
|
|
2427
|
+
ambiguousOriginalSlugs?: Set<string>; /** The original custom toolkits passed at session creation — used for session.customToolkits() */
|
|
2428
|
+
toolkits?: CustomToolkit[]; /** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
|
|
2450
2429
|
tools?: CustomTool[];
|
|
2451
2430
|
};
|
|
2452
2431
|
/** A custom tool as registered in a session, with its final resolved slug. */
|
|
@@ -2472,4 +2451,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
2472
2451
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
2473
2452
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
2474
2453
|
//#endregion
|
|
2475
|
-
export {
|
|
2454
|
+
export { ToolRouterSessionSearchResponseSchema as $, ConnectedAccountRetrieveResponse as $t, SessionProxyExecuteParams as A, ToolRouterSessionFilesMountListOptions as At, ToolRouterMCPServerConfig as B, ConnectedAccountAuthConfig as Bt, MCPServerType as C, FileListResponseSchema as Ct, Session as D, ToolRouterSessionFilesMountDeleteOptionsSchema as Dt, SandboxSizeSchema as E, ToolRouterSessionFilesMountDeleteOptions as Et, ToolRouterConfigTagsSchema as F, ConnectionRequestState as Ft, ToolRouterSessionExecuteResponse as G, ConnectedAccountExperimentalSchema as Gt, ToolRouterManageConnectionsConfigSchema as H, ConnectedAccountExperimental as Ht, ToolRouterConfigTools as I, ConnectedAccountAclConfig as It, ToolRouterSessionPreloadConfig as J, ConnectedAccountListResponse as Jt, ToolRouterSessionExecuteResponseSchema as K, ConnectedAccountListParams as Kt, ToolRouterConfigToolsSchema as L, ConnectedAccountAclConfigResponse as Lt, ToolRouterAuthorizeFn as M, ToolRouterSessionFilesMountUploadOptions as Mt, ToolRouterConfigManageConnectionsSchema as N, ToolRouterSessionFilesMountUploadOptionsSchema as Nt, SessionExperimental as O, ToolRouterSessionFilesMountDownloadOptions as Ot, ToolRouterConfigTags as P, ConnectionRequest as Pt, ToolRouterSessionSearchResponse as Q, ConnectedAccountRefreshOptionsSchema as Qt, ToolRouterCreateSessionConfig as R, ConnectedAccountAclConfigResponseSchema as Rt, SessionContext as S, UpdateConnectedAccountParamsSchema as Sn, FileListResponse as St, SandboxSize as T, RemoteFileDataSchema as Tt, ToolRouterSessionExecuteFn as U, ConnectedAccountExperimentalResponse as Ut, ToolRouterMCPServerConfigSchema as V, ConnectedAccountAuthConfigSchema as Vt, ToolRouterSessionExecuteOptions as W, ConnectedAccountExperimentalResponseSchema as Wt, ToolRouterSessionProxyExecuteResponse as X, ConnectedAccountListResponseSchema as Xt, ToolRouterSessionProxyExecuteFn as Y, ConnectedAccountListResponseItem as Yt, ToolRouterSessionSearchFn as Z, ConnectedAccountRefreshOptions as Zt, CustomToolsMapEntry as _, CreateConnectedAccountResponseSchema as _n, ToolkitConnectionsDetails as _t, CreateCustomToolkitParams as a, ConnectedAccountType as an, ToolRouterToolkitsEnabledConfigSchema as at, RegisteredCustomTool as b, UpdateConnectedAccountAclParamsSchema as bn, FileDeleteResponse as bt, CustomToolExecuteFn as c, CreateConnectedAccountLinkOptions as cn, ToolRouterToolkitsOptionsSchema as ct, CustomToolWireDefinition as d, CreateConnectedAccountLinkResponseSchema as dn, ToolRouterToolsParam as dt, ConnectedAccountRetrieveResponseSchema as en, ToolRouterSessionUpdateFn as et, CustomToolkit as f, CreateConnectedAccountOptions as fn, ToolRouterToolsParamSchema as ft, CustomToolsMap as g, CreateConnectedAccountResponse as gn, ToolkitConnectionStateSchema as gt, CustomToolkitWireDefinition as h, CreateConnectedAccountParamsSchema as hn, ToolkitConnectionState as ht, CreateCustomToolkitBaseSchema as i, ConnectedAccountStatuses as in, ToolRouterToolkitsDisabledConfigSchema as it, SessionProxyExecuteParamsSchema as j, ToolRouterSessionFilesMountListOptionsSchema as jt, SessionPreset as k, ToolRouterSessionFilesMountDownloadOptionsSchema as kt, CustomToolResponse as l, CreateConnectedAccountLinkOptionsSchema as ln, ToolRouterToolkitsParamSchema as lt, CustomToolkitResponse as m, CreateConnectedAccountParams as mn, ToolRouterUpdateSessionConfigSchema as mt, CreateCustomToolBaseSchema as n, ConnectedAccountStatusEnum as nn, ToolRouterTagsEnableDisableSchema as nt, CustomTool as o, ConnectedAccountTypeSchema as on, ToolRouterToolkitsFn as ot, CustomToolkitDefinition as p, CreateConnectedAccountOptionsSchema as pn, ToolRouterUpdateSessionConfig as pt, ToolRouterSessionMetadata as q, ConnectedAccountListParamsSchema as qt, CreateCustomToolParams as r, ConnectedAccountStatusSchema as rn, ToolRouterTagsParamSchema as rt, CustomToolDefinition as s, ConnectedAccountTypes as sn, ToolRouterToolkitsOptions as st, AnyZodSchema as t, ConnectedAccountStatus as tn, ToolRouterSessionWarning as tt, CustomToolSlugSchema as u, CreateConnectedAccountLinkResponse as un, ToolRouterToolsFn as ut, InferZodSchema as v, DefaultCreateConnectedAccountParamsSchema as vn, ToolkitConnectionsDetailsSchema as vt, MCPServerTypeSchema as w, RemoteFileData as wt, RegisteredCustomToolkit as x, UpdateConnectedAccountParams as xn, FileDeleteResponseSchema as xt, InlineCustomToolsWirePayload as y, UpdateConnectedAccountAclParams as yn, RemoteFile as yt, ToolRouterCreateSessionConfigSchema as z, ConnectedAccountAclConfigSchema as zt };
|