@composio/core 0.2.7-alpha.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3149,7 +3149,7 @@ var Tools = class {
3149
3149
  };
3150
3150
  }
3151
3151
  /**
3152
- * @inte
3152
+ * @internal
3153
3153
  * Utility to wrap a given set of tools in the format expected by the provider
3154
3154
  *
3155
3155
  * @param userId - The user id to get the tools for
@@ -3165,9 +3165,9 @@ var Tools = class {
3165
3165
  * @internal
3166
3166
  * Utility to wrap a given set of tools in the format expected by the tool router
3167
3167
  *
3168
- * @param sessionId {string} The session id to execute the tool for
3169
- * @param tools {Tool[]} The tools to wrap
3170
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
3168
+ * @param {string} sessionId - The session id to execute the tool for
3169
+ * @param {Tool[]} tools - The tools to wrap
3170
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
3171
3171
  * @returns {Tool[]} The wrapped tools
3172
3172
  */
3173
3173
  wrapToolsForToolRouter(sessionId, tools, modifiers) {
@@ -3198,8 +3198,8 @@ var Tools = class {
3198
3198
  * @internal
3199
3199
  * Creates a function that executes a tool for a tool router session
3200
3200
  *
3201
- * @param sessionId {string} The session id to execute the tool for
3202
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
3201
+ * @param {string} sessionId - The session id to execute the tool for
3202
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
3203
3203
  * @returns {ExecuteToolFn} The execute tool function
3204
3204
  */
3205
3205
  createExecuteToolFnForToolRouter(sessionId, modifiers) {
@@ -3333,10 +3333,11 @@ var Tools = class {
3333
3333
  /**
3334
3334
  * Executes a composio meta tool based on tool router session
3335
3335
  *
3336
- * @param sessionId {string} The session id to execute the tool for
3337
- * @param body.slug {string} The slug of the tool to execute
3338
- * @param body.arguments {Record<string, unknown>} The input to pass to the tool
3339
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
3336
+ * @param {string} toolSlug - The slug of the tool to execute
3337
+ * @param {ToolExecuteMetaParams} body - The execution parameters
3338
+ * @param {string} body.sessionId - The session id to execute the tool for
3339
+ * @param {Record<string, unknown>} body.arguments - The input to pass to the tool
3340
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
3340
3341
  * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
3341
3342
  */
3342
3343
  async executeMetaTool(toolSlug, body, modifiers) {
@@ -6268,7 +6269,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
6268
6269
 
6269
6270
  //#endregion
6270
6271
  //#region package.json
6271
- var version = "0.2.7-alpha.4";
6272
+ var version = "0.3.1";
6272
6273
 
6273
6274
  //#endregion
6274
6275
  //#region src/models/Files.ts
@@ -6497,7 +6498,7 @@ var ToolRouter = class {
6497
6498
  createAuthorizeFn = (sessionId) => {
6498
6499
  const authorizeFn = async (toolkit, options) => {
6499
6500
  const response = await this.client.toolRouter.session.link(sessionId, {
6500
- ...options ?? {},
6501
+ ...options?.callbackUrl ? { callback_url: options.callbackUrl } : {},
6501
6502
  toolkit
6502
6503
  });
6503
6504
  return createConnectionRequest(this.client, response.connected_account_id, ConnectedAccountStatuses.INITIATED, response.redirect_url);
package/dist/index.d.cts CHANGED
@@ -25893,12 +25893,12 @@ declare const MCPGenerateURLParamsSchema: z.ZodObject<{
25893
25893
  connectedAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25894
25894
  isChatAuth: z.ZodOptional<z.ZodBoolean>;
25895
25895
  }, "strip", z.ZodTypeAny, {
25896
- userIds?: string[] | undefined;
25897
25896
  connectedAccountIds?: string[] | undefined;
25897
+ userIds?: string[] | undefined;
25898
25898
  isChatAuth?: boolean | undefined;
25899
25899
  }, {
25900
- userIds?: string[] | undefined;
25901
25900
  connectedAccountIds?: string[] | undefined;
25901
+ userIds?: string[] | undefined;
25902
25902
  isChatAuth?: boolean | undefined;
25903
25903
  }>;
25904
25904
  type MCPGenerateURLParams = z.infer<typeof MCPGenerateURLParamsSchema>;
@@ -25925,13 +25925,13 @@ declare const GenerateURLParamsSchema: z.ZodObject<{
25925
25925
  composioManagedAuth: z.ZodOptional<z.ZodBoolean>;
25926
25926
  }, "strip", z.ZodTypeAny, {
25927
25927
  mcpServerId: string;
25928
- userIds?: string[] | undefined;
25929
25928
  connectedAccountIds?: string[] | undefined;
25929
+ userIds?: string[] | undefined;
25930
25930
  composioManagedAuth?: boolean | undefined;
25931
25931
  }, {
25932
25932
  mcpServerId: string;
25933
- userIds?: string[] | undefined;
25934
25933
  connectedAccountIds?: string[] | undefined;
25934
+ userIds?: string[] | undefined;
25935
25935
  composioManagedAuth?: boolean | undefined;
25936
25936
  }>;
25937
25937
  type GenerateURLParams = z.infer<typeof GenerateURLParamsSchema>;
@@ -26970,7 +26970,7 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
26970
26970
  */
26971
26971
  private createExecuteFnForProviders;
26972
26972
  /**
26973
- * @inte
26973
+ * @internal
26974
26974
  * Utility to wrap a given set of tools in the format expected by the provider
26975
26975
  *
26976
26976
  * @param userId - The user id to get the tools for
@@ -26983,9 +26983,9 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
26983
26983
  * @internal
26984
26984
  * Utility to wrap a given set of tools in the format expected by the tool router
26985
26985
  *
26986
- * @param sessionId {string} The session id to execute the tool for
26987
- * @param tools {Tool[]} The tools to wrap
26988
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
26986
+ * @param {string} sessionId - The session id to execute the tool for
26987
+ * @param {Tool[]} tools - The tools to wrap
26988
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
26989
26989
  * @returns {Tool[]} The wrapped tools
26990
26990
  */
26991
26991
  wrapToolsForToolRouter(sessionId: string, tools: Tool[], modifiers?: ExecuteToolModifiers): Tool[];
@@ -27004,8 +27004,8 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
27004
27004
  * @internal
27005
27005
  * Creates a function that executes a tool for a tool router session
27006
27006
  *
27007
- * @param sessionId {string} The session id to execute the tool for
27008
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
27007
+ * @param {string} sessionId - The session id to execute the tool for
27008
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27009
27009
  * @returns {ExecuteToolFn} The execute tool function
27010
27010
  */
27011
27011
  private createExecuteToolFnForToolRouter;
@@ -27094,10 +27094,11 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
27094
27094
  /**
27095
27095
  * Executes a composio meta tool based on tool router session
27096
27096
  *
27097
- * @param sessionId {string} The session id to execute the tool for
27098
- * @param body.slug {string} The slug of the tool to execute
27099
- * @param body.arguments {Record<string, unknown>} The input to pass to the tool
27100
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
27097
+ * @param {string} toolSlug - The slug of the tool to execute
27098
+ * @param {ToolExecuteMetaParams} body - The execution parameters
27099
+ * @param {string} body.sessionId - The session id to execute the tool for
27100
+ * @param {Record<string, unknown>} body.arguments - The input to pass to the tool
27101
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27101
27102
  * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
27102
27103
  */
27103
27104
  executeMetaTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: ExecuteToolModifiers): Promise<ToolExecuteResponse>;
@@ -27259,6 +27260,7 @@ declare const ToolKitMetaSchema: z.ZodObject<{
27259
27260
  logo?: string | undefined;
27260
27261
  availableVersions?: string[] | undefined;
27261
27262
  createdAt?: string | undefined;
27263
+ updatedAt?: string | undefined;
27262
27264
  categories?: {
27263
27265
  slug: string;
27264
27266
  name: string;
@@ -27266,12 +27268,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
27266
27268
  appUrl?: string | undefined;
27267
27269
  toolsCount?: number | undefined;
27268
27270
  triggersCount?: number | undefined;
27269
- updatedAt?: string | undefined;
27270
27271
  }, {
27271
27272
  description?: string | undefined;
27272
27273
  logo?: string | undefined;
27273
27274
  availableVersions?: string[] | undefined;
27274
27275
  createdAt?: string | undefined;
27276
+ updatedAt?: string | undefined;
27275
27277
  categories?: {
27276
27278
  slug: string;
27277
27279
  name: string;
@@ -27279,7 +27281,6 @@ declare const ToolKitMetaSchema: z.ZodObject<{
27279
27281
  appUrl?: string | undefined;
27280
27282
  toolsCount?: number | undefined;
27281
27283
  triggersCount?: number | undefined;
27282
- updatedAt?: string | undefined;
27283
27284
  }>;
27284
27285
  declare const ToolKitItemSchema: z.ZodObject<{
27285
27286
  name: z.ZodString;
@@ -27308,6 +27309,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
27308
27309
  logo?: string | undefined;
27309
27310
  availableVersions?: string[] | undefined;
27310
27311
  createdAt?: string | undefined;
27312
+ updatedAt?: string | undefined;
27311
27313
  categories?: {
27312
27314
  slug: string;
27313
27315
  name: string;
@@ -27315,12 +27317,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
27315
27317
  appUrl?: string | undefined;
27316
27318
  toolsCount?: number | undefined;
27317
27319
  triggersCount?: number | undefined;
27318
- updatedAt?: string | undefined;
27319
27320
  }, {
27320
27321
  description?: string | undefined;
27321
27322
  logo?: string | undefined;
27322
27323
  availableVersions?: string[] | undefined;
27323
27324
  createdAt?: string | undefined;
27325
+ updatedAt?: string | undefined;
27324
27326
  categories?: {
27325
27327
  slug: string;
27326
27328
  name: string;
@@ -27328,7 +27330,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
27328
27330
  appUrl?: string | undefined;
27329
27331
  toolsCount?: number | undefined;
27330
27332
  triggersCount?: number | undefined;
27331
- updatedAt?: string | undefined;
27332
27333
  }>;
27333
27334
  isLocalToolkit: z.ZodBoolean;
27334
27335
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -27342,6 +27343,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
27342
27343
  logo?: string | undefined;
27343
27344
  availableVersions?: string[] | undefined;
27344
27345
  createdAt?: string | undefined;
27346
+ updatedAt?: string | undefined;
27345
27347
  categories?: {
27346
27348
  slug: string;
27347
27349
  name: string;
@@ -27349,7 +27351,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
27349
27351
  appUrl?: string | undefined;
27350
27352
  toolsCount?: number | undefined;
27351
27353
  triggersCount?: number | undefined;
27352
- updatedAt?: string | undefined;
27353
27354
  };
27354
27355
  isLocalToolkit: boolean;
27355
27356
  authSchemes?: string[] | undefined;
@@ -27363,6 +27364,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
27363
27364
  logo?: string | undefined;
27364
27365
  availableVersions?: string[] | undefined;
27365
27366
  createdAt?: string | undefined;
27367
+ updatedAt?: string | undefined;
27366
27368
  categories?: {
27367
27369
  slug: string;
27368
27370
  name: string;
@@ -27370,7 +27372,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
27370
27372
  appUrl?: string | undefined;
27371
27373
  toolsCount?: number | undefined;
27372
27374
  triggersCount?: number | undefined;
27373
- updatedAt?: string | undefined;
27374
27375
  };
27375
27376
  isLocalToolkit: boolean;
27376
27377
  authSchemes?: string[] | undefined;
@@ -27404,6 +27405,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27404
27405
  logo?: string | undefined;
27405
27406
  availableVersions?: string[] | undefined;
27406
27407
  createdAt?: string | undefined;
27408
+ updatedAt?: string | undefined;
27407
27409
  categories?: {
27408
27410
  slug: string;
27409
27411
  name: string;
@@ -27411,12 +27413,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27411
27413
  appUrl?: string | undefined;
27412
27414
  toolsCount?: number | undefined;
27413
27415
  triggersCount?: number | undefined;
27414
- updatedAt?: string | undefined;
27415
27416
  }, {
27416
27417
  description?: string | undefined;
27417
27418
  logo?: string | undefined;
27418
27419
  availableVersions?: string[] | undefined;
27419
27420
  createdAt?: string | undefined;
27421
+ updatedAt?: string | undefined;
27420
27422
  categories?: {
27421
27423
  slug: string;
27422
27424
  name: string;
@@ -27424,7 +27426,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27424
27426
  appUrl?: string | undefined;
27425
27427
  toolsCount?: number | undefined;
27426
27428
  triggersCount?: number | undefined;
27427
- updatedAt?: string | undefined;
27428
27429
  }>;
27429
27430
  isLocalToolkit: z.ZodBoolean;
27430
27431
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -27438,6 +27439,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27438
27439
  logo?: string | undefined;
27439
27440
  availableVersions?: string[] | undefined;
27440
27441
  createdAt?: string | undefined;
27442
+ updatedAt?: string | undefined;
27441
27443
  categories?: {
27442
27444
  slug: string;
27443
27445
  name: string;
@@ -27445,7 +27447,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27445
27447
  appUrl?: string | undefined;
27446
27448
  toolsCount?: number | undefined;
27447
27449
  triggersCount?: number | undefined;
27448
- updatedAt?: string | undefined;
27449
27450
  };
27450
27451
  isLocalToolkit: boolean;
27451
27452
  authSchemes?: string[] | undefined;
@@ -27459,6 +27460,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27459
27460
  logo?: string | undefined;
27460
27461
  availableVersions?: string[] | undefined;
27461
27462
  createdAt?: string | undefined;
27463
+ updatedAt?: string | undefined;
27462
27464
  categories?: {
27463
27465
  slug: string;
27464
27466
  name: string;
@@ -27466,7 +27468,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27466
27468
  appUrl?: string | undefined;
27467
27469
  toolsCount?: number | undefined;
27468
27470
  triggersCount?: number | undefined;
27469
- updatedAt?: string | undefined;
27470
27471
  };
27471
27472
  isLocalToolkit: boolean;
27472
27473
  authSchemes?: string[] | undefined;
@@ -27863,6 +27864,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
27863
27864
  logo?: string | undefined;
27864
27865
  availableVersions?: string[] | undefined;
27865
27866
  createdAt?: string | undefined;
27867
+ updatedAt?: string | undefined;
27866
27868
  categories?: {
27867
27869
  slug: string;
27868
27870
  name: string;
@@ -27870,12 +27872,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
27870
27872
  appUrl?: string | undefined;
27871
27873
  toolsCount?: number | undefined;
27872
27874
  triggersCount?: number | undefined;
27873
- updatedAt?: string | undefined;
27874
27875
  }, {
27875
27876
  description?: string | undefined;
27876
27877
  logo?: string | undefined;
27877
27878
  availableVersions?: string[] | undefined;
27878
27879
  createdAt?: string | undefined;
27880
+ updatedAt?: string | undefined;
27879
27881
  categories?: {
27880
27882
  slug: string;
27881
27883
  name: string;
@@ -27883,7 +27885,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
27883
27885
  appUrl?: string | undefined;
27884
27886
  toolsCount?: number | undefined;
27885
27887
  triggersCount?: number | undefined;
27886
- updatedAt?: string | undefined;
27887
27888
  }>;
27888
27889
  isLocalToolkit: z.ZodBoolean;
27889
27890
  composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -28232,6 +28233,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28232
28233
  logo?: string | undefined;
28233
28234
  availableVersions?: string[] | undefined;
28234
28235
  createdAt?: string | undefined;
28236
+ updatedAt?: string | undefined;
28235
28237
  categories?: {
28236
28238
  slug: string;
28237
28239
  name: string;
@@ -28239,7 +28241,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28239
28241
  appUrl?: string | undefined;
28240
28242
  toolsCount?: number | undefined;
28241
28243
  triggersCount?: number | undefined;
28242
- updatedAt?: string | undefined;
28243
28244
  };
28244
28245
  isLocalToolkit: boolean;
28245
28246
  composioManagedAuthSchemes?: string[] | undefined;
@@ -28298,6 +28299,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28298
28299
  logo?: string | undefined;
28299
28300
  availableVersions?: string[] | undefined;
28300
28301
  createdAt?: string | undefined;
28302
+ updatedAt?: string | undefined;
28301
28303
  categories?: {
28302
28304
  slug: string;
28303
28305
  name: string;
@@ -28305,7 +28307,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28305
28307
  appUrl?: string | undefined;
28306
28308
  toolsCount?: number | undefined;
28307
28309
  triggersCount?: number | undefined;
28308
- updatedAt?: string | undefined;
28309
28310
  };
28310
28311
  isLocalToolkit: boolean;
28311
28312
  composioManagedAuthSchemes?: string[] | undefined;
@@ -29487,21 +29488,21 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
29487
29488
  }, "strip", z.ZodTypeAny, {
29488
29489
  connectedAccountId: string;
29489
29490
  id: string;
29490
- updatedAt: string;
29491
29491
  disabledAt: string | null;
29492
29492
  state: Record<string, unknown>;
29493
29493
  triggerConfig: Record<string, unknown>;
29494
29494
  triggerName: string;
29495
+ updatedAt: string;
29495
29496
  uuid?: string | undefined;
29496
29497
  triggerData?: string | undefined;
29497
29498
  }, {
29498
29499
  connectedAccountId: string;
29499
29500
  id: string;
29500
- updatedAt: string;
29501
29501
  disabledAt: string | null;
29502
29502
  state: Record<string, unknown>;
29503
29503
  triggerConfig: Record<string, unknown>;
29504
29504
  triggerName: string;
29505
+ updatedAt: string;
29505
29506
  uuid?: string | undefined;
29506
29507
  triggerData?: string | undefined;
29507
29508
  }>;
@@ -29519,21 +29520,21 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
29519
29520
  }, "strip", z.ZodTypeAny, {
29520
29521
  connectedAccountId: string;
29521
29522
  id: string;
29522
- updatedAt: string;
29523
29523
  disabledAt: string | null;
29524
29524
  state: Record<string, unknown>;
29525
29525
  triggerConfig: Record<string, unknown>;
29526
29526
  triggerName: string;
29527
+ updatedAt: string;
29527
29528
  uuid?: string | undefined;
29528
29529
  triggerData?: string | undefined;
29529
29530
  }, {
29530
29531
  connectedAccountId: string;
29531
29532
  id: string;
29532
- updatedAt: string;
29533
29533
  disabledAt: string | null;
29534
29534
  state: Record<string, unknown>;
29535
29535
  triggerConfig: Record<string, unknown>;
29536
29536
  triggerName: string;
29537
+ updatedAt: string;
29537
29538
  uuid?: string | undefined;
29538
29539
  triggerData?: string | undefined;
29539
29540
  }>, "many">;
@@ -29543,11 +29544,11 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
29543
29544
  items: {
29544
29545
  connectedAccountId: string;
29545
29546
  id: string;
29546
- updatedAt: string;
29547
29547
  disabledAt: string | null;
29548
29548
  state: Record<string, unknown>;
29549
29549
  triggerConfig: Record<string, unknown>;
29550
29550
  triggerName: string;
29551
+ updatedAt: string;
29551
29552
  uuid?: string | undefined;
29552
29553
  triggerData?: string | undefined;
29553
29554
  }[];
@@ -29557,11 +29558,11 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
29557
29558
  items: {
29558
29559
  connectedAccountId: string;
29559
29560
  id: string;
29560
- updatedAt: string;
29561
29561
  disabledAt: string | null;
29562
29562
  state: Record<string, unknown>;
29563
29563
  triggerConfig: Record<string, unknown>;
29564
29564
  triggerName: string;
29565
+ updatedAt: string;
29565
29566
  uuid?: string | undefined;
29566
29567
  triggerData?: string | undefined;
29567
29568
  }[];
@@ -31861,26 +31862,26 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
31861
31862
  }>>;
31862
31863
  }, "strip", z$1.ZodTypeAny, {
31863
31864
  isActive: boolean;
31865
+ connectedAccount?: {
31866
+ status: string;
31867
+ id: string;
31868
+ } | undefined;
31864
31869
  authConfig?: {
31865
31870
  id: string;
31866
31871
  isComposioManaged: boolean;
31867
31872
  mode: string;
31868
31873
  } | null | undefined;
31874
+ }, {
31875
+ isActive: boolean;
31869
31876
  connectedAccount?: {
31870
31877
  status: string;
31871
31878
  id: string;
31872
31879
  } | undefined;
31873
- }, {
31874
- isActive: boolean;
31875
31880
  authConfig?: {
31876
31881
  id: string;
31877
31882
  isComposioManaged: boolean;
31878
31883
  mode: string;
31879
31884
  } | null | undefined;
31880
- connectedAccount?: {
31881
- status: string;
31882
- id: string;
31883
- } | undefined;
31884
31885
  }>>;
31885
31886
  }, "strip", z$1.ZodTypeAny, {
31886
31887
  slug: string;
@@ -31889,15 +31890,15 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
31889
31890
  logo?: string | undefined;
31890
31891
  connection?: {
31891
31892
  isActive: boolean;
31893
+ connectedAccount?: {
31894
+ status: string;
31895
+ id: string;
31896
+ } | undefined;
31892
31897
  authConfig?: {
31893
31898
  id: string;
31894
31899
  isComposioManaged: boolean;
31895
31900
  mode: string;
31896
31901
  } | null | undefined;
31897
- connectedAccount?: {
31898
- status: string;
31899
- id: string;
31900
- } | undefined;
31901
31902
  } | undefined;
31902
31903
  }, {
31903
31904
  slug: string;
@@ -31906,15 +31907,15 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
31906
31907
  isNoAuth?: boolean | undefined;
31907
31908
  connection?: {
31908
31909
  isActive: boolean;
31910
+ connectedAccount?: {
31911
+ status: string;
31912
+ id: string;
31913
+ } | undefined;
31909
31914
  authConfig?: {
31910
31915
  id: string;
31911
31916
  isComposioManaged: boolean;
31912
31917
  mode: string;
31913
31918
  } | null | undefined;
31914
- connectedAccount?: {
31915
- status: string;
31916
- id: string;
31917
- } | undefined;
31918
31919
  } | undefined;
31919
31920
  }>;
31920
31921
  declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
@@ -31950,26 +31951,26 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
31950
31951
  }>>;
31951
31952
  }, "strip", z$1.ZodTypeAny, {
31952
31953
  isActive: boolean;
31954
+ connectedAccount?: {
31955
+ status: string;
31956
+ id: string;
31957
+ } | undefined;
31953
31958
  authConfig?: {
31954
31959
  id: string;
31955
31960
  isComposioManaged: boolean;
31956
31961
  mode: string;
31957
31962
  } | null | undefined;
31963
+ }, {
31964
+ isActive: boolean;
31958
31965
  connectedAccount?: {
31959
31966
  status: string;
31960
31967
  id: string;
31961
31968
  } | undefined;
31962
- }, {
31963
- isActive: boolean;
31964
31969
  authConfig?: {
31965
31970
  id: string;
31966
31971
  isComposioManaged: boolean;
31967
31972
  mode: string;
31968
31973
  } | null | undefined;
31969
- connectedAccount?: {
31970
- status: string;
31971
- id: string;
31972
- } | undefined;
31973
31974
  }>>;
31974
31975
  }, "strip", z$1.ZodTypeAny, {
31975
31976
  slug: string;
@@ -31978,15 +31979,15 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
31978
31979
  logo?: string | undefined;
31979
31980
  connection?: {
31980
31981
  isActive: boolean;
31982
+ connectedAccount?: {
31983
+ status: string;
31984
+ id: string;
31985
+ } | undefined;
31981
31986
  authConfig?: {
31982
31987
  id: string;
31983
31988
  isComposioManaged: boolean;
31984
31989
  mode: string;
31985
31990
  } | null | undefined;
31986
- connectedAccount?: {
31987
- status: string;
31988
- id: string;
31989
- } | undefined;
31990
31991
  } | undefined;
31991
31992
  }, {
31992
31993
  slug: string;
@@ -31995,15 +31996,15 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
31995
31996
  isNoAuth?: boolean | undefined;
31996
31997
  connection?: {
31997
31998
  isActive: boolean;
31999
+ connectedAccount?: {
32000
+ status: string;
32001
+ id: string;
32002
+ } | undefined;
31998
32003
  authConfig?: {
31999
32004
  id: string;
32000
32005
  isComposioManaged: boolean;
32001
32006
  mode: string;
32002
32007
  } | null | undefined;
32003
- connectedAccount?: {
32004
- status: string;
32005
- id: string;
32006
- } | undefined;
32007
32008
  } | undefined;
32008
32009
  }>, "many">;
32009
32010
  nextCursor: z$1.ZodOptional<z$1.ZodString>;
@@ -32016,15 +32017,15 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
32016
32017
  logo?: string | undefined;
32017
32018
  connection?: {
32018
32019
  isActive: boolean;
32020
+ connectedAccount?: {
32021
+ status: string;
32022
+ id: string;
32023
+ } | undefined;
32019
32024
  authConfig?: {
32020
32025
  id: string;
32021
32026
  isComposioManaged: boolean;
32022
32027
  mode: string;
32023
32028
  } | null | undefined;
32024
- connectedAccount?: {
32025
- status: string;
32026
- id: string;
32027
- } | undefined;
32028
32029
  } | undefined;
32029
32030
  }[];
32030
32031
  totalPages: number;
@@ -32037,15 +32038,15 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
32037
32038
  isNoAuth?: boolean | undefined;
32038
32039
  connection?: {
32039
32040
  isActive: boolean;
32041
+ connectedAccount?: {
32042
+ status: string;
32043
+ id: string;
32044
+ } | undefined;
32040
32045
  authConfig?: {
32041
32046
  id: string;
32042
32047
  isComposioManaged: boolean;
32043
32048
  mode: string;
32044
32049
  } | null | undefined;
32045
- connectedAccount?: {
32046
- status: string;
32047
- id: string;
32048
- } | undefined;
32049
32050
  } | undefined;
32050
32051
  }[];
32051
32052
  totalPages: number;
package/dist/index.d.mts CHANGED
@@ -25891,12 +25891,12 @@ declare const MCPGenerateURLParamsSchema: z$1.ZodObject<{
25891
25891
  connectedAccountIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
25892
25892
  isChatAuth: z$1.ZodOptional<z$1.ZodBoolean>;
25893
25893
  }, "strip", z$1.ZodTypeAny, {
25894
- userIds?: string[] | undefined;
25895
25894
  connectedAccountIds?: string[] | undefined;
25895
+ userIds?: string[] | undefined;
25896
25896
  isChatAuth?: boolean | undefined;
25897
25897
  }, {
25898
- userIds?: string[] | undefined;
25899
25898
  connectedAccountIds?: string[] | undefined;
25899
+ userIds?: string[] | undefined;
25900
25900
  isChatAuth?: boolean | undefined;
25901
25901
  }>;
25902
25902
  type MCPGenerateURLParams = z$1.infer<typeof MCPGenerateURLParamsSchema>;
@@ -25923,13 +25923,13 @@ declare const GenerateURLParamsSchema: z$1.ZodObject<{
25923
25923
  composioManagedAuth: z$1.ZodOptional<z$1.ZodBoolean>;
25924
25924
  }, "strip", z$1.ZodTypeAny, {
25925
25925
  mcpServerId: string;
25926
- userIds?: string[] | undefined;
25927
25926
  connectedAccountIds?: string[] | undefined;
25927
+ userIds?: string[] | undefined;
25928
25928
  composioManagedAuth?: boolean | undefined;
25929
25929
  }, {
25930
25930
  mcpServerId: string;
25931
- userIds?: string[] | undefined;
25932
25931
  connectedAccountIds?: string[] | undefined;
25932
+ userIds?: string[] | undefined;
25933
25933
  composioManagedAuth?: boolean | undefined;
25934
25934
  }>;
25935
25935
  type GenerateURLParams = z$1.infer<typeof GenerateURLParamsSchema>;
@@ -26968,7 +26968,7 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
26968
26968
  */
26969
26969
  private createExecuteFnForProviders;
26970
26970
  /**
26971
- * @inte
26971
+ * @internal
26972
26972
  * Utility to wrap a given set of tools in the format expected by the provider
26973
26973
  *
26974
26974
  * @param userId - The user id to get the tools for
@@ -26981,9 +26981,9 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
26981
26981
  * @internal
26982
26982
  * Utility to wrap a given set of tools in the format expected by the tool router
26983
26983
  *
26984
- * @param sessionId {string} The session id to execute the tool for
26985
- * @param tools {Tool[]} The tools to wrap
26986
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
26984
+ * @param {string} sessionId - The session id to execute the tool for
26985
+ * @param {Tool[]} tools - The tools to wrap
26986
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
26987
26987
  * @returns {Tool[]} The wrapped tools
26988
26988
  */
26989
26989
  wrapToolsForToolRouter(sessionId: string, tools: Tool[], modifiers?: ExecuteToolModifiers): Tool[];
@@ -27002,8 +27002,8 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
27002
27002
  * @internal
27003
27003
  * Creates a function that executes a tool for a tool router session
27004
27004
  *
27005
- * @param sessionId {string} The session id to execute the tool for
27006
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
27005
+ * @param {string} sessionId - The session id to execute the tool for
27006
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27007
27007
  * @returns {ExecuteToolFn} The execute tool function
27008
27008
  */
27009
27009
  private createExecuteToolFnForToolRouter;
@@ -27092,10 +27092,11 @@ declare class Tools<TToolCollection$1, TTool$1, TProvider extends BaseComposioPr
27092
27092
  /**
27093
27093
  * Executes a composio meta tool based on tool router session
27094
27094
  *
27095
- * @param sessionId {string} The session id to execute the tool for
27096
- * @param body.slug {string} The slug of the tool to execute
27097
- * @param body.arguments {Record<string, unknown>} The input to pass to the tool
27098
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
27095
+ * @param {string} toolSlug - The slug of the tool to execute
27096
+ * @param {ToolExecuteMetaParams} body - The execution parameters
27097
+ * @param {string} body.sessionId - The session id to execute the tool for
27098
+ * @param {Record<string, unknown>} body.arguments - The input to pass to the tool
27099
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
27099
27100
  * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
27100
27101
  */
27101
27102
  executeMetaTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: ExecuteToolModifiers): Promise<ToolExecuteResponse>;
@@ -27257,6 +27258,7 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
27257
27258
  logo?: string | undefined;
27258
27259
  availableVersions?: string[] | undefined;
27259
27260
  createdAt?: string | undefined;
27261
+ updatedAt?: string | undefined;
27260
27262
  categories?: {
27261
27263
  slug: string;
27262
27264
  name: string;
@@ -27264,12 +27266,12 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
27264
27266
  appUrl?: string | undefined;
27265
27267
  toolsCount?: number | undefined;
27266
27268
  triggersCount?: number | undefined;
27267
- updatedAt?: string | undefined;
27268
27269
  }, {
27269
27270
  description?: string | undefined;
27270
27271
  logo?: string | undefined;
27271
27272
  availableVersions?: string[] | undefined;
27272
27273
  createdAt?: string | undefined;
27274
+ updatedAt?: string | undefined;
27273
27275
  categories?: {
27274
27276
  slug: string;
27275
27277
  name: string;
@@ -27277,7 +27279,6 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
27277
27279
  appUrl?: string | undefined;
27278
27280
  toolsCount?: number | undefined;
27279
27281
  triggersCount?: number | undefined;
27280
- updatedAt?: string | undefined;
27281
27282
  }>;
27282
27283
  declare const ToolKitItemSchema: z$1.ZodObject<{
27283
27284
  name: z$1.ZodString;
@@ -27306,6 +27307,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27306
27307
  logo?: string | undefined;
27307
27308
  availableVersions?: string[] | undefined;
27308
27309
  createdAt?: string | undefined;
27310
+ updatedAt?: string | undefined;
27309
27311
  categories?: {
27310
27312
  slug: string;
27311
27313
  name: string;
@@ -27313,12 +27315,12 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27313
27315
  appUrl?: string | undefined;
27314
27316
  toolsCount?: number | undefined;
27315
27317
  triggersCount?: number | undefined;
27316
- updatedAt?: string | undefined;
27317
27318
  }, {
27318
27319
  description?: string | undefined;
27319
27320
  logo?: string | undefined;
27320
27321
  availableVersions?: string[] | undefined;
27321
27322
  createdAt?: string | undefined;
27323
+ updatedAt?: string | undefined;
27322
27324
  categories?: {
27323
27325
  slug: string;
27324
27326
  name: string;
@@ -27326,7 +27328,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27326
27328
  appUrl?: string | undefined;
27327
27329
  toolsCount?: number | undefined;
27328
27330
  triggersCount?: number | undefined;
27329
- updatedAt?: string | undefined;
27330
27331
  }>;
27331
27332
  isLocalToolkit: z$1.ZodBoolean;
27332
27333
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -27340,6 +27341,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27340
27341
  logo?: string | undefined;
27341
27342
  availableVersions?: string[] | undefined;
27342
27343
  createdAt?: string | undefined;
27344
+ updatedAt?: string | undefined;
27343
27345
  categories?: {
27344
27346
  slug: string;
27345
27347
  name: string;
@@ -27347,7 +27349,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27347
27349
  appUrl?: string | undefined;
27348
27350
  toolsCount?: number | undefined;
27349
27351
  triggersCount?: number | undefined;
27350
- updatedAt?: string | undefined;
27351
27352
  };
27352
27353
  isLocalToolkit: boolean;
27353
27354
  authSchemes?: string[] | undefined;
@@ -27361,6 +27362,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27361
27362
  logo?: string | undefined;
27362
27363
  availableVersions?: string[] | undefined;
27363
27364
  createdAt?: string | undefined;
27365
+ updatedAt?: string | undefined;
27364
27366
  categories?: {
27365
27367
  slug: string;
27366
27368
  name: string;
@@ -27368,7 +27370,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
27368
27370
  appUrl?: string | undefined;
27369
27371
  toolsCount?: number | undefined;
27370
27372
  triggersCount?: number | undefined;
27371
- updatedAt?: string | undefined;
27372
27373
  };
27373
27374
  isLocalToolkit: boolean;
27374
27375
  authSchemes?: string[] | undefined;
@@ -27402,6 +27403,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27402
27403
  logo?: string | undefined;
27403
27404
  availableVersions?: string[] | undefined;
27404
27405
  createdAt?: string | undefined;
27406
+ updatedAt?: string | undefined;
27405
27407
  categories?: {
27406
27408
  slug: string;
27407
27409
  name: string;
@@ -27409,12 +27411,12 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27409
27411
  appUrl?: string | undefined;
27410
27412
  toolsCount?: number | undefined;
27411
27413
  triggersCount?: number | undefined;
27412
- updatedAt?: string | undefined;
27413
27414
  }, {
27414
27415
  description?: string | undefined;
27415
27416
  logo?: string | undefined;
27416
27417
  availableVersions?: string[] | undefined;
27417
27418
  createdAt?: string | undefined;
27419
+ updatedAt?: string | undefined;
27418
27420
  categories?: {
27419
27421
  slug: string;
27420
27422
  name: string;
@@ -27422,7 +27424,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27422
27424
  appUrl?: string | undefined;
27423
27425
  toolsCount?: number | undefined;
27424
27426
  triggersCount?: number | undefined;
27425
- updatedAt?: string | undefined;
27426
27427
  }>;
27427
27428
  isLocalToolkit: z$1.ZodBoolean;
27428
27429
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -27436,6 +27437,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27436
27437
  logo?: string | undefined;
27437
27438
  availableVersions?: string[] | undefined;
27438
27439
  createdAt?: string | undefined;
27440
+ updatedAt?: string | undefined;
27439
27441
  categories?: {
27440
27442
  slug: string;
27441
27443
  name: string;
@@ -27443,7 +27445,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27443
27445
  appUrl?: string | undefined;
27444
27446
  toolsCount?: number | undefined;
27445
27447
  triggersCount?: number | undefined;
27446
- updatedAt?: string | undefined;
27447
27448
  };
27448
27449
  isLocalToolkit: boolean;
27449
27450
  authSchemes?: string[] | undefined;
@@ -27457,6 +27458,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27457
27458
  logo?: string | undefined;
27458
27459
  availableVersions?: string[] | undefined;
27459
27460
  createdAt?: string | undefined;
27461
+ updatedAt?: string | undefined;
27460
27462
  categories?: {
27461
27463
  slug: string;
27462
27464
  name: string;
@@ -27464,7 +27466,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
27464
27466
  appUrl?: string | undefined;
27465
27467
  toolsCount?: number | undefined;
27466
27468
  triggersCount?: number | undefined;
27467
- updatedAt?: string | undefined;
27468
27469
  };
27469
27470
  isLocalToolkit: boolean;
27470
27471
  authSchemes?: string[] | undefined;
@@ -27861,6 +27862,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
27861
27862
  logo?: string | undefined;
27862
27863
  availableVersions?: string[] | undefined;
27863
27864
  createdAt?: string | undefined;
27865
+ updatedAt?: string | undefined;
27864
27866
  categories?: {
27865
27867
  slug: string;
27866
27868
  name: string;
@@ -27868,12 +27870,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
27868
27870
  appUrl?: string | undefined;
27869
27871
  toolsCount?: number | undefined;
27870
27872
  triggersCount?: number | undefined;
27871
- updatedAt?: string | undefined;
27872
27873
  }, {
27873
27874
  description?: string | undefined;
27874
27875
  logo?: string | undefined;
27875
27876
  availableVersions?: string[] | undefined;
27876
27877
  createdAt?: string | undefined;
27878
+ updatedAt?: string | undefined;
27877
27879
  categories?: {
27878
27880
  slug: string;
27879
27881
  name: string;
@@ -27881,7 +27883,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
27881
27883
  appUrl?: string | undefined;
27882
27884
  toolsCount?: number | undefined;
27883
27885
  triggersCount?: number | undefined;
27884
- updatedAt?: string | undefined;
27885
27886
  }>;
27886
27887
  isLocalToolkit: z$1.ZodBoolean;
27887
27888
  composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -28230,6 +28231,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28230
28231
  logo?: string | undefined;
28231
28232
  availableVersions?: string[] | undefined;
28232
28233
  createdAt?: string | undefined;
28234
+ updatedAt?: string | undefined;
28233
28235
  categories?: {
28234
28236
  slug: string;
28235
28237
  name: string;
@@ -28237,7 +28239,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28237
28239
  appUrl?: string | undefined;
28238
28240
  toolsCount?: number | undefined;
28239
28241
  triggersCount?: number | undefined;
28240
- updatedAt?: string | undefined;
28241
28242
  };
28242
28243
  isLocalToolkit: boolean;
28243
28244
  composioManagedAuthSchemes?: string[] | undefined;
@@ -28296,6 +28297,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28296
28297
  logo?: string | undefined;
28297
28298
  availableVersions?: string[] | undefined;
28298
28299
  createdAt?: string | undefined;
28300
+ updatedAt?: string | undefined;
28299
28301
  categories?: {
28300
28302
  slug: string;
28301
28303
  name: string;
@@ -28303,7 +28305,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
28303
28305
  appUrl?: string | undefined;
28304
28306
  toolsCount?: number | undefined;
28305
28307
  triggersCount?: number | undefined;
28306
- updatedAt?: string | undefined;
28307
28308
  };
28308
28309
  isLocalToolkit: boolean;
28309
28310
  composioManagedAuthSchemes?: string[] | undefined;
@@ -29485,21 +29486,21 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
29485
29486
  }, "strip", z$1.ZodTypeAny, {
29486
29487
  connectedAccountId: string;
29487
29488
  id: string;
29488
- updatedAt: string;
29489
29489
  disabledAt: string | null;
29490
29490
  state: Record<string, unknown>;
29491
29491
  triggerConfig: Record<string, unknown>;
29492
29492
  triggerName: string;
29493
+ updatedAt: string;
29493
29494
  uuid?: string | undefined;
29494
29495
  triggerData?: string | undefined;
29495
29496
  }, {
29496
29497
  connectedAccountId: string;
29497
29498
  id: string;
29498
- updatedAt: string;
29499
29499
  disabledAt: string | null;
29500
29500
  state: Record<string, unknown>;
29501
29501
  triggerConfig: Record<string, unknown>;
29502
29502
  triggerName: string;
29503
+ updatedAt: string;
29503
29504
  uuid?: string | undefined;
29504
29505
  triggerData?: string | undefined;
29505
29506
  }>;
@@ -29517,21 +29518,21 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
29517
29518
  }, "strip", z$1.ZodTypeAny, {
29518
29519
  connectedAccountId: string;
29519
29520
  id: string;
29520
- updatedAt: string;
29521
29521
  disabledAt: string | null;
29522
29522
  state: Record<string, unknown>;
29523
29523
  triggerConfig: Record<string, unknown>;
29524
29524
  triggerName: string;
29525
+ updatedAt: string;
29525
29526
  uuid?: string | undefined;
29526
29527
  triggerData?: string | undefined;
29527
29528
  }, {
29528
29529
  connectedAccountId: string;
29529
29530
  id: string;
29530
- updatedAt: string;
29531
29531
  disabledAt: string | null;
29532
29532
  state: Record<string, unknown>;
29533
29533
  triggerConfig: Record<string, unknown>;
29534
29534
  triggerName: string;
29535
+ updatedAt: string;
29535
29536
  uuid?: string | undefined;
29536
29537
  triggerData?: string | undefined;
29537
29538
  }>, "many">;
@@ -29541,11 +29542,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
29541
29542
  items: {
29542
29543
  connectedAccountId: string;
29543
29544
  id: string;
29544
- updatedAt: string;
29545
29545
  disabledAt: string | null;
29546
29546
  state: Record<string, unknown>;
29547
29547
  triggerConfig: Record<string, unknown>;
29548
29548
  triggerName: string;
29549
+ updatedAt: string;
29549
29550
  uuid?: string | undefined;
29550
29551
  triggerData?: string | undefined;
29551
29552
  }[];
@@ -29555,11 +29556,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
29555
29556
  items: {
29556
29557
  connectedAccountId: string;
29557
29558
  id: string;
29558
- updatedAt: string;
29559
29559
  disabledAt: string | null;
29560
29560
  state: Record<string, unknown>;
29561
29561
  triggerConfig: Record<string, unknown>;
29562
29562
  triggerName: string;
29563
+ updatedAt: string;
29563
29564
  uuid?: string | undefined;
29564
29565
  triggerData?: string | undefined;
29565
29566
  }[];
@@ -31859,26 +31860,26 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
31859
31860
  }>>;
31860
31861
  }, "strip", z.ZodTypeAny, {
31861
31862
  isActive: boolean;
31863
+ connectedAccount?: {
31864
+ status: string;
31865
+ id: string;
31866
+ } | undefined;
31862
31867
  authConfig?: {
31863
31868
  id: string;
31864
31869
  isComposioManaged: boolean;
31865
31870
  mode: string;
31866
31871
  } | null | undefined;
31872
+ }, {
31873
+ isActive: boolean;
31867
31874
  connectedAccount?: {
31868
31875
  status: string;
31869
31876
  id: string;
31870
31877
  } | undefined;
31871
- }, {
31872
- isActive: boolean;
31873
31878
  authConfig?: {
31874
31879
  id: string;
31875
31880
  isComposioManaged: boolean;
31876
31881
  mode: string;
31877
31882
  } | null | undefined;
31878
- connectedAccount?: {
31879
- status: string;
31880
- id: string;
31881
- } | undefined;
31882
31883
  }>>;
31883
31884
  }, "strip", z.ZodTypeAny, {
31884
31885
  slug: string;
@@ -31887,15 +31888,15 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
31887
31888
  logo?: string | undefined;
31888
31889
  connection?: {
31889
31890
  isActive: boolean;
31891
+ connectedAccount?: {
31892
+ status: string;
31893
+ id: string;
31894
+ } | undefined;
31890
31895
  authConfig?: {
31891
31896
  id: string;
31892
31897
  isComposioManaged: boolean;
31893
31898
  mode: string;
31894
31899
  } | null | undefined;
31895
- connectedAccount?: {
31896
- status: string;
31897
- id: string;
31898
- } | undefined;
31899
31900
  } | undefined;
31900
31901
  }, {
31901
31902
  slug: string;
@@ -31904,15 +31905,15 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
31904
31905
  isNoAuth?: boolean | undefined;
31905
31906
  connection?: {
31906
31907
  isActive: boolean;
31908
+ connectedAccount?: {
31909
+ status: string;
31910
+ id: string;
31911
+ } | undefined;
31907
31912
  authConfig?: {
31908
31913
  id: string;
31909
31914
  isComposioManaged: boolean;
31910
31915
  mode: string;
31911
31916
  } | null | undefined;
31912
- connectedAccount?: {
31913
- status: string;
31914
- id: string;
31915
- } | undefined;
31916
31917
  } | undefined;
31917
31918
  }>;
31918
31919
  declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
@@ -31948,26 +31949,26 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
31948
31949
  }>>;
31949
31950
  }, "strip", z.ZodTypeAny, {
31950
31951
  isActive: boolean;
31952
+ connectedAccount?: {
31953
+ status: string;
31954
+ id: string;
31955
+ } | undefined;
31951
31956
  authConfig?: {
31952
31957
  id: string;
31953
31958
  isComposioManaged: boolean;
31954
31959
  mode: string;
31955
31960
  } | null | undefined;
31961
+ }, {
31962
+ isActive: boolean;
31956
31963
  connectedAccount?: {
31957
31964
  status: string;
31958
31965
  id: string;
31959
31966
  } | undefined;
31960
- }, {
31961
- isActive: boolean;
31962
31967
  authConfig?: {
31963
31968
  id: string;
31964
31969
  isComposioManaged: boolean;
31965
31970
  mode: string;
31966
31971
  } | null | undefined;
31967
- connectedAccount?: {
31968
- status: string;
31969
- id: string;
31970
- } | undefined;
31971
31972
  }>>;
31972
31973
  }, "strip", z.ZodTypeAny, {
31973
31974
  slug: string;
@@ -31976,15 +31977,15 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
31976
31977
  logo?: string | undefined;
31977
31978
  connection?: {
31978
31979
  isActive: boolean;
31980
+ connectedAccount?: {
31981
+ status: string;
31982
+ id: string;
31983
+ } | undefined;
31979
31984
  authConfig?: {
31980
31985
  id: string;
31981
31986
  isComposioManaged: boolean;
31982
31987
  mode: string;
31983
31988
  } | null | undefined;
31984
- connectedAccount?: {
31985
- status: string;
31986
- id: string;
31987
- } | undefined;
31988
31989
  } | undefined;
31989
31990
  }, {
31990
31991
  slug: string;
@@ -31993,15 +31994,15 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
31993
31994
  isNoAuth?: boolean | undefined;
31994
31995
  connection?: {
31995
31996
  isActive: boolean;
31997
+ connectedAccount?: {
31998
+ status: string;
31999
+ id: string;
32000
+ } | undefined;
31996
32001
  authConfig?: {
31997
32002
  id: string;
31998
32003
  isComposioManaged: boolean;
31999
32004
  mode: string;
32000
32005
  } | null | undefined;
32001
- connectedAccount?: {
32002
- status: string;
32003
- id: string;
32004
- } | undefined;
32005
32006
  } | undefined;
32006
32007
  }>, "many">;
