@composio/core 0.1.55 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -641,7 +641,40 @@ declare const CustomAuthParamsSchema: z.ZodObject<{
641
641
  }>;
642
642
  type CustomAuthParams = z.infer<typeof CustomAuthParamsSchema>;
643
643
  /**
644
- * ToolExecuteParams is the parameters for the tool execution.
644
+ * Parameters for tool execution.
645
+ *
646
+ * @property {boolean} [allowTracing] - Enable tracing for this tool execution
647
+ * @property {string} [connectedAccountId] - The connected account ID to use for authenticated tools
648
+ * @property {CustomAuthParams} [customAuthParams] - Custom authentication parameters
649
+ * @property {CustomConnectionData} [customConnectionData] - Custom connection data (takes priority over customAuthParams)
650
+ * @property {Record<string, unknown>} [arguments] - The arguments to pass to the tool
651
+ * @property {string} [userId] - The user ID to execute the tool for (required for no-auth apps)
652
+ * @property {string} [version] - The specific version of the tool to execute (e.g., "20250909_00" or "latest")
653
+ * @property {boolean} [dangerouslySkipVersionCheck] - Skip version validation when using "latest" version.
654
+ * **Warning:** This may cause unexpected behavior when new toolkit versions are released.
655
+ * Only use this if you understand the risks. Recommended alternatives:
656
+ * - Specify a concrete version in the `version` parameter
657
+ * - Configure toolkit versions at SDK initialization level
658
+ * - Set toolkit version via environment variable (COMPOSIO_TOOLKIT_VERSION_<TOOLKIT_SLUG>)
659
+ * @property {string} [text] - Additional text input for the tool
660
+ *
661
+ * @example Recommended: Execute with a specific version
662
+ * ```typescript
663
+ * const params: ToolExecuteParams = {
664
+ * userId: 'default',
665
+ * version: '20250909_00',
666
+ * arguments: { owner: 'composio', repo: 'sdk' }
667
+ * };
668
+ * ```
669
+ *
670
+ * @example With dangerouslySkipVersionCheck (use with caution)
671
+ * ```typescript
672
+ * const params: ToolExecuteParams = {
673
+ * userId: 'default',
674
+ * dangerouslySkipVersionCheck: true,
675
+ * arguments: { userId: 'pg' }
676
+ * };
677
+ * ```
645
678
  */
646
679
  declare const ToolExecuteParamsSchema: z.ZodObject<{
647
680
  allowTracing: z.ZodOptional<z.ZodBoolean>;
@@ -1882,6 +1915,7 @@ declare const ToolExecuteParamsSchema: z.ZodObject<{
1882
1915
  arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1883
1916
  userId: z.ZodOptional<z.ZodString>;
1884
1917
  version: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"latest">, z.ZodString]>>;
1918
+ dangerouslySkipVersionCheck: z.ZodOptional<z.ZodBoolean>;
1885
1919
  text: z.ZodOptional<z.ZodString>;
1886
1920
  }, "strip", z.ZodTypeAny, {
1887
1921
  version?: string | undefined;
@@ -2144,6 +2178,7 @@ declare const ToolExecuteParamsSchema: z.ZodObject<{
2144
2178
  } | undefined;
2145
2179
  arguments?: Record<string, unknown> | undefined;
2146
2180
  userId?: string | undefined;
2181
+ dangerouslySkipVersionCheck?: boolean | undefined;
2147
2182
  text?: string | undefined;
2148
2183
  }, {
2149
2184
  version?: string | undefined;
@@ -2406,6 +2441,7 @@ declare const ToolExecuteParamsSchema: z.ZodObject<{
2406
2441
  } | undefined;
2407
2442
  arguments?: Record<string, unknown> | undefined;
2408
2443
  userId?: string | undefined;
2444
+ dangerouslySkipVersionCheck?: boolean | undefined;
2409
2445
  text?: string | undefined;
2410
2446
  }>;
2411
2447
  type ToolExecuteParams = z.infer<typeof ToolExecuteParamsSchema>;
@@ -16927,13 +16963,6 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
16927
16963
  * @private
16928
16964
  */
16929
16965
  private transformToolExecuteResponse;
