@composio/core 0.3.4 → 0.5.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.mts CHANGED
@@ -1,6 +1,8 @@
1
+ import { n as FileUploadData, t as FileDownloadData } from "./files.types-B7P5A1Z5.mjs";
1
2
  import ComposioClient, { Composio as Composio$1 } from "@composio/client";
2
3
  import z, { z as z$1 } from "zod/v3";
3
4
  import { OpenAI } from "openai";
5
+ import { Files } from "#files";
4
6
  import { CustomCreateResponse as CustomCreateResponse$1, GenerateURLResponse as GenerateURLResponse$1, McpCreateResponse } from "@composio/client/resources/mcp";
5
7
  import { ToolExecuteResponse as ToolExecuteResponse$1, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
6
8
  import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
@@ -6258,6 +6260,126 @@ type ExecuteToolModifiers = {
6258
6260
  */
6259
6261
  afterExecute?: afterExecuteModifier;
6260
6262
  };
6263
+ /**
6264
+ * Type alias for meta tool execution arguments.
6265
+ * Represents the arguments passed to a meta tool during execution.
6266
+ * This is derived from ToolExecuteMetaParams but guaranteed to be non-null.
6267
+ */
6268
+ type MetaToolArguments = NonNullable<ToolExecuteMetaParams['arguments']>;
6269
+ /**
6270
+ * Modifier for altering the meta tool execute parameters before execution in a session context.
6271
+ *
6272
+ * This function is specifically designed for meta tools executed within a tool router session,
6273
+ * allowing you to intercept and modify the parameters before execution. Meta tools are
6274
+ * grouped under the 'composio' toolkit slug for organizational purposes.
6275
+ *
6276
+ * @param {string} toolSlug - The slug identifier of the meta tool being executed
6277
+ * @param {string} toolkitSlug - The toolkit slug (always 'composio' for meta tools)
6278
+ * @param {string} sessionId - The session ID for the tool router context
6279
+ * @param {MetaToolArguments} params - The parameters being passed to the meta tool
6280
+ * @returns {MetaToolArguments} The modified parameters
6281
+ *
6282
+ * @example
6283
+ * ```typescript
6284
+ * const beforeExecuteMeta = ({ toolSlug, toolkitSlug, sessionId, params }) => {
6285
+ * console.log(`Executing ${toolkitSlug} meta tool ${toolSlug} in session ${sessionId}`);
6286
+ *
6287
+ * // Add or modify parameters
6288
+ * return {
6289
+ * ...params,
6290
+ * timestamp: new Date().toISOString()
6291
+ * };
6292
+ * };
6293
+ * ```
6294
+ */
6295
+ type beforeExecuteMetaModifier = (context: {
6296
+ toolSlug: string;
6297
+ toolkitSlug: string;
6298
+ sessionId: string;
6299
+ params: MetaToolArguments;
6300
+ }) => Promise<MetaToolArguments> | MetaToolArguments;
6301
+ /**
6302
+ * Modifier for altering the meta tool execution response after execution completes in a session context.
6303
+ *
6304
+ * This function is specifically designed for meta tools executed within a tool router session,
6305
+ * allowing you to intercept and modify the response after execution. This is useful for
6306
+ * session-specific transformations, logging, or error handling.
6307
+ *
6308
+ * @param {string} toolSlug - The slug identifier of the meta tool that was executed
6309
+ * @param {string} toolkitSlug - The toolkit slug (always 'composio' for meta tools)
6310
+ * @param {string} sessionId - The session ID for the tool router context
6311
+ * @param {ToolExecuteResponse} result - The original execution response
6312
+ * @returns {ToolExecuteResponse} The modified execution response
6313
+ *
6314
+ * @example
6315
+ * ```typescript
6316
+ * const afterExecuteMeta = ({ toolSlug, toolkitSlug, sessionId, result }) => {
6317
+ * // Log session-specific execution
6318
+ * console.log(`${toolkitSlug} meta tool ${toolSlug} completed in session ${sessionId}`);
6319
+ *
6320
+ * if (!result.successful) {
6321
+ * console.error(`Session ${sessionId} error:`, result.error);
6322
+ * }
6323
+ *
6324
+ * return result;
6325
+ * };
6326
+ * ```
6327
+ */
6328
+ type afterExecuteMetaModifier = (context: {
6329
+ toolSlug: string;
6330
+ toolkitSlug: string;
6331
+ sessionId: string;
6332
+ result: ToolExecuteResponse;
6333
+ }) => Promise<ToolExecuteResponse> | ToolExecuteResponse;
6334
+ /**
6335
+ * Modifiers specifically for meta tool execution within a session context.
6336
+ *
6337
+ * These modifiers are designed for tool router session-based meta tool execution,
6338
+ * providing hooks to intercept and modify both the request and response of meta tools.
6339
+ * Meta tools are grouped under the 'composio' toolkit for organizational consistency.
6340
+ *
6341
+ * @example
6342
+ * ```typescript
6343
+ * const metaModifiers: SessionExecuteMetaModifiers = {
6344
+ * beforeExecute: ({ toolSlug, toolkitSlug, sessionId, params }) => {
6345
+ * // Add session tracking
6346
+ * console.log(`Executing ${toolkitSlug}/${toolSlug}`);
6347
+ * return {
6348
+ * ...params,
6349
+ * sessionMetadata: {
6350
+ * startTime: Date.now(),
6351
+ * sessionId
6352
+ * }
6353
+ * };
6354
+ * },
6355
+ *
6356
+ * afterExecute: ({ toolSlug, toolkitSlug, sessionId, result }) => {
6357
+ * // Transform session results
6358
+ * return {
6359
+ * ...result,
6360
+ * sessionInfo: {
6361
+ * sessionId,
6362
+ * toolSlug,
6363
+ * toolkitSlug,
6364
+ * completedAt: new Date().toISOString()
6365
+ * }
6366
+ * };
6367
+ * }
6368
+ * };
6369
+ * ```
6370
+ */
6371
+ type SessionExecuteMetaModifiers = {
6372
+ /**
6373
+ * Function to intercept and modify meta tool execution parameters before the tool is executed.
6374
+ * This allows customizing the request based on session-specific needs.
6375
+ */
6376
+ beforeExecute?: beforeExecuteMetaModifier;
6377
+ /**
6378
+ * Function to intercept and modify meta tool execution responses after the tool has executed.
6379
+ * This allows transforming the response or implementing custom session-specific handling.
6380
+ */
6381
+ afterExecute?: afterExecuteMetaModifier;
6382
+ };
6261
6383
  /**
6262
6384
  * Options for agentic tool configuration.
6263
6385
  *
@@ -6295,6 +6417,46 @@ type ExecuteToolModifiers = {
6295
6417
  * ```
6296
6418
  */
6297
6419
  type AgenticToolOptions = ToolOptions & ExecuteToolModifiers;
6420
+ /**
6421
+ * Options for session-based meta tool configuration in tool router contexts.
6422
+ *
6423
+ * These options combine schema modification capabilities with session-specific execution
6424
+ * behavior customization, providing control over both the definition and execution
6425
+ * of meta tools within a tool router session. Meta tools are grouped under the 'composio' toolkit.
6426
+ *
6427
+ * @example
6428
+ * ```typescript
6429
+ * // Configure meta tools with schema and session-specific execution modifications
6430
+ * const sessionTools = await toolRouter.getTools(sessionId, {
6431
+ * modifySchema: (context) => {
6432
+ * return {
6433
+ * ...context.schema,
6434
+ * description: `Session-specific ${context.toolSlug}`
6435
+ * };
6436
+ * },
6437
+ *
6438
+ * // Intercept before meta tool execution
6439
+ * beforeExecute: ({ toolSlug, toolkitSlug, sessionId, params }) => {
6440
+ * // Add session tracking
6441
+ * console.log(`Executing ${toolkitSlug}/${toolSlug}`);
6442
+ * return {
6443
+ * ...params,
6444
+ * sessionMetadata: { sessionId, timestamp: Date.now() }
6445
+ * };
6446
+ * },
6447
+ *
6448
+ * // Transform after meta tool execution
6449
+ * afterExecute: ({ toolSlug, toolkitSlug, sessionId, result }) => {
6450
+ * // Log session results
6451
+ * if (!result.successful) {
6452
+ * logSessionError(sessionId, toolkitSlug, toolSlug, result.error);
6453
+ * }
6454
+ * return result;
6455
+ * }
6456
+ * });
6457
+ * ```
6458
+ */
6459
+ type SessionMetaToolOptions = ToolOptions & SessionExecuteMetaModifiers;
6298
6460
  /**
6299
6461
  * Provider-specific options determined by the type of provider being used.
6300
6462
  *
@@ -26848,6 +27010,23 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
26848
27010
  * ```
26849
27011
  */
26850
27012
  getRawComposioTools(query: ToolListParams, options?: SchemaModifierOptions): Promise<ToolList>;
27013
+ /**
27014
+ * Fetches the meta tools for a tool router session.
27015
+ * This method fetches the meta tools from the Composio API and transforms them to the expected format.
27016
+ * It provides access to the underlying meta tool data without provider-specific wrapping.
27017
+ *
27018
+ * @param sessionId {string} The session id to get the meta tools for
27019
+ * @param options {SchemaModifierOptions} Optional configuration for tool retrieval
27020
+ * @param {TransformToolSchemaModifier} [options.modifySchema] - Function to transform the tool schema
27021
+ * @returns {Promise<ToolList>} The list of meta tools
27022
+ *
27023
+ * @example
27024
+ * ```typescript
27025
+ * const metaTools = await composio.tools.getRawToolRouterMetaTools('session_123');
27026
+ * console.log(metaTools);
27027
+ * ```
27028
+ */
27029
+ getRawToolRouterMetaTools(sessionId: string, options?: SchemaModifierOptions): Promise<ToolList>;
26851
27030
  /**
26852
27031
  * Retrieves a specific tool by its slug from the Composio API.
26853
27032
  *
@@ -26983,10 +27162,10 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
26983
27162
  *
26984
27163
  * @param {string} sessionId - The session id to execute the tool for
26985
27164
  * @param {Tool[]} tools - The tools to wrap
26986
- * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27165
+ * @param {SessionExecuteMetaModifiers} modifiers - The modifiers to apply to the tool
26987
27166
  * @returns {Tool[]} The wrapped tools
26988
27167
  */
26989
- wrapToolsForToolRouter(sessionId: string, tools: Tool[], modifiers?: ExecuteToolModifiers): Tool[];
27168
+ wrapToolsForToolRouter(sessionId: string, tools: Tool[], modifiers?: SessionExecuteMetaModifiers): Tool[];
26990
27169
  /**
26991
27170
  * @internal
26992
27171
  * @description
@@ -27003,7 +27182,7 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
27003
27182
  * Creates a function that executes a tool for a tool router session
27004
27183
  *
27005
27184
  * @param {string} sessionId - The session id to execute the tool for
27006
- * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27185
+ * @param {SessionExecuteMetaModifiers} modifiers - The modifiers to apply to the tool
27007
27186
  * @returns {ExecuteToolFn} The execute tool function
27008
27187
  */
27009
27188
  private createExecuteToolFnForToolRouter;
@@ -27096,10 +27275,10 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
27096
27275
  * @param {ToolExecuteMetaParams} body - The execution parameters
27097
27276
  * @param {string} body.sessionId - The session id to execute the tool for
27098
27277
  * @param {Record<string, unknown>} body.arguments - The input to pass to the tool
27099
- * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27278
+ * @param {SessionExecuteMetaModifiers} modifiers - The modifiers to apply to the tool
27100
27279
  * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
27101
27280
  */
27102
- executeMetaTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: ExecuteToolModifiers): Promise<ToolExecuteResponse>;
27281
+ executeMetaTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: SessionExecuteMetaModifiers): Promise<ToolExecuteResponse>;
27103
27282
  /**
27104
27283
  * Fetches the list of all available tools in the Composio SDK.
27105
27284
  *
@@ -27261,6 +27440,7 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
27261
27440
  logo?: string | undefined;
27262
27441
  availableVersions?: string[] | undefined;
27263
27442
  createdAt?: string | undefined;
27443
+ updatedAt?: string | undefined;
27264
27444
  categories?: {
27265
27445
  slug: string;
27266
27446
  name: string;
@@ -27268,12 +27448,12 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
27268
27448
  appUrl?: string | undefined;
27269
27449
  toolsCount?: number | undefined;
27270
27450
  triggersCount?: number | undefined;
27271
- updatedAt?: string | undefined;
27272
27451
  }, {
27273
27452
  description?: string | undefined;
27274
27453
  logo?: string | undefined;
27275
27454
  availableVersions?: string[] | undefined;
27276
27455
  createdAt?: string | undefined;
27456
+ updatedAt?: string | undefined;
27277
27457
  categories?: {
27278
27458
  slug: string;
27279
27459
  name: string;
@@ -27281,7 +27461,6 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
27281
27461
  appUrl?: string | undefined;
27282
27462
  toolsCount?: number | undefined;
27283
27463
  triggersCount?: number | undefined;
27284
- updatedAt?: string | undefined;
27285
27464
  }>;
27286
27465
  declare const ToolKitItemSchema: z$1.ZodObject<{
27287
27466
  name: z$1.ZodString;
@@ -27310,6 +27489,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27310
27489
  logo?: string | undefined;
27311
27490
  availableVersions?: string[] | undefined;
27312
27491
  createdAt?: string | undefined;
27492
+ updatedAt?: string | undefined;
27313
27493
  categories?: {
27314
27494
  slug: string;
27315
27495
  name: string;
@@ -27317,12 +27497,12 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27317
27497
  appUrl?: string | undefined;
27318
27498
  toolsCount?: number | undefined;
27319
27499
  triggersCount?: number | undefined;
27320
- updatedAt?: string | undefined;
27321
27500
  }, {
27322
27501
  description?: string | undefined;
27323
27502
  logo?: string | undefined;
27324
27503
  availableVersions?: string[] | undefined;
27325
27504
  createdAt?: string | undefined;
27505
+ updatedAt?: string | undefined;
27326
27506
  categories?: {
27327
27507
  slug: string;
27328
27508
  name: string;
@@ -27330,7 +27510,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27330
27510
  appUrl?: string | undefined;
27331
27511
  toolsCount?: number | undefined;
27332
27512
  triggersCount?: number | undefined;
27333
- updatedAt?: string | undefined;
27334
27513
  }>;
27335
27514
  isLocalToolkit: z$1.ZodBoolean;
27336
27515
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -27344,6 +27523,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27344
27523
  logo?: string | undefined;
27345
27524
  availableVersions?: string[] | undefined;
27346
27525
  createdAt?: string | undefined;
27526
+ updatedAt?: string | undefined;
27347
27527
  categories?: {
27348
27528
  slug: string;
27349
27529
  name: string;
@@ -27351,7 +27531,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27351
27531
  appUrl?: string | undefined;
27352
27532
  toolsCount?: number | undefined;
27353
27533
  triggersCount?: number | undefined;
27354
- updatedAt?: string | undefined;
27355
27534
  };
27356
27535
  isLocalToolkit: boolean;
27357
27536
  authSchemes?: string[] | undefined;
@@ -27365,6 +27544,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27365
27544
  logo?: string | undefined;
27366
27545
  availableVersions?: string[] | undefined;
27367
27546
  createdAt?: string | undefined;
27547
+ updatedAt?: string | undefined;
27368
27548
  categories?: {
27369
27549
  slug: string;
27370
27550
  name: string;
@@ -27372,7 +27552,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27372
27552
  appUrl?: string | undefined;
27373
27553
  toolsCount?: number | undefined;
27374
27554
  triggersCount?: number | undefined;
27375
- updatedAt?: string | undefined;
27376
27555
  };
27377
27556
  isLocalToolkit: boolean;
27378
27557
  authSchemes?: string[] | undefined;
@@ -27406,6 +27585,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27406
27585
  logo?: string | undefined;
27407
27586
  availableVersions?: string[] | undefined;
27408
27587
  createdAt?: string | undefined;
27588
+ updatedAt?: string | undefined;
27409
27589
  categories?: {
27410
27590
  slug: string;
27411
27591
  name: string;
@@ -27413,12 +27593,12 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27413
27593
  appUrl?: string | undefined;
27414
27594
  toolsCount?: number | undefined;
27415
27595
  triggersCount?: number | undefined;
27416
- updatedAt?: string | undefined;
27417
27596
  }, {
27418
27597
  description?: string | undefined;
27419
27598
  logo?: string | undefined;
27420
27599
  availableVersions?: string[] | undefined;
27421
27600
  createdAt?: string | undefined;
27601
+ updatedAt?: string | undefined;
27422
27602
  categories?: {
27423
27603
  slug: string;
27424
27604
  name: string;
@@ -27426,7 +27606,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27426
27606
  appUrl?: string | undefined;
27427
27607
  toolsCount?: number | undefined;
27428
27608
  triggersCount?: number | undefined;
27429
- updatedAt?: string | undefined;
27430
27609
  }>;
27431
27610
  isLocalToolkit: z$1.ZodBoolean;
27432
27611
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -27440,6 +27619,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27440
27619
  logo?: string | undefined;
27441
27620
  availableVersions?: string[] | undefined;
27442
27621
  createdAt?: string | undefined;
27622
+ updatedAt?: string | undefined;
27443
27623
  categories?: {
27444
27624
  slug: string;
27445
27625
  name: string;
@@ -27447,7 +27627,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27447
27627
  appUrl?: string | undefined;
27448
27628
  toolsCount?: number | undefined;
27449
27629
  triggersCount?: number | undefined;
27450
- updatedAt?: string | undefined;
27451
27630
  };
27452
27631
  isLocalToolkit: boolean;
27453
27632
  authSchemes?: string[] | undefined;
@@ -27461,6 +27640,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27461
27640
  logo?: string | undefined;
27462
27641
  availableVersions?: string[] | undefined;
27463
27642
  createdAt?: string | undefined;
27643
+ updatedAt?: string | undefined;
27464
27644
  categories?: {
27465
27645
  slug: string;
27466
27646
  name: string;
@@ -27468,7 +27648,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27468
27648
  appUrl?: string | undefined;
27469
27649
  toolsCount?: number | undefined;
27470
27650
  triggersCount?: number | undefined;
27471
- updatedAt?: string | undefined;
27472
27651
  };
27473
27652
  isLocalToolkit: boolean;
27474
27653
  authSchemes?: string[] | undefined;
@@ -27865,6 +28044,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
27865
28044
  logo?: string | undefined;
27866
28045
  availableVersions?: string[] | undefined;
27867
28046
  createdAt?: string | undefined;
28047
+ updatedAt?: string | undefined;
27868
28048
  categories?: {
27869
28049
  slug: string;
27870
28050
  name: string;
@@ -27872,12 +28052,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
27872
28052
  appUrl?: string | undefined;
27873
28053
  toolsCount?: number | undefined;
27874
28054
  triggersCount?: number | undefined;
27875
- updatedAt?: string | undefined;
27876
28055
  }, {
27877
28056
  description?: string | undefined;
27878
28057
  logo?: string | undefined;
27879
28058
  availableVersions?: string[] | undefined;
27880
28059
  createdAt?: string | undefined;
28060
+ updatedAt?: string | undefined;
27881
28061
  categories?: {
27882
28062
  slug: string;
27883
28063
  name: string;
@@ -27885,7 +28065,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
27885
28065
  appUrl?: string | undefined;
27886
28066
  toolsCount?: number | undefined;
27887
28067
  triggersCount?: number | undefined;
27888
- updatedAt?: string | undefined;
27889
28068
  }>;
27890
28069
  isLocalToolkit: z$1.ZodBoolean;
27891
28070
  composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -28234,6 +28413,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28234
28413
  logo?: string | undefined;
28235
28414
  availableVersions?: string[] | undefined;
28236
28415
  createdAt?: string | undefined;
28416
+ updatedAt?: string | undefined;
28237
28417
  categories?: {
28238
28418
  slug: string;
28239
28419
  name: string;
@@ -28241,7 +28421,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28241
28421
  appUrl?: string | undefined;
28242
28422
  toolsCount?: number | undefined;
28243
28423
  triggersCount?: number | undefined;
28244
- updatedAt?: string | undefined;
28245
28424
  };
28246
28425
  isLocalToolkit: boolean;
28247
28426
  composioManagedAuthSchemes?: string[] | undefined;
@@ -28300,6 +28479,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28300
28479
  logo?: string | undefined;
28301
28480
  availableVersions?: string[] | undefined;
28302
28481
  createdAt?: string | undefined;
28482
+ updatedAt?: string | undefined;
28303
28483
  categories?: {
28304
28484
  slug: string;
28305
28485
  name: string;
@@ -28307,7 +28487,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28307
28487
  appUrl?: string | undefined;
28308
28488
  toolsCount?: number | undefined;
28309
28489
  triggersCount?: number | undefined;
28310
- updatedAt?: string | undefined;
28311
28490
  };
28312
28491
  isLocalToolkit: boolean;
28313
28492
  composioManagedAuthSchemes?: string[] | undefined;
@@ -29489,21 +29668,21 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
29489
29668
  }, "strip", z$1.ZodTypeAny, {
29490
29669
  connectedAccountId: string;
29491
29670
  id: string;
29492
- updatedAt: string;
29493
29671
  disabledAt: string | null;
29494
29672
  state: Record<string, unknown>;
29495
29673
  triggerConfig: Record<string, unknown>;
29496
29674
  triggerName: string;
29675
+ updatedAt: string;
29497
29676
  uuid?: string | undefined;
29498
29677
  triggerData?: string | undefined;
29499
29678
  }, {
29500
29679
  connectedAccountId: string;
29501
29680
  id: string;
29502
- updatedAt: string;
29503
29681
  disabledAt: string | null;
29504
29682
  state: Record<string, unknown>;
29505
29683
  triggerConfig: Record<string, unknown>;
29506
29684
  triggerName: string;
29685
+ updatedAt: string;
29507
29686
  uuid?: string | undefined;
29508
29687
  triggerData?: string | undefined;
29509
29688
  }>;
@@ -29521,21 +29700,21 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
29521
29700
  }, "strip", z$1.ZodTypeAny, {
29522
29701
  connectedAccountId: string;
29523
29702
  id: string;
29524
- updatedAt: string;
29525
29703
  disabledAt: string | null;
29526
29704
  state: Record<string, unknown>;
29527
29705
  triggerConfig: Record<string, unknown>;
29528
29706
  triggerName: string;
29707
+ updatedAt: string;
29529
29708
  uuid?: string | undefined;
29530
29709
  triggerData?: string | undefined;
29531
29710
  }, {
29532
29711
  connectedAccountId: string;
29533
29712
  id: string;
29534
- updatedAt: string;
29535
29713
  disabledAt: string | null;
29536
29714
  state: Record<string, unknown>;
29537
29715
  triggerConfig: Record<string, unknown>;
29538
29716
  triggerName: string;
29717
+ updatedAt: string;
29539
29718
  uuid?: string | undefined;
29540
29719
  triggerData?: string | undefined;
29541
29720
  }>, "many">;
@@ -29545,11 +29724,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
29545
29724
  items: {
29546
29725
  connectedAccountId: string;
29547
29726
  id: string;
29548
- updatedAt: string;
29549
29727
  disabledAt: string | null;
29550
29728
  state: Record<string, unknown>;
29551
29729
  triggerConfig: Record<string, unknown>;
29552
29730
  triggerName: string;
29731
+ updatedAt: string;
29553
29732
  uuid?: string | undefined;
29554
29733
  triggerData?: string | undefined;
29555
29734
  }[];
@@ -29559,11 +29738,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
29559
29738
  items: {
29560
29739
  connectedAccountId: string;
29561
29740
  id: string;
29562
- updatedAt: string;
29563
29741
  disabledAt: string | null;
29564
29742
  state: Record<string, unknown>;
29565
29743
  triggerConfig: Record<string, unknown>;
29566
29744
  triggerName: string;
29745
+ updatedAt: string;
29567
29746
  uuid?: string | undefined;
29568
29747
  triggerData?: string | undefined;
29569
29748
  }[];
@@ -29923,16 +30102,292 @@ type TriggerEventData<TPayload = unknown> = TPayload & {
29923
30102
  trigger_nano_id: string;
29924
30103
  user_id: string;
29925
30104
  };
30105
+ /**
30106
+ * Webhook payload schemas for V1, V2, V3 versions
30107
+ * These schemas represent the raw payload structure sent by Composio's webhook system
30108
+ */
30109
+ /** V1 webhook payload - legacy format */
30110
+ declare const WebhookPayloadV1Schema: z$1.ZodObject<{
30111
+ trigger_name: z$1.ZodString;
30112
+ connection_id: z$1.ZodString;
30113
+ trigger_id: z$1.ZodString;
30114
+ payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
30115
+ log_id: z$1.ZodString;
30116
+ }, "strip", z$1.ZodTypeAny, {
30117
+ payload: Record<string, unknown>;
30118
+ trigger_name: string;
30119
+ connection_id: string;
30120
+ trigger_id: string;
30121
+ log_id: string;
30122
+ }, {
30123
+ payload: Record<string, unknown>;
30124
+ trigger_name: string;
30125
+ connection_id: string;
30126
+ trigger_id: string;
30127
+ log_id: string;
30128
+ }>;
30129
+ type WebhookPayloadV1 = z$1.infer<typeof WebhookPayloadV1Schema>;
30130
+ /** V2 webhook payload - includes timestamp and nested data */
30131
+ declare const WebhookPayloadV2Schema: z$1.ZodObject<{
30132
+ type: z$1.ZodString;
30133
+ timestamp: z$1.ZodString;
30134
+ log_id: z$1.ZodString;
30135
+ data: z$1.ZodObject<{
30136
+ connection_id: z$1.ZodString;
30137
+ connection_nano_id: z$1.ZodString;
30138
+ trigger_nano_id: z$1.ZodString;
30139
+ trigger_id: z$1.ZodString;
30140
+ user_id: z$1.ZodString;
30141
+ }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
30142
+ connection_id: z$1.ZodString;
30143
+ connection_nano_id: z$1.ZodString;
30144
+ trigger_nano_id: z$1.ZodString;
30145
+ trigger_id: z$1.ZodString;
30146
+ user_id: z$1.ZodString;
30147
+ }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
30148
+ connection_id: z$1.ZodString;
30149
+ connection_nano_id: z$1.ZodString;
30150
+ trigger_nano_id: z$1.ZodString;
30151
+ trigger_id: z$1.ZodString;
30152
+ user_id: z$1.ZodString;
30153
+ }, z$1.ZodTypeAny, "passthrough">>;
30154
+ }, "strip", z$1.ZodTypeAny, {
30155
+ type: string;
30156
+ data: {
30157
+ connection_id: string;
30158
+ trigger_id: string;
30159
+ connection_nano_id: string;
30160
+ trigger_nano_id: string;
30161
+ user_id: string;
30162
+ } & {
30163
+ [k: string]: unknown;
30164
+ };
30165
+ log_id: string;
30166
+ timestamp: string;
30167
+ }, {
30168
+ type: string;
30169
+ data: {
30170
+ connection_id: string;
30171
+ trigger_id: string;
30172
+ connection_nano_id: string;
30173
+ trigger_nano_id: string;
30174
+ user_id: string;
30175
+ } & {
30176
+ [k: string]: unknown;
30177
+ };
30178
+ log_id: string;
30179
+ timestamp: string;
30180
+ }>;
30181
+ type WebhookPayloadV2 = z$1.infer<typeof WebhookPayloadV2Schema>;
30182
+ /** V3 webhook payload - current format with metadata */
30183
+ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
30184
+ id: z$1.ZodString;
30185
+ timestamp: z$1.ZodString;
30186
+ type: z$1.ZodLiteral<"composio.trigger.message">;
30187
+ metadata: z$1.ZodObject<{
30188
+ log_id: z$1.ZodString;
30189
+ trigger_slug: z$1.ZodString;
30190
+ trigger_id: z$1.ZodString;
30191
+ connected_account_id: z$1.ZodString;
30192
+ auth_config_id: z$1.ZodString;
30193
+ user_id: z$1.ZodString;
30194
+ }, "strip", z$1.ZodTypeAny, {
30195
+ trigger_id: string;
30196
+ log_id: string;
30197
+ user_id: string;
30198
+ trigger_slug: string;
30199
+ connected_account_id: string;
30200
+ auth_config_id: string;
30201
+ }, {
30202
+ trigger_id: string;
30203
+ log_id: string;
30204
+ user_id: string;
30205
+ trigger_slug: string;
30206
+ connected_account_id: string;
30207
+ auth_config_id: string;
30208
+ }>;
30209
+ data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
30210
+ }, "strip", z$1.ZodTypeAny, {
30211
+ type: "composio.trigger.message";
30212
+ data: Record<string, unknown>;
30213
+ id: string;
30214
+ metadata: {
30215
+ trigger_id: string;
30216
+ log_id: string;
30217
+ user_id: string;
30218
+ trigger_slug: string;
30219
+ connected_account_id: string;
30220
+ auth_config_id: string;
30221
+ };
30222
+ timestamp: string;
30223
+ }, {
30224
+ type: "composio.trigger.message";
30225
+ data: Record<string, unknown>;
30226
+ id: string;
30227
+ metadata: {
30228
+ trigger_id: string;
30229
+ log_id: string;
30230
+ user_id: string;
30231
+ trigger_slug: string;
30232
+ connected_account_id: string;
30233
+ auth_config_id: string;
30234
+ };
30235
+ timestamp: string;
30236
+ }>;
30237
+ type WebhookPayloadV3 = z$1.infer<typeof WebhookPayloadV3Schema>;
30238
+ /** Union of all webhook payload versions */
30239
+ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
30240
+ id: z$1.ZodString;
30241
+ timestamp: z$1.ZodString;
30242
+ type: z$1.ZodLiteral<"composio.trigger.message">;
30243
+ metadata: z$1.ZodObject<{
30244
+ log_id: z$1.ZodString;
30245
+ trigger_slug: z$1.ZodString;
30246
+ trigger_id: z$1.ZodString;
30247
+ connected_account_id: z$1.ZodString;
30248
+ auth_config_id: z$1.ZodString;
30249
+ user_id: z$1.ZodString;
30250
+ }, "strip", z$1.ZodTypeAny, {
30251
+ trigger_id: string;
30252
+ log_id: string;
30253
+ user_id: string;
30254
+ trigger_slug: string;
30255
+ connected_account_id: string;
30256
+ auth_config_id: string;
30257
+ }, {
30258
+ trigger_id: string;
30259
+ log_id: string;
30260
+ user_id: string;
30261
+ trigger_slug: string;
30262
+ connected_account_id: string;
30263
+ auth_config_id: string;
30264
+ }>;
30265
+ data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
30266
+ }, "strip", z$1.ZodTypeAny, {
30267
+ type: "composio.trigger.message";
30268
+ data: Record<string, unknown>;
30269
+ id: string;
30270
+ metadata: {
30271
+ trigger_id: string;
30272
+ log_id: string;
30273
+ user_id: string;
30274
+ trigger_slug: string;
30275
+ connected_account_id: string;
30276
+ auth_config_id: string;
30277
+ };
30278
+ timestamp: string;
30279
+ }, {
30280
+ type: "composio.trigger.message";
30281
+ data: Record<string, unknown>;
30282
+ id: string;
30283
+ metadata: {
30284
+ trigger_id: string;
30285
+ log_id: string;
30286
+ user_id: string;
30287
+ trigger_slug: string;
30288
+ connected_account_id: string;
30289
+ auth_config_id: string;
30290
+ };
30291
+ timestamp: string;
30292
+ }>, z$1.ZodObject<{
30293
+ type: z$1.ZodString;
30294
+ timestamp: z$1.ZodString;
30295
+ log_id: z$1.ZodString;
30296
+ data: z$1.ZodObject<{
30297
+ connection_id: z$1.ZodString;
30298
+ connection_nano_id: z$1.ZodString;
30299
+ trigger_nano_id: z$1.ZodString;
30300
+ trigger_id: z$1.ZodString;
30301
+ user_id: z$1.ZodString;
30302
+ }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
30303
+ connection_id: z$1.ZodString;
30304
+ connection_nano_id: z$1.ZodString;
30305
+ trigger_nano_id: z$1.ZodString;
30306
+ trigger_id: z$1.ZodString;
30307
+ user_id: z$1.ZodString;
30308
+ }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
30309
+ connection_id: z$1.ZodString;
30310
+ connection_nano_id: z$1.ZodString;
30311
+ trigger_nano_id: z$1.ZodString;
30312
+ trigger_id: z$1.ZodString;
30313
+ user_id: z$1.ZodString;
30314
+ }, z$1.ZodTypeAny, "passthrough">>;
30315
+ }, "strip", z$1.ZodTypeAny, {
30316
+ type: string;
30317
+ data: {
30318
+ connection_id: string;
30319
+ trigger_id: string;
30320
+ connection_nano_id: string;
30321
+ trigger_nano_id: string;
30322
+ user_id: string;
30323
+ } & {
30324
+ [k: string]: unknown;
30325
+ };
30326
+ log_id: string;
30327
+ timestamp: string;
30328
+ }, {
30329
+ type: string;
30330
+ data: {
30331
+ connection_id: string;
30332
+ trigger_id: string;
30333
+ connection_nano_id: string;
30334
+ trigger_nano_id: string;
30335
+ user_id: string;
30336
+ } & {
30337
+ [k: string]: unknown;
30338
+ };
30339
+ log_id: string;
30340
+ timestamp: string;
30341
+ }>, z$1.ZodObject<{
30342
+ trigger_name: z$1.ZodString;
30343
+ connection_id: z$1.ZodString;
30344
+ trigger_id: z$1.ZodString;
30345
+ payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
30346
+ log_id: z$1.ZodString;
30347
+ }, "strip", z$1.ZodTypeAny, {
30348
+ payload: Record<string, unknown>;
30349
+ trigger_name: string;
30350
+ connection_id: string;
30351
+ trigger_id: string;
30352
+ log_id: string;
30353
+ }, {
30354
+ payload: Record<string, unknown>;
30355
+ trigger_name: string;
30356
+ connection_id: string;
30357
+ trigger_id: string;
30358
+ log_id: string;
30359
+ }>]>;
30360
+ type WebhookPayload = z$1.infer<typeof WebhookPayloadSchema>;
30361
+ /** Webhook version enum */
30362
+ declare const WebhookVersions: {
30363
+ readonly V1: "V1";
30364
+ readonly V2: "V2";
30365
+ readonly V3: "V3";
30366
+ };
30367
+ type WebhookVersion = (typeof WebhookVersions)[keyof typeof WebhookVersions];
29926
30368
  /**
29927
30369
  * Parameters for verifying a webhook signature
29928
30370
  */
