@composio/core 0.5.0 → 0.5.2

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
@@ -569,17 +569,17 @@ declare const ToolListParamsSchema: z.ZodObject<{
569
569
  }, "strip", z.ZodTypeAny, {
570
570
  tags?: string[] | undefined;
571
571
  scopes?: string[] | undefined;
572
+ limit?: number | undefined;
572
573
  tools?: string[] | undefined;
573
574
  toolkits?: string[] | undefined;
574
- limit?: number | undefined;
575
575
  search?: string | undefined;
576
576
  authConfigIds?: string[] | undefined;
577
577
  }, {
578
578
  tags?: string[] | undefined;
579
579
  scopes?: string[] | undefined;
580
+ limit?: number | undefined;
580
581
  tools?: string[] | undefined;
581
582
  toolkits?: string[] | undefined;
582
- limit?: number | undefined;
583
583
  search?: string | undefined;
584
584
  authConfigIds?: string[] | undefined;
585
585
  }>;
@@ -26620,10 +26620,10 @@ declare const McpRetrieveResponseSchema: z.ZodObject<{
26620
26620
  windsurf: string;
26621
26621
  };
26622
26622
  status?: string | undefined;
26623
+ createdAt?: string | undefined;
26623
26624
  tools?: string[] | undefined;
26624
26625
  toolkits?: string[] | undefined;
26625
26626
  authConfigIds?: string[] | undefined;
26626
- createdAt?: string | undefined;
26627
26627
  updatedAt?: string | undefined;
26628
26628
  managedAuthViaComposio?: boolean | undefined;
26629
26629
  }, {
@@ -26636,10 +26636,10 @@ declare const McpRetrieveResponseSchema: z.ZodObject<{
26636
26636
  windsurf: string;
26637
26637
  };
26638
26638
  status?: string | undefined;
26639
+ createdAt?: string | undefined;
26639
26640
  tools?: string[] | undefined;
26640
26641
  toolkits?: string[] | undefined;
26641
26642
  authConfigIds?: string[] | undefined;
26642
- createdAt?: string | undefined;
26643
26643
  updatedAt?: string | undefined;
26644
26644
  managedAuthViaComposio?: boolean | undefined;
26645
26645
  }>;
@@ -26709,17 +26709,17 @@ declare const McpUpdateResponseSchema: z.ZodObject<{
26709
26709
  name: string;
26710
26710
  id: string;
26711
26711
  status?: string | undefined;
26712
+ createdAt?: string | undefined;
26712
26713
  tools?: string[] | undefined;
26713
26714
  toolkits?: string[] | undefined;
26714
- createdAt?: string | undefined;
26715
26715
  updatedAt?: string | undefined;
26716
26716
  }, {
26717
26717
  name: string;
26718
26718
  id: string;
26719
26719
  status?: string | undefined;
26720
+ createdAt?: string | undefined;
26720
26721
  tools?: string[] | undefined;
26721
26722
  toolkits?: string[] | undefined;
26722
- createdAt?: string | undefined;
26723
26723
  updatedAt?: string | undefined;
26724
26724
  }>;
