@composio/core 0.5.4 → 0.5.5
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/{fileUtils-BbE-aKW0.cjs → fileUtils-2bnnG7dq.cjs} +12 -16
- package/dist/{fileUtils-BxTR8M_c.mjs → fileUtils-Dbn-fnh5.mjs} +12 -16
- package/dist/index.cjs +38 -12
- package/dist/index.d.cts +71 -8
- package/dist/index.d.mts +71 -8
- package/dist/index.mjs +38 -13
- package/dist/models/Files.node.cjs +1 -1
- package/dist/models/Files.node.mjs +1 -1
- package/package.json +2 -2
|
@@ -784,28 +784,24 @@ const readFileContentFromURL = async (path) => {
|
|
|
784
784
|
};
|
|
785
785
|
};
|
|
786
786
|
const uploadFileToS3 = async (fileName, content, toolSlug, toolkitSlug, mimeType, client) => {
|
|
787
|
-
const
|
|
787
|
+
const { key, new_presigned_url } = await client.files.createPresignedURL({
|
|
788
788
|
filename: fileName,
|
|
789
789
|
mimetype: mimeType,
|
|
790
790
|
md5: node_crypto.default.createHash("md5").update(Buffer.from(content, "base64")).digest("hex"),
|
|
791
791
|
tool_slug: toolSlug,
|
|
792
792
|
toolkit_slug: toolkitSlug
|
|
793
793
|
});
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
});
|
|
807
|
-
if (!uploadResponse.ok) throw new Error(`Failed to upload file to S3: ${uploadResponse.statusText}`);
|
|
808
|
-
} else logger_default.debug(`File already exists in S3: ${key}`);
|
|
794
|
+
logger_default.debug(`Uploading ${key} file to S3: ${key}`);
|
|
795
|
+
const buffer = Buffer.from(content, "base64");
|
|
796
|
+
const uploadResponse = await fetch(new_presigned_url, {
|
|
797
|
+
method: "PUT",
|
|
798
|
+
body: buffer,
|
|
799
|
+
headers: {
|
|
800
|
+
"Content-Type": mimeType,
|
|
801
|
+
"Content-Length": buffer.length.toString()
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
if (!uploadResponse.ok) throw new Error(`Failed to upload file to S3: ${uploadResponse.statusText}`);
|
|
809
805
|
return key;
|
|
810
806
|
};
|
|
811
807
|
const readFile = async (file) => {
|
|
@@ -782,28 +782,24 @@ const readFileContentFromURL = async (path) => {
|
|
|
782
782
|
};
|
|
783
783
|
};
|
|
784
784
|
const uploadFileToS3 = async (fileName, content, toolSlug, toolkitSlug, mimeType, client) => {
|
|
785
|
-
const
|
|
785
|
+
const { key, new_presigned_url } = await client.files.createPresignedURL({
|
|
786
786
|
filename: fileName,
|
|
787
787
|
mimetype: mimeType,
|
|
788
788
|
md5: crypto.createHash("md5").update(Buffer.from(content, "base64")).digest("hex"),
|
|
789
789
|
tool_slug: toolSlug,
|
|
790
790
|
toolkit_slug: toolkitSlug
|
|
791
791
|
});
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
804
|
-
});
|
|
805
|
-
if (!uploadResponse.ok) throw new Error(`Failed to upload file to S3: ${uploadResponse.statusText}`);
|
|
806
|
-
} else logger_default.debug(`File already exists in S3: ${key}`);
|
|
792
|
+
logger_default.debug(`Uploading ${key} file to S3: ${key}`);
|
|
793
|
+
const buffer = Buffer.from(content, "base64");
|
|
794
|
+
const uploadResponse = await fetch(new_presigned_url, {
|
|
795
|
+
method: "PUT",
|
|
796
|
+
body: buffer,
|
|
797
|
+
headers: {
|
|
798
|
+
"Content-Type": mimeType,
|
|
799
|
+
"Content-Length": buffer.length.toString()
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
if (!uploadResponse.ok) throw new Error(`Failed to upload file to S3: ${uploadResponse.statusText}`);
|
|
807
803
|
return key;
|
|
808
804
|
};
|
|
809
805
|
const readFile = async (file) => {
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CQwRTUmo.cjs');
|
|
2
|
-
const require_fileUtils = require('./fileUtils-
|
|
2
|
+
const require_fileUtils = require('./fileUtils-2bnnG7dq.cjs');
|
|
3
3
|
let _composio_client = require("@composio/client");
|
|
4
4
|
_composio_client = require_chunk.__toESM(_composio_client);
|
|
5
5
|
let zod_v3 = require("zod/v3");
|
|
@@ -832,7 +832,8 @@ const ToolListParamsSchema = zod_v3.z.object({
|
|
|
832
832
|
tags: zod_v3.z.array(zod_v3.z.string()).optional(),
|
|
833
833
|
limit: zod_v3.z.number().optional(),
|
|
834
834
|
search: zod_v3.z.string().optional(),
|
|
835
|
-
authConfigIds: zod_v3.z.array(zod_v3.z.string()).optional()
|
|
835
|
+
authConfigIds: zod_v3.z.array(zod_v3.z.string()).optional(),
|
|
836
|
+
important: zod_v3.z.boolean().optional()
|
|
836
837
|
});
|
|
837
838
|
/**
|
|
838
839
|
* CustomAuthParams is the parameters for the custom authentication.
|
|
@@ -1453,6 +1454,10 @@ const ConnectedAccountListResponseSchema = zod_v3.z.object({
|
|
|
1453
1454
|
});
|
|
1454
1455
|
const CreateConnectedAccountLinkOptionsSchema = zod_v3.z.object({ callbackUrl: zod_v3.z.string().optional() });
|
|
1455
1456
|
const CreateConnectedAccountLinkResponseSchema = zod_v3.z.object({ redirectUrl: zod_v3.z.string() });
|
|
1457
|
+
const ConnectedAccountRefreshOptionsSchema = zod_v3.z.object({
|
|
1458
|
+
redirectUrl: zod_v3.z.string().optional(),
|
|
1459
|
+
validateCredentials: zod_v3.z.boolean().optional()
|
|
1460
|
+
});
|
|
1456
1461
|
|
|
1457
1462
|
//#endregion
|
|
1458
1463
|
//#region src/utils/transform.ts
|
|
@@ -2199,6 +2204,8 @@ var Tools = class {
|
|
|
2199
2204
|
if ("tools" in query && "toolkits" in query) throw new ValidationError("Invalid tool list parameters. You should not use tools and toolkits filter together.");
|
|
2200
2205
|
const queryParams = ToolListParamsSchema.safeParse(query);
|
|
2201
2206
|
if (queryParams.error) throw new ValidationError("Invalid tool list parameters", { cause: queryParams.error });
|
|
2207
|
+
const shouldAutoApplyImportant = "toolkits" in queryParams.data && !("tools" in queryParams.data) && !("tags" in queryParams.data) && !("search" in queryParams.data) && queryParams.data.important !== false;
|
|
2208
|
+
const effectiveImportant = "important" in queryParams.data ? queryParams.data.important : shouldAutoApplyImportant;
|
|
2202
2209
|
if (!("tools" in queryParams.data || "toolkits" in queryParams.data || "search" in queryParams.data || "authConfigIds" in queryParams.data)) throw new ValidationError("Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search, authConfigIds");
|
|
2203
2210
|
let limit = "limit" in queryParams.data ? queryParams.data.limit : void 0;
|
|
2204
2211
|
if ("tools" in queryParams.data) limit = 9999;
|
|
@@ -2210,6 +2217,7 @@ var Tools = class {
|
|
|
2210
2217
|
..."scopes" in queryParams.data ? { scopes: queryParams.data.scopes } : {},
|
|
2211
2218
|
..."search" in queryParams.data ? { search: queryParams.data.search } : {},
|
|
2212
2219
|
..."authConfigIds" in queryParams.data ? { auth_config_ids: queryParams.data.authConfigIds } : {},
|
|
2220
|
+
...effectiveImportant ? { important: "true" } : {},
|
|
2213
2221
|
toolkit_versions: this.toolkitVersions
|
|
2214
2222
|
};
|
|
2215
2223
|
require_fileUtils.logger_default.debug(`Fetching tools with filters: ${JSON.stringify(filters, null, 2)}`);
|
|
@@ -2803,7 +2811,8 @@ const ToolkitRetrieveResponseSchema = zod_v3.z.object({
|
|
|
2803
2811
|
composioManagedAuthSchemes: zod_v3.z.array(zod_v3.z.string()).optional(),
|
|
2804
2812
|
authConfigDetails: zod_v3.z.array(ToolkitAuthConfigDetailsSchema).optional(),
|
|
2805
2813
|
baseUrl: zod_v3.z.string().optional(),
|
|
2806
|
-
getCurrentUserEndpoint: zod_v3.z.string().optional()
|
|
2814
|
+
getCurrentUserEndpoint: zod_v3.z.string().optional(),
|
|
2815
|
+
getCurrentUserEndpointMethod: zod_v3.z.string().optional()
|
|
2807
2816
|
});
|
|
2808
2817
|
/**
|
|
2809
2818
|
* Toolkit categories response
|
|
@@ -3500,8 +3509,17 @@ var ConnectedAccounts = class {
|
|
|
3500
3509
|
* const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
|
|
3501
3510
|
* ```
|
|
3502
3511
|
*/
|
|
3503
|
-
async refresh(nanoid) {
|
|
3504
|
-
|
|
3512
|
+
async refresh(nanoid, options) {
|
|
3513
|
+
let params = void 0;
|
|
3514
|
+
if (options) {
|
|
3515
|
+
const parsedOptions = ConnectedAccountRefreshOptionsSchema.safeParse(options);
|
|
3516
|
+
if (!parsedOptions.success) throw new ValidationError("Failed to parse connected account refresh options", { cause: parsedOptions.error });
|
|
3517
|
+
params = {
|
|
3518
|
+
body_redirect_url: parsedOptions.data.redirectUrl,
|
|
3519
|
+
validate_credentials: parsedOptions.data.validateCredentials
|
|
3520
|
+
};
|
|
3521
|
+
}
|
|
3522
|
+
return this.client.connectedAccounts.refresh(nanoid, params);
|
|
3505
3523
|
}
|
|
3506
3524
|
/**
|
|
3507
3525
|
* Update the status of a connected account
|
|
@@ -3618,7 +3636,8 @@ const transformToolkitRetrieveResponse = (response) => {
|
|
|
3618
3636
|
proxy: { baseUrl: authConfig.proxy?.base_url }
|
|
3619
3637
|
})),
|
|
3620
3638
|
baseUrl: response$1.base_url,
|
|
3621
|
-
getCurrentUserEndpoint: response$1.get_current_user_endpoint
|
|
3639
|
+
getCurrentUserEndpoint: response$1.get_current_user_endpoint,
|
|
3640
|
+
getCurrentUserEndpointMethod: response$1.get_current_user_endpoint_method
|
|
3622
3641
|
}));
|
|
3623
3642
|
};
|
|
3624
3643
|
const transformToolkitRetrieveCategoriesResponse = (response) => {
|
|
@@ -3824,7 +3843,7 @@ const TriggerInstanceListActiveParamsSchema = zod_v3.z.object({
|
|
|
3824
3843
|
authConfigIds: zod_v3.z.array(zod_v3.z.string()).nullable().optional(),
|
|
3825
3844
|
connectedAccountIds: zod_v3.z.array(zod_v3.z.string()).nullable().optional(),
|
|
3826
3845
|
limit: zod_v3.z.number().optional(),
|
|
3827
|
-
|
|
3846
|
+
cursor: zod_v3.z.string().optional(),
|
|
3828
3847
|
showDisabled: zod_v3.z.boolean().nullable().optional(),
|
|
3829
3848
|
triggerIds: zod_v3.z.array(zod_v3.z.string()).nullable().optional(),
|
|
3830
3849
|
triggerNames: zod_v3.z.array(zod_v3.z.string()).nullable().optional()
|
|
@@ -4268,8 +4287,8 @@ var Triggers = class {
|
|
|
4268
4287
|
return transformTriggerInstanceListActiveResponse(await this.client.triggerInstances.listActive(query ? {
|
|
4269
4288
|
auth_config_ids: parsedParams.data.authConfigIds,
|
|
4270
4289
|
connected_account_ids: parsedParams.data.connectedAccountIds,
|
|
4290
|
+
cursor: parsedParams.data.cursor,
|
|
4271
4291
|
limit: parsedParams.data.limit,
|
|
4272
|
-
page: parsedParams.data.page,
|
|
4273
4292
|
show_disabled: parsedParams.data.showDisabled,
|
|
4274
4293
|
trigger_ids: parsedParams.data.triggerIds,
|
|
4275
4294
|
trigger_names: parsedParams.data.triggerNames
|
|
@@ -5709,7 +5728,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5709
5728
|
|
|
5710
5729
|
//#endregion
|
|
5711
5730
|
//#region package.json
|
|
5712
|
-
var version = "0.5.
|
|
5731
|
+
var version = "0.5.5";
|
|
5713
5732
|
|
|
5714
5733
|
//#endregion
|
|
5715
5734
|
//#region src/utils/session.ts
|
|
@@ -5828,7 +5847,8 @@ const ToolRouterCreateSessionConfigSchema = zod_v3.default.object({
|
|
|
5828
5847
|
workbench: zod_v3.default.object({
|
|
5829
5848
|
enableProxyExecution: zod_v3.default.boolean().optional().describe("Whether to enable proxy execution in the tool router session"),
|
|
5830
5849
|
autoOffloadThreshold: zod_v3.default.number().optional().describe("The auto offload threshold in characters for the tool execution to be moved into workbench")
|
|
5831
|
-
}).optional().describe("The execution config for the tool router session")
|
|
5850
|
+
}).optional().describe("The execution config for the tool router session"),
|
|
5851
|
+
experimental: zod_v3.default.object({ assistivePrompt: zod_v3.default.object({ userTimezone: zod_v3.default.string().optional().describe("IANA timezone identifier (e.g., \"America/New_York\", \"Europe/London\") for timezone-aware assistive prompts") }).optional().describe("Configuration for assistive prompt generation") }).optional().describe("Experimental features configuration - not stable, may be modified or removed")
|
|
5832
5852
|
}).partial().describe("The config for the tool router session");
|
|
5833
5853
|
const ToolkitConnectionStateSchema = zod_v3.default.object({
|
|
5834
5854
|
slug: zod_v3.default.string().describe("The slug of a toolkit"),
|
|
@@ -6072,15 +6092,18 @@ var ToolRouter = class {
|
|
|
6072
6092
|
tools: transformToolRouterToolsParams(routerConfig.tools),
|
|
6073
6093
|
tags: transformToolRouterTagsParams(routerConfig.tags),
|
|
6074
6094
|
manage_connections: transformToolRouterManageConnectionsParams(routerConfig.manageConnections),
|
|
6075
|
-
workbench: transformToolRouterWorkbenchParams(routerConfig.workbench)
|
|
6095
|
+
workbench: transformToolRouterWorkbenchParams(routerConfig.workbench),
|
|
6096
|
+
experimental: routerConfig.experimental?.assistivePrompt?.userTimezone ? { assistive_prompt_config: { user_timezone: routerConfig.experimental.assistivePrompt.userTimezone } } : void 0
|
|
6076
6097
|
};
|
|
6077
6098
|
const session = await this.client.toolRouter.session.create(payload);
|
|
6099
|
+
const experimental = session.experimental ? { assistivePrompt: session.experimental.assistive_prompt } : void 0;
|
|
6078
6100
|
return {
|
|
6079
6101
|
sessionId: session.session_id,
|
|
6080
6102
|
mcp: this.createMCPServerConfig(session.mcp),
|
|
6081
6103
|
tools: this.createToolsFn(session.session_id),
|
|
6082
6104
|
authorize: this.createAuthorizeFn(session.session_id),
|
|
6083
|
-
toolkits: this.createToolkitsFn(session.session_id)
|
|
6105
|
+
toolkits: this.createToolkitsFn(session.session_id),
|
|
6106
|
+
experimental
|
|
6084
6107
|
};
|
|
6085
6108
|
}
|
|
6086
6109
|
/**
|
|
@@ -6299,6 +6322,8 @@ var Composio = class Composio {
|
|
|
6299
6322
|
* The new instance inherits all configuration from the parent instance (apiKey, baseURL, provider, etc.)
|
|
6300
6323
|
* but allows you to specify custom request options that will be used for all API calls made through this session.
|
|
6301
6324
|
*
|
|
6325
|
+
* @deprecated DEPRECATED: This method will be removed in a future version of the SDK.
|
|
6326
|
+
*
|
|
6302
6327
|
* @param {MergedRequestInit} fetchOptions - Custom request options to be used for all API calls in this session.
|
|
6303
6328
|
* This follows the Fetch API RequestInit interface with additional options.
|
|
6304
6329
|
* @returns {Composio<TProvider>} A new Composio instance with the custom request options applied.
|
|
@@ -6831,6 +6856,7 @@ exports.ConnectedAccountAuthConfigSchema = ConnectedAccountAuthConfigSchema;
|
|
|
6831
6856
|
exports.ConnectedAccountErrorCodes = ConnectedAccountErrorCodes;
|
|
6832
6857
|
exports.ConnectedAccountListParamsSchema = ConnectedAccountListParamsSchema;
|
|
6833
6858
|
exports.ConnectedAccountListResponseSchema = ConnectedAccountListResponseSchema;
|
|
6859
|
+
exports.ConnectedAccountRefreshOptionsSchema = ConnectedAccountRefreshOptionsSchema;
|
|
6834
6860
|
exports.ConnectedAccountRetrieveResponseSchema = ConnectedAccountRetrieveResponseSchema;
|
|
6835
6861
|
exports.ConnectedAccountStatusSchema = ConnectedAccountStatusSchema;
|
|
6836
6862
|
exports.ConnectedAccountStatuses = ConnectedAccountStatuses;
|
package/dist/index.d.cts
CHANGED
|
@@ -566,6 +566,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
|
|
|
566
566
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
567
567
|
search: z.ZodOptional<z.ZodString>;
|
|
568
568
|
authConfigIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
569
|
+
important: z.ZodOptional<z.ZodBoolean>;
|
|
569
570
|
}, "strip", z.ZodTypeAny, {
|
|
570
571
|
tags?: string[] | undefined;
|
|
571
572
|
scopes?: string[] | undefined;
|
|
@@ -574,6 +575,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
|
|
|
574
575
|
limit?: number | undefined;
|
|
575
576
|
search?: string | undefined;
|
|
576
577
|
authConfigIds?: string[] | undefined;
|
|
578
|
+
important?: boolean | undefined;
|
|
577
579
|
}, {
|
|
578
580
|
tags?: string[] | undefined;
|
|
579
581
|
scopes?: string[] | undefined;
|
|
@@ -582,6 +584,7 @@ declare const ToolListParamsSchema: z.ZodObject<{
|
|
|
582
584
|
limit?: number | undefined;
|
|
583
585
|
search?: string | undefined;
|
|
584
586
|
authConfigIds?: string[] | undefined;
|
|
587
|
+
important?: boolean | undefined;
|
|
585
588
|
}>;
|
|
586
589
|
type BaseParams = {
|
|
587
590
|
limit?: number;
|
|
@@ -600,11 +603,13 @@ type ToolkitsOnlyParams = {
|
|
|
600
603
|
toolkits: string[];
|
|
601
604
|
tools?: never;
|
|
602
605
|
scopes?: never;
|
|
606
|
+
important?: boolean;
|
|
603
607
|
} & Pick<BaseParams, 'limit' | 'search' | 'tags'>;
|
|
604
608
|
type ToolkitScopeOnlyParams = {
|
|
605
609
|
toolkits: [string];
|
|
606
610
|
tools?: never;
|
|
607
611
|
scopes: string[];
|
|
612
|
+
important?: boolean;
|
|
608
613
|
} & Pick<BaseParams, 'limit' | 'search' | 'tags'>;
|
|
609
614
|
type TagsOnlyParams = {
|
|
610
615
|
toolkits?: string[];
|
|
@@ -26311,8 +26316,8 @@ declare const MCPServerListResponseSchema: z.ZodObject<{
|
|
|
26311
26316
|
toolkits: string[];
|
|
26312
26317
|
};
|
|
26313
26318
|
}[];
|
|
26314
|
-
page: number;
|
|
26315
26319
|
total: number;
|
|
26320
|
+
page: number;
|
|
26316
26321
|
pageSize: number;
|
|
26317
26322
|
}, {
|
|
26318
26323
|
items: {
|
|
@@ -26331,8 +26336,8 @@ declare const MCPServerListResponseSchema: z.ZodObject<{
|
|
|
26331
26336
|
};
|
|
26332
26337
|
status?: "error" | "active" | "inactive" | undefined;
|
|
26333
26338
|
}[];
|
|
26334
|
-
page: number;
|
|
26335
26339
|
total: number;
|
|
26340
|
+
page: number;
|
|
26336
26341
|
pageSize: number;
|
|
26337
26342
|
}>;
|
|
26338
26343
|
type MCPServerListResponse = z.infer<typeof MCPServerListResponseSchema>;
|
|
@@ -28408,6 +28413,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
28408
28413
|
}>, "many">>;
|
|
28409
28414
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
28410
28415
|
getCurrentUserEndpoint: z.ZodOptional<z.ZodString>;
|
|
28416
|
+
getCurrentUserEndpointMethod: z.ZodOptional<z.ZodString>;
|
|
28411
28417
|
}, "strip", z.ZodTypeAny, {
|
|
28412
28418
|
slug: string;
|
|
28413
28419
|
name: string;
|
|
@@ -28474,6 +28480,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
28474
28480
|
} | undefined;
|
|
28475
28481
|
}[] | undefined;
|
|
28476
28482
|
getCurrentUserEndpoint?: string | undefined;
|
|
28483
|
+
getCurrentUserEndpointMethod?: string | undefined;
|
|
28477
28484
|
}, {
|
|
28478
28485
|
slug: string;
|
|
28479
28486
|
name: string;
|
|
@@ -28540,6 +28547,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
28540
28547
|
} | undefined;
|
|
28541
28548
|
}[] | undefined;
|
|
28542
28549
|
getCurrentUserEndpoint?: string | undefined;
|
|
28550
|
+
getCurrentUserEndpointMethod?: string | undefined;
|
|
28543
28551
|
}>;
|
|
28544
28552
|
type ToolkitAuthField = z.infer<typeof ToolkitAuthFieldSchema>;
|
|
28545
28553
|
type ToolkitAuthConfigDetails = z.infer<typeof ToolkitAuthConfigDetailsSchema>;
|
|
@@ -28872,6 +28880,17 @@ declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
|
28872
28880
|
redirectUrl: string;
|
|
28873
28881
|
}>;
|
|
28874
28882
|
type CreateConnectedAccountLinkResponse = z.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
28883
|
+
declare const ConnectedAccountRefreshOptionsSchema: z.ZodObject<{
|
|
28884
|
+
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
28885
|
+
validateCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
28886
|
+
}, "strip", z.ZodTypeAny, {
|
|
28887
|
+
redirectUrl?: string | undefined;
|
|
28888
|
+
validateCredentials?: boolean | undefined;
|
|
28889
|
+
}, {
|
|
28890
|
+
redirectUrl?: string | undefined;
|
|
28891
|
+
validateCredentials?: boolean | undefined;
|
|
28892
|
+
}>;
|
|
28893
|
+
type ConnectedAccountRefreshOptions = z.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
28875
28894
|
//#endregion
|
|
28876
28895
|
//#region src/types/connectionRequest.types.d.ts
|
|
28877
28896
|
interface ConnectionRequestState {
|
|
@@ -29728,23 +29747,23 @@ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
|
|
|
29728
29747
|
authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
29729
29748
|
connectedAccountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
29730
29749
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
29731
|
-
|
|
29750
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
29732
29751
|
showDisabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29733
29752
|
triggerIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
29734
29753
|
triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
29735
29754
|
}, "strip", z.ZodTypeAny, {
|
|
29736
29755
|
limit?: number | undefined;
|
|
29737
29756
|
authConfigIds?: string[] | null | undefined;
|
|
29757
|
+
cursor?: string | undefined;
|
|
29738
29758
|
connectedAccountIds?: string[] | null | undefined;
|
|
29739
|
-
page?: number | undefined;
|
|
29740
29759
|
showDisabled?: boolean | null | undefined;
|
|
29741
29760
|
triggerIds?: string[] | null | undefined;
|
|
29742
29761
|
triggerNames?: string[] | null | undefined;
|
|
29743
29762
|
}, {
|
|
29744
29763
|
limit?: number | undefined;
|
|
29745
29764
|
authConfigIds?: string[] | null | undefined;
|
|
29765
|
+
cursor?: string | undefined;
|
|
29746
29766
|
connectedAccountIds?: string[] | null | undefined;
|
|
29747
|
-
page?: number | undefined;
|
|
29748
29767
|
showDisabled?: boolean | null | undefined;
|
|
29749
29768
|
triggerIds?: string[] | null | undefined;
|
|
29750
29769
|
triggerNames?: string[] | null | undefined;
|
|
@@ -31120,7 +31139,7 @@ declare class ConnectedAccounts {
|
|
|
31120
31139
|
* const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
|
|
31121
31140
|
* ```
|
|
31122
31141
|
*/
|
|
31123
|
-
refresh(nanoid: string): Promise<ConnectedAccountRefreshResponse>;
|
|
31142
|
+
refresh(nanoid: string, options?: ConnectedAccountRefreshOptions): Promise<ConnectedAccountRefreshResponse>;
|
|
31124
31143
|
/**
|
|
31125
31144
|
* Update the status of a connected account
|
|
31126
31145
|
* @param {string} nanoid - Unique identifier of the connected account
|
|
@@ -32358,6 +32377,23 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
|
32358
32377
|
enableProxyExecution?: boolean | undefined;
|
|
32359
32378
|
autoOffloadThreshold?: number | undefined;
|
|
32360
32379
|
}>>>;
|
|
32380
|
+
experimental: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
|
|
32381
|
+
assistivePrompt: z$1.ZodOptional<z$1.ZodObject<{
|
|
32382
|
+
userTimezone: z$1.ZodOptional<z$1.ZodString>;
|
|
32383
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
32384
|
+
userTimezone?: string | undefined;
|
|
32385
|
+
}, {
|
|
32386
|
+
userTimezone?: string | undefined;
|
|
32387
|
+
}>>;
|
|
32388
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
32389
|
+
assistivePrompt?: {
|
|
32390
|
+
userTimezone?: string | undefined;
|
|
32391
|
+
} | undefined;
|
|
32392
|
+
}, {
|
|
32393
|
+
assistivePrompt?: {
|
|
32394
|
+
userTimezone?: string | undefined;
|
|
32395
|
+
} | undefined;
|
|
32396
|
+
}>>>;
|
|
32361
32397
|
}, "strip", z$1.ZodTypeAny, {
|
|
32362
32398
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32363
32399
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -32389,6 +32425,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
|
32389
32425
|
enableProxyExecution?: boolean | undefined;
|
|
32390
32426
|
autoOffloadThreshold?: number | undefined;
|
|
32391
32427
|
} | undefined;
|
|
32428
|
+
experimental?: {
|
|
32429
|
+
assistivePrompt?: {
|
|
32430
|
+
userTimezone?: string | undefined;
|
|
32431
|
+
} | undefined;
|
|
32432
|
+
} | undefined;
|
|
32392
32433
|
}, {
|
|
32393
32434
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32394
32435
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -32420,6 +32461,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
|
|
|
32420
32461
|
enableProxyExecution?: boolean | undefined;
|
|
32421
32462
|
autoOffloadThreshold?: number | undefined;
|
|
32422
32463
|
} | undefined;
|
|
32464
|
+
experimental?: {
|
|
32465
|
+
assistivePrompt?: {
|
|
32466
|
+
userTimezone?: string | undefined;
|
|
32467
|
+
} | undefined;
|
|
32468
|
+
} | undefined;
|
|
32423
32469
|
}>;
|
|
32424
32470
|
/**
|
|
32425
32471
|
* The config for the tool router session.
|
|
@@ -32700,6 +32746,16 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
|
32700
32746
|
}>;
|
|
32701
32747
|
type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
32702
32748
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
32749
|
+
/**
|
|
32750
|
+
* Experimental features response from session creation.
|
|
32751
|
+
* Only returned on session creation, not on GET.
|
|
32752
|
+
*/
|
|
32753
|
+
interface ToolRouterSessionExperimental {
|
|
32754
|
+
/**
|
|
32755
|
+
* The assistive system prompt to inject into your agent for optimal tool router usage.
|
|
32756
|
+
*/
|
|
32757
|
+
assistivePrompt?: string;
|
|
32758
|
+
}
|
|
32703
32759
|
interface ToolRouterSession<TToolCollection$1, TTool$1, TProvider extends BaseComposioProvider<TToolCollection$1, TTool$1, unknown>> {
|
|
32704
32760
|
/**
|
|
32705
32761
|
* The session id of the tool router session.
|
|
@@ -32725,6 +32781,11 @@ interface ToolRouterSession<TToolCollection$1, TTool$1, TProvider extends BaseCo
|
|
|
32725
32781
|
* Supports pagination and filtering by toolkit slugs.
|
|
32726
32782
|
*/
|
|
32727
32783
|
toolkits: ToolRouterToolkitsFn;
|
|
32784
|
+
/**
|
|
32785
|
+
* Experimental features including the generated system prompt.
|
|
32786
|
+
* Only returned on session creation, not on GET.
|
|
32787
|
+
*/
|
|
32788
|
+
experimental?: ToolRouterSessionExperimental;
|
|
32728
32789
|
}
|
|
32729
32790
|
//#endregion
|
|
32730
32791
|
//#region src/models/ToolRouter.d.ts
|
|
@@ -32825,7 +32886,7 @@ declare class ToolRouter<TToolCollection$1, TTool$1, TProvider extends BaseCompo
|
|
|
32825
32886
|
* console.log(session.mcp.headers);
|
|
32826
32887
|
* ```
|
|
32827
32888
|
*/
|
|
32828
|
-
use(id: string): Promise<ToolRouterSession<TToolCollection$1, TTool$1, TProvider>>;
|
|
32889
|
+
use(id: string): Promise<Omit<ToolRouterSession<TToolCollection$1, TTool$1, TProvider>, 'experimental'>>;
|
|
32829
32890
|
}
|
|
32830
32891
|
//#endregion
|
|
32831
32892
|
//#region src/composio.d.ts
|
|
@@ -33042,6 +33103,8 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
33042
33103
|
* The new instance inherits all configuration from the parent instance (apiKey, baseURL, provider, etc.)
|
|
33043
33104
|
* but allows you to specify custom request options that will be used for all API calls made through this session.
|
|
33044
33105
|
*
|
|
33106
|
+
* @deprecated DEPRECATED: This method will be removed in a future version of the SDK.
|
|
33107
|
+
*
|
|
33045
33108
|
* @param {MergedRequestInit} fetchOptions - Custom request options to be used for all API calls in this session.
|
|
33046
33109
|
* This follows the Fetch API RequestInit interface with additional options.
|
|
33047
33110
|
* @returns {Composio<TProvider>} A new Composio instance with the custom request options applied.
|
|
@@ -33668,4 +33731,4 @@ declare class ComposioWebhookPayloadError extends ComposioError {
|
|
|
33668
33731
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
33669
33732
|
}
|
|
33670
33733
|
//#endregion
|
|
33671
|
-
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, MetaToolArguments, 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, SessionExecuteMetaModifiers, SessionMetaToolOptions, 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, WebhookPayload, WebhookPayloadSchema, WebhookPayloadV1, WebhookPayloadV1Schema, WebhookPayloadV2, WebhookPayloadV2Schema, WebhookPayloadV3, WebhookPayloadV3Schema, WebhookVersion, WebhookVersions, afterExecuteMetaModifier, afterExecuteModifier, beforeExecuteMetaModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
|
33734
|
+
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, ConnectedAccountRefreshOptions, ConnectedAccountRefreshOptionsSchema, 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, MetaToolArguments, 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, SessionExecuteMetaModifiers, SessionMetaToolOptions, 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, ToolRouterSessionExperimental, 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, WebhookPayload, WebhookPayloadSchema, WebhookPayloadV1, WebhookPayloadV1Schema, WebhookPayloadV2, WebhookPayloadV2Schema, WebhookPayloadV3, WebhookPayloadV3Schema, WebhookVersion, WebhookVersions, afterExecuteMetaModifier, afterExecuteModifier, beforeExecuteMetaModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
package/dist/index.d.mts
CHANGED
|
@@ -563,6 +563,7 @@ declare const ToolListParamsSchema: z$1.ZodObject<{
|
|
|
563
563
|
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
564
564
|
search: z$1.ZodOptional<z$1.ZodString>;
|
|
565
565
|
authConfigIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
566
|
+
important: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
566
567
|
}, "strip", z$1.ZodTypeAny, {
|
|
567
568
|
tags?: string[] | undefined;
|
|
568
569
|
scopes?: string[] | undefined;
|
|
@@ -571,6 +572,7 @@ declare const ToolListParamsSchema: z$1.ZodObject<{
|
|
|
571
572
|
limit?: number | undefined;
|
|
572
573
|
search?: string | undefined;
|
|
573
574
|
authConfigIds?: string[] | undefined;
|
|
575
|
+
important?: boolean | undefined;
|
|
574
576
|
}, {
|
|
575
577
|
tags?: string[] | undefined;
|
|
576
578
|
scopes?: string[] | undefined;
|
|
@@ -579,6 +581,7 @@ declare const ToolListParamsSchema: z$1.ZodObject<{
|
|
|
579
581
|
limit?: number | undefined;
|
|
580
582
|
search?: string | undefined;
|
|
581
583
|
authConfigIds?: string[] | undefined;
|
|
584
|
+
important?: boolean | undefined;
|
|
582
585
|
}>;
|
|
583
586
|
type BaseParams = {
|
|
584
587
|
limit?: number;
|
|
@@ -597,11 +600,13 @@ type ToolkitsOnlyParams = {
|
|
|
597
600
|
toolkits: string[];
|
|
598
601
|
tools?: never;
|
|
599
602
|
scopes?: never;
|
|
603
|
+
important?: boolean;
|
|
600
604
|
} & Pick<BaseParams, 'limit' | 'search' | 'tags'>;
|
|
601
605
|
type ToolkitScopeOnlyParams = {
|
|
602
606
|
toolkits: [string];
|
|
603
607
|
tools?: never;
|
|
604
608
|
scopes: string[];
|
|
609
|
+
important?: boolean;
|
|
605
610
|
} & Pick<BaseParams, 'limit' | 'search' | 'tags'>;
|
|
606
611
|
type TagsOnlyParams = {
|
|
607
612
|
toolkits?: string[];
|
|
@@ -26308,8 +26313,8 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
|
|
|
26308
26313
|
toolkits: string[];
|
|
26309
26314
|
};
|
|
26310
26315
|
}[];
|
|
26311
|
-
page: number;
|
|
26312
26316
|
total: number;
|
|
26317
|
+
page: number;
|
|
26313
26318
|
pageSize: number;
|
|
26314
26319
|
}, {
|
|
26315
26320
|
items: {
|
|
@@ -26328,8 +26333,8 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
|
|
|
26328
26333
|
};
|
|
26329
26334
|
status?: "error" | "active" | "inactive" | undefined;
|
|
26330
26335
|
}[];
|
|
26331
|
-
page: number;
|
|
26332
26336
|
total: number;
|
|
26337
|
+
page: number;
|
|
26333
26338
|
pageSize: number;
|
|
26334
26339
|
}>;
|
|
26335
26340
|
type MCPServerListResponse = z$1.infer<typeof MCPServerListResponseSchema>;
|
|
@@ -28405,6 +28410,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
28405
28410
|
}>, "many">>;
|
|
28406
28411
|
baseUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
28407
28412
|
getCurrentUserEndpoint: z$1.ZodOptional<z$1.ZodString>;
|
|
28413
|
+
getCurrentUserEndpointMethod: z$1.ZodOptional<z$1.ZodString>;
|
|
28408
28414
|
}, "strip", z$1.ZodTypeAny, {
|
|
28409
28415
|
slug: string;
|
|
28410
28416
|
name: string;
|
|
@@ -28471,6 +28477,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
28471
28477
|
} | undefined;
|
|
28472
28478
|
}[] | undefined;
|
|
28473
28479
|
getCurrentUserEndpoint?: string | undefined;
|
|
28480
|
+
getCurrentUserEndpointMethod?: string | undefined;
|
|
28474
28481
|
}, {
|
|
28475
28482
|
slug: string;
|
|
28476
28483
|
name: string;
|
|
@@ -28537,6 +28544,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
28537
28544
|
} | undefined;
|
|
28538
28545
|
}[] | undefined;
|
|
28539
28546
|
getCurrentUserEndpoint?: string | undefined;
|
|
28547
|
+
getCurrentUserEndpointMethod?: string | undefined;
|
|
28540
28548
|
}>;
|
|
28541
28549
|
type ToolkitAuthField = z$1.infer<typeof ToolkitAuthFieldSchema>;
|
|
28542
28550
|
type ToolkitAuthConfigDetails = z$1.infer<typeof ToolkitAuthConfigDetailsSchema>;
|
|
@@ -28869,6 +28877,17 @@ declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
|
|
|
28869
28877
|
redirectUrl: string;
|
|
28870
28878
|
}>;
|
|
28871
28879
|
type CreateConnectedAccountLinkResponse = z$1.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
28880
|
+
declare const ConnectedAccountRefreshOptionsSchema: z$1.ZodObject<{
|
|
28881
|
+
redirectUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
28882
|
+
validateCredentials: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
28883
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
28884
|
+
redirectUrl?: string | undefined;
|
|
28885
|
+
validateCredentials?: boolean | undefined;
|
|
28886
|
+
}, {
|
|
28887
|
+
redirectUrl?: string | undefined;
|
|
28888
|
+
validateCredentials?: boolean | undefined;
|
|
28889
|
+
}>;
|
|
28890
|
+
type ConnectedAccountRefreshOptions = z$1.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
28872
28891
|
//#endregion
|
|
28873
28892
|
//#region src/types/connectionRequest.types.d.ts
|
|
28874
28893
|
interface ConnectionRequestState {
|
|
@@ -29725,23 +29744,23 @@ declare const TriggerInstanceListActiveParamsSchema: z$1.ZodObject<{
|
|
|
29725
29744
|
authConfigIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
29726
29745
|
connectedAccountIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
29727
29746
|
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
29728
|
-
|
|
29747
|
+
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
29729
29748
|
showDisabled: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
|
|
29730
29749
|
triggerIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
29731
29750
|
triggerNames: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
29732
29751
|
}, "strip", z$1.ZodTypeAny, {
|
|
29733
29752
|
limit?: number | undefined;
|
|
29734
29753
|
authConfigIds?: string[] | null | undefined;
|
|
29754
|
+
cursor?: string | undefined;
|
|
29735
29755
|
connectedAccountIds?: string[] | null | undefined;
|
|
29736
|
-
page?: number | undefined;
|
|
29737
29756
|
showDisabled?: boolean | null | undefined;
|
|
29738
29757
|
triggerIds?: string[] | null | undefined;
|
|
29739
29758
|
triggerNames?: string[] | null | undefined;
|
|
29740
29759
|
}, {
|
|
29741
29760
|
limit?: number | undefined;
|
|
29742
29761
|
authConfigIds?: string[] | null | undefined;
|
|
29762
|
+
cursor?: string | undefined;
|
|
29743
29763
|
connectedAccountIds?: string[] | null | undefined;
|
|
29744
|
-
page?: number | undefined;
|
|
29745
29764
|
showDisabled?: boolean | null | undefined;
|
|
29746
29765
|
triggerIds?: string[] | null | undefined;
|
|
29747
29766
|
triggerNames?: string[] | null | undefined;
|
|
@@ -31117,7 +31136,7 @@ declare class ConnectedAccounts {
|
|
|
31117
31136
|
* const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
|
|
31118
31137
|
* ```
|
|
31119
31138
|
*/
|
|
31120
|
-
refresh(nanoid: string): Promise<ConnectedAccountRefreshResponse>;
|
|
31139
|
+
refresh(nanoid: string, options?: ConnectedAccountRefreshOptions): Promise<ConnectedAccountRefreshResponse>;
|
|
31121
31140
|
/**
|
|
31122
31141
|
* Update the status of a connected account
|
|
31123
31142
|
* @param {string} nanoid - Unique identifier of the connected account
|
|
@@ -32355,6 +32374,23 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
32355
32374
|
enableProxyExecution?: boolean | undefined;
|
|
32356
32375
|
autoOffloadThreshold?: number | undefined;
|
|
32357
32376
|
}>>>;
|
|
32377
|
+
experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
32378
|
+
assistivePrompt: z.ZodOptional<z.ZodObject<{
|
|
32379
|
+
userTimezone: z.ZodOptional<z.ZodString>;
|
|
32380
|
+
}, "strip", z.ZodTypeAny, {
|
|
32381
|
+
userTimezone?: string | undefined;
|
|
32382
|
+
}, {
|
|
32383
|
+
userTimezone?: string | undefined;
|
|
32384
|
+
}>>;
|
|
32385
|
+
}, "strip", z.ZodTypeAny, {
|
|
32386
|
+
assistivePrompt?: {
|
|
32387
|
+
userTimezone?: string | undefined;
|
|
32388
|
+
} | undefined;
|
|
32389
|
+
}, {
|
|
32390
|
+
assistivePrompt?: {
|
|
32391
|
+
userTimezone?: string | undefined;
|
|
32392
|
+
} | undefined;
|
|
32393
|
+
}>>>;
|
|
32358
32394
|
}, "strip", z.ZodTypeAny, {
|
|
32359
32395
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32360
32396
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -32386,6 +32422,11 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
32386
32422
|
enableProxyExecution?: boolean | undefined;
|
|
32387
32423
|
autoOffloadThreshold?: number | undefined;
|
|
32388
32424
|
} | undefined;
|
|
32425
|
+
experimental?: {
|
|
32426
|
+
assistivePrompt?: {
|
|
32427
|
+
userTimezone?: string | undefined;
|
|
32428
|
+
} | undefined;
|
|
32429
|
+
} | undefined;
|
|
32389
32430
|
}, {
|
|
32390
32431
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
32391
32432
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -32417,6 +32458,11 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
|
|
|
32417
32458
|
enableProxyExecution?: boolean | undefined;
|
|
32418
32459
|
autoOffloadThreshold?: number | undefined;
|
|
32419
32460
|
} | undefined;
|
|
32461
|
+
experimental?: {
|
|
32462
|
+
assistivePrompt?: {
|
|
32463
|
+
userTimezone?: string | undefined;
|
|
32464
|
+
} | undefined;
|
|
32465
|
+
} | undefined;
|
|
32420
32466
|
}>;
|
|
32421
32467
|
/**
|
|
32422
32468
|
* The config for the tool router session.
|
|
@@ -32697,6 +32743,16 @@ declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
|
32697
32743
|
}>;
|
|
32698
32744
|
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
32699
32745
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
32746
|
+
/**
|
|
32747
|
+
* Experimental features response from session creation.
|
|
32748
|
+
* Only returned on session creation, not on GET.
|
|
32749
|
+
*/
|
|
32750
|
+
interface ToolRouterSessionExperimental {
|
|
32751
|
+
/**
|
|
32752
|
+
* The assistive system prompt to inject into your agent for optimal tool router usage.
|
|
32753
|
+
*/
|
|
32754
|
+
assistivePrompt?: string;
|
|
32755
|
+
}
|
|
32700
32756
|
interface ToolRouterSession<TToolCollection$1, TTool$1, TProvider extends BaseComposioProvider<TToolCollection$1, TTool$1, unknown>> {
|
|
32701
32757
|
/**
|
|
32702
32758
|
* The session id of the tool router session.
|
|
@@ -32722,6 +32778,11 @@ interface ToolRouterSession<TToolCollection$1, TTool$1, TProvider extends BaseCo
|
|
|
32722
32778
|
* Supports pagination and filtering by toolkit slugs.
|
|
32723
32779
|
*/
|
|
32724
32780
|
toolkits: ToolRouterToolkitsFn;
|
|
32781
|
+
/**
|
|
32782
|
+
* Experimental features including the generated system prompt.
|
|
32783
|
+
* Only returned on session creation, not on GET.
|
|
32784
|
+
*/
|
|
32785
|
+
experimental?: ToolRouterSessionExperimental;
|
|
32725
32786
|
}
|
|
32726
32787
|
//#endregion
|
|
32727
32788
|
//#region src/models/ToolRouter.d.ts
|
|
@@ -32822,7 +32883,7 @@ declare class ToolRouter<TToolCollection$1, TTool$1, TProvider extends BaseCompo
|
|
|
32822
32883
|
* console.log(session.mcp.headers);
|
|
32823
32884
|
* ```
|
|
32824
32885
|
*/
|
|
32825
|
-
use(id: string): Promise<ToolRouterSession<TToolCollection$1, TTool$1, TProvider>>;
|
|
32886
|
+
use(id: string): Promise<Omit<ToolRouterSession<TToolCollection$1, TTool$1, TProvider>, 'experimental'>>;
|
|
32826
32887
|
}
|
|
32827
32888
|
//#endregion
|
|
32828
32889
|
//#region src/composio.d.ts
|
|
@@ -33039,6 +33100,8 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
33039
33100
|
* The new instance inherits all configuration from the parent instance (apiKey, baseURL, provider, etc.)
|
|
33040
33101
|
* but allows you to specify custom request options that will be used for all API calls made through this session.
|
|
33041
33102
|
*
|
|
33103
|
+
* @deprecated DEPRECATED: This method will be removed in a future version of the SDK.
|
|
33104
|
+
*
|
|
33042
33105
|
* @param {MergedRequestInit} fetchOptions - Custom request options to be used for all API calls in this session.
|
|
33043
33106
|
* This follows the Fetch API RequestInit interface with additional options.
|
|
33044
33107
|
* @returns {Composio<TProvider>} A new Composio instance with the custom request options applied.
|
|
@@ -33665,4 +33728,4 @@ declare class ComposioWebhookPayloadError extends ComposioError {
|
|
|
33665
33728
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
33666
33729
|
}
|
|
33667
33730
|
//#endregion
|
|
33668
|
-
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, MetaToolArguments, 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, SessionExecuteMetaModifiers, SessionMetaToolOptions, 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, WebhookPayload, WebhookPayloadSchema, WebhookPayloadV1, WebhookPayloadV1Schema, WebhookPayloadV2, WebhookPayloadV2Schema, WebhookPayloadV3, WebhookPayloadV3Schema, WebhookVersion, WebhookVersions, afterExecuteMetaModifier, afterExecuteModifier, beforeExecuteMetaModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
|
33731
|
+
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, ConnectedAccountRefreshOptions, ConnectedAccountRefreshOptionsSchema, 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, MetaToolArguments, 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, SessionExecuteMetaModifiers, SessionMetaToolOptions, 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, ToolRouterSessionExperimental, 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, WebhookPayload, WebhookPayloadSchema, WebhookPayloadV1, WebhookPayloadV1Schema, WebhookPayloadV2, WebhookPayloadV2Schema, WebhookPayloadV3, WebhookPayloadV3Schema, WebhookVersion, WebhookVersions, afterExecuteMetaModifier, afterExecuteModifier, beforeExecuteMetaModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-0j-ceAHr.mjs";
|
|
2
|
-
import { a as logger_default, c as DEFAULT_BASE_URL, d as constants_exports, f as getEnvVariable, i as ComposioError, l as IS_DEVELOPMENT_OR_CI, n as getFileDataAfterUploadingToS3, o as COMPOSIO_DIR, p as getEnvsWithPrefix, r as telemetry, s as COMPOSIO_LOG_LEVEL, t as downloadFileFromS3, u as USER_DATA_FILE_NAME } from "./fileUtils-
|
|
2
|
+
import { a as logger_default, c as DEFAULT_BASE_URL, d as constants_exports, f as getEnvVariable, i as ComposioError, l as IS_DEVELOPMENT_OR_CI, n as getFileDataAfterUploadingToS3, o as COMPOSIO_DIR, p as getEnvsWithPrefix, r as telemetry, s as COMPOSIO_LOG_LEVEL, t as downloadFileFromS3, u as USER_DATA_FILE_NAME } from "./fileUtils-Dbn-fnh5.mjs";
|
|
3
3
|
import ComposioClient, { APIError } from "@composio/client";
|
|
4
4
|
import z, { ZodError, z as z$1 } from "zod/v3";
|
|
5
5
|
import * as zodToJsonSchema from "zod-to-json-schema";
|
|
@@ -827,7 +827,8 @@ const ToolListParamsSchema = z$1.object({
|
|
|
827
827
|
tags: z$1.array(z$1.string()).optional(),
|
|
828
828
|
limit: z$1.number().optional(),
|
|
829
829
|
search: z$1.string().optional(),
|
|
830
|
-
authConfigIds: z$1.array(z$1.string()).optional()
|
|
830
|
+
authConfigIds: z$1.array(z$1.string()).optional(),
|
|
831
|
+
important: z$1.boolean().optional()
|
|
831
832
|
});
|
|
832
833
|
/**
|
|
833
834
|
* CustomAuthParams is the parameters for the custom authentication.
|
|
@@ -1448,6 +1449,10 @@ const ConnectedAccountListResponseSchema = z$1.object({
|
|
|
1448
1449
|
});
|
|
1449
1450
|
const CreateConnectedAccountLinkOptionsSchema = z$1.object({ callbackUrl: z$1.string().optional() });
|
|
1450
1451
|
const CreateConnectedAccountLinkResponseSchema = z$1.object({ redirectUrl: z$1.string() });
|
|
1452
|
+
const ConnectedAccountRefreshOptionsSchema = z$1.object({
|
|
1453
|
+
redirectUrl: z$1.string().optional(),
|
|
1454
|
+
validateCredentials: z$1.boolean().optional()
|
|
1455
|
+
});
|
|
1451
1456
|
|
|
1452
1457
|
//#endregion
|
|
1453
1458
|
//#region src/utils/transform.ts
|
|
@@ -2194,6 +2199,8 @@ var Tools = class {
|
|
|
2194
2199
|
if ("tools" in query && "toolkits" in query) throw new ValidationError("Invalid tool list parameters. You should not use tools and toolkits filter together.");
|
|
2195
2200
|
const queryParams = ToolListParamsSchema.safeParse(query);
|
|
2196
2201
|
if (queryParams.error) throw new ValidationError("Invalid tool list parameters", { cause: queryParams.error });
|
|
2202
|
+
const shouldAutoApplyImportant = "toolkits" in queryParams.data && !("tools" in queryParams.data) && !("tags" in queryParams.data) && !("search" in queryParams.data) && queryParams.data.important !== false;
|
|
2203
|
+
const effectiveImportant = "important" in queryParams.data ? queryParams.data.important : shouldAutoApplyImportant;
|
|
2197
2204
|
if (!("tools" in queryParams.data || "toolkits" in queryParams.data || "search" in queryParams.data || "authConfigIds" in queryParams.data)) throw new ValidationError("Invalid tool list parameters, atleast one of the following parameters is required: tools, toolkits, search, authConfigIds");
|
|
2198
2205
|
let limit = "limit" in queryParams.data ? queryParams.data.limit : void 0;
|
|
2199
2206
|
if ("tools" in queryParams.data) limit = 9999;
|
|
@@ -2205,6 +2212,7 @@ var Tools = class {
|
|
|
2205
2212
|
..."scopes" in queryParams.data ? { scopes: queryParams.data.scopes } : {},
|
|
2206
2213
|
..."search" in queryParams.data ? { search: queryParams.data.search } : {},
|
|
2207
2214
|
..."authConfigIds" in queryParams.data ? { auth_config_ids: queryParams.data.authConfigIds } : {},
|
|
2215
|
+
...effectiveImportant ? { important: "true" } : {},
|
|
2208
2216
|
toolkit_versions: this.toolkitVersions
|
|
2209
2217
|
};
|
|
2210
2218
|
logger_default.debug(`Fetching tools with filters: ${JSON.stringify(filters, null, 2)}`);
|
|
@@ -2798,7 +2806,8 @@ const ToolkitRetrieveResponseSchema = z$1.object({
|
|
|
2798
2806
|
composioManagedAuthSchemes: z$1.array(z$1.string()).optional(),
|
|
2799
2807
|
authConfigDetails: z$1.array(ToolkitAuthConfigDetailsSchema).optional(),
|
|
2800
2808
|
baseUrl: z$1.string().optional(),
|
|
2801
|
-
getCurrentUserEndpoint: z$1.string().optional()
|
|
2809
|
+
getCurrentUserEndpoint: z$1.string().optional(),
|
|
2810
|
+
getCurrentUserEndpointMethod: z$1.string().optional()
|
|
2802
2811
|
});
|
|
2803
2812
|
/**
|
|
2804
2813
|
* Toolkit categories response
|
|
@@ -3495,8 +3504,17 @@ var ConnectedAccounts = class {
|
|
|
3495
3504
|
* const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
|
|
3496
3505
|
* ```
|
|
3497
3506
|
*/
|
|
3498
|
-
async refresh(nanoid) {
|
|
3499
|
-
|
|
3507
|
+
async refresh(nanoid, options) {
|
|
3508
|
+
let params = void 0;
|
|
3509
|
+
if (options) {
|
|
3510
|
+
const parsedOptions = ConnectedAccountRefreshOptionsSchema.safeParse(options);
|
|
3511
|
+
if (!parsedOptions.success) throw new ValidationError("Failed to parse connected account refresh options", { cause: parsedOptions.error });
|
|
3512
|
+
params = {
|
|
3513
|
+
body_redirect_url: parsedOptions.data.redirectUrl,
|
|
3514
|
+
validate_credentials: parsedOptions.data.validateCredentials
|
|
3515
|
+
};
|
|
3516
|
+
}
|
|
3517
|
+
return this.client.connectedAccounts.refresh(nanoid, params);
|
|
3500
3518
|
}
|
|
3501
3519
|
/**
|
|
3502
3520
|
* Update the status of a connected account
|
|
@@ -3613,7 +3631,8 @@ const transformToolkitRetrieveResponse = (response) => {
|
|
|
3613
3631
|
proxy: { baseUrl: authConfig.proxy?.base_url }
|
|
3614
3632
|
})),
|
|
3615
3633
|
baseUrl: response$1.base_url,
|
|
3616
|
-
getCurrentUserEndpoint: response$1.get_current_user_endpoint
|
|
3634
|
+
getCurrentUserEndpoint: response$1.get_current_user_endpoint,
|
|
3635
|
+
getCurrentUserEndpointMethod: response$1.get_current_user_endpoint_method
|
|
3617
3636
|
}));
|
|
3618
3637
|
};
|
|
3619
3638
|
const transformToolkitRetrieveCategoriesResponse = (response) => {
|
|
@@ -3819,7 +3838,7 @@ const TriggerInstanceListActiveParamsSchema = z$1.object({
|
|
|
3819
3838
|
authConfigIds: z$1.array(z$1.string()).nullable().optional(),
|
|
3820
3839
|
connectedAccountIds: z$1.array(z$1.string()).nullable().optional(),
|
|
3821
3840
|
limit: z$1.number().optional(),
|
|
3822
|
-
|
|
3841
|
+
cursor: z$1.string().optional(),
|
|
3823
3842
|
showDisabled: z$1.boolean().nullable().optional(),
|
|
3824
3843
|
triggerIds: z$1.array(z$1.string()).nullable().optional(),
|
|
3825
3844
|
triggerNames: z$1.array(z$1.string()).nullable().optional()
|
|
@@ -4263,8 +4282,8 @@ var Triggers = class {
|
|
|
4263
4282
|
return transformTriggerInstanceListActiveResponse(await this.client.triggerInstances.listActive(query ? {
|
|
4264
4283
|
auth_config_ids: parsedParams.data.authConfigIds,
|
|
4265
4284
|
connected_account_ids: parsedParams.data.connectedAccountIds,
|
|
4285
|
+
cursor: parsedParams.data.cursor,
|
|
4266
4286
|
limit: parsedParams.data.limit,
|
|
4267
|
-
page: parsedParams.data.page,
|
|
4268
4287
|
show_disabled: parsedParams.data.showDisabled,
|
|
4269
4288
|
trigger_ids: parsedParams.data.triggerIds,
|
|
4270
4289
|
trigger_names: parsedParams.data.triggerNames
|
|
@@ -5704,7 +5723,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5704
5723
|
|
|
5705
5724
|
//#endregion
|
|
5706
5725
|
//#region package.json
|
|
5707
|
-
var version = "0.5.
|
|
5726
|
+
var version = "0.5.5";
|
|
5708
5727
|
|
|
5709
5728
|
//#endregion
|
|
5710
5729
|
//#region src/utils/session.ts
|
|
@@ -5823,7 +5842,8 @@ const ToolRouterCreateSessionConfigSchema = z.object({
|
|
|
5823
5842
|
workbench: z.object({
|
|
5824
5843
|
enableProxyExecution: z.boolean().optional().describe("Whether to enable proxy execution in the tool router session"),
|
|
5825
5844
|
autoOffloadThreshold: z.number().optional().describe("The auto offload threshold in characters for the tool execution to be moved into workbench")
|
|
5826
|
-
}).optional().describe("The execution config for the tool router session")
|
|
5845
|
+
}).optional().describe("The execution config for the tool router session"),
|
|
5846
|
+
experimental: z.object({ assistivePrompt: z.object({ userTimezone: z.string().optional().describe("IANA timezone identifier (e.g., \"America/New_York\", \"Europe/London\") for timezone-aware assistive prompts") }).optional().describe("Configuration for assistive prompt generation") }).optional().describe("Experimental features configuration - not stable, may be modified or removed")
|
|
5827
5847
|
}).partial().describe("The config for the tool router session");
|
|
5828
5848
|
const ToolkitConnectionStateSchema = z.object({
|
|
5829
5849
|
slug: z.string().describe("The slug of a toolkit"),
|
|
@@ -6067,15 +6087,18 @@ var ToolRouter = class {
|
|
|
6067
6087
|
tools: transformToolRouterToolsParams(routerConfig.tools),
|
|
6068
6088
|
tags: transformToolRouterTagsParams(routerConfig.tags),
|
|
6069
6089
|
manage_connections: transformToolRouterManageConnectionsParams(routerConfig.manageConnections),
|
|
6070
|
-
workbench: transformToolRouterWorkbenchParams(routerConfig.workbench)
|
|
6090
|
+
workbench: transformToolRouterWorkbenchParams(routerConfig.workbench),
|
|
6091
|
+
experimental: routerConfig.experimental?.assistivePrompt?.userTimezone ? { assistive_prompt_config: { user_timezone: routerConfig.experimental.assistivePrompt.userTimezone } } : void 0
|
|
6071
6092
|
};
|
|
6072
6093
|
const session = await this.client.toolRouter.session.create(payload);
|
|
6094
|
+
const experimental = session.experimental ? { assistivePrompt: session.experimental.assistive_prompt } : void 0;
|
|
6073
6095
|
return {
|
|
6074
6096
|
sessionId: session.session_id,
|
|
6075
6097
|
mcp: this.createMCPServerConfig(session.mcp),
|
|
6076
6098
|
tools: this.createToolsFn(session.session_id),
|
|
6077
6099
|
authorize: this.createAuthorizeFn(session.session_id),
|
|
6078
|
-
toolkits: this.createToolkitsFn(session.session_id)
|
|
6100
|
+
toolkits: this.createToolkitsFn(session.session_id),
|
|
6101
|
+
experimental
|
|
6079
6102
|
};
|
|
6080
6103
|
}
|
|
6081
6104
|
/**
|
|
@@ -6294,6 +6317,8 @@ var Composio = class Composio {
|
|
|
6294
6317
|
* The new instance inherits all configuration from the parent instance (apiKey, baseURL, provider, etc.)
|
|
6295
6318
|
* but allows you to specify custom request options that will be used for all API calls made through this session.
|
|
6296
6319
|
*
|
|
6320
|
+
* @deprecated DEPRECATED: This method will be removed in a future version of the SDK.
|
|
6321
|
+
*
|
|
6297
6322
|
* @param {MergedRequestInit} fetchOptions - Custom request options to be used for all API calls in this session.
|
|
6298
6323
|
* This follows the Fetch API RequestInit interface with additional options.
|
|
6299
6324
|
* @returns {Composio<TProvider>} A new Composio instance with the custom request options applied.
|
|
@@ -6774,4 +6799,4 @@ const ComposioMcpUpdateResponseSchema = z$1.object({
|
|
|
6774
6799
|
});
|
|
6775
6800
|
|
|
6776
6801
|
//#endregion
|
|
6777
|
-
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, WebhookPayloadSchema, WebhookPayloadV1Schema, WebhookPayloadV2Schema, WebhookPayloadV3Schema, WebhookVersions, constants_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger_default as logger, removeNonRequiredProperties };
|
|
6802
|
+
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, ConnectedAccountRefreshOptionsSchema, 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, WebhookPayloadSchema, WebhookPayloadV1Schema, WebhookPayloadV2Schema, WebhookPayloadV3Schema, WebhookVersions, constants_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger_default as logger, removeNonRequiredProperties };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-0j-ceAHr.mjs";
|
|
2
|
-
import { n as getFileDataAfterUploadingToS3, r as telemetry, t as downloadFileFromS3 } from "../fileUtils-
|
|
2
|
+
import { n as getFileDataAfterUploadingToS3, r as telemetry, t as downloadFileFromS3 } from "../fileUtils-Dbn-fnh5.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/models/Files.node.ts
|
|
5
5
|
var Files = class {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
7
7
|
"publishConfig": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"zod": "^3.25 || ^4"
|
|
107
107
|
},
|
|
108
108
|
"dependencies": {
|
|
109
|
-
"@composio/client": "0.1.0-alpha.
|
|
109
|
+
"@composio/client": "0.1.0-alpha.56",
|
|
110
110
|
"@types/json-schema": "^7.0.15",
|
|
111
111
|
"chalk": "^4.1.2",
|
|
112
112
|
"openai": "^6.16.0",
|