29929
30371
  declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
30372
+ /**
30373
+ * The webhook message ID from the 'webhook-id' header.
30374
+ * Format: 'msg_xxx'
30375
+ */
30376
+ id: z$1.ZodString;
29930
30377
  /** The raw webhook payload as a string (request body) */
29931
30378
  payload: z$1.ZodString;
29932
- /** The signature from the webhook header (e.g., 'x-composio-signature') */
29933
- signature: z$1.ZodString;
29934
- /** The webhook secret used to sign the payload */
30379
+ /** The webhook secret used to sign the payload (from Composio dashboard) */
29935
30380
  secret: z$1.ZodString;
30381
+ /**
30382
+ * The signature from the 'webhook-signature' header.
30383
+ * Format: 'v1,base64EncodedSignature'
30384
+ */
30385
+ signature: z$1.ZodString;
30386
+ /**
30387
+ * The webhook timestamp from the 'webhook-timestamp' header.
30388
+ * This is the Unix timestamp in seconds when the webhook was sent.
30389
+ */
30390
+ timestamp: z$1.ZodString;
29936
30391
  /**
29937
30392
  * Maximum allowed age of the webhook in seconds.
29938
30393
  * If the webhook timestamp is older than this, verification will fail.
@@ -29941,21 +30396,33 @@ declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
29941
30396
  */