32007
32008
  nextCursor: z.ZodOptional<z.ZodString>;
@@ -32014,15 +32015,15 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
32014
32015
  logo?: string | undefined;
32015
32016
  connection?: {
32016
32017
  isActive: boolean;
32018
+ connectedAccount?: {
32019
+ status: string;
32020
+ id: string;
32021
+ } | undefined;
32017
32022
  authConfig?: {
32018
32023
  id: string;
32019
32024
  isComposioManaged: boolean;
32020
32025
  mode: string;
32021
32026
  } | null | undefined;
32022
- connectedAccount?: {
32023
- status: string;
32024
- id: string;
32025
- } | undefined;
32026
32027
  } | undefined;
32027
32028
  }[];
32028
32029
  totalPages: number;
@@ -32035,15 +32036,15 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
32035
32036
  isNoAuth?: boolean | undefined;
32036
32037
  connection?: {
32037
32038
  isActive: boolean;
32039
+ connectedAccount?: {
32040
+ status: string;
32041
+ id: string;
32042
+ } | undefined;
32038
32043
  authConfig?: {
32039
32044
  id: string;
32040
32045
  isComposioManaged: boolean;
32041
32046
  mode: string;
32042
32047
  } | null | undefined;
32043
- connectedAccount?: {
32044
- status: string;
32045
- id: string;
32046
- } | undefined;
32047
32048
  } | undefined;