26725
26725
  declare const ComposioMcpUpdateResponseSchema: z.ZodObject<{
@@ -27401,14 +27401,14 @@ declare const ToolkitsListParamsSchema: z.ZodObject<{
27401
27401
  cursor: z.ZodOptional<z.ZodString>;
27402
27402
  limit: z.ZodOptional<z.ZodNumber>;
27403
27403
  }, "strip", z.ZodTypeAny, {
27404
- limit?: number | undefined;
27405
27404
  cursor?: string | undefined;
27405
+ limit?: number | undefined;
27406
27406
  category?: string | undefined;
27407
27407
  managedBy?: "all" | "composio" | "project" | undefined;
27408
27408
  sortBy?: "usage" | "alphabetically" | undefined;
27409
27409
  }, {
27410
- limit?: number | undefined;
27411
27410
  cursor?: string | undefined;
27411
+ limit?: number | undefined;
27412
27412
  category?: string | undefined;
27413
27413
  managedBy?: "all" | "composio" | "project" | undefined;
27414
27414
  sortBy?: "usage" | "alphabetically" | undefined;
@@ -27443,7 +27443,6 @@ declare const ToolKitMetaSchema: z.ZodObject<{
27443
27443
  logo?: string | undefined;
27444
27444
  availableVersions?: string[] | undefined;
27445
27445
  createdAt?: string | undefined;
27446
- updatedAt?: string | undefined;
27447
27446
  categories?: {
27448
27447
  slug: string;
27449
27448
  name: string;
@@ -27451,12 +27450,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
27451
27450
  appUrl?: string | undefined;
27452
27451
  toolsCount?: number | undefined;
27453
27452
  triggersCount?: number | undefined;
27453
+ updatedAt?: string | undefined;
27454
27454
  }, {
27455
27455
  description?: string | undefined;
27456
27456
  logo?: string | undefined;
27457
27457
  availableVersions?: string[] | undefined;
27458
27458
  createdAt?: string | undefined;
27459
- updatedAt?: string | undefined;
27460
27459
  categories?: {
27461
27460
  slug: string;
27462
27461
  name: string;
@@ -27464,6 +27463,7 @@ declare const ToolKitMetaSchema: z.ZodObject<{
27464
27463
  appUrl?: string | undefined;
27465
27464
  toolsCount?: number | undefined;
27466
27465
  triggersCount?: number | undefined;
27466
+ updatedAt?: string | undefined;
27467
27467
  }>;
27468
27468
  declare const ToolKitItemSchema: z.ZodObject<{
27469
27469
  name: z.ZodString;
@@ -27492,7 +27492,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
27492
27492
  logo?: string | undefined;
27493
27493
  availableVersions?: string[] | undefined;
27494
27494
  createdAt?: string | undefined;
27495
- updatedAt?: string | undefined;
27496
27495
  categories?: {
27497
27496
  slug: string;
27498
27497
  name: string;
@@ -27500,12 +27499,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
27500
27499
  appUrl?: string | undefined;
27501
27500
  toolsCount?: number | undefined;
27502
27501
  triggersCount?: number | undefined;
27502
+ updatedAt?: string | undefined;
27503
27503
  }, {
27504
27504
  description?: string | undefined;
27505
27505
  logo?: string | undefined;
27506
27506
  availableVersions?: string[] | undefined;
27507
27507
  createdAt?: string | undefined;
27508
- updatedAt?: string | undefined;
27509
27508
  categories?: {
27510
27509
  slug: string;
27511
27510
  name: string;
@@ -27513,6 +27512,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
27513
27512
  appUrl?: string | undefined;
27514
27513
  toolsCount?: number | undefined;
27515
27514
  triggersCount?: number | undefined;
27515
+ updatedAt?: string | undefined;
27516
27516
  }>;
27517
27517
  isLocalToolkit: z.ZodBoolean;
27518
27518
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -27526,7 +27526,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
27526
27526
  logo?: string | undefined;
27527
27527
  availableVersions?: string[] | undefined;
27528
27528
  createdAt?: string | undefined;
27529
- updatedAt?: string | undefined;
27530
27529
  categories?: {
27531
27530
  slug: string;
27532
27531
  name: string;
@@ -27534,6 +27533,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
27534
27533
  appUrl?: string | undefined;
27535
27534
  toolsCount?: number | undefined;
27536
27535
  triggersCount?: number | undefined;
27536
+ updatedAt?: string | undefined;
27537
27537
  };
27538
27538
  isLocalToolkit: boolean;
27539
27539
  authSchemes?: string[] | undefined;
@@ -27547,7 +27547,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
27547
27547
  logo?: string | undefined;
27548
27548
  availableVersions?: string[] | undefined;
27549
27549
  createdAt?: string | undefined;
27550
- updatedAt?: string | undefined;
27551
27550
  categories?: {
27552
27551
  slug: string;
27553
27552
  name: string;
@@ -27555,6 +27554,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
27555
27554
  appUrl?: string | undefined;
27556
27555
  toolsCount?: number | undefined;
27557
27556
  triggersCount?: number | undefined;
27557
+ updatedAt?: string | undefined;
27558
27558
  };
27559
27559
  isLocalToolkit: boolean;
27560
27560
  authSchemes?: string[] | undefined;
@@ -27588,7 +27588,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27588
27588
  logo?: string | undefined;
27589
27589
  availableVersions?: string[] | undefined;
27590
27590
  createdAt?: string | undefined;
27591
- updatedAt?: string | undefined;
27592
27591
  categories?: {
27593
27592
  slug: string;
27594
27593
  name: string;
@@ -27596,12 +27595,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27596
27595
  appUrl?: string | undefined;
27597
27596
  toolsCount?: number | undefined;
27598
27597
  triggersCount?: number | undefined;
27598
+ updatedAt?: string | undefined;
27599
27599
  }, {
27600
27600
  description?: string | undefined;
27601
27601
  logo?: string | undefined;
27602
27602
  availableVersions?: string[] | undefined;
27603
27603
  createdAt?: string | undefined;
27604
- updatedAt?: string | undefined;
27605
27604
  categories?: {
27606
27605
  slug: string;
27607
27606
  name: string;
@@ -27609,6 +27608,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27609
27608
  appUrl?: string | undefined;
27610
27609
  toolsCount?: number | undefined;
27611
27610
  triggersCount?: number | undefined;
27611
+ updatedAt?: string | undefined;
27612
27612
  }>;
27613
27613
  isLocalToolkit: z.ZodBoolean;
27614
27614
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -27622,7 +27622,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27622
27622
  logo?: string | undefined;
27623
27623
  availableVersions?: string[] | undefined;
27624
27624
  createdAt?: string | undefined;
27625
- updatedAt?: string | undefined;
27626
27625
  categories?: {
27627
27626
  slug: string;
27628
27627
  name: string;
@@ -27630,6 +27629,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27630
27629
  appUrl?: string | undefined;
27631
27630
  toolsCount?: number | undefined;
27632
27631
  triggersCount?: number | undefined;
27632
+ updatedAt?: string | undefined;
27633
27633
  };
27634
27634
  isLocalToolkit: boolean;
27635
27635
  authSchemes?: string[] | undefined;
@@ -27643,7 +27643,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27643
27643
  logo?: string | undefined;
27644
27644
  availableVersions?: string[] | undefined;
27645
27645
  createdAt?: string | undefined;
27646
- updatedAt?: string | undefined;
27647
27646
  categories?: {
27648
27647
  slug: string;
27649
27648
  name: string;
@@ -27651,6 +27650,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
27651
27650
  appUrl?: string | undefined;
27652
27651
  toolsCount?: number | undefined;
27653
27652
  triggersCount?: number | undefined;
27653
+ updatedAt?: string | undefined;
27654
27654
  };
27655
27655
  isLocalToolkit: boolean;
27656
27656
  authSchemes?: string[] | undefined;
@@ -28047,7 +28047,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28047
28047
  logo?: string | undefined;
28048
28048
  availableVersions?: string[] | undefined;
28049
28049
  createdAt?: string | undefined;
28050
- updatedAt?: string | undefined;
28051
28050
  categories?: {
28052
28051
  slug: string;
28053
28052
  name: string;
@@ -28055,12 +28054,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28055
28054
  appUrl?: string | undefined;
28056
28055
  toolsCount?: number | undefined;
28057
28056
  triggersCount?: number | undefined;
28057
+ updatedAt?: string | undefined;
28058
28058
  }, {
28059
28059
  description?: string | undefined;
28060
28060
  logo?: string | undefined;
28061
28061
  availableVersions?: string[] | undefined;
28062
28062
  createdAt?: string | undefined;
28063
- updatedAt?: string | undefined;
28064
28063
  categories?: {
28065
28064
  slug: string;
28066
28065
  name: string;
@@ -28068,6 +28067,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28068
28067
  appUrl?: string | undefined;
28069
28068
  toolsCount?: number | undefined;
28070
28069
  triggersCount?: number | undefined;
28070
+ updatedAt?: string | undefined;
28071
28071
  }>;
28072
28072
  isLocalToolkit: z.ZodBoolean;
28073
28073
  composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -28416,7 +28416,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28416
28416
  logo?: string | undefined;
28417
28417
  availableVersions?: string[] | undefined;
28418
28418
  createdAt?: string | undefined;
28419
- updatedAt?: string | undefined;
28420
28419
  categories?: {
28421
28420
  slug: string;
28422
28421
  name: string;
@@ -28424,6 +28423,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28424
28423
  appUrl?: string | undefined;
28425
28424
  toolsCount?: number | undefined;
28426
28425
  triggersCount?: number | undefined;
28426
+ updatedAt?: string | undefined;
28427
28427
  };
28428
28428
  isLocalToolkit: boolean;
28429
28429
  composioManagedAuthSchemes?: string[] | undefined;
@@ -28482,7 +28482,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28482
28482
  logo?: string | undefined;
28483
28483
  availableVersions?: string[] | undefined;
28484
28484
  createdAt?: string | undefined;
28485
- updatedAt?: string | undefined;
28486
28485
  categories?: {
28487
28486
  slug: string;
28488
28487
  name: string;
@@ -28490,6 +28489,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
28490
28489
  appUrl?: string | undefined;
28491
28490
  toolsCount?: number | undefined;
28492
28491
  triggersCount?: number | undefined;
28492
+ updatedAt?: string | undefined;
28493
28493
  };
28494
28494
  isLocalToolkit: boolean;
28495
28495
  composioManagedAuthSchemes?: string[] | undefined;
@@ -28694,12 +28694,12 @@ declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
28694
28694
  redirectUrl: z.ZodNullable<z.ZodString>;
28695
28695
  }, "strip", z.ZodTypeAny, {
28696
28696
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
28697
- redirectUrl: string | null;
28698
28697
  id: string;
28698
+ redirectUrl: string | null;
28699
28699
  }, {
28700
28700
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
28701
- redirectUrl: string | null;
28702
28701
  id: string;
28702
+ redirectUrl: string | null;
28703
28703
  }>;
28704
28704
  type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
28705
28705
  declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
@@ -28748,17 +28748,17 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
28748
28748
  toolkitSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
28749
28749
  userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
28750
28750
  }, "strip", z.ZodTypeAny, {
28751
+ cursor?: string | null | undefined;
28751
28752
  limit?: number | null | undefined;
28752
28753
  authConfigIds?: string[] | null | undefined;
28753
- cursor?: string | null | undefined;
28754
28754
  orderBy?: "created_at" | "updated_at" | undefined;
28755
28755
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
28756
28756
  toolkitSlugs?: string[] | null | undefined;
28757
28757
  userIds?: string[] | null | undefined;
28758
28758
  }, {
28759
+ cursor?: string | null | undefined;
28759
28760
  limit?: number | null | undefined;
28760
28761
  authConfigIds?: string[] | null | undefined;
28761
- cursor?: string | null | undefined;
28762
28762
  orderBy?: "created_at" | "updated_at" | undefined;
28763
28763
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
28764
28764
  toolkitSlugs?: string[] | null | undefined;
@@ -28947,10 +28947,11 @@ declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
28947
28947
  }, {
28948
28948
  toolsForConnectedAccountCreation?: string[] | undefined;
28949
28949
  }>>;
28950
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
28950
28951
  }, "strip", z.ZodTypeAny, {
28951
28952
  type: "use_custom_auth";
28952
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
28953
28953
  credentials: Record<string, string | number | boolean>;
28954
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
28954
28955
  name?: string | undefined;
28955
28956
  proxyConfig?: {
28956
28957
  proxyUrl: string;
@@ -28959,10 +28960,11 @@ declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
28959
28960
  toolAccessConfig?: {
28960
28961
  toolsForConnectedAccountCreation?: string[] | undefined;
28961
28962
  } | undefined;
28963
+ isEnabledForToolRouter?: boolean | undefined;
28962
28964
  }, {
28963
28965
  type: "use_custom_auth";
28964
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
28965
28966
  credentials: Record<string, string | number | boolean>;
28967
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
28966
28968
  name?: string | undefined;
28967
28969
  proxyConfig?: {
28968
28970
  proxyUrl: string;
@@ -28971,11 +28973,21 @@ declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
28971
28973
  toolAccessConfig?: {
28972
28974
  toolsForConnectedAccountCreation?: string[] | undefined;
28973
28975
  } | undefined;
28976
+ isEnabledForToolRouter?: boolean | undefined;
28974
28977
  }>;
28975
28978
  declare const CreateComposioManagedAuthConfigParamsSchema: z.ZodObject<{
28976
28979
  type: z.ZodLiteral<"use_composio_managed_auth">;
28977
28980
  name: z.ZodOptional<z.ZodString>;
28978
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
28981
+ credentials: z.ZodOptional<z.ZodObject<{
28982
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
28983
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
28984
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
28985
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
28986
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
28987
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
28988
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
28989
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
28990
+ }, z.ZodTypeAny, "passthrough">>>;
28979
28991
  toolAccessConfig: z.ZodOptional<z.ZodObject<{
28980
28992
  toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28981
28993
  }, "strip", z.ZodTypeAny, {
@@ -28983,20 +28995,29 @@ declare const CreateComposioManagedAuthConfigParamsSchema: z.ZodObject<{
28983
28995
  }, {
28984
28996
  toolsForConnectedAccountCreation?: string[] | undefined;
28985
28997
  }>>;
28998
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
28986
28999
  }, "strip", z.ZodTypeAny, {
28987
29000
  type: "use_composio_managed_auth";
28988
29001
  name?: string | undefined;
28989
- credentials?: Record<string, string | number | boolean> | undefined;
29002
+ credentials?: z.objectOutputType<{
29003
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29004
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29005
+ }, z.ZodTypeAny, "passthrough"> | undefined;
28990
29006
  toolAccessConfig?: {
28991
29007
  toolsForConnectedAccountCreation?: string[] | undefined;
28992
29008
  } | undefined;
29009
+ isEnabledForToolRouter?: boolean | undefined;
28993
29010
  }, {
28994
29011
  type: "use_composio_managed_auth";
28995
29012
  name?: string | undefined;
28996
- credentials?: Record<string, string | number | boolean> | undefined;
29013
+ credentials?: z.objectInputType<{
29014
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29015
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29016
+ }, z.ZodTypeAny, "passthrough"> | undefined;
28997
29017
  toolAccessConfig?: {
28998
29018
  toolsForConnectedAccountCreation?: string[] | undefined;
28999
29019
  } | undefined;
29020
+ isEnabledForToolRouter?: boolean | undefined;
29000
29021
  }>;
29001
29022
  /**
29002
29023
  * Discriminated union of all possible auth config types.
@@ -29023,10 +29044,11 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29023
29044
  }, {
29024
29045
  toolsForConnectedAccountCreation?: string[] | undefined;
29025
29046
  }>>;
29047
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29026
29048
  }, "strip", z.ZodTypeAny, {
29027
29049
  type: "use_custom_auth";
29028
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
29029
29050
  credentials: Record<string, string | number | boolean>;
29051
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
29030
29052
  name?: string | undefined;
29031
29053
  proxyConfig?: {
29032
29054
  proxyUrl: string;
@@ -29035,10 +29057,11 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29035
29057
  toolAccessConfig?: {
29036
29058
  toolsForConnectedAccountCreation?: string[] | undefined;
29037
29059
  } | undefined;
29060
+ isEnabledForToolRouter?: boolean | undefined;
29038
29061
  }, {
29039
29062
  type: "use_custom_auth";
29040
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
29041
29063
  credentials: Record<string, string | number | boolean>;
29064
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH";
29042
29065
  name?: string | undefined;
29043
29066
  proxyConfig?: {
29044
29067
  proxyUrl: string;
@@ -29047,10 +29070,20 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29047
29070
  toolAccessConfig?: {
29048
29071
  toolsForConnectedAccountCreation?: string[] | undefined;
29049
29072
  } | undefined;
29073
+ isEnabledForToolRouter?: boolean | undefined;
29050
29074
  }>, z.ZodObject<{
29051
29075
  type: z.ZodLiteral<"use_composio_managed_auth">;
29052
29076
  name: z.ZodOptional<z.ZodString>;
29053
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
29077
+ credentials: z.ZodOptional<z.ZodObject<{
29078
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29079
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29080
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29081
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29082
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29083
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29084
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29085
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29086
+ }, z.ZodTypeAny, "passthrough">>>;
29054
29087
  toolAccessConfig: z.ZodOptional<z.ZodObject<{
29055
29088
  toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29056
29089
  }, "strip", z.ZodTypeAny, {
@@ -29058,20 +29091,29 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29058
29091
  }, {
29059
29092
  toolsForConnectedAccountCreation?: string[] | undefined;
29060
29093
  }>>;
29094
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29061
29095
  }, "strip", z.ZodTypeAny, {
29062
29096
  type: "use_composio_managed_auth";
29063
29097
  name?: string | undefined;
29064
- credentials?: Record<string, string | number | boolean> | undefined;
29098
+ credentials?: z.objectOutputType<{
29099
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29100
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29101
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29065
29102
  toolAccessConfig?: {
29066
29103
  toolsForConnectedAccountCreation?: string[] | undefined;
29067
29104
  } | undefined;
29105
+ isEnabledForToolRouter?: boolean | undefined;
29068
29106
  }, {
29069
29107
  type: "use_composio_managed_auth";
29070
29108
  name?: string | undefined;
29071
- credentials?: Record<string, string | number | boolean> | undefined;
29109
+ credentials?: z.objectInputType<{
29110
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29111
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29112
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29072
29113
  toolAccessConfig?: {
29073
29114
  toolsForConnectedAccountCreation?: string[] | undefined;
29074
29115
  } | undefined;
29116
+ isEnabledForToolRouter?: boolean | undefined;
29075
29117
  }>]>;
29076
29118
  type CreateAuthConfigParams = z.infer<typeof CreateAuthConfigParamsSchema>;
29077
29119
  declare const CreateAuthConfigResponseSchema: z.ZodObject<{
@@ -29110,6 +29152,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
29110
29152
  authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH"]>>;
29111
29153
  credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29112
29154
  expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
29155
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29113
29156
  /**
29114
29157
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
29115
29158
  */
@@ -29138,12 +29181,13 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
29138
29181
  id: string;
29139
29182
  noOfConnections: number;
29140
29183
  uuid: string;
29141
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29142
29184
  credentials?: Record<string, unknown> | undefined;
29185
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29143
29186
  toolAccessConfig?: {
29144
29187
  toolsForConnectedAccountCreation?: string[] | undefined;
29145
29188
  toolsAvailableForExecution?: string[] | undefined;
29146
29189
  } | undefined;
29190
+ isEnabledForToolRouter?: boolean | undefined;
29147
29191
  isComposioManaged?: boolean | undefined;
29148
29192
  expectedInputFields?: unknown[] | undefined;
29149
29193
  restrictToFollowingTools?: string[] | undefined;
@@ -29160,12 +29204,13 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
29160
29204
  id: string;
29161
29205
  noOfConnections: number;
29162
29206
  uuid: string;
29163
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29164
29207
  credentials?: Record<string, unknown> | undefined;
29208
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29165
29209
  toolAccessConfig?: {
29166
29210
  toolsForConnectedAccountCreation?: string[] | undefined;
29167
29211
  toolsAvailableForExecution?: string[] | undefined;
29168
29212
  } | undefined;
29213
+ isEnabledForToolRouter?: boolean | undefined;
29169
29214
  isComposioManaged?: boolean | undefined;
29170
29215
  expectedInputFields?: unknown[] | undefined;
29171
29216
  restrictToFollowingTools?: string[] | undefined;
@@ -29181,14 +29226,14 @@ declare const AuthConfigListParamsSchema: z.ZodObject<{
29181
29226
  toolkit: z.ZodOptional<z.ZodString>;
29182
29227
  }, "strip", z.ZodTypeAny, {
29183
29228
  toolkit?: string | undefined;
29184
- limit?: number | undefined;
29185
29229
  isComposioManaged?: boolean | undefined;
29186
29230
  cursor?: string | undefined;
29231
+ limit?: number | undefined;
29187
29232
  }, {
29188
29233
  toolkit?: string | undefined;
29189
- limit?: number | undefined;
29190
29234
  isComposioManaged?: boolean | undefined;
29191
29235
  cursor?: string | undefined;
29236
+ limit?: number | undefined;
29192
29237
  }>;
29193
29238
  type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
29194
29239
  declare const AuthConfigListResponseSchema: z.ZodObject<{
@@ -29211,6 +29256,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
29211
29256
  authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH"]>>;
29212
29257
  credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29213
29258
  expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
29259
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29214
29260
  /**
29215
29261
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
29216
29262
  */
@@ -29239,12 +29285,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
29239
29285
  id: string;
29240
29286
  noOfConnections: number;
29241
29287
  uuid: string;
29242
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29243
29288
  credentials?: Record<string, unknown> | undefined;
29289
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29244
29290
  toolAccessConfig?: {
29245
29291
  toolsForConnectedAccountCreation?: string[] | undefined;
29246
29292
  toolsAvailableForExecution?: string[] | undefined;
29247
29293
  } | undefined;
29294
+ isEnabledForToolRouter?: boolean | undefined;
29248
29295
  isComposioManaged?: boolean | undefined;
29249
29296
  expectedInputFields?: unknown[] | undefined;
29250
29297
  restrictToFollowingTools?: string[] | undefined;
@@ -29261,12 +29308,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
29261
29308
  id: string;
29262
29309
  noOfConnections: number;
29263
29310
  uuid: string;
29264
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29265
29311
  credentials?: Record<string, unknown> | undefined;
29312
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29266
29313
  toolAccessConfig?: {
29267
29314
  toolsForConnectedAccountCreation?: string[] | undefined;
29268
29315
  toolsAvailableForExecution?: string[] | undefined;
29269
29316
  } | undefined;
29317
+ isEnabledForToolRouter?: boolean | undefined;
29270
29318
  isComposioManaged?: boolean | undefined;
29271
29319
  expectedInputFields?: unknown[] | undefined;
29272
29320
  restrictToFollowingTools?: string[] | undefined;
@@ -29287,12 +29335,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
29287
29335
  id: string;
29288
29336
  noOfConnections: number;
29289
29337
  uuid: string;
29290
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29291
29338
  credentials?: Record<string, unknown> | undefined;
29339
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29292
29340
  toolAccessConfig?: {
29293
29341
  toolsForConnectedAccountCreation?: string[] | undefined;
29294
29342
  toolsAvailableForExecution?: string[] | undefined;
29295
29343
  } | undefined;
29344
+ isEnabledForToolRouter?: boolean | undefined;
29296
29345
  isComposioManaged?: boolean | undefined;
29297
29346
  expectedInputFields?: unknown[] | undefined;
29298
29347
  restrictToFollowingTools?: string[] | undefined;
@@ -29313,12 +29362,13 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
29313
29362
  id: string;
29314
29363
  noOfConnections: number;
29315
29364
  uuid: string;
29316
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29317
29365
  credentials?: Record<string, unknown> | undefined;
29366
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | undefined;
29318
29367
  toolAccessConfig?: {
29319
29368
  toolsForConnectedAccountCreation?: string[] | undefined;
29320
29369
  toolsAvailableForExecution?: string[] | undefined;
29321
29370
  } | undefined;
29371
+ isEnabledForToolRouter?: boolean | undefined;
29322
29372
  isComposioManaged?: boolean | undefined;
29323
29373
  expectedInputFields?: unknown[] | undefined;
29324
29374
  restrictToFollowingTools?: string[] | undefined;
@@ -29331,8 +29381,18 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
29331
29381
  }>;
29332
29382
  type AuthConfigListResponse = z.infer<typeof AuthConfigListResponseSchema>;
29333
29383
  declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
29334
- credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
29335
29384
  type: z.ZodLiteral<"custom">;
29385
+ credentials: z.ZodOptional<z.ZodObject<{
29386
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29387
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29388
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29389
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29390
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29391
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29392
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29393
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29394
+ }, z.ZodTypeAny, "passthrough">>>;
29395
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29336
29396
  /**
29337
29397
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
29338
29398
  */
@@ -29349,24 +29409,33 @@ declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
29349
29409
  }>>;
29350
29410
  }, "strip", z.ZodTypeAny, {
29351
29411
  type: "custom";
29352
- credentials: Record<string, unknown>;
29412
+ credentials?: z.objectOutputType<{
29413
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29414
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29415
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29353
29416
  toolAccessConfig?: {
29354
29417
  toolsForConnectedAccountCreation?: string[] | undefined;
29355
29418
  toolsAvailableForExecution?: string[] | undefined;
29356
29419
  } | undefined;
29420
+ isEnabledForToolRouter?: boolean | undefined;
29357
29421
  restrictToFollowingTools?: string[] | undefined;
29358
29422
  }, {
29359
29423
  type: "custom";
29360
- credentials: Record<string, unknown>;
29424
+ credentials?: z.objectInputType<{
29425
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29426
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29427
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29361
29428
  toolAccessConfig?: {
29362
29429
  toolsForConnectedAccountCreation?: string[] | undefined;
29363
29430
  toolsAvailableForExecution?: string[] | undefined;
29364
29431
  } | undefined;
29432
+ isEnabledForToolRouter?: boolean | undefined;
29365
29433
  restrictToFollowingTools?: string[] | undefined;
29366
29434
  }>;
29367
29435
  declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
29368
- scopes: z.ZodOptional<z.ZodString>;
29369
29436
  type: z.ZodLiteral<"default">;
29437
+ scopes: z.ZodOptional<z.ZodString>;
29438
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29370
29439
  /**
29371
29440
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
29372
29441
  */
@@ -29388,6 +29457,7 @@ declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
29388
29457
  toolsForConnectedAccountCreation?: string[] | undefined;
29389
29458
  toolsAvailableForExecution?: string[] | undefined;
29390
29459
  } | undefined;
29460
+ isEnabledForToolRouter?: boolean | undefined;
29391
29461
  restrictToFollowingTools?: string[] | undefined;
29392
29462
  }, {
29393
29463
  type: "default";
@@ -29396,11 +29466,22 @@ declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
29396
29466
  toolsForConnectedAccountCreation?: string[] | undefined;
29397
29467
  toolsAvailableForExecution?: string[] | undefined;
29398
29468
  } | undefined;
29469
+ isEnabledForToolRouter?: boolean | undefined;
29399
29470
  restrictToFollowingTools?: string[] | undefined;
29400
29471
  }>;
29401
29472
  declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
29402
- credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnknown]>>;
29403
29473
  type: z.ZodLiteral<"custom">;
29474
+ credentials: z.ZodOptional<z.ZodObject<{
29475
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29476
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29477
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29478
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29479
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29480
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29481
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29482
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29483
+ }, z.ZodTypeAny, "passthrough">>>;
29484
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29404
29485
  /**
29405
29486
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
29406
29487
  */
@@ -29417,23 +29498,32 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29417
29498
  }>>;
29418
29499
  }, "strip", z.ZodTypeAny, {
29419
29500
  type: "custom";
29420
- credentials: Record<string, unknown>;
29501
+ credentials?: z.objectOutputType<{
29502
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29503
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29504
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29421
29505
  toolAccessConfig?: {
29422
29506
  toolsForConnectedAccountCreation?: string[] | undefined;
29423
29507
  toolsAvailableForExecution?: string[] | undefined;
29424
29508
  } | undefined;
29509
+ isEnabledForToolRouter?: boolean | undefined;
29425
29510
  restrictToFollowingTools?: string[] | undefined;
29426
29511
  }, {
29427
29512
  type: "custom";
29428
- credentials: Record<string, unknown>;
29513
+ credentials?: z.objectInputType<{
29514
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29515
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
29516
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29429
29517
  toolAccessConfig?: {
29430
29518
  toolsForConnectedAccountCreation?: string[] | undefined;
29431
29519
  toolsAvailableForExecution?: string[] | undefined;
29432
29520
  } | undefined;
29521
+ isEnabledForToolRouter?: boolean | undefined;
29433
29522
  restrictToFollowingTools?: string[] | undefined;
29434
29523
  }>, z.ZodObject<{
29435
- scopes: z.ZodOptional<z.ZodString>;
29436
29524
  type: z.ZodLiteral<"default">;
29525
+ scopes: z.ZodOptional<z.ZodString>;
29526
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
29437
29527
  /**
29438
29528
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
29439
29529
  */
@@ -29455,6 +29545,7 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29455
29545
  toolsForConnectedAccountCreation?: string[] | undefined;
29456
29546
  toolsAvailableForExecution?: string[] | undefined;
29457
29547
  } | undefined;
29548
+ isEnabledForToolRouter?: boolean | undefined;
29458
29549
  restrictToFollowingTools?: string[] | undefined;
29459
29550
  }, {
29460
29551
  type: "default";
@@ -29463,6 +29554,7 @@ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
29463
29554
  toolsForConnectedAccountCreation?: string[] | undefined;
29464
29555
  toolsAvailableForExecution?: string[] | undefined;
29465
29556
  } | undefined;
29557
+ isEnabledForToolRouter?: boolean | undefined;
29466
29558
  restrictToFollowingTools?: string[] | undefined;
29467
29559
  }>]>;
29468
29560
  type AuthConfigUpdateParams = z.infer<typeof AuthConfigUpdateParamsSchema>;
@@ -29669,23 +29761,23 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
29669
29761
  triggerData: z.ZodOptional<z.ZodString>;
29670
29762
  uuid: z.ZodOptional<z.ZodString>;
29671
29763
  }, "strip", z.ZodTypeAny, {
29672
- connectedAccountId: string;
29673
29764
  id: string;
29765
+ connectedAccountId: string;
29766
+ updatedAt: string;
29674
29767
  disabledAt: string | null;
29675
29768
  state: Record<string, unknown>;
29676
29769
  triggerConfig: Record<string, unknown>;
29677
29770
  triggerName: string;
29678
- updatedAt: string;
29679
29771
  uuid?: string | undefined;
29680
29772
  triggerData?: string | undefined;
29681
29773
  }, {
29682
- connectedAccountId: string;
29683
29774
  id: string;
29775
+ connectedAccountId: string;
29776
+ updatedAt: string;
29684
29777
  disabledAt: string | null;
29685
29778
  state: Record<string, unknown>;
29686
29779
  triggerConfig: Record<string, unknown>;
29687
29780
  triggerName: string;
29688
- updatedAt: string;
29689
29781
  uuid?: string | undefined;
29690
29782
  triggerData?: string | undefined;
29691
29783
  }>;
@@ -29701,23 +29793,23 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
29701
29793
  triggerData: z.ZodOptional<z.ZodString>;
29702
29794
  uuid: z.ZodOptional<z.ZodString>;
29703
29795
  }, "strip", z.ZodTypeAny, {
29704
- connectedAccountId: string;
29705
29796
  id: string;
29797
+ connectedAccountId: string;
29798
+ updatedAt: string;
29706
29799
  disabledAt: string | null;
29707
29800
  state: Record<string, unknown>;
29708
29801
  triggerConfig: Record<string, unknown>;
29709
29802
  triggerName: string;
29710
- updatedAt: string;
29711
29803
  uuid?: string | undefined;
29712
29804
  triggerData?: string | undefined;
29713
29805
  }, {
29714
- connectedAccountId: string;
29715
29806
  id: string;
29807
+ connectedAccountId: string;
29808
+ updatedAt: string;
29716
29809
  disabledAt: string | null;
29717
29810
  state: Record<string, unknown>;
29718
29811
  triggerConfig: Record<string, unknown>;
29719
29812
  triggerName: string;
29720
- updatedAt: string;
29721
29813
  uuid?: string | undefined;
29722
29814
  triggerData?: string | undefined;
29723
29815
  }>, "many">;