29942
30397
  tolerance: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
29943
30398
  }, "strip", z$1.ZodTypeAny, {
30399
+ id: string;
29944
30400
  payload: string;
29945
- signature: string;
30401
+ timestamp: string;
29946
30402
  secret: string;
30403
+ signature: string;
29947
30404
  tolerance: number;
29948
30405
  }, {
30406
+ id: string;
29949
30407
  payload: string;
29950
- signature: string;
30408
+ timestamp: string;
29951
30409
  secret: string;
30410
+ signature: string;
29952
30411
  tolerance?: number | undefined;
29953
30412
  }>;
29954
30413
  type VerifyWebhookParams = z$1.input<typeof VerifyWebhookParamsSchema>;
29955
30414
  /**
29956
- * Result of a successful webhook verification
30415
+ * Result of a successful webhook verification.
30416
+ * Contains the parsed payload along with version information.
29957
30417
  */
29958
- type VerifyWebhookResult = IncomingTriggerPayload;
30418
+ type VerifyWebhookResult = {
30419
+ /** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */
30420
+ version: WebhookVersion;
30421
+ /** The parsed and normalized webhook payload */
30422
+ payload: IncomingTriggerPayload;
30423
+ /** The raw parsed payload before normalization */
30424
+ rawPayload: WebhookPayload;
30425
+ };
29959
30426
  //#endregion
