@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,2 +1,2 @@
1
- import { Dn as ManageUpdateParams, En as ManageDeleteResponse, On as ManageUpdateResponse, Tn as Manage } from "../../session-configs-BLy_O6bX.mjs";
2
- export { Manage, ManageDeleteResponse, ManageUpdateParams, ManageUpdateResponse };
1
+ import { $n as ManageDeleteResponse, Qn as Manage, er as ManageUpdateParams, nr as makeManage, tr as ManageUpdateResponse } from "../../api-key-revocation-DUHNHxSZ.mjs";
2
+ export { Manage, ManageDeleteResponse, ManageUpdateParams, ManageUpdateResponse, makeManage };
@@ -1,3 +1,20 @@
1
- import { t as Manage } from "../../manage-CeB03gO8.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
2
2
 
3
- export { Manage };
3
+ //#region src/compat/resources/trigger-instances/manage.ts
4
+ const OP_UPDATE = generatedOperation("triggerInstances.manage.update");
5
+ const OP_DELETE = generatedOperation("triggerInstances.manage.delete");
6
+ /** @internal Builds the resource over a client; `new Composio(...)` calls it. */
7
+ const makeManage = (client) => ({
8
+ update(triggerID, body = {}, options) {
9
+ return client.patch(path`/api/v3.1/trigger_instances/manage/${triggerID}`, withOperation(OP_UPDATE, {
10
+ body,
11
+ ...options
12
+ }));
13
+ },
14
+ delete(triggerID, options) {
15
+ return client.delete(path`/api/v3.1/trigger_instances/manage/${triggerID}`, withOperation(OP_DELETE, { ...options }));
16
+ }
17
+ });
18
+
19
+ //#endregion
20
+ export { makeManage };
@@ -1,2 +1,2 @@
1
- import { Cn as TriggerInstanceUpsertResponse, Sn as TriggerInstanceUpsertParams, bn as TriggerInstanceListActiveParams, wn as TriggerInstances, xn as TriggerInstanceListActiveResponse } from "../../session-configs-BLy_O6bX.mjs";
2
- export { TriggerInstanceListActiveParams, TriggerInstanceListActiveResponse, TriggerInstanceUpsertParams, TriggerInstanceUpsertResponse, TriggerInstances };
1
+ import { Jn as TriggerInstanceUpsertParams, Kn as TriggerInstanceListActiveParams, Xn as TriggerInstances, Yn as TriggerInstanceUpsertResponse, Zn as makeTriggerInstances, qn as TriggerInstanceListActiveResponse } from "../../api-key-revocation-DUHNHxSZ.mjs";
2
+ export { TriggerInstanceListActiveParams, TriggerInstanceListActiveResponse, TriggerInstanceUpsertParams, TriggerInstanceUpsertResponse, TriggerInstances, makeTriggerInstances };
@@ -1,3 +1,25 @@
1
- import { t as TriggerInstances } from "../../trigger-instances-vvKswQSW.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
2
+ import { makeManage } from "./manage.mjs";
2
3
 
