@composio/client 2.0.0-rc.1 → 2.0.0-rc.10

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 (177) hide show
  1. package/README.md +108 -2
  2. package/dist/{api-key-revocation-BZL5FAx7.mjs → api-key-revocation-CMby8GRJ.mjs} +4 -3
  3. package/dist/{auth-CEq4JqWm.mjs → auth-Cogku2no.mjs} +1 -1
  4. package/dist/{auth-configs-CyksMqNB.mjs → auth-configs-Dgujwvul.mjs} +18 -11
  5. package/dist/{clanker-4wByThQJ.mjs → clanker-Ddf6to-5.mjs} +4 -3
  6. package/dist/cli-Bx3dRctN.mjs +45 -0
  7. package/dist/{connected-accounts-B-qN_yLT.mjs → connected-accounts-DNOWcz-A.mjs} +31 -15
  8. package/dist/{consumer-DWlaGBmh.mjs → consumer-B_ccSE7b.mjs} +8 -8
  9. package/dist/custom-CEy4IB_M.mjs +88 -0
  10. package/dist/{custom-BQWoONFY.mjs → custom-JHvAPJnl.mjs} +5 -3
  11. package/dist/error-DLB1uKM3.mjs +109 -0
  12. package/dist/{files-B-UnEejx.mjs → files-C74URe8c.mjs} +7 -5
  13. package/dist/{files-CNZ-ttVS.mjs → files-CxbSR_Qf.mjs} +13 -9
  14. package/dist/{generate-DSqfJENZ.mjs → generate-Cfcp7BDV.mjs} +5 -3
  15. package/dist/{request-DwPfYYNF.mjs → generated-operations-DpYfIPgx.mjs} +1266 -157
  16. package/dist/index.d.mts +3 -3
  17. package/dist/index.mjs +312 -827
  18. package/dist/keyring-DPTbHLph.mjs +17 -0
  19. package/dist/{link-CukKZMxs.mjs → link-HtoYUvao.mjs} +4 -3
  20. package/dist/{logs-B87z4hq7.mjs → logs-B1kxIBDI.mjs} +8 -6
  21. package/dist/{manage-By-b66OH.mjs → manage-Cv_zl1Pa.mjs} +7 -5
  22. package/dist/mcp-DPHzA1Gg.mjs +91 -0
  23. package/dist/{org-BSq_z6fP.mjs → org-DfPJHXZ4.mjs} +9 -8
  24. package/dist/{owner-BDkEFEVF.mjs → owner-BOJ0ppd_.mjs} +1 -1
  25. package/dist/pagination.d.mts +56 -0
  26. package/dist/pagination.mjs +50 -0
  27. package/dist/{project-_s0fWHut.mjs → project-CBh3olOE.mjs} +7 -7
  28. package/dist/{project-Cj-NKnWZ.mjs → project-Cyn5wfjX.mjs} +4 -3
  29. package/dist/project-DgHmeDvz.mjs +47 -0
  30. package/dist/{project-D-c0Zrrl.mjs → project-z2RqqvAR.mjs} +1 -1
  31. package/dist/realtime-AhDHHK8s.mjs +28 -0
  32. package/dist/resources/api-key-revocation.d.mts +1 -1
  33. package/dist/resources/api-key-revocation.mjs +1 -1
  34. package/dist/resources/auth/auth.d.mts +1 -1
  35. package/dist/resources/auth/auth.mjs +1 -1
  36. package/dist/resources/auth/index.d.mts +1 -1
  37. package/dist/resources/auth/index.mjs +2 -2
  38. package/dist/resources/auth/session.d.mts +1 -1
  39. package/dist/resources/auth/session.mjs +1 -1
  40. package/dist/resources/auth-configs.d.mts +1 -1
  41. package/dist/resources/auth-configs.mjs +1 -1
  42. package/dist/resources/auth.d.mts +1 -1
  43. package/dist/resources/auth.mjs +2 -2
  44. package/dist/resources/cli/cli.d.mts +1 -1
  45. package/dist/resources/cli/cli.mjs +1 -1
  46. package/dist/resources/cli/index.d.mts +1 -1
  47. package/dist/resources/cli/index.mjs +2 -2
  48. package/dist/resources/cli/realtime.d.mts +1 -1
  49. package/dist/resources/cli/realtime.mjs +1 -1
  50. package/dist/resources/cli.d.mts +1 -1
  51. package/dist/resources/cli.mjs +2 -2
  52. package/dist/resources/connected-accounts.d.mts +1 -1
  53. package/dist/resources/connected-accounts.mjs +1 -1
  54. package/dist/resources/custom.d.mts +2 -0
  55. package/dist/resources/custom.mjs +3 -0
  56. package/dist/resources/files.d.mts +1 -1
  57. package/dist/resources/files.mjs +1 -1
  58. package/dist/resources/index.d.mts +1 -1
  59. package/dist/resources/index.mjs +13 -13
  60. package/dist/resources/keyring.d.mts +2 -0
  61. package/dist/resources/keyring.mjs +3 -0
  62. package/dist/resources/link.d.mts +1 -1
  63. package/dist/resources/link.mjs +1 -1
  64. package/dist/resources/logs/index.d.mts +1 -1
  65. package/dist/resources/logs/index.mjs +3 -3
  66. package/dist/resources/logs/logs.d.mts +1 -1
  67. package/dist/resources/logs/logs.mjs +1 -1
  68. package/dist/resources/logs/tools.d.mts +1 -1
  69. package/dist/resources/logs/tools.mjs +1 -1
  70. package/dist/resources/logs/triggers.d.mts +1 -1
  71. package/dist/resources/logs/triggers.mjs +1 -1
  72. package/dist/resources/logs.d.mts +1 -1
  73. package/dist/resources/logs.mjs +3 -3
  74. package/dist/resources/mcp/custom.d.mts +1 -1
  75. package/dist/resources/mcp/custom.mjs +1 -1
  76. package/dist/resources/mcp/generate.d.mts +1 -1
  77. package/dist/resources/mcp/generate.mjs +1 -1
  78. package/dist/resources/mcp/index.d.mts +1 -1
  79. package/dist/resources/mcp/index.mjs +3 -3
  80. package/dist/resources/mcp/mcp.d.mts +1 -1
  81. package/dist/resources/mcp/mcp.mjs +1 -1
  82. package/dist/resources/mcp.d.mts +1 -1
  83. package/dist/resources/mcp.mjs +3 -3
  84. package/dist/resources/org/clanker.d.mts +1 -1
  85. package/dist/resources/org/clanker.mjs +1 -1
  86. package/dist/resources/org/consumer/consumer.d.mts +1 -1
  87. package/dist/resources/org/consumer/consumer.mjs +1 -1
  88. package/dist/resources/org/consumer/index.d.mts +1 -1
  89. package/dist/resources/org/consumer/index.mjs +2 -2
  90. package/dist/resources/org/consumer/project.d.mts +1 -1
  91. package/dist/resources/org/consumer/project.mjs +1 -1
  92. package/dist/resources/org/consumer.d.mts +1 -1
  93. package/dist/resources/org/consumer.mjs +2 -2
  94. package/dist/resources/org/index.d.mts +1 -1
  95. package/dist/resources/org/index.mjs +6 -6
  96. package/dist/resources/org/org.d.mts +1 -1
  97. package/dist/resources/org/org.mjs +1 -1
  98. package/dist/resources/org/owner/index.d.mts +1 -1
  99. package/dist/resources/org/owner/index.mjs +2 -2
  100. package/dist/resources/org/owner/owner.d.mts +1 -1
  101. package/dist/resources/org/owner/owner.mjs +1 -1
  102. package/dist/resources/org/owner/project.d.mts +1 -1
  103. package/dist/resources/org/owner/project.mjs +1 -1
  104. package/dist/resources/org/owner.d.mts +1 -1
  105. package/dist/resources/org/owner.mjs +2 -2
  106. package/dist/resources/org/project.d.mts +1 -1
  107. package/dist/resources/org/project.mjs +1 -1
  108. package/dist/resources/org/usage.d.mts +1 -1
  109. package/dist/resources/org/usage.mjs +1 -1
  110. package/dist/resources/org.d.mts +1 -1
  111. package/dist/resources/org.mjs +6 -6
  112. package/dist/resources/project/index.d.mts +1 -1
  113. package/dist/resources/project/index.mjs +1 -1
  114. package/dist/resources/project/project.d.mts +1 -1
  115. package/dist/resources/project/project.mjs +1 -1
  116. package/dist/resources/project/usage.d.mts +1 -1
  117. package/dist/resources/project/usage.mjs +1 -1
  118. package/dist/resources/project.d.mts +1 -1
  119. package/dist/resources/project.mjs +1 -1
  120. package/dist/resources/session-configs.d.mts +2 -0
  121. package/dist/resources/session-configs.mjs +24 -0
  122. package/dist/resources/tool-router/index.d.mts +1 -1
  123. package/dist/resources/tool-router/index.mjs +2 -2
  124. package/dist/resources/tool-router/session/files.d.mts +1 -1
  125. package/dist/resources/tool-router/session/files.mjs +1 -1
  126. package/dist/resources/tool-router/session/index.d.mts +1 -1
  127. package/dist/resources/tool-router/session/index.mjs +2 -2
  128. package/dist/resources/tool-router/session/session.d.mts +1 -1
  129. package/dist/resources/tool-router/session/session.mjs +1 -1
  130. package/dist/resources/tool-router/session.d.mts +1 -1
  131. package/dist/resources/tool-router/session.mjs +2 -2
  132. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  133. package/dist/resources/tool-router/tool-router.mjs +1 -1
  134. package/dist/resources/tool-router.d.mts +1 -1
  135. package/dist/resources/tool-router.mjs +2 -2
  136. package/dist/resources/toolkits.d.mts +1 -1
  137. package/dist/resources/toolkits.mjs +1 -1
  138. package/dist/resources/tools.d.mts +1 -1
  139. package/dist/resources/tools.mjs +1 -1
  140. package/dist/resources/trigger-instances/index.d.mts +1 -1
  141. package/dist/resources/trigger-instances/index.mjs +2 -2
  142. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  143. package/dist/resources/trigger-instances/manage.mjs +1 -1
  144. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  145. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  146. package/dist/resources/trigger-instances.d.mts +1 -1
  147. package/dist/resources/trigger-instances.mjs +2 -2
  148. package/dist/resources/triggers-types.d.mts +1 -1
  149. package/dist/resources/triggers-types.mjs +1 -1
  150. package/dist/resources/webhook-endpoints.d.mts +1 -1
  151. package/dist/resources/webhook-endpoints.mjs +1 -1
  152. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  153. package/dist/resources/webhook-subscriptions.mjs +1 -1
  154. package/dist/{session-DNm4GFO-.mjs → session-DN52ZBZa.mjs} +3 -2
  155. package/dist/{session-Do3wHYNe.mjs → session-ZjgXXTor.mjs} +39 -26
  156. package/dist/{client-CK6bm7nf.d.mts → session-configs-DBYUrVm-.d.mts} +5419 -1016
  157. package/dist/{tool-router-5OfsPkJ_.mjs → tool-router-oEa6XLps.mjs} +1 -1
  158. package/dist/toolkits-gnhAqP-a.mjs +62 -0
  159. package/dist/tools-B6EBv0kQ.mjs +33 -0
  160. package/dist/tools-CplwSMIX.mjs +69 -0
  161. package/dist/{trigger-instances-lkKWqHgd.mjs → trigger-instances-BZyLCvgX.mjs} +8 -6
  162. package/dist/{triggers-DNx9yjbS.mjs → triggers-tFRN45MV.mjs} +6 -4
  163. package/dist/triggers-types-BOXTcipZ.mjs +34 -0
  164. package/dist/{usage-Cv9VNy5H.mjs → usage-DsWhJVDd.mjs} +7 -5
  165. package/dist/{usage-CKyu9RzD.mjs → usage-qjodPLQq.mjs} +7 -5
  166. package/dist/{webhook-endpoints-DIyg3YlR.mjs → webhook-endpoints-Cv2sK6HF.mjs} +15 -10
  167. package/dist/webhook-subscriptions-BxPEYH5X.mjs +55 -0
  168. package/package.json +21 -6
  169. package/dist/cli-Bi4_ORQO.mjs +0 -45
  170. package/dist/mcp-B0wla_93.mjs +0 -73
  171. package/dist/project-C0h91WGF.mjs +0 -42
  172. package/dist/realtime-BcHoYszT.mjs +0 -26
  173. package/dist/toolkits-CcE90C2S.mjs +0 -43
  174. package/dist/tools-B5uEInC8.mjs +0 -30
  175. package/dist/tools-CdVgfSpk.mjs +0 -63
  176. package/dist/triggers-types-MjEcrPbH.mjs +0 -31
  177. package/dist/webhook-subscriptions-B7AgTACq.mjs +0 -48
@@ -1,26 +0,0 @@
1
- import { r as path } from "./request-DwPfYYNF.mjs";
2
-
3
- //#region src/compat/resources/cli/realtime.ts
4
- /**
5
- * Stainless-shaped `client.cli.realtime` resource: the 2-method Pusher
6
- * realtime sub-surface of `@composio/client` (auth/credentials on
7
- * `/cli/realtime/*`).
8
- */
9
- var Realtime = class {
10
- #client;
11
- constructor(client) {
12
- this.#client = client;
13
- }
14
- auth(body, options) {
15
- return this.#client.post(path`/api/v3.1/cli/realtime/auth`, {
16
- body,
17
- ...options
18
- });
19
- }
20
- credentials(options) {
21
- return this.#client.get(path`/api/v3.1/cli/realtime/credentials`, { ...options });
22
- }
23
- };
24
-
25
- //#endregion
26
- export { Realtime as t };
@@ -1,43 +0,0 @@
1
- import { r as path } from "./request-DwPfYYNF.mjs";
2
-
3
- //#region src/compat/resources/toolkits.ts
4
- /**
5
- * Stainless-shaped `client.toolkits` resource: the 3-method published surface
6
- * of `@composio/client` (retrieve/list/retrieveCategories) plus the
7
- * spec-surface `retrieveMulti` (`POST /toolkits/multi`) and
8
- * `retrieveChangelog` (`GET /toolkits/changelog`), never published by
9
- * Stainless — wayfinder ticket 29.
10
- */
11
- var Toolkits = class {
12
- #client;
13
- constructor(client) {
14
- this.#client = client;
15
- }
16
- retrieve(slug, query = {}, options) {
17
- return this.#client.get(path`/api/v3.1/toolkits/${slug}`, {
18
- query,
19
- ...options
20
- });
21
- }
22
- list(query = {}, options) {
23
- return this.#client.get(path`/api/v3.1/toolkits`, {
24
- query,
25
- ...options
26
- });
27
- }
28
- retrieveCategories(options) {
29
- return this.#client.get(path`/api/v3.1/toolkits/categories`, { ...options });
30
- }
31
- retrieveChangelog(options) {
32
- return this.#client.get(path`/api/v3.1/toolkits/changelog`, { ...options });
33
- }
34
- retrieveMulti(body = {}, options) {
35
- return this.#client.post(path`/api/v3.1/toolkits/multi`, {
36
- body,
37
- ...options
38
- });
39
- }
40
- };
41
-
42
- //#endregion
43
- export { Toolkits as t };
@@ -1,30 +0,0 @@
1
- import { r as path } from "./request-DwPfYYNF.mjs";
2
-
3
- //#region src/compat/resources/logs/tools.ts
4
- /**
5
- * Stainless-shaped `client.logs.tools` resource plus the deprecated
6
- * spec-surface `listFields` method: tool-execution log retrieval/listing and
7
- * field metadata over `internal/action_execution/*`.
8
- */
9
- var Tools = class {
10
- #client;
11
- constructor(client) {
12
- this.#client = client;
13
- }
14
- retrieve(id, options) {
15
- return this.#client.get(path`/api/v3.1/internal/action_execution/log/${id}`, { ...options });
16
- }
17
- list(body, options) {
18
- return this.#client.post(path`/api/v3.1/internal/action_execution/logs`, {
19
- body,
20
- ...options
21
- });
22
- }
23
- /** @deprecated Deprecated in the input OpenAPI schema. */
24
- listFields(options) {
25
- return this.#client.get(path`/api/v3.1/internal/action_execution/fields`, { ...options });
26
- }
27
- };
28
-
29
- //#endregion
30
- export { Tools as t };
@@ -1,63 +0,0 @@
1
- import { r as path } from "./request-DwPfYYNF.mjs";
2
-
3
- //#region src/compat/resources/tools.ts
4
- /**
5
- * Stainless-shaped `client.tools` resource: the 6-method published surface of
6
- * `@composio/client` (retrieve/list/execute/getInput/proxy/retrieveEnum) plus
7
- * the spec-surface `retrieveRequiredScopes` (`POST /tools/scopes/required`,
8
- * never published by Stainless — wayfinder ticket 29), dispatched through the
9
- * handwritten kernel.
10
- */
11
- var Tools = class {
12
- #client;
13
- constructor(client) {
14
- this.#client = client;
15
- }
16
- retrieve(toolSlug, query = {}, options) {
17
- return this.#client.get(path`/api/v3.1/tools/${toolSlug}`, {
18
- query,
19
- ...options
20
- });
21
- }
22
- list(query = {}, options) {
23
- return this.#client.get(path`/api/v3.1/tools`, {
24
- query,
25
- ...options
26
- });
27
- }
28
- execute(toolSlug, params = {}, options) {
29
- const { "x-llm-gateway-headers": xLlmGatewayHeaders, ...body } = params ?? {};
30
- return this.#client.post(path`/api/v3.1/tools/execute/${toolSlug}`, {
31
- body,
32
- ...options,
33
- headers: {
34
- ...xLlmGatewayHeaders != null ? { "x-llm-gateway-headers": xLlmGatewayHeaders } : void 0,
35
- ...options?.headers
36
- }
37
- });
38
- }
39
- getInput(toolSlug, body, options) {
40
- return this.#client.post(path`/api/v3.1/tools/execute/${toolSlug}/input`, {
41
- body,
42
- ...options
43
- });
44
- }
45
- proxy(body, options) {
46
- return this.#client.post(path`/api/v3.1/tools/execute/proxy`, {
47
- body,
48
- ...options
49
- });
50
- }
51
- retrieveEnum(options) {
52
- return this.#client.get(path`/api/v3.1/tools/enum`, { ...options });
53
- }
54
- retrieveRequiredScopes(body, options) {
55
- return this.#client.post(path`/api/v3.1/tools/scopes/required`, {
56
- body,
57
- ...options
58
- });
59
- }
60
- };
61
-
62
- //#endregion
63
- export { Tools as t };
@@ -1,31 +0,0 @@
1
- import { r as path } from "./request-DwPfYYNF.mjs";
2
-
3
- //#region src/compat/resources/triggers-types.ts
4
- /**
5
- * Stainless-shaped `client.triggersTypes` resource: the exact 3-method surface
6
- * of `@composio/client` (retrieve/list/retrieveEnum).
7
- */
8
- var TriggersTypes = class {
9
- #client;
10
- constructor(client) {
11
- this.#client = client;
12
- }
13
- retrieve(slug, query = {}, options) {
14
- return this.#client.get(path`/api/v3.1/triggers_types/${slug}`, {
15
- query,
16
- ...options
17
- });
18
- }
19
- list(query = {}, options) {
20
- return this.#client.get(path`/api/v3.1/triggers_types`, {
21
- query,
22
- ...options
23
- });
24
- }
25
- retrieveEnum(options) {
26
- return this.#client.get(path`/api/v3.1/triggers_types/list/enum`, { ...options });
27
- }
28
- };
29
-
30
- //#endregion
31
- export { TriggersTypes as t };
@@ -1,48 +0,0 @@
1
- import { r as path } from "./request-DwPfYYNF.mjs";
2
-
3
- //#region src/compat/resources/webhook-subscriptions.ts
4
- /**
5
- * Spec-surface `client.webhookSubscriptions` resource: the 7-method
6
- * `/webhook_subscriptions` surface of the v3.1 spec
7
- * (create/list/retrieve/update/delete/rotateSecret/listEventTypes), never
8
- * published by Stainless — wayfinder ticket 30.
9
- */
10
- var WebhookSubscriptions = class {
11
- #client;
12
- constructor(client) {
13
- this.#client = client;
14
- }
15
- create(body, options) {
16
- return this.#client.post(path`/api/v3.1/webhook_subscriptions`, {
17
- body,
18
- ...options
19
- });
20
- }
21
- retrieve(id, options) {
22
- return this.#client.get(path`/api/v3.1/webhook_subscriptions/${id}`, { ...options });
23
- }
24
- update(id, body = {}, options) {
25
- return this.#client.patch(path`/api/v3.1/webhook_subscriptions/${id}`, {
26
- body,
27
- ...options
28
- });
29
- }
30
- list(query = {}, options) {
31
- return this.#client.get(path`/api/v3.1/webhook_subscriptions`, {
32
- query,
33
- ...options
34
- });
35
- }
36
- delete(id, options) {
37
- return this.#client.delete(path`/api/v3.1/webhook_subscriptions/${id}`, { ...options });
38
- }
39
- listEventTypes(options) {
40
- return this.#client.get(path`/api/v3.1/webhook_subscriptions/event_types`, { ...options });
41
- }
42
- rotateSecret(id, options) {
43
- return this.#client.post(path`/api/v3.1/webhook_subscriptions/${id}/rotate_secret`, { ...options });
44
- }
45
- };
46
-
47
- //#endregion
48
- export { WebhookSubscriptions as t };