32048
32049
  }[];
32049
32050
  totalPages: number;
package/dist/index.mjs CHANGED
@@ -3102,7 +3102,7 @@ var Tools = class {
3102
3102
  };
3103
3103
  }
3104
3104
  /**
3105
- * @inte
3105
+ * @internal
3106
3106
  * Utility to wrap a given set of tools in the format expected by the provider
3107
3107
  *
3108
3108
  * @param userId - The user id to get the tools for
@@ -3118,9 +3118,9 @@ var Tools = class {
3118
3118
  * @internal
3119
3119
  * Utility to wrap a given set of tools in the format expected by the tool router
3120
3120
  *
3121
- * @param sessionId {string} The session id to execute the tool for
3122
- * @param tools {Tool[]} The tools to wrap
3123
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
3121
+ * @param {string} sessionId - The session id to execute the tool for
3122
+ * @param {Tool[]} tools - The tools to wrap
3123
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
3124
3124
  * @returns {Tool[]} The wrapped tools
3125
3125
  */
3126
3126
  wrapToolsForToolRouter(sessionId, tools, modifiers) {
@@ -3151,8 +3151,8 @@ var Tools = class {
3151
3151
  * @internal
3152
3152
  * Creates a function that executes a tool for a tool router session
3153
3153
  *
3154
- * @param sessionId {string} The session id to execute the tool for
3155
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
3154
+ * @param {string} sessionId - The session id to execute the tool for
3155
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
3156
3156
  * @returns {ExecuteToolFn} The execute tool function
3157
3157
  */
3158
3158
  createExecuteToolFnForToolRouter(sessionId, modifiers) {
@@ -3286,10 +3286,11 @@ var Tools = class {
3286
3286
  /**
3287
3287
  * Executes a composio meta tool based on tool router session
3288
3288
  *
3289
- * @param sessionId {string} The session id to execute the tool for
3290
- * @param body.slug {string} The slug of the tool to execute
3291
- * @param body.arguments {Record<string, unknown>} The input to pass to the tool
3292
- * @param modifiers {ExecuteToolModifiers} The modifiers to apply to the tool
3289
+ * @param {string} toolSlug - The slug of the tool to execute
3290
+ * @param {ToolExecuteMetaParams} body - The execution parameters
3291
+ * @param {string} body.sessionId - The session id to execute the tool for
3292
+ * @param {Record<string, unknown>} body.arguments - The input to pass to the tool
3293
+ * @param {ExecuteToolModifiers} modifiers - The modifiers to apply to the tool
3293
3294
  * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
3294
3295
  */
3295
3296
  async executeMetaTool(toolSlug, body, modifiers) {
@@ -6221,7 +6222,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
6221
6222
 
6222
6223
  //#endregion
6223
6224
  //#region package.json
6224
- var version = "0.2.7-alpha.4";
6225
+ var version = "0.3.1";
6225
6226
 
6226
6227
  //#endregion
6227
6228
  //#region src/models/Files.ts
@@ -6450,7 +6451,7 @@ var ToolRouter = class {
6450
6451
  createAuthorizeFn = (sessionId) => {
6451
6452
  const authorizeFn = async (toolkit, options) => {
6452
6453
  const response = await this.client.toolRouter.session.link(sessionId, {
6453
- ...options ?? {},
6454
+ ...options?.callbackUrl ? { callback_url: options.callbackUrl } : {},
6454
6455
  toolkit
6455
6456
  });
6456
6457
  return createConnectionRequest(this.client, response.connected_account_id, ConnectedAccountStatuses.INITIATED, response.redirect_url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/core",
3
- "version": "0.2.7-alpha.4",
3
+ "version": "0.3.1",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "type": "module",