@composio/core 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/{CustomTool-CB5vm1Jc.d.mts → CustomTool-B3m-188G.d.mts} +1 -1
  2. package/dist/{CustomTool-BMlZfJVz.mjs → CustomTool-fYEFjSLM.mjs} +1 -1
  3. package/dist/{FileModifierErrors-BqFmpRsm.mjs → FileModifierErrors-CdGSABoq.mjs} +1 -1
  4. package/dist/{SsrfErrors-C91YhASE.mjs → SsrfErrors-DiQldIdC.mjs} +18 -7
  5. package/dist/{Telemetry-HlftxMx6.mjs → Telemetry-JRJJYS4I.mjs} +2 -2
  6. package/dist/{cancellation-CXpfmiVo.mjs → cancellation-Dwa9lGHA.mjs} +2 -2
  7. package/dist/{composio-DLGaeN70.d.mts → composio-B36OXii1.d.mts} +2691 -119
  8. package/dist/{customTool.types-BAmEh3MB.d.mts → customTool.types-C436M_D0.d.mts} +431 -98
  9. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +10 -10
  10. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +5 -2
  11. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +101 -18
  12. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +123 -0
  13. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +9 -2
  14. package/dist/docs/reference/sdk-reference/typescript/index.mdx +7 -0
  15. package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +56 -0
  16. package/dist/docs/reference/sdk-reference/typescript/logs.mdx +78 -0
  17. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +15 -15
  18. package/dist/docs/reference/sdk-reference/typescript/meta.json +8 -1
  19. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +10 -10
  20. package/dist/docs/reference/sdk-reference/typescript/session.mdx +77 -27
  21. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +24 -10
  22. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +149 -12
  23. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +18 -18
  24. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +25 -25
  25. package/dist/docs/reference/sdk-reference/typescript/usage.mdx +78 -0
  26. package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +162 -0
  27. package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +218 -0
  28. package/dist/docs/reference/sdk-reference/typescript/webhooks.mdx +20 -0
  29. package/dist/{errors-BuEKehbI.mjs → errors-D_A4b2c2.mjs} +123 -4
  30. package/dist/experimental/index.d.mts +2 -2
  31. package/dist/experimental/index.mjs +1 -1
  32. package/dist/{fileUtils.node-L7XD8UPr.mjs → fileUtils.node-DNLhLg0W.mjs} +4 -4
  33. package/dist/index.d.mts +264 -51
  34. package/dist/index.mjs +2338 -168
  35. package/dist/models/Files.node.mjs +2 -2
  36. package/dist/{sensitiveFileUploadPaths-B6pBt9lO.mjs → sensitiveFileUploadPaths-BlLp-Yo2.mjs} +1 -1
  37. package/dist/{ssrfGuard.node-B9xQB4za.mjs → ssrfGuard.node-BZ270bcu.mjs} +1 -1
  38. package/dist/{types-CxLPO0Xq.d.mts → types-Br3GBya5.d.mts} +2 -2
  39. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  40. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  41. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  42. package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -5
  43. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  44. package/dist/utils/ssrfGuard.node.mjs +1 -1
  45. package/dist/utils/ssrfGuard.workerd.mjs +1 -1
  46. package/package.json +2 -2
  47. package/src/composio.ts +207 -10
  48. package/src/errors/ConnectedAccountsErrors.ts +47 -0
  49. package/src/errors/SDKErrors.ts +52 -0
  50. package/src/errors/ToolRouterErrors.ts +57 -0
  51. package/src/errors/index.ts +3 -0
  52. package/src/index.ts +11 -0
  53. package/src/lib/toolRouterMcp.ts +132 -0
  54. package/src/lib/toolRouterParams.ts +116 -29
  55. package/src/models/ConnectedAccounts.ts +118 -2
  56. package/src/models/CustomToolkits.ts +169 -0
  57. package/src/models/Experimental.ts +27 -0
  58. package/src/models/Keyring.ts +65 -0
  59. package/src/models/Logs.ts +101 -0
  60. package/src/models/ToolRouter.ts +42 -14
  61. package/src/models/ToolRouterSession.ts +120 -9
  62. package/src/models/Toolkits.ts +180 -0
  63. package/src/models/Tools.ts +3 -1
  64. package/src/models/Triggers.ts +3 -88
  65. package/src/models/Usage.ts +119 -0
  66. package/src/models/Webhooks.ts +520 -0
  67. package/src/services/pusher/Pusher.ts +17 -6
  68. package/src/types/authConfigs.types.ts +2 -0
  69. package/src/types/connectedAccounts.types.ts +54 -0
  70. package/src/types/customToolkits.types.ts +102 -0
  71. package/src/types/keyring.types.ts +32 -0
  72. package/src/types/logs.types.ts +108 -0
  73. package/src/types/toolRouter.types.ts +205 -11
  74. package/src/types/toolkit.types.ts +144 -0
  75. package/src/types/usage.types.ts +81 -0
  76. package/src/types/webhooks.types.ts +143 -0
  77. package/src/utils/constants.ts +1 -5
  78. package/src/utils/logger.ts +39 -7
  79. package/src/utils/sdk.ts +385 -22
  80. package/src/utils/transformers/connectedAccounts.ts +37 -2
  81. package/src/utils/transformers/customToolkits.ts +98 -0
  82. package/src/utils/transformers/keyring.ts +24 -0
  83. package/src/utils/transformers/logs.ts +85 -0
  84. package/src/utils/transformers/toolkits.ts +106 -3
  85. package/src/utils/transformers/triggers.ts +2 -2
  86. package/src/utils/transformers/usage.ts +77 -0
  87. package/src/utils/transformers/webhooks.ts +139 -0
@@ -1,4 +1,4 @@
1
- import { $i as Tool, Br as ExecuteToolFnOptions, D as Session, Ii as ExecuteToolModifiers, Ir as McpUrlResponse, J as ToolRouterSessionDeleteResponse, Kt as ComposioRequestOptions, Ln as BaseComposioProvider, M as SessionWithoutMcp, Mn as UpdateConnectedAccountAclParams, Pn as UpdateConnectedAccountParams, Qi as SchemaModifierOptions, Ri as ProviderOptions, Rn as BaseNonAgenticProvider, Tn as CreateConnectedAccountOptions, Wr as ToolCallSession, an as ConnectedAccountListParams, ba as ToolkitVersionParam, da as ToolProxyParams, ea as ToolExecuteMetaParams, f as CustomToolkit, fn as ConnectedAccountRetrieveResponse, ia as ToolExecuteResponse, jr as McpServerGetResponse, na as ToolExecuteParams, o as CustomTool, oa as ToolList, pa as ToolRetrievalOptions, qt as ConnectionRequest, sa as ToolListParams, sn as ConnectedAccountListResponse, un as ConnectedAccountRefreshOptions, xn as CreateConnectedAccountLinkOptions, z as ToolRouterCreateSessionConfig, zi as SessionExecuteMetaModifiers } from "./customTool.types-BAmEh3MB.mjs";
1
+ import { D as Session, En as ConnectedAccountRetrieveResponse, M as SessionWithoutMcp, On as ConnectedAccountRevokeResponse, Qn as UpdateConnectedAccountParams, Ra as ToolkitVersionParam, Sa as ToolExecuteResponse, Ta as ToolListParams, Un as CreateConnectedAccountOptions, X as ToolRouterSessionDeleteResponse, Xn as UpdateConnectedAccountAclParams, Yr as McpServerGetResponse, _a as Tool, ba as ToolExecuteParams, ci as ToolCallSession, dn as ConnectedAccountCompleteAuthParams, ea as ExecuteToolModifiers, ei as McpUrlResponse, f as CustomToolkit, ga as SchemaModifierOptions, ii as ExecuteToolFnOptions, ja as ToolRetrievalOptions, ka as ToolProxyParams, na as ProviderOptions, nn as ComposioRequestOptions, nr as BaseNonAgenticProvider, o as CustomTool, pn as ConnectedAccountCompleteAuthResponse, ra as SessionExecuteMetaModifiers, rn as ConnectionRequest, tr as BaseComposioProvider, va as ToolExecuteMetaParams, wa as ToolList, wn as ConnectedAccountRefreshOptions, xn as ConnectedAccountListResponse, yn as ConnectedAccountListParams, z as ToolRouterCreateSessionConfig, zn as CreateConnectedAccountLinkOptions } from "./customTool.types-C436M_D0.mjs";
2
2
  import ComposioClient, { Composio } from "@composio/client";
3
3
  import z, { z as z$1 } from "zod/v3";
4
4
  import { Files } from "#files";
@@ -558,6 +558,31 @@ declare const ToolkitsListParamsSchema: z$1.ZodObject<{
558
558
  type ToolkitMangedByEnum = z$1.infer<typeof ToolkitMangedByEnumSchema>;
559
559
  type ToolkitSortByEnum = z$1.infer<typeof ToolkitSortByEnumSchema>;
560
560
  type ToolkitListParams = z$1.infer<typeof ToolkitsListParamsSchema>;
561
+ /**
562
+ * Toolkit getMany params — the slugs to fetch plus the same filters `list`
563
+ * accepts.
564
+ */
565
+ declare const ToolkitGetManySlugsSchema: z$1.ZodArray<z$1.ZodString, "many">;
566
+ declare const ToolkitsGetManyParamsSchema: z$1.ZodObject<{
567
+ category: z$1.ZodOptional<z$1.ZodString>;
568
+ managedBy: z$1.ZodOptional<z$1.ZodEnum<["all", "composio", "project"]>>;
569
+ sortBy: z$1.ZodOptional<z$1.ZodEnum<["usage", "alphabetically"]>>;
570
+ cursor: z$1.ZodOptional<z$1.ZodString>;
571
+ limit: z$1.ZodOptional<z$1.ZodNumber>;
572
+ }, "strip", z$1.ZodTypeAny, {
573
+ limit?: number | undefined;
574
+ cursor?: string | undefined;
575
+ category?: string | undefined;
576
+ managedBy?: "all" | "composio" | "project" | undefined;
577
+ sortBy?: "usage" | "alphabetically" | undefined;
578
+ }, {
579
+ limit?: number | undefined;
580
+ cursor?: string | undefined;
581
+ category?: string | undefined;
582
+ managedBy?: "all" | "composio" | "project" | undefined;
583
+ sortBy?: "usage" | "alphabetically" | undefined;
584
+ }>;
585
+ type ToolkitGetManyParams = z$1.infer<typeof ToolkitsGetManyParamsSchema>;
561
586
  /**
562
587
  * Toolkits response
563
588
  */
@@ -824,6 +849,13 @@ declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
824
849
  * further documenting its semantics.
825
850
  */
826
851
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
852
+ /**
853
+ * Whether the hosted connect flow shows this field to the end user, mapped
854
+ * from `user_visible`. A field with `false` is never required: its `default`
855
+ * applies unless the auth config supplies a value. Absent when the API omits
856
+ * the flag.
857
+ */
858
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
827
859
  }, "strip", z$1.ZodTypeAny, {
828
860
  name: string;
829
861
  type: string;
@@ -833,6 +865,7 @@ declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
833
865
  default?: string | null | undefined;
834
866
  isSecret?: boolean | undefined;
835
867
  legacyTemplateName?: string | undefined;
868
+ userVisible?: boolean | undefined;
836
869
  }, {
837
870
  name: string;
838
871
  type: string;
@@ -842,6 +875,7 @@ declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
842
875
  default?: string | null | undefined;
843
876
  isSecret?: boolean | undefined;
844
877
  legacyTemplateName?: string | undefined;
878
+ userVisible?: boolean | undefined;
845
879
  }>;
846
880
  declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
847
881
  name: z$1.ZodString;
@@ -851,6 +885,12 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
851
885
  * authentication method, e.g. `https://github.com/settings/tokens`.
852
886
  */
853
887
  authHintUrl: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
888
+ /**
889
+ * OAuth scopes always requested for this auth method regardless of the
890
+ * tool-specific scopes, such as token refresh (`offline_access`) and identity
891
+ * scopes. Mapped from `required_scopes`; absent when the API omits it.
892
+ */
893
+ requiredScopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
854
894
  fields: z$1.ZodObject<{
855
895
  authConfigCreation: z$1.ZodObject<{
856
896
  optional: z$1.ZodArray<z$1.ZodObject<{
@@ -872,6 +912,13 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
872
912
  * further documenting its semantics.
873
913
  */
874
914
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
915
+ /**
916
+ * Whether the hosted connect flow shows this field to the end user, mapped
917
+ * from `user_visible`. A field with `false` is never required: its `default`
918
+ * applies unless the auth config supplies a value. Absent when the API omits
919
+ * the flag.
920
+ */
921
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
875
922
  }, "strip", z$1.ZodTypeAny, {
876
923
  name: string;
877
924
  type: string;
@@ -881,6 +928,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
881
928
  default?: string | null | undefined;
882
929
  isSecret?: boolean | undefined;
883
930
  legacyTemplateName?: string | undefined;
931
+ userVisible?: boolean | undefined;
884
932
  }, {
885
933
  name: string;
886
934
  type: string;
@@ -890,6 +938,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
890
938
  default?: string | null | undefined;
891
939
  isSecret?: boolean | undefined;
892
940
  legacyTemplateName?: string | undefined;
941
+ userVisible?: boolean | undefined;
893
942
  }>, "many">;
894
943
  required: z$1.ZodArray<z$1.ZodObject<{
895
944
  description: z$1.ZodString;
@@ -910,6 +959,13 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
910
959
  * further documenting its semantics.
911
960
  */
912
961
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
962
+ /**
963
+ * Whether the hosted connect flow shows this field to the end user, mapped
964
+ * from `user_visible`. A field with `false` is never required: its `default`
965
+ * applies unless the auth config supplies a value. Absent when the API omits
966
+ * the flag.
967
+ */
968
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
913
969
  }, "strip", z$1.ZodTypeAny, {
914
970
  name: string;
915
971
  type: string;
@@ -919,6 +975,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
919
975
  default?: string | null | undefined;
920
976
  isSecret?: boolean | undefined;
921
977
  legacyTemplateName?: string | undefined;
978
+ userVisible?: boolean | undefined;
922
979
  }, {
923
980
  name: string;
924
981
  type: string;
@@ -928,6 +985,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
928
985
  default?: string | null | undefined;
929
986
  isSecret?: boolean | undefined;
930
987
  legacyTemplateName?: string | undefined;
988
+ userVisible?: boolean | undefined;
931
989
  }>, "many">;
932
990
  }, "strip", z$1.ZodTypeAny, {
933
991
  required: {
@@ -939,6 +997,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
939
997
  default?: string | null | undefined;
940
998
  isSecret?: boolean | undefined;
941
999
  legacyTemplateName?: string | undefined;
1000
+ userVisible?: boolean | undefined;
942
1001
  }[];
943
1002
  optional: {
944
1003
  name: string;
@@ -949,6 +1008,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
949
1008
  default?: string | null | undefined;
950
1009
  isSecret?: boolean | undefined;
951
1010
  legacyTemplateName?: string | undefined;
1011
+ userVisible?: boolean | undefined;
952
1012
  }[];
953
1013
  }, {
954
1014
  required: {
@@ -960,6 +1020,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
960
1020
  default?: string | null | undefined;
961
1021
  isSecret?: boolean | undefined;
962
1022
  legacyTemplateName?: string | undefined;
1023
+ userVisible?: boolean | undefined;
963
1024
  }[];
964
1025
  optional: {
965
1026
  name: string;
@@ -970,6 +1031,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
970
1031
  default?: string | null | undefined;
971
1032
  isSecret?: boolean | undefined;
972
1033
  legacyTemplateName?: string | undefined;
1034
+ userVisible?: boolean | undefined;
973
1035
  }[];
974
1036
  }>;
975
1037
  connectedAccountInitiation: z$1.ZodObject<{
@@ -992,6 +1054,13 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
992
1054
  * further documenting its semantics.
993
1055
  */
994
1056
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1057
+ /**
1058
+ * Whether the hosted connect flow shows this field to the end user, mapped
1059
+ * from `user_visible`. A field with `false` is never required: its `default`
1060
+ * applies unless the auth config supplies a value. Absent when the API omits
1061
+ * the flag.
1062
+ */
1063
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
995
1064
  }, "strip", z$1.ZodTypeAny, {
996
1065
  name: string;
997
1066
  type: string;
@@ -1001,6 +1070,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1001
1070
  default?: string | null | undefined;
1002
1071
  isSecret?: boolean | undefined;
1003
1072
  legacyTemplateName?: string | undefined;
1073
+ userVisible?: boolean | undefined;
1004
1074
  }, {
1005
1075
  name: string;
1006
1076
  type: string;
@@ -1010,6 +1080,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1010
1080
  default?: string | null | undefined;
1011
1081
  isSecret?: boolean | undefined;
1012
1082
  legacyTemplateName?: string | undefined;
1083
+ userVisible?: boolean | undefined;
1013
1084
  }>, "many">;
1014
1085
  required: z$1.ZodArray<z$1.ZodObject<{
1015
1086
  description: z$1.ZodString;
@@ -1030,6 +1101,13 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1030
1101
  * further documenting its semantics.
1031
1102
  */
1032
1103
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1104
+ /**
1105
+ * Whether the hosted connect flow shows this field to the end user, mapped
1106
+ * from `user_visible`. A field with `false` is never required: its `default`
1107
+ * applies unless the auth config supplies a value. Absent when the API omits
1108
+ * the flag.
1109
+ */
1110
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
1033
1111
  }, "strip", z$1.ZodTypeAny, {
1034
1112
  name: string;
1035
1113
  type: string;
@@ -1039,6 +1117,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1039
1117
  default?: string | null | undefined;
1040
1118
  isSecret?: boolean | undefined;
1041
1119
  legacyTemplateName?: string | undefined;
1120
+ userVisible?: boolean | undefined;
1042
1121
  }, {
1043
1122
  name: string;
1044
1123
  type: string;
@@ -1048,6 +1127,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1048
1127
  default?: string | null | undefined;
1049
1128
  isSecret?: boolean | undefined;
1050
1129
  legacyTemplateName?: string | undefined;
1130
+ userVisible?: boolean | undefined;
1051
1131
  }>, "many">;
1052
1132
  }, "strip", z$1.ZodTypeAny, {
1053
1133
  required: {
@@ -1059,6 +1139,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1059
1139
  default?: string | null | undefined;
1060
1140
  isSecret?: boolean | undefined;
1061
1141
  legacyTemplateName?: string | undefined;
1142
+ userVisible?: boolean | undefined;
1062
1143
  }[];
1063
1144
  optional: {
1064
1145
  name: string;
@@ -1069,6 +1150,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1069
1150
  default?: string | null | undefined;
1070
1151
  isSecret?: boolean | undefined;
1071
1152
  legacyTemplateName?: string | undefined;
1153
+ userVisible?: boolean | undefined;
1072
1154
  }[];
1073
1155
  }, {
1074
1156
  required: {
@@ -1080,6 +1162,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1080
1162
  default?: string | null | undefined;
1081
1163
  isSecret?: boolean | undefined;
1082
1164
  legacyTemplateName?: string | undefined;
1165
+ userVisible?: boolean | undefined;
1083
1166
  }[];
1084
1167
  optional: {
1085
1168
  name: string;
@@ -1090,6 +1173,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1090
1173
  default?: string | null | undefined;
1091
1174
  isSecret?: boolean | undefined;
1092
1175
  legacyTemplateName?: string | undefined;
1176
+ userVisible?: boolean | undefined;
1093
1177
  }[];
1094
1178
  }>;
1095
1179
  }, "strip", z$1.ZodTypeAny, {
@@ -1103,6 +1187,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1103
1187
  default?: string | null | undefined;
1104
1188
  isSecret?: boolean | undefined;
1105
1189
  legacyTemplateName?: string | undefined;
1190
+ userVisible?: boolean | undefined;
1106
1191
  }[];
1107
1192
  optional: {
1108
1193
  name: string;
@@ -1113,6 +1198,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1113
1198
  default?: string | null | undefined;
1114
1199
  isSecret?: boolean | undefined;
1115
1200
  legacyTemplateName?: string | undefined;
1201
+ userVisible?: boolean | undefined;
1116
1202
  }[];
1117
1203
  };
1118
1204
  connectedAccountInitiation: {
@@ -1125,6 +1211,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1125
1211
  default?: string | null | undefined;
1126
1212
  isSecret?: boolean | undefined;
1127
1213
  legacyTemplateName?: string | undefined;
1214
+ userVisible?: boolean | undefined;
1128
1215
  }[];
1129
1216
  optional: {
1130
1217
  name: string;
@@ -1135,6 +1222,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1135
1222
  default?: string | null | undefined;
1136
1223
  isSecret?: boolean | undefined;
1137
1224
  legacyTemplateName?: string | undefined;
1225
+ userVisible?: boolean | undefined;
1138
1226
  }[];
1139
1227
  };
1140
1228
  }, {
@@ -1148,6 +1236,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1148
1236
  default?: string | null | undefined;
1149
1237
  isSecret?: boolean | undefined;
1150
1238
  legacyTemplateName?: string | undefined;
1239
+ userVisible?: boolean | undefined;
1151
1240
  }[];
1152
1241
  optional: {
1153
1242
  name: string;
@@ -1158,6 +1247,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1158
1247
  default?: string | null | undefined;
1159
1248
  isSecret?: boolean | undefined;
1160
1249
  legacyTemplateName?: string | undefined;
1250
+ userVisible?: boolean | undefined;
1161
1251
  }[];
1162
1252
  };
1163
1253
  connectedAccountInitiation: {
@@ -1170,6 +1260,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1170
1260
  default?: string | null | undefined;
1171
1261
  isSecret?: boolean | undefined;
1172
1262
  legacyTemplateName?: string | undefined;
1263
+ userVisible?: boolean | undefined;
1173
1264
  }[];
1174
1265
  optional: {
1175
1266
  name: string;
@@ -1180,6 +1271,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1180
1271
  default?: string | null | undefined;
1181
1272
  isSecret?: boolean | undefined;
1182
1273
  legacyTemplateName?: string | undefined;
1274
+ userVisible?: boolean | undefined;
1183
1275
  }[];
1184
1276
  };
1185
1277
  }>;
@@ -1204,6 +1296,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1204
1296
  default?: string | null | undefined;
1205
1297
  isSecret?: boolean | undefined;
1206
1298
  legacyTemplateName?: string | undefined;
1299
+ userVisible?: boolean | undefined;
1207
1300
  }[];
1208
1301
  optional: {
1209
1302
  name: string;
@@ -1214,6 +1307,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1214
1307
  default?: string | null | undefined;
1215
1308
  isSecret?: boolean | undefined;
1216
1309
  legacyTemplateName?: string | undefined;
1310
+ userVisible?: boolean | undefined;
1217
1311
  }[];
1218
1312
  };
1219
1313
  connectedAccountInitiation: {
@@ -1226,6 +1320,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1226
1320
  default?: string | null | undefined;
1227
1321
  isSecret?: boolean | undefined;
1228
1322
  legacyTemplateName?: string | undefined;
1323
+ userVisible?: boolean | undefined;
1229
1324
  }[];
1230
1325
  optional: {
1231
1326
  name: string;
@@ -1236,10 +1331,12 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1236
1331
  default?: string | null | undefined;
1237
1332
  isSecret?: boolean | undefined;
1238
1333
  legacyTemplateName?: string | undefined;
1334
+ userVisible?: boolean | undefined;
1239
1335
  }[];
1240
1336
  };
1241
1337
  };
1242
1338
  authHintUrl?: string | null | undefined;
1339
+ requiredScopes?: string[] | undefined;
1243
1340
  proxy?: {
1244
1341
  baseUrl?: string | undefined;
1245
1342
  } | undefined;
