@composio/core 0.20.0 → 0.21.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/{CustomTool-fYEFjSLM.mjs → CustomTool-B-_VjWpy.mjs} +1 -1
- package/dist/{CustomTool-B3m-188G.d.mts → CustomTool-BHOYxLZX.d.mts} +1 -1
- package/dist/{cancellation-Dwa9lGHA.mjs → cancellation-DV8CIi52.mjs} +1 -1
- package/dist/{composio-B36OXii1.d.mts → composio-BTZsFajb.d.mts} +464 -4
- package/dist/{customTool.types-C436M_D0.d.mts → customTool.types-D_w21L56.d.mts} +454 -59
- package/dist/docs/reference/sdk-reference/typescript/composio.mdx +2 -1
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -0
- package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -0
- package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +83 -0
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +29 -20
- package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +10 -4
- package/dist/{errors-D_A4b2c2.mjs → errors-Dyiu3ifQ.mjs} +10 -6
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.d.mts +39 -26
- package/dist/index.mjs +1482 -1049
- package/dist/{types-Br3GBya5.d.mts → types-CgRsUGqm.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +3 -1
- package/src/composio.ts +8 -0
- package/src/errors/ToolRouterErrors.ts +10 -6
- package/src/index.ts +2 -0
- package/src/lib/sessionConfigConflict.ts +43 -0
- package/src/lib/toolRouterParams.ts +34 -9
- package/src/lib/toolRouterSourceSessionConfig.ts +12 -0
- package/src/models/RemoteFile.ts +25 -8
- package/src/models/SessionConfigs.ts +117 -0
- package/src/models/ToolRouter.ts +19 -3
- package/src/models/ToolRouterSession.ts +45 -21
- package/src/models/Tools.ts +7 -5
- package/src/types/sessionConfigs.types.ts +81 -0
- package/src/types/tool.types.ts +2 -0
- package/src/types/toolRouter.types.ts +149 -7
- package/src/utils/safePath.ts +172 -0
- package/src/utils/transformers/sessionConfigs.ts +54 -0
- package/src/utils/transformers/toolRouterResponseTransform.ts +6 -0
|
@@ -3686,18 +3686,22 @@ declare const ToolExecuteResponseSchema: z$1.ZodObject<{
|
|
|
3686
3686
|
successful: z$1.ZodBoolean;
|
|
3687
3687
|
logId: z$1.ZodOptional<z$1.ZodString>;
|
|
3688
3688
|
sessionInfo: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
3689
|
+
/** Actual premium usage charge when the Session opts into returning it. */
|
|
3690
|
+
premiumCharge: z$1.ZodOptional<z$1.ZodUnknown>;
|
|
3689
3691
|
}, "strip", z$1.ZodTypeAny, {
|
|
3690
3692
|
data: Record<string, unknown>;
|
|
3691
3693
|
error: string | null;
|
|
3692
3694
|
successful: boolean;
|
|
3693
3695
|
logId?: string | undefined;
|
|
3694
3696
|
sessionInfo?: unknown;
|
|
3697
|
+
premiumCharge?: unknown;
|
|
3695
3698
|
}, {
|
|
3696
3699
|
data: Record<string, unknown>;
|
|
3697
3700
|
error: string | null;
|
|
3698
3701
|
successful: boolean;
|
|
3699
3702
|
logId?: string | undefined;
|
|
3700
3703
|
sessionInfo?: unknown;
|
|
3704
|
+
premiumCharge?: unknown;
|
|
3701
3705
|
}>;
|
|
3702
3706
|
type ToolExecuteResponse = z$1.infer<typeof ToolExecuteResponseSchema>;
|
|
3703
3707
|
declare const ToolProxyParamsSchema: z$1.ZodObject<{
|
|
@@ -30337,7 +30341,18 @@ declare class RemoteFile {
|
|
|
30337
30341
|
* @throws ValidationError if the response shape is invalid
|
|
30338
30342
|
*/
|
|
30339
30343
|
static parse(data: unknown): RemoteFile;
|
|
30340
|
-
/**
|
|
30344
|
+
/**
|
|
30345
|
+
* Filename extracted from the mount path (e.g. "report.pdf" from "output/report.pdf").
|
|
30346
|
+
*
|
|
30347
|
+
* Deliberately non-throwing: this is a display value, and `downloadBytes()`
|
|
30348
|
+
* reads it while constructing `RemoteFileDownloadError`. A validator here
|
|
30349
|
+
* would replace a genuine download error with a validation error thrown from
|
|
30350
|
+
* inside the error constructor. {@link save} validates instead, at the point
|
|
30351
|
+
* the value actually becomes a path.
|
|
30352
|
+
*
|
|
30353
|
+
* Both `/` and `\` count as separators, as in the Python SDK, so a mount path
|
|
30354
|
+
* crafted for a Windows target is reduced the same way on every platform.
|
|
30355
|
+
*/
|
|
30341
30356
|
get filename(): string;
|
|
30342
30357
|
private downloadError;
|
|
30343
30358
|
private downloadBytes;
|
|
@@ -30366,6 +30381,7 @@ declare class RemoteFile {
|
|
|
30366
30381
|
* @param path - Local path to save the file. If omitted, saves to the Composio temp directory using the filename from the mount path.
|
|
30367
30382
|
* @returns The absolute path where the file was saved
|
|
30368
30383
|
* @throws Error if file system is not supported or the save fails
|
|
30384
|
+
* @throws ValidationError if `path` is omitted and the mount path yields no usable filename
|
|
30369
30385
|
*/
|
|
30370
30386
|
save(path?: string): Promise<string>;
|
|
30371
30387
|
}
|
|
@@ -30565,6 +30581,66 @@ declare const ToolRouterToolkitsEnabledConfigSchema: z.ZodObject<{
|
|
|
30565
30581
|
}, {
|
|
30566
30582
|
enable: string[];
|
|
30567
30583
|
}>;
|
|
30584
|
+
/** Experimental premium usage policy for a Session. */
|
|
30585
|
+
declare const ToolRouterPremiumUsageSchema: z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
|
30586
|
+
toolkits: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
30587
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
30588
|
+
}, "strict", z.ZodTypeAny, {
|
|
30589
|
+
enable: string[];
|
|
30590
|
+
}, {
|
|
30591
|
+
enable: string[];
|
|
30592
|
+
}>, z.ZodObject<{
|
|
30593
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
30594
|
+
}, "strict", z.ZodTypeAny, {
|
|
30595
|
+
disable: string[];
|
|
30596
|
+
}, {
|
|
30597
|
+
disable: string[];
|
|
30598
|
+
}>]>>;
|
|
30599
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
30600
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
30601
|
+
}, "strict", z.ZodTypeAny, {
|
|
30602
|
+
enable: string[];
|
|
30603
|
+
}, {
|
|
30604
|
+
enable: string[];
|
|
30605
|
+
}>, z.ZodObject<{
|
|
30606
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
30607
|
+
}, "strict", z.ZodTypeAny, {
|
|
30608
|
+
disable: string[];
|
|
30609
|
+
}, {
|
|
30610
|
+
disable: string[];
|
|
30611
|
+
}>]>>>;
|
|
30612
|
+
/**
|
|
30613
|
+
* Return the actual premium charge in Session tool responses. Controls
|
|
30614
|
+
* visibility only; on update, any policy object still re-enables premium
|
|
30615
|
+
* usage on a Session set to `false`.
|
|
30616
|
+
*/
|
|
30617
|
+
returnPremiumCharge: z.ZodOptional<z.ZodBoolean>;
|
|
30618
|
+
}, "strict", z.ZodTypeAny, {
|
|
30619
|
+
tools?: Record<string, {
|
|
30620
|
+
enable: string[];
|
|
30621
|
+
} | {
|
|
30622
|
+
disable: string[];
|
|
30623
|
+
}> | undefined;
|
|
30624
|
+
toolkits?: {
|
|
30625
|
+
disable: string[];
|
|
30626
|
+
} | {
|
|
30627
|
+
enable: string[];
|
|
30628
|
+
} | undefined;
|
|
30629
|
+
returnPremiumCharge?: boolean | undefined;
|
|
30630
|
+
}, {
|
|
30631
|
+
tools?: Record<string, {
|
|
30632
|
+
enable: string[];
|
|
30633
|
+
} | {
|
|
30634
|
+
disable: string[];
|
|
30635
|
+
}> | undefined;
|
|
30636
|
+
toolkits?: {
|
|
30637
|
+
disable: string[];
|
|
30638
|
+
} | {
|
|
30639
|
+
enable: string[];
|
|
30640
|
+
} | undefined;
|
|
30641
|
+
returnPremiumCharge?: boolean | undefined;
|
|
30642
|
+
}>]>;
|
|
30643
|
+
type ToolRouterPremiumUsage = z.infer<typeof ToolRouterPremiumUsageSchema>;
|
|
30568
30644
|
declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
|
|
30569
30645
|
enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30570
30646
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -30580,21 +30656,21 @@ declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
|
|
|
30580
30656
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30581
30657
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30582
30658
|
}, "strict", z.ZodTypeAny, {
|
|
30583
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30584
30659
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30585
|
-
}, {
|
|
30586
30660
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30661
|
+
}, {
|
|
30587
30662
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30663
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30588
30664
|
}>;
|
|
30589
30665
|
declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
30590
30666
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30591
30667
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30592
30668
|
}, "strict", z.ZodTypeAny, {
|
|
30593
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30594
30669
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30595
|
-
}, {
|
|
30596
30670
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30671
|
+
}, {
|
|
30597
30672
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30673
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30598
30674
|
}>]>;
|
|
30599
30675
|
type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
30600
30676
|
/**
|
|
@@ -30638,21 +30714,21 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
30638
30714
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30639
30715
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30640
30716
|
}, "strict", z.ZodTypeAny, {
|
|
30641
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30642
30717
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30643
|
-
}, {
|
|
30644
30718
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30719
|
+
}, {
|
|
30645
30720
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30721
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30646
30722
|
}>]>;
|
|
30647
30723
|
}, "strict", z.ZodTypeAny, {
|
|
30648
30724
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30649
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30650
30725
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30726
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30651
30727
|
};
|
|
30652
30728
|
}, {
|
|
30653
30729
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30654
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30655
30730
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30731
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30656
30732
|
};
|
|
30657
30733
|
}>]>, string[] | {
|
|
30658
30734
|
enable: string[];
|
|
@@ -30660,8 +30736,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
30660
30736
|
disable: string[];
|
|
30661
30737
|
} | {
|
|
30662
30738
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30663
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30664
30739
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30740
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30665
30741
|
};
|
|
30666
30742
|
}, string[] | {
|
|
30667
30743
|
enable: string[];
|
|
@@ -30669,8 +30745,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
30669
30745
|
disable: string[];
|
|
30670
30746
|
} | {
|
|
30671
30747
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30672
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30673
30748
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30749
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30674
30750
|
};
|
|
30675
30751
|
}>;
|
|
30676
30752
|
type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
|
|
@@ -30694,21 +30770,21 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30694
30770
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30695
30771
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30696
30772
|
}, "strict", z.ZodTypeAny, {
|
|
30697
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30698
30773
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30699
|
-
}, {
|
|
30700
30774
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30775
|
+
}, {
|
|
30701
30776
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30777
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30702
30778
|
}>]>;
|
|
30703
30779
|
}, "strict", z.ZodTypeAny, {
|
|
30704
30780
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30705
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30706
30781
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30782
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30707
30783
|
};
|
|
30708
30784
|
}, {
|
|
30709
30785
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30710
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30711
30786
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30787
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30712
30788
|
};
|
|
30713
30789
|
}>]>, string[] | {
|
|
30714
30790
|
enable: string[];
|
|
@@ -30716,8 +30792,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30716
30792
|
disable: string[];
|
|
30717
30793
|
} | {
|
|
30718
30794
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30719
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30720
30795
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30796
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30721
30797
|
};
|
|
30722
30798
|
}, string[] | {
|
|
30723
30799
|
enable: string[];
|
|
@@ -30725,19 +30801,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30725
30801
|
disable: string[];
|
|
30726
30802
|
} | {
|
|
30727
30803
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30728
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30729
30804
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30805
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30730
30806
|
};
|
|
30731
30807
|
}>]>>>>;
|
|
30732
30808
|
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
30733
30809
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30734
30810
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
30735
30811
|
}, "strict", z.ZodTypeAny, {
|
|
30736
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30737
30812
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30738
|
-
}, {
|
|
30739
30813
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30814
|
+
}, {
|
|
30740
30815
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30816
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30741
30817
|
}>]>>>;
|
|
30742
30818
|
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
30743
30819
|
disable: z.ZodArray<z.ZodString, "many">;
|
|
@@ -30752,6 +30828,64 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30752
30828
|
}, {
|
|
30753
30829
|
enable: string[];
|
|
30754
30830
|
}>]>>>;
|
|
30831
|
+
premiumUsage: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
|
30832
|
+
toolkits: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
30833
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
30834
|
+
}, "strict", z.ZodTypeAny, {
|
|
30835
|
+
enable: string[];
|
|
30836
|
+
}, {
|
|
30837
|
+
enable: string[];
|
|
30838
|
+
}>, z.ZodObject<{
|
|
30839
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
30840
|
+
}, "strict", z.ZodTypeAny, {
|
|
30841
|
+
disable: string[];
|
|
30842
|
+
}, {
|
|
30843
|
+
disable: string[];
|
|
30844
|
+
}>]>>;
|
|
30845
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
30846
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
30847
|
+
}, "strict", z.ZodTypeAny, {
|
|
30848
|
+
enable: string[];
|
|
30849
|
+
}, {
|
|
30850
|
+
enable: string[];
|
|
30851
|
+
}>, z.ZodObject<{
|
|
30852
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
30853
|
+
}, "strict", z.ZodTypeAny, {
|
|
30854
|
+
disable: string[];
|
|
30855
|
+
}, {
|
|
30856
|
+
disable: string[];
|
|
30857
|
+
}>]>>>;
|
|
30858
|
+
/**
|
|
30859
|
+
* Return the actual premium charge in Session tool responses. Controls
|
|
30860
|
+
* visibility only; on update, any policy object still re-enables premium
|
|
30861
|
+
* usage on a Session set to `false`.
|
|
30862
|
+
*/
|
|
30863
|
+
returnPremiumCharge: z.ZodOptional<z.ZodBoolean>;
|
|
30864
|
+
}, "strict", z.ZodTypeAny, {
|
|
30865
|
+
tools?: Record<string, {
|
|
30866
|
+
enable: string[];
|
|
30867
|
+
} | {
|
|
30868
|
+
disable: string[];
|
|
30869
|
+
}> | undefined;
|
|
30870
|
+
toolkits?: {
|
|
30871
|
+
disable: string[];
|
|
30872
|
+
} | {
|
|
30873
|
+
enable: string[];
|
|
30874
|
+
} | undefined;
|
|
30875
|
+
returnPremiumCharge?: boolean | undefined;
|
|
30876
|
+
}, {
|
|
30877
|
+
tools?: Record<string, {
|
|
30878
|
+
enable: string[];
|
|
30879
|
+
} | {
|
|
30880
|
+
disable: string[];
|
|
30881
|
+
}> | undefined;
|
|
30882
|
+
toolkits?: {
|
|
30883
|
+
disable: string[];
|
|
30884
|
+
} | {
|
|
30885
|
+
enable: string[];
|
|
30886
|
+
} | undefined;
|
|
30887
|
+
returnPremiumCharge?: boolean | undefined;
|
|
30888
|
+
}>]>>>;
|
|
30755
30889
|
authConfigs: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
30756
30890
|
connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
30757
30891
|
manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -30829,23 +30963,26 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30829
30963
|
}>>;
|
|
30830
30964
|
customTools: z.ZodOptional<z.ZodArray<z.ZodType<CustomTool, z.ZodTypeDef, CustomTool>, "many">>;
|
|
30831
30965
|
customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<CustomToolkit, z.ZodTypeDef, CustomToolkit>, "many">>;
|
|
30966
|
+
sessionConfigId: z.ZodOptional<z.ZodString>;
|
|
30832
30967
|
}, "strip", z.ZodTypeAny, {
|
|
30833
30968
|
assistivePrompt?: {
|
|
30834
30969
|
userTimezone?: string | undefined;
|
|
30835
30970
|
} | undefined;
|
|
30836
30971
|
customTools?: CustomTool[] | undefined;
|
|
30837
30972
|
customToolkits?: CustomToolkit[] | undefined;
|
|
30973
|
+
sessionConfigId?: string | undefined;
|
|
30838
30974
|
}, {
|
|
30839
30975
|
assistivePrompt?: {
|
|
30840
30976
|
userTimezone?: string | undefined;
|
|
30841
30977
|
} | undefined;
|
|
30842
30978
|
customTools?: CustomTool[] | undefined;
|
|
30843
30979
|
customToolkits?: CustomToolkit[] | undefined;
|
|
30980
|
+
sessionConfigId?: string | undefined;
|
|
30844
30981
|
}>>>;
|
|
30845
30982
|
}, "strip", z.ZodTypeAny, {
|
|
30846
30983
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30847
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30848
30984
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30985
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30849
30986
|
} | undefined;
|
|
30850
30987
|
tools?: Record<string, string[] | {
|
|
30851
30988
|
enable: string[];
|
|
@@ -30853,8 +30990,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30853
30990
|
disable: string[];
|
|
30854
30991
|
} | {
|
|
30855
30992
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30856
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30857
30993
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30994
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30858
30995
|
};
|
|
30859
30996
|
}> | undefined;
|
|
30860
30997
|
toolkits?: string[] | {
|
|
@@ -30867,6 +31004,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30867
31004
|
} | undefined;
|
|
30868
31005
|
sessionPreset?: "direct_tools" | undefined;
|
|
30869
31006
|
mcp?: boolean | undefined;
|
|
31007
|
+
premiumUsage?: false | {
|
|
31008
|
+
tools?: Record<string, {
|
|
31009
|
+
enable: string[];
|
|
31010
|
+
} | {
|
|
31011
|
+
disable: string[];
|
|
31012
|
+
}> | undefined;
|
|
31013
|
+
toolkits?: {
|
|
31014
|
+
disable: string[];
|
|
31015
|
+
} | {
|
|
31016
|
+
enable: string[];
|
|
31017
|
+
} | undefined;
|
|
31018
|
+
returnPremiumCharge?: boolean | undefined;
|
|
31019
|
+
} | undefined;
|
|
30870
31020
|
authConfigs?: Record<string, string> | undefined;
|
|
30871
31021
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
30872
31022
|
manageConnections?: boolean | {
|
|
@@ -30897,11 +31047,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30897
31047
|
} | undefined;
|
|
30898
31048
|
customTools?: CustomTool[] | undefined;
|
|
30899
31049
|
customToolkits?: CustomToolkit[] | undefined;
|
|
31050
|
+
sessionConfigId?: string | undefined;
|
|
30900
31051
|
} | undefined;
|
|
30901
31052
|
}, {
|
|
30902
31053
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30903
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30904
31054
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31055
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30905
31056
|
} | undefined;
|
|
30906
31057
|
tools?: Record<string, string[] | {
|
|
30907
31058
|
enable: string[];
|
|
@@ -30909,8 +31060,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30909
31060
|
disable: string[];
|
|
30910
31061
|
} | {
|
|
30911
31062
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30912
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30913
31063
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31064
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30914
31065
|
};
|
|
30915
31066
|
}> | undefined;
|
|
30916
31067
|
toolkits?: string[] | {
|
|
@@ -30923,6 +31074,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30923
31074
|
} | undefined;
|
|
30924
31075
|
sessionPreset?: "direct_tools" | undefined;
|
|
30925
31076
|
mcp?: boolean | undefined;
|
|
31077
|
+
premiumUsage?: false | {
|
|
31078
|
+
tools?: Record<string, {
|
|
31079
|
+
enable: string[];
|
|
31080
|
+
} | {
|
|
31081
|
+
disable: string[];
|
|
31082
|
+
}> | undefined;
|
|
31083
|
+
toolkits?: {
|
|
31084
|
+
disable: string[];
|
|
31085
|
+
} | {
|
|
31086
|
+
enable: string[];
|
|
31087
|
+
} | undefined;
|
|
31088
|
+
returnPremiumCharge?: boolean | undefined;
|
|
31089
|
+
} | undefined;
|
|
30926
31090
|
authConfigs?: Record<string, string> | undefined;
|
|
30927
31091
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
30928
31092
|
manageConnections?: boolean | {
|
|
@@ -30953,11 +31117,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30953
31117
|
} | undefined;
|
|
30954
31118
|
customTools?: CustomTool[] | undefined;
|
|
30955
31119
|
customToolkits?: CustomToolkit[] | undefined;
|
|
31120
|
+
sessionConfigId?: string | undefined;
|
|
30956
31121
|
} | undefined;
|
|
30957
31122
|
}>, {
|
|
30958
31123
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30959
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30960
31124
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31125
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30961
31126
|
} | undefined;
|
|
30962
31127
|
tools?: Record<string, string[] | {
|
|
30963
31128
|
enable: string[];
|
|
@@ -30965,8 +31130,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30965
31130
|
disable: string[];
|
|
30966
31131
|
} | {
|
|
30967
31132
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
30968
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30969
31133
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31134
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
30970
31135
|
};
|
|
30971
31136
|
}> | undefined;
|
|
30972
31137
|
toolkits?: string[] | {
|
|
@@ -30979,6 +31144,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
30979
31144
|
} | undefined;
|
|
30980
31145
|
sessionPreset?: "direct_tools" | undefined;
|
|
30981
31146
|
mcp?: boolean | undefined;
|
|
31147
|
+
premiumUsage?: false | {
|
|
31148
|
+
tools?: Record<string, {
|
|
31149
|
+
enable: string[];
|
|
31150
|
+
} | {
|
|
31151
|
+
disable: string[];
|
|
31152
|
+
}> | undefined;
|
|
31153
|
+
toolkits?: {
|
|
31154
|
+
disable: string[];
|
|
31155
|
+
} | {
|
|
31156
|
+
enable: string[];
|
|
31157
|
+
} | undefined;
|
|
31158
|
+
returnPremiumCharge?: boolean | undefined;
|
|
31159
|
+
} | undefined;
|
|
30982
31160
|
authConfigs?: Record<string, string> | undefined;
|
|
30983
31161
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
30984
31162
|
manageConnections?: boolean | {
|
|
@@ -31009,11 +31187,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31009
31187
|
} | undefined;
|
|
31010
31188
|
customTools?: CustomTool[] | undefined;
|
|
31011
31189
|
customToolkits?: CustomToolkit[] | undefined;
|
|
31190
|
+
sessionConfigId?: string | undefined;
|
|
31012
31191
|
} | undefined;
|
|
31013
31192
|
}, {
|
|
31014
31193
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31015
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31016
31194
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31195
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31017
31196
|
} | undefined;
|
|
31018
31197
|
tools?: Record<string, string[] | {
|
|
31019
31198
|
enable: string[];
|
|
@@ -31021,8 +31200,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31021
31200
|
disable: string[];
|
|
31022
31201
|
} | {
|
|
31023
31202
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31024
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31025
31203
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31204
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31026
31205
|
};
|
|
31027
31206
|
}> | undefined;
|
|
31028
31207
|
toolkits?: string[] | {
|
|
@@ -31035,6 +31214,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31035
31214
|
} | undefined;
|
|
31036
31215
|
sessionPreset?: "direct_tools" | undefined;
|
|
31037
31216
|
mcp?: boolean | undefined;
|
|
31217
|
+
premiumUsage?: false | {
|
|
31218
|
+
tools?: Record<string, {
|
|
31219
|
+
enable: string[];
|
|
31220
|
+
} | {
|
|
31221
|
+
disable: string[];
|
|
31222
|
+
}> | undefined;
|
|
31223
|
+
toolkits?: {
|
|
31224
|
+
disable: string[];
|
|
31225
|
+
} | {
|
|
31226
|
+
enable: string[];
|
|
31227
|
+
} | undefined;
|
|
31228
|
+
returnPremiumCharge?: boolean | undefined;
|
|
31229
|
+
} | undefined;
|
|
31038
31230
|
authConfigs?: Record<string, string> | undefined;
|
|
31039
31231
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
31040
31232
|
manageConnections?: boolean | {
|
|
@@ -31065,11 +31257,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31065
31257
|
} | undefined;
|
|
31066
31258
|
customTools?: CustomTool[] | undefined;
|
|
31067
31259
|
customToolkits?: CustomToolkit[] | undefined;
|
|
31260
|
+
sessionConfigId?: string | undefined;
|
|
31068
31261
|
} | undefined;
|
|
31069
31262
|
}>, {
|
|
31070
31263
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31071
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31072
31264
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31265
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31073
31266
|
} | undefined;
|
|
31074
31267
|
tools?: Record<string, string[] | {
|
|
31075
31268
|
enable: string[];
|
|
@@ -31077,8 +31270,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31077
31270
|
disable: string[];
|
|
31078
31271
|
} | {
|
|
31079
31272
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31080
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31081
31273
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31274
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31082
31275
|
};
|
|
31083
31276
|
}> | undefined;
|
|
31084
31277
|
toolkits?: string[] | {
|
|
@@ -31091,6 +31284,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31091
31284
|
} | undefined;
|
|
31092
31285
|
sessionPreset?: "direct_tools" | undefined;
|
|
31093
31286
|
mcp?: boolean | undefined;
|
|
31287
|
+
premiumUsage?: false | {
|
|
31288
|
+
tools?: Record<string, {
|
|
31289
|
+
enable: string[];
|
|
31290
|
+
} | {
|
|
31291
|
+
disable: string[];
|
|
31292
|
+
}> | undefined;
|
|
31293
|
+
toolkits?: {
|
|
31294
|
+
disable: string[];
|
|
31295
|
+
} | {
|
|
31296
|
+
enable: string[];
|
|
31297
|
+
} | undefined;
|
|
31298
|
+
returnPremiumCharge?: boolean | undefined;
|
|
31299
|
+
} | undefined;
|
|
31094
31300
|
authConfigs?: Record<string, string> | undefined;
|
|
31095
31301
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
31096
31302
|
manageConnections?: boolean | {
|
|
@@ -31121,6 +31327,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31121
31327
|
} | undefined;
|
|
31122
31328
|
customTools?: CustomTool[] | undefined;
|
|
31123
31329
|
customToolkits?: CustomToolkit[] | undefined;
|
|
31330
|
+
sessionConfigId?: string | undefined;
|
|
31124
31331
|
} | undefined;
|
|
31125
31332
|
}, unknown>;
|
|
31126
31333
|
/**
|
|
@@ -31132,6 +31339,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31132
31339
|
* @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
|
|
31133
31340
|
* @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
|
|
31134
31341
|
* @param {Record<string, string | string[]>} connectedAccounts - The connected accounts to use in the tool router session. A single string is coerced to a single-element array before being sent to the backend.
|
|
31342
|
+
* @param {ToolRouterPremiumUsage} [premiumUsage] - Experimental premium usage policy. The project must allow premium usage.
|
|
31135
31343
|
* @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.
|
|
31136
31344
|
* @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
|
|
31137
31345
|
* @param {string} [manageConnections.callbackUrl] - The callback url to use in the tool router session
|
|
@@ -31147,8 +31355,29 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
31147
31355
|
* @param {boolean} [multiAccount.requireExplicitSelection] - When true, require explicit account selection when multiple accounts are connected
|
|
31148
31356
|
* @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
|
|
31149
31357
|
* @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
|
|
31358
|
+
* @param {object} [experimental] - Experimental features configuration. Not stable; may change or be removed.
|
|
31359
|
+
* @param {string} [experimental.sessionConfigId] - ID of a saved Session config (`sc_…`) to apply at creation; see `composio.sessionConfigs`. Cannot be combined with `toolkits`, `tools`, `tags`, `experimental.customTools` or `experimental.customToolkits`. Per-session fields such as `authConfigs`, `connectedAccounts`, `manageConnections`, `sandbox`, `multiAccount` and `preload` stay allowed.
|
|
31150
31360
|
*/
|
|
31151
|
-
type ToolRouterCreateSessionConfig =
|
|
31361
|
+
type ToolRouterCreateSessionConfig = InlineAccessCreateSessionConfig | SavedConfigCreateSessionConfig;
|
|
31362
|
+
type ParsedCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
31363
|
+
type ParsedCreateSessionExperimental = NonNullable<ParsedCreateSessionConfig['experimental']>;
|
|
31364
|
+
/** Create input that sets access inline and applies no saved Session config. */
|
|
31365
|
+
type InlineAccessCreateSessionConfig = Omit<ParsedCreateSessionConfig, 'experimental'> & {
|
|
31366
|
+
experimental?: Omit<ParsedCreateSessionExperimental, 'sessionConfigId'> & {
|
|
31367
|
+
sessionConfigId?: never;
|
|
31368
|
+
};
|
|
31369
|
+
};
|
|
31370
|
+
/** Create input that takes its access policy from a saved Session config. */
|
|
31371
|
+
type SavedConfigCreateSessionConfig = Omit<ParsedCreateSessionConfig, 'toolkits' | 'tools' | 'tags' | 'experimental'> & {
|
|
31372
|
+
toolkits?: never;
|
|
31373
|
+
tools?: never;
|
|
31374
|
+
tags?: never;
|
|
31375
|
+
experimental: Omit<ParsedCreateSessionExperimental, 'sessionConfigId' | 'customTools' | 'customToolkits'> & {
|
|
31376
|
+
sessionConfigId: string;
|
|
31377
|
+
customTools?: never;
|
|
31378
|
+
customToolkits?: never;
|
|
31379
|
+
};
|
|
31380
|
+
};
|
|
31152
31381
|
declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
31153
31382
|
slug: z.ZodString;
|
|
31154
31383
|
name: z.ZodString;
|
|
@@ -31540,6 +31769,14 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
31540
31769
|
statusMessage: z.ZodString;
|
|
31541
31770
|
connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31542
31771
|
currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31772
|
+
/** Present when the toolkit runs on a Composio hosted account; only these tools run on it. */
|
|
31773
|
+
hostedAccount: z.ZodOptional<z.ZodObject<{
|
|
31774
|
+
allowedToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
31775
|
+
}, "strip", z.ZodTypeAny, {
|
|
31776
|
+
allowedToolSlugs: string[];
|
|
31777
|
+
}, {
|
|
31778
|
+
allowedToolSlugs: string[];
|
|
31779
|
+
}>>;
|
|
31543
31780
|
}, "strip", z.ZodTypeAny, {
|
|
31544
31781
|
description: string;
|
|
31545
31782
|
toolkit: string;
|
|
@@ -31547,6 +31784,9 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
31547
31784
|
statusMessage: string;
|
|
31548
31785
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
31549
31786
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
31787
|
+
hostedAccount?: {
|
|
31788
|
+
allowedToolSlugs: string[];
|
|
31789
|
+
} | undefined;
|
|
31550
31790
|
}, {
|
|
31551
31791
|
description: string;
|
|
31552
31792
|
toolkit: string;
|
|
@@ -31554,6 +31794,9 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
31554
31794
|
statusMessage: string;
|
|
31555
31795
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
31556
31796
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
31797
|
+
hostedAccount?: {
|
|
31798
|
+
allowedToolSlugs: string[];
|
|
31799
|
+
} | undefined;
|
|
31557
31800
|
}>, "many">;
|
|
31558
31801
|
nextStepsGuidance: z.ZodArray<z.ZodString, "many">;
|
|
31559
31802
|
session: z.ZodObject<{
|
|
@@ -31625,6 +31868,9 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
31625
31868
|
statusMessage: string;
|
|
31626
31869
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
31627
31870
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
31871
|
+
hostedAccount?: {
|
|
31872
|
+
allowedToolSlugs: string[];
|
|
31873
|
+
} | undefined;
|
|
31628
31874
|
}[];
|
|
31629
31875
|
nextStepsGuidance: string[];
|
|
31630
31876
|
session: {
|
|
@@ -31680,6 +31926,9 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
31680
31926
|
statusMessage: string;
|
|
31681
31927
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
31682
31928
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
31929
|
+
hostedAccount?: {
|
|
31930
|
+
allowedToolSlugs: string[];
|
|
31931
|
+
} | undefined;
|
|
31683
31932
|
}[];
|
|
31684
31933
|
nextStepsGuidance: string[];
|
|
31685
31934
|
session: {
|
|
@@ -31698,14 +31947,18 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
|
|
|
31698
31947
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31699
31948
|
error: z.ZodNullable<z.ZodString>;
|
|
31700
31949
|
logId: z.ZodString;
|
|
31950
|
+
/** Actual premium usage charge when the Session opts into returning it. */
|
|
31951
|
+
premiumCharge: z.ZodOptional<z.ZodUnknown>;
|
|
31701
31952
|
}, "strip", z.ZodTypeAny, {
|
|
31702
31953
|
data: Record<string, unknown>;
|
|
31703
31954
|
error: string | null;
|
|
31704
31955
|
logId: string;
|
|
31956
|
+
premiumCharge?: unknown;
|
|
31705
31957
|
}, {
|
|
31706
31958
|
data: Record<string, unknown>;
|
|
31707
31959
|
error: string | null;
|
|
31708
31960
|
logId: string;
|
|
31961
|
+
premiumCharge?: unknown;
|
|
31709
31962
|
}>;
|
|
31710
31963
|
type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
31711
31964
|
interface ToolRouterSessionProxyExecuteResponse {
|
|
@@ -31737,6 +31990,16 @@ interface SessionExperimental {
|
|
|
31737
31990
|
* File mount operations (list, upload, download, delete) for the session's virtual filesystem.
|
|
31738
31991
|
*/
|
|
31739
31992
|
files: ToolRouterSessionFilesMount;
|
|
31993
|
+
/**
|
|
31994
|
+
* The last saved Session config applied to this session, set from the
|
|
31995
|
+
* create, `use()` and `update()` responses. Later inline access updates
|
|
31996
|
+
* keep it. It reflects the last response this object saw: an update from
|
|
31997
|
+
* another process leaves it stale until `sessions.use()`.
|
|
31998
|
+
* @experimental
|
|
31999
|
+
*/
|
|
32000
|
+
sourceSessionConfig?: {
|
|
32001
|
+
id: string;
|
|
32002
|
+
};
|
|
31740
32003
|
}
|
|
31741
32004
|
type ToolRouterSessionSearchFn = (params: {
|
|
31742
32005
|
query: string;
|
|
@@ -31868,6 +32131,7 @@ declare const ToolRouterUpdateExperimentalSchema: z.ZodObject<{
|
|
|
31868
32131
|
}>>>;
|
|
31869
32132
|
sessionConfigId: z.ZodOptional<z.ZodString>;
|
|
31870
32133
|
}, "strict", z.ZodTypeAny, {
|
|
32134
|
+
sessionConfigId?: string | undefined;
|
|
31871
32135
|
permissions?: {
|
|
31872
32136
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
31873
32137
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -31877,8 +32141,8 @@ declare const ToolRouterUpdateExperimentalSchema: z.ZodObject<{
|
|
|
31877
32141
|
submitFeedback?: {
|
|
31878
32142
|
enable: boolean;
|
|
31879
32143
|
} | null | undefined;
|
|
31880
|
-
sessionConfigId?: string | undefined;
|
|
31881
32144
|
}, {
|
|
32145
|
+
sessionConfigId?: string | undefined;
|
|
31882
32146
|
permissions?: {
|
|
31883
32147
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
31884
32148
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -31888,7 +32152,6 @@ declare const ToolRouterUpdateExperimentalSchema: z.ZodObject<{
|
|
|
31888
32152
|
submitFeedback?: {
|
|
31889
32153
|
enable: boolean;
|
|
31890
32154
|
} | null | undefined;
|
|
31891
|
-
sessionConfigId?: string | undefined;
|
|
31892
32155
|
}>;
|
|
31893
32156
|
type ToolRouterUpdateExperimentalConfig = z.infer<typeof ToolRouterUpdateExperimentalSchema>;
|
|
31894
32157
|
/**
|
|
@@ -31898,6 +32161,64 @@ type ToolRouterUpdateExperimentalConfig = z.infer<typeof ToolRouterUpdateExperim
|
|
|
31898
32161
|
* `toolkits: []`, which denies every app toolkit).
|
|
31899
32162
|
*/
|
|
31900
32163
|
declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
32164
|
+
premiumUsage: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
|
32165
|
+
toolkits: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
32166
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
32167
|
+
}, "strict", z.ZodTypeAny, {
|
|
32168
|
+
enable: string[];
|
|
32169
|
+
}, {
|
|
32170
|
+
enable: string[];
|
|
32171
|
+
}>, z.ZodObject<{
|
|
32172
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
32173
|
+
}, "strict", z.ZodTypeAny, {
|
|
32174
|
+
disable: string[];
|
|
32175
|
+
}, {
|
|
32176
|
+
disable: string[];
|
|
32177
|
+
}>]>>;
|
|
32178
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
32179
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
32180
|
+
}, "strict", z.ZodTypeAny, {
|
|
32181
|
+
enable: string[];
|
|
32182
|
+
}, {
|
|
32183
|
+
enable: string[];
|
|
32184
|
+
}>, z.ZodObject<{
|
|
32185
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
32186
|
+
}, "strict", z.ZodTypeAny, {
|
|
32187
|
+
disable: string[];
|
|
32188
|
+
}, {
|
|
32189
|
+
disable: string[];
|
|
32190
|
+
}>]>>>;
|
|
32191
|
+
/**
|
|
32192
|
+
* Return the actual premium charge in Session tool responses. Controls
|
|
32193
|
+
* visibility only; on update, any policy object still re-enables premium
|
|
32194
|
+
* usage on a Session set to `false`.
|
|
32195
|
+
*/
|
|
32196
|
+
returnPremiumCharge: z.ZodOptional<z.ZodBoolean>;
|
|
32197
|
+
}, "strict", z.ZodTypeAny, {
|
|
32198
|
+
tools?: Record<string, {
|
|
32199
|
+
enable: string[];
|
|
32200
|
+
} | {
|
|
32201
|
+
disable: string[];
|
|
32202
|
+
}> | undefined;
|
|
32203
|
+
toolkits?: {
|
|
32204
|
+
disable: string[];
|
|
32205
|
+
} | {
|
|
32206
|
+
enable: string[];
|
|
32207
|
+
} | undefined;
|
|
32208
|
+
returnPremiumCharge?: boolean | undefined;
|
|
32209
|
+
}, {
|
|
32210
|
+
tools?: Record<string, {
|
|
32211
|
+
enable: string[];
|
|
32212
|
+
} | {
|
|
32213
|
+
disable: string[];
|
|
32214
|
+
}> | undefined;
|
|
32215
|
+
toolkits?: {
|
|
32216
|
+
disable: string[];
|
|
32217
|
+
} | {
|
|
32218
|
+
enable: string[];
|
|
32219
|
+
} | undefined;
|
|
32220
|
+
returnPremiumCharge?: boolean | undefined;
|
|
32221
|
+
}>]>>>;
|
|
31901
32222
|
toolkits: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
31902
32223
|
disable: z.ZodArray<z.ZodString, "many">;
|
|
31903
32224
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -31928,21 +32249,21 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
31928
32249
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31929
32250
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31930
32251
|
}, "strict", z.ZodTypeAny, {
|
|
31931
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31932
32252
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31933
|
-
}, {
|
|
31934
32253
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32254
|
+
}, {
|
|
31935
32255
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32256
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31936
32257
|
}>]>;
|
|
31937
32258
|
}, "strict", z.ZodTypeAny, {
|
|
31938
32259
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31939
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31940
32260
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32261
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31941
32262
|
};
|
|
31942
32263
|
}, {
|
|
31943
32264
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31944
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31945
32265
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32266
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31946
32267
|
};
|
|
31947
32268
|
}>]>, string[] | {
|
|
31948
32269
|
enable: string[];
|
|
@@ -31950,8 +32271,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
31950
32271
|
disable: string[];
|
|
31951
32272
|
} | {
|
|
31952
32273
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31953
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31954
32274
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32275
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31955
32276
|
};
|
|
31956
32277
|
}, string[] | {
|
|
31957
32278
|
enable: string[];
|
|
@@ -31959,19 +32280,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
31959
32280
|
disable: string[];
|
|
31960
32281
|
} | {
|
|
31961
32282
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31962
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31963
32283
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32284
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31964
32285
|
};
|
|
31965
32286
|
}>]>>>>>;
|
|
31966
32287
|
tags: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
31967
32288
|
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31968
32289
|
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31969
32290
|
}, "strict", z.ZodTypeAny, {
|
|
31970
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31971
32291
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31972
|
-
}, {
|
|
31973
32292
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32293
|
+
}, {
|
|
31974
32294
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32295
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31975
32296
|
}>]>>>>;
|
|
31976
32297
|
authConfigs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
|
|
31977
32298
|
connectedAccounts: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>>;
|
|
@@ -32079,6 +32400,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32079
32400
|
}>>>;
|
|
32080
32401
|
sessionConfigId: z.ZodOptional<z.ZodString>;
|
|
32081
32402
|
}, "strict", z.ZodTypeAny, {
|
|
32403
|
+
sessionConfigId?: string | undefined;
|
|
32082
32404
|
permissions?: {
|
|
32083
32405
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
32084
32406
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -32088,8 +32410,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32088
32410
|
submitFeedback?: {
|
|
32089
32411
|
enable: boolean;
|
|
32090
32412
|
} | null | undefined;
|
|
32091
|
-
sessionConfigId?: string | undefined;
|
|
32092
32413
|
}, {
|
|
32414
|
+
sessionConfigId?: string | undefined;
|
|
32093
32415
|
permissions?: {
|
|
32094
32416
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
32095
32417
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -32099,13 +32421,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32099
32421
|
submitFeedback?: {
|
|
32100
32422
|
enable: boolean;
|
|
32101
32423
|
} | null | undefined;
|
|
32102
|
-
sessionConfigId?: string | undefined;
|
|
32103
32424
|
}>>>>;
|
|
32104
32425
|
expectedConfigVersion: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>>;
|
|
32105
32426
|
}, "strip", z.ZodTypeAny, {
|
|
32106
32427
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32107
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32108
32428
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32429
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32109
32430
|
} | null | undefined;
|
|
32110
32431
|
tools?: Record<string, string[] | {
|
|
32111
32432
|
enable: string[];
|
|
@@ -32113,8 +32434,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32113
32434
|
disable: string[];
|
|
32114
32435
|
} | {
|
|
32115
32436
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32116
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32117
32437
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32438
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32118
32439
|
};
|
|
32119
32440
|
}> | null | undefined;
|
|
32120
32441
|
toolkits?: string[] | {
|
|
@@ -32128,6 +32449,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32128
32449
|
preload?: {
|
|
32129
32450
|
tools?: string[] | "all" | undefined;
|
|
32130
32451
|
} | null | undefined;
|
|
32452
|
+
premiumUsage?: false | {
|
|
32453
|
+
tools?: Record<string, {
|
|
32454
|
+
enable: string[];
|
|
32455
|
+
} | {
|
|
32456
|
+
disable: string[];
|
|
32457
|
+
}> | undefined;
|
|
32458
|
+
toolkits?: {
|
|
32459
|
+
disable: string[];
|
|
32460
|
+
} | {
|
|
32461
|
+
enable: string[];
|
|
32462
|
+
} | undefined;
|
|
32463
|
+
returnPremiumCharge?: boolean | undefined;
|
|
32464
|
+
} | undefined;
|
|
32131
32465
|
authConfigs?: Record<string, string> | null | undefined;
|
|
32132
32466
|
connectedAccounts?: Record<string, string[]> | null | undefined;
|
|
32133
32467
|
manageConnections?: boolean | {
|
|
@@ -32154,6 +32488,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32154
32488
|
requireExplicitSelection?: boolean | undefined;
|
|
32155
32489
|
} | null | undefined;
|
|
32156
32490
|
experimental?: {
|
|
32491
|
+
sessionConfigId?: string | undefined;
|
|
32157
32492
|
permissions?: {
|
|
32158
32493
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
32159
32494
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -32163,7 +32498,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32163
32498
|
submitFeedback?: {
|
|
32164
32499
|
enable: boolean;
|
|
32165
32500
|
} | null | undefined;
|
|
32166
|
-
sessionConfigId?: string | undefined;
|
|
32167
32501
|
} | null | undefined;
|
|
32168
32502
|
execute?: {
|
|
32169
32503
|
enableMultiExecute?: boolean | undefined;
|
|
@@ -32171,8 +32505,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32171
32505
|
expectedConfigVersion?: number | false | undefined;
|
|
32172
32506
|
}, {
|
|
32173
32507
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32174
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32175
32508
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32509
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32176
32510
|
} | null | undefined;
|
|
32177
32511
|
tools?: Record<string, string[] | {
|
|
32178
32512
|
enable: string[];
|
|
@@ -32180,8 +32514,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32180
32514
|
disable: string[];
|
|
32181
32515
|
} | {
|
|
32182
32516
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32183
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32184
32517
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32518
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32185
32519
|
};
|
|
32186
32520
|
}> | null | undefined;
|
|
32187
32521
|
toolkits?: string[] | {
|
|
@@ -32195,6 +32529,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32195
32529
|
preload?: {
|
|
32196
32530
|
tools?: string[] | "all" | undefined;
|
|
32197
32531
|
} | null | undefined;
|
|
32532
|
+
premiumUsage?: false | {
|
|
32533
|
+
tools?: Record<string, {
|
|
32534
|
+
enable: string[];
|
|
32535
|
+
} | {
|
|
32536
|
+
disable: string[];
|
|
32537
|
+
}> | undefined;
|
|
32538
|
+
toolkits?: {
|
|
32539
|
+
disable: string[];
|
|
32540
|
+
} | {
|
|
32541
|
+
enable: string[];
|
|
32542
|
+
} | undefined;
|
|
32543
|
+
returnPremiumCharge?: boolean | undefined;
|
|
32544
|
+
} | undefined;
|
|
32198
32545
|
authConfigs?: Record<string, string> | null | undefined;
|
|
32199
32546
|
connectedAccounts?: Record<string, string | string[]> | null | undefined;
|
|
32200
32547
|
manageConnections?: boolean | {
|
|
@@ -32221,6 +32568,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32221
32568
|
requireExplicitSelection?: boolean | undefined;
|
|
32222
32569
|
} | null | undefined;
|
|
32223
32570
|
experimental?: {
|
|
32571
|
+
sessionConfigId?: string | undefined;
|
|
32224
32572
|
permissions?: {
|
|
32225
32573
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
32226
32574
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -32230,7 +32578,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32230
32578
|
submitFeedback?: {
|
|
32231
32579
|
enable: boolean;
|
|
32232
32580
|
} | null | undefined;
|
|
32233
|
-
sessionConfigId?: string | undefined;
|
|
32234
32581
|
} | null | undefined;
|
|
32235
32582
|
execute?: {
|
|
32236
32583
|
enableMultiExecute?: boolean | undefined;
|
|
@@ -32238,8 +32585,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32238
32585
|
expectedConfigVersion?: number | false | undefined;
|
|
32239
32586
|
}>, {
|
|
32240
32587
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32241
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32242
32588
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32589
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32243
32590
|
} | null | undefined;
|
|
32244
32591
|
tools?: Record<string, string[] | {
|
|
32245
32592
|
enable: string[];
|
|
@@ -32247,8 +32594,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32247
32594
|
disable: string[];
|
|
32248
32595
|
} | {
|
|
32249
32596
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32250
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32251
32597
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32598
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32252
32599
|
};
|
|
32253
32600
|
}> | null | undefined;
|
|
32254
32601
|
toolkits?: string[] | {
|
|
@@ -32262,6 +32609,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32262
32609
|
preload?: {
|
|
32263
32610
|
tools?: string[] | "all" | undefined;
|
|
32264
32611
|
} | null | undefined;
|
|
32612
|
+
premiumUsage?: false | {
|
|
32613
|
+
tools?: Record<string, {
|
|
32614
|
+
enable: string[];
|
|
32615
|
+
} | {
|
|
32616
|
+
disable: string[];
|
|
32617
|
+
}> | undefined;
|
|
32618
|
+
toolkits?: {
|
|
32619
|
+
disable: string[];
|
|
32620
|
+
} | {
|
|
32621
|
+
enable: string[];
|
|
32622
|
+
} | undefined;
|
|
32623
|
+
returnPremiumCharge?: boolean | undefined;
|
|
32624
|
+
} | undefined;
|
|
32265
32625
|
authConfigs?: Record<string, string> | null | undefined;
|
|
32266
32626
|
connectedAccounts?: Record<string, string[]> | null | undefined;
|
|
32267
32627
|
manageConnections?: boolean | {
|
|
@@ -32288,6 +32648,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32288
32648
|
requireExplicitSelection?: boolean | undefined;
|
|
32289
32649
|
} | null | undefined;
|
|
32290
32650
|
experimental?: {
|
|
32651
|
+
sessionConfigId?: string | undefined;
|
|
32291
32652
|
permissions?: {
|
|
32292
32653
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
32293
32654
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -32297,7 +32658,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32297
32658
|
submitFeedback?: {
|
|
32298
32659
|
enable: boolean;
|
|
32299
32660
|
} | null | undefined;
|
|
32300
|
-
sessionConfigId?: string | undefined;
|
|
32301
32661
|
} | null | undefined;
|
|
32302
32662
|
execute?: {
|
|
32303
32663
|
enableMultiExecute?: boolean | undefined;
|
|
@@ -32305,8 +32665,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32305
32665
|
expectedConfigVersion?: number | false | undefined;
|
|
32306
32666
|
}, {
|
|
32307
32667
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32308
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32309
32668
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32669
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32310
32670
|
} | null | undefined;
|
|
32311
32671
|
tools?: Record<string, string[] | {
|
|
32312
32672
|
enable: string[];
|
|
@@ -32314,8 +32674,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32314
32674
|
disable: string[];
|
|
32315
32675
|
} | {
|
|
32316
32676
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32317
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32318
32677
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32678
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
32319
32679
|
};
|
|
32320
32680
|
}> | null | undefined;
|
|
32321
32681
|
toolkits?: string[] | {
|
|
@@ -32329,6 +32689,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32329
32689
|
preload?: {
|
|
32330
32690
|
tools?: string[] | "all" | undefined;
|
|
32331
32691
|
} | null | undefined;
|
|
32692
|
+
premiumUsage?: false | {
|
|
32693
|
+
tools?: Record<string, {
|
|
32694
|
+
enable: string[];
|
|
32695
|
+
} | {
|
|
32696
|
+
disable: string[];
|
|
32697
|
+
}> | undefined;
|
|
32698
|
+
toolkits?: {
|
|
32699
|
+
disable: string[];
|
|
32700
|
+
} | {
|
|
32701
|
+
enable: string[];
|
|
32702
|
+
} | undefined;
|
|
32703
|
+
returnPremiumCharge?: boolean | undefined;
|
|
32704
|
+
} | undefined;
|
|
32332
32705
|
authConfigs?: Record<string, string> | null | undefined;
|
|
32333
32706
|
connectedAccounts?: Record<string, string | string[]> | null | undefined;
|
|
32334
32707
|
manageConnections?: boolean | {
|
|
@@ -32355,6 +32728,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32355
32728
|
requireExplicitSelection?: boolean | undefined;
|
|
32356
32729
|
} | null | undefined;
|
|
32357
32730
|
experimental?: {
|
|
32731
|
+
sessionConfigId?: string | undefined;
|
|
32358
32732
|
permissions?: {
|
|
32359
32733
|
default: "allow_all" | "ask_every_call" | "ask_once_per_session";
|
|
32360
32734
|
overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
|
|
@@ -32364,14 +32738,35 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
32364
32738
|
submitFeedback?: {
|
|
32365
32739
|
enable: boolean;
|
|
32366
32740
|
} | null | undefined;
|
|
32367
|
-
sessionConfigId?: string | undefined;
|
|
32368
32741
|
} | null | undefined;
|
|
32369
32742
|
execute?: {
|
|
32370
32743
|
enableMultiExecute?: boolean | undefined;
|
|
32371
32744
|
} | null | undefined;
|
|
32372
32745
|
expectedConfigVersion?: number | false | undefined;
|
|
32373
32746
|
}>;
|
|
32374
|
-
|
|
32747
|
+
/**
|
|
32748
|
+
* Options for `session.update()`. `experimental.sessionConfigId` applies a
|
|
32749
|
+
* saved Session config and cannot be combined with `toolkits`, `tools` or
|
|
32750
|
+
* `tags` (including `null`).
|
|
32751
|
+
*/
|
|
32752
|
+
type ToolRouterUpdateSessionConfig = InlineAccessUpdateSessionConfig | SavedConfigUpdateSessionConfig;
|
|
32753
|
+
type ParsedUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
32754
|
+
type ParsedUpdateSessionExperimental = NonNullable<ParsedUpdateSessionConfig['experimental']>;
|
|
32755
|
+
/** Update input that sets access inline and applies no saved Session config. */
|
|
32756
|
+
type InlineAccessUpdateSessionConfig = Omit<ParsedUpdateSessionConfig, 'experimental'> & {
|
|
32757
|
+
experimental?: (Omit<ParsedUpdateSessionExperimental, 'sessionConfigId'> & {
|
|
32758
|
+
sessionConfigId?: never;
|
|
32759
|
+
}) | null;
|
|
32760
|
+
};
|
|
32761
|
+
/** Update input that applies a saved Session config. */
|
|
32762
|
+
type SavedConfigUpdateSessionConfig = Omit<ParsedUpdateSessionConfig, 'toolkits' | 'tools' | 'tags' | 'experimental'> & {
|
|
32763
|
+
toolkits?: never;
|
|
32764
|
+
tools?: never;
|
|
32765
|
+
tags?: never;
|
|
32766
|
+
experimental: Omit<ParsedUpdateSessionExperimental, 'sessionConfigId'> & {
|
|
32767
|
+
sessionConfigId: string;
|
|
32768
|
+
};
|
|
32769
|
+
};
|
|
32375
32770
|
type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<ToolRouterSessionConfig>;
|
|
32376
32771
|
declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
|
|
32377
32772
|
sessionId: z.ZodString;
|
|
@@ -32502,9 +32897,9 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
32502
32897
|
sessionId: string;
|
|
32503
32898
|
mcp: ToolRouterMCPServerConfig;
|
|
32504
32899
|
/**
|
|
32505
|
-
*
|
|
32506
|
-
*
|
|
32507
|
-
* `
|
|
32900
|
+
* The session's current configuration (policy snapshot and runtime
|
|
32901
|
+
* settings). Refreshed in place by `update()`. For saved, reusable Session
|
|
32902
|
+
* configs, see `composio.sessionConfigs`.
|
|
32508
32903
|
*/
|
|
32509
32904
|
config: ToolRouterSessionConfig;
|
|
32510
32905
|
/** Stored preload configuration for this session. */
|
|
@@ -32756,4 +33151,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
32756
33151
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
32757
33152
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
32758
33153
|
//#endregion
|
|
32759
|
-
export { ToolRouterSessionEnsureConnectedOptions as $, BeforeFileUploadSource as $i, UpdateConnectedAccountParamsSchema as $n, McpUpdateResponseSchema as $r, ToolRouterSessionFilesMountListOptionsSchema as $t, SessionProxyExecuteParams as A, ToolProxyParamsSchema as Aa, Oauth1InactiveConnectionDataSchema as Ai, ConnectedAccountRevokedToken as An, MCPServerCreateResponse as Ar, ToolRouterToolsParamSchema as At, ToolRouterCreateSessionConfigSchema as B, ToolkitVersionSchema as Ba, Oauth2ExpiredConnectionDataSchema as Bi, CreateConnectedAccountLinkOptionsSchema as Bn, MCPToolkitConfigSchema as Br, ToolkitConnectionsDetailsSchema as Bt, MCPServerType as C, ToolExecuteResponseSchema as Ca, Oauth1ConnectionData as Ci, ConnectedAccountListResponseSchema as Cn, MCPGenerateURLParamsSchema as Cr, ToolRouterToolkitsEnabledConfigSchema as Ct, Session as D, ToolListResponse as Da, Oauth1FailedConnectionData as Di, ConnectedAccountRetrieveResponseSchema as Dn, MCPMultiAppServer as Dr, ToolRouterToolkitsParamSchema as Dt, SandboxSizeSchema as E, ToolListParamsSchema as Ea, Oauth1ExpiredConnectionDataSchema as Ei, ConnectedAccountRetrieveResponse as En, MCPInstanceParams as Er, ToolRouterToolkitsOptionsSchema as Et, ToolRouterConfigTags as F, ToolkitLatestVersionSchema as Fa, Oauth2ActiveConnectionData as Fi, ConnectedAccountStatuses as Fn, MCPServerUpdateParams as Fr, ToolRouterUpdateSessionConfig as Ft, ToolRouterSandboxConfigSchema as G, Oauth2InitiatedConnectionData as Gi, CreateConnectedAccountParams as Gn, McpListResponseSchema as Gr, FileListResponseSchema as Gt, ToolRouterMCPServerConfigSchema as H, ToolkitVersionsSchema as Ha, Oauth2FailedConnectionDataSchema as Hi, CreateConnectedAccountLinkResponseSchema as Hn, McpDeleteResponse as Hr, FileDeleteResponse as Ht, ToolRouterConfigTagsSchema as I, ToolkitSchema as Ia, Oauth2ActiveConnectionDataSchema as Ii, ConnectedAccountType as In, MCPServerUpdateParamsSchema as Ir, ToolRouterUpdateSessionConfigSchema as It, ToolRouterSessionConfigHistoryItem as J, Oauth2InitiatingConnectionDataSchema as Ji, CreateConnectedAccountResponseSchema as Jn, McpServerCreateResponse as Jr, ToolRouterSessionFilesMountDeleteOptions as Jt, ToolRouterSessionConfig as K, Oauth2InitiatedConnectionDataSchema as Ki, CreateConnectedAccountParamsSchema as Kn, McpRetrieveResponse as Kr, RemoteFileData as Kt, ToolRouterConfigTools as L, ToolkitVersion as La, Oauth2ConnectionData as Li, ConnectedAccountTypeSchema as Ln, MCPSingleAppServer as Lr, ToolkitConnectionState as Lt, SessionWithoutMcp as M, ToolSchema as Ma, Oauth1InitiatedConnectionDataSchema as Mi, ConnectedAccountStatus as Mn, MCPServerListResponse as Mr, ToolRouterUpdateExperimentalSchema as Mt, ToolRouterAuthorizeFn as N, Toolkit as Na, Oauth1InitiatingConnectionData as Ni, ConnectedAccountStatusEnum as Nn, MCPServerListResponseSchema as Nr, ToolRouterUpdateManageConnectionsConfig as Nt, SessionExperimental as O, ToolListResponseSchema as Oa, Oauth1FailedConnectionDataSchema as Oi, ConnectedAccountRevokeResponse as On, MCPMultiAppServerSchema as Or, ToolRouterToolsFn as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolkitLatestVersion as Pa, Oauth1InitiatingConnectionDataSchema as Pi, ConnectedAccountStatusSchema as Pn, MCPServerSchema as Pr, ToolRouterUpdateManageConnectionsSchema as Pt, ToolRouterSessionEnsureConnectedFn as Q, AgenticToolOptions as Qi, UpdateConnectedAccountParams as Qn, McpUpdateResponse as Qr, ToolRouterSessionFilesMountListOptions as Qt, ToolRouterConfigToolsSchema as R, ToolkitVersionParam as Ra, Oauth2ConnectionDataSchema as Ri, ConnectedAccountTypes as Rn, MCPSingleAppServerSchema as Rr, ToolkitConnectionStateSchema as Rt, SessionContext as S, ToolExecuteResponse as Sa, Oauth1ActiveConnectionDataSchema as Si, ConnectedAccountListResponseItem as Sn, MCPGenerateURLParams as Sr, ToolRouterToolkitsDisabledConfigSchema as St, SandboxSize as T, ToolListParams as Ta, Oauth1ExpiredConnectionData as Ti, ConnectedAccountRefreshOptionsSchema as Tn, MCPGetServerParamsSchema as Tr, ToolRouterToolkitsOptions as Tt, ToolRouterManageConnectionsConfigSchema as U, Oauth2InactiveConnectionData as Ui, CreateConnectedAccountOptions as Un, McpDeleteResponseSchema as Ur, FileDeleteResponseSchema as Ut, ToolRouterMCPServerConfig as V, ToolkitVersions as Va, Oauth2FailedConnectionData as Vi, CreateConnectedAccountLinkResponse as Vn, MCPToolkitConfigsArraySchema as Vr, RemoteFile as Vt, ToolRouterSandboxConfig as W, Oauth2InactiveConnectionDataSchema as Wi, CreateConnectedAccountOptionsSchema as Wn, McpListResponse as Wr, FileListResponse as Wt, ToolRouterSessionDeleteResponse as X, Oauth2RevokedConnectionDataSchema as Xi, UpdateConnectedAccountAclParams as Xn, McpServerUrlInfo as Xr, ToolRouterSessionFilesMountDownloadOptions as Xt, ToolRouterSessionDeleteFn as Y, Oauth2RevokedConnectionData as Yi, DefaultCreateConnectedAccountParamsSchema as Yn, McpServerGetResponse as Yr, ToolRouterSessionFilesMountDeleteOptionsSchema as Yt, ToolRouterSessionDeleteResponseSchema as Z, RedirectableAuthSchemeSchema as Zi, UpdateConnectedAccountAclParamsSchema as Zn, McpToolkitConnectionStatus as Zr, ToolRouterSessionFilesMountDownloadOptionsSchema as Zt, CustomToolsMapEntry as _, Tool as _a, CustomOauth1ConnectionData as _i, ConnectedAccountExperimentalResponseSchema as _n, GenerateURLResponseSchema as _r, ToolRouterSessionUpdateFn as _t, CreateCustomToolkitParams as a, ToolOptions as aa, GlobalExecuteToolFn as ai, ConnectedAccountAclConfig as an, ComposioGenerateURLResponseSchema as ar, ToolRouterSessionExecuteResponseSchema as at, RegisteredCustomTool as b, ToolExecuteParams as ba, CustomOauth2ConnectionDataSchema as bi, ConnectedAccountListParamsSchema as bn, MCPAuthOptionsSchema as br, ToolRouterTagsEnableDisableSchema as bt, CustomToolExecuteFn as c, afterExecuteModifier as ca, ToolCallSession as ci, ConnectedAccountAclConfigSchema as cn, ComposioMcpRetrieveResponseSchema as cr, ToolRouterSessionListConfigHistoryOptionsSchema as ct, CustomToolWireDefinition as d, beforeFileUploadModifier as da, ConnectionData as di, ConnectedAccountCompleteAuthParams as dn, CustomCreateResponse$1 as dr, ToolRouterSessionPreloadConfig as dt, ExecuteToolModifiers as ea, McpUrlResponse as ei, ToolRouterSessionFilesMountUploadOptions as en, BaseAgenticProvider as er, ToolRouterSessionEnsureConnectedOptionsSchema as et, CustomToolkit as f, CustomAuthParams as fa, ConnectionDataSchema as fi, ConnectedAccountCompleteAuthParamsSchema as fn, CustomCreateResponseSchema as fr, ToolRouterSessionProxyExecuteFn as ft, CustomToolsMap as g, SchemaModifierOptions as ga, CustomConnectionDataSchema as gi, ConnectedAccountExperimentalResponse as gn, GenerateURLResponse$1 as gr, ToolRouterSessionSearchResponseSchema as gt, CustomToolkitWireDefinition as h, JSONSchemaPropertySchema as ha, CustomConnectionData as hi, ConnectedAccountExperimental as hn, GenerateURLParamsSchema as hr, ToolRouterSessionSearchResponse as ht, CreateCustomToolkitBaseSchema as i, SessionMetaToolOptions as ia, ExecuteToolFnOptions as ii, ConnectionRequestState as in, ComposioGenerateURLParamsSchema as ir, ToolRouterSessionExecuteResponse as it, SessionProxyExecuteParamsSchema as j, ToolRetrievalOptions as ja, Oauth1InitiatedConnectionData as ji, ConnectedAccountRevokedTokenSchema as jn, MCPServerCreateResponseSchema as jr, ToolRouterUpdateExperimentalConfig as jt, SessionPreset as k, ToolProxyParams as ka, Oauth1InactiveConnectionData as ki, ConnectedAccountRevokeResponseSchema as kn, MCPServer as kr, ToolRouterToolsParam as kt, CustomToolResponse as l, beforeExecuteMetaModifier as la, BaseConnectionFields as li, ConnectedAccountAuthConfig as ln, ComposioMcpUpdateResponseSchema as lr, ToolRouterSessionListConfigHistoryResponse as lt, CustomToolkitResponse as m, JSONSchemaProperty as ma, ConnectionStatuses as mi, ConnectedAccountCompleteAuthResponseSchema as mn, GenerateURLParams as mr, ToolRouterSessionSearchFn as mt, CreateCustomToolBaseSchema as n, ProviderOptions as na, McpUserConnectionStatus as ni, ComposioRequestOptions as nn, BaseNonAgenticProvider as nr, ToolRouterSessionExecuteFn as nt, CustomTool as o, TransformToolSchemaModifier as oa, Provider as oi, ConnectedAccountAclConfigResponse as on, ComposioMcpDeleteResponseSchema as or, ToolRouterSessionListConfigHistoryFn as ot, CustomToolkitDefinition as p, CustomAuthParamsSchema as pa, ConnectionStatusEnum as pi, ConnectedAccountCompleteAuthResponse as pn, CustomCreateResponseValidated as pr, ToolRouterSessionProxyExecuteResponse as pt, ToolRouterSessionConfigHistoryConfig as q, Oauth2InitiatingConnectionData as qi, CreateConnectedAccountResponse as qn, McpRetrieveResponseSchema as qr, RemoteFileDataSchema as qt, CreateCustomToolParams as r, SessionExecuteMetaModifiers as ra, ExecuteToolFn as ri, ConnectionRequest as rn, ComposioCustomCreateResponseSchema as rr, ToolRouterSessionExecuteOptions as rt, CustomToolDefinition as s, afterExecuteMetaModifier as sa, ToolCallExecutionTarget as si, ConnectedAccountAclConfigResponseSchema as sn, ComposioMcpListResponseSchema as sr, ToolRouterSessionListConfigHistoryOptions as st, AnyZodSchema as t, MetaToolArguments as ta, McpUrlResponseCamelCase as ti, ToolRouterSessionFilesMountUploadOptionsSchema as tn, BaseComposioProvider as tr, ToolRouterSessionEnsureConnectedResult as tt, CustomToolSlugSchema as u, beforeExecuteModifier as ua, BillcomAuthConnectionDataSchema as ui, ConnectedAccountAuthConfigSchema as un, ConnectionStatus as ur, ToolRouterSessionMetadata as ut, InferZodSchema as v, ToolExecuteMetaParams as va, CustomOauth1ConnectionDataSchema as vi, ConnectedAccountExperimentalSchema as vn, GenerateURLResponseValidated as vr, ToolRouterSessionWarning as vt, MCPServerTypeSchema as w, ToolList as wa, Oauth1ConnectionDataSchema as wi, ConnectedAccountRefreshOptions as wn, MCPGetServerParams as wr, ToolRouterToolkitsFn as wt, RegisteredCustomToolkit as x, ToolExecuteParamsSchema as xa, Oauth1ActiveConnectionData as xi, ConnectedAccountListResponse as xn, MCPCreateMethodResponse as xr, ToolRouterTagsParamSchema as xt, InlineCustomToolsWirePayload as y, ToolExecuteMetaParamsSchema as ya, CustomOauth2ConnectionData as yi, ConnectedAccountListParams as yn, MCPAuthOptions as yr, ToolRouterSessionWorkbenchConfig as yt, ToolRouterCreateSessionConfig as z, ToolkitVersionParamSchema as za, Oauth2ExpiredConnectionData as zi, CreateConnectedAccountLinkOptions as zn, MCPToolkitConfig as zr, ToolkitConnectionsDetails as zt };
|
|
33154
|
+
export { ToolRouterSessionDeleteResponseSchema as $, RedirectableAuthSchemeSchema as $i, UpdateConnectedAccountAclParamsSchema as $n, McpToolkitConnectionStatus as $r, ToolRouterSessionFilesMountDownloadOptionsSchema as $t, SessionProxyExecuteParams as A, ToolListResponseSchema as Aa, Oauth1FailedConnectionDataSchema as Ai, ConnectedAccountRevokeResponse as An, MCPMultiAppServerSchema as Ar, ToolRouterToolsFn as At, ToolRouterCreateSessionConfigSchema as B, ToolkitVersionParam as Ba, Oauth2ConnectionDataSchema as Bi, ConnectedAccountTypes as Bn, MCPSingleAppServerSchema as Br, ToolkitConnectionStateSchema as Bt, MCPServerType as C, ToolExecuteParamsSchema as Ca, Oauth1ActiveConnectionData as Ci, ConnectedAccountListResponse as Cn, MCPCreateMethodResponse as Cr, ToolRouterTagsParamSchema as Ct, Session as D, ToolListParams as Da, Oauth1ExpiredConnectionData as Di, ConnectedAccountRefreshOptionsSchema as Dn, MCPGetServerParamsSchema as Dr, ToolRouterToolkitsOptions as Dt, SandboxSizeSchema as E, ToolList as Ea, Oauth1ConnectionDataSchema as Ei, ConnectedAccountRefreshOptions as En, MCPGetServerParams as Er, ToolRouterToolkitsFn as Et, ToolRouterConfigTags as F, Toolkit as Fa, Oauth1InitiatingConnectionData as Fi, ConnectedAccountStatusEnum as Fn, MCPServerListResponseSchema as Fr, ToolRouterUpdateManageConnectionsConfig as Ft, ToolRouterPremiumUsageSchema as G, Oauth2InactiveConnectionData as Gi, CreateConnectedAccountOptions as Gn, McpDeleteResponseSchema as Gr, FileDeleteResponseSchema as Gt, ToolRouterMCPServerConfigSchema as H, ToolkitVersionSchema as Ha, Oauth2ExpiredConnectionDataSchema as Hi, CreateConnectedAccountLinkOptionsSchema as Hn, MCPToolkitConfigSchema as Hr, ToolkitConnectionsDetailsSchema as Ht, ToolRouterConfigTagsSchema as I, ToolkitLatestVersion as Ia, Oauth1InitiatingConnectionDataSchema as Ii, ConnectedAccountStatusSchema as In, MCPServerSchema as Ir, ToolRouterUpdateManageConnectionsSchema as It, ToolRouterSessionConfig as J, Oauth2InitiatedConnectionDataSchema as Ji, CreateConnectedAccountParamsSchema as Jn, McpRetrieveResponse as Jr, RemoteFileData as Jt, ToolRouterSandboxConfig as K, Oauth2InactiveConnectionDataSchema as Ki, CreateConnectedAccountOptionsSchema as Kn, McpListResponse as Kr, FileListResponse as Kt, ToolRouterConfigTools as L, ToolkitLatestVersionSchema as La, Oauth2ActiveConnectionData as Li, ConnectedAccountStatuses as Ln, MCPServerUpdateParams as Lr, ToolRouterUpdateSessionConfig as Lt, SessionWithoutMcp as M, ToolProxyParamsSchema as Ma, Oauth1InactiveConnectionDataSchema as Mi, ConnectedAccountRevokedToken as Mn, MCPServerCreateResponse as Mr, ToolRouterToolsParamSchema as Mt, ToolRouterAuthorizeFn as N, ToolRetrievalOptions as Na, Oauth1InitiatedConnectionData as Ni, ConnectedAccountRevokedTokenSchema as Nn, MCPServerCreateResponseSchema as Nr, ToolRouterUpdateExperimentalConfig as Nt, SessionExperimental as O, ToolListParamsSchema as Oa, Oauth1ExpiredConnectionDataSchema as Oi, ConnectedAccountRetrieveResponse as On, MCPInstanceParams as Or, ToolRouterToolkitsOptionsSchema as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolSchema as Pa, Oauth1InitiatedConnectionDataSchema as Pi, ConnectedAccountStatus as Pn, MCPServerListResponse as Pr, ToolRouterUpdateExperimentalSchema as Pt, ToolRouterSessionDeleteResponse as Q, Oauth2RevokedConnectionDataSchema as Qi, UpdateConnectedAccountAclParams as Qn, McpServerUrlInfo as Qr, ToolRouterSessionFilesMountDownloadOptions as Qt, ToolRouterConfigToolsSchema as R, ToolkitSchema as Ra, Oauth2ActiveConnectionDataSchema as Ri, ConnectedAccountType as Rn, MCPServerUpdateParamsSchema as Rr, ToolRouterUpdateSessionConfigSchema as Rt, SessionContext as S, ToolExecuteParams as Sa, CustomOauth2ConnectionDataSchema as Si, ConnectedAccountListParamsSchema as Sn, MCPAuthOptionsSchema as Sr, ToolRouterTagsEnableDisableSchema as St, SandboxSize as T, ToolExecuteResponseSchema as Ta, Oauth1ConnectionData as Ti, ConnectedAccountListResponseSchema as Tn, MCPGenerateURLParamsSchema as Tr, ToolRouterToolkitsEnabledConfigSchema as Tt, ToolRouterManageConnectionsConfigSchema as U, ToolkitVersions as Ua, Oauth2FailedConnectionData as Ui, CreateConnectedAccountLinkResponse as Un, MCPToolkitConfigsArraySchema as Ur, RemoteFile as Ut, ToolRouterMCPServerConfig as V, ToolkitVersionParamSchema as Va, Oauth2ExpiredConnectionData as Vi, CreateConnectedAccountLinkOptions as Vn, MCPToolkitConfig as Vr, ToolkitConnectionsDetails as Vt, ToolRouterPremiumUsage as W, ToolkitVersionsSchema as Wa, Oauth2FailedConnectionDataSchema as Wi, CreateConnectedAccountLinkResponseSchema as Wn, McpDeleteResponse as Wr, FileDeleteResponse as Wt, ToolRouterSessionConfigHistoryItem as X, Oauth2InitiatingConnectionDataSchema as Xi, CreateConnectedAccountResponseSchema as Xn, McpServerCreateResponse as Xr, ToolRouterSessionFilesMountDeleteOptions as Xt, ToolRouterSessionConfigHistoryConfig as Y, Oauth2InitiatingConnectionData as Yi, CreateConnectedAccountResponse as Yn, McpRetrieveResponseSchema as Yr, RemoteFileDataSchema as Yt, ToolRouterSessionDeleteFn as Z, Oauth2RevokedConnectionData as Zi, DefaultCreateConnectedAccountParamsSchema as Zn, McpServerGetResponse as Zr, ToolRouterSessionFilesMountDeleteOptionsSchema as Zt, CustomToolsMapEntry as _, JSONSchemaPropertySchema as _a, CustomConnectionData as _i, ConnectedAccountExperimental as _n, GenerateURLParamsSchema as _r, ToolRouterSessionSearchResponse as _t, CreateCustomToolkitParams as a, SessionExecuteMetaModifiers as aa, ExecuteToolFn as ai, ConnectionRequest as an, ComposioCustomCreateResponseSchema as ar, ToolRouterSessionExecuteOptions as at, RegisteredCustomTool as b, ToolExecuteMetaParams as ba, CustomOauth1ConnectionDataSchema as bi, ConnectedAccountExperimentalSchema as bn, GenerateURLResponseValidated as br, ToolRouterSessionWarning as bt, CustomToolExecuteFn as c, TransformToolSchemaModifier as ca, Provider as ci, ConnectedAccountAclConfigResponse as cn, ComposioMcpDeleteResponseSchema as cr, ToolRouterSessionListConfigHistoryFn as ct, CustomToolWireDefinition as d, beforeExecuteMetaModifier as da, BaseConnectionFields as di, ConnectedAccountAuthConfig as dn, ComposioMcpUpdateResponseSchema as dr, ToolRouterSessionListConfigHistoryResponse as dt, AgenticToolOptions as ea, McpUpdateResponse as ei, ToolRouterSessionFilesMountListOptions as en, UpdateConnectedAccountParams as er, ToolRouterSessionEnsureConnectedFn as et, CustomToolkit as f, beforeExecuteModifier as fa, BillcomAuthConnectionDataSchema as fi, ConnectedAccountAuthConfigSchema as fn, ConnectionStatus as fr, ToolRouterSessionMetadata as ft, CustomToolsMap as g, JSONSchemaProperty as ga, ConnectionStatuses as gi, ConnectedAccountCompleteAuthResponseSchema as gn, GenerateURLParams as gr, ToolRouterSessionSearchFn as gt, CustomToolkitWireDefinition as h, CustomAuthParamsSchema as ha, ConnectionStatusEnum as hi, ConnectedAccountCompleteAuthResponse as hn, CustomCreateResponseValidated as hr, ToolRouterSessionProxyExecuteResponse as ht, CreateCustomToolkitBaseSchema as i, ProviderOptions as ia, McpUserConnectionStatus as ii, ComposioRequestOptions as in, BaseNonAgenticProvider as ir, ToolRouterSessionExecuteFn as it, SessionProxyExecuteParamsSchema as j, ToolProxyParams as ja, Oauth1InactiveConnectionData as ji, ConnectedAccountRevokeResponseSchema as jn, MCPServer as jr, ToolRouterToolsParam as jt, SessionPreset as k, ToolListResponse as ka, Oauth1FailedConnectionData as ki, ConnectedAccountRetrieveResponseSchema as kn, MCPMultiAppServer as kr, ToolRouterToolkitsParamSchema as kt, CustomToolResponse as l, afterExecuteMetaModifier as la, ToolCallExecutionTarget as li, ConnectedAccountAclConfigResponseSchema as ln, ComposioMcpListResponseSchema as lr, ToolRouterSessionListConfigHistoryOptions as lt, CustomToolkitResponse as m, CustomAuthParams as ma, ConnectionDataSchema as mi, ConnectedAccountCompleteAuthParamsSchema as mn, CustomCreateResponseSchema as mr, ToolRouterSessionProxyExecuteFn as mt, CreateCustomToolBaseSchema as n, ExecuteToolModifiers as na, McpUrlResponse as ni, ToolRouterSessionFilesMountUploadOptions as nn, BaseAgenticProvider as nr, ToolRouterSessionEnsureConnectedOptionsSchema as nt, CustomTool as o, SessionMetaToolOptions as oa, ExecuteToolFnOptions as oi, ConnectionRequestState as on, ComposioGenerateURLParamsSchema as or, ToolRouterSessionExecuteResponse as ot, CustomToolkitDefinition as p, beforeFileUploadModifier as pa, ConnectionData as pi, ConnectedAccountCompleteAuthParams as pn, CustomCreateResponse$1 as pr, ToolRouterSessionPreloadConfig as pt, ToolRouterSandboxConfigSchema as q, Oauth2InitiatedConnectionData as qi, CreateConnectedAccountParams as qn, McpListResponseSchema as qr, FileListResponseSchema as qt, CreateCustomToolParams as r, MetaToolArguments as ra, McpUrlResponseCamelCase as ri, ToolRouterSessionFilesMountUploadOptionsSchema as rn, BaseComposioProvider as rr, ToolRouterSessionEnsureConnectedResult as rt, CustomToolDefinition as s, ToolOptions as sa, GlobalExecuteToolFn as si, ConnectedAccountAclConfig as sn, ComposioGenerateURLResponseSchema as sr, ToolRouterSessionExecuteResponseSchema as st, AnyZodSchema as t, BeforeFileUploadSource as ta, McpUpdateResponseSchema as ti, ToolRouterSessionFilesMountListOptionsSchema as tn, UpdateConnectedAccountParamsSchema as tr, ToolRouterSessionEnsureConnectedOptions as tt, CustomToolSlugSchema as u, afterExecuteModifier as ua, ToolCallSession as ui, ConnectedAccountAclConfigSchema as un, ComposioMcpRetrieveResponseSchema as ur, ToolRouterSessionListConfigHistoryOptionsSchema as ut, InferZodSchema as v, SchemaModifierOptions as va, CustomConnectionDataSchema as vi, ConnectedAccountExperimentalResponse as vn, GenerateURLResponse$1 as vr, ToolRouterSessionSearchResponseSchema as vt, MCPServerTypeSchema as w, ToolExecuteResponse as wa, Oauth1ActiveConnectionDataSchema as wi, ConnectedAccountListResponseItem as wn, MCPGenerateURLParams as wr, ToolRouterToolkitsDisabledConfigSchema as wt, RegisteredCustomToolkit as x, ToolExecuteMetaParamsSchema as xa, CustomOauth2ConnectionData as xi, ConnectedAccountListParams as xn, MCPAuthOptions as xr, ToolRouterSessionWorkbenchConfig as xt, InlineCustomToolsWirePayload as y, Tool as ya, CustomOauth1ConnectionData as yi, ConnectedAccountExperimentalResponseSchema as yn, GenerateURLResponseSchema as yr, ToolRouterSessionUpdateFn as yt, ToolRouterCreateSessionConfig as z, ToolkitVersion as za, Oauth2ConnectionData as zi, ConnectedAccountTypeSchema as zn, MCPSingleAppServer as zr, ToolkitConnectionState as zt };
|