3
- export { TriggerInstances };
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
+ /** @internal Builds the resource over a client; `new Composio(...)` calls it. */
8
+ const makeTriggerInstances = (client) => ({
9
+ manage: makeManage(client),
10
+ listActive(query = {}, options) {
11
+ return client.get("/api/v3.1/trigger_instances/active", withOperation(OP_LIST_ACTIVE, {
12
+ query,
13
+ ...options
14
+ }));
15
+ },
16
+ upsert(slug, body = {}, options) {
17
+ return client.post(path`/api/v3.1/trigger_instances/${slug}/upsert`, withOperation(OP_UPSERT, {
18
+ body,
19
+ ...options
20
+ }));
21
+ }
22
+ });
23
+
24
+ //#endregion
25
+ export { makeTriggerInstances };
@@ -1,2 +1,2 @@
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
+ import { $n as ManageDeleteResponse, Jn as TriggerInstanceUpsertParams, Kn as TriggerInstanceListActiveParams, Qn as Manage, Xn as TriggerInstances, Yn as TriggerInstanceUpsertResponse, er as ManageUpdateParams, qn as TriggerInstanceListActiveResponse, tr as ManageUpdateResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
2
+ export type { Manage, ManageDeleteResponse, ManageUpdateParams, ManageUpdateResponse, TriggerInstanceListActiveParams, TriggerInstanceListActiveResponse, TriggerInstanceUpsertParams, TriggerInstanceUpsertResponse, TriggerInstances };
@@ -1,5 +1 @@
1
- import { t as Manage } from "../manage-CeB03gO8.mjs";
2
- import { t as TriggerInstances } from "../trigger-instances-vvKswQSW.mjs";
3
- import "./trigger-instances/index.mjs";
4
-
5
- export { Manage, TriggerInstances };
1
+ export { };
@@ -1,2 +1,2 @@
1
- import { An as TriggersTypeListResponse, Mn as TriggersTypeRetrieveParams, Nn as TriggersTypeRetrieveResponse, Pn as TriggersTypes, jn as TriggersTypeRetrieveEnumResponse, kn as TriggersTypeListParams } from "../session-configs-BLy_O6bX.mjs";
2
- export { type TriggersTypeListParams, type TriggersTypeListResponse, type TriggersTypeRetrieveEnumResponse, type TriggersTypeRetrieveParams, type TriggersTypeRetrieveResponse, TriggersTypes };
1
+ import { ar as TriggersTypeRetrieveEnumResponse, cr as TriggersTypes, ir as TriggersTypeListResponse, lr as makeTriggersTypes, or as TriggersTypeRetrieveParams, rr as TriggersTypeListParams, sr as TriggersTypeRetrieveResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
2
+ export { TriggersTypeListParams, TriggersTypeListResponse, TriggersTypeRetrieveEnumResponse, TriggersTypeRetrieveParams, TriggersTypeRetrieveResponse, TriggersTypes, makeTriggersTypes };
@@ -1,3 +1,27 @@
1
- import { t as TriggersTypes } from "../triggers-types-DYW2Mr8z.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
2
2
 
3
- export { TriggersTypes };
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
+ /** @internal Builds the resource over a client; `new Composio(...)` calls it. */
8
+ const makeTriggersTypes = (client) => ({
9
+ retrieve(slug, query = {}, options) {
10
+ return client.get(path`/api/v3.1/triggers_types/${slug}`, withOperation(OP_RETRIEVE, {
11
+ query,
12
+ ...options
13
+ }));
14
+ },
15
+ list(query = {}, options) {
16
+ return client.get("/api/v3.1/triggers_types", withOperation(OP_LIST, {
17
+ query,
18
+ ...options
19
+ }));
20
+ },
21
+ retrieveEnum(options) {
22
+ return client.get("/api/v3.1/triggers_types/list/enum", withOperation(OP_RETRIEVE_ENUM, { ...options }));
23
+ }
24
+ });
25
+
26
+ //#endregion
27
+ export { makeTriggersTypes };
@@ -1,2 +1,2 @@
1
- import { at as WebhookEndpointReplaceResponse, ct as WebhookEndpointUpdateResponse, et as WebhookEndpointCreateParams, it as WebhookEndpointReplaceParams, lt as WebhookEndpoints, nt as WebhookEndpointListParams, ot as WebhookEndpointRetrieveResponse, rt as WebhookEndpointListResponse, st as WebhookEndpointUpdateParams, tt as WebhookEndpointCreateResponse } from "../session-configs-BLy_O6bX.mjs";
2
- export { type WebhookEndpointCreateParams, type WebhookEndpointCreateResponse, type WebhookEndpointListParams, type WebhookEndpointListResponse, type WebhookEndpointReplaceParams, type WebhookEndpointReplaceResponse, type WebhookEndpointRetrieveResponse, type WebhookEndpointUpdateParams, type WebhookEndpointUpdateResponse, WebhookEndpoints };
1
+ import { Ct as WebhookEndpoints, St as WebhookEndpointUpdateResponse, _t as WebhookEndpointListResponse, bt as WebhookEndpointRetrieveResponse, gt as WebhookEndpointListParams, ht as WebhookEndpointCreateResponse, mt as WebhookEndpointCreateParams, vt as WebhookEndpointReplaceParams, wt as makeWebhookEndpoints, xt as WebhookEndpointUpdateParams, yt as WebhookEndpointReplaceResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
2
+ export { WebhookEndpointCreateParams, WebhookEndpointCreateResponse, WebhookEndpointListParams, WebhookEndpointListResponse, WebhookEndpointReplaceParams, WebhookEndpointReplaceResponse, WebhookEndpointRetrieveResponse, WebhookEndpointUpdateParams, WebhookEndpointUpdateResponse, WebhookEndpoints, makeWebhookEndpoints };
@@ -1,3 +1,41 @@
1
- import { t as WebhookEndpoints } from "../webhook-endpoints-HqLteVW6.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
2
2
 
3
- export { WebhookEndpoints };
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
+ /** @internal Builds the resource over a client; `new Composio(...)` calls it. */
10
+ const makeWebhookEndpoints = (client) => ({
11
+ create(body, options) {
12
+ return client.post("/api/v3.1/webhook_endpoints", withOperation(OP_CREATE, {
13
+ body,
14
+ ...options
15
+ }));
16
+ },
17
+ retrieve(nanoID, options) {
18
+ return client.get(path`/api/v3.1/webhook_endpoints/${nanoID}`, withOperation(OP_RETRIEVE, { ...options }));
19
+ },
20
+ update(nanoID, body, options) {
21
+ return client.patch(path`/api/v3.1/webhook_endpoints/${nanoID}`, withOperation(OP_UPDATE, {
22
+ body,
23
+ ...options
24
+ }));
25
+ },
26
+ list(query = {}, options) {
27
+ return client.get("/api/v3.1/webhook_endpoints", withOperation(OP_LIST, {
28
+ query,
29
+ ...options
30
+ }));
31
+ },
32
+ replace(nanoID, body, options) {
33
+ return client.post(path`/api/v3.1/webhook_endpoints/${nanoID}`, withOperation(OP_REPLACE, {
34
+ body,
35
+ ...options
36
+ }));
37
+ }
38
+ });
39
+
40
+ //#endregion
41
+ export { makeWebhookEndpoints };
@@ -1,2 +1,2 @@
1
- import { _t as WebhookSubscriptionRotateSecretResponse, bt as WebhookSubscriptions, dt as WebhookSubscriptionCreateResponse, ft as WebhookSubscriptionDeleteResponse, gt as WebhookSubscriptionRetrieveResponse, ht as WebhookSubscriptionListResponse, mt as WebhookSubscriptionListParams, pt as WebhookSubscriptionListEventTypesResponse, ut as WebhookSubscriptionCreateParams, vt as WebhookSubscriptionUpdateParams, yt as WebhookSubscriptionUpdateResponse } from "../session-configs-BLy_O6bX.mjs";
2
- export { type WebhookSubscriptionCreateParams, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionDeleteResponse, type WebhookSubscriptionListEventTypesResponse, type WebhookSubscriptionListParams, type WebhookSubscriptionListResponse, type WebhookSubscriptionRetrieveResponse, type WebhookSubscriptionRotateSecretResponse, type WebhookSubscriptionUpdateParams, type WebhookSubscriptionUpdateResponse, WebhookSubscriptions };
1
+ import { At as WebhookSubscriptionListResponse, Dt as WebhookSubscriptionDeleteResponse, Et as WebhookSubscriptionCreateResponse, Ft as WebhookSubscriptions, It as makeWebhookSubscriptions, Mt as WebhookSubscriptionRotateSecretResponse, Nt as WebhookSubscriptionUpdateParams, Ot as WebhookSubscriptionListEventTypesResponse, Pt as WebhookSubscriptionUpdateResponse, Tt as WebhookSubscriptionCreateParams, jt as WebhookSubscriptionRetrieveResponse, kt as WebhookSubscriptionListParams } from "../api-key-revocation-DUHNHxSZ.mjs";
2
+ export { WebhookSubscriptionCreateParams, WebhookSubscriptionCreateResponse, WebhookSubscriptionDeleteResponse, WebhookSubscriptionListEventTypesResponse, WebhookSubscriptionListParams, WebhookSubscriptionListResponse, WebhookSubscriptionRetrieveResponse, WebhookSubscriptionRotateSecretResponse, WebhookSubscriptionUpdateParams, WebhookSubscriptionUpdateResponse, WebhookSubscriptions, makeWebhookSubscriptions };
@@ -1,3 +1,46 @@
1
- import { t as WebhookSubscriptions } from "../webhook-subscriptions-CXhNXIOM.mjs";
1
+ import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
2
2
 
3
- export { WebhookSubscriptions };
3
+ //#region src/compat/resources/webhook-subscriptions.ts
4
+ const OP_CREATE = generatedOperation("webhookSubscriptions.create");
5
+ const OP_RETRIEVE = generatedOperation("webhookSubscriptions.retrieve");
6
+ const OP_UPDATE = generatedOperation("webhookSubscriptions.update");
7
+ const OP_LIST = generatedOperation("webhookSubscriptions.list");
8
+ const OP_DELETE = generatedOperation("webhookSubscriptions.delete");
9
+ const OP_LIST_EVENT_TYPES = generatedOperation("webhookSubscriptions.listEventTypes");
10
+ const OP_ROTATE_SECRET = generatedOperation("webhookSubscriptions.rotateSecret");
11
+ /** @internal Builds the resource over a client; `new Composio(...)` calls it. */
12
+ const makeWebhookSubscriptions = (client) => ({
13
+ create(body, options) {
14
+ return client.post("/api/v3.1/webhook_subscriptions", withOperation(OP_CREATE, {
15
+ body,
16
+ ...options
17
+ }));
18
+ },
19
+ retrieve(id, options) {
20
+ return client.get(path`/api/v3.1/webhook_subscriptions/${id}`, withOperation(OP_RETRIEVE, { ...options }));
21
+ },
22
+ update(id, body = {}, options) {
23
+ return client.patch(path`/api/v3.1/webhook_subscriptions/${id}`, withOperation(OP_UPDATE, {
24
+ body,
25
+ ...options
26
+ }));
27
+ },
28
+ list(query = {}, options) {
29
+ return client.get("/api/v3.1/webhook_subscriptions", withOperation(OP_LIST, {
30
+ query,
31
+ ...options
32
+ }));
33
+ },
34
+ delete(id, options) {
35
+ return client.delete(path`/api/v3.1/webhook_subscriptions/${id}`, withOperation(OP_DELETE, { ...options }));
36
+ },
37
+ listEventTypes(options) {
38
+ return client.get("/api/v3.1/webhook_subscriptions/event_types", withOperation(OP_LIST_EVENT_TYPES, { ...options }));
39
+ },
40
+ rotateSecret(id, options) {
41
+ return client.post(path`/api/v3.1/webhook_subscriptions/${id}/rotate_secret`, withOperation(OP_ROTATE_SECRET, { ...options }));
42
+ }
43
+ });
44
+
45
+ //#endregion
46
+ export { makeWebhookSubscriptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/client",
3
- "version": "2.0.0-rc.19",
3
+ "version": "2.0.0-rc.20",
4
4
  "description": "Composio API client for TypeScript, generated from the v3.1 OpenAPI spec with hey-api",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -14,34 +14,6 @@
14
14
  "types": "./dist/pagination.d.mts",
15
15
  "default": "./dist/pagination.mjs"
16
16
  },
17
- "./pagination.js": {
18
- "types": "./dist/pagination.d.mts",
19
- "default": "./dist/pagination.mjs"
20
- },
21
- "./pagination.mjs": {
22
- "types": "./dist/pagination.d.mts",
23
- "default": "./dist/pagination.mjs"
24
- },
25
- "./resources": {
26
- "types": "./dist/resources/index.d.mts",
27
- "default": "./dist/resources/index.mjs"
28
- },
29
- "./resources.js": {
30
- "types": "./dist/resources/index.d.mts",
31
- "default": "./dist/resources/index.mjs"
32
- },
33
- "./resources.mjs": {
34
- "types": "./dist/resources/index.d.mts",
35
- "default": "./dist/resources/index.mjs"
36
- },
37
- "./resources/*.js": {
38
- "types": "./dist/resources/*.d.mts",
39
- "default": "./dist/resources/*.mjs"
40
- },
41
- "./resources/*.mjs": {
42
- "types": "./dist/resources/*.d.mts",
43
- "default": "./dist/resources/*.mjs"
44
- },
45
17
  "./resources/*": {
46
18
  "types": "./dist/resources/*.d.mts",
47
19
  "default": "./dist/resources/*.mjs"
@@ -114,8 +86,7 @@
114
86
  "@types/node": "^26.1.0",
115
87
  "@typescript/native-preview": "^7.0.0-dev.20260703.1",
116
88
  "@vitest/eslint-plugin": "^1.6.26",
117
- "composio-client-previous": "npm:@composio/client@2.0.0-rc.18",
118
- "composio-client-stainless": "npm:@composio/client@0.1.0-alpha.76",
89
+ "composio-client-previous": "npm:@composio/client@2.0.0-rc.19",
119
90
  "effect": "4.0.3",
120
91
  "eslint": "^9.39.4",
121
92
  "msw": "^2.15.0",
@@ -1,25 +0,0 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/api-key-revocation.ts
4
- const OP_CREATE = generatedOperation("apiKeyRevocation.create");
5
- /**
6
- * Spec-surface `client.apiKeyRevocation` resource: the 1-method public
7
- * leaked-key revocation surface of the v3.1 spec
8
- * (`POST /api_key_revocation` — POST-on-collection stays `create`), never
9
- * published by Stainless.
10
- */
11
- var ApiKeyRevocation = class {
12
- #client;
13
- constructor(client) {
14
- this.#client = client;
15
- }
16
- create(body, options) {
17
- return this.#client.post("/api/v3.1/api_key_revocation", withOperation(OP_CREATE, {
18
- body,
19
- ...options
20
- }));
21
- }
22
- };
23
-
24
- //#endregion
25
- export { ApiKeyRevocation as t };
@@ -1,17 +0,0 @@
1
- import { t as Session } from "./session-B-ifOjVv.mjs";
2
-
3
- //#region src/compat/resources/auth/auth.ts
4
- /**
5
- * Spec-surface `client.auth` resource: a method-less container for the
6
- * `session` sub-resource.
7
- */
8
- var Auth = class {
9
- session;
10
- constructor(client) {
11
- this.session = new Session(client);
12
- }
13
- };
14
- Auth.Session = Session;
15
-
16
- //#endregion
17
- export { Auth as t };
@@ -1,55 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/auth-configs.ts
4
- const OP_CREATE = generatedOperation("authConfigs.create");
5
- const OP_RETRIEVE = generatedOperation("authConfigs.retrieve");
6
- const OP_UPDATE = generatedOperation("authConfigs.update");
7
- const OP_LIST = generatedOperation("authConfigs.list");
8
- const OP_DELETE = generatedOperation("authConfigs.delete");
9
- const OP_UPDATE_STATUS = generatedOperation("authConfigs.updateStatus");
10
- /**
11
- * Stainless-shaped `client.authConfigs` resource: the exact 6-method surface of
12
- * `@composio/client` (create/retrieve/update/list/delete/updateStatus),
13
- * dispatched through the handwritten kernel.
14
- */
15
- var AuthConfigs = class {
16
- #client;
17
- constructor(client) {
18
- this.#client = client;
19
- }
20
- create(body, options) {
21
- return this.#client.post("/api/v3.1/auth_configs", withOperation(OP_CREATE, {
22
- body,
23
- ...options
24
- }));
25
- }
26
- retrieve(nanoid, options) {
27
- return this.#client.get(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
28
- }
29
- update(nanoid, body, options) {
30
- return this.#client.patch(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_UPDATE, {
31
- body,
32
- ...options
33
- }));
34
- }
35
- list(query = {}, options) {
36
- return this.#client.get("/api/v3.1/auth_configs", withOperation(OP_LIST, {
37
- query,
38
- ...options
39
- }));
40
- }
41
- delete(nanoid, query = {}, options) {
42
- return this.#client.delete(path`/api/v3.1/auth_configs/${nanoid}`, withOperation(OP_DELETE, {
43
- query,
44
- ...options
45
- }));
46
- }
47
- /** @deprecated Deprecated in the input OpenAPI schema. */
48
- updateStatus(status, params, options) {
49
- const { nanoid } = params;
50
- return this.#client.patch(path`/api/v3.1/auth_configs/${nanoid}/${status}`, withOperation(OP_UPDATE_STATUS, { ...options }));
51
- }
52
- };
53
-
54
- //#endregion
55
- export { AuthConfigs as t };
@@ -1,24 +0,0 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/org/clanker.ts
4
- const OP_CREATE_CLAIM = generatedOperation("org.clanker.createClaim");
5
- /**
6
- * Spec-surface `client.org.clanker` resource: the 1-method claim surface of
7
- * the v3.1 spec (`POST /org/clanker/create_claim`), never published by
8
- * Stainless.
9
- */
10
- var Clanker = class {
11
- #client;
12
- constructor(client) {
13
- this.#client = client;
14
- }
15
- createClaim(body, options) {
16
- return this.#client.post("/api/v3.1/org/clanker/create_claim", withOperation(OP_CREATE_CLAIM, {
17
- body,
18
- ...options
19
- }));
20
- }
21
- };
22
-
23
- //#endregion
24
- export { Clanker as t };
@@ -1,44 +0,0 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
- import { t as Realtime } from "./realtime-F_sGuTd8.mjs";
3
-
4
- //#region src/compat/resources/cli/cli.ts
5
- const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
6
- const OP_CREATE_SESSION = generatedOperation("cli.createSession");
7
- const OP_GET_SESSION = generatedOperation("cli.getSession");
8
- /**
9
- * Stainless-shaped `client.cli` resource: the 2-method published CLI
10
- * authentication surface of `@composio/client` (createSession/getSession)
11
- * plus the spec-surface `createCodactFailure` (`POST /cli/codact_failures`,
12
- * never published by Stainless).
13
- */
14
- var Cli = class {
15
- realtime;
16
- #client;
17
- constructor(client) {
18
- this.#client = client;
19
- this.realtime = new Realtime(client);
20
- }
21
- createCodactFailure(params, options) {
22
- const { "x-user-api-key": xUserApiKey, ...body } = params;
23
- return this.#client.post("/api/v3.1/cli/codact_failures", withOperation(OP_CREATE_CODACT_FAILURE, {
24
- body,
25
- ...options
26
- }, { "x-user-api-key": xUserApiKey }));
27
- }
28
- createSession(body = {}, options) {
29
- return this.#client.post("/api/v3.1/cli/create-session", withOperation(OP_CREATE_SESSION, {
30
- body,
31
- ...options
32
- }));
33
- }
34
- getSession(query, options) {
35
- return this.#client.get("/api/v3.1/cli/get-session", withOperation(OP_GET_SESSION, {
36
- query,
37
- ...options
38
- }));
39
- }
40
- };
41
- Cli.Realtime = Realtime;
42
-
43
- //#endregion
44
- export { Cli as t };
@@ -1,10 +0,0 @@
1
- //#region src/compat/resources/project/config.ts
2
- /**
3
- * Stainless-shaped `client.project.config` resource: an empty resource class
4
- * (Stainless declares it with no methods), shipped for import/`instanceof`/
5
- * namespace parity.
6
- */
7
- var Config = class {};
8
-
9
- //#endregion
10
- export { Config as t };
@@ -1,9 +0,0 @@
1
- //#region src/compat/resources/project/config.d.ts
2
- /**
3
- * Stainless-shaped `client.project.config` resource: an empty resource class
4
- * (Stainless declares it with no methods), shipped for import/`instanceof`/
5
- * namespace parity.
6
- */
7
- declare class Config {}
8
- //#endregion
9
- export { Config as t };
@@ -1,83 +0,0 @@
1
- import { d as path, n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/connected-accounts.ts
4
- const OP_CREATE = generatedOperation("connectedAccounts.create");
5
- const OP_RETRIEVE = generatedOperation("connectedAccounts.retrieve");
6
- const OP_LIST = generatedOperation("connectedAccounts.list");
7
- const OP_DELETE = generatedOperation("connectedAccounts.delete");
8
- const OP_COMPLETE_AUTH = generatedOperation("connectedAccounts.completeAuth");
9
- const OP_PATCH = generatedOperation("connectedAccounts.patch");
10
- const OP_REFRESH = generatedOperation("connectedAccounts.refresh");
11
- const OP_REVOKE = generatedOperation("connectedAccounts.revoke");
12
- const OP_UPDATE_STATUS = generatedOperation("connectedAccounts.updateStatus");
13
- /**
14
- * Stainless-shaped `client.connectedAccounts` resource: the 7-method published
15
- * surface of `@composio/client` (create/retrieve/list/delete/patch/refresh/
16
- * updateStatus) plus the spec-surface `revoke`
17
- * (`POST /connected_accounts/{nanoid}/revoke`, never published by Stainless),
18
- * dispatched through the handwritten kernel.
19
- */
20
- var ConnectedAccounts = class {
21
- #client;
22
- constructor(client) {
23
- this.#client = client;
24
- }
25
- create(body, options) {
26
- return this.#client.post("/api/v3.1/connected_accounts", withOperation(OP_CREATE, {
27
- body,
28
- ...options
29
- }));
30
- }
31
- retrieve(nanoid, options) {
32
- return this.#client.get(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
33
- }
34
- list(query = {}, options) {
35
- return this.#client.get("/api/v3.1/connected_accounts", withOperation(OP_LIST, {
36
- query,
37
- ...options
38
- }));
39
- }
40
- delete(nanoid, query = {}, options) {
41
- return this.#client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_DELETE, {
42
- query,
43
- ...options
44
- }));
45
- }
46
- completeAuth(body, options) {
47
- return this.#client.post("/api/v3.1/connected_accounts/complete_auth", withOperation(OP_COMPLETE_AUTH, {
48
- body,
49
- ...options
50
- }));
51
- }
52
- patch(nanoid, body = {}, options) {
53
- return this.#client.patch(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_PATCH, {
54
- body,
55
- ...options
56
- }));
57
- }
58
- /** @deprecated Deprecated in the input OpenAPI schema. */
59
- refresh(nanoid, params = {}, options) {
60
- const { query_redirect_url, body_redirect_url, ...body } = params ?? {};
61
- return this.#client.post(path`/api/v3.1/connected_accounts/${nanoid}/refresh`, withOperation(OP_REFRESH, {
62
- query: { redirect_url: query_redirect_url },
63
- body: {
64
- ...body,
65
- redirect_url: body_redirect_url
66
- },
67
- ...options
68
- }));
69
- }
70
- revoke(nanoid, options) {
71
- return this.#client.post(path`/api/v3.1/connected_accounts/${nanoid}/revoke`, withOperation(OP_REVOKE, { ...options }));
72
- }
73
- /** @deprecated Deprecated in the input OpenAPI schema. */
74
- updateStatus(nanoID, body, options) {
75
- return this.#client.patch(path`/api/v3.1/connected_accounts/${nanoID}/status`, withOperation(OP_UPDATE_STATUS, {
76
- body,
77
- ...options
78
- }));
79
- }
80
- };
81
-
82
- //#endregion
83
- export { ConnectedAccounts as t };
@@ -1,33 +0,0 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
- import { t as Project } from "./project-DcV01umC.mjs";
3
-
4
- //#region src/compat/resources/org/consumer/consumer.ts
5
- const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnectedToolkits");
6
- /**
7
- * Spec-surface `client.org.consumer` resource: the 1-method consumer surface
8
- * of the v3.1 spec (listConnectedToolkits over
9
- * `/org/consumer/connected_toolkits`) plus the `project` sub-resource, never
10
- * published by Stainless.
11
- */
12
- var Consumer = class {
13
- project;
14
- #client;
15
- constructor(client) {
16
- this.#client = client;
17
- this.project = new Project(client);
18
- }
19
- listConnectedToolkits(params, options) {
20
- const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId, ...query } = params;
21
- return this.#client.get("/api/v3.1/org/consumer/connected_toolkits", withOperation(OP_LIST_CONNECTED_TOOLKITS, {
22
- query,
23
- ...options
24
- }, {
25
- "x-user-api-key": xUserApiKey,
26
- "x-org-id": xOrgId
27
- }));
28
- }
29
- };
30
- Consumer.Project = Project;
31
-
32
- //#endregion
33
- export { Consumer 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/custom.ts
4
- const OP_DELETE_TOOLKIT = generatedOperation("custom.deleteToolkit");
5
- const OP_SYNC = generatedOperation("custom.sync");
6
- const OP_UPSERT = generatedOperation("custom.upsert");
7
- /** OpenAPI resource for `custom`. */
8
- var Custom = class {
9
- #client;
10
- constructor(client) {
11
- this.#client = client;
12
- }
13
- deleteToolkit(slug, query = {}, options) {
14
- return this.#client.delete(path`/api/v3.1/custom/toolkits/${slug}`, withOperation(OP_DELETE_TOOLKIT, {
15
- query,
16
- ...options
17
- }));
18
- }
19
- sync(body, options) {
20
- return this.#client.post("/api/v3.1/custom/toolkits/sync", withOperation(OP_SYNC, {
21
- body,
22
- ...options
23
- }));
24
- }
25
- upsert(body, options) {
26
- return this.#client.post("/api/v3.1/custom/toolkits/upsert", withOperation(OP_UPSERT, {
27
- body,
28
- ...options
29
- }));
30
- }
31
- };
32
-
33
- //#endregion
34
- export { Custom as t };
@@ -1,24 +0,0 @@
1
- import { n as generatedOperation, y as withOperation } from "./generated-operations-Dv7pAKDT.mjs";
2
-
3
- //#region src/compat/resources/mcp/custom.ts
4
- const OP_CREATE = generatedOperation("mcp.custom.create");
5
- /**
6
- * Stainless-shaped `client.mcp.custom` resource: the 1-method custom MCP
7
- * server sub-surface of `@composio/client` (`POST /mcp/servers/custom`).
8
- */
9
- var Custom = class {
10
- #client;
11
- constructor(client) {
12
- this.#client = client;
13
- }
14
- /** @deprecated Deprecated in the input OpenAPI schema. */
15
- create(body, options) {
16
- return this.#client.post("/api/v3.1/mcp/servers/custom", withOperation(OP_CREATE, {
17
- body,
18
- ...options
19
- }));
20
- }
21
- };
22
-
23
- //#endregion
24
- export { Custom as t };