@composio/client 0.1.0-alpha.14 → 0.1.0-alpha.16

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 (254) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +12 -24
  3. package/client.d.mts +7 -7
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +7 -7
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -3
  10. package/client.mjs.map +1 -1
  11. package/internal/detect-platform.js +3 -3
  12. package/internal/detect-platform.js.map +1 -1
  13. package/internal/detect-platform.mjs +3 -3
  14. package/internal/detect-platform.mjs.map +1 -1
  15. package/internal/shim-types.d.mts +11 -22
  16. package/internal/shim-types.d.mts.map +1 -0
  17. package/internal/shim-types.d.ts +11 -22
  18. package/internal/shim-types.d.ts.map +1 -0
  19. package/internal/shim-types.js +4 -0
  20. package/internal/shim-types.js.map +1 -0
  21. package/internal/shim-types.mjs +3 -0
  22. package/internal/shim-types.mjs.map +1 -0
  23. package/internal/shims.d.mts +2 -2
  24. package/internal/shims.d.mts.map +1 -1
  25. package/internal/shims.d.ts +2 -2
  26. package/internal/shims.d.ts.map +1 -1
  27. package/package.json +1 -4
  28. package/resources/auth-configs.d.mts +3 -3
  29. package/resources/auth-configs.d.mts.map +1 -1
  30. package/resources/auth-configs.d.ts +3 -3
  31. package/resources/auth-configs.d.ts.map +1 -1
  32. package/resources/connected-accounts.d.mts +5262 -52
  33. package/resources/connected-accounts.d.mts.map +1 -1
  34. package/resources/connected-accounts.d.ts +5262 -52
  35. package/resources/connected-accounts.d.ts.map +1 -1
  36. package/resources/index.d.mts +3 -3
  37. package/resources/index.d.mts.map +1 -1
  38. package/resources/index.d.ts +3 -3
  39. package/resources/index.d.ts.map +1 -1
  40. package/resources/index.js +3 -3
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs +1 -1
  43. package/resources/index.mjs.map +1 -1
  44. package/resources/mcp/index.d.mts +1 -1
  45. package/resources/mcp/index.d.mts.map +1 -1
  46. package/resources/mcp/index.d.ts +1 -1
  47. package/resources/mcp/index.d.ts.map +1 -1
  48. package/resources/mcp/index.js.map +1 -1
  49. package/resources/mcp/index.mjs.map +1 -1
  50. package/resources/mcp/mcp.d.mts +99 -1
  51. package/resources/mcp/mcp.d.mts.map +1 -1
  52. package/resources/mcp/mcp.d.ts +99 -1
  53. package/resources/mcp/mcp.d.ts.map +1 -1
  54. package/resources/mcp/mcp.js +22 -0
  55. package/resources/mcp/mcp.js.map +1 -1
  56. package/resources/mcp/mcp.mjs +22 -0
  57. package/resources/mcp/mcp.mjs.map +1 -1
  58. package/resources/org/project/api-keys.d.mts +0 -15
  59. package/resources/org/project/api-keys.d.mts.map +1 -1
  60. package/resources/org/project/api-keys.d.ts +0 -15
  61. package/resources/org/project/api-keys.d.ts.map +1 -1
  62. package/resources/tools.d.mts +4 -5
  63. package/resources/tools.d.mts.map +1 -1
  64. package/resources/tools.d.ts +4 -5
  65. package/resources/tools.d.ts.map +1 -1
  66. package/resources/trigger-instances/index.d.mts +2 -1
  67. package/resources/trigger-instances/index.d.mts.map +1 -1
  68. package/resources/trigger-instances/index.d.ts +2 -1
  69. package/resources/trigger-instances/index.d.ts.map +1 -1
  70. package/resources/trigger-instances/index.js +3 -1
  71. package/resources/trigger-instances/index.js.map +1 -1
  72. package/resources/trigger-instances/index.mjs +1 -0
  73. package/resources/trigger-instances/index.mjs.map +1 -1
  74. package/resources/trigger-instances/manage.d.mts +26 -0
  75. package/resources/trigger-instances/manage.d.mts.map +1 -0
  76. package/resources/trigger-instances/manage.d.ts +26 -0
  77. package/resources/trigger-instances/manage.d.ts.map +1 -0
  78. package/resources/trigger-instances/manage.js +16 -0
  79. package/resources/trigger-instances/manage.js.map +1 -0
  80. package/resources/trigger-instances/manage.mjs +12 -0
  81. package/resources/trigger-instances/manage.mjs.map +1 -0
  82. package/resources/trigger-instances/trigger-instances.d.mts +15 -68
  83. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  84. package/resources/trigger-instances/trigger-instances.d.ts +15 -68
  85. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  86. package/resources/trigger-instances/trigger-instances.js +4 -7
  87. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  88. package/resources/trigger-instances/trigger-instances.mjs +4 -7
  89. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  90. package/resources/v3/admin.d.mts +100 -0
  91. package/resources/v3/admin.d.mts.map +1 -0
  92. package/resources/v3/admin.d.ts +100 -0
  93. package/resources/v3/admin.d.ts.map +1 -0
  94. package/resources/v3/admin.js +54 -0
  95. package/resources/v3/admin.js.map +1 -0
  96. package/resources/v3/admin.mjs +50 -0
  97. package/resources/v3/admin.mjs.map +1 -0
  98. package/resources/v3/auth/auth.d.mts +10 -0
  99. package/resources/v3/auth/auth.d.mts.map +1 -0
  100. package/resources/v3/auth/auth.d.ts +10 -0
  101. package/resources/v3/auth/auth.d.ts.map +1 -0
  102. package/resources/{auth → v3/auth}/auth.js +2 -2
  103. package/resources/v3/auth/auth.js.map +1 -0
  104. package/resources/{auth → v3/auth}/auth.mjs +1 -1
  105. package/resources/v3/auth/auth.mjs.map +1 -0
  106. package/resources/v3/auth/index.d.mts +3 -0
  107. package/resources/v3/auth/index.d.mts.map +1 -0
  108. package/resources/v3/auth/index.d.ts +3 -0
  109. package/resources/v3/auth/index.d.ts.map +1 -0
  110. package/resources/v3/auth/index.js.map +1 -0
  111. package/resources/v3/auth/index.mjs.map +1 -0
  112. package/resources/{auth → v3/auth}/session.d.mts +16 -10
  113. package/resources/v3/auth/session.d.mts.map +1 -0
  114. package/resources/{auth → v3/auth}/session.d.ts +16 -10
  115. package/resources/v3/auth/session.d.ts.map +1 -0
  116. package/resources/{auth → v3/auth}/session.js +8 -2
  117. package/resources/v3/auth/session.js.map +1 -0
  118. package/resources/{auth → v3/auth}/session.mjs +8 -2
  119. package/resources/v3/auth/session.mjs.map +1 -0
  120. package/resources/{auth.d.mts.map → v3/auth.d.mts.map} +1 -1
  121. package/resources/v3/auth.d.ts.map +1 -0
  122. package/resources/{auth.js → v3/auth.js} +1 -1
  123. package/resources/v3/auth.js.map +1 -0
  124. package/resources/v3/auth.mjs.map +1 -0
  125. package/resources/v3/cli.d.mts +167 -0
  126. package/resources/v3/cli.d.mts.map +1 -0
  127. package/resources/v3/cli.d.ts +167 -0
  128. package/resources/v3/cli.d.ts.map +1 -0
  129. package/resources/v3/cli.js +55 -0
  130. package/resources/v3/cli.js.map +1 -0
  131. package/resources/v3/cli.mjs +51 -0
  132. package/resources/v3/cli.mjs.map +1 -0
  133. package/resources/v3/index.d.mts +6 -0
  134. package/resources/v3/index.d.mts.map +1 -0
  135. package/resources/v3/index.d.ts +6 -0
  136. package/resources/v3/index.d.ts.map +1 -0
  137. package/resources/v3/index.js +15 -0
  138. package/resources/v3/index.js.map +1 -0
  139. package/resources/v3/index.mjs +7 -0
  140. package/resources/v3/index.mjs.map +1 -0
  141. package/resources/v3/internal/action-execution.d.mts +153 -0
  142. package/resources/v3/internal/action-execution.d.mts.map +1 -0
  143. package/resources/v3/internal/action-execution.d.ts +153 -0
  144. package/resources/v3/internal/action-execution.d.ts.map +1 -0
  145. package/resources/v3/internal/action-execution.js +38 -0
  146. package/resources/v3/internal/action-execution.js.map +1 -0
  147. package/resources/v3/internal/action-execution.mjs +34 -0
  148. package/resources/v3/internal/action-execution.mjs.map +1 -0
  149. package/resources/v3/internal/index.d.mts +4 -0
  150. package/resources/v3/internal/index.d.mts.map +1 -0
  151. package/resources/v3/internal/index.d.ts +4 -0
  152. package/resources/v3/internal/index.d.ts.map +1 -0
  153. package/resources/v3/internal/index.js +11 -0
  154. package/resources/v3/internal/index.js.map +1 -0
  155. package/resources/v3/internal/index.mjs +5 -0
  156. package/resources/v3/internal/index.mjs.map +1 -0
  157. package/resources/v3/internal/internal.d.mts +14 -0
  158. package/resources/v3/internal/internal.d.mts.map +1 -0
  159. package/resources/v3/internal/internal.d.ts +14 -0
  160. package/resources/v3/internal/internal.d.ts.map +1 -0
  161. package/resources/v3/internal/internal.js +21 -0
  162. package/resources/v3/internal/internal.js.map +1 -0
  163. package/resources/v3/internal/internal.mjs +16 -0
  164. package/resources/v3/internal/internal.mjs.map +1 -0
  165. package/resources/v3/internal/trigger.d.mts +84 -0
  166. package/resources/v3/internal/trigger.d.mts.map +1 -0
  167. package/resources/v3/internal/trigger.d.ts +84 -0
  168. package/resources/v3/internal/trigger.d.ts.map +1 -0
  169. package/resources/v3/internal/trigger.js +23 -0
  170. package/resources/v3/internal/trigger.js.map +1 -0
  171. package/resources/v3/internal/trigger.mjs +19 -0
  172. package/resources/v3/internal/trigger.mjs.map +1 -0
  173. package/resources/v3/internal.d.mts +2 -0
  174. package/resources/v3/internal.d.mts.map +1 -0
  175. package/resources/v3/internal.d.ts +2 -0
  176. package/resources/v3/internal.d.ts.map +1 -0
  177. package/resources/v3/internal.js +6 -0
  178. package/resources/v3/internal.js.map +1 -0
  179. package/resources/v3/internal.mjs +3 -0
  180. package/resources/v3/internal.mjs.map +1 -0
  181. package/resources/v3/v3.d.mts +22 -0
  182. package/resources/v3/v3.d.mts.map +1 -0
  183. package/resources/v3/v3.d.ts +22 -0
  184. package/resources/v3/v3.d.ts.map +1 -0
  185. package/resources/v3/v3.js +29 -0
  186. package/resources/v3/v3.js.map +1 -0
  187. package/resources/v3/v3.mjs +24 -0
  188. package/resources/v3/v3.mjs.map +1 -0
  189. package/resources/v3.d.mts +2 -0
  190. package/resources/v3.d.mts.map +1 -0
  191. package/resources/v3.d.ts +2 -0
  192. package/resources/v3.d.ts.map +1 -0
  193. package/resources/v3.js +6 -0
  194. package/resources/v3.js.map +1 -0
  195. package/resources/v3.mjs +3 -0
  196. package/resources/v3.mjs.map +1 -0
  197. package/src/client.ts +9 -11
  198. package/src/internal/detect-platform.ts +3 -3
  199. package/src/internal/shim-types.ts +26 -0
  200. package/src/internal/shims.ts +2 -2
  201. package/src/resources/auth-configs.ts +0 -3
  202. package/src/resources/connected-accounts.ts +10261 -298
  203. package/src/resources/index.ts +3 -4
  204. package/src/resources/mcp/index.ts +2 -0
  205. package/src/resources/mcp/mcp.ts +128 -0
  206. package/src/resources/org/project/api-keys.ts +0 -18
  207. package/src/resources/tools.ts +5 -6
  208. package/src/resources/trigger-instances/index.ts +6 -3
  209. package/src/resources/trigger-instances/manage.ts +46 -0
  210. package/src/resources/trigger-instances/trigger-instances.ts +21 -87
  211. package/src/resources/v3/admin.ts +141 -0
  212. package/src/resources/{auth → v3/auth}/auth.ts +3 -3
  213. package/src/resources/{auth → v3/auth}/index.ts +1 -1
  214. package/src/resources/{auth → v3/auth}/session.ts +16 -10
  215. package/src/resources/v3/cli.ts +209 -0
  216. package/src/resources/v3/index.ts +20 -0
  217. package/src/resources/v3/internal/action-execution.ts +236 -0
  218. package/src/resources/v3/internal/index.ts +10 -0
  219. package/src/resources/v3/internal/internal.ts +35 -0
  220. package/src/resources/v3/internal/trigger.ts +122 -0
  221. package/src/resources/v3/internal.ts +3 -0
  222. package/src/resources/v3/v3.ts +59 -0
  223. package/src/resources/v3.ts +3 -0
  224. package/src/version.ts +1 -1
  225. package/version.d.mts +1 -1
  226. package/version.d.ts +1 -1
  227. package/version.js +1 -1
  228. package/version.mjs +1 -1
  229. package/resources/auth/auth.d.mts +0 -10
  230. package/resources/auth/auth.d.mts.map +0 -1
  231. package/resources/auth/auth.d.ts +0 -10
  232. package/resources/auth/auth.d.ts.map +0 -1
  233. package/resources/auth/auth.js.map +0 -1
  234. package/resources/auth/auth.mjs.map +0 -1
  235. package/resources/auth/index.d.mts +0 -3
  236. package/resources/auth/index.d.mts.map +0 -1
  237. package/resources/auth/index.d.ts +0 -3
  238. package/resources/auth/index.d.ts.map +0 -1
  239. package/resources/auth/index.js.map +0 -1
  240. package/resources/auth/index.mjs.map +0 -1
  241. package/resources/auth/session.d.mts.map +0 -1
  242. package/resources/auth/session.d.ts.map +0 -1
  243. package/resources/auth/session.js.map +0 -1
  244. package/resources/auth/session.mjs.map +0 -1
  245. package/resources/auth.d.ts.map +0 -1
  246. package/resources/auth.js.map +0 -1
  247. package/resources/auth.mjs.map +0 -1
  248. package/src/internal/shim-types.d.ts +0 -28
  249. /package/resources/{auth → v3/auth}/index.js +0 -0
  250. /package/resources/{auth → v3/auth}/index.mjs +0 -0
  251. /package/resources/{auth.d.mts → v3/auth.d.mts} +0 -0
  252. /package/resources/{auth.d.ts → v3/auth.d.ts} +0 -0
  253. /package/resources/{auth.mjs → v3/auth.mjs} +0 -0
  254. /package/src/resources/{auth.ts → v3/auth.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/resources/v3/internal.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./internal/index.mjs";
3
+ //# sourceMappingURL=internal.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.mjs","sourceRoot":"","sources":["../../src/resources/v3/internal.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,22 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as AdminAPI from "./admin.mjs";
3
+ import { Admin, AdminListConnectionsParams, AdminListConnectionsResponse, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from "./admin.mjs";
4
+ import * as CliAPI from "./cli.mjs";
5
+ import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.mjs";
6
+ import * as AuthAPI from "./auth/auth.mjs";
7
+ import { Auth } from "./auth/auth.mjs";
8
+ import * as InternalAPI from "./internal/internal.mjs";
9
+ import { Internal } from "./internal/internal.mjs";
10
+ export declare class V3 extends APIResource {
11
+ auth: AuthAPI.Auth;
12
+ admin: AdminAPI.Admin;
13
+ cli: CliAPI.Cli;
14
+ internal: InternalAPI.Internal;
15
+ }
16
+ export declare namespace V3 {
17
+ export { Auth as Auth };
18
+ export { Admin as Admin, type AdminListConnectionsResponse as AdminListConnectionsResponse, type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse, type AdminListConnectionsParams as AdminListConnectionsParams, type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams, };
19
+ export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
20
+ export { Internal as Internal };
21
+ }
22
+ //# sourceMappingURL=v3.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,KAAK,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC/B;OACM,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
@@ -0,0 +1,22 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as AdminAPI from "./admin.js";
3
+ import { Admin, AdminListConnectionsParams, AdminListConnectionsResponse, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from "./admin.js";
4
+ import * as CliAPI from "./cli.js";
5
+ import { Cli, CliCreateSessionResponse, CliLinkSessionParams, CliLinkSessionResponse, CliRetrieveSessionParams, CliRetrieveSessionResponse } from "./cli.js";
6
+ import * as AuthAPI from "./auth/auth.js";
7
+ import { Auth } from "./auth/auth.js";
8
+ import * as InternalAPI from "./internal/internal.js";
9
+ import { Internal } from "./internal/internal.js";
10
+ export declare class V3 extends APIResource {
11
+ auth: AuthAPI.Auth;
12
+ admin: AdminAPI.Admin;
13
+ cli: CliAPI.Cli;
14
+ internal: InternalAPI.Internal;
15
+ }
16
+ export declare namespace V3 {
17
+ export { Auth as Auth };
18
+ export { Admin as Admin, type AdminListConnectionsResponse as AdminListConnectionsResponse, type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse, type AdminListConnectionsParams as AdminListConnectionsParams, type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams, };
19
+ export { Cli as Cli, type CliCreateSessionResponse as CliCreateSessionResponse, type CliLinkSessionResponse as CliLinkSessionResponse, type CliRetrieveSessionResponse as CliRetrieveSessionResponse, type CliLinkSessionParams as CliLinkSessionParams, type CliRetrieveSessionParams as CliRetrieveSessionParams, };
20
+ export { Internal as Internal };
21
+ }
22
+ //# sourceMappingURL=v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,KAAK,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC/B;OACM,KAAK,MAAM;OACX,EACL,GAAG,EACH,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC3B;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAC/C,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.V3 = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const AdminAPI = tslib_1.__importStar(require("./admin.js"));
8
+ const admin_1 = require("./admin.js");
9
+ const CliAPI = tslib_1.__importStar(require("./cli.js"));
10
+ const cli_1 = require("./cli.js");
11
+ const AuthAPI = tslib_1.__importStar(require("./auth/auth.js"));
12
+ const auth_1 = require("./auth/auth.js");
13
+ const InternalAPI = tslib_1.__importStar(require("./internal/internal.js"));
14
+ const internal_1 = require("./internal/internal.js");
15
+ class V3 extends resource_1.APIResource {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.auth = new AuthAPI.Auth(this._client);
19
+ this.admin = new AdminAPI.Admin(this._client);
20
+ this.cli = new CliAPI.Cli(this._client);
21
+ this.internal = new InternalAPI.Internal(this._client);
22
+ }
23
+ }
24
+ exports.V3 = V3;
25
+ V3.Auth = auth_1.Auth;
26
+ V3.Admin = admin_1.Admin;
27
+ V3.Cli = cli_1.Cli;
28
+ V3.Internal = internal_1.Internal;
29
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAMiB;AACjB,yDAAgC;AAChC,kCAOe;AACf,gEAAuC;AACvC,yCAAmC;AACnC,4EAAmD;AACnD,qDAA+C;AAE/C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AALD,gBAKC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,SAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -0,0 +1,24 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as AdminAPI from "./admin.mjs";
4
+ import { Admin, } from "./admin.mjs";
5
+ import * as CliAPI from "./cli.mjs";
6
+ import { Cli, } from "./cli.mjs";
7
+ import * as AuthAPI from "./auth/auth.mjs";
8
+ import { Auth } from "./auth/auth.mjs";
9
+ import * as InternalAPI from "./internal/internal.mjs";
10
+ import { Internal } from "./internal/internal.mjs";
11
+ export class V3 extends APIResource {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.auth = new AuthAPI.Auth(this._client);
15
+ this.admin = new AdminAPI.Admin(this._client);
16
+ this.cli = new CliAPI.Cli(this._client);
17
+ this.internal = new InternalAPI.Internal(this._client);
18
+ }
19
+ }
20
+ V3.Auth = Auth;
21
+ V3.Admin = Admin;
22
+ V3.Cli = Cli;
23
+ V3.Internal = Internal;
24
+ //# sourceMappingURL=v3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,KAAK,GAKN;OACM,KAAK,MAAM;OACX,EACL,GAAG,GAMJ;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./v3/index.mjs";
2
+ //# sourceMappingURL=v3.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.d.mts","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./v3/index.js";
2
+ //# sourceMappingURL=v3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.d.ts","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./v3/index.js"), exports);
6
+ //# sourceMappingURL=v3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.js","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./v3/index.mjs";
3
+ //# sourceMappingURL=v3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../src/resources/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -98,7 +98,6 @@ import {
98
98
  import { readEnv } from './internal/utils/env';
99
99
  import { formatRequestDetails, loggerFor } from './internal/utils/log';
100
100
  import { isEmptyObj } from './internal/utils/values';
101
- import { Auth } from './resources/auth/auth';
102
101
  import {
103
102
  Mcp,
104
103
  McpCreateParams,
@@ -111,18 +110,18 @@ import {
111
110
  McpRetrieveResponse,
112
111
  McpUpdateParams,
113
112
  McpUpdateResponse,
113
+ McpValidateParams,
114
+ McpValidateResponse,
114
115
  } from './resources/mcp/mcp';
115
116
  import { Org } from './resources/org/org';
116
117
  import {
117
- TriggerInstanceDeleteResponse,
118
118
  TriggerInstanceListActiveParams,
119
119
  TriggerInstanceListActiveResponse,
120
- TriggerInstanceUpdateStatusParams,
121
- TriggerInstanceUpdateStatusResponse,
122
120
  TriggerInstanceUpsertParams,
123
121
  TriggerInstanceUpsertResponse,
124
122
  TriggerInstances,
125
123
  } from './resources/trigger-instances/trigger-instances';
124
+ import { V3 } from './resources/v3/v3';
126
125
 
127
126
  const environments = {
128
127
  production: 'https://backend.composio.dev',
@@ -806,7 +805,6 @@ export class Composio {
806
805
 
807
806
  static toFile = Uploads.toFile;
808
807
 
809
- auth: API.Auth = new API.Auth(this);
810
808
  authConfigs: API.AuthConfigs = new API.AuthConfigs(this);
811
809
  connectedAccounts: API.ConnectedAccounts = new API.ConnectedAccounts(this);
812
810
  org: API.Org = new API.Org(this);
@@ -818,8 +816,8 @@ export class Composio {
818
816
  mcp: API.Mcp = new API.Mcp(this);
819
817
  files: API.Files = new API.Files(this);
820
818
  migration: API.Migration = new API.Migration(this);
819
+ v3: API.V3 = new API.V3(this);
821
820
  }
822
- Composio.Auth = Auth;
823
821
  Composio.AuthConfigs = AuthConfigs;
824
822
  Composio.ConnectedAccounts = ConnectedAccounts;
825
823
  Composio.Org = Org;
@@ -831,11 +829,10 @@ Composio.TriggersTypes = TriggersTypes;
831
829
  Composio.Mcp = Mcp;
832
830
  Composio.Files = Files;
833
831
  Composio.Migration = Migration;
832
+ Composio.V3 = V3;
834
833
  export declare namespace Composio {
835
834
  export type RequestOptions = Opts.RequestOptions;
836
835
 
837
- export { Auth as Auth };
838
-
839
836
  export {
840
837
  AuthConfigs as AuthConfigs,
841
838
  type AuthConfigCreateResponse as AuthConfigCreateResponse,
@@ -900,12 +897,9 @@ export declare namespace Composio {
900
897
 
901
898
  export {
902
899
  TriggerInstances as TriggerInstances,
903
- type TriggerInstanceDeleteResponse as TriggerInstanceDeleteResponse,
904
900
  type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
905
- type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
906
901
  type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
907
902
  type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
908
- type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams,
909
903
  type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams,
910
904
  };
911
905
 
@@ -925,10 +919,12 @@ export declare namespace Composio {
925
919
  type McpListResponse as McpListResponse,
926
920
  type McpDeleteResponse as McpDeleteResponse,
927
921
  type McpRetrieveAppResponse as McpRetrieveAppResponse,
922
+ type McpValidateResponse as McpValidateResponse,
928
923
  type McpCreateParams as McpCreateParams,
929
924
  type McpUpdateParams as McpUpdateParams,
930
925
  type McpListParams as McpListParams,
931
926
  type McpRetrieveAppParams as McpRetrieveAppParams,
927
+ type McpValidateParams as McpValidateParams,
932
928
  };
933
929
 
934
930
  export {
@@ -944,4 +940,6 @@ export declare namespace Composio {
944
940
  type MigrationRetrieveNanoidResponse as MigrationRetrieveNanoidResponse,
945
941
  type MigrationRetrieveNanoidParams as MigrationRetrieveNanoidParams,
946
942
  };
943
+
944
+ export { V3 as V3 };
947
945
  }
@@ -85,10 +85,10 @@ const getPlatformProperties = (): PlatformProperties => {
85
85
  return {
86
86
  'X-Stainless-Lang': 'js',
87
87
  'X-Stainless-Package-Version': VERSION,
88
- 'X-Stainless-OS': normalizePlatform((globalThis as any).process.platform),
89
- 'X-Stainless-Arch': normalizeArch((globalThis as any).process.arch),
88
+ 'X-Stainless-OS': normalizePlatform((globalThis as any).process.platform ?? 'unknown'),
89
+ 'X-Stainless-Arch': normalizeArch((globalThis as any).process.arch ?? 'unknown'),
90
90
  'X-Stainless-Runtime': 'node',
91
- 'X-Stainless-Runtime-Version': (globalThis as any).process.version,
91
+ 'X-Stainless-Runtime-Version': (globalThis as any).process.version ?? 'unknown',
92
92
  };
93
93
  }
94
94
 
@@ -0,0 +1,26 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ /**
4
+ * Shims for types that we can't always rely on being available globally.
5
+ *
6
+ * Note: these only exist at the type-level, there is no corresponding runtime
7
+ * version for any of these symbols.
8
+ */
9
+
10
+ type NeverToAny<T> = T extends never ? any : T;
11
+
12
+ /** @ts-ignore */
13
+ type _DOMReadableStream<R = any> = globalThis.ReadableStream<R>;
14
+
15
+ /** @ts-ignore */
16
+ type _NodeReadableStream<R = any> = import('stream/web').ReadableStream<R>;
17
+
18
+ type _ConditionalNodeReadableStream<R = any> =
19
+ typeof globalThis extends { ReadableStream: any } ? never : _NodeReadableStream<R>;
20
+
21
+ type _ReadableStream<R = any> = NeverToAny<
22
+ | ([0] extends [1 & _DOMReadableStream<R>] ? never : _DOMReadableStream<R>)
23
+ | ([0] extends [1 & _ConditionalNodeReadableStream<R>] ? never : _ConditionalNodeReadableStream<R>)
24
+ >;
25
+
26
+ export type { _ReadableStream as ReadableStream };
@@ -7,8 +7,8 @@
7
7
  * messages in cases where an environment isn't fully supported.
8
8
  */
9
9
 
10
- import { type Fetch } from './builtin-types';
11
- import { type ReadableStream } from './shim-types';
10
+ import type { Fetch } from './builtin-types';
11
+ import type { ReadableStream } from './shim-types';
12
12
 
13
13
  export function getDefaultFetch(): Fetch {
14
14
  if (typeof fetch !== 'undefined') {
@@ -187,7 +187,6 @@ export interface AuthConfigRetrieveResponse {
187
187
  auth_scheme?:
188
188
  | 'OAUTH2'
189
189
  | 'OAUTH1'
190
- | 'OAUTH1A'
191
190
  | 'API_KEY'
192
191
  | 'BASIC'
193
192
  | 'BILLCOM_AUTH'
@@ -336,7 +335,6 @@ export namespace AuthConfigListResponse {
336
335
  auth_scheme?:
337
336
  | 'OAUTH2'
338
337
  | 'OAUTH1'
339
- | 'OAUTH1A'
340
338
  | 'API_KEY'
341
339
  | 'BASIC'
342
340
  | 'BILLCOM_AUTH'
@@ -466,7 +464,6 @@ export namespace AuthConfigCreateParams {
466
464
  authScheme:
467
465
  | 'OAUTH2'
468
466
  | 'OAUTH1'
469
- | 'OAUTH1A'
470
467
  | 'API_KEY'
471
468
  | 'BASIC'
472
469
  | 'BILLCOM_AUTH'