@@ -29725,13 +29817,13 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
29725
29817
  totalPages: z.ZodNumber;
29726
29818
  }, "strip", z.ZodTypeAny, {
29727
29819
  items: {
29728
- connectedAccountId: string;
29729
29820
  id: string;
29821
+ connectedAccountId: string;
29822
+ updatedAt: string;
29730
29823
  disabledAt: string | null;
29731
29824
  state: Record<string, unknown>;
29732
29825
  triggerConfig: Record<string, unknown>;
29733
29826
  triggerName: string;
29734
- updatedAt: string;
29735
29827
  uuid?: string | undefined;
29736
29828
  triggerData?: string | undefined;
29737
29829
  }[];
@@ -29739,13 +29831,13 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
29739
29831
  totalPages: number;
29740
29832
  }, {
29741
29833
  items: {
29742
- connectedAccountId: string;
29743
29834
  id: string;
29835
+ connectedAccountId: string;
29836
+ updatedAt: string;
29744
29837
  disabledAt: string | null;
29745
29838
  state: Record<string, unknown>;
29746
29839
  triggerConfig: Record<string, unknown>;
29747
29840
  triggerName: string;
29748
- updatedAt: string;
29749
29841
  uuid?: string | undefined;
29750
29842
  triggerData?: string | undefined;
29751
29843
  }[];
@@ -29821,67 +29913,67 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
29821
29913
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
29822
29914
  }, "strip", z.ZodTypeAny, {
29823
29915
  status: "ACTIVE" | "INACTIVE";
29824
- userId: string;
29825
29916
  id: string;
29826
29917
  uuid: string;
29918
+ userId: string;
29827
29919
  authConfigId: string;
29828
29920
  authConfigUUID: string;
29829
29921
  }, {
29830
29922
  status: "ACTIVE" | "INACTIVE";
29831
- userId: string;
29832
29923
  id: string;
29833
29924
  uuid: string;
29925
+ userId: string;
29834
29926
  authConfigId: string;
29835
29927
  authConfigUUID: string;
29836
29928
  }>;
