@composio/core 0.3.2 → 0.3.4
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/index.cjs +36 -28
- package/dist/index.d.cts +98 -40
- package/dist/index.d.mts +98 -40
- package/dist/index.mjs +36 -26
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6271,7 +6271,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
6271
6271
|
|
|
6272
6272
|
//#endregion
|
|
6273
6273
|
//#region package.json
|
|
6274
|
-
var version = "0.3.
|
|
6274
|
+
var version = "0.3.4";
|
|
6275
6275
|
|
|
6276
6276
|
//#endregion
|
|
6277
6277
|
//#region src/models/Files.ts
|
|
@@ -6361,14 +6361,17 @@ const ToolRouterManageConnectionsConfigSchema = zod_v3.default.object({
|
|
|
6361
6361
|
enable: zod_v3.default.boolean().optional().describe("Whether to use tools to manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually").default(true),
|
|
6362
6362
|
callbackUrl: zod_v3.default.string().optional().describe("The callback url to use in the tool router session")
|
|
6363
6363
|
});
|
|
6364
|
-
const ToolRouterTagsParamSchema = zod_v3.default.array(zod_v3.default.
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6364
|
+
const ToolRouterTagsParamSchema = zod_v3.default.array(zod_v3.default.enum([
|
|
6365
|
+
"readOnlyHint",
|
|
6366
|
+
"destructiveHint",
|
|
6367
|
+
"idempotentHint",
|
|
6368
|
+
"openWorldHint"
|
|
6369
|
+
])).describe("The tags to filter the tools by");
|
|
6370
|
+
const ToolRouterTagsEnableDisableSchema = zod_v3.default.object({
|
|
6371
|
+
enable: ToolRouterTagsParamSchema.optional().describe("The tags to enable in the tool router session"),
|
|
6372
|
+
disable: ToolRouterTagsParamSchema.optional().describe("The tags to disable in the tool router session")
|
|
6373
|
+
}).strict();
|
|
6374
|
+
const ToolRouterConfigTagsSchema = zod_v3.default.union([ToolRouterTagsParamSchema, ToolRouterTagsEnableDisableSchema]).describe("The tags to use in the tool router session");
|
|
6372
6375
|
/**
|
|
6373
6376
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
6374
6377
|
* @example
|
|
@@ -6392,17 +6395,11 @@ const ToolRouterConfigTagsSchema = zod_v3.default.union([
|
|
|
6392
6395
|
* ```
|
|
6393
6396
|
*/
|
|
6394
6397
|
const ToolRouterToolsParamSchema = zod_v3.default.array(zod_v3.default.string()).describe("The tools to use in the tool router session");
|
|
6395
|
-
const ToolRouterToolsTagsParamSchema = zod_v3.default.array(zod_v3.default.enum([
|
|
6396
|
-
"readOnlyHint",
|
|
6397
|
-
"destructiveHint",
|
|
6398
|
-
"idempotentHint",
|
|
6399
|
-
"openWorldHint"
|
|
6400
|
-
])).describe("The tags to filter the tools by");
|
|
6401
6398
|
const ToolRouterConfigToolsSchema = zod_v3.default.union([
|
|
6402
6399
|
ToolRouterToolsParamSchema,
|
|
6403
6400
|
zod_v3.default.object({ enable: ToolRouterToolsParamSchema.describe("The tools to enable in the tool router session") }).strict(),
|
|
6404
6401
|
zod_v3.default.object({ disable: ToolRouterToolsParamSchema.describe("The tools to disable in the tool router session") }).strict(),
|
|
6405
|
-
zod_v3.default.object({ tags:
|
|
6402
|
+
zod_v3.default.object({ tags: ToolRouterConfigTagsSchema.describe("The tags to filter the tools by, this will override the global tags") }).strict()
|
|
6406
6403
|
]).superRefine((val, ctx) => {
|
|
6407
6404
|
if (typeof val === "object" && !Array.isArray(val)) {
|
|
6408
6405
|
const keys = Object.keys(val);
|
|
@@ -6415,7 +6412,7 @@ const ToolRouterConfigToolsSchema = zod_v3.default.union([
|
|
|
6415
6412
|
});
|
|
6416
6413
|
const ToolRouterCreateSessionConfigSchema = zod_v3.default.object({
|
|
6417
6414
|
tools: zod_v3.default.record(zod_v3.default.string(), zod_v3.default.union([ToolRouterToolsParamSchema, ToolRouterConfigToolsSchema])).optional().describe("The tools to use in the tool router session"),
|
|
6418
|
-
tags:
|
|
6415
|
+
tags: ToolRouterConfigTagsSchema.optional().describe("Global tags to filter the tools by"),
|
|
6419
6416
|
toolkits: zod_v3.default.union([
|
|
6420
6417
|
ToolRouterToolkitsParamSchema,
|
|
6421
6418
|
ToolRouterToolkitsDisabledConfigSchema,
|
|
@@ -6461,7 +6458,8 @@ const ToolRouterToolkitsOptionsSchema = zod_v3.default.object({
|
|
|
6461
6458
|
toolkits: zod_v3.default.array(zod_v3.default.string()).optional(),
|
|
6462
6459
|
nextCursor: zod_v3.default.string().optional(),
|
|
6463
6460
|
limit: zod_v3.default.number().optional(),
|
|
6464
|
-
isConnected: zod_v3.default.boolean().optional()
|
|
6461
|
+
isConnected: zod_v3.default.boolean().optional(),
|
|
6462
|
+
search: zod_v3.default.string().optional()
|
|
6465
6463
|
});
|
|
6466
6464
|
|
|
6467
6465
|
//#endregion
|
|
@@ -6477,12 +6475,23 @@ const transformToolRouterToolsParams = (params) => {
|
|
|
6477
6475
|
if (Array.isArray(data)) acc[key] = { enable: data };
|
|
6478
6476
|
else if ("enable" in data) acc[key] = { enable: data.enable };
|
|
6479
6477
|
else if ("disable" in data) acc[key] = { disable: data.disable };
|
|
6480
|
-
else if ("tags" in data)
|
|
6478
|
+
else if ("tags" in data) {
|
|
6479
|
+
const tags = transformToolRouterTagsParams(data.tags);
|
|
6480
|
+
if (tags) acc[key] = { tags };
|
|
6481
|
+
}
|
|
6481
6482
|
} else throw new ValidationError(parsedResult.error.message);
|
|
6482
6483
|
} else acc[key] = { enable: params[key] };
|
|
6483
6484
|
return acc;
|
|
6484
6485
|
}, {});
|
|
6485
6486
|
};
|
|
6487
|
+
const transformToolRouterTagsParams = (params) => {
|
|
6488
|
+
if (!params) return;
|
|
6489
|
+
if (Array.isArray(params)) return { enable: params };
|
|
6490
|
+
else if (typeof params === "object") return {
|
|
6491
|
+
enable: params.enable,
|
|
6492
|
+
disable: params.disable
|
|
6493
|
+
};
|
|
6494
|
+
};
|
|
6486
6495
|
|
|
6487
6496
|
//#endregion
|
|
6488
6497
|
//#region src/models/ToolRouter.ts
|
|
@@ -6532,7 +6541,8 @@ var ToolRouter = class {
|
|
|
6532
6541
|
cursor: toolkitOptions.data.nextCursor,
|
|
6533
6542
|
limit: toolkitOptions.data.limit,
|
|
6534
6543
|
toolkits: toolkitOptions.data.toolkits,
|
|
6535
|
-
is_connected: toolkitOptions.data.isConnected
|
|
6544
|
+
is_connected: toolkitOptions.data.isConnected,
|
|
6545
|
+
search: toolkitOptions.data.search
|
|
6536
6546
|
});
|
|
6537
6547
|
return {
|
|
6538
6548
|
items: result.items.map((item) => {
|
|
@@ -6629,6 +6639,7 @@ var ToolRouter = class {
|
|
|
6629
6639
|
const routerConfig = ToolRouterCreateSessionConfigSchema.parse(config ?? {});
|
|
6630
6640
|
const manageConnectedAccounts = typeof routerConfig.manageConnections === "boolean" ? routerConfig.manageConnections : routerConfig.manageConnections?.enable ?? true;
|
|
6631
6641
|
const toolkits = Array.isArray(routerConfig.toolkits) ? { enable: routerConfig.toolkits } : routerConfig.toolkits;
|
|
6642
|
+
const tags = transformToolRouterTagsParams(routerConfig.tags);
|
|
6632
6643
|
const tools = transformToolRouterToolsParams(routerConfig.tools);
|
|
6633
6644
|
const payload = {
|
|
6634
6645
|
user_id: userId,
|
|
@@ -6636,7 +6647,7 @@ var ToolRouter = class {
|
|
|
6636
6647
|
auth_configs: routerConfig.authConfigs,
|
|
6637
6648
|
connected_accounts: routerConfig.connectedAccounts,
|
|
6638
6649
|
tools,
|
|
6639
|
-
tags
|
|
6650
|
+
tags,
|
|
6640
6651
|
manage_connections: {
|
|
6641
6652
|
enable: manageConnectedAccounts,
|
|
6642
6653
|
callback_url: typeof routerConfig.manageConnections === "object" ? routerConfig.manageConnections.callbackUrl : void 0
|
|
@@ -6820,13 +6831,12 @@ var Composio = class Composio {
|
|
|
6820
6831
|
this.files = new Files(this.client);
|
|
6821
6832
|
this.connectedAccounts = new ConnectedAccounts(this.client);
|
|
6822
6833
|
this.toolRouter = new ToolRouter(this.client, this.config);
|
|
6823
|
-
this.toolRouter.create.bind(this.toolRouter);
|
|
6824
|
-
this.toolRouter.use.bind(this.toolRouter);
|
|
6825
6834
|
/**
|
|
6826
6835
|
* Initialize tool router methods
|
|
6836
|
+
* Properly bind the methods to maintain the correct 'this' context
|
|
6827
6837
|
*/
|
|
6828
|
-
this.create = this.toolRouter.create;
|
|
6829
|
-
this.use = this.toolRouter.use;
|
|
6838
|
+
this.create = this.toolRouter.create.bind(this.toolRouter);
|
|
6839
|
+
this.use = this.toolRouter.use.bind(this.toolRouter);
|
|
6830
6840
|
/**
|
|
6831
6841
|
* Initialize Experimental features
|
|
6832
6842
|
*/
|
|
@@ -8080,17 +8090,15 @@ exports.ToolRouterConfigManageConnectionsSchema = ToolRouterConfigManageConnecti
|
|
|
8080
8090
|
exports.ToolRouterConfigTagsSchema = ToolRouterConfigTagsSchema;
|
|
8081
8091
|
exports.ToolRouterConfigToolsSchema = ToolRouterConfigToolsSchema;
|
|
8082
8092
|
exports.ToolRouterCreateSessionConfigSchema = ToolRouterCreateSessionConfigSchema;
|
|
8083
|
-
exports.ToolRouterDisabledTagsConfigSchema = ToolRouterDisabledTagsConfigSchema;
|
|
8084
|
-
exports.ToolRouterEnabledTagsConfigSchema = ToolRouterEnabledTagsConfigSchema;
|
|
8085
8093
|
exports.ToolRouterMCPServerConfigSchema = ToolRouterMCPServerConfigSchema;
|
|
8086
8094
|
exports.ToolRouterManageConnectionsConfigSchema = ToolRouterManageConnectionsConfigSchema;
|
|
8095
|
+
exports.ToolRouterTagsEnableDisableSchema = ToolRouterTagsEnableDisableSchema;
|
|
8087
8096
|
exports.ToolRouterTagsParamSchema = ToolRouterTagsParamSchema;
|
|
8088
8097
|
exports.ToolRouterToolkitsDisabledConfigSchema = ToolRouterToolkitsDisabledConfigSchema;
|
|
8089
8098
|
exports.ToolRouterToolkitsEnabledConfigSchema = ToolRouterToolkitsEnabledConfigSchema;
|
|
8090
8099
|
exports.ToolRouterToolkitsOptionsSchema = ToolRouterToolkitsOptionsSchema;
|
|
8091
8100
|
exports.ToolRouterToolkitsParamSchema = ToolRouterToolkitsParamSchema;
|
|
8092
8101
|
exports.ToolRouterToolsParamSchema = ToolRouterToolsParamSchema;
|
|
8093
|
-
exports.ToolRouterToolsTagsParamSchema = ToolRouterToolsTagsParamSchema;
|
|
8094
8102
|
exports.ToolSchema = ToolSchema;
|
|
8095
8103
|
exports.ToolkitAuthConfigDetailsSchema = ToolkitAuthConfigDetailsSchema;
|
|
8096
8104
|
exports.ToolkitAuthFieldSchema = ToolkitAuthFieldSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -31614,34 +31614,28 @@ declare const ToolRouterManageConnectionsConfigSchema: z$1.ZodObject<{
|
|
|
31614
31614
|
callbackUrl?: string | undefined;
|
|
31615
31615
|
enable?: boolean | undefined;
|
|
31616
31616
|
}>;
|
|
31617
|
-
declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.
|
|
31618
|
-
declare const
|
|
31619
|
-
enable: z$1.ZodArray<z$1.
|
|
31620
|
-
|
|
31621
|
-
enable: string[];
|
|
31622
|
-
}, {
|
|
31623
|
-
enable: string[];
|
|
31624
|
-
}>;
|
|
31625
|
-
declare const ToolRouterDisabledTagsConfigSchema: z$1.ZodObject<{
|
|
31626
|
-
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
31617
|
+
declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
31618
|
+
declare const ToolRouterTagsEnableDisableSchema: z$1.ZodObject<{
|
|
31619
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31620
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31627
31621
|
}, "strict", z$1.ZodTypeAny, {
|
|
31628
|
-
|
|
31622
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31623
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31629
31624
|
}, {
|
|
31630
|
-
|
|
31625
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31626
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31631
31627
|
}>;
|
|
31632
|
-
declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.
|
|
31633
|
-
enable: z$1.ZodArray<z$1.
|
|
31628
|
+
declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
31629
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31630
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31634
31631
|
}, "strict", z$1.ZodTypeAny, {
|
|
31635
|
-
enable
|
|
31636
|
-
|
|
31637
|
-
enable: string[];
|
|
31638
|
-
}>, z$1.ZodObject<{
|
|
31639
|
-
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
31640
|
-
}, "strict", z$1.ZodTypeAny, {
|
|
31641
|
-
disable: string[];
|
|
31632
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31633
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31642
31634
|
}, {
|
|
31643
|
-
|
|
31635
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31636
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31644
31637
|
}>]>;
|
|
31638
|
+
type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
31645
31639
|
/**
|
|
31646
31640
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
31647
31641
|
* @example
|
|
@@ -31666,8 +31660,6 @@ declare const ToolRouterConfigTagsSchema: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodStri
|
|
|
31666
31660
|
*/
|
|
31667
31661
|
declare const ToolRouterToolsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
|
|
31668
31662
|
type ToolRouterToolsParam = z$1.infer<typeof ToolRouterToolsParamSchema>;
|
|
31669
|
-
declare const ToolRouterToolsTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
31670
|
-
type ToolRouterToolsTagsParam = z$1.infer<typeof ToolRouterToolsTagsParamSchema>;
|
|
31671
31663
|
declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
31672
31664
|
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
31673
31665
|
}, "strict", z$1.ZodTypeAny, {
|
|
@@ -31681,23 +31673,44 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
31681
31673
|
}, {
|
|
31682
31674
|
disable: string[];
|
|
31683
31675
|
}>, z$1.ZodObject<{
|
|
31684
|
-
tags: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many"
|
|
31676
|
+
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
31677
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31678
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31679
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
31680
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31681
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31682
|
+
}, {
|
|
31683
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31684
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31685
|
+
}>]>;
|
|
31685
31686
|
}, "strict", z$1.ZodTypeAny, {
|
|
31686
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31687
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31688
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31689
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31690
|
+
};
|
|
31687
31691
|
}, {
|
|
31688
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31692
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31693
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31694
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31695
|
+
};
|
|
31689
31696
|
}>]>, string[] | {
|
|
31690
31697
|
enable: string[];
|
|
31691
31698
|
} | {
|
|
31692
31699
|
disable: string[];
|
|
31693
31700
|
} | {
|
|
31694
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31701
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31702
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31703
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31704
|
+
};
|
|
31695
31705
|
}, string[] | {
|
|
31696
31706
|
enable: string[];
|
|
31697
31707
|
} | {
|
|
31698
31708
|
disable: string[];
|
|
31699
31709
|
} | {
|
|
31700
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31710
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31711
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31712
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31713
|
+
};
|
|
31701
31714
|
}>;
|
|
31702
31715
|
type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
|
|
31703
31716
|
declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
@@ -31714,25 +31727,55 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
|
31714
31727
|
}, {
|
|
31715
31728
|
disable: string[];
|
|
31716
31729
|
}>, z$1.ZodObject<{
|
|
31717
|
-
tags: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many"
|
|
31730
|
+
tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
31731
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31732
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31733
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
31734
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31735
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31736
|
+
}, {
|
|
31737
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31738
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31739
|
+
}>]>;
|
|
31718
31740
|
}, "strict", z$1.ZodTypeAny, {
|
|
31719
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31741
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31742
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31743
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31744
|
+
};
|
|
31720
31745
|
}, {
|
|
31721
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31746
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31747
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31748
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31749
|
+
};
|
|
31722
31750
|
}>]>, string[] | {
|
|
31723
31751
|
enable: string[];
|
|
31724
31752
|
} | {
|
|
31725
31753
|
disable: string[];
|
|
31726
31754
|
} | {
|
|
31727
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31755
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31756
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31757
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31758
|
+
};
|
|
31728
31759
|
}, string[] | {
|
|
31729
31760
|
enable: string[];
|
|
31730
31761
|
} | {
|
|
31731
31762
|
disable: string[];
|
|
31732
31763
|
} | {
|
|
31733
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31764
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31765
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31766
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31767
|
+
};
|
|
31734
31768
|
}>]>>>>;
|
|
31735
|
-
tags: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many"
|
|
31769
|
+
tags: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
|
|
31770
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31771
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31772
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
31773
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31774
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31775
|
+
}, {
|
|
31776
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31777
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31778
|
+
}>]>>>;
|
|
31736
31779
|
toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
|
|
31737
31780
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
31738
31781
|
}, "strict", z$1.ZodTypeAny, {
|
|
@@ -31769,13 +31812,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
|
31769
31812
|
autoOffloadThreshold?: number | undefined;
|
|
31770
31813
|
}>>>;
|
|
31771
31814
|
}, "strip", z$1.ZodTypeAny, {
|
|
31772
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] |
|
|
31815
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31816
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31817
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31818
|
+
} | undefined;
|
|
31773
31819
|
tools?: Record<string, string[] | {
|
|
31774
31820
|
enable: string[];
|
|
31775
31821
|
} | {
|
|
31776
31822
|
disable: string[];
|
|
31777
31823
|
} | {
|
|
31778
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31824
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31825
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31826
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31827
|
+
};
|
|
31779
31828
|
}> | undefined;
|
|
31780
31829
|
toolkits?: string[] | {
|
|
31781
31830
|
disable: string[];
|
|
@@ -31793,13 +31842,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
|
31793
31842
|
autoOffloadThreshold?: number | undefined;
|
|
31794
31843
|
} | undefined;
|
|
31795
31844
|
}, {
|
|
31796
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] |
|
|
31845
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31846
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31847
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31848
|
+
} | undefined;
|
|
31797
31849
|
tools?: Record<string, string[] | {
|
|
31798
31850
|
enable: string[];
|
|
31799
31851
|
} | {
|
|
31800
31852
|
disable: string[];
|
|
31801
31853
|
} | {
|
|
31802
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31854
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31855
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31856
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31857
|
+
};
|
|
31803
31858
|
}> | undefined;
|
|
31804
31859
|
toolkits?: string[] | {
|
|
31805
31860
|
disable: string[];
|
|
@@ -32080,15 +32135,18 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
|
32080
32135
|
nextCursor: z$1.ZodOptional<z$1.ZodString>;
|
|
32081
32136
|
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
32082
32137
|
isConnected: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
32138
|
+
search: z$1.ZodOptional<z$1.ZodString>;
|
|
32083
32139
|
}, "strip", z$1.ZodTypeAny, {
|
|
32084
32140
|
nextCursor?: string | undefined;
|
|
32085
32141
|
toolkits?: string[] | undefined;
|
|
32086
32142
|
limit?: number | undefined;
|
|
32143
|
+
search?: string | undefined;
|
|
32087
32144
|
isConnected?: boolean | undefined;
|
|
32088
32145
|
}, {
|
|
32089
32146
|
nextCursor?: string | undefined;
|
|
32090
32147
|
toolkits?: string[] | undefined;
|
|
32091
32148
|
limit?: number | undefined;
|
|
32149
|
+
search?: string | undefined;
|
|
32092
32150
|
isConnected?: boolean | undefined;
|
|
32093
32151
|
}>;
|
|
32094
32152
|
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
@@ -33312,4 +33370,4 @@ declare class ComposioWebhookPayloadError extends ComposioError {
|
|
|
33312
33370
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
33313
33371
|
}
|
|
33314
33372
|
//#endregion
|
|
33315
|
-
export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema,
|
|
33373
|
+
export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTags, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfig, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsFn, ToolRouterToolkitsOptions, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsFn, ToolRouterToolsParam, ToolRouterToolsParamSchema, ToolSchema, Toolkit, ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, ToolkitAuthField, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, ToolkitCategory, ToolkitCategorySchema, ToolkitConnectionState, ToolkitConnectionStateSchema, ToolkitConnectionsDetails, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersion, ToolkitLatestVersionSchema, ToolkitListParams, ToolkitMangedByEnum, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitVersion, ToolkitVersionParam, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersions, ToolkitVersionsSchema, ToolkitsListParamsSchema, TransformToolSchemaModifier, TriggerData, TriggerErrorCodes, TriggerEvent, TriggerEventData, TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponse, TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, TriggerSubscribeParams, TriggerType, TriggerTypeSchema, TriggersTypeListParams, TriggersTypeListParamsSchema, TriggersTypeListResponse, TriggersTypeListResponseSchema, TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, VerifyWebhookParams, VerifyWebhookParamsSchema, VerifyWebhookResult, afterExecuteModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
package/dist/index.d.mts
CHANGED
|
@@ -31612,34 +31612,28 @@ declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
|
|
|
31612
31612
|
callbackUrl?: string | undefined;
|
|
31613
31613
|
enable?: boolean | undefined;
|
|
31614
31614
|
}>;
|
|
31615
|
-
declare const ToolRouterTagsParamSchema: z.ZodArray<z.
|
|
31616
|
-
declare const
|
|
31617
|
-
enable: z.ZodArray<z.
|
|
31618
|
-
|
|
31619
|
-
enable: string[];
|
|
31620
|
-
}, {
|
|
31621
|
-
enable: string[];
|
|
31622
|
-
}>;
|
|
31623
|
-
declare const ToolRouterDisabledTagsConfigSchema: z.ZodObject<{
|
|
31624
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
31615
|
+
declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
31616
|
+
declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
|
|
31617
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31618
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31625
31619
|
}, "strict", z.ZodTypeAny, {
|
|
31626
|
-
|
|
31620
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31621
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31627
31622
|
}, {
|
|
31628
|
-
|
|
31623
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31624
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31629
31625
|
}>;
|
|
31630
|
-
declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.
|
|
31631
|
-
enable: z.ZodArray<z.
|
|
31626
|
+
declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
31627
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31628
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31632
31629
|
}, "strict", z.ZodTypeAny, {
|
|
31633
|
-
enable
|
|
31634
|
-
|
|
31635
|
-
enable: string[];
|
|
31636
|
-
}>, z.ZodObject<{
|
|
31637
|
-
disable: z.ZodArray<z.ZodString, "many">;
|
|
31638
|
-
}, "strict", z.ZodTypeAny, {
|
|
31639
|
-
disable: string[];
|
|
31630
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31631
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31640
31632
|
}, {
|
|
31641
|
-
|
|
31633
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31634
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31642
31635
|
}>]>;
|
|
31636
|
+
type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
31643
31637
|
/**
|
|
31644
31638
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
31645
31639
|
* @example
|
|
@@ -31664,8 +31658,6 @@ declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "m
|
|
|
31664
31658
|
*/
|
|
31665
31659
|
declare const ToolRouterToolsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
31666
31660
|
type ToolRouterToolsParam = z.infer<typeof ToolRouterToolsParamSchema>;
|
|
31667
|
-
declare const ToolRouterToolsTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
31668
|
-
type ToolRouterToolsTagsParam = z.infer<typeof ToolRouterToolsTagsParamSchema>;
|
|
31669
31661
|
declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
31670
31662
|
enable: z.ZodArray<z.ZodString, "many">;
|
|
31671
31663
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -31679,23 +31671,44 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
|
|
|
31679
31671
|
}, {
|
|
31680
31672
|
disable: string[];
|
|
31681
31673
|
}>, z.ZodObject<{
|
|
31682
|
-
tags: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many"
|
|
31674
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
31675
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31676
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31677
|
+
}, "strict", z.ZodTypeAny, {
|
|
31678
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31679
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31680
|
+
}, {
|
|
31681
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31682
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31683
|
+
}>]>;
|
|
31683
31684
|
}, "strict", z.ZodTypeAny, {
|
|
31684
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31685
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31686
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31687
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31688
|
+
};
|
|
31685
31689
|
}, {
|
|
31686
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31690
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31691
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31692
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31693
|
+
};
|
|
31687
31694
|
}>]>, string[] | {
|
|
31688
31695
|
enable: string[];
|
|
31689
31696
|
} | {
|
|
31690
31697
|
disable: string[];
|
|
31691
31698
|
} | {
|
|
31692
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31699
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31700
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31701
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31702
|
+
};
|
|
31693
31703
|
}, string[] | {
|
|
31694
31704
|
enable: string[];
|
|
31695
31705
|
} | {
|
|
31696
31706
|
disable: string[];
|
|
31697
31707
|
} | {
|
|
31698
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31708
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31709
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31710
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31711
|
+
};
|
|
31699
31712
|
}>;
|
|
31700
31713
|
type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
|
|
31701
31714
|
declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
@@ -31712,25 +31725,55 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
31712
31725
|
}, {
|
|
31713
31726
|
disable: string[];
|
|
31714
31727
|
}>, z.ZodObject<{
|
|
31715
|
-
tags: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many"
|
|
31728
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
31729
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31730
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31731
|
+
}, "strict", z.ZodTypeAny, {
|
|
31732
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31733
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31734
|
+
}, {
|
|
31735
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31736
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31737
|
+
}>]>;
|
|
31716
31738
|
}, "strict", z.ZodTypeAny, {
|
|
31717
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31739
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31740
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31741
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31742
|
+
};
|
|
31718
31743
|
}, {
|
|
31719
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31744
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31745
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31746
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31747
|
+
};
|
|
31720
31748
|
}>]>, string[] | {
|
|
31721
31749
|
enable: string[];
|
|
31722
31750
|
} | {
|
|
31723
31751
|
disable: string[];
|
|
31724
31752
|
} | {
|
|
31725
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31753
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31754
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31755
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31756
|
+
};
|
|
31726
31757
|
}, string[] | {
|
|
31727
31758
|
enable: string[];
|
|
31728
31759
|
} | {
|
|
31729
31760
|
disable: string[];
|
|
31730
31761
|
} | {
|
|
31731
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31762
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31763
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31764
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31765
|
+
};
|
|
31732
31766
|
}>]>>>>;
|
|
31733
|
-
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many"
|
|
31767
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
31768
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31769
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
31770
|
+
}, "strict", z.ZodTypeAny, {
|
|
31771
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31772
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31773
|
+
}, {
|
|
31774
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31775
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31776
|
+
}>]>>>;
|
|
31734
31777
|
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
31735
31778
|
disable: z.ZodArray<z.ZodString, "many">;
|
|
31736
31779
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -31767,13 +31810,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
31767
31810
|
autoOffloadThreshold?: number | undefined;
|
|
31768
31811
|
}>>>;
|
|
31769
31812
|
}, "strip", z.ZodTypeAny, {
|
|
31770
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] |
|
|
31813
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31814
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31815
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31816
|
+
} | undefined;
|
|
31771
31817
|
tools?: Record<string, string[] | {
|
|
31772
31818
|
enable: string[];
|
|
31773
31819
|
} | {
|
|
31774
31820
|
disable: string[];
|
|
31775
31821
|
} | {
|
|
31776
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31822
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31823
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31824
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31825
|
+
};
|
|
31777
31826
|
}> | undefined;
|
|
31778
31827
|
toolkits?: string[] | {
|
|
31779
31828
|
disable: string[];
|
|
@@ -31791,13 +31840,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
31791
31840
|
autoOffloadThreshold?: number | undefined;
|
|
31792
31841
|
} | undefined;
|
|
31793
31842
|
}, {
|
|
31794
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] |
|
|
31843
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31844
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31845
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31846
|
+
} | undefined;
|
|
31795
31847
|
tools?: Record<string, string[] | {
|
|
31796
31848
|
enable: string[];
|
|
31797
31849
|
} | {
|
|
31798
31850
|
disable: string[];
|
|
31799
31851
|
} | {
|
|
31800
|
-
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[]
|
|
31852
|
+
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
31853
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31854
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
31855
|
+
};
|
|
31801
31856
|
}> | undefined;
|
|
31802
31857
|
toolkits?: string[] | {
|
|
31803
31858
|
disable: string[];
|
|
@@ -32078,15 +32133,18 @@ declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
|
32078
32133
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
32079
32134
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
32080
32135
|
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
32136
|
+
search: z.ZodOptional<z.ZodString>;
|
|
32081
32137
|
}, "strip", z.ZodTypeAny, {
|
|
32082
32138
|
nextCursor?: string | undefined;
|
|
32083
32139
|
toolkits?: string[] | undefined;
|
|
32084
32140
|
limit?: number | undefined;
|
|
32141
|
+
search?: string | undefined;
|
|
32085
32142
|
isConnected?: boolean | undefined;
|
|
32086
32143
|
}, {
|
|
32087
32144
|
nextCursor?: string | undefined;
|
|
32088
32145
|
toolkits?: string[] | undefined;
|
|
32089
32146
|
limit?: number | undefined;
|
|
32147
|
+
search?: string | undefined;
|
|
32090
32148
|
isConnected?: boolean | undefined;
|
|
32091
32149
|
}>;
|
|
32092
32150
|
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
@@ -33310,4 +33368,4 @@ declare class ComposioWebhookPayloadError extends ComposioError {
|
|
|
33310
33368
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
33311
33369
|
}
|
|
33312
33370
|
//#endregion
|
|
33313
|
-
export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema,
|
|
33371
|
+
export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTags, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfig, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsFn, ToolRouterToolkitsOptions, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsFn, ToolRouterToolsParam, ToolRouterToolsParamSchema, ToolSchema, Toolkit, ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, ToolkitAuthField, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, ToolkitCategory, ToolkitCategorySchema, ToolkitConnectionState, ToolkitConnectionStateSchema, ToolkitConnectionsDetails, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersion, ToolkitLatestVersionSchema, ToolkitListParams, ToolkitMangedByEnum, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitVersion, ToolkitVersionParam, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersions, ToolkitVersionsSchema, ToolkitsListParamsSchema, TransformToolSchemaModifier, TriggerData, TriggerErrorCodes, TriggerEvent, TriggerEventData, TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponse, TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, TriggerSubscribeParams, TriggerType, TriggerTypeSchema, TriggersTypeListParams, TriggersTypeListParamsSchema, TriggersTypeListResponse, TriggersTypeListResponseSchema, TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, VerifyWebhookParams, VerifyWebhookParamsSchema, VerifyWebhookResult, afterExecuteModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
package/dist/index.mjs
CHANGED
|
@@ -6224,7 +6224,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
6224
6224
|
|
|
6225
6225
|
//#endregion
|
|
6226
6226
|
//#region package.json
|
|
6227
|
-
var version = "0.3.
|
|
6227
|
+
var version = "0.3.4";
|
|
6228
6228
|
|
|
6229
6229
|
//#endregion
|
|
6230
6230
|
//#region src/models/Files.ts
|
|
@@ -6314,14 +6314,17 @@ const ToolRouterManageConnectionsConfigSchema = z.object({
|
|
|
6314
6314
|
enable: z.boolean().optional().describe("Whether to use tools to manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually").default(true),
|
|
6315
6315
|
callbackUrl: z.string().optional().describe("The callback url to use in the tool router session")
|
|
6316
6316
|
});
|
|
6317
|
-
const ToolRouterTagsParamSchema = z.array(z.
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6317
|
+
const ToolRouterTagsParamSchema = z.array(z.enum([
|
|
6318
|
+
"readOnlyHint",
|
|
6319
|
+
"destructiveHint",
|
|
6320
|
+
"idempotentHint",
|
|
6321
|
+
"openWorldHint"
|
|
6322
|
+
])).describe("The tags to filter the tools by");
|
|
6323
|
+
const ToolRouterTagsEnableDisableSchema = z.object({
|
|
6324
|
+
enable: ToolRouterTagsParamSchema.optional().describe("The tags to enable in the tool router session"),
|
|
6325
|
+
disable: ToolRouterTagsParamSchema.optional().describe("The tags to disable in the tool router session")
|
|
6326
|
+
}).strict();
|
|
6327
|
+
const ToolRouterConfigTagsSchema = z.union([ToolRouterTagsParamSchema, ToolRouterTagsEnableDisableSchema]).describe("The tags to use in the tool router session");
|
|
6325
6328
|
/**
|
|
6326
6329
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
6327
6330
|
* @example
|
|
@@ -6345,17 +6348,11 @@ const ToolRouterConfigTagsSchema = z.union([
|
|
|
6345
6348
|
* ```
|
|
6346
6349
|
*/
|
|
6347
6350
|
const ToolRouterToolsParamSchema = z.array(z.string()).describe("The tools to use in the tool router session");
|
|
6348
|
-
const ToolRouterToolsTagsParamSchema = z.array(z.enum([
|
|
6349
|
-
"readOnlyHint",
|
|
6350
|
-
"destructiveHint",
|
|
6351
|
-
"idempotentHint",
|
|
6352
|
-
"openWorldHint"
|
|
6353
|
-
])).describe("The tags to filter the tools by");
|
|
6354
6351
|
const ToolRouterConfigToolsSchema = z.union([
|
|
6355
6352
|
ToolRouterToolsParamSchema,
|
|
6356
6353
|
z.object({ enable: ToolRouterToolsParamSchema.describe("The tools to enable in the tool router session") }).strict(),
|
|
6357
6354
|
z.object({ disable: ToolRouterToolsParamSchema.describe("The tools to disable in the tool router session") }).strict(),
|
|
6358
|
-
z.object({ tags:
|
|
6355
|
+
z.object({ tags: ToolRouterConfigTagsSchema.describe("The tags to filter the tools by, this will override the global tags") }).strict()
|
|
6359
6356
|
]).superRefine((val, ctx) => {
|
|
6360
6357
|
if (typeof val === "object" && !Array.isArray(val)) {
|
|
6361
6358
|
const keys = Object.keys(val);
|
|
@@ -6368,7 +6365,7 @@ const ToolRouterConfigToolsSchema = z.union([
|
|
|
6368
6365
|
});
|
|
6369
6366
|
const ToolRouterCreateSessionConfigSchema = z.object({
|
|
6370
6367
|
tools: z.record(z.string(), z.union([ToolRouterToolsParamSchema, ToolRouterConfigToolsSchema])).optional().describe("The tools to use in the tool router session"),
|
|
6371
|
-
tags:
|
|
6368
|
+
tags: ToolRouterConfigTagsSchema.optional().describe("Global tags to filter the tools by"),
|
|
6372
6369
|
toolkits: z.union([
|
|
6373
6370
|
ToolRouterToolkitsParamSchema,
|
|
6374
6371
|
ToolRouterToolkitsDisabledConfigSchema,
|
|
@@ -6414,7 +6411,8 @@ const ToolRouterToolkitsOptionsSchema = z.object({
|
|
|
6414
6411
|
toolkits: z.array(z.string()).optional(),
|
|
6415
6412
|
nextCursor: z.string().optional(),
|
|
6416
6413
|
limit: z.number().optional(),
|
|
6417
|
-
isConnected: z.boolean().optional()
|
|
6414
|
+
isConnected: z.boolean().optional(),
|
|
6415
|
+
search: z.string().optional()
|
|
6418
6416
|
});
|
|
6419
6417
|
|
|
6420
6418
|
//#endregion
|
|
@@ -6430,12 +6428,23 @@ const transformToolRouterToolsParams = (params) => {
|
|
|
6430
6428
|
if (Array.isArray(data)) acc[key] = { enable: data };
|
|
6431
6429
|
else if ("enable" in data) acc[key] = { enable: data.enable };
|
|
6432
6430
|
else if ("disable" in data) acc[key] = { disable: data.disable };
|
|
6433
|
-
else if ("tags" in data)
|
|
6431
|
+
else if ("tags" in data) {
|
|
6432
|
+
const tags = transformToolRouterTagsParams(data.tags);
|
|
6433
|
+
if (tags) acc[key] = { tags };
|
|
6434
|
+
}
|
|
6434
6435
|
} else throw new ValidationError(parsedResult.error.message);
|
|
6435
6436
|
} else acc[key] = { enable: params[key] };
|
|
6436
6437
|
return acc;
|
|
6437
6438
|
}, {});
|
|
6438
6439
|
};
|
|
6440
|
+
const transformToolRouterTagsParams = (params) => {
|
|
6441
|
+
if (!params) return;
|
|
6442
|
+
if (Array.isArray(params)) return { enable: params };
|
|
6443
|
+
else if (typeof params === "object") return {
|
|
6444
|
+
enable: params.enable,
|
|
6445
|
+
disable: params.disable
|
|
6446
|
+
};
|
|
6447
|
+
};
|
|
6439
6448
|
|
|
6440
6449
|
//#endregion
|
|
6441
6450
|
//#region src/models/ToolRouter.ts
|
|
@@ -6485,7 +6494,8 @@ var ToolRouter = class {
|
|
|
6485
6494
|
cursor: toolkitOptions.data.nextCursor,
|
|
6486
6495
|
limit: toolkitOptions.data.limit,
|
|
6487
6496
|
toolkits: toolkitOptions.data.toolkits,
|
|
6488
|
-
is_connected: toolkitOptions.data.isConnected
|
|
6497
|
+
is_connected: toolkitOptions.data.isConnected,
|
|
6498
|
+
search: toolkitOptions.data.search
|
|
6489
6499
|
});
|
|
6490
6500
|
return {
|
|
6491
6501
|
items: result.items.map((item) => {
|
|
@@ -6582,6 +6592,7 @@ var ToolRouter = class {
|
|
|
6582
6592
|
const routerConfig = ToolRouterCreateSessionConfigSchema.parse(config ?? {});
|
|
6583
6593
|
const manageConnectedAccounts = typeof routerConfig.manageConnections === "boolean" ? routerConfig.manageConnections : routerConfig.manageConnections?.enable ?? true;
|
|
6584
6594
|
const toolkits = Array.isArray(routerConfig.toolkits) ? { enable: routerConfig.toolkits } : routerConfig.toolkits;
|
|
6595
|
+
const tags = transformToolRouterTagsParams(routerConfig.tags);
|
|
6585
6596
|
const tools = transformToolRouterToolsParams(routerConfig.tools);
|
|
6586
6597
|
const payload = {
|
|
6587
6598
|
user_id: userId,
|
|
@@ -6589,7 +6600,7 @@ var ToolRouter = class {
|
|
|
6589
6600
|
auth_configs: routerConfig.authConfigs,
|
|
6590
6601
|
connected_accounts: routerConfig.connectedAccounts,
|
|
6591
6602
|
tools,
|
|
6592
|
-
tags
|
|
6603
|
+
tags,
|
|
6593
6604
|
manage_connections: {
|
|
6594
6605
|
enable: manageConnectedAccounts,
|
|
6595
6606
|
callback_url: typeof routerConfig.manageConnections === "object" ? routerConfig.manageConnections.callbackUrl : void 0
|
|
@@ -6773,13 +6784,12 @@ var Composio = class Composio {
|
|
|
6773
6784
|
this.files = new Files(this.client);
|
|
6774
6785
|
this.connectedAccounts = new ConnectedAccounts(this.client);
|
|
6775
6786
|
this.toolRouter = new ToolRouter(this.client, this.config);
|
|
6776
|
-
this.toolRouter.create.bind(this.toolRouter);
|
|
6777
|
-
this.toolRouter.use.bind(this.toolRouter);
|
|
6778
6787
|
/**
|
|
6779
6788
|
* Initialize tool router methods
|
|
6789
|
+
* Properly bind the methods to maintain the correct 'this' context
|
|
6780
6790
|
*/
|
|
6781
|
-
this.create = this.toolRouter.create;
|
|
6782
|
-
this.use = this.toolRouter.use;
|
|
6791
|
+
this.create = this.toolRouter.create.bind(this.toolRouter);
|
|
6792
|
+
this.use = this.toolRouter.use.bind(this.toolRouter);
|
|
6783
6793
|
/**
|
|
6784
6794
|
* Initialize Experimental features
|
|
6785
6795
|
*/
|
|
@@ -7904,4 +7914,4 @@ var MCP = class {
|
|
|
7904
7914
|
};
|
|
7905
7915
|
|
|
7906
7916
|
//#endregion
|
|
7907
|
-
export { AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParamsSchema, AuthConfigListResponseSchema, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigTypes, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeTypes, BaseAgenticProvider, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParamsSchema, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionDataSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatuses, CreateAuthConfigParamsSchema, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParamsSchema, CustomConnectionDataSchema, CustomCreateResponseSchema, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionDataSchema, DefaultCreateConnectedAccountParamsSchema, GenerateURLParamsSchema, GenerateURLResponseSchema, IncomingTriggerPayloadSchema, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptionsSchema, MCPGenerateURLParamsSchema, MCPGetServerParamsSchema, MCPMultiAppServerSchema, MCPServerCreateResponseSchema, MCPServerListResponseSchema, MCPServerSchema, MCPServerTypeSchema, MCPServerUpdateParamsSchema, MCPSingleAppServerSchema, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponseSchema, McpListResponseSchema, McpRetrieveResponseSchema, McpUpdateResponseSchema, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, RedirectableAuthSchemeSchema, SDKErrorCodes, ToolErrorCodes, ToolExecuteMetaParamsSchema, ToolExecuteParamsSchema, ToolExecuteResponseSchema, ToolKitItemSchema, ToolKitListResponseSchema, ToolKitMetaSchema, ToolListParamsSchema, ToolListResponseSchema, ToolProxyParamsSchema, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfigSchema,
|
|
7917
|
+
export { AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParamsSchema, AuthConfigListResponseSchema, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigTypes, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeTypes, BaseAgenticProvider, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParamsSchema, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionDataSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatuses, CreateAuthConfigParamsSchema, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParamsSchema, CustomConnectionDataSchema, CustomCreateResponseSchema, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionDataSchema, DefaultCreateConnectedAccountParamsSchema, GenerateURLParamsSchema, GenerateURLResponseSchema, IncomingTriggerPayloadSchema, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptionsSchema, MCPGenerateURLParamsSchema, MCPGetServerParamsSchema, MCPMultiAppServerSchema, MCPServerCreateResponseSchema, MCPServerListResponseSchema, MCPServerSchema, MCPServerTypeSchema, MCPServerUpdateParamsSchema, MCPSingleAppServerSchema, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponseSchema, McpListResponseSchema, McpRetrieveResponseSchema, McpUpdateResponseSchema, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, RedirectableAuthSchemeSchema, SDKErrorCodes, ToolErrorCodes, ToolExecuteMetaParamsSchema, ToolExecuteParamsSchema, ToolExecuteResponseSchema, ToolKitItemSchema, ToolKitListResponseSchema, ToolKitMetaSchema, ToolListParamsSchema, ToolListResponseSchema, ToolProxyParamsSchema, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsParamSchema, ToolSchema, ToolkitAuthConfigDetailsSchema, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponseSchema, ToolkitCategorySchema, ToolkitConnectionStateSchema, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersionSchema, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnumSchema, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersionsSchema, ToolkitsListParamsSchema, TriggerErrorCodes, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatuses, TriggerSubscribeParamSchema, TriggerTypeSchema, TriggersTypeListParamsSchema, TriggersTypeListResponseSchema, ValidationError, ValidationErrorCodes, VerifyWebhookParamsSchema, constants_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger_default as logger, removeNonRequiredProperties };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"zod": "^3.25 || ^4"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@composio/client": "0.1.0-alpha.
|
|
47
|
+
"@composio/client": "0.1.0-alpha.52",
|
|
48
48
|
"@types/json-schema": "^7.0.15",
|
|
49
49
|
"chalk": "^4.1.2",
|
|
50
50
|
"openai": "^5.16.0",
|