@@ -1257,6 +1354,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1257
1354
  default?: string | null | undefined;
1258
1355
  isSecret?: boolean | undefined;
1259
1356
  legacyTemplateName?: string | undefined;
1357
+ userVisible?: boolean | undefined;
1260
1358
  }[];
1261
1359
  optional: {
1262
1360
  name: string;
@@ -1267,6 +1365,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1267
1365
  default?: string | null | undefined;
1268
1366
  isSecret?: boolean | undefined;
1269
1367
  legacyTemplateName?: string | undefined;
1368
+ userVisible?: boolean | undefined;
1270
1369
  }[];
1271
1370
  };
1272
1371
  connectedAccountInitiation: {
@@ -1279,6 +1378,7 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1279
1378
  default?: string | null | undefined;
1280
1379
  isSecret?: boolean | undefined;
1281
1380
  legacyTemplateName?: string | undefined;
1381
+ userVisible?: boolean | undefined;
1282
1382
  }[];
1283
1383
  optional: {
1284
1384
  name: string;
@@ -1289,10 +1389,12 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1289
1389
  default?: string | null | undefined;
1290
1390
  isSecret?: boolean | undefined;
1291
1391
  legacyTemplateName?: string | undefined;
1392
+ userVisible?: boolean | undefined;
1292
1393
  }[];
1293
1394
  };
1294
1395
  };
1295
1396
  authHintUrl?: string | null | undefined;
1397
+ requiredScopes?: string[] | undefined;
1296
1398
  proxy?: {
1297
1399
  baseUrl?: string | undefined;
1298
1400
  } | undefined;
@@ -1356,6 +1458,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1356
1458
  * authentication method, e.g. `https://github.com/settings/tokens`.
1357
1459
  */
1358
1460
  authHintUrl: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1461
+ /**
1462
+ * OAuth scopes always requested for this auth method regardless of the
1463
+ * tool-specific scopes, such as token refresh (`offline_access`) and identity
1464
+ * scopes. Mapped from `required_scopes`; absent when the API omits it.
1465
+ */
1466
+ requiredScopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1359
1467
  fields: z$1.ZodObject<{
1360
1468
  authConfigCreation: z$1.ZodObject<{
1361
1469
  optional: z$1.ZodArray<z$1.ZodObject<{
@@ -1377,6 +1485,13 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1377
1485
  * further documenting its semantics.
1378
1486
  */
1379
1487
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1488
+ /**
1489
+ * Whether the hosted connect flow shows this field to the end user, mapped
1490
+ * from `user_visible`. A field with `false` is never required: its `default`
1491
+ * applies unless the auth config supplies a value. Absent when the API omits
1492
+ * the flag.
1493
+ */
1494
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
1380
1495
  }, "strip", z$1.ZodTypeAny, {
1381
1496
  name: string;
1382
1497
  type: string;
@@ -1386,6 +1501,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1386
1501
  default?: string | null | undefined;
1387
1502
  isSecret?: boolean | undefined;
1388
1503
  legacyTemplateName?: string | undefined;
1504
+ userVisible?: boolean | undefined;
1389
1505
  }, {
1390
1506
  name: string;
1391
1507
  type: string;
@@ -1395,6 +1511,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1395
1511
  default?: string | null | undefined;
1396
1512
  isSecret?: boolean | undefined;
1397
1513
  legacyTemplateName?: string | undefined;
1514
+ userVisible?: boolean | undefined;
1398
1515
  }>, "many">;
1399
1516
  required: z$1.ZodArray<z$1.ZodObject<{
1400
1517
  description: z$1.ZodString;
@@ -1415,6 +1532,13 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1415
1532
  * further documenting its semantics.
1416
1533
  */
1417
1534
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1535
+ /**
1536
+ * Whether the hosted connect flow shows this field to the end user, mapped
1537
+ * from `user_visible`. A field with `false` is never required: its `default`
1538
+ * applies unless the auth config supplies a value. Absent when the API omits
1539
+ * the flag.
1540
+ */
1541
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
1418
1542
  }, "strip", z$1.ZodTypeAny, {
1419
1543
  name: string;
1420
1544
  type: string;
@@ -1424,6 +1548,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1424
1548
  default?: string | null | undefined;
1425
1549
  isSecret?: boolean | undefined;
1426
1550
  legacyTemplateName?: string | undefined;
1551
+ userVisible?: boolean | undefined;
1427
1552
  }, {
1428
1553
  name: string;
1429
1554
  type: string;
@@ -1433,6 +1558,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1433
1558
  default?: string | null | undefined;
1434
1559
  isSecret?: boolean | undefined;
1435
1560
  legacyTemplateName?: string | undefined;
1561
+ userVisible?: boolean | undefined;
1436
1562
  }>, "many">;
1437
1563
  }, "strip", z$1.ZodTypeAny, {
1438
1564
  required: {
@@ -1444,6 +1570,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1444
1570
  default?: string | null | undefined;
1445
1571
  isSecret?: boolean | undefined;
1446
1572
  legacyTemplateName?: string | undefined;
1573
+ userVisible?: boolean | undefined;
1447
1574
  }[];
1448
1575
  optional: {
1449
1576
  name: string;
@@ -1454,6 +1581,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1454
1581
  default?: string | null | undefined;
1455
1582
  isSecret?: boolean | undefined;
1456
1583
  legacyTemplateName?: string | undefined;
1584
+ userVisible?: boolean | undefined;
1457
1585
  }[];
1458
1586
  }, {
1459
1587
  required: {
@@ -1465,6 +1593,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1465
1593
  default?: string | null | undefined;
1466
1594
  isSecret?: boolean | undefined;
1467
1595
  legacyTemplateName?: string | undefined;
1596
+ userVisible?: boolean | undefined;
1468
1597
  }[];
1469
1598
  optional: {
1470
1599
  name: string;
@@ -1475,6 +1604,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1475
1604
  default?: string | null | undefined;
1476
1605
  isSecret?: boolean | undefined;
1477
1606
  legacyTemplateName?: string | undefined;
1607
+ userVisible?: boolean | undefined;
1478
1608
  }[];
1479
1609
  }>;
1480
1610
  connectedAccountInitiation: z$1.ZodObject<{
@@ -1497,6 +1627,13 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1497
1627
  * further documenting its semantics.
1498
1628
  */
1499
1629
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1630
+ /**
1631
+ * Whether the hosted connect flow shows this field to the end user, mapped
1632
+ * from `user_visible`. A field with `false` is never required: its `default`
1633
+ * applies unless the auth config supplies a value. Absent when the API omits
1634
+ * the flag.
1635
+ */
1636
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
1500
1637
  }, "strip", z$1.ZodTypeAny, {
1501
1638
  name: string;
1502
1639
  type: string;
@@ -1506,6 +1643,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1506
1643
  default?: string | null | undefined;
1507
1644
  isSecret?: boolean | undefined;
1508
1645
  legacyTemplateName?: string | undefined;
1646
+ userVisible?: boolean | undefined;
1509
1647
  }, {
1510
1648
  name: string;
1511
1649
  type: string;
@@ -1515,6 +1653,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1515
1653
  default?: string | null | undefined;
1516
1654
  isSecret?: boolean | undefined;
1517
1655
  legacyTemplateName?: string | undefined;
1656
+ userVisible?: boolean | undefined;
1518
1657
  }>, "many">;
1519
1658
  required: z$1.ZodArray<z$1.ZodObject<{
1520
1659
  description: z$1.ZodString;
@@ -1535,6 +1674,13 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1535
1674
  * further documenting its semantics.
1536
1675
  */
1537
1676
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1677
+ /**
1678
+ * Whether the hosted connect flow shows this field to the end user, mapped
1679
+ * from `user_visible`. A field with `false` is never required: its `default`
1680
+ * applies unless the auth config supplies a value. Absent when the API omits
1681
+ * the flag.
1682
+ */
1683
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
1538
1684
  }, "strip", z$1.ZodTypeAny, {
1539
1685
  name: string;
1540
1686
  type: string;
@@ -1544,6 +1690,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1544
1690
  default?: string | null | undefined;
1545
1691
  isSecret?: boolean | undefined;
1546
1692
  legacyTemplateName?: string | undefined;
1693
+ userVisible?: boolean | undefined;
1547
1694
  }, {
1548
1695
  name: string;
1549
1696
  type: string;
@@ -1553,6 +1700,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1553
1700
  default?: string | null | undefined;
1554
1701
  isSecret?: boolean | undefined;
1555
1702
  legacyTemplateName?: string | undefined;
1703
+ userVisible?: boolean | undefined;
1556
1704
  }>, "many">;
1557
1705
  }, "strip", z$1.ZodTypeAny, {
1558
1706
  required: {
@@ -1564,6 +1712,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1564
1712
  default?: string | null | undefined;
1565
1713
  isSecret?: boolean | undefined;
1566
1714
  legacyTemplateName?: string | undefined;
1715
+ userVisible?: boolean | undefined;
1567
1716
  }[];
1568
1717
  optional: {
1569
1718
  name: string;
@@ -1574,6 +1723,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1574
1723
  default?: string | null | undefined;
1575
1724
  isSecret?: boolean | undefined;
1576
1725
  legacyTemplateName?: string | undefined;
1726
+ userVisible?: boolean | undefined;
1577
1727
  }[];
1578
1728
  }, {
1579
1729
  required: {
@@ -1585,6 +1735,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1585
1735
  default?: string | null | undefined;
1586
1736
  isSecret?: boolean | undefined;
1587
1737
  legacyTemplateName?: string | undefined;
1738
+ userVisible?: boolean | undefined;
1588
1739
  }[];
1589
1740
  optional: {
1590
1741
  name: string;
@@ -1595,6 +1746,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1595
1746
  default?: string | null | undefined;
1596
1747
  isSecret?: boolean | undefined;
1597
1748
  legacyTemplateName?: string | undefined;
1749
+ userVisible?: boolean | undefined;
1598
1750
  }[];
1599
1751
  }>;
1600
1752
  }, "strip", z$1.ZodTypeAny, {
@@ -1608,6 +1760,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1608
1760
  default?: string | null | undefined;
1609
1761
  isSecret?: boolean | undefined;
1610
1762
  legacyTemplateName?: string | undefined;
1763
+ userVisible?: boolean | undefined;
1611
1764
  }[];
1612
1765
  optional: {
1613
1766
  name: string;
@@ -1618,6 +1771,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1618
1771
  default?: string | null | undefined;
1619
1772
  isSecret?: boolean | undefined;
1620
1773
  legacyTemplateName?: string | undefined;
1774
+ userVisible?: boolean | undefined;
1621
1775
  }[];
1622
1776
  };
1623
1777
  connectedAccountInitiation: {
@@ -1630,6 +1784,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1630
1784
  default?: string | null | undefined;
1631
1785
  isSecret?: boolean | undefined;
1632
1786
  legacyTemplateName?: string | undefined;
1787
+ userVisible?: boolean | undefined;
1633
1788
  }[];
1634
1789
  optional: {
1635
1790
  name: string;
@@ -1640,6 +1795,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1640
1795
  default?: string | null | undefined;
1641
1796
  isSecret?: boolean | undefined;
1642
1797
  legacyTemplateName?: string | undefined;
1798
+ userVisible?: boolean | undefined;
1643
1799
  }[];
1644
1800
  };
1645
1801
  }, {
@@ -1653,6 +1809,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1653
1809
  default?: string | null | undefined;
1654
1810
  isSecret?: boolean | undefined;
1655
1811
  legacyTemplateName?: string | undefined;
1812
+ userVisible?: boolean | undefined;
1656
1813
  }[];
1657
1814
  optional: {
1658
1815
  name: string;
@@ -1663,6 +1820,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1663
1820
  default?: string | null | undefined;
1664
1821
  isSecret?: boolean | undefined;
1665
1822
  legacyTemplateName?: string | undefined;
1823
+ userVisible?: boolean | undefined;
1666
1824
  }[];
1667
1825
  };
1668
1826
  connectedAccountInitiation: {
@@ -1675,6 +1833,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1675
1833
  default?: string | null | undefined;
1676
1834
  isSecret?: boolean | undefined;
1677
1835
  legacyTemplateName?: string | undefined;
1836
+ userVisible?: boolean | undefined;
1678
1837
  }[];
1679
1838
  optional: {
1680
1839
  name: string;
@@ -1685,6 +1844,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1685
1844
  default?: string | null | undefined;
1686
1845
  isSecret?: boolean | undefined;
1687
1846
  legacyTemplateName?: string | undefined;
1847
+ userVisible?: boolean | undefined;
1688
1848
  }[];
1689
1849
  };
1690
1850
  }>;
@@ -1709,6 +1869,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1709
1869
  default?: string | null | undefined;
1710
1870
  isSecret?: boolean | undefined;
1711
1871
  legacyTemplateName?: string | undefined;
1872
+ userVisible?: boolean | undefined;
1712
1873
  }[];
1713
1874
  optional: {
1714
1875
  name: string;
@@ -1719,6 +1880,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1719
1880
  default?: string | null | undefined;
1720
1881
  isSecret?: boolean | undefined;
1721
1882
  legacyTemplateName?: string | undefined;
1883
+ userVisible?: boolean | undefined;
1722
1884
  }[];
1723
1885
  };
1724
1886
  connectedAccountInitiation: {
@@ -1731,6 +1893,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1731
1893
  default?: string | null | undefined;
1732
1894
  isSecret?: boolean | undefined;
1733
1895
  legacyTemplateName?: string | undefined;
1896
+ userVisible?: boolean | undefined;
1734
1897
  }[];
1735
1898
  optional: {
1736
1899
  name: string;
@@ -1741,10 +1904,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1741
1904
  default?: string | null | undefined;
1742
1905
  isSecret?: boolean | undefined;
1743
1906
  legacyTemplateName?: string | undefined;
1907
+ userVisible?: boolean | undefined;
1744
1908
  }[];
1745
1909
  };
1746
1910
  };
1747
1911
  authHintUrl?: string | null | undefined;
1912
+ requiredScopes?: string[] | undefined;
1748
1913
  proxy?: {
1749
1914
  baseUrl?: string | undefined;
1750
1915
  } | undefined;
@@ -1762,6 +1927,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1762
1927
  default?: string | null | undefined;
1763
1928
  isSecret?: boolean | undefined;
1764
1929
  legacyTemplateName?: string | undefined;
1930
+ userVisible?: boolean | undefined;
1765
1931
  }[];
1766
1932
  optional: {
1767
1933
  name: string;
@@ -1772,6 +1938,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1772
1938
  default?: string | null | undefined;
1773
1939
  isSecret?: boolean | undefined;
1774
1940
  legacyTemplateName?: string | undefined;
1941
+ userVisible?: boolean | undefined;
1775
1942
  }[];
1776
1943
  };
1777
1944
  connectedAccountInitiation: {
@@ -1784,6 +1951,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1784
1951
  default?: string | null | undefined;
1785
1952
  isSecret?: boolean | undefined;
1786
1953
  legacyTemplateName?: string | undefined;
1954
+ userVisible?: boolean | undefined;
1787
1955
  }[];
1788
1956
  optional: {
1789
1957
  name: string;
@@ -1794,10 +1962,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1794
1962
  default?: string | null | undefined;
1795
1963
  isSecret?: boolean | undefined;
1796
1964
  legacyTemplateName?: string | undefined;
1965
+ userVisible?: boolean | undefined;
1797
1966
  }[];
1798
1967
  };
1799
1968
  };
1800
1969
  authHintUrl?: string | null | undefined;
1970
+ requiredScopes?: string[] | undefined;
1801
1971
  proxy?: {
1802
1972
  baseUrl?: string | undefined;
1803
1973
  } | undefined;
@@ -1839,6 +2009,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1839
2009
  default?: string | null | undefined;
1840
2010
  isSecret?: boolean | undefined;
1841
2011
  legacyTemplateName?: string | undefined;
2012
+ userVisible?: boolean | undefined;
1842
2013
  }[];
1843
2014
  optional: {
1844
2015
  name: string;
@@ -1849,6 +2020,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1849
2020
  default?: string | null | undefined;
1850
2021
  isSecret?: boolean | undefined;
1851
2022
  legacyTemplateName?: string | undefined;
2023
+ userVisible?: boolean | undefined;
1852
2024
  }[];
1853
2025
  };
1854
2026
  connectedAccountInitiation: {
@@ -1861,6 +2033,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1861
2033
  default?: string | null | undefined;
1862
2034
  isSecret?: boolean | undefined;
1863
2035
  legacyTemplateName?: string | undefined;
2036
+ userVisible?: boolean | undefined;
1864
2037
  }[];
1865
2038
  optional: {
1866
2039
  name: string;
@@ -1871,10 +2044,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1871
2044
  default?: string | null | undefined;
1872
2045
  isSecret?: boolean | undefined;
1873
2046
  legacyTemplateName?: string | undefined;
2047
+ userVisible?: boolean | undefined;
1874
2048
  }[];
1875
2049
  };
1876
2050
  };
1877
2051
  authHintUrl?: string | null | undefined;
2052
+ requiredScopes?: string[] | undefined;
1878
2053
  proxy?: {
1879
2054
  baseUrl?: string | undefined;
1880
2055
  } | undefined;
@@ -1915,6 +2090,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1915
2090
  default?: string | null | undefined;
1916
2091
  isSecret?: boolean | undefined;
1917
2092
  legacyTemplateName?: string | undefined;
2093
+ userVisible?: boolean | undefined;
1918
2094
  }[];
1919
2095
  optional: {
1920
2096
  name: string;
@@ -1925,6 +2101,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1925
2101
  default?: string | null | undefined;
1926
2102
  isSecret?: boolean | undefined;
1927
2103
  legacyTemplateName?: string | undefined;
2104
+ userVisible?: boolean | undefined;
1928
2105
  }[];
1929
2106
  };
1930
2107
  connectedAccountInitiation: {
@@ -1937,6 +2114,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1937
2114
  default?: string | null | undefined;
1938
2115
  isSecret?: boolean | undefined;
1939
2116
  legacyTemplateName?: string | undefined;
2117
+ userVisible?: boolean | undefined;
1940
2118
  }[];
1941
2119
  optional: {
1942
2120
  name: string;
@@ -1947,10 +2125,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1947
2125
  default?: string | null | undefined;
1948
2126
  isSecret?: boolean | undefined;
1949
2127
  legacyTemplateName?: string | undefined;
2128
+ userVisible?: boolean | undefined;
1950
2129
  }[];
1951
2130
  };
1952
2131
  };
1953
2132
  authHintUrl?: string | null | undefined;
2133
+ requiredScopes?: string[] | undefined;
1954
2134
  proxy?: {
1955
2135
  baseUrl?: string | undefined;
1956
2136
  } | undefined;
@@ -2004,6 +2184,329 @@ declare const ToolkitRetrieveCategoriesResponseSchema: z$1.ZodObject<{
2004
2184
  }>;
2005
2185
  type ToolkitCategory = z$1.infer<typeof ToolkitCategorySchema>;
2006
2186
  type ToolkitRetrieveCategoriesResponse = z$1.infer<typeof ToolkitRetrieveCategoriesResponseSchema>;
2187
+ /**
2188
+ * Toolkit changelog response
2189
+ */
2190
+ declare const ToolkitVersionChangelogSchema: z$1.ZodObject<{
2191
+ version: z$1.ZodString;
2192
+ changelog: z$1.ZodString;
2193
+ }, "strip", z$1.ZodTypeAny, {
2194
+ version: string;
2195
+ changelog: string;
2196
+ }, {
2197
+ version: string;
2198
+ changelog: string;
2199
+ }>;
2200
+ declare const ToolkitChangelogItemSchema: z$1.ZodObject<{
2201
+ slug: z$1.ZodString;
2202
+ name: z$1.ZodString;
2203
+ displayName: z$1.ZodString;
2204
+ /** Most recent versions first; the API returns up to the last 10 per toolkit. */
2205
+ versions: z$1.ZodArray<z$1.ZodObject<{
2206
+ version: z$1.ZodString;
2207
+ changelog: z$1.ZodString;
2208
+ }, "strip", z$1.ZodTypeAny, {
2209
+ version: string;
2210
+ changelog: string;
2211
+ }, {
2212
+ version: string;
2213
+ changelog: string;
2214
+ }>, "many">;
2215
+ }, "strip", z$1.ZodTypeAny, {
2216
+ slug: string;
2217
+ name: string;
2218
+ displayName: string;
2219
+ versions: {
2220
+ version: string;
2221
+ changelog: string;
2222
+ }[];
2223
+ }, {
2224
+ slug: string;
2225
+ name: string;
2226
+ displayName: string;
2227
+ versions: {
2228
+ version: string;
2229
+ changelog: string;
2230
+ }[];
2231
+ }>;
2232
+ declare const ToolkitChangelogResponseSchema: z$1.ZodObject<{
2233
+ items: z$1.ZodArray<z$1.ZodObject<{
2234
+ slug: z$1.ZodString;
2235
+ name: z$1.ZodString;
2236
+ displayName: z$1.ZodString;
2237
+ /** Most recent versions first; the API returns up to the last 10 per toolkit. */
2238
+ versions: z$1.ZodArray<z$1.ZodObject<{
2239
+ version: z$1.ZodString;
2240
+ changelog: z$1.ZodString;
2241
+ }, "strip", z$1.ZodTypeAny, {
2242
+ version: string;
2243
+ changelog: string;
2244
+ }, {
2245
+ version: string;
2246
+ changelog: string;
2247
+ }>, "many">;
2248
+ }, "strip", z$1.ZodTypeAny, {
2249
+ slug: string;
2250
+ name: string;
2251
+ displayName: string;
2252
+ versions: {
2253
+ version: string;
2254
+ changelog: string;
2255
+ }[];
2256
+ }, {
2257
+ slug: string;
2258
+ name: string;
2259
+ displayName: string;
2260
+ versions: {
2261
+ version: string;
2262
+ changelog: string;
2263
+ }[];
2264
+ }>, "many">;
2265
+ }, "strip", z$1.ZodTypeAny, {
2266
+ items: {
2267
+ slug: string;
2268
+ name: string;
2269
+ displayName: string;
2270
+ versions: {
2271
+ version: string;
2272
+ changelog: string;
2273
+ }[];
2274
+ }[];
2275
+ }, {
2276
+ items: {
2277
+ slug: string;
2278
+ name: string;
2279
+ displayName: string;
2280
+ versions: {
2281
+ version: string;
2282
+ changelog: string;
2283
+ }[];
2284
+ }[];
2285
+ }>;
2286
+ type ToolkitVersionChangelog = z$1.infer<typeof ToolkitVersionChangelogSchema>;
2287
+ type ToolkitChangelogItem = z$1.infer<typeof ToolkitChangelogItemSchema>;
2288
+ type ToolkitChangelogResponse = z$1.infer<typeof ToolkitChangelogResponseSchema>;
2289
+ /**
2290
+ * Params for `composio.toolkits.recommendScopes()`.
2291
+ * **Experimental — shape may change in future releases.**
2292
+ */
2293
+ declare const ToolkitRecommendScopesParamsSchema: z$1.ZodObject<{
2294
+ /** Tool slugs to cover. Pass `[]` to cover every tool in the toolkit. */
2295
+ tools: z$1.ZodArray<z$1.ZodString, "many">;
2296
+ /** Auth scheme the connection will use. The API defaults to `OAUTH2`. */
2297
+ authScheme: z$1.ZodOptional<z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
2298
+ /** Toolkit version to compute from. The API defaults to the latest published version. */
2299
+ toolkitVersion: z$1.ZodOptional<z$1.ZodString>;
2300
+ /**
2301
+ * Context the scopes will be granted in, as dimension → selected value,
2302
+ * for example `{ account_type: 'Google Workspace' }`. Discover the
2303
+ * dimensions with `composio.toolkits.listGrantContexts()`.
2304
+ */
2305
+ grantContext: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2306
+ /** Scopes the recommendation must include, whether or not the tools need them. */
2307
+ include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2308
+ /** Scopes the recommendation must not include; the API picks documented alternatives or fails. */
2309
+ exclude: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2310
+ /** Scopes your OAuth app can request. The recommendation never goes outside this list. */
2311
+ availableScopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2312
+ }, "strip", z$1.ZodTypeAny, {
2313
+ tools: string[];
2314
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2315
+ exclude?: string[] | undefined;
2316
+ toolkitVersion?: string | undefined;
2317
+ grantContext?: Record<string, string> | undefined;
2318
+ include?: string[] | undefined;
2319
+ availableScopes?: string[] | undefined;
2320
+ }, {
2321
+ tools: string[];
2322
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2323
+ exclude?: string[] | undefined;
2324
+ toolkitVersion?: string | undefined;
2325
+ grantContext?: Record<string, string> | undefined;
2326
+ include?: string[] | undefined;
2327
+ availableScopes?: string[] | undefined;
2328
+ }>;
2329
+ type ToolkitRecommendScopesParams = z$1.infer<typeof ToolkitRecommendScopesParamsSchema>;
2330
+ declare const ToolkitConditionalScopeSchema: z$1.ZodObject<{
2331
+ /** The scope needed only when the `when` guard matches. */
2332
+ scope: z$1.ZodString;
2333
+ /** Input field name → qualifying values. Any value matches within a field; all fields must match. */
2334
+ when: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">>;
2335
+ /** Tool slugs that need this scope under the guard. */
2336
+ for: z$1.ZodArray<z$1.ZodString, "many">;
2337
+ }, "strip", z$1.ZodTypeAny, {
2338
+ scope: string;
2339
+ when: Record<string, string[]>;
2340
+ for: string[];
2341
+ }, {
2342
+ scope: string;
2343
+ when: Record<string, string[]>;
2344
+ for: string[];
2345
+ }>;
2346
+ type ToolkitConditionalScope = z$1.infer<typeof ToolkitConditionalScopeSchema>;
2347
+ /**
2348
+ * Response of `composio.toolkits.recommendScopes()`.
2349
+ * **Experimental — shape may change in future releases.**
2350
+ */
2351
+ declare const ToolkitRecommendScopesResponseSchema: z$1.ZodObject<{
2352
+ /** Auth scheme the recommendation was computed under. */
2353
+ authScheme: z$1.ZodString;
2354
+ /** Concrete toolkit version the answer was computed from; pass it back as `toolkitVersion` to pin. */
2355
+ toolkitVersion: z$1.ZodString;
2356
+ /** The effective grant context: the toolkit default overlaid with your overrides. */
2357
+ grantContext: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
2358
+ scopes: z$1.ZodObject<{
2359
+ /** Narrowest documented option per requirement. */
2360
+ leastPrivilege: z$1.ZodArray<z$1.ZodString, "many">;
2361
+ /** Smallest scope set covering all requirements. */
2362
+ fewest: z$1.ZodArray<z$1.ZodString, "many">;
2363
+ /**
2364
+ * Scopes needed only for particular call-time inputs. Both lists above
2365
+ * already include them, so a caller that knows its inputs may drop the rest.
2366
+ */
2367
+ conditional: z$1.ZodArray<z$1.ZodObject<{
2368
+ /** The scope needed only when the `when` guard matches. */
2369
+ scope: z$1.ZodString;
2370
+ /** Input field name → qualifying values. Any value matches within a field; all fields must match. */
2371
+ when: z$1.ZodRecord<z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">>;
2372
+ /** Tool slugs that need this scope under the guard. */
2373
+ for: z$1.ZodArray<z$1.ZodString, "many">;
2374
+ }, "strip", z$1.ZodTypeAny, {
2375
+ scope: string;
2376
+ when: Record<string, string[]>;
2377
+ for: string[];
2378
+ }, {
2379
+ scope: string;
2380
+ when: Record<string, string[]>;
2381
+ for: string[];
2382
+ }>, "many">;
2383
+ }, "strip", z$1.ZodTypeAny, {
2384
+ leastPrivilege: string[];
2385
+ fewest: string[];
2386
+ conditional: {
2387
+ scope: string;
2388
+ when: Record<string, string[]>;
2389
+ for: string[];
2390
+ }[];
2391
+ }, {
2392
+ leastPrivilege: string[];
2393
+ fewest: string[];
2394
+ conditional: {
2395
+ scope: string;
2396
+ when: Record<string, string[]>;
2397
+ for: string[];
2398
+ }[];
2399
+ }>;
2400
+ }, "strip", z$1.ZodTypeAny, {
2401
+ scopes: {
2402
+ leastPrivilege: string[];
2403
+ fewest: string[];
2404
+ conditional: {
2405
+ scope: string;
2406
+ when: Record<string, string[]>;
2407
+ for: string[];
2408
+ }[];
2409
+ };
2410
+ authScheme: string;
2411
+ toolkitVersion: string;
2412
+ grantContext: Record<string, string>;
2413
+ }, {
2414
+ scopes: {
2415
+ leastPrivilege: string[];
2416
+ fewest: string[];
2417
+ conditional: {
2418
+ scope: string;
2419
+ when: Record<string, string[]>;
2420
+ for: string[];
2421
+ }[];
2422
+ };
2423
+ authScheme: string;
2424
+ toolkitVersion: string;
2425
+ grantContext: Record<string, string>;
2426
+ }>;
2427
+ type ToolkitRecommendScopesResponse = z$1.infer<typeof ToolkitRecommendScopesResponseSchema>;
2428
+ /**
2429
+ * Params for `composio.toolkits.listGrantContexts()`.
2430
+ * **Experimental — shape may change in future releases.**
2431
+ */
2432
+ declare const ToolkitListGrantContextsParamsSchema: z$1.ZodObject<{
2433
+ /** Auth scheme the connection will use. The API defaults to `OAUTH2`. */
2434
+ authScheme: z$1.ZodOptional<z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
2435
+ /** Toolkit version to read the scope catalog from. The API defaults to the latest published version. */
2436
+ toolkitVersion: z$1.ZodOptional<z$1.ZodString>;
2437
+ }, "strip", z$1.ZodTypeAny, {
2438
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2439
+ toolkitVersion?: string | undefined;
2440
+ }, {
2441
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2442
+ toolkitVersion?: string | undefined;
2443
+ }>;
2444
+ type ToolkitListGrantContextsParams = z$1.infer<typeof ToolkitListGrantContextsParamsSchema>;
2445
+ declare const ToolkitGrantContextDimensionSchema: z$1.ZodObject<{
2446
+ /** Dimension name to use as a `grantContext` key. */
2447
+ dimension: z$1.ZodString;
2448
+ /** What the dimension means and when to pass it. */
2449
+ description: z$1.ZodString;
2450
+ /** Values the dimension can take. */
2451
+ values: z$1.ZodArray<z$1.ZodString, "many">;
2452
+ }, "strip", z$1.ZodTypeAny, {
2453
+ values: string[];
2454
+ description: string;
2455
+ dimension: string;
2456
+ }, {
2457
+ values: string[];
2458
+ description: string;
2459
+ dimension: string;
2460
+ }>;
2461
+ type ToolkitGrantContextDimension = z$1.infer<typeof ToolkitGrantContextDimensionSchema>;
2462
+ /**
2463
+ * Response of `composio.toolkits.listGrantContexts()`.
2464
+ * **Experimental — shape may change in future releases.**
2465
+ */
2466
+ declare const ToolkitListGrantContextsResponseSchema: z$1.ZodObject<{
2467
+ /** Auth scheme whose scope catalog the dimensions were read from. */
2468
+ authScheme: z$1.ZodString;
2469
+ /** Concrete toolkit version the answer was computed from. */
2470
+ toolkitVersion: z$1.ZodString;
2471
+ /** Dimensions the toolkit accepts in `grantContext`; empty when no scope depends on one. */
2472
+ grantContextDimensions: z$1.ZodArray<z$1.ZodObject<{
2473
+ /** Dimension name to use as a `grantContext` key. */
2474
+ dimension: z$1.ZodString;
2475
+ /** What the dimension means and when to pass it. */
2476
+ description: z$1.ZodString;
2477
+ /** Values the dimension can take. */
2478
+ values: z$1.ZodArray<z$1.ZodString, "many">;
2479
+ }, "strip", z$1.ZodTypeAny, {
2480
+ values: string[];
2481
+ description: string;
2482
+ dimension: string;
2483
+ }, {
2484
+ values: string[];
2485
+ description: string;
2486
+ dimension: string;
2487
+ }>, "many">;
2488
+ /** The grant context assumed when you pass none. */
2489
+ defaultGrantContext: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
2490
+ }, "strip", z$1.ZodTypeAny, {
2491
+ authScheme: string;
2492
+ toolkitVersion: string;
2493
+ grantContextDimensions: {
2494
+ values: string[];
2495
+ description: string;
2496
+ dimension: string;
2497
+ }[];
2498
+ defaultGrantContext: Record<string, string>;
2499
+ }, {
2500
+ authScheme: string;
2501
+ toolkitVersion: string;
2502
+ grantContextDimensions: {
2503
+ values: string[];
2504
+ description: string;
2505
+ dimension: string;
2506
+ }[];
2507
+ defaultGrantContext: Record<string, string>;
2508
+ }>;
2509
+ type ToolkitListGrantContextsResponse = z$1.infer<typeof ToolkitListGrantContextsResponseSchema>;
2007
2510
  declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
2008
2511
  description: z$1.ZodString;
2009
2512
  displayName: z$1.ZodString;
@@ -2012,6 +2515,7 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
2012
2515
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2013
2516
  isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
2014
2517
  legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
2518
+ userVisible: z$1.ZodOptional<z$1.ZodBoolean>;
2015
2519
  } & {
2016
2520
  required: z$1.ZodOptional<z$1.ZodBoolean>;
2017
2521
  }, "strip", z$1.ZodTypeAny, {
@@ -2023,6 +2527,7 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
2023
2527
  default?: string | null | undefined;
2024
2528
  isSecret?: boolean | undefined;
2025
2529
  legacyTemplateName?: string | undefined;
2530
+ userVisible?: boolean | undefined;
2026
2531
  }, {
2027
2532
  name: string;
2028
2533
  type: string;
@@ -2032,6 +2537,7 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
2032
2537
  default?: string | null | undefined;
2033
2538
  isSecret?: boolean | undefined;
2034
2539
  legacyTemplateName?: string | undefined;
2540
+ userVisible?: boolean | undefined;
2035
2541
  }>, "many">;
2036
2542
  type ToolkitAuthFieldsResponse = z$1.infer<typeof ToolkitAuthFieldsResponseSchema>;
2037
2543
  //#endregion
@@ -2055,6 +2561,7 @@ declare const AuthSchemeTypes: {
2055
2561
  readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
2056
2562
  readonly SAML: "SAML";
2057
2563
  readonly DCR_OAUTH: "DCR_OAUTH";
2564
+ readonly CIMD_OAUTH: "CIMD_OAUTH";
2058
2565
  readonly S2S_OAUTH2: "S2S_OAUTH2";
2059
2566
  };
2060
2567
  type AuthSchemeType = (typeof AuthSchemeTypes)[keyof typeof AuthSchemeTypes];
@@ -2075,12 +2582,12 @@ declare const AuthConfigToolAccessConfigSchema: z$1.ZodObject<{
2075
2582
  toolsForConnectedAccountCreation?: string[] | undefined;
2076
2583
  toolsAvailableForExecution?: string[] | undefined;
2077
2584
  }>;
2078
- declare const AuthSchemeEnum: z$1.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", "S2S_OAUTH2"]>;
2585
+ declare const AuthSchemeEnum: z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>;
2079
2586
  declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
2080
2587
  type: z$1.ZodLiteral<"use_custom_auth">;
2081
2588
  name: z$1.ZodOptional<z$1.ZodString>;
2082
2589
  credentials: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber, z$1.ZodBoolean]>>;
2083
- authScheme: z$1.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", "S2S_OAUTH2"]>;
2590
+ authScheme: z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>;
2084
2591
  proxyConfig: z$1.ZodOptional<z$1.ZodObject<{
2085
2592
  proxyUrl: z$1.ZodString;
2086
2593
  proxyAuthKey: z$1.ZodOptional<z$1.ZodString>;
@@ -2101,7 +2608,7 @@ declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
2101
2608
  isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2102
2609
  }, "strip", z$1.ZodTypeAny, {
2103
2610
  type: "use_custom_auth";
2104
- 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" | "S2S_OAUTH2";
2611
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2";
2105
2612
  credentials: Record<string, string | number | boolean>;
2106
2613
  name?: string | undefined;
2107
2614
  proxyConfig?: {
@@ -2114,7 +2621,7 @@ declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
2114
2621
  isEnabledForToolRouter?: boolean | undefined;
2115
2622
  }, {
2116
2623
  type: "use_custom_auth";
2117
- 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" | "S2S_OAUTH2";
2624
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2";
2118
2625
  credentials: Record<string, string | number | boolean>;
2119
2626
  name?: string | undefined;
2120
2627
  proxyConfig?: {
@@ -2177,7 +2684,7 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2177
2684
  type: z$1.ZodLiteral<"use_custom_auth">;
2178
2685
  name: z$1.ZodOptional<z$1.ZodString>;
2179
2686
  credentials: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber, z$1.ZodBoolean]>>;
2180
- authScheme: z$1.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", "S2S_OAUTH2"]>;
2687
+ authScheme: z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>;
2181
2688
  proxyConfig: z$1.ZodOptional<z$1.ZodObject<{
2182
2689
  proxyUrl: z$1.ZodString;
2183
2690
  proxyAuthKey: z$1.ZodOptional<z$1.ZodString>;
@@ -2198,7 +2705,7 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2198
2705
  isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2199
2706
  }, "strip", z$1.ZodTypeAny, {
2200
2707
  type: "use_custom_auth";
2201
- 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" | "S2S_OAUTH2";
2708
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2";
2202
2709
  credentials: Record<string, string | number | boolean>;
2203
2710
  name?: string | undefined;
2204
2711
  proxyConfig?: {
@@ -2211,7 +2718,7 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2211
2718
  isEnabledForToolRouter?: boolean | undefined;
2212
2719
  }, {
2213
2720
  type: "use_custom_auth";
2214
- 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" | "S2S_OAUTH2";
2721
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2";
2215
2722
  credentials: Record<string, string | number | boolean>;
2216
2723
  name?: string | undefined;
2217
2724
  proxyConfig?: {
@@ -2299,7 +2806,7 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2299
2806
  }>;
2300
2807
  noOfConnections: z$1.ZodNumber;
2301
2808
  status: z$1.ZodEnum<["ENABLED", "DISABLED"]>;
2302
- authScheme: z$1.ZodOptional<z$1.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", "S2S_OAUTH2"]>>;
2809
+ authScheme: z$1.ZodOptional<z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
2303
2810
  credentials: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2304
2811
  expectedInputFields: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown, "many">>;
2305
2812
  isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -2330,7 +2837,7 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2330
2837
  };
2331
2838
  id: string;
2332
2839
  noOfConnections: number;
2333
- 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" | "S2S_OAUTH2" | undefined;
2840
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2334
2841
  createdAt?: string | undefined;
2335
2842
  isComposioManaged?: boolean | undefined;
2336
2843
  credentials?: Record<string, unknown> | undefined;
@@ -2352,7 +2859,7 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2352
2859
  };
2353
2860
  id: string;
2354
2861
  noOfConnections: number;
2355
- 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" | "S2S_OAUTH2" | undefined;
2862
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2356
2863
  createdAt?: string | undefined;
2357
2864
  isComposioManaged?: boolean | undefined;
2358
2865
  credentials?: Record<string, unknown> | undefined;
@@ -2406,7 +2913,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2406
2913
  }>;
2407
2914
  noOfConnections: z$1.ZodNumber;
2408
2915
  status: z$1.ZodEnum<["ENABLED", "DISABLED"]>;
2409
- authScheme: z$1.ZodOptional<z$1.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", "S2S_OAUTH2"]>>;
2916
+ authScheme: z$1.ZodOptional<z$1.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", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
2410
2917
  credentials: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2411
2918
  expectedInputFields: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown, "many">>;
2412
2919
  isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -2437,7 +2944,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2437
2944
  };
2438
2945
  id: string;
2439
2946
  noOfConnections: number;
2440
- 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" | "S2S_OAUTH2" | undefined;
2947
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2441
2948
  createdAt?: string | undefined;
2442
2949
  isComposioManaged?: boolean | undefined;
2443
2950
  credentials?: Record<string, unknown> | undefined;
@@ -2459,7 +2966,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2459
2966
  };
2460
2967
  id: string;
2461
2968
  noOfConnections: number;
2462
- 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" | "S2S_OAUTH2" | undefined;
2969
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2463
2970
  createdAt?: string | undefined;
2464
2971
  isComposioManaged?: boolean | undefined;
2465
2972
  credentials?: Record<string, unknown> | undefined;
@@ -2485,7 +2992,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2485
2992
  };
2486
2993
  id: string;
2487
2994
  noOfConnections: number;
2488
- 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" | "S2S_OAUTH2" | undefined;
2995
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2489
2996
  createdAt?: string | undefined;
2490
2997
  isComposioManaged?: boolean | undefined;
2491
2998
  credentials?: Record<string, unknown> | undefined;
@@ -2511,7 +3018,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2511
3018
  };
2512
3019
  id: string;
2513
3020
  noOfConnections: number;
2514
- 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" | "S2S_OAUTH2" | undefined;
3021
+ 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" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2515
3022
  createdAt?: string | undefined;
2516
3023
  isComposioManaged?: boolean | undefined;
2517
3024
  credentials?: Record<string, unknown> | undefined;
@@ -2783,6 +3290,87 @@ declare class Toolkits {
2783
3290
  * ```
2784
3291
  */
2785
3292
  get(query?: ToolkitListParams, requestOptions?: ComposioRequestOptions): Promise<ToolKitListResponse>;
3293
+ /**
3294
+ * Retrieves several toolkits by slug in a single request.
3295
+ *
3296
+ * Returns the same transformed shape as `composio.toolkits.get({ ... })`.
3297
+ * Unknown slugs are simply absent from the result.
3298
+ *
3299
+ * @param {string[]} slugs - The toolkit slugs to retrieve (at least one)
3300
+ * @param {ToolkitGetManyParams} [params] - Optional filters and pagination, as for `list`
3301
+ * @returns {Promise<ToolKitListResponse>} The matching toolkits
3302
+ * @throws {ValidationError} If `slugs` is empty or the params fail validation
3303
+ * @throws {ComposioToolkitFetchError} If the request fails
3304
+ *
3305
+ * @example
3306
+ * ```typescript
3307
+ * const toolkits = await composio.toolkits.getMany(['github', 'slack']);
3308
+ * console.log(toolkits.map(toolkit => toolkit.name)); // ['GitHub', 'Slack']
3309
+ * ```
3310
+ */
3311
+ getMany(slugs: string[], params?: ToolkitGetManyParams, requestOptions?: ComposioRequestOptions): Promise<ToolKitListResponse>;
3312
+ /**
3313
+ * Retrieves the version changelog of every toolkit (the last 10 versions
3314
+ * per toolkit).
3315
+ *
3316
+ * @returns {Promise<ToolkitChangelogResponse>} Toolkits with their recent version changelogs
3317
+ *
3318
+ * @example
3319
+ * ```typescript
3320
+ * const { items } = await composio.toolkits.changelog();
3321
+ * const github = items.find(item => item.slug === 'github');
3322
+ * console.log(github?.versions[0]); // { version: '20250909_00', changelog: '...' }
3323
+ * ```
3324
+ */
3325
+ changelog(requestOptions?: ComposioRequestOptions): Promise<ToolkitChangelogResponse>;
3326
+ /**
3327
+ * Recommends the OAuth scopes to request so a connection can run the given
3328
+ * tools.
3329
+ * **Experimental — the API marks this endpoint beta; shape may change.**
3330
+ *
3331
+ * The answer comes in two variants: `leastPrivilege` (narrowest documented
3332
+ * scope per requirement) and `fewest` (smallest set covering everything).
3333
+ * Pass `toolkitVersion` from a previous answer to pin the computation.
3334
+ *
3335
+ * @param {string} toolkitSlug - The toolkit to recommend scopes for
3336
+ * @param {ToolkitRecommendScopesParams} params - Tools to cover (`[]` for the whole toolkit), auth scheme, grant context and scope constraints
3337
+ * @returns {Promise<ToolkitRecommendScopesResponse>} The recommended scope sets
3338
+ * @throws {ValidationError} If the params fail validation
3339
+ *
3340
+ * @example
3341
+ * ```typescript
3342
+ * const { scopes } = await composio.toolkits.recommendScopes('gmail', {
3343
+ * tools: ['GMAIL_SEND_EMAIL', 'GMAIL_FETCH_EMAILS'],
3344
+ * });
3345
+ * console.log(scopes.leastPrivilege);
3346
+ * ```
3347
+ */
3348
+ recommendScopes(toolkitSlug: string, params: ToolkitRecommendScopesParams, requestOptions?: ComposioRequestOptions): Promise<ToolkitRecommendScopesResponse>;
3349
+ /**
3350
+ * Lists the grant-context dimensions a toolkit's scope recommendation
3351
+ * depends on (for example the Google account type), with their allowed
3352
+ * values and the default the API assumes.
3353
+ * **Experimental — the API marks this endpoint beta; shape may change.**
3354
+ *
3355
+ * Pass a dimension and a value as `grantContext` to
3356
+ * `composio.toolkits.recommendScopes()` to tailor the recommendation.
3357
+ *
3358
+ * @param {string} toolkitSlug - The toolkit to list grant contexts for
3359
+ * @param {ToolkitListGrantContextsParams} [params] - Optional auth scheme and toolkit version
3360
+ * @returns {Promise<ToolkitListGrantContextsResponse>} The dimensions and the default grant context
3361
+ * @throws {ValidationError} If the params fail validation
3362
+ *
3363
+ * @example
3364
+ * ```typescript
3365
+ * const { grantContextDimensions } = await composio.toolkits.listGrantContexts('gmail');
3366
+ * const [accountType] = grantContextDimensions;
3367
+ * const { scopes } = await composio.toolkits.recommendScopes('gmail', {
3368
+ * tools: ['GMAIL_SEND_EMAIL'],
3369
+ * grantContext: { [accountType.dimension]: accountType.values[0] },
3370
+ * });
3371
+ * ```
3372
+ */
3373
+ listGrantContexts(toolkitSlug: string, params?: ToolkitListGrantContextsParams, requestOptions?: ComposioRequestOptions): Promise<ToolkitListGrantContextsResponse>;
2786
3374
  private getAuthConfigFields;
2787
3375
  /**
2788
3376
  * Retrieves the fields required for creating an auth config for a toolkit.
@@ -3013,9 +3601,9 @@ type TriggerInstanceUpsertResponse = z$1.infer<typeof TriggerInstanceUpsertRespo
3013
3601
  declare const TriggerInstanceManageUpdateParamsSchema: z$1.ZodObject<{
3014
3602
  status: z$1.ZodEnum<["enable", "disable"]>;
3015
3603
  }, "strip", z$1.ZodTypeAny, {
3016
- status: "disable" | "enable";
3604
+ status: "enable" | "disable";
3017
3605
  }, {
3018
- status: "disable" | "enable";
3606
+ status: "enable" | "disable";
3019
3607
  }>;
3020
3608
  type TriggerInstanceManageUpdateParams = z$1.infer<typeof TriggerInstanceManageUpdateParamsSchema>;
3021
3609
  declare const TriggerInstanceManageUpdateResponseSchema: z$1.ZodObject<{
@@ -4436,8 +5024,62 @@ declare class ConnectedAccounts {
4436
5024
  * // Refresh a connected account's credentials
4437
5025
  * const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
4438
5026
  * ```
5027
+ *
5028
+ * @deprecated The `POST /connected_accounts/{id}/refresh` endpoint is deprecated by the
5029
+ * Composio API. Re-initiate authentication instead: `composio.connectedAccounts.link(userId, authConfigId)`
5030
+ * for a fresh connection, or `session.authorize(toolkit)` from a session. Behaviour is unchanged
5031
+ * while the endpoint remains available; do not generate new code against `refresh`.
4439
5032
  */
4440
5033
  refresh(nanoid: string, options?: ConnectedAccountRefreshOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRefreshResponse>;
5034
+ /**
5035
+ * Revoke a connected account at the upstream provider.
5036
+ *
5037
+ * Best-effort upstream revocation of the stored tokens/credentials; on
5038
+ * success the connection status becomes `REVOKED`. Revoking an already
5039
+ * revoked connection returns an empty `revokedTokens` list without an
5040
+ * upstream call.
5041
+ *
5042
+ * @param {string} nanoid - The unique identifier of the connected account to revoke
5043
+ * @returns {Promise<ConnectedAccountRevokeResponse>} Which tokens were revoked and the resulting status
5044
+ * @throws {ComposioConnectedAccountRevocationNotSupportedError} If the toolkit does not support programmatic revocation (400)
5045
+ * @throws {ComposioConnectedAccountNotRevokableError} If the connection is not in a revokable state (409)
5046
+ *
5047
+ * @example
5048
+ * ```typescript
5049
+ * const result = await composio.connectedAccounts.revoke('conn_abc123');
5050
+ * console.log(result.connectedAccount.status); // 'REVOKED'
5051
+ * console.log(result.revokedTokens); // e.g. ['access_token', 'refresh_token']
5052
+ * ```
5053
+ */
5054
+ revoke(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRevokeResponse>;
5055
+ /**
5056
+ * Complete a deferred OAuth connection once you have verified the user's
5057
+ * identity.
5058
+ *
5059
+ * When your project has an OAuth callback verifier configured, Composio
5060
+ * does not activate a new OAuth connection by itself: it redirects to your
5061
+ * verifier with a single-use session URI. After confirming who the user is,
5062
+ * redeem that session URI here; Composio checks that your project owns the
5063
+ * pending connection and that `userId` is its owner, completes the token
5064
+ * exchange, and the connection becomes `ACTIVE`.
5065
+ *
5066
+ * The session URI is single-use: redeeming it twice, or after it expires,
5067
+ * fails with a 404 from the API.
5068
+ *
5069
+ * @param {ConnectedAccountCompleteAuthParams} params - `userId` the connection was initiated for and the verifier's `sessionUri`
5070
+ * @returns {Promise<ConnectedAccountCompleteAuthResponse>} The completed connection's ID and toolkit
5071
+ * @throws {ValidationError} If the params fail validation
5072
+ *
5073
+ * @example
5074
+ * ```typescript
5075
+ * // In your verifier route, after authenticating the user:
5076
+ * const { connectedAccountId, toolkitSlug } = await composio.connectedAccounts.completeAuth({
5077
+ * userId: 'user_123',
5078
+ * sessionUri, // the session URI from the verifier redirect
5079
+ * });
5080
+ * ```
5081
+ */
5082
+ completeAuth(params: ConnectedAccountCompleteAuthParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountCompleteAuthResponse>;
4441
5083
  /**
4442
5084
  * Update the status of a connected account
4443
5085
  * @param {string} nanoid - Unique identifier of the connected account
@@ -4540,20 +5182,691 @@ declare class ConnectedAccounts {
4540
5182
  update(nanoid: string, params: UpdateConnectedAccountParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
4541
5183
  }
4542
5184
  //#endregion
4543
- //#region src/models/Experimental.d.ts
4544
- declare class Experimental {
5185
+ //#region src/types/usage.types.d.ts
5186
+ /**
5187
+ * Filters shared by the usage summary and breakdown queries.
5188
+ * **Experimental — shape may change in future releases.**
5189
+ */
5190
+ declare const UsageFiltersSchema: z$1.ZodObject<{
5191
+ /** Only count events for these external end-user IDs (OR logic). */
5192
+ userId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
5193
+ /** Only count events for these session IDs (OR logic). */
5194
+ sessionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
5195
+ }, "strip", z$1.ZodTypeAny, {
5196
+ userId?: string[] | null | undefined;
5197
+ sessionId?: string[] | null | undefined;
5198
+ }, {
5199
+ userId?: string[] | null | undefined;
5200
+ sessionId?: string[] | null | undefined;
5201
+ }>;
5202
+ type UsageFilters = z$1.infer<typeof UsageFiltersSchema>;
5203
+ /**
5204
+ * Params for `composio.experimental.usage.summary()`.
5205
+ * **Experimental — shape may change in future releases.**
5206
+ */
5207
+ declare const UsageSummaryParamsSchema: z$1.ZodObject<{
5208
+ /** Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before `to`. */
5209
+ from: z$1.ZodOptional<z$1.ZodNumber>;
5210
+ /** Exclusive range end (Unix epoch milliseconds). Defaults to now. */
5211
+ to: z$1.ZodOptional<z$1.ZodNumber>;
5212
+ /** Restrict to these metering entity types. Omit for all types. */
5213
+ entityTypes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
5214
+ filters: z$1.ZodOptional<z$1.ZodObject<{
5215
+ /** Only count events for these external end-user IDs (OR logic). */
5216
+ userId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
5217
+ /** Only count events for these session IDs (OR logic). */
5218
+ sessionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
5219
+ }, "strip", z$1.ZodTypeAny, {
5220
+ userId?: string[] | null | undefined;
5221
+ sessionId?: string[] | null | undefined;
5222
+ }, {
5223
+ userId?: string[] | null | undefined;
5224
+ sessionId?: string[] | null | undefined;
5225
+ }>>;
5226
+ }, "strip", z$1.ZodTypeAny, {
5227
+ from?: number | undefined;
5228
+ to?: number | undefined;
5229
+ filters?: {
5230
+ userId?: string[] | null | undefined;
5231
+ sessionId?: string[] | null | undefined;
5232
+ } | undefined;
5233
+ entityTypes?: string[] | undefined;
5234
+ }, {
5235
+ from?: number | undefined;
5236
+ to?: number | undefined;
5237
+ filters?: {
5238
+ userId?: string[] | null | undefined;
5239
+ sessionId?: string[] | null | undefined;
5240
+ } | undefined;
5241
+ entityTypes?: string[] | undefined;
5242
+ }>;
5243
+ type UsageSummaryParams = z$1.infer<typeof UsageSummaryParamsSchema>;
5244
+ declare const UsageOrderBySchema: z$1.ZodEnum<["key", "total_quantity", "event_count"]>;
5245
+ declare const UsageOrderDirectionSchema: z$1.ZodEnum<["asc", "desc"]>;
5246
+ /**
5247
+ * Params for `composio.experimental.usage.breakdown()`.
5248
+ * **Experimental — shape may change in future releases.**
5249
+ */
5250
+ declare const UsageBreakdownParamsSchema: z$1.ZodObject<{
5251
+ /** Inclusive range start (Unix epoch milliseconds). Defaults to 30 days before `to`. */
5252
+ from: z$1.ZodOptional<z$1.ZodNumber>;
5253
+ /** Exclusive range end (Unix epoch milliseconds). Defaults to now. */
5254
+ to: z$1.ZodOptional<z$1.ZodNumber>;
5255
+ /** Dimension to group by. Defaults to `tool_slug` for tool_calls and `user_id` for sessions. */
5256
+ groupBy: z$1.ZodOptional<z$1.ZodString>;
5257
+ /** Field to order groups by. Defaults to `total_quantity`. */
5258
+ orderBy: z$1.ZodOptional<z$1.ZodEnum<["key", "total_quantity", "event_count"]>>;
5259
+ /** Sort direction. Defaults to `desc`. */
5260
+ orderDirection: z$1.ZodOptional<z$1.ZodEnum<["asc", "desc"]>>;
5261
+ /** Maximum number of groups to return. Defaults to 100, max 1000. */
5262
+ limit: z$1.ZodOptional<z$1.ZodNumber>;
5263
+ filters: z$1.ZodOptional<z$1.ZodObject<{
5264
+ /** Only count events for these external end-user IDs (OR logic). */
5265
+ userId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
5266
+ /** Only count events for these session IDs (OR logic). */
5267
+ sessionId: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
5268
+ }, "strip", z$1.ZodTypeAny, {
5269
+ userId?: string[] | null | undefined;
5270
+ sessionId?: string[] | null | undefined;
5271
+ }, {
5272
+ userId?: string[] | null | undefined;
5273
+ sessionId?: string[] | null | undefined;
5274
+ }>>;
5275
+ }, "strip", z$1.ZodTypeAny, {
5276
+ limit?: number | undefined;
5277
+ orderBy?: "key" | "total_quantity" | "event_count" | undefined;
5278
+ from?: number | undefined;
5279
+ to?: number | undefined;
5280
+ filters?: {
5281
+ userId?: string[] | null | undefined;
5282
+ sessionId?: string[] | null | undefined;
5283
+ } | undefined;
5284
+ groupBy?: string | undefined;
5285
+ orderDirection?: "asc" | "desc" | undefined;
5286
+ }, {
5287
+ limit?: number | undefined;
5288
+ orderBy?: "key" | "total_quantity" | "event_count" | undefined;
5289
+ from?: number | undefined;
5290
+ to?: number | undefined;
5291
+ filters?: {
5292
+ userId?: string[] | null | undefined;
5293
+ sessionId?: string[] | null | undefined;
5294
+ } | undefined;
5295
+ groupBy?: string | undefined;
5296
+ orderDirection?: "asc" | "desc" | undefined;
5297
+ }>;
5298
+ type UsageBreakdownParams = z$1.infer<typeof UsageBreakdownParamsSchema>;
5299
+ declare const UsageEntitySummarySchema: z$1.ZodObject<{
5300
+ unit: z$1.ZodString;
5301
+ totalQuantity: z$1.ZodString;
5302
+ eventCount: z$1.ZodNumber;
5303
+ }, "strip", z$1.ZodTypeAny, {
5304
+ unit: string;
5305
+ totalQuantity: string;
5306
+ eventCount: number;
5307
+ }, {
5308
+ unit: string;
5309
+ totalQuantity: string;
5310
+ eventCount: number;
5311
+ }>;
5312
+ type UsageEntitySummary = z$1.infer<typeof UsageEntitySummarySchema>;
5313
+ declare const UsageSummaryResponseSchema: z$1.ZodObject<{
5314
+ /** Aggregates keyed by metering entity type (e.g. `tool_calls`, `sessions`). */
5315
+ entities: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
5316
+ unit: z$1.ZodString;
5317
+ totalQuantity: z$1.ZodString;
5318
+ eventCount: z$1.ZodNumber;
5319
+ }, "strip", z$1.ZodTypeAny, {
5320
+ unit: string;
5321
+ totalQuantity: string;
5322
+ eventCount: number;
5323
+ }, {
5324
+ unit: string;
5325
+ totalQuantity: string;
5326
+ eventCount: number;
5327
+ }>>;
5328
+ }, "strip", z$1.ZodTypeAny, {
5329
+ entities: Record<string, {
5330
+ unit: string;
5331
+ totalQuantity: string;
5332
+ eventCount: number;
5333
+ }>;
5334
+ }, {
5335
+ entities: Record<string, {
5336
+ unit: string;
5337
+ totalQuantity: string;
5338
+ eventCount: number;
5339
+ }>;
5340
+ }>;
5341
+ type UsageSummaryResponse = z$1.infer<typeof UsageSummaryResponseSchema>;
5342
+ declare const UsageBreakdownGroupSchema: z$1.ZodObject<{
5343
+ key: z$1.ZodString;
5344
+ totalQuantity: z$1.ZodString;
5345
+ eventCount: z$1.ZodNumber;
5346
+ }, "strip", z$1.ZodTypeAny, {
5347
+ key: string;
5348
+ totalQuantity: string;
5349
+ eventCount: number;
5350
+ }, {
5351
+ key: string;
5352
+ totalQuantity: string;
5353
+ eventCount: number;
5354
+ }>;
5355
+ type UsageBreakdownGroup = z$1.infer<typeof UsageBreakdownGroupSchema>;
5356
+ declare const UsageBreakdownResponseSchema: z$1.ZodObject<{
5357
+ entityType: z$1.ZodString;
5358
+ unit: z$1.ZodString;
5359
+ totalQuantity: z$1.ZodString;
5360
+ eventCount: z$1.ZodNumber;
5361
+ groups: z$1.ZodArray<z$1.ZodObject<{
5362
+ key: z$1.ZodString;
5363
+ totalQuantity: z$1.ZodString;
5364
+ eventCount: z$1.ZodNumber;
5365
+ }, "strip", z$1.ZodTypeAny, {
5366
+ key: string;
5367
+ totalQuantity: string;
5368
+ eventCount: number;
5369
+ }, {
5370
+ key: string;
5371
+ totalQuantity: string;
5372
+ eventCount: number;
5373
+ }>, "many">;
5374
+ }, "strip", z$1.ZodTypeAny, {
5375
+ unit: string;
5376
+ totalQuantity: string;
5377
+ eventCount: number;
5378
+ entityType: string;
5379
+ groups: {
5380
+ key: string;
5381
+ totalQuantity: string;
5382
+ eventCount: number;
5383
+ }[];
5384
+ }, {
5385
+ unit: string;
5386
+ totalQuantity: string;
5387
+ eventCount: number;
5388
+ entityType: string;
5389
+ groups: {
5390
+ key: string;
5391
+ totalQuantity: string;
5392
+ eventCount: number;
5393
+ }[];
5394
+ }>;
5395
+ type UsageBreakdownResponse = z$1.infer<typeof UsageBreakdownResponseSchema>;
5396
+ //#endregion
5397
+ //#region src/models/Usage.d.ts
5398
+ /**
5399
+ * `composio.experimental.usage` — metering for the project the API key
5400
+ * belongs to. **Experimental — shape may change in future releases.**
5401
+ *
5402
+ * @example
5403
+ * ```typescript
5404
+ * const summary = await composio.experimental.usage.summary();
5405
+ * console.log(summary.entities.tool_calls?.totalQuantity);
5406
+ *
5407
+ * const byTool = await composio.experimental.usage.breakdown('tool_calls', {
5408
+ * groupBy: 'tool_slug',
5409
+ * limit: 10,
5410
+ * });
5411
+ * ```
5412
+ */
5413
+ declare class Usage {
4545
5414
  private client;
4546
5415
  constructor(client: ComposioClient);
4547
5416
  /**
4548
- * Compatibility alias for `composio.connectedAccounts.updateAcl(...)`.
4549
- * Update the per-user ACL on a SHARED connected account.
5417
+ * Usage totals per metering entity type for a time range.
4550
5418
  * **Experimental — shape may change in future releases.**
4551
5419
  *
4552
- * Only meaningful for SHARED connections — calling this on a PRIVATE
4553
- * connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
4554
- * require the connection's creator or an API key.
5420
+ * @param {UsageSummaryParams} [params] - Optional range, `entityTypes` and filters
5421
+ * @returns {Promise<UsageSummaryResponse>} Totals keyed by entity type
5422
+ * @throws {ValidationError} If the params fail validation
4555
5423
  *
4556
- * PATCH semantics: omit a field to leave it unchanged; pass an empty
5424
+ * @example
5425
+ * ```typescript
5426
+ * const summary = await composio.experimental.usage.summary({
5427
+ * from: Date.now() - 7 * 24 * 60 * 60 * 1000,
5428
+ * filters: { userId: ['user_123'] },
5429
+ * });
5430
+ * ```
5431
+ */
5432
+ summary(params?: UsageSummaryParams, requestOptions?: ComposioRequestOptions): Promise<UsageSummaryResponse>;
5433
+ /**
5434
+ * Usage for one metering entity type, grouped by a dimension.
5435
+ * **Experimental — shape may change in future releases.**
5436
+ *
5437
+ * @param {string} entityType - Entity type to break down (e.g. `tool_calls`, `sessions`)
5438
+ * @param {UsageBreakdownParams} [params] - Optional range, `groupBy`, ordering, `limit` and filters
5439
+ * @returns {Promise<UsageBreakdownResponse>} Totals plus per-group rows
5440
+ * @throws {ValidationError} If the params fail validation
5441
+ *
5442
+ * @example
5443
+ * ```typescript
5444
+ * const byUser = await composio.experimental.usage.breakdown('sessions', {
5445
+ * groupBy: 'user_id',
5446
+ * orderBy: 'event_count',
5447
+ * });
5448
+ * ```
5449
+ */
5450
+ breakdown(entityType: string, params?: UsageBreakdownParams, requestOptions?: ComposioRequestOptions): Promise<UsageBreakdownResponse>;
5451
+ }
5452
+ //#endregion
5453
+ //#region src/types/customToolkits.types.d.ts
5454
+ /**
5455
+ * How end users authenticate to a custom toolkit.
5456
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5457
+ */
5458
+ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [z$1.ZodObject<{
5459
+ mode: z$1.ZodLiteral<"NO_AUTH">;
5460
+ }, "strip", z$1.ZodTypeAny, {
5461
+ mode: "NO_AUTH";
5462
+ }, {
5463
+ mode: "NO_AUTH";
5464
+ }>, z$1.ZodObject<{
5465
+ mode: z$1.ZodLiteral<"API_KEY">;
5466
+ /**
5467
+ * Headers sent with each request. Write `{{generic_api_key}}` where the
5468
+ * end user's API key goes, for example
5469
+ * `{ Authorization: 'Bearer {{generic_api_key}}' }`.
5470
+ */
5471
+ headers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
5472
+ /** End-user copy for the API key input on the connect page. */
5473
+ apiKeyField: z$1.ZodOptional<z$1.ZodObject<{
5474
+ displayName: z$1.ZodOptional<z$1.ZodString>;
5475
+ description: z$1.ZodOptional<z$1.ZodString>;
5476
+ }, "strip", z$1.ZodTypeAny, {
5477
+ description?: string | undefined;
5478
+ displayName?: string | undefined;
5479
+ }, {
5480
+ description?: string | undefined;
5481
+ displayName?: string | undefined;
5482
+ }>>;
5483
+ }, "strip", z$1.ZodTypeAny, {
5484
+ mode: "API_KEY";
5485
+ headers: Record<string, string>;
5486
+ apiKeyField?: {
5487
+ description?: string | undefined;
5488
+ displayName?: string | undefined;
5489
+ } | undefined;
5490
+ }, {
5491
+ mode: "API_KEY";
5492
+ headers: Record<string, string>;
5493
+ apiKeyField?: {
5494
+ description?: string | undefined;
5495
+ displayName?: string | undefined;
5496
+ } | undefined;
5497
+ }>, z$1.ZodObject<{
5498
+ mode: z$1.ZodLiteral<"DCR_OAUTH">;
5499
+ /**
5500
+ * Where to fetch the full auth scheme, usually the
5501
+ * `/.well-known/oauth-authorization-server` path of your MCP URL.
5502
+ */
5503
+ discoveryUrl: z$1.ZodString;
5504
+ }, "strip", z$1.ZodTypeAny, {
5505
+ mode: "DCR_OAUTH";
5506
+ discoveryUrl: string;
5507
+ }, {
5508
+ mode: "DCR_OAUTH";
5509
+ discoveryUrl: string;
5510
+ }>]>;
5511
+ type CustomToolkitAuthScheme = z$1.infer<typeof CustomToolkitAuthSchemeSchema>;
5512
+ /**
5513
+ * Params for `composio.experimental.customToolkits.upsert()`.
5514
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5515
+ */
5516
+ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5517
+ /**
5518
+ * Letters, digits, underscores or spaces, up to 30 characters. The API
5519
+ * prefixes it with `CUSTOM_` and turns spaces into underscores.
5520
+ */
5521
+ slug: z$1.ZodString;
5522
+ toolkitConfig: z$1.ZodObject<{
5523
+ /** Human-readable toolkit name. */
5524
+ name: z$1.ZodString;
5525
+ /** The app URL. For an MCP app, the MCP server URL. */
5526
+ appUrl: z$1.ZodString;
5527
+ /** Square PNG or JPEG logo (256-1024px, max 3MB), base64-encoded. Defaults to the Composio logo. */
5528
+ logoFile: z$1.ZodOptional<z$1.ZodObject<{
5529
+ content: z$1.ZodString;
5530
+ mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
5531
+ }, "strip", z$1.ZodTypeAny, {
5532
+ content: string;
5533
+ mimeType: "image/png" | "image/jpeg";
5534
+ }, {
5535
+ content: string;
5536
+ mimeType: "image/png" | "image/jpeg";
5537
+ }>>;
5538
+ /** At least one scheme. The schemes cannot change once the toolkit exists. */
5539
+ authSchemes: z$1.ZodArray<z$1.ZodDiscriminatedUnion<"mode", [z$1.ZodObject<{
5540
+ mode: z$1.ZodLiteral<"NO_AUTH">;
5541
+ }, "strip", z$1.ZodTypeAny, {
5542
+ mode: "NO_AUTH";
5543
+ }, {
5544
+ mode: "NO_AUTH";
5545
+ }>, z$1.ZodObject<{
5546
+ mode: z$1.ZodLiteral<"API_KEY">;
5547
+ /**
5548
+ * Headers sent with each request. Write `{{generic_api_key}}` where the
5549
+ * end user's API key goes, for example
5550
+ * `{ Authorization: 'Bearer {{generic_api_key}}' }`.
5551
+ */
5552
+ headers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
5553
+ /** End-user copy for the API key input on the connect page. */
5554
+ apiKeyField: z$1.ZodOptional<z$1.ZodObject<{
5555
+ displayName: z$1.ZodOptional<z$1.ZodString>;
5556
+ description: z$1.ZodOptional<z$1.ZodString>;
5557
+ }, "strip", z$1.ZodTypeAny, {
5558
+ description?: string | undefined;
5559
+ displayName?: string | undefined;
5560
+ }, {
5561
+ description?: string | undefined;
5562
+ displayName?: string | undefined;
5563
+ }>>;
5564
+ }, "strip", z$1.ZodTypeAny, {
5565
+ mode: "API_KEY";
5566
+ headers: Record<string, string>;
5567
+ apiKeyField?: {
5568
+ description?: string | undefined;
5569
+ displayName?: string | undefined;
5570
+ } | undefined;
5571
+ }, {
5572
+ mode: "API_KEY";
5573
+ headers: Record<string, string>;
5574
+ apiKeyField?: {
5575
+ description?: string | undefined;
5576
+ displayName?: string | undefined;
5577
+ } | undefined;
5578
+ }>, z$1.ZodObject<{
5579
+ mode: z$1.ZodLiteral<"DCR_OAUTH">;
5580
+ /**
5581
+ * Where to fetch the full auth scheme, usually the
5582
+ * `/.well-known/oauth-authorization-server` path of your MCP URL.
5583
+ */
5584
+ discoveryUrl: z$1.ZodString;
5585
+ }, "strip", z$1.ZodTypeAny, {
5586
+ mode: "DCR_OAUTH";
5587
+ discoveryUrl: string;
5588
+ }, {
5589
+ mode: "DCR_OAUTH";
5590
+ discoveryUrl: string;
5591
+ }>]>, "many">;
5592
+ }, "strip", z$1.ZodTypeAny, {
5593
+ name: string;
5594
+ appUrl: string;
5595
+ authSchemes: ({
5596
+ mode: "NO_AUTH";
5597
+ } | {
5598
+ mode: "API_KEY";
5599
+ headers: Record<string, string>;
5600
+ apiKeyField?: {
5601
+ description?: string | undefined;
5602
+ displayName?: string | undefined;
5603
+ } | undefined;
5604
+ } | {
5605
+ mode: "DCR_OAUTH";
5606
+ discoveryUrl: string;
5607
+ })[];
5608
+ logoFile?: {
5609
+ content: string;
5610
+ mimeType: "image/png" | "image/jpeg";
5611
+ } | undefined;
5612
+ }, {
5613
+ name: string;
5614
+ appUrl: string;
5615
+ authSchemes: ({
5616
+ mode: "NO_AUTH";
5617
+ } | {
5618
+ mode: "API_KEY";
5619
+ headers: Record<string, string>;
5620
+ apiKeyField?: {
5621
+ description?: string | undefined;
5622
+ displayName?: string | undefined;
5623
+ } | undefined;
5624
+ } | {
5625
+ mode: "DCR_OAUTH";
5626
+ discoveryUrl: string;
5627
+ })[];
5628
+ logoFile?: {
5629
+ content: string;
5630
+ mimeType: "image/png" | "image/jpeg";
5631
+ } | undefined;
5632
+ }>;
5633
+ }, "strip", z$1.ZodTypeAny, {
5634
+ slug: string;
5635
+ toolkitConfig: {
5636
+ name: string;
5637
+ appUrl: string;
5638
+ authSchemes: ({
5639
+ mode: "NO_AUTH";
5640
+ } | {
5641
+ mode: "API_KEY";
5642
+ headers: Record<string, string>;
5643
+ apiKeyField?: {
5644
+ description?: string | undefined;
5645
+ displayName?: string | undefined;
5646
+ } | undefined;
5647
+ } | {
5648
+ mode: "DCR_OAUTH";
5649
+ discoveryUrl: string;
5650
+ })[];
5651
+ logoFile?: {
5652
+ content: string;
5653
+ mimeType: "image/png" | "image/jpeg";
5654
+ } | undefined;
5655
+ };
5656
+ }, {
5657
+ slug: string;
5658
+ toolkitConfig: {
5659
+ name: string;
5660
+ appUrl: string;
5661
+ authSchemes: ({
5662
+ mode: "NO_AUTH";
5663
+ } | {
5664
+ mode: "API_KEY";
5665
+ headers: Record<string, string>;
5666
+ apiKeyField?: {
5667
+ description?: string | undefined;
5668
+ displayName?: string | undefined;
5669
+ } | undefined;
5670
+ } | {
5671
+ mode: "DCR_OAUTH";
5672
+ discoveryUrl: string;
5673
+ })[];
5674
+ logoFile?: {
5675
+ content: string;
5676
+ mimeType: "image/png" | "image/jpeg";
5677
+ } | undefined;
5678
+ };
5679
+ }>;
5680
+ type CustomToolkitUpsertParams = z$1.infer<typeof CustomToolkitUpsertParamsSchema>;
5681
+ declare const CustomToolkitUpsertResponseSchema: z$1.ZodObject<{
5682
+ /** Slug of the created or updated toolkit. */
5683
+ slug: z$1.ZodString;
5684
+ }, "strip", z$1.ZodTypeAny, {
5685
+ slug: string;
5686
+ }, {
5687
+ slug: string;
5688
+ }>;
5689
+ type CustomToolkitUpsertResponse = z$1.infer<typeof CustomToolkitUpsertResponseSchema>;
5690
+ /**
5691
+ * Params for `composio.experimental.customToolkits.sync()`.
5692
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5693
+ */
5694
+ declare const CustomToolkitSyncParamsSchema: z$1.ZodObject<{
5695
+ /** Connected account to use when fetching the remote tool definitions. */
5696
+ connectedAccountId: z$1.ZodOptional<z$1.ZodString>;
5697
+ }, "strip", z$1.ZodTypeAny, {
5698
+ connectedAccountId?: string | undefined;
5699
+ }, {
5700
+ connectedAccountId?: string | undefined;
5701
+ }>;
5702
+ type CustomToolkitSyncParams = z$1.infer<typeof CustomToolkitSyncParamsSchema>;
5703
+ declare const CustomToolkitSyncResponseSchema: z$1.ZodObject<{
5704
+ slug: z$1.ZodString;
5705
+ /** Toolkit version after the sync. */
5706
+ version: z$1.ZodString;
5707
+ /** Number of tools synced. */
5708
+ syncedCount: z$1.ZodNumber;
5709
+ }, "strip", z$1.ZodTypeAny, {
5710
+ slug: string;
5711
+ version: string;
5712
+ syncedCount: number;
5713
+ }, {
5714
+ slug: string;
5715
+ version: string;
5716
+ syncedCount: number;
5717
+ }>;
5718
+ type CustomToolkitSyncResponse = z$1.infer<typeof CustomToolkitSyncResponseSchema>;
5719
+ declare const CustomToolkitDeleteResponseSchema: z$1.ZodObject<{
5720
+ /** Slug of the deleted toolkit. */
5721
+ slug: z$1.ZodString;
5722
+ deleted: z$1.ZodBoolean;
5723
+ /** Background jobs revoking the credentials of the toolkit's connected accounts. */
5724
+ revokeJobIds: z$1.ZodArray<z$1.ZodString, "many">;
5725
+ authConfigsDeleted: z$1.ZodNumber;
5726
+ connectedAccountsDeleted: z$1.ZodNumber;
5727
+ }, "strip", z$1.ZodTypeAny, {
5728
+ slug: string;
5729
+ deleted: boolean;
5730
+ revokeJobIds: string[];
5731
+ authConfigsDeleted: number;
5732
+ connectedAccountsDeleted: number;
5733
+ }, {
5734
+ slug: string;
5735
+ deleted: boolean;
5736
+ revokeJobIds: string[];
5737
+ authConfigsDeleted: number;
5738
+ connectedAccountsDeleted: number;
5739
+ }>;
5740
+ type CustomToolkitDeleteResponse = z$1.infer<typeof CustomToolkitDeleteResponseSchema>;
5741
+ //#endregion
5742
+ //#region src/models/CustomToolkits.d.ts
5743
+ /**
5744
+ * `composio.experimental.customToolkits` — toolkits your project registers
5745
+ * from its own app or MCP server, with their own auth configs and connected
5746
+ * accounts. **Experimental — custom toolkits are in pilot; shape may change.**
5747
+ *
5748
+ * These live on the Composio platform. They are unrelated to the in-process
5749
+ * toolkits built with `experimental_createToolkit()`, which run inside your
5750
+ * application.
5751
+ *
5752
+ * @example
5753
+ * ```typescript
5754
+ * const { slug } = await composio.experimental.customToolkits.upsert({
5755
+ * slug: 'MY_TOOLKIT',
5756
+ * toolkitConfig: {
5757
+ * name: 'My Toolkit',
5758
+ * appUrl: 'https://mcp.example.com/mcp',
5759
+ * authSchemes: [{ mode: 'DCR_OAUTH', discoveryUrl: 'https://mcp.example.com/.well-known/oauth-authorization-server' }],
5760
+ * },
5761
+ * });
5762
+ * await composio.experimental.customToolkits.sync(slug);
5763
+ * ```
5764
+ */
5765
+ declare class CustomToolkits {
5766
+ private client;
5767
+ constructor(client: ComposioClient);
5768
+ /**
5769
+ * Creates a custom toolkit, or updates its display metadata (name, API key
5770
+ * field copy) when the project already owns a toolkit with this slug.
5771
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5772
+ *
5773
+ * `appUrl` and `authSchemes` cannot change on an existing toolkit:
5774
+ * re-sending them unchanged is a no-op, and changing them fails with a 409.
5775
+ * Delete and re-register the toolkit instead, which revokes its connections.
5776
+ *
5777
+ * @param {CustomToolkitUpsertParams} params - The slug and toolkit configuration
5778
+ * @returns {Promise<CustomToolkitUpsertResponse>} The toolkit's slug
5779
+ * @throws {ValidationError} If the params fail validation
5780
+ *
5781
+ * @example
5782
+ * ```typescript
5783
+ * await composio.experimental.customToolkits.upsert({
5784
+ * slug: 'INTERNAL_API',
5785
+ * toolkitConfig: {
5786
+ * name: 'Internal API',
5787
+ * appUrl: 'https://mcp.internal.example.com/mcp',
5788
+ * authSchemes: [
5789
+ * { mode: 'API_KEY', headers: { Authorization: 'Bearer {{generic_api_key}}' } },
5790
+ * ],
5791
+ * },
5792
+ * });
5793
+ * ```
5794
+ */
5795
+ upsert(params: CustomToolkitUpsertParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitUpsertResponse>;
5796
+ /**
5797
+ * Re-fetches the tool definitions of a custom toolkit from its remote MCP
5798
+ * server. Call it when automatic sync fails or the remote tools change.
5799
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5800
+ *
5801
+ * @param {string} slug - The custom toolkit slug (`CUSTOM_...`)
5802
+ * @param {CustomToolkitSyncParams} [params] - Optional connected account to fetch the definitions with
5803
+ * @returns {Promise<CustomToolkitSyncResponse>} The toolkit version and number of tools synced
5804
+ * @throws {ValidationError} If the params fail validation
5805
+ *
5806
+ * @example
5807
+ * ```typescript
5808
+ * const { version, syncedCount } = await composio.experimental.customToolkits.sync(
5809
+ * 'CUSTOM_MY_TOOLKIT',
5810
+ * { connectedAccountId: 'ca_abc123' }
5811
+ * );
5812
+ * ```
5813
+ */
5814
+ sync(slug: string, params?: CustomToolkitSyncParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitSyncResponse>;
5815
+ /**
5816
+ * Deletes a custom toolkit owned by the project, with its tools, auth
5817
+ * configs and connected accounts. The credentials behind those connected
5818
+ * accounts are revoked in background jobs (`revokeJobIds`).
5819
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5820
+ *
5821
+ * Composio-managed toolkits cannot be deleted; the API answers 403.
5822
+ *
5823
+ * @param {string} slug - The custom toolkit slug (`CUSTOM_...`)
5824
+ * @returns {Promise<CustomToolkitDeleteResponse>} What was deleted
5825
+ *
5826
+ * @example
5827
+ * ```typescript
5828
+ * const result = await composio.experimental.customToolkits.delete('CUSTOM_MY_TOOLKIT');
5829
+ * console.log(result.connectedAccountsDeleted);
5830
+ * ```
5831
+ */
5832
+ delete(slug: string, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitDeleteResponse>;
5833
+ }
5834
+ //#endregion
5835
+ //#region src/models/Experimental.d.ts
5836
+ declare class Experimental {
5837
+ private client;
5838
+ /**
5839
+ * Project-scoped usage metering (`summary()` / `breakdown()`).
5840
+ * **Experimental — shape may change in future releases.**
5841
+ *
5842
+ * @example
5843
+ * ```typescript
5844
+ * const summary = await composio.experimental.usage.summary();
5845
+ * const byTool = await composio.experimental.usage.breakdown('tool_calls');
5846
+ * ```
5847
+ */
5848
+ usage: Usage;
5849
+ /**
5850
+ * Register and manage project-owned custom toolkits (`upsert()` / `sync()` / `delete()`).
5851
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5852
+ *
5853
+ * @example
5854
+ * ```typescript
5855
+ * await composio.experimental.customToolkits.sync('CUSTOM_MY_TOOLKIT');
5856
+ * ```
5857
+ */
5858
+ customToolkits: CustomToolkits;
5859
+ constructor(client: ComposioClient);
5860
+ /**
5861
+ * Compatibility alias for `composio.connectedAccounts.updateAcl(...)`.
5862
+ * Update the per-user ACL on a SHARED connected account.
5863
+ * **Experimental — shape may change in future releases.**
5864
+ *
5865
+ * Only meaningful for SHARED connections — calling this on a PRIVATE
5866
+ * connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
5867
+ * require the connection's creator or an API key.
5868
+ *
5869
+ * PATCH semantics: omit a field to leave it unchanged; pass an empty
4557
5870
  * array to clear an allow/deny list. At least one field must be
4558
5871
  * provided.
4559
5872
  *
@@ -5228,94 +6541,1224 @@ declare class MCP {
5228
6541
  generate(userId: string, mcpConfigId: string, options?: MCPGetInstanceParams, requestOptions?: ComposioRequestOptions): Promise<MCPServerInstance>;
5229
6542
  }
5230
6543
  //#endregion
5231
- //#region src/provider/OpenAIProvider.d.ts
5232
- type OpenAiTool = OpenAI.ChatCompletionTool;
5233
- type OpenAiToolCollection = Array<OpenAiTool>;
5234
- declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection, OpenAiTool, McpServerGetResponse> {
5235
- readonly name = "openai";
5236
- /**
5237
- * Creates a new instance of the OpenAIProvider.
5238
- *
5239
- * This is the default provider for the Composio SDK and is automatically
5240
- * available without additional installation.
5241
- *
5242
- * @example
5243
- * ```typescript
5244
- * // The OpenAIProvider is used by default when initializing Composio
5245
- * const composio = new Composio({
5246
- * apiKey: 'your-api-key'
5247
- * });
5248
- *
5249
- * // You can also explicitly specify it
5250
- * const composio = new Composio({
5251
- * apiKey: 'your-api-key',
5252
- * provider: new OpenAIProvider()
5253
- * });
5254
- * ```
5255
- */
5256
- constructor();
5257
- /**
5258
- * Transform MCP URL response into OpenAI-specific format.
5259
- * OpenAI uses the standard format by default.
5260
- *
5261
- * @param data - The MCP URL response data
5262
- * @returns Standard MCP server response format
5263
- */
5264
- wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse;
5265
- /**
5266
- * Wraps a Composio tool in the OpenAI function calling format.
5267
- *
5268
- * This method transforms a Composio tool definition into the format
5269
- * expected by OpenAI's function calling API.
5270
- *
5271
- * @param tool - The Composio tool to wrap
5272
- * @returns The wrapped tool in OpenAI format
5273
- *
5274
- * @example
5275
- * ```typescript
5276
- * // Wrap a single tool for use with OpenAI
5277
- * const composioTool = {
5278
- * slug: 'SEARCH_TOOL',
5279
- * description: 'Search for information',
5280
- * inputParameters: {
5281
- * type: 'object',
5282
- * properties: {
5283
- * query: { type: 'string' }
5284
- * },
5285
- * required: ['query']
5286
- * }
5287
- * };
5288
- *
5289
- * const openAITool = provider.wrapTool(composioTool);
5290
- * ```
5291
- */
5292
- wrapTool: (tool: Tool) => OpenAiTool;
5293
- /**
5294
- * Wraps multiple Composio tools in the OpenAI function calling format.
5295
- *
5296
- * This method transforms a list of Composio tools into the format
5297
- * expected by OpenAI's function calling API.
5298
- *
5299
- * @param tools - Array of Composio tools to wrap
5300
- * @returns Array of wrapped tools in OpenAI format
5301
- *
5302
- * @example
5303
- * ```typescript
5304
- * // Wrap multiple tools for use with OpenAI
5305
- * const composioTools = [
5306
- * {
5307
- * slug: 'SEARCH_TOOL',
5308
- * description: 'Search for information',
5309
- * inputParameters: {
5310
- * type: 'object',
5311
- * properties: {
5312
- * query: { type: 'string' }
5313
- * }
5314
- * }
5315
- * },
5316
- * {
5317
- * slug: 'WEATHER_TOOL',
5318
- * description: 'Get weather information',
6544
+ //#region src/types/webhooks.types.d.ts
6545
+ /**
6546
+ * Webhook payload versions accepted by the webhook subscription endpoints.
6547
+ */
6548
+ declare const WebhookVersionSchema: z$1.ZodEnum<["V1", "V2", "V3"]>;
6549
+ /**
6550
+ * A project webhook subscription in the SDK's camelCase shape. The signing
6551
+ * `secret` is returned by the API on every subscription read/write.
6552
+ */
6553
+ declare const WebhookSubscriptionSchema: z$1.ZodObject<{
6554
+ id: z$1.ZodString;
6555
+ webhookUrl: z$1.ZodString;
6556
+ version: z$1.ZodEnum<["V1", "V2", "V3"]>;
6557
+ enabledEvents: z$1.ZodArray<z$1.ZodString, "many">;
6558
+ secret: z$1.ZodOptional<z$1.ZodString>;
6559
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
6560
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
6561
+ }, "strip", z$1.ZodTypeAny, {
6562
+ version: "V1" | "V2" | "V3";
6563
+ id: string;
6564
+ webhookUrl: string;
6565
+ enabledEvents: string[];
6566
+ createdAt?: string | undefined;
6567
+ updatedAt?: string | undefined;
6568
+ secret?: string | undefined;
6569
+ }, {
6570
+ version: "V1" | "V2" | "V3";
6571
+ id: string;
6572
+ webhookUrl: string;
6573
+ enabledEvents: string[];
6574
+ createdAt?: string | undefined;
6575
+ updatedAt?: string | undefined;
6576
+ secret?: string | undefined;
6577
+ }>;
6578
+ declare const WebhookSubscriptionListParamsSchema: z$1.ZodObject<{
6579
+ /** Number of items per page, max allowed is 50. */
6580
+ limit: z$1.ZodOptional<z$1.ZodNumber>;
6581
+ /** Cursor for pagination, taken from a previous response's `nextCursor`. */
6582
+ cursor: z$1.ZodOptional<z$1.ZodString>;
6583
+ }, "strip", z$1.ZodTypeAny, {
6584
+ limit?: number | undefined;
6585
+ cursor?: string | undefined;
6586
+ }, {
6587
+ limit?: number | undefined;
6588
+ cursor?: string | undefined;
6589
+ }>;
6590
+ type WebhookSubscriptionListParams = z$1.infer<typeof WebhookSubscriptionListParamsSchema>;
6591
+ declare const WebhookSubscriptionListResponseSchema: z$1.ZodObject<{
6592
+ items: z$1.ZodArray<z$1.ZodObject<{
6593
+ id: z$1.ZodString;
6594
+ webhookUrl: z$1.ZodString;
6595
+ version: z$1.ZodEnum<["V1", "V2", "V3"]>;
6596
+ enabledEvents: z$1.ZodArray<z$1.ZodString, "many">;
6597
+ secret: z$1.ZodOptional<z$1.ZodString>;
6598
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
6599
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
6600
+ }, "strip", z$1.ZodTypeAny, {
6601
+ version: "V1" | "V2" | "V3";
6602
+ id: string;
6603
+ webhookUrl: string;
6604
+ enabledEvents: string[];
6605
+ createdAt?: string | undefined;
6606
+ updatedAt?: string | undefined;
6607
+ secret?: string | undefined;
6608
+ }, {
6609
+ version: "V1" | "V2" | "V3";
6610
+ id: string;
6611
+ webhookUrl: string;
6612
+ enabledEvents: string[];
6613
+ createdAt?: string | undefined;
6614
+ updatedAt?: string | undefined;
6615
+ secret?: string | undefined;
6616
+ }>, "many">;
6617
+ nextCursor: z$1.ZodNullable<z$1.ZodString>;
6618
+ totalPages: z$1.ZodNumber;
6619
+ currentPage: z$1.ZodNumber;
6620
+ totalItems: z$1.ZodNumber;
6621
+ }, "strip", z$1.ZodTypeAny, {
6622
+ items: {
6623
+ version: "V1" | "V2" | "V3";
6624
+ id: string;
6625
+ webhookUrl: string;
6626
+ enabledEvents: string[];
6627
+ createdAt?: string | undefined;
6628
+ updatedAt?: string | undefined;
6629
+ secret?: string | undefined;
6630
+ }[];
6631
+ nextCursor: string | null;
6632
+ totalPages: number;
6633
+ currentPage: number;
6634
+ totalItems: number;
6635
+ }, {
6636
+ items: {
6637
+ version: "V1" | "V2" | "V3";
6638
+ id: string;
6639
+ webhookUrl: string;
6640
+ enabledEvents: string[];
6641
+ createdAt?: string | undefined;
6642
+ updatedAt?: string | undefined;
6643
+ secret?: string | undefined;
6644
+ }[];
6645
+ nextCursor: string | null;
6646
+ totalPages: number;
6647
+ currentPage: number;
6648
+ totalItems: number;
6649
+ }>;
6650
+ type WebhookSubscriptionListResponse = z$1.infer<typeof WebhookSubscriptionListResponseSchema>;
6651
+ /**
6652
+ * Params for `composio.webhooks.subscriptions.set()`. Identical to the
6653
+ * params accepted by `composio.triggers.setWebhookSubscription()`.
6654
+ */
6655
+ declare const WebhookSubscriptionSetParamsSchema: z$1.ZodObject<{
6656
+ webhookUrl: z$1.ZodString;
6657
+ enabledEvents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
6658
+ version: z$1.ZodOptional<z$1.ZodEnum<["V1", "V2", "V3"]>>;
6659
+ }, "strip", z$1.ZodTypeAny, {
6660
+ webhookUrl: string;
6661
+ version?: "V1" | "V2" | "V3" | undefined;
6662
+ enabledEvents?: string[] | undefined;
6663
+ }, {
6664
+ webhookUrl: string;
6665
+ version?: "V1" | "V2" | "V3" | undefined;
6666
+ enabledEvents?: string[] | undefined;
6667
+ }>;
6668
+ type WebhookSubscriptionSetParams = z$1.infer<typeof WebhookSubscriptionSetParamsSchema>;
6669
+ declare const WebhookSubscriptionUpdateParamsSchema: z$1.ZodObject<{
6670
+ /** HTTPS URL to receive webhook events. */
6671
+ webhookUrl: z$1.ZodOptional<z$1.ZodString>;
6672
+ /** Event types to subscribe to. */
6673
+ enabledEvents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
6674
+ /** Webhook payload version. */
6675
+ version: z$1.ZodOptional<z$1.ZodEnum<["V1", "V2", "V3"]>>;
6676
+ }, "strip", z$1.ZodTypeAny, {
6677
+ version?: "V1" | "V2" | "V3" | undefined;
6678
+ webhookUrl?: string | undefined;
6679
+ enabledEvents?: string[] | undefined;
6680
+ }, {
6681
+ version?: "V1" | "V2" | "V3" | undefined;
6682
+ webhookUrl?: string | undefined;
6683
+ enabledEvents?: string[] | undefined;
6684
+ }>;
6685
+ type WebhookSubscriptionUpdateParams = z$1.infer<typeof WebhookSubscriptionUpdateParamsSchema>;
6686
+ declare const WebhookSubscriptionDeleteResponseSchema: z$1.ZodObject<{
6687
+ success: z$1.ZodBoolean;
6688
+ }, "strip", z$1.ZodTypeAny, {
6689
+ success: boolean;
6690
+ }, {
6691
+ success: boolean;
6692
+ }>;
6693
+ type WebhookSubscriptionDeleteResponse = z$1.infer<typeof WebhookSubscriptionDeleteResponseSchema>;
6694
+ declare const WebhookSubscriptionRotateSecretResponseSchema: z$1.ZodObject<{
6695
+ id: z$1.ZodString;
6696
+ /** The new signing secret. Store it — the previous secret stops validating. */
6697
+ secret: z$1.ZodString;
6698
+ }, "strip", z$1.ZodTypeAny, {
6699
+ id: string;
6700
+ secret: string;
6701
+ }, {
6702
+ id: string;
6703
+ secret: string;
6704
+ }>;
6705
+ type WebhookSubscriptionRotateSecretResponse = z$1.infer<typeof WebhookSubscriptionRotateSecretResponseSchema>;
6706
+ declare const WebhookSubscriptionEventTypeSchema: z$1.ZodObject<{
6707
+ eventType: z$1.ZodString;
6708
+ description: z$1.ZodString;
6709
+ supportedVersions: z$1.ZodArray<z$1.ZodEnum<["V1", "V2", "V3"]>, "many">;
6710
+ }, "strip", z$1.ZodTypeAny, {
6711
+ description: string;
6712
+ eventType: string;
6713
+ supportedVersions: ("V1" | "V2" | "V3")[];
6714
+ }, {
6715
+ description: string;
6716
+ eventType: string;
6717
+ supportedVersions: ("V1" | "V2" | "V3")[];
6718
+ }>;
6719
+ type WebhookSubscriptionEventType = z$1.infer<typeof WebhookSubscriptionEventTypeSchema>;
6720
+ declare const WebhookSubscriptionEventTypesResponseSchema: z$1.ZodObject<{
6721
+ items: z$1.ZodArray<z$1.ZodObject<{
6722
+ eventType: z$1.ZodString;
6723
+ description: z$1.ZodString;
6724
+ supportedVersions: z$1.ZodArray<z$1.ZodEnum<["V1", "V2", "V3"]>, "many">;
6725
+ }, "strip", z$1.ZodTypeAny, {
6726
+ description: string;
6727
+ eventType: string;
6728
+ supportedVersions: ("V1" | "V2" | "V3")[];
6729
+ }, {
6730
+ description: string;
6731
+ eventType: string;
6732
+ supportedVersions: ("V1" | "V2" | "V3")[];
6733
+ }>, "many">;
6734
+ }, "strip", z$1.ZodTypeAny, {
6735
+ items: {
6736
+ description: string;
6737
+ eventType: string;
6738
+ supportedVersions: ("V1" | "V2" | "V3")[];
6739
+ }[];
6740
+ }, {
6741
+ items: {
6742
+ description: string;
6743
+ eventType: string;
6744
+ supportedVersions: ("V1" | "V2" | "V3")[];
6745
+ }[];
6746
+ }>;
6747
+ type WebhookSubscriptionEventTypesResponse = z$1.infer<typeof WebhookSubscriptionEventTypesResponseSchema>;
6748
+ declare const WebhookEndpointListParamsSchema: z$1.ZodObject<{
6749
+ /** Only return endpoints for this toolkit slug. */
6750
+ toolkitSlug: z$1.ZodOptional<z$1.ZodString>;
6751
+ }, "strip", z$1.ZodTypeAny, {
6752
+ toolkitSlug?: string | undefined;
6753
+ }, {
6754
+ toolkitSlug?: string | undefined;
6755
+ }>;
6756
+ type WebhookEndpointListParams = z$1.infer<typeof WebhookEndpointListParamsSchema>;
6757
+ declare const WebhookEndpointListItemSchema: z$1.ZodObject<{
6758
+ id: z$1.ZodString;
6759
+ toolkitSlug: z$1.ZodString;
6760
+ clientId: z$1.ZodNullable<z$1.ZodString>;
6761
+ }, "strip", z$1.ZodTypeAny, {
6762
+ toolkitSlug: string;
6763
+ id: string;
6764
+ clientId: string | null;
6765
+ }, {
6766
+ toolkitSlug: string;
6767
+ id: string;
6768
+ clientId: string | null;
6769
+ }>;
6770
+ type WebhookEndpointListItem = z$1.infer<typeof WebhookEndpointListItemSchema>;
6771
+ declare const WebhookEndpointListResponseSchema: z$1.ZodObject<{
6772
+ items: z$1.ZodArray<z$1.ZodObject<{
6773
+ id: z$1.ZodString;
6774
+ toolkitSlug: z$1.ZodString;
6775
+ clientId: z$1.ZodNullable<z$1.ZodString>;
6776
+ }, "strip", z$1.ZodTypeAny, {
6777
+ toolkitSlug: string;
6778
+ id: string;
6779
+ clientId: string | null;
6780
+ }, {
6781
+ toolkitSlug: string;
6782
+ id: string;
6783
+ clientId: string | null;
6784
+ }>, "many">;
6785
+ }, "strip", z$1.ZodTypeAny, {
6786
+ items: {
6787
+ toolkitSlug: string;
6788
+ id: string;
6789
+ clientId: string | null;
6790
+ }[];
6791
+ }, {
6792
+ items: {
6793
+ toolkitSlug: string;
6794
+ id: string;
6795
+ clientId: string | null;
6796
+ }[];
6797
+ }>;
6798
+ type WebhookEndpointListResponse = z$1.infer<typeof WebhookEndpointListResponseSchema>;
6799
+ declare const WebhookEndpointSchema: z$1.ZodObject<{
6800
+ id: z$1.ZodString;
6801
+ toolkitSlug: z$1.ZodString;
6802
+ clientId: z$1.ZodNullable<z$1.ZodString>;
6803
+ /** The inbound URL to register with the third-party provider. */
6804
+ webhookUrl: z$1.ZodString;
6805
+ /** Configured setup fields with secret values masked. */
6806
+ data: z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
6807
+ createdAt: z$1.ZodString;
6808
+ }, "strip", z$1.ZodTypeAny, {
6809
+ toolkitSlug: string;
6810
+ data: Record<string, string> | null;
6811
+ id: string;
6812
+ createdAt: string;
6813
+ webhookUrl: string;
6814
+ clientId: string | null;
6815
+ }, {
6816
+ toolkitSlug: string;
6817
+ data: Record<string, string> | null;
6818
+ id: string;
6819
+ createdAt: string;
6820
+ webhookUrl: string;
6821
+ clientId: string | null;
6822
+ }>;
6823
+ type WebhookEndpoint = z$1.infer<typeof WebhookEndpointSchema>;
6824
+ declare const WebhookEndpointCreateParamsSchema: z$1.ZodObject<{
6825
+ /** Toolkit identifier (e.g. `slack`, `discord`). */
6826
+ toolkitSlug: z$1.ZodString;
6827
+ /** OAuth app client ID — identifies which app this endpoint is for. */
6828
+ clientId: z$1.ZodString;
6829
+ }, "strip", z$1.ZodTypeAny, {
6830
+ toolkitSlug: string;
6831
+ clientId: string;
6832
+ }, {
6833
+ toolkitSlug: string;
6834
+ clientId: string;
6835
+ }>;
6836
+ type WebhookEndpointCreateParams = z$1.infer<typeof WebhookEndpointCreateParamsSchema>;
6837
+ declare const WebhookEndpointReplaceParamsSchema: z$1.ZodObject<{
6838
+ /** Key-value pairs for ALL required setup fields of the toolkit. */
6839
+ data: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
6840
+ }, "strip", z$1.ZodTypeAny, {
6841
+ data: Record<string, string>;
6842
+ }, {
6843
+ data: Record<string, string>;
6844
+ }>;
6845
+ type WebhookEndpointReplaceParams = z$1.infer<typeof WebhookEndpointReplaceParamsSchema>;
6846
+ declare const WebhookEndpointUpdateParamsSchema: z$1.ZodObject<{
6847
+ /** Key-value pairs to merge into the setup fields. Omitted fields are preserved. */
6848
+ data: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
6849
+ }, "strip", z$1.ZodTypeAny, {
6850
+ data: Record<string, string>;
6851
+ }, {
6852
+ data: Record<string, string>;
6853
+ }>;
6854
+ type WebhookEndpointUpdateParams = z$1.infer<typeof WebhookEndpointUpdateParamsSchema>;
6855
+ //#endregion
6856
+ //#region src/models/Webhooks.d.ts
6857
+ /**
6858
+ * `composio.webhooks.subscriptions` — the project's outbound webhook
6859
+ * subscription. The API allows one subscription per project; every response
6860
+ * includes the signing `secret` used to verify deliveries with
6861
+ * `composio.triggers.verifyWebhook()` / `composio.triggers.parse()`.
6862
+ */
6863
+ declare class WebhookSubscriptions {
6864
+ private client;
6865
+ constructor(client: ComposioClient);
6866
+ /**
6867
+ * List the project's webhook subscriptions.
6868
+ *
6869
+ * @param {WebhookSubscriptionListParams} [query] - Pagination options
6870
+ * @returns {Promise<WebhookSubscriptionListResponse>} Paginated subscriptions
6871
+ *
6872
+ * @example
6873
+ * ```typescript
6874
+ * const { items } = await composio.webhooks.subscriptions.list();
6875
+ * console.log(items[0]?.webhookUrl);
6876
+ * ```
6877
+ */
6878
+ list(query?: WebhookSubscriptionListParams, requestOptions?: ComposioRequestOptions): Promise<WebhookSubscriptionListResponse>;
6879
+ /**
6880
+ * Retrieve a webhook subscription by id.
6881
+ *
6882
+ * @param {string} id - The subscription id
6883
+ * @returns {Promise<WebhookSubscription>} The subscription, including its signing secret
6884
+ *
6885
+ * @example
6886
+ * ```typescript
6887
+ * const subscription = await composio.webhooks.subscriptions.get('whs_abc123');
6888
+ * console.log(subscription.enabledEvents);
6889
+ * ```
6890
+ */
6891
+ get(id: string, requestOptions?: ComposioRequestOptions): Promise<WebhookSubscription>;
6892
+ /**
6893
+ * Create or update the project webhook subscription.
6894
+ *
6895
+ * If a subscription already exists it is updated in place, otherwise a new
6896
+ * one is created. By default this subscribes to V3 trigger message events.
6897
+ *
6898
+ * @param {WebhookSubscriptionSetParams} params - `webhookUrl`, optional `enabledEvents` and `version`
6899
+ * @returns {Promise<WebhookSubscription>} The resulting subscription
6900
+ * @throws {ValidationError} If the params fail validation
6901
+ *
6902
+ * @example
6903
+ * ```typescript
6904
+ * const subscription = await composio.webhooks.subscriptions.set({
6905
+ * webhookUrl: `${APP_URL}/webhooks/composio`,
6906
+ * enabledEvents: ['composio.trigger.message', 'composio.connected_account.expired'],
6907
+ * });
6908
+ * process.env.COMPOSIO_WEBHOOK_SECRET = subscription.secret;
6909
+ * ```
6910
+ */
6911
+ set(params: WebhookSubscriptionSetParams, requestOptions?: ComposioRequestOptions): Promise<WebhookSubscription>;
6912
+ /**
6913
+ * Update an existing webhook subscription. Only the provided fields change.
6914
+ *
6915
+ * @param {string} id - The subscription id
6916
+ * @param {WebhookSubscriptionUpdateParams} params - Fields to update
6917
+ * @returns {Promise<WebhookSubscription>} The updated subscription
6918
+ * @throws {ValidationError} If the params fail validation
6919
+ *
6920
+ * @example
6921
+ * ```typescript
6922
+ * await composio.webhooks.subscriptions.update('whs_abc123', {
6923
+ * enabledEvents: ['composio.trigger.message'],
6924
+ * });
6925
+ * ```
6926
+ */
6927
+ update(id: string, params: WebhookSubscriptionUpdateParams, requestOptions?: ComposioRequestOptions): Promise<WebhookSubscription>;
6928
+ /**
6929
+ * Delete a webhook subscription. Deliveries stop immediately.
6930
+ *
6931
+ * @param {string} id - The subscription id
6932
+ * @returns {Promise<WebhookSubscriptionDeleteResponse>} `{ success }`
6933
+ *
6934
+ * @example
6935
+ * ```typescript
6936
+ * await composio.webhooks.subscriptions.delete('whs_abc123');
6937
+ * ```
6938
+ */
6939
+ delete(id: string, requestOptions?: ComposioRequestOptions): Promise<WebhookSubscriptionDeleteResponse>;
6940
+ /**
6941
+ * Rotate the signing secret of a webhook subscription. The previous secret
6942
+ * stops validating, so update your verifier with the returned `secret`.
6943
+ *
6944
+ * @param {string} id - The subscription id
6945
+ * @returns {Promise<WebhookSubscriptionRotateSecretResponse>} `{ id, secret }`
6946
+ *
6947
+ * @example
6948
+ * ```typescript
6949
+ * const { secret } = await composio.webhooks.subscriptions.rotateSecret('whs_abc123');
6950
+ * ```
6951
+ */
6952
+ rotateSecret(id: string, requestOptions?: ComposioRequestOptions): Promise<WebhookSubscriptionRotateSecretResponse>;
6953
+ /**
6954
+ * List the event types a subscription can enable, with the payload
6955
+ * versions each one supports.
6956
+ *
6957
+ * @returns {Promise<WebhookSubscriptionEventTypesResponse>} The available event types
6958
+ *
6959
+ * @example
6960
+ * ```typescript
6961
+ * const { items } = await composio.webhooks.subscriptions.listEventTypes();
6962
+ * console.log(items.map(item => item.eventType));
6963
+ * ```
6964
+ */
6965
+ listEventTypes(requestOptions?: ComposioRequestOptions): Promise<WebhookSubscriptionEventTypesResponse>;
6966
+ }
6967
+ /**
6968
+ * `composio.webhooks.endpoints` — inbound webhook endpoints. Each endpoint is
6969
+ * the ingress URL Composio exposes for one toolkit + OAuth app pair, which you
6970
+ * register with the third-party provider so it can push events to Composio.
6971
+ */
6972
+ declare class WebhookEndpoints {
6973
+ private client;
6974
+ constructor(client: ComposioClient);
6975
+ /**
6976
+ * List webhook endpoints, optionally filtered by toolkit.
6977
+ *
6978
+ * @param {WebhookEndpointListParams} [query] - Optional `toolkitSlug` filter
6979
+ * @returns {Promise<WebhookEndpointListResponse>} The endpoints
6980
+ *
6981
+ * @example
6982
+ * ```typescript
6983
+ * const { items } = await composio.webhooks.endpoints.list({ toolkitSlug: 'slack' });
6984
+ * ```
6985
+ */
6986
+ list(query?: WebhookEndpointListParams, requestOptions?: ComposioRequestOptions): Promise<WebhookEndpointListResponse>;
6987
+ /**
6988
+ * Retrieve a webhook endpoint by its nano id.
6989
+ *
6990
+ * @param {string} nanoId - The endpoint nano id (e.g. `we_abc123`)
6991
+ * @returns {Promise<WebhookEndpoint>} The endpoint, with secret setup values masked
6992
+ *
6993
+ * @example
6994
+ * ```typescript
6995
+ * const endpoint = await composio.webhooks.endpoints.get('we_abc123');
6996
+ * console.log(endpoint.webhookUrl);
6997
+ * ```
6998
+ */
6999
+ get(nanoId: string, requestOptions?: ComposioRequestOptions): Promise<WebhookEndpoint>;
7000
+ /**
7001
+ * Create a webhook endpoint for a toolkit + OAuth app pair. Returns the
7002
+ * existing endpoint when one already exists for that pair.
7003
+ *
7004
+ * @param {WebhookEndpointCreateParams} params - `toolkitSlug` and `clientId`
7005
+ * @returns {Promise<WebhookEndpoint>} The endpoint; register `webhookUrl` with the provider
7006
+ * @throws {ValidationError} If the params fail validation
7007
+ *
7008
+ * @example
7009
+ * ```typescript
7010
+ * const endpoint = await composio.webhooks.endpoints.create({
7011
+ * toolkitSlug: 'slack',
7012
+ * clientId: 'my-slack-app-client-id',
7013
+ * });
7014
+ * ```
7015
+ */
7016
+ create(params: WebhookEndpointCreateParams, requestOptions?: ComposioRequestOptions): Promise<WebhookEndpoint>;
7017
+ /**
7018
+ * Replace the setup fields of a webhook endpoint. All required setup fields
7019
+ * for the toolkit must be provided — this is the initial configuration.
7020
+ *
7021
+ * @param {string} nanoId - The endpoint nano id
7022
+ * @param {WebhookEndpointReplaceParams} params - `data` with every required setup field
7023
+ * @returns {Promise<WebhookEndpoint>} The configured endpoint
7024
+ * @throws {ValidationError} If the params fail validation
7025
+ *
7026
+ * @example
7027
+ * ```typescript
7028
+ * await composio.webhooks.endpoints.replace('we_abc123', {
7029
+ * data: { signing_secret: process.env.SLACK_SIGNING_SECRET! },
7030
+ * });
7031
+ * ```
7032
+ */
7033
+ replace(nanoId: string, params: WebhookEndpointReplaceParams, requestOptions?: ComposioRequestOptions): Promise<WebhookEndpoint>;
7034
+ /**
7035
+ * Merge setup fields into a webhook endpoint. Omitted fields are preserved.
7036
+ *
7037
+ * @param {string} nanoId - The endpoint nano id
7038
+ * @param {WebhookEndpointUpdateParams} params - `data` with the fields to change
7039
+ * @returns {Promise<WebhookEndpoint>} The updated endpoint
7040
+ * @throws {ValidationError} If the params fail validation
7041
+ *
7042
+ * @example
7043
+ * ```typescript
7044
+ * await composio.webhooks.endpoints.update('we_abc123', {
7045
+ * data: { signing_secret: 'rotated-secret' },
7046
+ * });
7047
+ * ```
7048
+ */
7049
+ update(nanoId: string, params: WebhookEndpointUpdateParams, requestOptions?: ComposioRequestOptions): Promise<WebhookEndpoint>;
7050
+ }
7051
+ /**
7052
+ * `composio.webhooks` namespace.
7053
+ *
7054
+ * - `subscriptions`: the project's outbound webhook subscription (where
7055
+ * Composio delivers trigger and lifecycle events).
7056
+ * - `endpoints`: inbound ingress URLs for third-party providers, one per
7057
+ * toolkit + OAuth app pair.
7058
+ *
7059
+ * @example
7060
+ * ```typescript
7061
+ * const subscription = await composio.webhooks.subscriptions.set({
7062
+ * webhookUrl: 'https://example.com/webhooks/composio',
7063
+ * });
7064
+ * const endpoints = await composio.webhooks.endpoints.list({ toolkitSlug: 'slack' });
7065
+ * ```
7066
+ */
7067
+ declare class Webhooks {
7068
+ /** Manage the project's outbound webhook subscription. */
7069
+ subscriptions: WebhookSubscriptions;
7070
+ /** Manage inbound webhook endpoints per toolkit + OAuth app. */
7071
+ endpoints: WebhookEndpoints;
7072
+ constructor(client: ComposioClient);
7073
+ }
7074
+ //#endregion
7075
+ //#region src/types/logs.types.d.ts
7076
+ /**
7077
+ * Fields a tool-execution log search can filter on.
7078
+ */
7079
+ declare const LogSearchFilterFieldSchema: z$1.ZodEnum<["tool_slug", "toolkit_slug", "connected_account_id", "auth_config_id", "status", "user_id", "session_id", "sandbox_id", "request_id", "log_id"]>;
7080
+ type LogSearchFilterField = z$1.infer<typeof LogSearchFilterFieldSchema>;
7081
+ declare const LogSearchFilterOperatorSchema: z$1.ZodEnum<["==", "!=", "contains", "not_contains"]>;
7082
+ type LogSearchFilterOperator = z$1.infer<typeof LogSearchFilterOperatorSchema>;
7083
+ declare const LogSearchFilterSchema: z$1.ZodObject<{
7084
+ field: z$1.ZodEnum<["tool_slug", "toolkit_slug", "connected_account_id", "auth_config_id", "status", "user_id", "session_id", "sandbox_id", "request_id", "log_id"]>;
7085
+ operator: z$1.ZodEnum<["==", "!=", "contains", "not_contains"]>;
7086
+ value: z$1.ZodString;
7087
+ }, "strip", z$1.ZodTypeAny, {
7088
+ value: string;
7089
+ field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7090
+ operator: "==" | "!=" | "contains" | "not_contains";
7091
+ }, {
7092
+ value: string;
7093
+ field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7094
+ operator: "==" | "!=" | "contains" | "not_contains";
7095
+ }>;
7096
+ type LogSearchFilter = z$1.infer<typeof LogSearchFilterSchema>;
7097
+ declare const LogSearchTimeRangeSchema: z$1.ZodObject<{
7098
+ /** Start time in epoch milliseconds (inclusive). */
7099
+ from: z$1.ZodNumber;
7100
+ /** End time in epoch milliseconds. */
7101
+ to: z$1.ZodNumber;
7102
+ }, "strip", z$1.ZodTypeAny, {
7103
+ from: number;
7104
+ to: number;
7105
+ }, {
7106
+ from: number;
7107
+ to: number;
7108
+ }>;
7109
+ type LogSearchTimeRange = z$1.infer<typeof LogSearchTimeRangeSchema>;
7110
+ /**
7111
+ * Params for `composio.logs.search()`.
7112
+ */
7113
+ declare const LogSearchParamsSchema: z$1.ZodObject<{
7114
+ limit: z$1.ZodOptional<z$1.ZodNumber>;
7115
+ cursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
7116
+ filters: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
7117
+ field: z$1.ZodEnum<["tool_slug", "toolkit_slug", "connected_account_id", "auth_config_id", "status", "user_id", "session_id", "sandbox_id", "request_id", "log_id"]>;
7118
+ operator: z$1.ZodEnum<["==", "!=", "contains", "not_contains"]>;
7119
+ value: z$1.ZodString;
7120
+ }, "strip", z$1.ZodTypeAny, {
7121
+ value: string;
7122
+ field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7123
+ operator: "==" | "!=" | "contains" | "not_contains";
7124
+ }, {
7125
+ value: string;
7126
+ field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7127
+ operator: "==" | "!=" | "contains" | "not_contains";
7128
+ }>, "many">>;
7129
+ timeRange: z$1.ZodOptional<z$1.ZodObject<{
7130
+ /** Start time in epoch milliseconds (inclusive). */
7131
+ from: z$1.ZodNumber;
7132
+ /** End time in epoch milliseconds. */
7133
+ to: z$1.ZodNumber;
7134
+ }, "strip", z$1.ZodTypeAny, {
7135
+ from: number;
7136
+ to: number;
7137
+ }, {
7138
+ from: number;
7139
+ to: number;
7140
+ }>>;
7141
+ }, "strip", z$1.ZodTypeAny, {
7142
+ limit?: number | undefined;
7143
+ cursor?: string | null | undefined;
7144
+ filters?: {
7145
+ value: string;
7146
+ field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7147
+ operator: "==" | "!=" | "contains" | "not_contains";
7148
+ }[] | undefined;
7149
+ timeRange?: {
7150
+ from: number;
7151
+ to: number;
7152
+ } | undefined;
7153
+ }, {
7154
+ limit?: number | undefined;
7155
+ cursor?: string | null | undefined;
7156
+ filters?: {
7157
+ value: string;
7158
+ field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7159
+ operator: "==" | "!=" | "contains" | "not_contains";
7160
+ }[] | undefined;
7161
+ timeRange?: {
7162
+ from: number;
7163
+ to: number;
7164
+ } | undefined;
7165
+ }>;
7166
+ type LogSearchParams = z$1.infer<typeof LogSearchParamsSchema>;
7167
+ declare const ToolExecutionLogStatusSchema: z$1.ZodEnum<["success", "failed"]>;
7168
+ declare const ToolExecutionLogLevelSchema: z$1.ZodEnum<["info", "error", "warn"]>;
7169
+ declare const ToolExecutionLogParentSchema: z$1.ZodNullable<z$1.ZodObject<{
7170
+ logId: z$1.ZodString;
7171
+ toolSlug: z$1.ZodString;
7172
+ }, "strip", z$1.ZodTypeAny, {
7173
+ logId: string;
7174
+ toolSlug: string;
7175
+ }, {
7176
+ logId: string;
7177
+ toolSlug: string;
7178
+ }>>;
7179
+ /**
7180
+ * A tool-execution log entry as returned by `composio.logs.search()`.
7181
+ */
7182
+ declare const ToolExecutionLogSchema: z$1.ZodObject<{
7183
+ id: z$1.ZodString;
7184
+ /** ISO 8601 timestamp. */
7185
+ timestamp: z$1.ZodString;
7186
+ /** Log event type, e.g. `tool.execution`. */
7187
+ type: z$1.ZodString;
7188
+ status: z$1.ZodEnum<["success", "failed"]>;
7189
+ level: z$1.ZodEnum<["info", "error", "warn"]>;
7190
+ message: z$1.ZodOptional<z$1.ZodString>;
7191
+ metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7192
+ metrics: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7193
+ parent: z$1.ZodNullable<z$1.ZodObject<{
7194
+ logId: z$1.ZodString;
7195
+ toolSlug: z$1.ZodString;
7196
+ }, "strip", z$1.ZodTypeAny, {
7197
+ logId: string;
7198
+ toolSlug: string;
7199
+ }, {
7200
+ logId: string;
7201
+ toolSlug: string;
7202
+ }>>;
7203
+ }, "strip", z$1.ZodTypeAny, {
7204
+ type: string;
7205
+ status: "success" | "failed";
7206
+ id: string;
7207
+ metadata: Record<string, unknown>;
7208
+ timestamp: string;
7209
+ level: "error" | "warn" | "info";
7210
+ metrics: Record<string, unknown>;
7211
+ parent: {
7212
+ logId: string;
7213
+ toolSlug: string;
7214
+ } | null;
7215
+ message?: string | undefined;
7216
+ }, {
7217
+ type: string;
7218
+ status: "success" | "failed";
7219
+ id: string;
7220
+ metadata: Record<string, unknown>;
7221
+ timestamp: string;
7222
+ level: "error" | "warn" | "info";
7223
+ metrics: Record<string, unknown>;
7224
+ parent: {
7225
+ logId: string;
7226
+ toolSlug: string;
7227
+ } | null;
7228
+ message?: string | undefined;
7229
+ }>;
7230
+ type ToolExecutionLog = z$1.infer<typeof ToolExecutionLogSchema>;
7231
+ declare const LogSearchResponseSchema: z$1.ZodObject<{
7232
+ logs: z$1.ZodArray<z$1.ZodObject<{
7233
+ id: z$1.ZodString;
7234
+ /** ISO 8601 timestamp. */
7235
+ timestamp: z$1.ZodString;
7236
+ /** Log event type, e.g. `tool.execution`. */
7237
+ type: z$1.ZodString;
7238
+ status: z$1.ZodEnum<["success", "failed"]>;
7239
+ level: z$1.ZodEnum<["info", "error", "warn"]>;
7240
+ message: z$1.ZodOptional<z$1.ZodString>;
7241
+ metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7242
+ metrics: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7243
+ parent: z$1.ZodNullable<z$1.ZodObject<{
7244
+ logId: z$1.ZodString;
7245
+ toolSlug: z$1.ZodString;
7246
+ }, "strip", z$1.ZodTypeAny, {
7247
+ logId: string;
7248
+ toolSlug: string;
7249
+ }, {
7250
+ logId: string;
7251
+ toolSlug: string;
7252
+ }>>;
7253
+ }, "strip", z$1.ZodTypeAny, {
7254
+ type: string;
7255
+ status: "success" | "failed";
7256
+ id: string;
7257
+ metadata: Record<string, unknown>;
7258
+ timestamp: string;
7259
+ level: "error" | "warn" | "info";
7260
+ metrics: Record<string, unknown>;
7261
+ parent: {
7262
+ logId: string;
7263
+ toolSlug: string;
7264
+ } | null;
7265
+ message?: string | undefined;
7266
+ }, {
7267
+ type: string;
7268
+ status: "success" | "failed";
7269
+ id: string;
7270
+ metadata: Record<string, unknown>;
7271
+ timestamp: string;
7272
+ level: "error" | "warn" | "info";
7273
+ metrics: Record<string, unknown>;
7274
+ parent: {
7275
+ logId: string;
7276
+ toolSlug: string;
7277
+ } | null;
7278
+ message?: string | undefined;
7279
+ }>, "many">;
7280
+ nextCursor: z$1.ZodNullable<z$1.ZodString>;
7281
+ }, "strip", z$1.ZodTypeAny, {
7282
+ nextCursor: string | null;
7283
+ logs: {
7284
+ type: string;
7285
+ status: "success" | "failed";
7286
+ id: string;
7287
+ metadata: Record<string, unknown>;
7288
+ timestamp: string;
7289
+ level: "error" | "warn" | "info";
7290
+ metrics: Record<string, unknown>;
7291
+ parent: {
7292
+ logId: string;
7293
+ toolSlug: string;
7294
+ } | null;
7295
+ message?: string | undefined;
7296
+ }[];
7297
+ }, {
7298
+ nextCursor: string | null;
7299
+ logs: {
7300
+ type: string;
7301
+ status: "success" | "failed";
7302
+ id: string;
7303
+ metadata: Record<string, unknown>;
7304
+ timestamp: string;
7305
+ level: "error" | "warn" | "info";
7306
+ metrics: Record<string, unknown>;
7307
+ parent: {
7308
+ logId: string;
7309
+ toolSlug: string;
7310
+ } | null;
7311
+ message?: string | undefined;
7312
+ }[];
7313
+ }>;
7314
+ type LogSearchResponse = z$1.infer<typeof LogSearchResponseSchema>;
7315
+ /**
7316
+ * A single tool-execution log with its full detail, as returned by
7317
+ * `composio.logs.get()`.
7318
+ */
7319
+ declare const ToolExecutionLogDetailSchema: z$1.ZodObject<{
7320
+ id: z$1.ZodString;
7321
+ /** ISO 8601 timestamp. */
7322
+ timestamp: z$1.ZodString;
7323
+ /** Log event type, e.g. `tool.execution`. */
7324
+ type: z$1.ZodString;
7325
+ status: z$1.ZodEnum<["success", "failed"]>;
7326
+ level: z$1.ZodEnum<["info", "error", "warn"]>;
7327
+ message: z$1.ZodOptional<z$1.ZodString>;
7328
+ metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7329
+ metrics: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7330
+ parent: z$1.ZodNullable<z$1.ZodObject<{
7331
+ logId: z$1.ZodString;
7332
+ toolSlug: z$1.ZodString;
7333
+ }, "strip", z$1.ZodTypeAny, {
7334
+ logId: string;
7335
+ toolSlug: string;
7336
+ }, {
7337
+ logId: string;
7338
+ toolSlug: string;
7339
+ }>>;
7340
+ } & {
7341
+ timings: z$1.ZodOptional<z$1.ZodObject<{
7342
+ /** Epoch milliseconds. */
7343
+ startTime: z$1.ZodNumber;
7344
+ /** Epoch milliseconds. */
7345
+ endTime: z$1.ZodNumber;
7346
+ }, "strip", z$1.ZodTypeAny, {
7347
+ startTime: number;
7348
+ endTime: number;
7349
+ }, {
7350
+ startTime: number;
7351
+ endTime: number;
7352
+ }>>;
7353
+ context: z$1.ZodObject<{
7354
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
7355
+ traceId: z$1.ZodOptional<z$1.ZodString>;
7356
+ requestId: z$1.ZodOptional<z$1.ZodString>;
7357
+ }, "strip", z$1.ZodTypeAny, {
7358
+ sessionId?: string | undefined;
7359
+ traceId?: string | undefined;
7360
+ requestId?: string | undefined;
7361
+ }, {
7362
+ sessionId?: string | undefined;
7363
+ traceId?: string | undefined;
7364
+ requestId?: string | undefined;
7365
+ }>;
7366
+ source: z$1.ZodObject<{
7367
+ host: z$1.ZodOptional<z$1.ZodString>;
7368
+ framework: z$1.ZodOptional<z$1.ZodString>;
7369
+ language: z$1.ZodOptional<z$1.ZodString>;
7370
+ }, "strip", z$1.ZodTypeAny, {
7371
+ host?: string | undefined;
7372
+ framework?: string | undefined;
7373
+ language?: string | undefined;
7374
+ }, {
7375
+ host?: string | undefined;
7376
+ framework?: string | undefined;
7377
+ language?: string | undefined;
7378
+ }>;
7379
+ data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
7380
+ }, "strip", z$1.ZodTypeAny, {
7381
+ type: string;
7382
+ status: "success" | "failed";
7383
+ data: Record<string, unknown>;
7384
+ id: string;
7385
+ metadata: Record<string, unknown>;
7386
+ timestamp: string;
7387
+ level: "error" | "warn" | "info";
7388
+ metrics: Record<string, unknown>;
7389
+ parent: {
7390
+ logId: string;
7391
+ toolSlug: string;
7392
+ } | null;
7393
+ context: {
7394
+ sessionId?: string | undefined;
7395
+ traceId?: string | undefined;
7396
+ requestId?: string | undefined;
7397
+ };
7398
+ source: {
7399
+ host?: string | undefined;
7400
+ framework?: string | undefined;
7401
+ language?: string | undefined;
7402
+ };
7403
+ message?: string | undefined;
7404
+ timings?: {
7405
+ startTime: number;
7406
+ endTime: number;
7407
+ } | undefined;
7408
+ }, {
7409
+ type: string;
7410
+ status: "success" | "failed";
7411
+ data: Record<string, unknown>;
7412
+ id: string;
7413
+ metadata: Record<string, unknown>;
7414
+ timestamp: string;
7415
+ level: "error" | "warn" | "info";
7416
+ metrics: Record<string, unknown>;
7417
+ parent: {
7418
+ logId: string;
7419
+ toolSlug: string;
7420
+ } | null;
7421
+ context: {
7422
+ sessionId?: string | undefined;
7423
+ traceId?: string | undefined;
7424
+ requestId?: string | undefined;
7425
+ };
7426
+ source: {
7427
+ host?: string | undefined;
7428
+ framework?: string | undefined;
7429
+ language?: string | undefined;
7430
+ };
7431
+ message?: string | undefined;
7432
+ timings?: {
7433
+ startTime: number;
7434
+ endTime: number;
7435
+ } | undefined;
7436
+ }>;
7437
+ type ToolExecutionLogDetail = z$1.infer<typeof ToolExecutionLogDetailSchema>;
7438
+ //#endregion
7439
+ //#region src/models/Logs.d.ts
7440
+ /**
7441
+ * `composio.logs` — tool-execution logs.
7442
+ *
7443
+ * @example
7444
+ * ```typescript
7445
+ * const { logs, nextCursor } = await composio.logs.search({
7446
+ * filters: [{ field: 'toolkit_slug', operator: '==', value: 'github' }],
7447
+ * limit: 20,
7448
+ * });
7449
+ * const detail = await composio.logs.get(logs[0].id);
7450
+ * ```
7451
+ */
7452
+ declare class Logs {
7453
+ private client;
7454
+ constructor(client: ComposioClient);
7455
+ /**
7456
+ * Search tool-execution logs with filters, a time range and cursor
7457
+ * pagination.
7458
+ *
7459
+ * @param {LogSearchParams} [params] - Filters, `timeRange`, `limit` and `cursor`
7460
+ * @returns {Promise<LogSearchResponse>} Matching logs and the next cursor
7461
+ * @throws {ValidationError} If the params fail validation
7462
+ *
7463
+ * @example
7464
+ * ```typescript
7465
+ * const { logs } = await composio.logs.search({
7466
+ * filters: [
7467
+ * { field: 'status', operator: '==', value: 'failed' },
7468
+ * { field: 'user_id', operator: '==', value: 'user_123' },
7469
+ * ],
7470
+ * timeRange: { from: Date.now() - 24 * 60 * 60 * 1000, to: Date.now() },
7471
+ * });
7472
+ * ```
7473
+ */
7474
+ search(params?: LogSearchParams, requestOptions?: ComposioRequestOptions): Promise<LogSearchResponse>;
7475
+ /**
7476
+ * Retrieve one tool-execution log with its full detail (timings, context,
7477
+ * source and raw `data`).
7478
+ *
7479
+ * @param {string} id - The log id
7480
+ * @returns {Promise<ToolExecutionLogDetail>} The log detail
7481
+ *
7482
+ * @example
7483
+ * ```typescript
7484
+ * const log = await composio.logs.get('log_abc123');
7485
+ * console.log(log.status, log.timings?.endTime);
7486
+ * ```
7487
+ */
7488
+ get(id: string, requestOptions?: ComposioRequestOptions): Promise<ToolExecutionLogDetail>;
7489
+ }
7490
+ //#endregion
7491
+ //#region src/types/keyring.types.d.ts
7492
+ /**
7493
+ * A public JWK a secret can be sealed to. Fields keep their JWK names so a
7494
+ * key can be handed straight to WebCrypto or a JOSE library.
7495
+ */
7496
+ declare const KeyringTransferKeySchema: z$1.ZodObject<{
7497
+ /** Key type. Always `RSA`. */
7498
+ kty: z$1.ZodString;
7499
+ /** RSA modulus, base64url-encoded. */
7500
+ n: z$1.ZodString;
7501
+ /** RSA public exponent, base64url-encoded. */
7502
+ e: z$1.ZodString;
7503
+ /** Key-management algorithm for the JWE (`RSA-OAEP-256`). Pair it with `A256GCM` content encryption. */
7504
+ alg: z$1.ZodString;
7505
+ /** Key use. Always `enc`. */
7506
+ use: z$1.ZodString;
7507
+ /** Key identifier. Put it in the JWE protected header. */
7508
+ kid: z$1.ZodString;
7509
+ }, "strip", z$1.ZodTypeAny, {
7510
+ kty: string;
7511
+ n: string;
7512
+ e: string;
7513
+ alg: string;
7514
+ use: string;
7515
+ kid: string;
7516
+ }, {
7517
+ kty: string;
7518
+ n: string;
7519
+ e: string;
7520
+ alg: string;
7521
+ use: string;
7522
+ kid: string;
7523
+ }>;
7524
+ type KeyringTransferKey = z$1.infer<typeof KeyringTransferKeySchema>;
7525
+ /**
7526
+ * Response of `composio.keyring.listTransferKeys()`.
7527
+ */
7528
+ declare const KeyringTransferKeysResponseSchema: z$1.ZodObject<{
7529
+ /** The `kid` of the key to seal new secrets to. */
7530
+ activeKid: z$1.ZodString;
7531
+ /** Every currently accepted transfer key, newest first. */
7532
+ keys: z$1.ZodArray<z$1.ZodObject<{
7533
+ /** Key type. Always `RSA`. */
7534
+ kty: z$1.ZodString;
7535
+ /** RSA modulus, base64url-encoded. */
7536
+ n: z$1.ZodString;
7537
+ /** RSA public exponent, base64url-encoded. */
7538
+ e: z$1.ZodString;
7539
+ /** Key-management algorithm for the JWE (`RSA-OAEP-256`). Pair it with `A256GCM` content encryption. */
7540
+ alg: z$1.ZodString;
7541
+ /** Key use. Always `enc`. */
7542
+ use: z$1.ZodString;
7543
+ /** Key identifier. Put it in the JWE protected header. */
7544
+ kid: z$1.ZodString;
7545
+ }, "strip", z$1.ZodTypeAny, {
7546
+ kty: string;
7547
+ n: string;
7548
+ e: string;
7549
+ alg: string;
7550
+ use: string;
7551
+ kid: string;
7552
+ }, {
7553
+ kty: string;
7554
+ n: string;
7555
+ e: string;
7556
+ alg: string;
7557
+ use: string;
7558
+ kid: string;
7559
+ }>, "many">;
7560
+ }, "strip", z$1.ZodTypeAny, {
7561
+ keys: {
7562
+ kty: string;
7563
+ n: string;
7564
+ e: string;
7565
+ alg: string;
7566
+ use: string;
7567
+ kid: string;
7568
+ }[];
7569
+ activeKid: string;
7570
+ }, {
7571
+ keys: {
7572
+ kty: string;
7573
+ n: string;
7574
+ e: string;
7575
+ alg: string;
7576
+ use: string;
7577
+ kid: string;
7578
+ }[];
7579
+ activeKid: string;
7580
+ }>;
7581
+ type KeyringTransferKeysResponse = z$1.infer<typeof KeyringTransferKeysResponseSchema>;
7582
+ //#endregion
7583
+ //#region src/models/Keyring.d.ts
7584
+ /**
7585
+ * `composio.keyring` — the organization's customer-managed keyring.
7586
+ *
7587
+ * @example
7588
+ * ```typescript
7589
+ * const { activeKid, keys } = await composio.keyring.listTransferKeys();
7590
+ * const sealingKey = keys.find(key => key.kid === activeKid);
7591
+ * ```
7592
+ */
7593
+ declare class Keyring {
7594
+ private client;
7595
+ constructor(client: ComposioClient);
7596
+ /**
7597
+ * Lists the public transfer keys of the organization's active customer
7598
+ * keyring, the keys a secret is sealed to before it is sent to Composio.
7599
+ *
7600
+ * Always seal new secrets to the key whose `kid` is `activeKid`: a JWE with
7601
+ * `RSA-OAEP-256` key management, `A256GCM` content encryption, and the
7602
+ * `kid` in the protected header. Older keys stay listed so values sealed to
7603
+ * them remain openable.
7604
+ *
7605
+ * The organization behind the API key must have an ACTIVE customer keyring
7606
+ * instance; otherwise the API answers 404.
7607
+ *
7608
+ * @returns {Promise<KeyringTransferKeysResponse>} The active key ID and every accepted public JWK, newest first
7609
+ *
7610
+ * @example
7611
+ * ```typescript
7612
+ * import { CompactEncrypt, importJWK } from 'jose';
7613
+ *
7614
+ * const { activeKid, keys } = await composio.keyring.listTransferKeys();
7615
+ * const jwk = keys.find(key => key.kid === activeKid)!;
7616
+ * const sealed = await new CompactEncrypt(new TextEncoder().encode(secret))
7617
+ * .setProtectedHeader({ alg: 'RSA-OAEP-256', enc: 'A256GCM', kid: activeKid })
7618
+ * .encrypt(await importJWK(jwk, 'RSA-OAEP-256'));
7619
+ * ```
7620
+ */
7621
+ listTransferKeys(requestOptions?: ComposioRequestOptions): Promise<KeyringTransferKeysResponse>;
7622
+ }
7623
+ //#endregion
7624
+ //#region src/utils/logger.d.ts
7625
+ declare const LOG_LEVELS: {
7626
+ readonly silent: -1;
7627
+ readonly error: 0;
7628
+ readonly warn: 1;
7629
+ readonly info: 2;
7630
+ readonly debug: 3;
7631
+ };
7632
+ type LogLevel = keyof typeof LOG_LEVELS;
7633
+ /**
7634
+ * Destination for SDK log output. Each method receives the already
7635
+ * formatted and redacted message as its single argument. `console` satisfies
7636
+ * this interface, and so do most structured loggers (pino, winston, ...).
7637
+ */
7638
+ interface ComposioLogger {
7639
+ error: (...args: unknown[]) => void;
7640
+ warn: (...args: unknown[]) => void;
7641
+ info: (...args: unknown[]) => void;
7642
+ debug: (...args: unknown[]) => void;
7643
+ }
7644
+ interface LoggerOptions {
7645
+ level?: LogLevel;
7646
+ includeTimestamp?: boolean;
7647
+ /** Where formatted output is written. Defaults to `console`. */
7648
+ sink?: ComposioLogger;
7649
+ }
7650
+ interface LoggerConfigureOptions {
7651
+ level?: LogLevel;
7652
+ sink?: ComposioLogger;
7653
+ }
7654
+ declare class Logger {
7655
+ private level;
7656
+ private readonly includeTimestamp;
7657
+ private sink;
7658
+ constructor(options?: LoggerOptions);
7659
+ /**
7660
+ * Reconfigure the level and/or sink in place. Omitted fields are left
7661
+ * unchanged, so `configure({ level: 'debug' })` keeps the current sink.
7662
+ */
7663
+ configure(options: LoggerConfigureOptions): void;
7664
+ getLevel(): LogLevel;
7665
+ private formatMessage;
7666
+ private shouldLog;
7667
+ error(...args: unknown[]): void;
7668
+ warn(...args: unknown[]): void;
7669
+ info(...args: unknown[]): void;
7670
+ debug(...args: unknown[]): void;
7671
+ }
7672
+ declare const logger: Logger;
7673
+ //#endregion
7674
+ //#region src/provider/OpenAIProvider.d.ts
7675
+ type OpenAiTool = OpenAI.ChatCompletionTool;
7676
+ type OpenAiToolCollection = Array<OpenAiTool>;
7677
+ declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection, OpenAiTool, McpServerGetResponse> {
7678
+ readonly name = "openai";
7679
+ /**
7680
+ * Creates a new instance of the OpenAIProvider.
7681
+ *
7682
+ * This is the default provider for the Composio SDK and is automatically
7683
+ * available without additional installation.
7684
+ *
7685
+ * @example
7686
+ * ```typescript
7687
+ * // The OpenAIProvider is used by default when initializing Composio
7688
+ * const composio = new Composio({
7689
+ * apiKey: 'your-api-key'
7690
+ * });
7691
+ *
7692
+ * // You can also explicitly specify it
7693
+ * const composio = new Composio({
7694
+ * apiKey: 'your-api-key',
7695
+ * provider: new OpenAIProvider()
7696
+ * });
7697
+ * ```
7698
+ */
7699
+ constructor();
7700
+ /**
7701
+ * Transform MCP URL response into OpenAI-specific format.
7702
+ * OpenAI uses the standard format by default.
7703
+ *
7704
+ * @param data - The MCP URL response data
7705
+ * @returns Standard MCP server response format
7706
+ */
7707
+ wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse;
7708
+ /**
7709
+ * Wraps a Composio tool in the OpenAI function calling format.
7710
+ *
7711
+ * This method transforms a Composio tool definition into the format
7712
+ * expected by OpenAI's function calling API.
7713
+ *
7714
+ * @param tool - The Composio tool to wrap
7715
+ * @returns The wrapped tool in OpenAI format
7716
+ *
7717
+ * @example
7718
+ * ```typescript
7719
+ * // Wrap a single tool for use with OpenAI
7720
+ * const composioTool = {
7721
+ * slug: 'SEARCH_TOOL',
7722
+ * description: 'Search for information',
7723
+ * inputParameters: {
7724
+ * type: 'object',
7725
+ * properties: {
7726
+ * query: { type: 'string' }
7727
+ * },
7728
+ * required: ['query']
7729
+ * }
7730
+ * };
7731
+ *
7732
+ * const openAITool = provider.wrapTool(composioTool);
7733
+ * ```
7734
+ */
7735
+ wrapTool: (tool: Tool) => OpenAiTool;
7736
+ /**
7737
+ * Wraps multiple Composio tools in the OpenAI function calling format.
7738
+ *
7739
+ * This method transforms a list of Composio tools into the format
7740
+ * expected by OpenAI's function calling API.
7741
+ *
7742
+ * @param tools - Array of Composio tools to wrap
7743
+ * @returns Array of wrapped tools in OpenAI format
7744
+ *
7745
+ * @example
7746
+ * ```typescript
7747
+ * // Wrap multiple tools for use with OpenAI
7748
+ * const composioTools = [
7749
+ * {
7750
+ * slug: 'SEARCH_TOOL',
7751
+ * description: 'Search for information',
7752
+ * inputParameters: {
7753
+ * type: 'object',
7754
+ * properties: {
7755
+ * query: { type: 'string' }
7756
+ * }
7757
+ * }
7758
+ * },
7759
+ * {
7760
+ * slug: 'WEATHER_TOOL',
7761
+ * description: 'Get weather information',
5319
7762
  * inputParameters: {
5320
7763
  * type: 'object',
5321
7764
  * properties: {
@@ -5560,15 +8003,32 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
5560
8003
  private client;
5561
8004
  private config?;
5562
8005
  constructor(client: Composio, config?: ComposioConfig<TProvider> | undefined);
8006
+ /**
8007
+ * Derives the MCP config for a session from the auth context the session
8008
+ * request was made with: the project key when one is configured, otherwise
8009
+ * the resolved user API key, plus the org/project scope when configured.
8010
+ * Headers are only attached when the MCP URL shares the client's API
8011
+ * origin. Any other destination throws when the caller passed `mcp: true`
8012
+ * and otherwise yields empty headers plus a warning; see
8013
+ * `buildMCPServerConfig`.
8014
+ */
5563
8015
  private createMCPServerConfig;
5564
8016
  /**
5565
8017
  * Creates a new tool router session for a user.
5566
8018
  * Use `sessionPreset: SessionPreset.DIRECT_TOOLS` when all needed tools
5567
8019
  * should be exposed directly; see `ToolRouterCreateSessionConfig`.
5568
8020
  *
8021
+ * The session's MCP config carries the session credential only when the
8022
+ * MCP URL shares the origin of the configured API base URL. When it does
8023
+ * not, `mcp: true` makes the call throw `ComposioMCPDestinationError`
8024
+ * (naming both origins, never a key); without `mcp: true` the session is
8025
+ * returned with `session.mcp.headers` empty and a warning naming both
8026
+ * origins is logged, so native tools keep working.
8027
+ *
5569
8028
  * @param userId {string} The user id to create the session for
5570
8029
  * @param config {ToolRouterCreateSessionConfig} The config for the tool router session
5571
8030
  * @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
8031
+ * @throws {ComposioMCPDestinationError} When `mcp: true` is passed and the MCP URL is not on the API origin
5572
8032
  *
5573
8033
  * @example
5574
8034
  * ```typescript
@@ -5592,8 +8052,17 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
5592
8052
  create(userId: string, config?: ToolRouterCreateSessionConfig, requestOptions?: ComposioRequestOptions): Promise<SessionWithoutMcp<TToolCollection, TTool, TProvider>>;
5593
8053
  /**
5594
8054
  * Use an existing session
8055
+ *
8056
+ * The session's MCP config carries the session credential only when the
8057
+ * MCP URL shares the origin of the configured API base URL. When it does
8058
+ * not, `mcp: true` makes the call throw `ComposioMCPDestinationError`
8059
+ * (naming both origins, never a key); without `mcp: true` the session is
8060
+ * returned with `session.mcp.headers` empty and a warning naming both
8061
+ * origins is logged, so native tools keep working.
8062
+ *
5595
8063
  * @param id {string} The id of the session to use
5596
8064
  * @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
8065
+ * @throws {ComposioMCPDestinationError} When `mcp: true` is passed and the MCP URL is not on the API origin
5597
8066
  *
5598
8067
  * @example
5599
8068
  * ```typescript
@@ -5641,10 +8110,62 @@ declare class Sessions<TToolCollection, TTool, TProvider extends BaseComposioPro
5641
8110
  //#region src/composio.d.ts
5642
8111
  type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unknown> = OpenAIProvider> = {
5643
8112
  /**
5644
- * The API key for the Composio API.
5645
- * @example 'sk-1234567890'
8113
+ * The project API key for the Composio API, sent as the `x-api-key` header.
8114
+ *
8115
+ * - A string is used as-is; the environment and the CLI user config file are not consulted.
8116
+ * - Omitted: falls back to `COMPOSIO_API_KEY`, then to the project key stored by the Composio
8117
+ * CLI in `~/.composio/user_data.json`. A stored user key (`uak_...`) is never used as a
8118
+ * project key; the SDK throws instead of sending it.
8119
+ * - `null`: disables project-key authentication entirely, including both fallbacks. The SDK
8120
+ * then requires another credential (`userApiKey`, `orgApiKey`, or an `x-user-api-key`
8121
+ * entry in `defaultHeaders`) and sends no `x-api-key`; an `x-api-key` entry in
8122
+ * `defaultHeaders` is rejected, also on `createSession()` clones.
8123
+ *
8124
+ * @example 'ak_1234567890'
5646
8125
  */
5647
8126
  apiKey?: string | null;
8127
+ /**
8128
+ * User API key (`uak_*`) for the organization, consumer, and user-scoped
8129
+ * endpoints reached through `getClient()` (for example `client.org.list()`).
8130
+ * Sent as `x-user-api-key` only on operations whose security scheme accepts
8131
+ * it, never alongside the project key. Falls back to
8132
+ * `process.env['COMPOSIO_USER_API_KEY']`; `null` disables that fallback.
8133
+ * Combine with `apiKey: null` to authenticate with the user key alone.
8134
+ * @example 'uak_1234567890'
8135
+ */
8136
+ userApiKey?: string | null;
8137
+ /**
8138
+ * Organization API key (`oak_*`) for the organization-owner endpoints reached
8139
+ * through `getClient()` (for example `client.org.owner.project.list()`).
8140
+ * Sent as `x-org-api-key` only on operations whose security scheme accepts
8141
+ * it, never alongside the project key. Falls back to
8142
+ * `process.env['COMPOSIO_ORG_API_KEY']`; `null` disables that fallback.
8143
+ * Combine with `apiKey: null` to authenticate with the organization key alone.
8144
+ * @example 'oak_1234567890'
8145
+ */
8146
+ orgApiKey?: string | null;
8147
+ /**
8148
+ * Organization nano ID that scopes user-key requests, sent as the
8149
+ * `x-org-id` header on every request and exported with the session MCP
8150
+ * config. This is the short public identifier the API returns as `org_id`
8151
+ * (for example from the consumer project resolve endpoint), not a UUID.
8152
+ * Must be supplied together with `projectId`; without an explicit scope a
8153
+ * user API key addresses the API default (the developer project). May also
8154
+ * be supplied as the `x-org-id` entry in `defaultHeaders`; the two must
8155
+ * agree.
8156
+ * @example 'org_9f2k1x'
8157
+ */
8158
+ orgId?: string;
8159
+ /**
8160
+ * Project nano ID that scopes user-key requests, sent as the
8161
+ * `x-project-id` header on every request and exported with the session MCP
8162
+ * config. This is the short public identifier the API returns as
8163
+ * `project_nano_id`, not the project UUID. Must be supplied together with
8164
+ * `orgId`. May also be supplied as the `x-project-id` entry in
8165
+ * `defaultHeaders`; the two must agree.
8166
+ * @example 'proj_4b8m2q'
8167
+ */
8168
+ projectId?: string;
5648
8169
  /**
5649
8170
  * The base URL of the Composio API.
5650
8171
  * @example 'https://backend.composio.dev'
@@ -5714,8 +8235,13 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
5714
8235
  */
5715
8236
  host?: string;
5716
8237
  /**
5717
- * Request options to be passed to the Composio API client.
5718
- * This is useful for passing in a custom fetch implementation.
8238
+ * Default headers attached to every request made through this instance.
8239
+ *
8240
+ * `x-user-api-key` is the one header the SDK treats as a credential: together
8241
+ * with `apiKey: null` it authenticates requests with a Composio user API key
8242
+ * instead of a project key. The project key is only ever set from `apiKey`:
8243
+ * an `x-api-key` entry is rejected when `apiKey` is `null`. Every other
8244
+ * header is passed through untouched.
5719
8245
  * @example
5720
8246
  * ```typescript
5721
8247
  * const composio = new Composio({
@@ -5770,6 +8296,43 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
5770
8296
  * ```
5771
8297
  */
5772
8298
  toolkitVersions?: ToolkitVersionParam;
8299
+ /**
8300
+ * Destination for SDK log output. Messages are formatted and have
8301
+ * credential-shaped values redacted before they reach the sink, so any
8302
+ * object with `error`/`warn`/`info`/`debug` methods works (`console`, pino,
8303
+ * winston, ...).
8304
+ *
8305
+ * Runtime deprecation warnings raised by the underlying API client (response
8306
+ * `Deprecation`/`Sunset` headers and deprecated request inputs) are routed
8307
+ * through this logger as well.
8308
+ *
8309
+ * The SDK logger is process-wide: configuring it on one `Composio` instance
8310
+ * affects every instance, and the last configured instance wins.
8311
+ *
8312
+ * @default console
8313
+ * @example
8314
+ * ```typescript
8315
+ * const composio = new Composio({
8316
+ * apiKey: 'your-api-key',
8317
+ * logger: pino(),
8318
+ * logLevel: 'warn',
8319
+ * });
8320
+ * ```
8321
+ */
8322
+ logger?: ComposioLogger;
8323
+ /**
8324
+ * Minimum level to emit: `'silent' | 'error' | 'warn' | 'info' | 'debug'`.
8325
+ * Takes precedence over the `COMPOSIO_LOG_LEVEL` environment variable.
8326
+ * Also gates the API client's runtime deprecation warnings (`'silent'` turns
8327
+ * them off). The client's per-request lifecycle logs are emitted at
8328
+ * `'debug'` only.
8329
+ *
8330
+ * Like `logger`, this applies process-wide and the last configured instance
8331
+ * wins. The API client's own level is fixed when each instance is created.
8332
+ *
8333
+ * @default 'info' (or `COMPOSIO_LOG_LEVEL` when set)
8334
+ */
8335
+ logLevel?: LogLevel;
5773
8336
  };
5774
8337
  /**
5775
8338
  * This is the core class for Composio.
@@ -5803,6 +8366,15 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5803
8366
  authConfigs: AuthConfigs;
5804
8367
  /** Manage authenticated connections */
5805
8368
  connectedAccounts: ConnectedAccounts;
8369
+ /**
8370
+ * Manage the project's webhook subscription (`webhooks.subscriptions`) and
8371
+ * inbound per-toolkit webhook endpoints (`webhooks.endpoints`).
8372
+ */
8373
+ webhooks: Webhooks;
8374
+ /** Search and inspect tool-execution logs */
8375
+ logs: Logs;
8376
+ /** Public transfer keys of the organization's customer-managed keyring */
8377
+ keyring: Keyring;
5806
8378
  /**
5807
8379
  * Experimental SDK methods whose shape may change in future releases.
5808
8380
  * Prefer domain-specific mounts (for example
@@ -5998,4 +8570,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5998
8570
  flush(): Promise<void>;
5999
8571
  }
6000
8572
  //#endregion
6001
- export { WebhookPayloadV3 as $, ToolkitsListParamsSchema as $t, TriggerInstanceUpsertResponse as A, ToolKitItem as At, TriggersTypeListParamsSchema as B, ToolkitAuthFieldsResponse as Bt, TriggerInstanceManageDeleteResponseSchema as C, AuthSchemeTypes as Ct, TriggerInstanceManageUpdateResponseSchema as D, CreateAuthConfigResponseSchema as Dt, TriggerInstanceManageUpdateResponse as E, CreateAuthConfigResponse as Et, TriggerSubscribeParamSchema as F, ToolKitMetaSchema as Ft, VerifyWebhookParamsSchema as G, ToolkitMangedByEnum as Gt, TriggersTypeListResponseSchema as H, ToolkitCategory as Ht, TriggerSubscribeParams as I, ToolkitAuthConfigDetails as It, WebhookPayloadSchema as J, ToolkitRetrieveCategoriesResponseSchema as Jt, VerifyWebhookResult as K, ToolkitMangedByEnumSchema as Kt, TriggerType as L, ToolkitAuthConfigDetailsSchema as Lt, TriggerStatusEnum as M, ToolKitListResponse as Mt, TriggerStatusType as N, ToolKitListResponseSchema as Nt, TriggerInstanceUpsertParams as O, CreateComposioManagedAuthConfigParamsSchema as Ot, TriggerStatuses as P, ToolKitMeta as Pt, WebhookPayloadV2Schema as Q, ToolkitSortByEnumSchema as Qt, TriggerTypeSchema as R, ToolkitAuthField as Rt, TriggerInstanceManageDeleteResponse as S, AuthSchemeType as St, TriggerInstanceManageUpdateParamsSchema as T, CreateAuthConfigParamsSchema as Tt, TriggersTypeRetrieveResponse as U, ToolkitCategorySchema as Ut, TriggersTypeListResponse as V, ToolkitAuthFieldsResponseSchema as Vt, VerifyWebhookParams as W, ToolkitListParams as Wt, WebhookPayloadV1Schema as X, ToolkitRetrieveResponseSchema as Xt, WebhookPayloadV1 as Y, ToolkitRetrieveResponse as Yt, WebhookPayloadV2 as Z, ToolkitSortByEnum as Zt, TriggerInstanceListActiveParamsSchema as _, AuthConfigUpdateParams as _t, MCP as a, WebhookVersion as at, TriggerInstanceListActiveResponseItemSchema as b, AuthDefaultConfigUpdateParamsSchema as bt, IncomingTriggerPayload as c, AuthConfigListParams as ct, SetWebhookSubscriptionParams as d, AuthConfigListResponseSchema as dt, WebhookPayloadV3Schema as et, SetWebhookSubscriptionParamsSchema as f, AuthConfigRetrieveResponse as ft, TriggerInstanceListActiveParams as g, AuthConfigTypes as gt, TriggerEventData as h, AuthConfigType as ht, OpenAIProvider as i, WebhookTriggerPayloadV3Schema as it, TriggerInstanceUpsertResponseSchema as j, ToolKitItemSchema as jt, TriggerInstanceUpsertParamsSchema as k, CreateCustomAuthConfigParamsSchema as kt, IncomingTriggerPayloadSchema as l, AuthConfigListParamsSchema as lt, TriggerEvent as m, AuthConfigToolAccessConfigSchema as mt, ComposioConfig as n, WebhookSubscription as nt, Experimental as o, WebhookVersions as ot, TriggerData as p, AuthConfigRetrieveResponseSchema as pt, WebhookPayload as q, ToolkitRetrieveCategoriesResponse as qt, Sessions as r, WebhookTriggerPayloadV3 as rt, DefaultWebhookSubscriptionEvents as s, AuthConfigCreationToolAccessConfigSchema as st, Composio$1 as t, WebhookRequestLike as tt, ParseWebhookOptions as u, AuthConfigListResponse as ut, TriggerInstanceListActiveResponse as v, AuthConfigUpdateParamsSchema as vt, TriggerInstanceManageUpdateParams as w, CreateAuthConfigParams as wt, TriggerInstanceListActiveResponseSchema as x, AuthSchemeEnum as xt, TriggerInstanceListActiveResponseItem as y, AuthCustomConfigUpdateParamsSchema as yt, TriggersTypeListParams as z, ToolkitAuthFieldSchema as zt };
8573
+ export { WebhookSubscriptionEventTypeSchema as $, AuthConfigToolAccessConfigSchema as $n, ToolkitRetrieveResponseSchema as $r, TriggerEvent as $t, ToolExecutionLogParentSchema as A, VerifyWebhookParamsSchema as An, ToolkitChangelogItemSchema as Ar, UsageBreakdownGroup as At, WebhookEndpointListItemSchema as B, WebhookRequestLike as Bn, ToolkitListGrantContextsParamsSchema as Br, UsageOrderBySchema as Bt, LogSearchResponseSchema as C, TriggerTypeSchema as Cn, ToolkitAuthField as Cr, CustomToolkitSyncResponse as Ct, ToolExecutionLogDetail as D, TriggersTypeListResponseSchema as Dn, ToolkitCategory as Dr, CustomToolkitUpsertResponse as Dt, ToolExecutionLog as E, TriggersTypeListResponse as En, ToolkitAuthFieldsResponseSchema as Er, CustomToolkitUpsertParamsSchema as Et, Webhooks as F, WebhookPayloadV1Schema as Fn, ToolkitGetManyParams as Fr, UsageBreakdownResponseSchema as Ft, WebhookEndpointReplaceParams as G, WebhookVersions as Gn, ToolkitMangedByEnumSchema as Gr, UsageSummaryResponseSchema as Gt, WebhookEndpointListParamsSchema as H, WebhookTriggerPayloadV3 as Hn, ToolkitListGrantContextsResponseSchema as Hr, UsageSummaryParams as Ht, WebhookEndpoint as I, WebhookPayloadV2 as In, ToolkitGetManySlugsSchema as Ir, UsageEntitySummary as It, WebhookEndpointUpdateParams as J, AuthConfigListParamsSchema as Jn, ToolkitRecommendScopesResponse as Jr, IncomingTriggerPayloadSchema as Jt, WebhookEndpointReplaceParamsSchema as K, AuthConfigCreationToolAccessConfigSchema as Kn, ToolkitRecommendScopesParams as Kr, DefaultWebhookSubscriptionEvents as Kt, WebhookEndpointCreateParams as L, WebhookPayloadV2Schema as Ln, ToolkitGrantContextDimension as Lr, UsageEntitySummarySchema as Lt, ToolExecutionLogStatusSchema as M, WebhookPayload as Mn, ToolkitChangelogResponseSchema as Mr, UsageBreakdownParams as Mt, WebhookEndpoints as N, WebhookPayloadSchema as Nn, ToolkitConditionalScope as Nr, UsageBreakdownParamsSchema as Nt, ToolExecutionLogDetailSchema as O, TriggersTypeRetrieveResponse as On, ToolkitCategorySchema as Or, CustomToolkitUpsertResponseSchema as Ot, WebhookSubscriptions as P, WebhookPayloadV1 as Pn, ToolkitConditionalScopeSchema as Pr, UsageBreakdownResponse as Pt, WebhookSubscriptionEventType as Q, AuthConfigRetrieveResponseSchema as Qn, ToolkitRetrieveResponse as Qr, TriggerData as Qt, WebhookEndpointCreateParamsSchema as R, WebhookPayloadV3 as Rn, ToolkitGrantContextDimensionSchema as Rr, UsageFilters as Rt, LogSearchResponse as S, TriggerType as Sn, ToolkitAuthConfigDetailsSchema as Sr, CustomToolkitSyncParamsSchema as St, LogSearchTimeRangeSchema as T, TriggersTypeListParamsSchema as Tn, ToolkitAuthFieldsResponse as Tr, CustomToolkitUpsertParams as Tt, WebhookEndpointListResponse as U, WebhookTriggerPayloadV3Schema as Un, ToolkitListParams as Ur, UsageSummaryParamsSchema as Ut, WebhookEndpointListParams as V, WebhookSubscription as Vn, ToolkitListGrantContextsResponse as Vr, UsageOrderDirectionSchema as Vt, WebhookEndpointListResponseSchema as W, WebhookVersion as Wn, ToolkitMangedByEnum as Wr, UsageSummaryResponse as Wt, WebhookSubscriptionDeleteResponse as X, AuthConfigListResponseSchema as Xn, ToolkitRetrieveCategoriesResponse as Xr, SetWebhookSubscriptionParams as Xt, WebhookEndpointUpdateParamsSchema as Y, AuthConfigListResponse as Yn, ToolkitRecommendScopesResponseSchema as Yr, ParseWebhookOptions as Yt, WebhookSubscriptionDeleteResponseSchema as Z, AuthConfigRetrieveResponse as Zn, ToolkitRetrieveCategoriesResponseSchema as Zr, SetWebhookSubscriptionParamsSchema as Zt, LogSearchFilterOperator as _, TriggerStatusEnum as _n, ToolKitListResponse as _r, CustomToolkitAuthScheme as _t, ComposioLogger as a, ToolkitsListParamsSchema as ai, TriggerInstanceListActiveResponseItemSchema as an, AuthDefaultConfigUpdateParamsSchema as ar, WebhookSubscriptionListResponseSchema as at, LogSearchParams as b, TriggerSubscribeParamSchema as bn, ToolKitMetaSchema as br, CustomToolkitDeleteResponseSchema as bt, Keyring as c, TriggerInstanceManageDeleteResponseSchema as cn, AuthSchemeTypes as cr, WebhookSubscriptionSchema as ct, KeyringTransferKeysResponse as d, TriggerInstanceManageUpdateResponse as dn, CreateAuthConfigResponse as dr, WebhookSubscriptionUpdateParams as dt, ToolkitSortByEnum as ei, TriggerEventData as en, AuthConfigType as er, WebhookSubscriptionEventTypesResponse as et, KeyringTransferKeysResponseSchema as f, TriggerInstanceManageUpdateResponseSchema as fn, CreateAuthConfigResponseSchema as fr, WebhookSubscriptionUpdateParamsSchema as ft, LogSearchFilterFieldSchema as g, TriggerInstanceUpsertResponseSchema as gn, ToolKitItemSchema as gr, CustomToolkits as gt, LogSearchFilterField as h, TriggerInstanceUpsertResponse as hn, ToolKitItem as hr, Experimental as ht, OpenAIProvider as i, ToolkitsGetManyParamsSchema as ii, TriggerInstanceListActiveResponseItem as in, AuthCustomConfigUpdateParamsSchema as ir, WebhookSubscriptionListResponse as it, ToolExecutionLogSchema as j, VerifyWebhookResult as jn, ToolkitChangelogResponse as jr, UsageBreakdownGroupSchema as jt, ToolExecutionLogLevelSchema as k, VerifyWebhookParams as kn, ToolkitChangelogItem as kr, Usage as kt, KeyringTransferKey as l, TriggerInstanceManageUpdateParams as ln, CreateAuthConfigParams as lr, WebhookSubscriptionSetParams as lt, LogSearchFilter as m, TriggerInstanceUpsertParamsSchema as mn, CreateCustomAuthConfigParamsSchema as mr, MCP as mt, ComposioConfig as n, ToolkitVersionChangelog as ni, TriggerInstanceListActiveParamsSchema as nn, AuthConfigUpdateParams as nr, WebhookSubscriptionListParams as nt, LogLevel as o, TriggerInstanceListActiveResponseSchema as on, AuthSchemeEnum as or, WebhookSubscriptionRotateSecretResponse as ot, Logs as p, TriggerInstanceUpsertParams as pn, CreateComposioManagedAuthConfigParamsSchema as pr, WebhookVersionSchema as pt, WebhookEndpointSchema as q, AuthConfigListParams as qn, ToolkitRecommendScopesParamsSchema as qr, IncomingTriggerPayload as qt, Sessions as r, ToolkitVersionChangelogSchema as ri, TriggerInstanceListActiveResponse as rn, AuthConfigUpdateParamsSchema as rr, WebhookSubscriptionListParamsSchema as rt, logger as s, TriggerInstanceManageDeleteResponse as sn, AuthSchemeType as sr, WebhookSubscriptionRotateSecretResponseSchema as st, Composio$1 as t, ToolkitSortByEnumSchema as ti, TriggerInstanceListActiveParams as tn, AuthConfigTypes as tr, WebhookSubscriptionEventTypesResponseSchema as tt, KeyringTransferKeySchema as u, TriggerInstanceManageUpdateParamsSchema as un, CreateAuthConfigParamsSchema as ur, WebhookSubscriptionSetParamsSchema as ut, LogSearchFilterOperatorSchema as v, TriggerStatusType as vn, ToolKitListResponseSchema as vr, CustomToolkitAuthSchemeSchema as vt, LogSearchTimeRange as w, TriggersTypeListParams as wn, ToolkitAuthFieldSchema as wr, CustomToolkitSyncResponseSchema as wt, LogSearchParamsSchema as x, TriggerSubscribeParams as xn, ToolkitAuthConfigDetails as xr, CustomToolkitSyncParams as xt, LogSearchFilterSchema as y, TriggerStatuses as yn, ToolKitMeta as yr, CustomToolkitDeleteResponse as yt, WebhookEndpointListItem as z, WebhookPayloadV3Schema as zn, ToolkitListGrantContextsParams as zr, UsageFiltersSchema as zt };