16930
- /**
16931
- * Get the connected account id for a given tool
16932
- * @param {string} userId - The user id
16933
- * @param {string} toolSlug - The tool slug
16934
- * @returns {Promise<string | null>} The connected account id or null if the toolkit is a no auth app
16935
- */
16936
- private getConnectedAccountIdForTool;
16937
16966
  /**
16938
16967
  * Applies the default schema modifiers to the tools
16939
16968
  * @param tools - The tools to apply the default schema modifiers to
@@ -17140,56 +17169,80 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
17140
17169
  private createExecuteToolFn;
17141
17170
  /**
17142
17171
  * @internal
17143
- * Handles the execution of a custom tool
17172
+ * Executes a composio tool via API without modifiers
17144
17173
  * @param tool - The tool to execute
17145
17174
  * @param body - The body of the tool execution
17146
- * @param modifiers - The modifiers to be applied to the tool execution
17147
17175
  * @returns The response from the tool execution
17148
17176
  */
17149
- private handleCustomToolExecution;
17150
- /**
17151
- * @internal
17152
- * Handles the execution of a composio tool
17153
- * @param tool - The tool to execute
17154
- * @param body - The body of the tool execution
17155
- * @param modifiers - The modifiers to be applied to the tool execution
17156
- * @returns The response from the tool execution
17157
- */
17158
- private handleComposioToolExecution;
17177
+ private executeComposioTool;
17159
17178
  /**
17160
17179
  * Executes a given tool with the provided parameters.
17161
17180
  *
17162
17181
  * This method calls the Composio API or a custom tool handler to execute the tool and returns the response.
17163
17182
  * It automatically determines whether to use a custom tool or a Composio API tool based on the slug.
17164
17183
  *
17184
+ * **Version Control:**
17185
+ * By default, manual tool execution requires a specific toolkit version. If the version resolves to "latest",
17186
+ * the execution will throw a `ComposioToolVersionRequiredError` unless `dangerouslySkipVersionCheck` is set to `true`.
17187
+ * This helps prevent unexpected behavior when new toolkit versions are released.
17188
+ *
17165
17189
  * @param {string} slug - The slug/ID of the tool to be executed
17166
17190
  * @param {ToolExecuteParams} body - The parameters to be passed to the tool
17191
+ * @param {string} [body.version] - The specific version of the tool to execute (e.g., "20250909_00")
17192
+ * @param {boolean} [body.dangerouslySkipVersionCheck] - Skip version validation for "latest" version (use with caution)
17193
+ * @param {string} [body.userId] - The user ID to execute the tool for
17194
+ * @param {string} [body.connectedAccountId] - The connected account ID to use for authenticated tools
17195
+ * @param {Record<string, unknown>} [body.arguments] - The arguments to pass to the tool
17167
17196
  * @param {ExecuteToolModifiers} [modifiers] - Optional modifiers to transform the request or response
17168
17197
  * @returns {Promise<ToolExecuteResponse>} - The response from the tool execution
17169
17198
  *
17170
17199
  * @throws {ComposioCustomToolsNotInitializedError} If the CustomTools instance is not initialized
17200
+ * @throws {ComposioConnectedAccountNotFoundError} If the connected account is not found
17171
17201
  * @throws {ComposioToolNotFoundError} If the tool with the given slug is not found
17202
+ * @throws {ComposioToolVersionRequiredError} If version resolves to "latest" and dangerouslySkipVersionCheck is not true
17172
17203
  * @throws {ComposioToolExecutionError} If there is an error during tool execution
17173
17204
  *
17174
- * @example
17205
+ * @example Execute with a specific version (recommended for production)
17206
+ * ```typescript
17207
+ * const result = await composio.tools.execute('GITHUB_GET_REPOS', {
17208
+ * userId: 'default',
17209
+ * version: '20250909_00',
17210
+ * arguments: { owner: 'composio' }
17211
+ * });
17212
+ * ```
17213
+ *
17214
+ * @example Execute with dangerouslySkipVersionCheck (not recommended for production)
17175
17215
  * ```typescript
17176
- * // Execute a Composio API tool
17177
17216
  * const result = await composio.tools.execute('HACKERNEWS_GET_USER', {
17178
17217
  * userId: 'default',
17179
- * arguments: { userId: 'pg' }
17218
+ * arguments: { userId: 'pg' },
17219
+ * dangerouslySkipVersionCheck: true // Allows execution with "latest" version
17180
17220
  * });
17221
+ * ```
17181
17222
  *
17182
- * // Execute with modifiers
17223
+ * @example Execute with SDK-level toolkit versions configuration
17224
+ * ```typescript
17225
+ * // If toolkitVersions are set during Composio initialization, no need to pass version
17226
+ * const composio = new Composio({ toolkitVersions: { github: '20250909_00' } });
17227
+ * const result = await composio.tools.execute('GITHUB_GET_REPOS', {
17228
+ * userId: 'default',
17229
+ * arguments: { owner: 'composio' }
17230
+ * });
17231
+ * ```
17232
+ *
17233
+ * @example Execute with modifiers
17234
+ * ```typescript
17183
17235
  * const result = await composio.tools.execute('GITHUB_GET_ISSUES', {
17184
17236
  * userId: 'default',
17237
+ * version: '20250909_00',
17185
17238
  * arguments: { owner: 'composio', repo: 'sdk' }
17186
17239
  * }, {
17187
- * beforeExecute: (toolSlug, toolkitSlug, params) => {
17188
- * // Modify params before execution
17240
+ * beforeExecute: ({ toolSlug, toolkitSlug, params }) => {
17241
+ * console.log(`Executing ${toolSlug} from ${toolkitSlug}`);
17189
17242
  * return params;
17190
17243
  * },
17191
- * afterExecute: (toolSlug, toolkitSlug, result) => {
17192
- * // Transform result after execution
17244
+ * afterExecute: ({ toolSlug, toolkitSlug, result }) => {
17245
+ * console.log(`Completed ${toolSlug}`);
17193
17246
  * return result;
17194
17247
  * }
17195
17248
  * });
@@ -66870,12 +66923,40 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
66870
66923
  */