29960
30427
  //#region src/models/Triggers.d.ts
29961
30428
  /**
@@ -30091,15 +30558,20 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
30091
30558
  * Verify an incoming webhook payload and signature.
30092
30559
  *
30093
30560
  * This method validates that the webhook request is authentic by:
30094
- * 1. Verifying the HMAC-SHA256 signature matches the payload
30561
+ * 1. Verifying the HMAC-SHA256 signature matches the payload using the correct signing format
30095
30562
  * 2. Optionally checking that the webhook timestamp is within the tolerance window
30096
30563
  *
30564
+ * The signature is computed as: `HMAC-SHA256(${webhookId}.${webhookTimestamp}.${payload}, secret)`
30565
+ * and is expected in the format: `v1,base64EncodedSignature`
30566
+ *
30097
30567
  * @param {VerifyWebhookParams} params - The verification parameters
30098
30568
  * @param {string} params.payload - The raw webhook payload as a string (request body)
30099
- * @param {string} params.signature - The signature from the webhook header (e.g., 'x-composio-signature')
30569
+ * @param {string} params.signature - The signature from the 'webhook-signature' header
30100
30570
  * @param {string} params.secret - The webhook secret used to sign the payload
30571
+ * @param {string} params.webhookId - The webhook ID from the 'webhook-id' header
30572
+ * @param {string} params.webhookTimestamp - The timestamp from the 'webhook-timestamp' header (Unix seconds)
30101
30573
  * @param {number} [params.tolerance=300] - Maximum allowed age of the webhook in seconds (default: 5 minutes). Set to 0 to disable timestamp validation.
30102
- * @returns {VerifyWebhookResult} The verified and parsed webhook payload
30574
+ * @returns {VerifyWebhookResult} The verified and parsed webhook payload with version information
30103
30575
  *
30104
30576
  * @throws {ValidationError} If the parameters are invalid
30105
30577
  * @throws {ComposioWebhookSignatureVerificationError} If the signature verification fails
@@ -30110,14 +30582,17 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
30110
30582
  * // In an Express.js webhook handler
30111
30583
  * app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => {
30112
30584
  * try {
30113
- * const payload = composio.triggers.verifyWebhook({
30585
+ * const result = composio.triggers.verifyWebhook({
30114
30586
  * payload: req.body.toString(),
30115
- * signature: req.headers['x-composio-signature'] as string,
30587
+ * signature: req.headers['webhook-signature'] as string,
30588
+ * webhookId: req.headers['webhook-id'] as string,
30589
+ * webhookTimestamp: req.headers['webhook-timestamp'] as string,
30116
30590
  * secret: process.env.COMPOSIO_WEBHOOK_SECRET!,
30117
30591
  * });
30118
30592
  *
30119
30593
  * // Process the verified payload
30120
- * console.log('Received trigger:', payload.triggerSlug);
30594
+ * console.log('Webhook version:', result.version);
30595
+ * console.log('Received trigger:', result.payload.triggerSlug);
30121
30596
  * res.status(200).send('OK');
30122
30597
  * } catch (error) {
30123
30598
  * console.error('Webhook verification failed:', error);
@@ -30128,7 +30603,29 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
30128
30603
  */
30129
30604
  verifyWebhook(params: VerifyWebhookParams): VerifyWebhookResult;
30130
30605
  /**
30131
- * Verifies the HMAC-SHA256 signature of a webhook payload
30606
+ * Parses the webhook payload and detects its version (V1, V2, or V3)
30607
+ * @private
30608
+ */
30609
+ private parseWebhookPayload;
30610
+ /**
30611
+ * Normalizes a V1 webhook payload to IncomingTriggerPayload format
30612
+ * @private
30613
+ */
30614
+ private normalizeV1Payload;
30615
+ /**
30616
+ * Normalizes a V2 webhook payload to IncomingTriggerPayload format
30617
+ * @private
30618
+ */
30619
+ private normalizeV2Payload;
30620
+ /**
30621
+ * Normalizes a V3 webhook payload to IncomingTriggerPayload format
30622
+ * @private
30623
+ */
30624
+ private normalizeV3Payload;
30625
+ /**
30626
+ * Verifies the HMAC-SHA256 signature of a webhook payload.
30627
+ * The signature format used by Composio is: `v1,base64EncodedSignature`
30628
+ * The signing input is: `${msgId}.${timestamp}.${payload}`
30132
30629
  * @private
30133
30630
  */
30134
30631
  private verifyWebhookSignature;
@@ -30979,13 +31476,13 @@ declare const MCPUpdateParamsSchema: z.ZodObject<{
30979
31476
  }>;
30980
31477
  type MCPUpdateParams = z.infer<typeof MCPUpdateParamsSchema>;
30981
31478
  //#endregion