29837
29929
  }, "strip", z.ZodTypeAny, {
29838
- toolkitSlug: string;
29839
29930
  id: string;
29840
29931
  uuid: string;
29932
+ toolkitSlug: string;
29841
29933
  triggerSlug: string;
29842
29934
  triggerConfig: Record<string, unknown>;
29843
29935
  connectedAccount: {
29844
29936
  status: "ACTIVE" | "INACTIVE";
29845
- userId: string;
29846
29937
  id: string;
29847
29938
  uuid: string;
29939
+ userId: string;
29848
29940
  authConfigId: string;
29849
29941
  authConfigUUID: string;
29850
29942
  };
29851
29943
  triggerData?: string | undefined;
29852
29944
  }, {
29853
- toolkitSlug: string;
29854
29945
  id: string;
29855
29946
  uuid: string;
29947
+ toolkitSlug: string;
29856
29948
  triggerSlug: string;
29857
29949
  triggerConfig: Record<string, unknown>;
29858
29950
  connectedAccount: {
29859
29951
  status: "ACTIVE" | "INACTIVE";
29860
- userId: string;
29861
29952
  id: string;
29862
29953
  uuid: string;
29954
+ userId: string;
29863
29955
  authConfigId: string;
29864
29956
  authConfigUUID: string;
29865
29957
  };
29866
29958
  triggerData?: string | undefined;
29867
29959
  }>;
