@composio/client 0.1.0-alpha.36 → 0.1.0-alpha.37

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 (223) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/client.d.mts +11 -14
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -14
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -6
  7. package/client.js.map +1 -1
  8. package/client.mjs +5 -8
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/values.js +3 -3
  11. package/internal/utils/values.js.map +1 -1
  12. package/internal/utils/values.mjs +3 -3
  13. package/internal/utils/values.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/auth-configs.d.mts +3 -3
  16. package/resources/auth-configs.d.mts.map +1 -1
  17. package/resources/auth-configs.d.ts +3 -3
  18. package/resources/auth-configs.d.ts.map +1 -1
  19. package/resources/cli.d.mts +1 -76
  20. package/resources/cli.d.mts.map +1 -1
  21. package/resources/cli.d.ts +1 -76
  22. package/resources/cli.d.ts.map +1 -1
  23. package/resources/cli.js +0 -28
  24. package/resources/cli.js.map +1 -1
  25. package/resources/cli.mjs +0 -28
  26. package/resources/cli.mjs.map +1 -1
  27. package/resources/connected-accounts.d.mts +468 -4
  28. package/resources/connected-accounts.d.mts.map +1 -1
  29. package/resources/connected-accounts.d.ts +468 -4
  30. package/resources/connected-accounts.d.ts.map +1 -1
  31. package/resources/index.d.mts +5 -6
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +5 -6
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -5
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +2 -3
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/link.d.mts +1 -91
  40. package/resources/link.d.mts.map +1 -1
  41. package/resources/link.d.ts +1 -91
  42. package/resources/link.d.ts.map +1 -1
  43. package/resources/link.js +0 -13
  44. package/resources/link.js.map +1 -1
  45. package/resources/link.mjs +0 -13
  46. package/resources/link.mjs.map +1 -1
  47. package/resources/mcp/index.d.mts +1 -1
  48. package/resources/mcp/index.d.mts.map +1 -1
  49. package/resources/mcp/index.d.ts +1 -1
  50. package/resources/mcp/index.d.ts.map +1 -1
  51. package/resources/mcp/index.js.map +1 -1
  52. package/resources/mcp/index.mjs.map +1 -1
  53. package/resources/mcp/mcp.d.mts +1 -95
  54. package/resources/mcp/mcp.d.mts.map +1 -1
  55. package/resources/mcp/mcp.d.ts +1 -95
  56. package/resources/mcp/mcp.d.ts.map +1 -1
  57. package/resources/mcp/mcp.js +0 -22
  58. package/resources/mcp/mcp.js.map +1 -1
  59. package/resources/mcp/mcp.mjs +0 -22
  60. package/resources/mcp/mcp.mjs.map +1 -1
  61. package/resources/tool-router.d.mts +77 -0
  62. package/resources/tool-router.d.mts.map +1 -0
  63. package/resources/tool-router.d.ts +77 -0
  64. package/resources/tool-router.d.ts.map +1 -0
  65. package/resources/tool-router.js +32 -0
  66. package/resources/tool-router.js.map +1 -0
  67. package/resources/tool-router.mjs +28 -0
  68. package/resources/tool-router.mjs.map +1 -0
  69. package/resources/toolkits.d.mts +16 -2
  70. package/resources/toolkits.d.mts.map +1 -1
  71. package/resources/toolkits.d.ts +16 -2
  72. package/resources/toolkits.d.ts.map +1 -1
  73. package/resources/toolkits.js +2 -2
  74. package/resources/toolkits.js.map +1 -1
  75. package/resources/toolkits.mjs +2 -2
  76. package/resources/toolkits.mjs.map +1 -1
  77. package/resources/tools.d.mts +72 -2
  78. package/resources/tools.d.mts.map +1 -1
  79. package/resources/tools.d.ts +72 -2
  80. package/resources/tools.d.ts.map +1 -1
  81. package/resources/trigger-instances/index.d.mts +0 -1
  82. package/resources/trigger-instances/index.d.mts.map +1 -1
  83. package/resources/trigger-instances/index.d.ts +0 -1
  84. package/resources/trigger-instances/index.d.ts.map +1 -1
  85. package/resources/trigger-instances/index.js +1 -3
  86. package/resources/trigger-instances/index.js.map +1 -1
  87. package/resources/trigger-instances/index.mjs +0 -1
  88. package/resources/trigger-instances/index.mjs.map +1 -1
  89. package/resources/trigger-instances/trigger-instances.d.mts +0 -4
  90. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  91. package/resources/trigger-instances/trigger-instances.d.ts +0 -4
  92. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  93. package/resources/trigger-instances/trigger-instances.js +0 -4
  94. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  95. package/resources/trigger-instances/trigger-instances.mjs +0 -4
  96. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  97. package/src/client.ts +16 -46
  98. package/src/internal/utils/values.ts +3 -3
  99. package/src/resources/auth-configs.ts +6 -3
  100. package/src/resources/cli.ts +0 -89
  101. package/src/resources/connected-accounts.ts +967 -67
  102. package/src/resources/index.ts +6 -19
  103. package/src/resources/link.ts +1 -137
  104. package/src/resources/mcp/index.ts +0 -2
  105. package/src/resources/mcp/mcp.ts +0 -123
  106. package/src/resources/tool-router.ts +96 -0
  107. package/src/resources/toolkits.ts +24 -2
  108. package/src/resources/tools.ts +132 -2
  109. package/src/resources/trigger-instances/index.ts +0 -7
  110. package/src/resources/trigger-instances/trigger-instances.ts +0 -18
  111. package/src/version.ts +1 -1
  112. package/version.d.mts +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/version.mjs +1 -1
  116. package/resources/org/api-key.d.mts +0 -44
  117. package/resources/org/api-key.d.mts.map +0 -1
  118. package/resources/org/api-key.d.ts +0 -44
  119. package/resources/org/api-key.d.ts.map +0 -1
  120. package/resources/org/api-key.js +0 -34
  121. package/resources/org/api-key.js.map +0 -1
  122. package/resources/org/api-key.mjs +0 -30
  123. package/resources/org/api-key.mjs.map +0 -1
  124. package/resources/org/index.d.mts +0 -4
  125. package/resources/org/index.d.mts.map +0 -1
  126. package/resources/org/index.d.ts +0 -4
  127. package/resources/org/index.d.ts.map +0 -1
  128. package/resources/org/index.js +0 -11
  129. package/resources/org/index.js.map +0 -1
  130. package/resources/org/index.mjs +0 -5
  131. package/resources/org/index.mjs.map +0 -1
  132. package/resources/org/org.d.mts +0 -14
  133. package/resources/org/org.d.mts.map +0 -1
  134. package/resources/org/org.d.ts +0 -14
  135. package/resources/org/org.d.ts.map +0 -1
  136. package/resources/org/org.js +0 -21
  137. package/resources/org/org.js.map +0 -1
  138. package/resources/org/org.mjs +0 -16
  139. package/resources/org/org.mjs.map +0 -1
  140. package/resources/org/project/api-keys.d.mts +0 -142
  141. package/resources/org/project/api-keys.d.mts.map +0 -1
  142. package/resources/org/project/api-keys.d.ts +0 -142
  143. package/resources/org/project/api-keys.d.ts.map +0 -1
  144. package/resources/org/project/api-keys.js +0 -62
  145. package/resources/org/project/api-keys.js.map +0 -1
  146. package/resources/org/project/api-keys.mjs +0 -58
  147. package/resources/org/project/api-keys.mjs.map +0 -1
  148. package/resources/org/project/index.d.mts +0 -5
  149. package/resources/org/project/index.d.mts.map +0 -1
  150. package/resources/org/project/index.d.ts +0 -5
  151. package/resources/org/project/index.d.ts.map +0 -1
  152. package/resources/org/project/index.js +0 -13
  153. package/resources/org/project/index.js.map +0 -1
  154. package/resources/org/project/index.mjs +0 -6
  155. package/resources/org/project/index.mjs.map +0 -1
  156. package/resources/org/project/project.d.mts +0 -268
  157. package/resources/org/project/project.d.mts.map +0 -1
  158. package/resources/org/project/project.d.ts +0 -268
  159. package/resources/org/project/project.d.ts.map +0 -1
  160. package/resources/org/project/project.js +0 -90
  161. package/resources/org/project/project.js.map +0 -1
  162. package/resources/org/project/project.mjs +0 -85
  163. package/resources/org/project/project.mjs.map +0 -1
  164. package/resources/org/project/trigger.d.mts +0 -145
  165. package/resources/org/project/trigger.d.mts.map +0 -1
  166. package/resources/org/project/trigger.d.ts +0 -145
  167. package/resources/org/project/trigger.d.ts.map +0 -1
  168. package/resources/org/project/trigger.js +0 -35
  169. package/resources/org/project/trigger.js.map +0 -1
  170. package/resources/org/project/trigger.mjs +0 -31
  171. package/resources/org/project/trigger.mjs.map +0 -1
  172. package/resources/org/project/webhook.d.mts +0 -166
  173. package/resources/org/project/webhook.d.mts.map +0 -1
  174. package/resources/org/project/webhook.d.ts +0 -166
  175. package/resources/org/project/webhook.d.ts.map +0 -1
  176. package/resources/org/project/webhook.js +0 -74
  177. package/resources/org/project/webhook.js.map +0 -1
  178. package/resources/org/project/webhook.mjs +0 -70
  179. package/resources/org/project/webhook.mjs.map +0 -1
  180. package/resources/org/project.d.mts +0 -2
  181. package/resources/org/project.d.mts.map +0 -1
  182. package/resources/org/project.d.ts +0 -2
  183. package/resources/org/project.d.ts.map +0 -1
  184. package/resources/org/project.js +0 -6
  185. package/resources/org/project.js.map +0 -1
  186. package/resources/org/project.mjs +0 -3
  187. package/resources/org/project.mjs.map +0 -1
  188. package/resources/org.d.mts +0 -2
  189. package/resources/org.d.mts.map +0 -1
  190. package/resources/org.d.ts +0 -2
  191. package/resources/org.d.ts.map +0 -1
  192. package/resources/org.js +0 -6
  193. package/resources/org.js.map +0 -1
  194. package/resources/org.mjs +0 -3
  195. package/resources/org.mjs.map +0 -1
  196. package/resources/team-members.d.mts +0 -55
  197. package/resources/team-members.d.mts.map +0 -1
  198. package/resources/team-members.d.ts +0 -55
  199. package/resources/team-members.d.ts.map +0 -1
  200. package/resources/team-members.js +0 -38
  201. package/resources/team-members.js.map +0 -1
  202. package/resources/team-members.mjs +0 -34
  203. package/resources/team-members.mjs.map +0 -1
  204. package/resources/trigger-instances/handle.d.mts +0 -25
  205. package/resources/trigger-instances/handle.d.mts.map +0 -1
  206. package/resources/trigger-instances/handle.d.ts +0 -25
  207. package/resources/trigger-instances/handle.d.ts.map +0 -1
  208. package/resources/trigger-instances/handle.js +0 -18
  209. package/resources/trigger-instances/handle.js.map +0 -1
  210. package/resources/trigger-instances/handle.mjs +0 -14
  211. package/resources/trigger-instances/handle.mjs.map +0 -1
  212. package/src/resources/org/api-key.ts +0 -57
  213. package/src/resources/org/index.ts +0 -13
  214. package/src/resources/org/org.ts +0 -41
  215. package/src/resources/org/project/api-keys.ts +0 -180
  216. package/src/resources/org/project/index.ts +0 -35
  217. package/src/resources/org/project/project.ts +0 -381
  218. package/src/resources/org/project/trigger.ts +0 -188
  219. package/src/resources/org/project/webhook.ts +0 -205
  220. package/src/resources/org/project.ts +0 -3
  221. package/src/resources/org.ts +0 -3
  222. package/src/resources/team-members.ts +0 -101
  223. package/src/resources/trigger-instances/handle.ts +0 -53
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-instances.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAMkB;AAClB,+DAAsC;AACtC,wCAAkG;AAGlG,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBhE,CAAC;IAdC,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAlBD,4CAkBC;AAmMD,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC;AACjC,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":3,"file":"trigger-instances.js","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAkG;AAGlG,uDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBhE,CAAC;IAdC,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAjBD,4CAiBC;AAmMD,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -1,14 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
- import * as HandleAPI from "./handle.mjs";
4
- import { Handle, } from "./handle.mjs";
5
3
  import * as ManageAPI from "./manage.mjs";
6
4
  import { Manage } from "./manage.mjs";
7
5
  import { path } from "../../internal/utils/path.mjs";
8
6
  export class TriggerInstances extends APIResource {
9
7
  constructor() {
10
8
  super(...arguments);
11
- this.handle = new HandleAPI.Handle(this._client);
12
9
  this.manage = new ManageAPI.Manage(this._client);
13
10
  }
14
11
  listActive(query = {}, options) {
@@ -18,6 +15,5 @@ export class TriggerInstances extends APIResource {
18
15
  return this._client.post(path `/api/v3/trigger_instances/${slug}/upsert`, { body, ...options });
19
16
  }
20
17
  }
21
- TriggerInstances.Handle = Handle;
22
18
  TriggerInstances.Manage = Manage;
23
19
  //# sourceMappingURL=trigger-instances.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-instances.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,GAKP;OACM,KAAK,SAAS;OACd,EAAE,MAAM,EAAkE;OAG1E,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBhE,CAAC;IAdC,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAmMD,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC;AACjC,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"trigger-instances.mjs","sourceRoot":"","sources":["../../src/resources/trigger-instances/trigger-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAkE;OAG1E,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBhE,CAAC;IAdC,UAAU,CACR,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CACJ,IAAY,EACZ,OAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,IAAI,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAmMD,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC"}
package/src/client.ts CHANGED
@@ -33,14 +33,7 @@ import {
33
33
  AuthConfigUpdateStatusResponse,
34
34
  AuthConfigs,
35
35
  } from './resources/auth-configs';
36
- import {
37
- Cli,
38
- CliCreateSessionResponse,
39
- CliGetSessionParams,
40
- CliGetSessionResponse,
41
- CliLinkSessionParams,
42
- CliLinkSessionResponse,
43
- } from './resources/cli';
36
+ import { Cli, CliCreateSessionResponse, CliGetSessionParams, CliGetSessionResponse } from './resources/cli';
44
37
  import {
45
38
  ConnectedAccountCreateParams,
46
39
  ConnectedAccountCreateResponse,
@@ -61,31 +54,23 @@ import {
61
54
  FileListResponse,
62
55
  Files,
63
56
  } from './resources/files';
64
- import {
65
- Link,
66
- LinkCreateParams,
67
- LinkCreateResponse,
68
- LinkRetrieveResponse,
69
- LinkSubmitParams,
70
- LinkSubmitResponse,
71
- } from './resources/link';
57
+ import { Link, LinkCreateParams, LinkCreateResponse } from './resources/link';
72
58
  import {
73
59
  Migration,
74
60
  MigrationRetrieveNanoidParams,
75
61
  MigrationRetrieveNanoidResponse,
76
62
  } from './resources/migration';
77
63
  import {
78
- TeamMemberListResponse,
79
- TeamMemberRemoveResponse,
80
- TeamMemberUpdateParams,
81
- TeamMemberUpdateResponse,
82
- TeamMembers,
83
- } from './resources/team-members';
64
+ ToolRouter,
65
+ ToolRouterCreateSessionParams,
66
+ ToolRouterCreateSessionResponse,
67
+ } from './resources/tool-router';
84
68
  import {
85
69
  ToolkitListParams,
86
70
  ToolkitListResponse,
87
71
  ToolkitRetrieveCategoriesParams,
88
72
  ToolkitRetrieveCategoriesResponse,
73
+ ToolkitRetrieveParams,
89
74
  ToolkitRetrieveResponse,
90
75
  Toolkits,
91
76
  } from './resources/toolkits';
@@ -132,10 +117,7 @@ import {
132
117
  McpRetrieveResponse,
133
118
  McpUpdateParams,
134
119
  McpUpdateResponse,
135
- McpValidateParams,
136
- McpValidateResponse,
137
120
  } from './resources/mcp/mcp';
138
- import { Org } from './resources/org/org';
139
121
  import {
140
122
  TriggerInstanceListActiveParams,
141
123
  TriggerInstanceListActiveResponse,
@@ -838,8 +820,6 @@ export class Composio {
838
820
  authConfigs: API.AuthConfigs = new API.AuthConfigs(this);
839
821
  connectedAccounts: API.ConnectedAccounts = new API.ConnectedAccounts(this);
840
822
  link: API.Link = new API.Link(this);
841
- org: API.Org = new API.Org(this);
842
- teamMembers: API.TeamMembers = new API.TeamMembers(this);
843
823
  toolkits: API.Toolkits = new API.Toolkits(this);
844
824
  tools: API.Tools = new API.Tools(this);
845
825
  triggerInstances: API.TriggerInstances = new API.TriggerInstances(this);
@@ -848,13 +828,12 @@ export class Composio {
848
828
  files: API.Files = new API.Files(this);
849
829
  migration: API.Migration = new API.Migration(this);
850
830
  cli: API.Cli = new API.Cli(this);
831
+ toolRouter: API.ToolRouter = new API.ToolRouter(this);
851
832
  }
852
833
 
853
834
  Composio.AuthConfigs = AuthConfigs;
854
835
  Composio.ConnectedAccounts = ConnectedAccounts;
855
836
  Composio.Link = Link;
856
- Composio.Org = Org;
857
- Composio.TeamMembers = TeamMembers;
858
837
  Composio.Toolkits = Toolkits;
859
838
  Composio.Tools = Tools;
860
839
  Composio.TriggerInstances = TriggerInstances;
@@ -863,6 +842,7 @@ Composio.Mcp = Mcp;
863
842
  Composio.Files = Files;
864
843
  Composio.Migration = Migration;
865
844
  Composio.Cli = Cli;
845
+ Composio.ToolRouter = ToolRouter;
866
846
 
867
847
  export declare namespace Composio {
868
848
  export type RequestOptions = Opts.RequestOptions;
@@ -898,20 +878,7 @@ export declare namespace Composio {
898
878
  export {
899
879
  Link as Link,
900
880
  type LinkCreateResponse as LinkCreateResponse,
901
- type LinkRetrieveResponse as LinkRetrieveResponse,
902
- type LinkSubmitResponse as LinkSubmitResponse,
903
881
  type LinkCreateParams as LinkCreateParams,
904
- type LinkSubmitParams as LinkSubmitParams,
905
- };
906
-
907
- export { Org as Org };
908
-
909
- export {
910
- TeamMembers as TeamMembers,
911
- type TeamMemberUpdateResponse as TeamMemberUpdateResponse,
912
- type TeamMemberListResponse as TeamMemberListResponse,
913
- type TeamMemberRemoveResponse as TeamMemberRemoveResponse,
914
- type TeamMemberUpdateParams as TeamMemberUpdateParams,
915
882
  };
916
883
 
917
884
  export {
@@ -919,6 +886,7 @@ export declare namespace Composio {
919
886
  type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
920
887
  type ToolkitListResponse as ToolkitListResponse,
921
888
  type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
889
+ type ToolkitRetrieveParams as ToolkitRetrieveParams,
922
890
  type ToolkitListParams as ToolkitListParams,
923
891
  type ToolkitRetrieveCategoriesParams as ToolkitRetrieveCategoriesParams,
924
892
  };
@@ -963,12 +931,10 @@ export declare namespace Composio {
963
931
  type McpListResponse as McpListResponse,
964
932
  type McpDeleteResponse as McpDeleteResponse,
965
933
  type McpRetrieveAppResponse as McpRetrieveAppResponse,
966
- type McpValidateResponse as McpValidateResponse,
967
934
  type McpCreateParams as McpCreateParams,
968
935
  type McpUpdateParams as McpUpdateParams,
969
936
  type McpListParams as McpListParams,
970
937
  type McpRetrieveAppParams as McpRetrieveAppParams,
971
- type McpValidateParams as McpValidateParams,
972
938
  };
973
939
 
974
940
  export {
@@ -989,8 +955,12 @@ export declare namespace Composio {
989
955
  Cli as Cli,
990
956
  type CliCreateSessionResponse as CliCreateSessionResponse,
991
957
  type CliGetSessionResponse as CliGetSessionResponse,
992
- type CliLinkSessionResponse as CliLinkSessionResponse,
993
958
  type CliGetSessionParams as CliGetSessionParams,
994
- type CliLinkSessionParams as CliLinkSessionParams,
959
+ };
960
+
961
+ export {
962
+ ToolRouter as ToolRouter,
963
+ type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
964
+ type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
995
965
  };
996
966
  }
@@ -76,21 +76,21 @@ export const coerceBoolean = (value: unknown): boolean => {
76
76
  };
77
77
 
78
78
  export const maybeCoerceInteger = (value: unknown): number | undefined => {
79
- if (value === undefined) {
79
+ if (value == null) {
80
80
  return undefined;
81
81
  }
82
82
  return coerceInteger(value);
83
83
  };
84
84
 
85
85
  export const maybeCoerceFloat = (value: unknown): number | undefined => {
86
- if (value === undefined) {
86
+ if (value == null) {
87
87
  return undefined;
88
88
  }
89
89
  return coerceFloat(value);
90
90
  };
91
91
 
92
92
  export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
93
- if (value === undefined) {
93
+ if (value == null) {
94
94
  return undefined;
95
95
  }
96
96
  return coerceBoolean(value);
@@ -196,7 +196,8 @@ export interface AuthConfigRetrieveResponse {
196
196
  | 'GOOGLE_SERVICE_ACCOUNT'
197
197
  | 'NO_AUTH'
198
198
  | 'BASIC_WITH_JWT'
199
- | 'CALCOM_AUTH';
199
+ | 'CALCOM_AUTH'
200
+ | 'SERVICE_ACCOUNT';
200
201
 
201
202
  /**
202
203
  * ISO 8601 date-time when the auth config was created
@@ -371,7 +372,8 @@ export namespace AuthConfigListResponse {
371
372
  | 'GOOGLE_SERVICE_ACCOUNT'
372
373
  | 'NO_AUTH'
373
374
  | 'BASIC_WITH_JWT'
374
- | 'CALCOM_AUTH';
375
+ | 'CALCOM_AUTH'
376
+ | 'SERVICE_ACCOUNT';
375
377
 
376
378
  /**
377
379
  * ISO 8601 date-time when the auth config was created
@@ -534,7 +536,8 @@ export namespace AuthConfigCreateParams {
534
536
  | 'GOOGLE_SERVICE_ACCOUNT'
535
537
  | 'NO_AUTH'
536
538
  | 'BASIC_WITH_JWT'
537
- | 'CALCOM_AUTH';
539
+ | 'CALCOM_AUTH'
540
+ | 'SERVICE_ACCOUNT';
538
541
 
539
542
  type: 'use_custom_auth';
540
543
 
@@ -10,11 +10,6 @@ export class Cli extends APIResource {
10
10
  * first step in the CLI authentication flow, creating a session that can later be
11
11
  * linked to a user account. The generated code is displayed to the user in the CLI
12
12
  * and should be entered in the web interface to complete authentication.
13
- *
14
- * @example
15
- * ```ts
16
- * const response = await client.cli.createSession();
17
- * ```
18
13
  */
19
14
  createSession(options?: RequestOptions): APIPromise<CliCreateSessionResponse> {
20
15
  return this._client.post('/api/v3/cli/create-session', options);
@@ -25,34 +20,10 @@ export class Cli extends APIResource {
25
20
  * or the 6-character code. This endpoint is used by both the CLI client to check
26
21
  * if the session has been linked, and by the web interface to display session
27
22
  * details before linking.
28
- *
29
- * @example
30
- * ```ts
31
- * const response = await client.cli.getSession({
32
- * id: 'ABC123',
33
- * });
34
- * ```
35
23
  */
36
24
  getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse> {
37
25
  return this._client.get('/api/v3/cli/get-session', { query, ...options });
38
26
  }
39
-
40
- /**
41
- * Links a pending CLI session to the currently authenticated user. This is the
42
- * final step in the CLI authentication flow, where the user enters the code in the
43
- * web interface and their account is associated with the CLI session, allowing the
44
- * CLI to act on their behalf.
45
- *
46
- * @example
47
- * ```ts
48
- * const response = await client.cli.linkSession({
49
- * id: 'ABC123',
50
- * });
51
- * ```
52
- */
53
- linkSession(body: CliLinkSessionParams, options?: RequestOptions): APIPromise<CliLinkSessionResponse> {
54
- return this._client.put('/api/v3/cli/link-session', { body, ...options });
55
- }
56
27
  }
57
28
 
58
29
  export interface CliCreateSessionResponse {
@@ -134,57 +105,6 @@ export namespace CliGetSessionResponse {
134
105
  }
135
106
  }
136
107
 
137
- export interface CliLinkSessionResponse {
138
- /**
139
- * The unique identifier for the CLI session
140
- */
141
- id: string;
142
-
143
- /**
144
- * Information about the linked account. Always present for successful responses
145
- * from this endpoint.
146
- */
147
- account: CliLinkSessionResponse.Account;
148
-
149
- /**
150
- * The 6-character hexadecimal code used for CLI login
151
- */
152
- code: string;
153
-
154
- /**
155
- * The ISO timestamp when the session expires
156
- */
157
- expiresAt: string;
158
-
159
- /**
160
- * The current status of the session
161
- */
162
- status: 'pending' | 'linked';
163
- }
164
-
165
- export namespace CliLinkSessionResponse {
166
- /**
167
- * Information about the linked account. Always present for successful responses
168
- * from this endpoint.
169
- */
170
- export interface Account {
171
- /**
172
- * The ID of the linked account
173
- */
174
- id: string;
175
-
176
- /**
177
- * The email address of the linked account
178
- */
179
- email: string;
180
-
181
- /**
182
- * The display name of the linked account
183
- */
184
- name: string;
185
- }
186
- }
187
-
188
108
  export interface CliGetSessionParams {
189
109
  /**
190
110
  * CLI session ID (UUID format) or 6-character code to check. Both formats are
@@ -193,19 +113,10 @@ export interface CliGetSessionParams {
193
113
  id: string;
194
114
  }
195
115
 
196
- export interface CliLinkSessionParams {
197
- /**
198
- * The CLI session ID or code to link to the current user
199
- */
200
- id: string;
201
- }
202
-
203
116
  export declare namespace Cli {
204
117
  export {
205
118
  type CliCreateSessionResponse as CliCreateSessionResponse,
206
119
  type CliGetSessionResponse as CliGetSessionResponse,
207
- type CliLinkSessionResponse as CliLinkSessionResponse,
208
120
  type CliGetSessionParams as CliGetSessionParams,
209
- type CliLinkSessionParams as CliLinkSessionParams,
210
121
  };
211
122
  }