30982
- //#region src/models/MCP.experimental.d.ts
31479
+ //#region src/models/MCP.d.ts
30983
31480
  /**
30984
31481
  * MCP (Model Control Protocol) class
30985
31482
  * Handles MCP server operations.
30986
31483
  * When `config.experimental.mcp` is enabled, this class augments the features of `composio.mcp`.
30987
31484
  */
30988
- declare class MCP$1 {
31485
+ declare class MCP {
30989
31486
  client: Composio$1;
30990
31487
  constructor(client: Composio$1);
30991
31488
  /**
@@ -31525,67 +32022,21 @@ declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection
31525
32022
  //#region src/types/composio.types.d.ts
31526
32023
  type ComposioRequestHeaders = Record<string, string>;
31527
32024
  //#endregion
31528
- //#region src/types/files.types.d.ts
31529
- type FileUploadData = {
31530
- name: string;
31531
- mimetype: string;
31532
- s3key: string;
31533
- };
31534
- type FileDownloadData = {
31535
- name: string;
31536
- mimeType: string;
31537
- s3Url: string;
31538
- filePath: string;
31539
- };
31540
- //#endregion
31541
- //#region src/models/Files.d.ts
31542
- declare class Files {
31543
- private readonly client;
31544
- constructor(client: ComposioClient);
31545
- /**
31546
- * Upload a file to S3 and return the file data.
31547
- * @param filePath - The path to the file to upload or a URL of the file to upload.
31548
- * @param toolSlug - The slug of the tool that is uploading the file.
31549
- * @param toolkitSlug - The slug of the toolkit that is uploading the file.
31550
- * @returns The file data.
31551
- */
31552
- upload({
31553
- file,
31554
- toolSlug,
31555
- toolkitSlug
31556
- }: {
31557
- file: File | string;
31558
- toolSlug: string;
31559
- toolkitSlug: string;
31560
- }): Promise<FileUploadData>;
31561
- /**
31562
- * Download a file from S3 and return the file data.
31563
- * @param s3key - The S3 key of the file to download.
31564
- * @returns The file data.
31565
- */
31566
- download({
31567
- toolSlug,
31568
- s3Url,
31569
- mimeType
31570
- }: {
31571
- s3Url: string;
31572
- toolSlug: string;
31573
- mimeType: string;
31574
- }): Promise<FileDownloadData>;
31575
- }
31576
- //#endregion
31577
32025
  //#region src/types/toolRouter.types.d.ts
31578
32026
  declare const MCPServerTypeSchema: z.ZodEnum<["http", "sse"]>;
31579
32027
  type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
31580
32028
  declare const ToolRouterConfigManageConnectionsSchema: z.ZodObject<{
31581
32029
  enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
31582
32030
  callbackUrl: z.ZodOptional<z.ZodString>;
32031
+ waitForConnections: z.ZodOptional<z.ZodBoolean>;
31583
32032
  }, "strict", z.ZodTypeAny, {
31584
32033
  callbackUrl?: string | undefined;
31585
32034
  enable?: boolean | undefined;
32035
+ waitForConnections?: boolean | undefined;
31586
32036
  }, {
31587
32037
  callbackUrl?: string | undefined;
31588
32038
  enable?: boolean | undefined;
32039
+ waitForConnections?: boolean | undefined;
31589
32040
  }>;
31590
32041
  declare const ToolRouterToolkitsParamSchema: z.ZodArray<z.ZodString, "many">;
31591
32042
  declare const ToolRouterToolkitsDisabledConfigSchema: z.ZodObject<{
@@ -31792,12 +32243,15 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
31792
32243
  manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
31793
32244
  enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
31794
32245
  callbackUrl: z.ZodOptional<z.ZodString>;
32246
+ waitForConnections: z.ZodOptional<z.ZodBoolean>;
31795
32247
  }, "strict", z.ZodTypeAny, {
31796
32248
  callbackUrl?: string | undefined;
31797
32249
  enable?: boolean | undefined;
32250
+ waitForConnections?: boolean | undefined;
31798
32251
  }, {
31799
32252
  callbackUrl?: string | undefined;
31800
32253
  enable?: boolean | undefined;
32254
+ waitForConnections?: boolean | undefined;
31801
32255
  }>]>>>>;