66871
66924
  disableVersionCheck?: boolean;
66872
66925
  /**
66873
- * The versions of the toolkits to fetch.
66874
- * Defaults to latest is nothing is provided.
66875
- * Alternatively you can specify individual toolkit versions in the env `COMPOSIO_TOOLKIT_VERSION_GITHUB=20250902_00`
66876
- * @example
66877
- * { 'github': 'latest', 'slack': '20250902_00' }
66878
- * 'latest'
66926
+ * The versions of the toolkits to use for tool execution and retrieval.
66927
+ *
66928
+ * **Version Control:**
66929
+ * When executing tools manually (via `tools.execute()`), if this resolves to "latest",
66930
+ * you must either:
66931
+ * - Set `dangerouslySkipVersionCheck: true` in the execute params (not recommended for production)
66932
+ * - Specify a concrete version here or in environment variables
66933
+ * - Pass a specific `version` parameter to the execute call
66934
+ *
66935
+ * Defaults to 'latest' if nothing is provided.
66936
+ * You can specify individual toolkit versions via environment variables: `COMPOSIO_TOOLKIT_VERSION_GITHUB=20250902_00`
66937
+ *
66938
+ * @example Global version for all toolkits
66939
+ * ```typescript
66940
+ * const composio = new Composio({ toolkitVersions: 'latest' });
66941
+ * ```
66942
+ *
66943
+ * @example Specific versions for different toolkits (recommended for production)
66944
+ * ```typescript
66945
+ * const composio = new Composio({
66946
+ * toolkitVersions: {
66947
+ * github: '20250909_00',
66948
+ * slack: '20250902_00'
66949
+ * }
66950
+ * });
66951
+ * ```
66952
+ *
66953
+ * @example Set via environment variables
66954
+ * ```typescript
66955
+ * // Set environment variables:
66956
+ * // COMPOSIO_TOOLKIT_VERSION_GITHUB=20250909_00
66957
+ * // COMPOSIO_TOOLKIT_VERSION_SLACK=20250902_00
66958
+ * const composio = new Composio(); // Will use env variables
66959
+ * ```
66879
66960
  */
66880
66961
  toolkitVersions?: ToolkitVersionParam;
66881
66962
  };
@@ -67391,6 +67472,7 @@ declare const ToolErrorCodes: {
67391
67472
  readonly TOOL_EXECUTION_ERROR: "TOOL_EXECUTION_ERROR";
67392
67473
  readonly INVALID_EXECUTE_FUNCTION: "INVALID_EXECUTE_FUNCTION";
67393
67474
  readonly GLOBAL_EXECUTE_TOOL_FN_NOT_SET: "GLOBAL_EXECUTE_TOOL_FN_NOT_SET";
67475
+ readonly TOOL_VERSION_REQUIRED: "TOOL_VERSION_REQUIRED";
67394
67476
  };
