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