31802
32256
  workbench: z.ZodOptional<z.ZodOptional<z.ZodObject<{
31803
32257
  enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
@@ -31834,6 +32288,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
31834
32288
  manageConnections?: boolean | {
31835
32289
  callbackUrl?: string | undefined;
31836
32290
  enable?: boolean | undefined;
32291
+ waitForConnections?: boolean | undefined;
31837
32292
  } | undefined;
31838
32293
  workbench?: {
31839
32294
  enableProxyExecution?: boolean | undefined;
@@ -31864,6 +32319,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodObject<{
31864
32319
  manageConnections?: boolean | {
31865
32320
  callbackUrl?: string | undefined;
31866
32321
  enable?: boolean | undefined;
32322
+ waitForConnections?: boolean | undefined;
31867
32323
  } | undefined;
31868
32324
  workbench?: {
31869
32325
  enableProxyExecution?: boolean | undefined;
@@ -32124,7 +32580,7 @@ declare const ToolRouterMCPServerConfigSchema: z.ZodObject<{
32124
32580
  headers?: Record<string, string> | undefined;
32125
32581
  }>;
32126
32582
  type ToolRouterMCPServerConfig = z.infer<typeof ToolRouterMCPServerConfigSchema>;
32127
- type ToolRouterToolsFn<TToolCollection$1, TTool$1, TProvider extends BaseComposioProvider<TToolCollection$1, TTool$1, unknown>> = (modifiers?: ProviderOptions<TProvider>) => Promise<ReturnType<TProvider['wrapTools']>>;
32583
+ type ToolRouterToolsFn<TToolCollection$1, TTool$1, TProvider extends BaseComposioProvider<TToolCollection$1, TTool$1, unknown>> = (modifiers?: SessionMetaToolOptions) => Promise<ReturnType<TProvider['wrapTools']>>;
32128
32584
  type ToolRouterAuthorizeFn = (toolkit: string, options?: {
32129
32585
  callbackUrl?: string;
32130
32586
  }) => Promise<ConnectionRequest>;
@@ -32210,9 +32666,8 @@ declare class ToolRouter<TToolCollection$1, TTool$1, TProvider extends BaseCompo
32210
32666
  * Creates a function that wraps the tools based on the provider.
32211
32667
  * The returned tools will be of the type the frameworks expects.
32212
32668
  *
32213
- * @param userId - The user id to get the tools for
32214
- * @param tools - The tools to wrap
32215
- * @returns A function that wraps the tools based on the provider.
32669
+ * @param sessionId - The session id to get the tools for
32670
+ * @returns A function that wraps the tools based on the provider with session-specific modifiers.
32216
32671
  */
32217
32672
  private createToolsFn;
32218
32673
  /**
@@ -32389,14 +32844,22 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
32389
32844
  /**
32390
32845
  * Core models for Composio.
32391
32846
  */
32847
+ /** List, retrieve, and execute tools */
32392
32848
  tools: Tools<unknown, unknown, TProvider>;
32849
+ /** Retrieve toolkit metadata and authorize user connections */
32393
32850
  toolkits: Toolkits;
32851
+ /** Manage webhook triggers and event subscriptions */
32394
32852
  triggers: Triggers<TProvider>;
32853
+ /** The tool provider instance used for wrapping tools in framework-specific formats */
32395
32854
  provider: TProvider;
32855
+ /** Upload and download files */
32396
32856
  files: Files;
32857
+ /** Manage authentication configurations for toolkits */
32397
32858
  authConfigs: AuthConfigs;
32859
+ /** Manage authenticated connections */
32398
32860
  connectedAccounts: ConnectedAccounts;
32399
- mcp: MCP$1;
32861
+ /** Model Context Protocol server management */
32862
+ mcp: MCP;
32400
32863
  /**
32401
32864
  * Experimental feature, use with caution
32402
32865
  * @experimental
@@ -32433,10 +32896,6 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
32433
32896
  * @returns {Promise<ToolRouterSession<TToolCollection, TTool, TProvider>>} The tool router session
32434
32897
  */
32435
32898
  use: (id: string) => Promise<ToolRouterSession<unknown, unknown, TProvider>>;
32436
- /**
32437
- * Experimental features
32438
- */
32439
- experimental: {};
32440
32899
  /**
32441
32900
  * Creates a new instance of the Composio SDK.
32442
32901
  *
@@ -32698,288 +33157,6 @@ declare class AuthScheme {
32698
33157
  }): ConnectionData;
32699
33158
  }
32700
33159
  //#endregion
32701
- //#region src/models/MCP.d.ts
32702
- /**
32703
- * Extract the MCP response type from a provider.
32704
- */
32705
- type ExtractMcpResponseType<T> = T extends BaseComposioProvider<unknown, unknown, infer TMcp> ? TMcp : McpServerGetResponse;
32706
- /**
32707
- * MCP (Model Control Protocol) class
32708
- * Handles MCP server operations
32709
- */
32710
- declare class MCP<TProvider extends BaseComposioProvider<unknown, unknown, unknown>> {
32711
- private client;
32712
- private toolkits;
32713
- protected provider: TProvider;
32714
- readonly TMcpResponse: ExtractMcpResponseType<TProvider>;
32715
- constructor(client: ComposioClient, provider: TProvider);
32716
- /**
32717
- * Validates toolkit configurations using Zod schema
32718
- * @private
32719
- * @param {MCPToolkitConfig[]} toolkitConfigs - Array of toolkit configurations to validate
32720
- * @param {MCPAuthOptions} [authOptions] - Authentication options to validate
32721
- * @throws {ValidationError} If validation fails
32722
- */
32723
- private validateInputs;
32724
- /**
32725
- * Create a new MCP server
32726
- * @param {Object} params - Parameters for creating the MCP server
32727
- * @param {Array} params.authConfig - Array of auth configurations with id and allowed tools
32728
- * @param {Object} params.options - Server creation options
32729
- * @param {string} params.options.name - Unique name for the MCP server
32730
- * @param {boolean} [params.options.isChatAuth] - Whether to use chat-based authentication
32731
- * @returns {Promise<McpServerCreateResponse<TMcpResponse>>} Created server details with instance getter
32732
- *
32733
- * @example
32734
- * ```typescript
32735
- * const server = await composio.mcp.create("personal-mcp-server", [
32736
- * {
32737
- * authConfigId: "ac_xyz",
32738
- * allowedTools: ["GMAIL_FETCH_EMAILS", "SLACK_SEND_MESSAGE"]
32739
- * }
32740
- * ],
32741
- * {
32742
- * isChatAuth: true
32743
- * }
32744
- * });
32745
- *
32746
- * // Use convenience method on response
32747
- * const urls = await server.getServer({
32748
- * userId: "user123"
32749
- * });
32750
- * ```
32751
- */
32752
- create(name: string, serverConfig: Array<{
32753
- authConfigId: string;
32754
- allowedTools: string[];
32755
- }>, options: {
32756
- isChatAuth?: boolean;
32757
- }): Promise<McpServerCreateResponse<typeof this.TMcpResponse>>;
32758
- /**
32759
- * Get the connection status of a user for an MCP server
32760
- *
32761
- * Checks whether a user has the necessary connected accounts to use all toolkits
32762
- * configured in the specified MCP server. Returns both overall connection status
32763
- * and individual status for each toolkit.
32764
- *
32765
- * @param {Object} params - Parameters for checking connection status
32766
- * @param {string} params.id - The UUID of the MCP server to check
32767
- * @param {string} params.userId - The ID of the user to check connection status for
32768
- * @returns {Promise<McpUserConnectionStatus>} Complete connection status including:
32769
- * - `type`: Overall status (CONNECTED if all toolkits are connected, DISCONNECTED otherwise)
32770
- * - `connected`: Boolean indicating if user can use the MCP server
32771
- * - `connectedToolkits`: Record mapping each toolkit name to its individual connection status
32772
- *
32773
- * @throws {ValidationError} When MCP server has no toolkits configured
32774
- * @throws {ValidationError} When MCP server retrieval fails
32775
- *
32776
- * @example
32777
- * ```typescript
32778
- * // Check if user can access an MCP server with Gmail and Slack toolkits
32779
- * const connectionStatus = await composio.mcp.getUserConnectionStatus('user123', 'mcp-server-uuid');
32780
- *
32781
- * if (connectionStatus.connected) {
32782
- * console.log('User can access all required toolkits');
32783
- * // connectionStatus.type === ConnectionStatus.CONNECTED
32784
- * } else {
32785
- * console.log('User is missing some toolkit connections');
32786
- * // Check individual toolkit statuses
32787
- * Object.entries(connectionStatus.connectedToolkits).forEach(([toolkit, status]) => {
32788
- * if (!status.connected) {
32789
- * console.log(`Missing connection for toolkit: ${toolkit}`);
32790
- * }
32791
- * });
32792
- * }
32793
- * ```
32794
- *
32795
- * @example
32796
- * ```typescript
32797
- * // Example response when user has Gmail connected but missing Slack
32798
- * {
32799
- * type: ConnectionStatus.DISCONNECTED,
32800
- * connected: false,
32801
- * connectedToolkits: {
32802
- * GMAIL: {
32803
- * type: ConnectionStatus.CONNECTED,
32804
- * connected: true,
32805
- * toolkit: 'GMAIL',
32806
- * connectedAccountId: 'conn_gmail_123'
32807
- * },
32808
- * SLACK: {
32809
- * type: ConnectionStatus.DISCONNECTED,
32810
- * connected: false,
32811
- * toolkit: 'SLACK'
32812
- * }
32813
- * }
32814
- * }
32815
- * ```
32816
- */
32817
- getUserConnectionStatus(userId: string, serverId: string): Promise<McpUserConnectionStatus>;
32818
- /**
32819
- * Get the connection parameters for a toolkit
32820
- * @param {string} serverId - The UUID of the MCP server
32821
- * @param {string} toolkit - The toolkit to get connection parameters for
32822
- * @returns {Promise<ToolkitAuthFieldsResponse>} Connection parameters for the toolkit
32823
- */
32824
- getConnectionParams(serverId: string, toolkit: string): Promise<ToolkitAuthFieldsResponse>;
32825
- /**
32826
- * Authorize a user for a toolkit
32827
- * @param {string} serverId - The UUID of the MCP server
32828
- * @param {string} userId - The ID of the user to authorize
32829
- * @param {string} toolkit - The toolkit to authorize
32830
- * @returns {Promise<ConnectionRequest>} Connection request for the toolkit
32831
- */
32832
- authorize(userId: string, serverId: string, toolkit: string): Promise<ConnectionRequest>;
32833
- /**
32834
- * Get server URLs for an existing MCP server
32835
- * @param {string} serverId - Server UUID
32836
- * @param {string} userId - User ID to get server URLs for
32837
- * @param {Object} [options] - Additional options for server configuration
32838
- * @param {string[]} [options.limitTools] - Subset of tools to limit (from MCP config)
32839
- * @param {boolean} [options.isChatAuth] - Whether to use chat-based authentication
32840
- * @returns {Promise<TMcpResponse>} Transformed server URLs in provider-specific format
32841
- *
32842
- * @example
32843
- * ```typescript
32844
- * // Get URLs for an existing server with basic user ID
32845
- * const urls = await composio.mcp.getServer("mcp_xyz", "hey@example.com");
32846
- *
32847
- * // Get URLs with additional options
32848
- * const urls = await composio.mcp.getServer("mcp_xyz", "hey@example.com", {
32849
- * limitTools: ["GMAIL_FETCH_EMAILS", "SLACK_SEND_MESSAGE"],
32850
- * isChatAuth: true
32851
- * });
32852
- * ```
32853
- *
32854
- */
32855
- getServer(serverId: string, userId: string, options?: {
32856
- limitTools?: string[];
32857
- isChatAuth?: boolean;
32858
- }): Promise<typeof this.TMcpResponse>;
32859
- /**
32860
- * List MCP server configurations with filtering options
32861
- * @param {Object} options - Filtering and pagination options
32862
- * @param {number} [options.page] - Page number for pagination
32863
- * @param {number} [options.limit] - Number of items per page
32864
- * @param {string[]} [options.toolkits] - Filter servers by toolkit names
32865
- * @param {string[]} [options.authConfigs] - Filter servers by auth config IDs
32866
- * @param {string} [options.name] - Filter servers by name
32867
- * @param {string} [options.user] - Filter servers by user ID
32868
- * @returns {Promise<McpListResponse>} List of MCP servers matching the filters
32869
- *
32870
- * @example
32871
- * ```typescript
32872
- * // List all servers with pagination
32873
- * const servers = await composio.mcp.list({
32874
- * page: 1,
32875
- * limit: 10
32876
- * });
32877
- *
32878
- * // List Gmail and Supabase servers
32879
- * const filteredServers = await composio.mcp.list({
32880
- * toolkits: ['GMAIL', 'SUPABASE'],
32881
- * authConfigIds: ['auth_123', 'auth_456']
32882
- * });
32883
- * ```
32884
- */
32885
- list(options: {
32886
- page?: number;
32887
- limit?: number;
32888
- toolkits?: string[];
32889
- authConfigs?: string[];
32890
- name?: string;
32891
- }): Promise<McpListResponse>;
32892
- /**
32893
- * Get details of a specific MCP server
32894
- * @param {string} serverId - Server UUID
32895
- * @returns {Promise<McpRetrieveResponse>} Server details
32896
- *
32897
- * @example
32898
- * ```typescript
32899
- * const serverDetails = await composio.mcp.get('server-uuid');
32900
- * ```
32901
- */
32902
- get(serverId: string): Promise<McpRetrieveResponse>;
32903
- /**
32904
- * Delete an MCP server
32905
- * @param {string} serverId - Server UUID
32906
- * @returns {Promise<McpDeleteResponse>} Deletion response
32907
- *
32908
- * @example
32909
- * ```typescript
32910
- * const result = await composio.mcp.delete('server-uuid');
32911
- * ```
32912
- */
32913
- delete(serverId: string): Promise<McpDeleteResponse>;
32914
- /**
32915
- * Update an MCP server configuration
32916
- * @param {string} id - Server UUID
32917
- * @param {string} name - New unique name for the server
32918
- * @param {MCPToolkitConfig[]} toolkitConfigs - Array of toolkit configurations
32919
- * @param {MCPAuthOptions} [authOptions] - Updated authentication options
32920
- * @returns {Promise<McpUpdateResponse>} Updated server details
32921
- *
32922
- * @example
32923
- * ```typescript
32924
- * const updatedServer = await composio.mcp.update(
32925
- * "server-uuid",
32926
- * "my-updated-server",
32927
- * [
32928
- * {
32929
- * toolkit: "GMAIL",
32930
- * authConfigId: "ac_sdhkjfhjksdk",
32931
- * allowedTools: ["GMAIL_FETCH_EMAILS"],
32932
- * },
32933
- * ],
32934
- * {
32935
- * isChatAuth: true,
32936
- * }
32937
- * );
32938
- * ```
32939
- */
32940
- update(serverId: string, name: string, toolkitConfigs: MCPToolkitConfig[], authOptions?: MCPAuthOptions): Promise<McpUpdateResponse>;
32941
- /**
32942
- * Generate URL for an MCP server
32943
- * @param {string} serverId - Server UUID
32944
- * @param {GenerateURLParams} params - Parameters for URL generation
32945
- * @returns {Promise<GenerateURLResponse>} Generated URL response
32946
- *
32947
- * @example
32948
- * ```typescript
32949
- * const urlResponse = await composio.mcp.generateUrl('server-uuid', {
32950
- * userIds: ['user123'],
32951
- * connectedAccountIds: ['account456'],
32952
- * isChatAuth: true
32953
- * });
32954
- * ```
32955
- */
32956
- generateUrl(serverId: string, params: GenerateURLParams): Promise<GenerateURLResponse>;
32957
- /**
32958
- * Transform MCP URL response into the appropriate format.
32959
- * If the provider has a custom transform method, use it.
32960
- * Otherwise, use the default transformation.
32961
- *
32962
- * @param data - The MCP URL response data (in camelCase)
32963
- * @param serverName - Name of the MCP server
32964
- * @returns Transformed response in appropriate format
32965
- * @deprecated
32966
- */
32967
- private wrapMcpServerResponse;
32968
- /**
32969
- * Get details of a specific MCP server by name
32970
- * @param {string} name - Server name
32971
- * @returns {Promise<McpRetrieveResponse>} Server details
32972
- * @throws {ValidationError} If no server found with the given name
32973
- * @throws {ValidationError} If multiple servers found with the same name
32974
- *
32975
- * @example
32976
- * ```typescript
32977
- * const serverDetails = await composio.mcp.getByName('my-gmail-server');
32978
- * ```
32979
- */
32980
- getByName(serverName: string): Promise<McpRetrieveResponse>;
32981
- }
32982
- //#endregion
32983
33160
  //#region src/models/ConnectionRequest.d.ts
32984
33161
  /**
32985
33162
  * Creates a connection request object with methods to manage the connection lifecycle.
@@ -33368,4 +33545,4 @@ declare class ComposioWebhookPayloadError extends ComposioError {
33368
33545
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
33369
33546
  }
33370
33547
  //#endregion
33371
- export { AgenticToolOptions, AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParams, AuthConfigListParamsSchema, AuthConfigListResponse, AuthConfigListResponseSchema, AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigType, AuthConfigTypes, AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, BaseConnectionFields, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIServerErrorBody, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioErrorOptions, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParams, ConnectedAccountListParamsSchema, ConnectedAccountListResponse, ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatus, ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionData, ConnectionDataSchema, ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestState, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatusEnum, ConnectionStatuses, CreateAuthConfigParams, CreateAuthConfigParamsSchema, CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptions, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponse, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CustomAuthParams, CustomAuthParamsSchema, CustomConnectionData, CustomConnectionDataSchema, CustomCreateResponse, CustomCreateResponseSchema, CustomCreateResponseValidated, CustomOauth1ConnectionData, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionData, CustomOauth2ConnectionDataSchema, CustomToolInputParameter, CustomToolOptions, CustomToolRegistry, CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, ErrorHandleOptions, ExecuteMetadata, ExecuteToolFn, ExecuteToolFnOptions, ExecuteToolModifiers, FileDownloadData, FileUploadData, GenerateURLParams, GenerateURLParamsSchema, GenerateURLResponse, GenerateURLResponseSchema, GenerateURLResponseValidated, GlobalExecuteToolFn, IncomingTriggerPayload, IncomingTriggerPayloadSchema, InputParamsSchema, JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, MCPAuthOptions, MCPAuthOptionsSchema, MCPCreateMethodResponse, MCPGenerateURLParams, MCPGenerateURLParamsSchema, MCPGetServerParams, MCPGetServerParamsSchema, MCPInstanceParams, MCPMultiAppServer, MCPMultiAppServerSchema, MCPServer, MCPServerCreateResponse, MCPServerCreateResponseSchema, MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, MCPServerType, MCPServerTypeSchema, MCPServerUpdateParams, MCPServerUpdateParamsSchema, MCPSingleAppServer, MCPSingleAppServerSchema, MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponse, McpDeleteResponseSchema, McpListResponse, McpListResponseSchema, McpRetrieveResponse, McpRetrieveResponseSchema, McpServerCreateResponse, McpServerGetResponse, McpServerUrlInfo, McpToolkitConnectionStatus, McpUpdateResponse, McpUpdateResponseSchema, McpUrlResponse, McpUrlResponseCamelCase, McpUserConnectionStatus, Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionData, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionData, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionData, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionData, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, Provider, ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, SchemaModifierOptions, Tool, ToolErrorCodes, ToolExecuteMetaParams, ToolExecuteMetaParamsSchema, ToolExecuteParams, ToolExecuteParamsSchema, ToolExecuteResponse, ToolExecuteResponseSchema, ToolKitItem, ToolKitItemSchema, ToolKitListResponse, ToolKitListResponseSchema, ToolKitMeta, ToolKitMetaSchema, ToolList, ToolListParams, ToolListParamsSchema, ToolListResponse, ToolListResponseSchema, ToolOptions, ToolProxyParams, ToolProxyParamsSchema, ToolRouterAuthorizeFn, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTags, ToolRouterConfigTagsSchema, ToolRouterConfigTools, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfig, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfig, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsFn, ToolRouterToolkitsOptions, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsFn, ToolRouterToolsParam, ToolRouterToolsParamSchema, ToolSchema, Toolkit, ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, ToolkitAuthField, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, ToolkitCategory, ToolkitCategorySchema, ToolkitConnectionState, ToolkitConnectionStateSchema, ToolkitConnectionsDetails, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersion, ToolkitLatestVersionSchema, ToolkitListParams, ToolkitMangedByEnum, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitVersion, ToolkitVersionParam, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersions, ToolkitVersionsSchema, ToolkitsListParamsSchema, TransformToolSchemaModifier, TriggerData, TriggerErrorCodes, TriggerEvent, TriggerEventData, TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponse, TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, TriggerSubscribeParams, TriggerType, TriggerTypeSchema, TriggersTypeListParams, TriggersTypeListParamsSchema, TriggersTypeListResponse, TriggersTypeListResponseSchema, TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, VerifyWebhookParams, VerifyWebhookParamsSchema, VerifyWebhookResult, afterExecuteModifier, beforeExecuteModifier, constants_d_exports as constants, createConnectionRequest, handleToolExecutionError, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
33548
+ 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 };