67395
67477
  declare class ComposioProviderNotDefinedError extends ComposioError {
67396
67478
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code'>);
@@ -67405,10 +67487,7 @@ declare class ComposioCustomToolsNotInitializedError extends ComposioError {
67405
67487
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code'>);
67406
67488
  }
67407
67489
  declare class ComposioToolExecutionError extends ComposioError {
67408
- readonly error: Error;
67409
- constructor(message?: string, options?: ComposioErrorOptions & {
67410
- originalError?: Error;
67411
- });
67490
+ constructor(message?: string, options?: ComposioErrorOptions);
67412
67491
  }
67413
67492
  declare class ComposioInvalidExecuteFunctionError extends ComposioError {
67414
67493
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code'>);
@@ -67416,6 +67495,82 @@ declare class ComposioInvalidExecuteFunctionError extends ComposioError {
67416
67495
  declare class ComposioGlobalExecuteToolFnNotSetError extends ComposioError {
67417
67496
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code'>);
67418
67497
  }
67498
+ /**
67499
+ * Error thrown when toolkit version is not specified for manual tool execution.
67500
+ *
67501
+ * This error is thrown when attempting to execute a tool manually (via `tools.execute()`)
67502
+ * and the resolved version is "latest" without `dangerouslySkipVersionCheck` set to true.
67503
+ *
67504
+ * **Why this error exists:**
67505
+ * Using "latest" version in manual execution can lead to unexpected behavior when new
67506
+ * toolkit versions are released, potentially breaking your application. For production
67507
+ * use, it's recommended to pin specific toolkit versions.
67508
+ *
67509
+ * **How to fix:**
67510
+ * 1. Specify a concrete version in the execute call
67511
+ * 2. Configure toolkit versions at SDK initialization
67512
+ * 3. Set toolkit version via environment variable
67513
+ * 4. Use dangerouslySkipVersionCheck (not recommended for production)
67514
+ *
67515
+ * @example ❌ This will throw ComposioToolVersionRequiredError if toolkitVersions is 'latest'
67516
+ * ```typescript
67517
+ * await composio.tools.execute('GITHUB_GET_REPOS', {
67518
+ * userId: 'default',
67519
+ * arguments: { owner: 'composio' }
67520
+ * });
67521
+ * ```
67522
+ *
67523
+ * @example ✅ Fix 1: Pass specific version in execute call
67524
+ * ```typescript
67525
+ * await composio.tools.execute('GITHUB_GET_REPOS', {
67526
+ * userId: 'default',
67527
+ * version: '20250909_00',
67528
+ * arguments: { owner: 'composio' }
67529
+ * });
67530
+ * ```
67531
+ *
67532
+ * @example ✅ Fix 2: Configure toolkit versions at SDK level
67533
+ * ```typescript
67534
+ * const composio = new Composio({
67535
+ * toolkitVersions: { github: '20250909_00' }
67536
+ * });
67537
+ * await composio.tools.execute('GITHUB_GET_REPOS', {
67538
+ * userId: 'default',
67539
+ * arguments: { owner: 'composio' }
67540
+ * });
67541
+ * ```
67542
+ *
67543
+ * @example ✅ Fix 3: Use environment variable
67544
+ * ```typescript
67545
+ * // Set: COMPOSIO_TOOLKIT_VERSION_GITHUB=20250909_00
67546
+ * await composio.tools.execute('GITHUB_GET_REPOS', {
67547
+ * userId: 'default',
67548
+ * arguments: { owner: 'composio' }
67549
+ * });
67550
+ * ```
67551
+ *
67552
+ * @example ⚠️ Fix 4: Skip version check (not recommended for production)
67553
+ * ```typescript
67554
+ * await composio.tools.execute('GITHUB_GET_REPOS', {
67555
+ * userId: 'default',
67556
+ * dangerouslySkipVersionCheck: true,
67557
+ * arguments: { owner: 'composio' }
67558
+ * });
67559
+ * ```
67560
+ */
67561
+ declare class ComposioToolVersionRequiredError extends ComposioError {
67562
+ constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code'>);
67563
+ }
67564
+ interface ComposioAPIServerErrorBody {
67565
+ error: {
67566
+ message: string;
67567
+ code: number;
67568
+ status: number;
67569
+ request_id: string;
67570
+ suggested_fix: string;
67571
+ };
67572
+ }
67573
+ declare const handleToolExecutionError: (tool: string, actualError: Error) => ComposioError;
67419
67574
 
67420
67575
  declare const ToolkitErrorCodes: {
67421
67576
  readonly TOOLKIT_NOT_FOUND: "TOOLKIT_NOT_FOUND";
@@ -67449,4 +67604,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
67449
67604
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
67450
67605
  }
67451
67606
 
67452
- export { type AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, type BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, type ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, type ConnectedAccountListParams, ConnectedAccountListParamsSchema, type ConnectedAccountListResponse, type ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, type ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, type ConnectedAccountStatus, type ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, type ConnectionData, ConnectionDataSchema, type ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, type ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, type CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, type CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, type CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, type CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, type CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomConnectionData, CustomConnectionDataSchema, type CustomCreateResponse, CustomCreateResponseSchema, type CustomCreateResponseValidated, type CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, type CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type FileDownloadData, type FileUploadData, type GenerateURLParams, GenerateURLParamsSchema, type GenerateURLResponse, GenerateURLResponseSchema, type GenerateURLResponseValidated, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, type JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, type MCPAuthOptions, MCPAuthOptionsSchema, type MCPCreateMethodResponse, type MCPGenerateURLParams, MCPGenerateURLParamsSchema, type MCPGetServerParams, MCPGetServerParamsSchema, type MCPInstanceParams, type MCPMultiAppServer, MCPMultiAppServerSchema, type MCPServer, type MCPServerCreateResponse, MCPServerCreateResponseSchema, type MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, type MCPServerUpdateParams, MCPServerUpdateParamsSchema, type MCPSingleAppServer, MCPSingleAppServerSchema, type MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, type McpDeleteResponse, McpDeleteResponseSchema, type McpListResponse, McpListResponseSchema, type McpRetrieveResponse, McpRetrieveResponseSchema, type McpServerCreateResponse, type McpServerGetResponse, type McpServerUrlInfo, type McpToolkitConnectionStatus, type McpUpdateResponse, McpUpdateResponseSchema, type McpUrlResponse, type McpUrlResponseCamelCase, type McpUserConnectionStatus, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type SchemaModifierOptions, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolRouter, type ToolRouterConfig, ToolRouterConfigSchema, type ToolRouterSession, ToolRouterSessionSchema, ToolRouterToolkitConfigSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitLatestVersion, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, type ToolkitVersion, type ToolkitVersionParam, type ToolkitVersions, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerEvent, type TriggerEventData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, type TriggerType, TriggerTypeSchema, type TriggersTypeListParams, TriggersTypeListParamsSchema, type TriggersTypeListResponse, TriggersTypeListResponseSchema, type TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, constants, createConnectionRequest, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
67607
+ export { type AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, type BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, type ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, type ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, type ConnectedAccountListParams, ConnectedAccountListParamsSchema, type ConnectedAccountListResponse, type ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, type ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, type ConnectedAccountStatus, type ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, type ConnectionData, ConnectionDataSchema, type ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, type ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, type CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, type CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, type CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, type CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, type CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomConnectionData, CustomConnectionDataSchema, type CustomCreateResponse, CustomCreateResponseSchema, type CustomCreateResponseValidated, type CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, type CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type FileDownloadData, type FileUploadData, type GenerateURLParams, GenerateURLParamsSchema, type GenerateURLResponse, GenerateURLResponseSchema, type GenerateURLResponseValidated, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, type JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, type MCPAuthOptions, MCPAuthOptionsSchema, type MCPCreateMethodResponse, type MCPGenerateURLParams, MCPGenerateURLParamsSchema, type MCPGetServerParams, MCPGetServerParamsSchema, type MCPInstanceParams, type MCPMultiAppServer, MCPMultiAppServerSchema, type MCPServer, type MCPServerCreateResponse, MCPServerCreateResponseSchema, type MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, type MCPServerUpdateParams, MCPServerUpdateParamsSchema, type MCPSingleAppServer, MCPSingleAppServerSchema, type MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, type McpDeleteResponse, McpDeleteResponseSchema, type McpListResponse, McpListResponseSchema, type McpRetrieveResponse, McpRetrieveResponseSchema, type McpServerCreateResponse, type McpServerGetResponse, type McpServerUrlInfo, type McpToolkitConnectionStatus, type McpUpdateResponse, McpUpdateResponseSchema, type McpUrlResponse, type McpUrlResponseCamelCase, type McpUserConnectionStatus, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type SchemaModifierOptions, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolRouter, type ToolRouterConfig, ToolRouterConfigSchema, type ToolRouterSession, ToolRouterSessionSchema, ToolRouterToolkitConfigSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitLatestVersion, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, type ToolkitVersion, type ToolkitVersionParam, type ToolkitVersions, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerEvent, type TriggerEventData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, type TriggerType, TriggerTypeSchema, type TriggersTypeListParams, TriggersTypeListParamsSchema, type TriggersTypeListResponse, TriggersTypeListResponseSchema, type TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };