@composio/client 2.0.0-rc.19 → 2.0.0-rc.20

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 (178) hide show
  1. package/README.md +19 -6
  2. package/dist/{session-configs-BLy_O6bX.d.mts → api-key-revocation-DUHNHxSZ.d.mts} +177 -1205
  3. package/dist/effect.d.mts +3 -3
  4. package/dist/effect.mjs +4 -4
  5. package/dist/{generated-deprecated-inputs-Dy_lBver.mjs → environments-BGA2C5nZ.mjs} +18 -2
  6. package/dist/environments-xPjIJ-r7.d.mts +19 -0
  7. package/dist/{generated-operations-Dv7pAKDT.mjs → generated-operations-DhZryVXy.mjs} +1 -1
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +46 -71
  10. package/dist/resources/api-key-revocation.d.mts +2 -2
  11. package/dist/resources/api-key-revocation.mjs +13 -2
  12. package/dist/resources/auth/auth.d.mts +2 -2
  13. package/dist/resources/auth/auth.mjs +7 -2
  14. package/dist/resources/auth/session.d.mts +2 -2
  15. package/dist/resources/auth/session.mjs +10 -2
  16. package/dist/resources/auth-configs.d.mts +2 -2
  17. package/dist/resources/auth-configs.mjs +45 -2
  18. package/dist/resources/auth.d.mts +2 -2
  19. package/dist/resources/auth.mjs +1 -5
  20. package/dist/resources/cli/cli.d.mts +2 -2
  21. package/dist/resources/cli/cli.mjs +32 -2
  22. package/dist/resources/cli/realtime.d.mts +2 -2
  23. package/dist/resources/cli/realtime.mjs +19 -2
  24. package/dist/resources/cli.d.mts +2 -2
  25. package/dist/resources/cli.mjs +1 -5
  26. package/dist/resources/connected-accounts.d.mts +2 -2
  27. package/dist/resources/connected-accounts.mjs +70 -2
  28. package/dist/resources/custom.d.mts +2 -2
  29. package/dist/resources/custom.mjs +29 -2
  30. package/dist/resources/files.d.mts +2 -2
  31. package/dist/resources/files.mjs +22 -2
  32. package/dist/resources/keyring.d.mts +2 -2
  33. package/dist/resources/keyring.mjs +10 -2
  34. package/dist/resources/link.d.mts +2 -2
  35. package/dist/resources/link.mjs +13 -2
  36. package/dist/resources/logs/logs.d.mts +2 -2
  37. package/dist/resources/logs/logs.mjs +23 -2
  38. package/dist/resources/logs/tools.d.mts +2 -2
  39. package/dist/resources/logs/tools.mjs +23 -2
  40. package/dist/resources/logs/triggers.d.mts +2 -2
  41. package/dist/resources/logs/triggers.mjs +19 -2
  42. package/dist/resources/logs.d.mts +2 -2
  43. package/dist/resources/logs.mjs +1 -6
  44. package/dist/resources/mcp/custom.d.mts +2 -2
  45. package/dist/resources/mcp/custom.mjs +13 -2
  46. package/dist/resources/mcp/generate.d.mts +2 -2
  47. package/dist/resources/mcp/generate.mjs +13 -2
  48. package/dist/resources/mcp/mcp.d.mts +2 -2
  49. package/dist/resources/mcp/mcp.mjs +67 -2
  50. package/dist/resources/mcp.d.mts +2 -2
  51. package/dist/resources/mcp.mjs +1 -6
  52. package/dist/resources/org/clanker.d.mts +2 -2
  53. package/dist/resources/org/clanker.mjs +13 -2
  54. package/dist/resources/org/consumer/consumer.d.mts +2 -2
  55. package/dist/resources/org/consumer/consumer.mjs +21 -2
  56. package/dist/resources/org/consumer/project.d.mts +2 -2
  57. package/dist/resources/org/consumer/project.mjs +14 -2
  58. package/dist/resources/org/consumer.d.mts +2 -2
  59. package/dist/resources/org/consumer.mjs +1 -5
  60. package/dist/resources/org/org.d.mts +2 -2
  61. package/dist/resources/org/org.mjs +25 -2
  62. package/dist/resources/org/owner/owner.d.mts +2 -2
  63. package/dist/resources/org/owner/owner.mjs +7 -2
  64. package/dist/resources/org/owner/project.d.mts +2 -2
  65. package/dist/resources/org/owner/project.mjs +37 -2
  66. package/dist/resources/org/owner.d.mts +2 -2
  67. package/dist/resources/org/owner.mjs +1 -5
  68. package/dist/resources/org/project.d.mts +2 -2
  69. package/dist/resources/org/project.mjs +13 -2
  70. package/dist/resources/org/usage.d.mts +2 -2
  71. package/dist/resources/org/usage.mjs +22 -2
  72. package/dist/resources/org.d.mts +2 -2
  73. package/dist/resources/org.mjs +1 -9
  74. package/dist/resources/project/project.d.mts +2 -2
  75. package/dist/resources/project/project.mjs +7 -2
  76. package/dist/resources/project/usage.d.mts +2 -2
  77. package/dist/resources/project/usage.mjs +22 -2
  78. package/dist/resources/project.d.mts +2 -3
  79. package/dist/resources/project.mjs +1 -5
  80. package/dist/resources/session-configs.d.mts +2 -2
  81. package/dist/resources/session-configs.mjs +8 -12
  82. package/dist/resources/tool-router/session/files.d.mts +2 -2
  83. package/dist/resources/tool-router/session/files.mjs +40 -2
  84. package/dist/resources/tool-router/session/session.d.mts +2 -2
  85. package/dist/resources/tool-router/session/session.mjs +95 -2
  86. package/dist/resources/tool-router/session.d.mts +2 -2
  87. package/dist/resources/tool-router/session.mjs +1 -5
  88. package/dist/resources/tool-router/tool-router.d.mts +2 -2
  89. package/dist/resources/tool-router/tool-router.mjs +7 -2
  90. package/dist/resources/tool-router.d.mts +2 -2
  91. package/dist/resources/tool-router.mjs +1 -5
  92. package/dist/resources/toolkits.d.mts +2 -2
  93. package/dist/resources/toolkits.mjs +51 -2
  94. package/dist/resources/tools.d.mts +2 -2
  95. package/dist/resources/tools.mjs +56 -2
  96. package/dist/resources/trigger-instances/manage.d.mts +2 -2
  97. package/dist/resources/trigger-instances/manage.mjs +19 -2
  98. package/dist/resources/trigger-instances/trigger-instances.d.mts +2 -2
  99. package/dist/resources/trigger-instances/trigger-instances.mjs +24 -2
  100. package/dist/resources/trigger-instances.d.mts +2 -2
  101. package/dist/resources/trigger-instances.mjs +1 -5
  102. package/dist/resources/triggers-types.d.mts +2 -2
  103. package/dist/resources/triggers-types.mjs +26 -2
  104. package/dist/resources/webhook-endpoints.d.mts +2 -2
  105. package/dist/resources/webhook-endpoints.mjs +40 -2
  106. package/dist/resources/webhook-subscriptions.d.mts +2 -2
  107. package/dist/resources/webhook-subscriptions.mjs +45 -2
  108. package/package.json +2 -31
  109. package/dist/api-key-revocation-DMCgun-A.mjs +0 -25
  110. package/dist/auth-D-U9Aq8C.mjs +0 -17
  111. package/dist/auth-configs-DAG5mMeH.mjs +0 -55
  112. package/dist/clanker-Yomp86hJ.mjs +0 -24
  113. package/dist/cli-zihiw3aI.mjs +0 -44
  114. package/dist/config-BLBbhLe1.mjs +0 -10
  115. package/dist/config-DnyMhILW.d.mts +0 -9
  116. package/dist/connected-accounts-Bd4AbWoH.mjs +0 -83
  117. package/dist/consumer-Bk0cyIii.mjs +0 -33
  118. package/dist/custom-Ce8G2c11.mjs +0 -34
  119. package/dist/custom-DWT3cCog.mjs +0 -24
  120. package/dist/files-DRp_J4zH.mjs +0 -49
  121. package/dist/files-ZxEVlE_y.mjs +0 -31
  122. package/dist/generate-Du9XUrlx.mjs +0 -24
  123. package/dist/keyring-CgOIS5x7.mjs +0 -17
  124. package/dist/link-CW1ts4pm.mjs +0 -23
  125. package/dist/logs-DFdH5DoT.mjs +0 -37
  126. package/dist/manage-CeB03gO8.mjs +0 -28
  127. package/dist/mcp-DNRMWWum.mjs +0 -91
  128. package/dist/migration-CBhnoN-Y.mjs +0 -10
  129. package/dist/migration-CKGKuRO3.d.mts +0 -9
  130. package/dist/org-HuYaKgVf.mjs +0 -45
  131. package/dist/owner-I9fXmIO_.mjs +0 -17
  132. package/dist/project-CxQ2H8UB.mjs +0 -22
  133. package/dist/project-DcV01umC.mjs +0 -25
  134. package/dist/project-Dwblmpw8.mjs +0 -47
  135. package/dist/project-FuP5k9R1.mjs +0 -25
  136. package/dist/realtime-F_sGuTd8.mjs +0 -28
  137. package/dist/resources/auth/index.d.mts +0 -2
  138. package/dist/resources/auth/index.mjs +0 -4
  139. package/dist/resources/cli/index.d.mts +0 -2
  140. package/dist/resources/cli/index.mjs +0 -4
  141. package/dist/resources/index.d.mts +0 -3
  142. package/dist/resources/index.mjs +0 -16
  143. package/dist/resources/logs/index.d.mts +0 -2
  144. package/dist/resources/logs/index.mjs +0 -5
  145. package/dist/resources/mcp/index.d.mts +0 -2
  146. package/dist/resources/mcp/index.mjs +0 -5
  147. package/dist/resources/migration.d.mts +0 -2
  148. package/dist/resources/migration.mjs +0 -3
  149. package/dist/resources/org/consumer/index.d.mts +0 -2
  150. package/dist/resources/org/consumer/index.mjs +0 -4
  151. package/dist/resources/org/index.d.mts +0 -2
  152. package/dist/resources/org/index.mjs +0 -8
  153. package/dist/resources/org/owner/index.d.mts +0 -2
  154. package/dist/resources/org/owner/index.mjs +0 -4
  155. package/dist/resources/project/config.d.mts +0 -2
  156. package/dist/resources/project/config.mjs +0 -3
  157. package/dist/resources/project/index.d.mts +0 -3
  158. package/dist/resources/project/index.mjs +0 -4
  159. package/dist/resources/tool-router/index.d.mts +0 -2
  160. package/dist/resources/tool-router/index.mjs +0 -4
  161. package/dist/resources/tool-router/session/index.d.mts +0 -2
  162. package/dist/resources/tool-router/session/index.mjs +0 -4
  163. package/dist/resources/trigger-instances/index.d.mts +0 -2
  164. package/dist/resources/trigger-instances/index.mjs +0 -4
  165. package/dist/session-B-ifOjVv.mjs +0 -21
  166. package/dist/session-CpwJh7Hn.mjs +0 -110
  167. package/dist/tool-router-jNsaldKV.mjs +0 -14
  168. package/dist/toolkits-DK4My9FW.mjs +0 -62
  169. package/dist/tools-DNkimllW.mjs +0 -33
  170. package/dist/tools-Gun_2We6.mjs +0 -69
  171. package/dist/trigger-instances-vvKswQSW.mjs +0 -35
  172. package/dist/triggers-CfrGxKIo.mjs +0 -28
  173. package/dist/triggers-types-DYW2Mr8z.mjs +0 -34
  174. package/dist/usage-YIBYNpVF.mjs +0 -31
  175. package/dist/usage-vt9HmnNf.mjs +0 -31
  176. package/dist/version-DB98yI2B.d.mts +0 -4
  177. package/dist/webhook-endpoints-HqLteVW6.mjs +0 -50
  178. package/dist/webhook-subscriptions-CXhNXIOM.mjs +0 -55
@@ -1,8 +0,0 @@
1
- import { t as Clanker } from "../../clanker-Yomp86hJ.mjs";
2
- import { t as Consumer } from "../../consumer-Bk0cyIii.mjs";
3
- import { t as Owner } from "../../owner-I9fXmIO_.mjs";
4
- import { t as Project } from "../../project-FuP5k9R1.mjs";
5
- import { t as Usage } from "../../usage-vt9HmnNf.mjs";
6
- import { t as Org } from "../../org-HuYaKgVf.mjs";
7
-
8
- export { Clanker, Consumer, Org, Owner, Project, Usage };
@@ -1,2 +0,0 @@
1
- import { $ as ProjectRetrieveResponse, G as Project, J as ProjectDeleteParams, K as ProjectCreateParams, Q as ProjectRegenerateAPIKeyResponse, W as Owner, X as ProjectListParams, Y as ProjectDeleteResponse, Z as ProjectListResponse, q as ProjectCreateResponse } from "../../../session-configs-BLy_O6bX.mjs";
2
- export { Owner, Project, type ProjectCreateParams, type ProjectCreateResponse, type ProjectDeleteParams, type ProjectDeleteResponse, type ProjectListParams, type ProjectListResponse, type ProjectRegenerateAPIKeyResponse, type ProjectRetrieveResponse };
@@ -1,4 +0,0 @@
1
- import { t as Project } from "../../../project-Dwblmpw8.mjs";
2
- import { t as Owner } from "../../../owner-I9fXmIO_.mjs";
3
-
4
- export { Owner, Project };
@@ -1,2 +0,0 @@
1
- import { t as Config } from "../../config-DnyMhILW.mjs";
2
- export { Config };
@@ -1,3 +0,0 @@
1
- import { t as Config } from "../../config-BLBbhLe1.mjs";
2
-
3
- export { Config };
@@ -1,3 +0,0 @@
1
- import { xt as Project } from "../../session-configs-BLy_O6bX.mjs";
2
- import { t as Config } from "../../config-DnyMhILW.mjs";
3
- export { Config, Project };
@@ -1,4 +0,0 @@
1
- import { t as Config } from "../../config-BLBbhLe1.mjs";
2
- import { t as Project } from "../../project-CxQ2H8UB.mjs";
3
-
4
- export { Config, Project };
@@ -1,2 +0,0 @@
1
- import { Gr as ToolRouter, Jr as SessionAttachResponse, Kr as Session, Qr as SessionCreateResponse, Xr as SessionConfigHistoryResponse, Yr as SessionConfigHistoryParams, Zr as SessionCreateParams, ai as SessionLinkResponse, ci as SessionProxyExecuteParams, di as SessionSearchParams, ei as SessionExecuteMetaParams, fi as SessionSearchResponse, gi as SessionToolsResponse, hi as SessionToolsParams, ii as SessionLinkParams, li as SessionProxyExecuteResponse, mi as SessionToolkitsResponse, ni as SessionExecuteParams, oi as SessionPatchParams, pi as SessionToolkitsParams, qr as SessionAttachParams, ri as SessionExecuteResponse, si as SessionPatchResponse, ti as SessionExecuteMetaResponse, ui as SessionRetrieveResponse } from "../../session-configs-BLy_O6bX.mjs";
2
- export { Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse, ToolRouter };
@@ -1,4 +0,0 @@
1
- import { t as Session } from "../../session-CpwJh7Hn.mjs";
2
- import { t as ToolRouter } from "../../tool-router-jNsaldKV.mjs";
3
-
4
- export { Session, ToolRouter };
@@ -1,2 +0,0 @@
1
- import { $r as SessionDeleteResponse, Ci as FileListParams, Jr as SessionAttachResponse, Kr as Session, Qr as SessionCreateResponse, Si as FileDeleteResponse, Ti as Files, Xr as SessionConfigHistoryResponse, Yr as SessionConfigHistoryParams, Zr as SessionCreateParams, _i as FileCreateDownloadURLParams, ai as SessionLinkResponse, bi as FileCreateUploadURLResponse, ci as SessionProxyExecuteParams, di as SessionSearchParams, ei as SessionExecuteMetaParams, fi as SessionSearchResponse, gi as SessionToolsResponse, hi as SessionToolsParams, ii as SessionLinkParams, li as SessionProxyExecuteResponse, mi as SessionToolkitsResponse, ni as SessionExecuteParams, oi as SessionPatchParams, pi as SessionToolkitsParams, qr as SessionAttachParams, ri as SessionExecuteResponse, si as SessionPatchResponse, ti as SessionExecuteMetaResponse, ui as SessionRetrieveResponse, vi as FileCreateDownloadURLResponse, wi as FileListResponse, xi as FileDeleteParams, yi as FileCreateUploadURLParams } from "../../../session-configs-BLy_O6bX.mjs";
2
- export { type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, Files, Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionDeleteResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse };
@@ -1,4 +0,0 @@
1
- import { t as Files } from "../../../files-DRp_J4zH.mjs";
2
- import { t as Session } from "../../../session-CpwJh7Hn.mjs";
3
-
4
- export { Files, Session };
@@ -1,2 +0,0 @@
1
- import { Cn as TriggerInstanceUpsertResponse, Dn as ManageUpdateParams, En as ManageDeleteResponse, On as ManageUpdateResponse, Sn as TriggerInstanceUpsertParams, Tn as Manage, bn as TriggerInstanceListActiveParams, wn as TriggerInstances, xn as TriggerInstanceListActiveResponse } from "../../session-configs-BLy_O6bX.mjs";
2
- export { Manage, type ManageDeleteResponse, type ManageUpdateParams, type ManageUpdateResponse, type TriggerInstanceListActiveParams, type TriggerInstanceListActiveResponse, type TriggerInstanceUpsertParams, type TriggerInstanceUpsertResponse, TriggerInstances };
@@ -1,4 +0,0 @@
1
- import { t as Manage } from "../../manage-CeB03gO8.mjs";
2
- import { t as TriggerInstances } from "../../trigger-instances-vvKswQSW.mjs";
3
-
4
- export { Manage, TriggerInstances };
@@ -1,21 +0,0 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/auth/session.ts
4
- const OP_RETRIEVE_INFO = generatedOperation("auth.session.retrieveInfo");
5
- /**
6
- * Spec-surface `client.auth.session` resource: the 1-method user-session
7
- * introspection surface of the v3.1 spec (`GET /auth/session/info` —
8
- * authenticated by a user API key), never published by Stainless.
9
- */
10
- var Session = class {
11
- #client;
12
- constructor(client) {
13
- this.#client = client;
14
- }
15
- retrieveInfo(options) {
16
- return this.#client.get("/api/v3.1/auth/session/info", withOperation(OP_RETRIEVE_INFO, { ...options }));
17
- }
18
- };
19
-
20
- //#endregion
21
- export { Session as t };
@@ -1,110 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
- import { t as Files } from "./files-DRp_J4zH.mjs";
3
-
4
- //#region src/compat/resources/tool-router/session/session.ts
5
- const OP_CREATE = generatedOperation("toolRouter.session.create");
6
- const OP_RETRIEVE = generatedOperation("toolRouter.session.retrieve");
7
- const OP_DELETE = generatedOperation("toolRouter.session.delete");
8
- const OP_ATTACH = generatedOperation("toolRouter.session.attach");
9
- const OP_CONFIG_HISTORY = generatedOperation("toolRouter.session.configHistory");
10
- const OP_EXECUTE = generatedOperation("toolRouter.session.execute");
11
- const OP_EXECUTE_META = generatedOperation("toolRouter.session.executeMeta");
12
- const OP_LINK = generatedOperation("toolRouter.session.link");
13
- const OP_PATCH = generatedOperation("toolRouter.session.patch");
14
- const OP_PROXY_EXECUTE = generatedOperation("toolRouter.session.proxyExecute");
15
- const OP_SEARCH = generatedOperation("toolRouter.session.search");
16
- const OP_TOOLKITS = generatedOperation("toolRouter.session.toolkits");
17
- const OP_TOOLS = generatedOperation("toolRouter.session.tools");
18
- /**
19
- * Stainless-shaped `client.toolRouter.session` resource: the 12-method
20
- * published surface of `@composio/client` plus the spec-surface `delete`
21
- * (never published by Stainless). Positional
22
- * `(sessionID, body/query?, options?)` signatures, `= {}` defaults on
23
- * attach/configHistory/patch/toolkits/tools so the argument is optional and
24
- * optional-body endpoints still send JSON `{}`, dispatched through the
25
- * handwritten kernel (`Composio.get/post/patch/delete`).
26
- */
27
- var Session = class {
28
- files;
29
- #client;
30
- constructor(client) {
31
- this.#client = client;
32
- this.files = new Files(client);
33
- }
34
- create(body, options) {
35
- return this.#client.post("/api/v3.1/tool_router/session", withOperation(OP_CREATE, {
36
- body,
37
- ...options
38
- }));
39
- }
40
- retrieve(sessionID, options) {
41
- return this.#client.get(path`/api/v3.1/tool_router/session/${sessionID}`, withOperation(OP_RETRIEVE, { ...options }));
42
- }
43
- delete(sessionID, options) {
44
- return this.#client.delete(path`/api/v3.1/tool_router/session/${sessionID}`, withOperation(OP_DELETE, { ...options }));
45
- }
46
- attach(sessionID, body = {}, options) {
47
- return this.#client.post(path`/api/v3.1/tool_router/session/${sessionID}/attach`, withOperation(OP_ATTACH, {
48
- body,
49
- ...options
50
- }));
51
- }
52
- configHistory(sessionID, query = {}, options) {
53
- return this.#client.get(path`/api/v3.1/tool_router/session/${sessionID}/config_history`, withOperation(OP_CONFIG_HISTORY, {
54
- query,
55
- ...options
56
- }));
57
- }
58
- execute(sessionID, body, options) {
59
- return this.#client.post(path`/api/v3.1/tool_router/session/${sessionID}/execute`, withOperation(OP_EXECUTE, {
60
- body,
61
- ...options
62
- }));
63
- }
64
- executeMeta(sessionID, body, options) {
65
- return this.#client.post(path`/api/v3.1/tool_router/session/${sessionID}/execute_meta`, withOperation(OP_EXECUTE_META, {
66
- body,
67
- ...options
68
- }));
69
- }
70
- link(sessionID, body, options) {
71
- return this.#client.post(path`/api/v3.1/tool_router/session/${sessionID}/link`, withOperation(OP_LINK, {
72
- body,
73
- ...options
74
- }));
75
- }
76
- patch(sessionID, body = {}, options) {
77
- return this.#client.patch(path`/api/v3.1/tool_router/session/${sessionID}`, withOperation(OP_PATCH, {
78
- body,
79
- ...options
80
- }));
81
- }
82
- proxyExecute(sessionID, body, options) {
83
- return this.#client.post(path`/api/v3.1/tool_router/session/${sessionID}/proxy_execute`, withOperation(OP_PROXY_EXECUTE, {
84
- body,
85
- ...options
86
- }));
87
- }
88
- search(sessionID, body, options) {
89
- return this.#client.post(path`/api/v3.1/tool_router/session/${sessionID}/search`, withOperation(OP_SEARCH, {
90
- body,
91
- ...options
92
- }));
93
- }
94
- toolkits(sessionID, query = {}, options) {
95
- return this.#client.get(path`/api/v3.1/tool_router/session/${sessionID}/toolkits`, withOperation(OP_TOOLKITS, {
96
- query,
97
- ...options
98
- }));
99
- }
100
- tools(sessionID, query = {}, options) {
101
- return this.#client.get(path`/api/v3.1/tool_router/session/${sessionID}/tools`, withOperation(OP_TOOLS, {
102
- query,
103
- ...options
104
- }));
105
- }
106
- };
107
- Session.Files = Files;
108
-
109
- //#endregion
110
- export { Session as t };
@@ -1,14 +0,0 @@
1
- import { t as Session } from "./session-CpwJh7Hn.mjs";
2
-
3
- //#region src/compat/resources/tool-router/tool-router.ts
4
- /** Stainless-shaped `client.toolRouter` resource. */
5
- var ToolRouter = class {
6
- session;
7
- constructor(client) {
8
- this.session = new Session(client);
9
- }
10
- };
11
- ToolRouter.Session = Session;
12
-
13
- //#endregion
14
- export { ToolRouter as t };
@@ -1,62 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/toolkits.ts
4
- const OP_RETRIEVE = generatedOperation("toolkits.retrieve");
5
- const OP_LIST = generatedOperation("toolkits.list");
6
- const OP_RECOMMEND_SCOPES = generatedOperation("toolkits.recommendScopes");
7
- const OP_RETRIEVE_CATEGORIES = generatedOperation("toolkits.retrieveCategories");
8
- const OP_RETRIEVE_CHANGELOG = generatedOperation("toolkits.retrieveChangelog");
9
- const OP_RETRIEVE_MULTI = generatedOperation("toolkits.retrieveMulti");
10
- const OP_RETRIEVE_SCOPES_GRANT_CONTEXT = generatedOperation("toolkits.retrieveScopesGrantContext");
11
- /**
12
- * Stainless-shaped `client.toolkits` resource: the 3-method published surface
13
- * of `@composio/client` (retrieve/list/retrieveCategories) plus the
14
- * spec-surface `retrieveMulti` (`POST /toolkits/multi`) and
15
- * `retrieveChangelog` (`GET /toolkits/changelog`), never published by
16
- * Stainless.
17
- */
18
- var Toolkits = class {
19
- #client;
20
- constructor(client) {
21
- this.#client = client;
22
- }
23
- retrieve(slug, query = {}, options) {
24
- return this.#client.get(path`/api/v3.1/toolkits/${slug}`, withOperation(OP_RETRIEVE, {
25
- query,
26
- ...options
27
- }));
28
- }
29
- list(query = {}, options) {
30
- return this.#client.get("/api/v3.1/toolkits", withOperation(OP_LIST, {
31
- query,
32
- ...options
33
- }));
34
- }
35
- recommendScopes(toolkitSlug, body, options) {
36
- return this.#client.post(path`/api/v3.1/toolkits/${toolkitSlug}/scopes/recommended`, withOperation(OP_RECOMMEND_SCOPES, {
37
- body,
38
- ...options
39
- }));
40
- }
41
- retrieveCategories(options) {
42
- return this.#client.get("/api/v3.1/toolkits/categories", withOperation(OP_RETRIEVE_CATEGORIES, { ...options }));
43
- }
44
- retrieveChangelog(options) {
45
- return this.#client.get("/api/v3.1/toolkits/changelog", withOperation(OP_RETRIEVE_CHANGELOG, { ...options }));
46
- }
47
- retrieveMulti(body = {}, options) {
48
- return this.#client.post("/api/v3.1/toolkits/multi", withOperation(OP_RETRIEVE_MULTI, {
49
- body,
50
- ...options
51
- }));
52
- }
53
- retrieveScopesGrantContext(toolkitSlug, query = {}, options) {
54
- return this.#client.get(path`/api/v3.1/toolkits/${toolkitSlug}/scopes/grant_context`, withOperation(OP_RETRIEVE_SCOPES_GRANT_CONTEXT, {
55
- query,
56
- ...options
57
- }));
58
- }
59
- };
60
-
61
- //#endregion
62
- export { Toolkits as t };
@@ -1,33 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/logs/tools.ts
4
- const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
5
- const OP_LIST = generatedOperation("logs.tools.list");
6
- const OP_LIST_FIELDS = generatedOperation("logs.tools.listFields");
7
- /**
8
- * Stainless-shaped `client.logs.tools` resource plus the deprecated
9
- * spec-surface `listFields` method: tool-execution log retrieval/listing and
10
- * field metadata over `internal/action_execution/*`.
11
- */
12
- var Tools = class {
13
- #client;
14
- constructor(client) {
15
- this.#client = client;
16
- }
17
- retrieve(id, options) {
18
- return this.#client.get(path`/api/v3.1/internal/action_execution/log/${id}`, withOperation(OP_RETRIEVE, { ...options }));
19
- }
20
- list(body, options) {
21
- return this.#client.post("/api/v3.1/internal/action_execution/logs", withOperation(OP_LIST, {
22
- body,
23
- ...options
24
- }));
25
- }
26
- /** @deprecated Deprecated in the input OpenAPI schema. */
27
- listFields(options) {
28
- return this.#client.get("/api/v3.1/internal/action_execution/fields", withOperation(OP_LIST_FIELDS, { ...options }));
29
- }
30
- };
31
-
32
- //#endregion
33
- export { Tools as t };
@@ -1,69 +0,0 @@
1
- import { E as mergeHeaders, d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/tools.ts
4
- const OP_RETRIEVE = generatedOperation("tools.retrieve");
5
- const OP_LIST = generatedOperation("tools.list");
6
- const OP_EXECUTE = generatedOperation("tools.execute");
7
- const OP_GET_INPUT = generatedOperation("tools.getInput");
8
- const OP_PROXY = generatedOperation("tools.proxy");
9
- const OP_RETRIEVE_ENUM = generatedOperation("tools.retrieveEnum");
10
- const OP_RETRIEVE_REQUIRED_SCOPES = generatedOperation("tools.retrieveRequiredScopes");
11
- /**
12
- * Stainless-shaped `client.tools` resource: the 6-method published surface of
13
- * `@composio/client` (retrieve/list/execute/getInput/proxy/retrieveEnum) plus
14
- * the spec-surface `retrieveRequiredScopes` (`POST /tools/scopes/required`,
15
- * never published by Stainless), dispatched through the
16
- * handwritten kernel.
17
- */
18
- var Tools = class {
19
- #client;
20
- constructor(client) {
21
- this.#client = client;
22
- }
23
- retrieve(toolSlug, query = {}, options) {
24
- return this.#client.get(path`/api/v3.1/tools/${toolSlug}`, withOperation(OP_RETRIEVE, {
25
- query,
26
- ...options
27
- }));
28
- }
29
- list(query = {}, options) {
30
- return this.#client.get("/api/v3.1/tools", withOperation(OP_LIST, {
31
- query,
32
- ...options
33
- }));
34
- }
35
- execute(toolSlug, params = {}, options) {
36
- const { "x-llm-gateway-headers": xLlmGatewayHeaders, ...body } = params ?? {};
37
- return this.#client.post(path`/api/v3.1/tools/execute/${toolSlug}`, withOperation(OP_EXECUTE, {
38
- body,
39
- ...options,
40
- headers: mergeHeaders([{ ...xLlmGatewayHeaders != null ? { "x-llm-gateway-headers": xLlmGatewayHeaders } : void 0 }, options?.headers])
41
- }));
42
- }
43
- /** @deprecated Deprecated in the input OpenAPI schema. */
44
- getInput(toolSlug, body, options) {
45
- return this.#client.post(path`/api/v3.1/tools/execute/${toolSlug}/input`, withOperation(OP_GET_INPUT, {
46
- body,
47
- ...options
48
- }));
49
- }
50
- proxy(body, options) {
51
- return this.#client.post("/api/v3.1/tools/execute/proxy", withOperation(OP_PROXY, {
52
- body,
53
- ...options
54
- }));
55
- }
56
- retrieveEnum(options) {
57
- return this.#client.get("/api/v3.1/tools/enum", withOperation(OP_RETRIEVE_ENUM, { ...options }));
58
- }
59
- /** @deprecated Deprecated in the input OpenAPI schema. */
60
- retrieveRequiredScopes(body, options) {
61
- return this.#client.post("/api/v3.1/tools/scopes/required", withOperation(OP_RETRIEVE_REQUIRED_SCOPES, {
62
- body,
63
- ...options
64
- }));
65
- }
66
- };
67
-
68
- //#endregion
69
- export { Tools as t };
@@ -1,35 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
- import { t as Manage } from "./manage-CeB03gO8.mjs";
3
-
4
- //#region src/compat/resources/trigger-instances/trigger-instances.ts
5
- const OP_LIST_ACTIVE = generatedOperation("triggerInstances.listActive");
6
- const OP_UPSERT = generatedOperation("triggerInstances.upsert");
7
- /**
8
- * Stainless-shaped `client.triggerInstances` resource: the exact 2-method
9
- * surface of `@composio/client` (listActive/upsert), dispatched through the
10
- * handwritten kernel.
11
- */
12
- var TriggerInstances = class {
13
- manage;
14
- #client;
15
- constructor(client) {
16
- this.#client = client;
17
- this.manage = new Manage(client);
18
- }
19
- listActive(query = {}, options) {
20
- return this.#client.get("/api/v3.1/trigger_instances/active", withOperation(OP_LIST_ACTIVE, {
21
- query,
22
- ...options
23
- }));
24
- }
25
- upsert(slug, body = {}, options) {
26
- return this.#client.post(path`/api/v3.1/trigger_instances/${slug}/upsert`, withOperation(OP_UPSERT, {
27
- body,
28
- ...options
29
- }));
30
- }
31
- };
32
- TriggerInstances.Manage = Manage;
33
-
34
- //#endregion
35
- export { TriggerInstances as t };
@@ -1,28 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/logs/triggers.ts
4
- const OP_RETRIEVE = generatedOperation("logs.triggers.retrieve");
5
- const OP_LIST = generatedOperation("logs.triggers.list");
6
- /**
7
- * Stainless-shaped `client.logs.triggers` resource: the 2-method trigger-log
8
- * sub-surface of `@composio/client` (retrieve/list over `internal/trigger/*`).
9
- */
10
- var Triggers = class {
11
- #client;
12
- constructor(client) {
13
- this.#client = client;
14
- }
15
- /** @deprecated Deprecated in the input OpenAPI schema. */
16
- retrieve(id, options) {
17
- return this.#client.get(path`/api/v3.1/internal/trigger/log/${id}`, withOperation(OP_RETRIEVE, { ...options }));
18
- }
19
- list(body = {}, options) {
20
- return this.#client.post("/api/v3.1/internal/trigger/logs", withOperation(OP_LIST, {
21
- body,
22
- ...options
23
- }));
24
- }
25
- };
26
-
27
- //#endregion
28
- export { Triggers as t };
@@ -1,34 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/triggers-types.ts
4
- const OP_RETRIEVE = generatedOperation("triggersTypes.retrieve");
5
- const OP_LIST = generatedOperation("triggersTypes.list");
6
- const OP_RETRIEVE_ENUM = generatedOperation("triggersTypes.retrieveEnum");
7
- /**
8
- * Stainless-shaped `client.triggersTypes` resource: the exact 3-method surface
9
- * of `@composio/client` (retrieve/list/retrieveEnum).
10
- */
11
- var TriggersTypes = 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/triggers_types/${slug}`, withOperation(OP_RETRIEVE, {
18
- query,
19
- ...options
20
- }));
21
- }
22
- list(query = {}, options) {
23
- return this.#client.get("/api/v3.1/triggers_types", withOperation(OP_LIST, {
24
- query,
25
- ...options
26
- }));
27
- }
28
- retrieveEnum(options) {
29
- return this.#client.get("/api/v3.1/triggers_types/list/enum", withOperation(OP_RETRIEVE_ENUM, { ...options }));
30
- }
31
- };
32
-
33
- //#endregion
34
- export { TriggersTypes as t };
@@ -1,31 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/project/usage.ts
4
- const OP_RETRIEVE = generatedOperation("project.usage.retrieve");
5
- const OP_RETRIEVE_SUMMARY = generatedOperation("project.usage.retrieveSummary");
6
- /**
7
- * Spec-surface `client.project.usage` resource: the 2-method project metering
8
- * surface of the v3.1 spec (retrieveSummary/retrieve over `/project/usage/*`
9
- * — POST-that-reads), never published by Stainless.
10
- */
11
- var Usage = class {
12
- #client;
13
- constructor(client) {
14
- this.#client = client;
15
- }
16
- retrieve(entityType, body = {}, options) {
17
- return this.#client.post(path`/api/v3.1/project/usage/${entityType}`, withOperation(OP_RETRIEVE, {
18
- body,
19
- ...options
20
- }));
21
- }
22
- retrieveSummary(body = {}, options) {
23
- return this.#client.post("/api/v3.1/project/usage/summary", withOperation(OP_RETRIEVE_SUMMARY, {
24
- body,
25
- ...options
26
- }));
27
- }
28
- };
29
-
30
- //#endregion
31
- export { Usage as t };
@@ -1,31 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/org/usage.ts
4
- const OP_RETRIEVE = generatedOperation("org.usage.retrieve");
5
- const OP_RETRIEVE_SUMMARY = generatedOperation("org.usage.retrieveSummary");
6
- /**
7
- * Spec-surface `client.org.usage` resource: the 2-method org metering surface
8
- * of the v3.1 spec (retrieveSummary/retrieve over `/org/usage/*` —
9
- * POST-that-reads), never published by Stainless.
10
- */
11
- var Usage = class {
12
- #client;
13
- constructor(client) {
14
- this.#client = client;
15
- }
16
- retrieve(entityType, body = {}, options) {
17
- return this.#client.post(path`/api/v3.1/org/usage/${entityType}`, withOperation(OP_RETRIEVE, {
18
- body,
19
- ...options
20
- }));
21
- }
22
- retrieveSummary(body = {}, options) {
23
- return this.#client.post("/api/v3.1/org/usage/summary", withOperation(OP_RETRIEVE_SUMMARY, {
24
- body,
25
- ...options
26
- }));
27
- }
28
- };
29
-
30
- //#endregion
31
- export { Usage as t };
@@ -1,4 +0,0 @@
1
- //#region src/version.d.ts
2
- declare const VERSION = "2.0.0-rc.19";
3
- //#endregion
4
- export { VERSION as t };
@@ -1,50 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/webhook-endpoints.ts
4
- const OP_CREATE = generatedOperation("webhookEndpoints.create");
5
- const OP_RETRIEVE = generatedOperation("webhookEndpoints.retrieve");
6
- const OP_UPDATE = generatedOperation("webhookEndpoints.update");
7
- const OP_LIST = generatedOperation("webhookEndpoints.list");
8
- const OP_REPLACE = generatedOperation("webhookEndpoints.replace");
9
- /**
10
- * Spec-surface `client.webhookEndpoints` resource: the 5-method
11
- * `/webhook_endpoints` surface of the v3.1 spec (create/list/retrieve/
12
- * replace/update — `POST {nano_id}` has put-semantics, so it is `replace`;
13
- * `PATCH {nano_id}` is `update`), never published by Stainless.
14
- */
15
- var WebhookEndpoints = class {
16
- #client;
17
- constructor(client) {
18
- this.#client = client;
19
- }
20
- create(body, options) {
21
- return this.#client.post("/api/v3.1/webhook_endpoints", withOperation(OP_CREATE, {
22
- body,
23
- ...options
24
- }));
25
- }
26
- retrieve(nanoID, options) {
27
- return this.#client.get(path`/api/v3.1/webhook_endpoints/${nanoID}`, withOperation(OP_RETRIEVE, { ...options }));
28
- }
29
- update(nanoID, body, options) {
30
- return this.#client.patch(path`/api/v3.1/webhook_endpoints/${nanoID}`, withOperation(OP_UPDATE, {
31
- body,
32
- ...options
33
- }));
34
- }
35
- list(query = {}, options) {
36
- return this.#client.get("/api/v3.1/webhook_endpoints", withOperation(OP_LIST, {
37
- query,
38
- ...options
39
- }));
40
- }
41
- replace(nanoID, body, options) {
42
- return this.#client.post(path`/api/v3.1/webhook_endpoints/${nanoID}`, withOperation(OP_REPLACE, {
43
- body,
44
- ...options
45
- }));
46
- }
47
- };
48
-
49
- //#endregion
50
- export { WebhookEndpoints as t };