29868
29960
  }, "strip", z.ZodTypeAny, {
29869
- toolkitSlug: string;
29870
- userId: string;
29871
29961
  id: string;
29872
29962
  uuid: string;
29963
+ toolkitSlug: string;
29964
+ userId: string;
29873
29965
  triggerSlug: string;
29874
29966
  metadata: {
29875
- toolkitSlug: string;
29876
29967
  id: string;
29877
29968
  uuid: string;
29969
+ toolkitSlug: string;
29878
29970
  triggerSlug: string;
29879
29971
  triggerConfig: Record<string, unknown>;
29880
29972
  connectedAccount: {
29881
29973
  status: "ACTIVE" | "INACTIVE";
29882
- userId: string;
29883
29974
  id: string;
29884
29975
  uuid: string;
29976
+ userId: string;
29885
29977
  authConfigId: string;
29886
29978
  authConfigUUID: string;
29887
29979
  };
@@ -29890,22 +29982,22 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
29890
29982
  payload?: Record<string, unknown> | undefined;
29891
29983
  originalPayload?: Record<string, unknown> | undefined;
29892
29984
  }, {
29893
- toolkitSlug: string;
29894
- userId: string;
29895
29985
  id: string;
29896
29986
  uuid: string;
29987
+ toolkitSlug: string;
29988
+ userId: string;
29897
29989
  triggerSlug: string;
29898
29990
  metadata: {
29899
- toolkitSlug: string;
29900
29991
  id: string;
29901
29992
  uuid: string;
29993
+ toolkitSlug: string;
29902
29994
  triggerSlug: string;
29903
29995
  triggerConfig: Record<string, unknown>;
29904
29996
  connectedAccount: {
29905
29997
  status: "ACTIVE" | "INACTIVE";
29906
- userId: string;
29907
29998
  id: string;
29908
29999
  uuid: string;
30000
+ userId: string;
29909
30001
  authConfigId: string;
29910
30002
  authConfigUUID: string;
29911
30003
  };
@@ -29941,13 +30033,13 @@ declare const TriggersTypeListParamsSchema: z.ZodObject<{
29941
30033
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29942
30034
  toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
29943
30035
  }, "strip", z.ZodTypeAny, {
29944
- toolkits?: string[] | null | undefined;
29945
- limit?: number | null | undefined;
29946
30036
  cursor?: string | undefined;
29947
- }, {
29948
- toolkits?: string[] | null | undefined;
29949
30037
  limit?: number | null | undefined;
30038
+ toolkits?: string[] | null | undefined;
30039
+ }, {
29950
30040
  cursor?: string | undefined;
30041
+ limit?: number | null | undefined;
30042
+ toolkits?: string[] | null | undefined;
29951
30043
  }>;
29952
30044
  type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
29953
30045
  declare const TriggerTypeSchema: z.ZodObject<{
@@ -30212,8 +30304,8 @@ declare const WebhookPayloadV3Schema: z.ZodObject<{
30212
30304
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30213
30305
  }, "strip", z.ZodTypeAny, {
30214
30306
  type: "composio.trigger.message";
30215
- data: Record<string, unknown>;
30216
30307
  id: string;
30308
+ data: Record<string, unknown>;
30217
30309
  metadata: {
30218
30310
  trigger_id: string;
30219
30311
  log_id: string;
@@ -30225,8 +30317,8 @@ declare const WebhookPayloadV3Schema: z.ZodObject<{
30225
30317
  timestamp: string;
30226
30318
  }, {
30227
30319
  type: "composio.trigger.message";
30228
- data: Record<string, unknown>;
30229
30320
  id: string;
30321
+ data: Record<string, unknown>;
30230
30322
  metadata: {
30231
30323
  trigger_id: string;
30232
30324
  log_id: string;
@@ -30268,8 +30360,8 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
30268
30360
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30269
30361
  }, "strip", z.ZodTypeAny, {
30270
30362
  type: "composio.trigger.message";
30271
- data: Record<string, unknown>;
30272
30363
  id: string;
30364
+ data: Record<string, unknown>;
30273
30365
  metadata: {
30274
30366
  trigger_id: string;
30275
30367
  log_id: string;
@@ -30281,8 +30373,8 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
30281
30373
  timestamp: string;
30282
30374
  }, {
30283
30375
  type: "composio.trigger.message";
30284
- data: Record<string, unknown>;
30285
30376
  id: string;
30377
+ data: Record<string, unknown>;
30286
30378
  metadata: {
30287
30379
  trigger_id: string;
30288
30380
  log_id: string;
@@ -31096,16 +31188,16 @@ declare const MCPServerInstanceSchema: z$1.ZodObject<{
31096
31188
  }, "strip", z$1.ZodTypeAny, {
31097
31189
  name: string;
31098
31190
  type: "streamable_http";
31099
- userId: string;
31100
31191
  id: string;
31192
+ userId: string;
31101
31193
  allowedTools: string[];
31102
31194
  url: string;
31103
31195
  authConfigs: string[];
31104
31196
  }, {
31105
31197
  name: string;
31106
31198
  type: "streamable_http";
31107
- userId: string;
31108
31199
  id: string;
31200
+ userId: string;
31109
31201
  allowedTools: string[];
31110
31202
  url: string;
31111
31203
  authConfigs: string[];
@@ -31188,8 +31280,8 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
31188
31280
  MCPUrl: z$1.ZodString;
31189
31281
  }, "strip", z$1.ZodTypeAny, {
31190
31282
  name: string;
31191
- authConfigIds: string[];
31192
31283
  id: string;
31284
+ authConfigIds: string[];
31193
31285
  allowedTools: string[];
31194
31286
  commands: {
31195
31287
  cursor: string;
@@ -31199,8 +31291,8 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
31199
31291
  MCPUrl: string;
31200
31292
  }, {
31201
31293
  name: string;
31202
- authConfigIds: string[];
31203
31294
  id: string;
31295
+ authConfigIds: string[];
31204
31296
  allowedTools: string[];
31205
31297
  commands: {
31206
31298
  cursor: string;
@@ -31233,15 +31325,15 @@ declare const MCPListParamsSchema: z$1.ZodObject<{
31233
31325
  authConfigs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>>;
31234
31326
  name: z$1.ZodOptional<z$1.ZodString>;
31235
31327
  }, "strip", z$1.ZodTypeAny, {
31236
- toolkits: string[];
31237
31328
  limit: number;
31329
+ toolkits: string[];
31238
31330
  page: number;
31239
31331
  authConfigs: string[];
31240
31332
  name?: string | undefined;
31241
31333
  }, {
31242
31334
  name?: string | undefined;
31243
- toolkits?: string[] | undefined;
31244
31335
  limit?: number | undefined;
31336
+ toolkits?: string[] | undefined;
31245
31337
  page?: number | undefined;
31246
31338
  authConfigs?: string[] | undefined;
31247
31339
  }>;
@@ -31298,9 +31390,9 @@ declare const MCPItemSchema: z$1.ZodObject<{
31298
31390
  toolkits: z$1.ZodArray<z$1.ZodString, "many">;
31299
31391
  }, "strip", z$1.ZodTypeAny, {
31300
31392
  name: string;
31393
+ id: string;
31301
31394
  toolkits: string[];
31302
31395
  authConfigIds: string[];
31303
- id: string;
31304
31396
  allowedTools: string[];
31305
31397
  commands: {
31306
31398
  cursor: string;
@@ -31312,9 +31404,9 @@ declare const MCPItemSchema: z$1.ZodObject<{
31312
31404
  serverInstanceCount: number;
31313
31405
  }, {
31314
31406
  name: string;
31407
+ id: string;
31315
31408
  toolkits: string[];
31316
31409
  authConfigIds: string[];
31317
- id: string;
31318
31410
  allowedTools: string[];
31319
31411
  commands: {
31320
31412
  cursor: string;
@@ -31379,9 +31471,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
31379
31471
  toolkits: z$1.ZodArray<z$1.ZodString, "many">;
31380
31472
  }, "strip", z$1.ZodTypeAny, {
31381
31473
  name: string;
31474
+ id: string;
31382
31475
  toolkits: string[];
31383
31476
  authConfigIds: string[];
31384
- id: string;
31385
31477
  allowedTools: string[];
31386
31478
  commands: {
31387
31479
  cursor: string;
@@ -31393,9 +31485,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
31393
31485
  serverInstanceCount: number;
31394
31486
  }, {
31395
31487
  name: string;
31488
+ id: string;
31396
31489
  toolkits: string[];
31397
31490
  authConfigIds: string[];
31398
- id: string;
31399
31491
  allowedTools: string[];
31400
31492
  commands: {
31401
31493
  cursor: string;
@@ -31411,9 +31503,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
31411
31503
  }, "strip", z$1.ZodTypeAny, {
31412
31504
  items: {
31413
31505
  name: string;
31506
+ id: string;
31414
31507
  toolkits: string[];
31415
31508
  authConfigIds: string[];
31416
- id: string;
31417
31509
  allowedTools: string[];
31418
31510
  commands: {
31419
31511
  cursor: string;
@@ -31429,9 +31521,9 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
31429
31521
  }, {
31430
31522
  items: {
31431
31523
  name: string;
31524
+ id: string;
31432
31525
  toolkits: string[];
31433
31526
  authConfigIds: string[];
31434
- id: string;
31435
31527
  allowedTools: string[];
31436
31528
  commands: {
31437
31529
  cursor: string;
@@ -32594,15 +32686,15 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
32594
32686
  isConnected: z$1.ZodOptional<z$1.ZodBoolean>;
32595
32687
  search: z$1.ZodOptional<z$1.ZodString>;
32596
32688
  }, "strip", z$1.ZodTypeAny, {
32689
+ limit?: number | undefined;
32597
32690
  nextCursor?: string | undefined;
32598
32691
  toolkits?: string[] | undefined;
32599
- limit?: number | undefined;
32600
32692
  search?: string | undefined;
32601
32693
  isConnected?: boolean | undefined;
32602
32694
  }, {
32695
+ limit?: number | undefined;
32603
32696
  nextCursor?: string | undefined;
32604
32697
  toolkits?: string[] | undefined;
32605
- limit?: number | undefined;
32606
32698
  search?: string | undefined;
32607
32699
  isConnected?: boolean | undefined;
32608
32700
  }>;
@@ -32977,6 +33069,34 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
32977
33069
  createSession(options?: {
32978
33070
  headers?: ComposioRequestHeaders;
32979
33071
  }): Composio<TProvider>;
33072
+ /**
33073
+ * Flush any pending telemetry and wait for it to complete.
33074
+ *
33075
+ * In Node.js-compatible environments, telemetry is automatically flushed on process exit.
33076
+ * However, in environments like Cloudflare Workers that don't support process exit events,
33077
+ * you should call this method manually to ensure all telemetry is sent.
33078
+ *
33079
+ * @returns {Promise<void>} A promise that resolves when all pending telemetry has been sent.
33080
+ *
33081
+ * @example
33082
+ * ```typescript
33083
+ * // In a Cloudflare Worker, use ctx.waitUntil to ensure telemetry is flushed
33084
+ * export default {
33085
+ * async fetch(request: Request, env: Env, ctx: ExecutionContext) {
33086
+ * const composio = new Composio({ apiKey: env.COMPOSIO_API_KEY });
33087
+ *
33088
+ * // Do your work...
33089
+ * const result = await composio.tools.execute(...);
33090
+ *
33091
+ * // Ensure telemetry flushes before worker terminates
33092
+ * ctx.waitUntil(composio.flush());
33093
+ *
33094
+ * return new Response(JSON.stringify(result));
33095
+ * }
33096
+ * };
33097
+ * ```
33098
+ */
33099
+ flush(): Promise<void>;
32980
33100
  }
32981
33101
  //#endregion
32982
33102
  //#region src/provider/ComposioProvider.d.ts