@composio/client 2.0.0-rc.6 → 2.0.0-rc.8

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 (168) hide show
  1. package/README.md +51 -3
  2. package/dist/{api-key-revocation-CSNyQo6m.mjs → api-key-revocation--5qqPnDz.mjs} +1 -1
  3. package/dist/{auth-BpeKOtkr.mjs → auth-_btgyN8t.mjs} +1 -1
  4. package/dist/{auth-configs-DAS68quO.mjs → auth-configs-lkRDnT-a.mjs} +1 -1
  5. package/dist/{clanker-CdTX3VrN.mjs → clanker-DBfYfkSH.mjs} +1 -1
  6. package/dist/{cli-BwAcGYUv.mjs → cli-Ckmt28-b.mjs} +2 -2
  7. package/dist/{connected-accounts-Bri1c8_y.mjs → connected-accounts-BJ5Ms_qb.mjs} +8 -1
  8. package/dist/{consumer-C-Sr8ilJ.mjs → consumer--h4l55c3.mjs} +2 -2
  9. package/dist/{custom-CZ41HKuF.mjs → custom-CA8Amqss.mjs} +2 -1
  10. package/dist/custom-CFKQnTel.mjs +31 -0
  11. package/dist/error-DLB1uKM3.mjs +109 -0
  12. package/dist/{files-Bw-q9jvQ.mjs → files-BP4vVrwo.mjs} +1 -1
  13. package/dist/{files-nKAca7MP.mjs → files-DG9Gc9CB.mjs} +1 -1
  14. package/dist/{generate-22I_8m4Q.mjs → generate-CGElZfOL.mjs} +2 -1
  15. package/dist/{generated-operations-BQO2JR1q.mjs → generated-operations-DVRtlxnl.mjs} +54 -76
  16. package/dist/index.d.mts +3 -3
  17. package/dist/index.mjs +48 -26
  18. package/dist/keyring-DaSYpy6j.mjs +17 -0
  19. package/dist/{link-D68LLK4Z.mjs → link-DUiP6kjL.mjs} +1 -1
  20. package/dist/{logs-D51p26Kb.mjs → logs-e4Kf3pcP.mjs} +3 -3
  21. package/dist/{manage-D8yy7vO-.mjs → manage-DTaRdqWV.mjs} +2 -2
  22. package/dist/{mcp-YTLiywS3.mjs → mcp-DxX8J9j8.mjs} +12 -3
  23. package/dist/{org-Cutt-dnU.mjs → org-BIGutZCA.mjs} +6 -6
  24. package/dist/{owner-ZVJeAZpU.mjs → owner-YrMH9R90.mjs} +1 -1
  25. package/dist/pagination.d.mts +56 -0
  26. package/dist/pagination.mjs +50 -0
  27. package/dist/{project-C8ZpAfnV.mjs → project-B59Fh0L9.mjs} +1 -1
  28. package/dist/{project-D0caI7O8.mjs → project-D2NT5pmv.mjs} +1 -1
  29. package/dist/{project-DKhGV5KP.mjs → project-DGE_op-j.mjs} +1 -1
  30. package/dist/{project-BObd0xOa.mjs → project-DWBDOy0X.mjs} +1 -1
  31. package/dist/{realtime-CtLFFEf8.mjs → realtime-BFjIp94B.mjs} +1 -1
  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-Byj-qri0.mjs → session-B9FZU6oA.mjs} +1 -1
  155. package/dist/{session-BFEAeE9G.mjs → session-DtXQM3G3.mjs} +2 -2
  156. package/dist/{client-Cu0FrKmX.d.mts → session-configs-DC9dblKH.d.mts} +4526 -897
  157. package/dist/{tool-router-CyuTk9t-.mjs → tool-router-CTH_fcxP.mjs} +1 -1
  158. package/dist/{toolkits-Bck41m7-.mjs → toolkits-CxXj47JG.mjs} +15 -1
  159. package/dist/{tools-Bvbrgij6.mjs → tools-B9zq-uPU.mjs} +2 -1
  160. package/dist/{tools-D8kKy_iy.mjs → tools-BpRusMHS.mjs} +1 -1
  161. package/dist/{trigger-instances-B3oj-IJW.mjs → trigger-instances-DSk1vemj.mjs} +2 -2
  162. package/dist/{triggers-CirhOG03.mjs → triggers-DRn4adsh.mjs} +1 -1
  163. package/dist/{triggers-types-CHJxtojA.mjs → triggers-types-Cgh-mvOz.mjs} +1 -1
  164. package/dist/{usage-CD53euIq.mjs → usage-B6pidrAI.mjs} +1 -1
  165. package/dist/{usage-C5VBnFfd.mjs → usage-B8p0O_pg.mjs} +1 -1
  166. package/dist/{webhook-endpoints-gTzzFJ1c.mjs → webhook-endpoints-D4uTri1P.mjs} +1 -1
  167. package/dist/{webhook-subscriptions-bZFki65N.mjs → webhook-subscriptions-DYxSYlZP.mjs} +1 -1
  168. package/package.json +17 -5
@@ -1,4 +1,4 @@
1
- import { t as Session } from "./session-BFEAeE9G.mjs";
1
+ import { t as Session } from "./session-DtXQM3G3.mjs";
2
2
 
3
3
  //#region src/compat/resources/tool-router/tool-router.ts
4
4
  /** Stainless-shaped `client.toolRouter` resource. */
@@ -1,11 +1,13 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/toolkits.ts
4
4
  const OP_RETRIEVE = generatedOperation("toolkits.retrieve");
5
5
  const OP_LIST = generatedOperation("toolkits.list");
6
+ const OP_RECOMMEND_SCOPES = generatedOperation("toolkits.recommendScopes");
6
7
  const OP_RETRIEVE_CATEGORIES = generatedOperation("toolkits.retrieveCategories");
7
8
  const OP_RETRIEVE_CHANGELOG = generatedOperation("toolkits.retrieveChangelog");
8
9
  const OP_RETRIEVE_MULTI = generatedOperation("toolkits.retrieveMulti");
10
+ const OP_RETRIEVE_SCOPES_GRANT_CONTEXT = generatedOperation("toolkits.retrieveScopesGrantContext");
9
11
  /**
10
12
  * Stainless-shaped `client.toolkits` resource: the 3-method published surface
11
13
  * of `@composio/client` (retrieve/list/retrieveCategories) plus the
@@ -30,6 +32,12 @@ var Toolkits = class {
30
32
  ...options
31
33
  }));
32
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
+ }
33
41
  retrieveCategories(options) {
34
42
  return this.#client.get("/api/v3.1/toolkits/categories", withOperation(OP_RETRIEVE_CATEGORIES, { ...options }));
35
43
  }
@@ -42,6 +50,12 @@ var Toolkits = class {
42
50
  ...options
43
51
  }));
44
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
+ }
45
59
  };
46
60
 
47
61
  //#endregion
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation, p as mergeHeaders } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation, p as mergeHeaders } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/tools.ts
4
4
  const OP_RETRIEVE = generatedOperation("tools.retrieve");
@@ -55,6 +55,7 @@ var Tools = class {
55
55
  retrieveEnum(options) {
56
56
  return this.#client.get("/api/v3.1/tools/enum", withOperation(OP_RETRIEVE_ENUM, { ...options }));
57
57
  }
58
+ /** @deprecated Deprecated in the input OpenAPI schema. */
58
59
  retrieveRequiredScopes(body, options) {
59
60
  return this.#client.post("/api/v3.1/tools/scopes/required", withOperation(OP_RETRIEVE_REQUIRED_SCOPES, {
60
61
  body,
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/logs/tools.ts
4
4
  const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
@@ -1,5 +1,5 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
2
- import { t as Manage } from "./manage-D8yy7vO-.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
+ import { t as Manage } from "./manage-DTaRdqWV.mjs";
3
3
 
4
4
  //#region src/compat/resources/trigger-instances/trigger-instances.ts
5
5
  const OP_LIST_ACTIVE = generatedOperation("triggerInstances.listActive");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/logs/triggers.ts
4
4
  const OP_RETRIEVE = generatedOperation("logs.triggers.retrieve");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/triggers-types.ts
4
4
  const OP_RETRIEVE = generatedOperation("triggersTypes.retrieve");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/org/usage.ts
4
4
  const OP_RETRIEVE = generatedOperation("org.usage.retrieve");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/project/usage.ts
4
4
  const OP_RETRIEVE = generatedOperation("project.usage.retrieve");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/webhook-endpoints.ts
4
4
  const OP_CREATE = generatedOperation("webhookEndpoints.create");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-BQO2JR1q.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DVRtlxnl.mjs";
2
2
 
3
3
  //#region src/compat/resources/webhook-subscriptions.ts
4
4
  const OP_CREATE = generatedOperation("webhookSubscriptions.create");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/client",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0-rc.8",
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",
@@ -10,6 +10,18 @@
10
10
  "types": "./dist/index.d.mts",
11
11
  "default": "./dist/index.mjs"
12
12
  },
13
+ "./pagination": {
14
+ "types": "./dist/pagination.d.mts",
15
+ "default": "./dist/pagination.mjs"
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
+ },
13
25
  "./resources": {
14
26
  "types": "./dist/resources/index.d.mts",
15
27
  "default": "./dist/resources/index.mjs"
@@ -62,10 +74,10 @@
62
74
  "build": "tsdown",
63
75
  "benchmark": "pnpm build && node --experimental-transform-types scripts/benchmark.ts",
64
76
  "benchmark:baseline": "pnpm build && rm -rf .artifacts/benchmark/baseline && mkdir -p .artifacts/benchmark && cp -R dist .artifacts/benchmark/baseline",
65
- "typecheck": "tsgo --noEmit && tsgo --noEmit -p tsconfig.type-tests.json && tsgo --noEmit -p packages/codegen && tsgo --noEmit -p packages/parity",
66
- "typecheck:tsc": "tsc --noEmit && tsc --noEmit -p tsconfig.type-tests.json && tsc --noEmit -p packages/codegen && tsc --noEmit -p packages/parity",
67
- "lint": "eslint src test packages/codegen/src packages/codegen/test packages/parity/src packages/parity/test",
68
- "test": "vitest run --project unit --project codegen --project parity",
77
+ "typecheck": "tsgo --noEmit && tsgo --noEmit -p tsconfig.type-tests.json && tsgo --noEmit -p packages/codegen && tsgo --noEmit -p packages/parity && tsgo --noEmit -p demo",
78
+ "typecheck:tsc": "tsc --noEmit && tsc --noEmit -p tsconfig.type-tests.json && tsc --noEmit -p packages/codegen && tsc --noEmit -p packages/parity && tsc --noEmit -p demo",
79
+ "lint": "eslint src test packages/codegen/src packages/codegen/test packages/parity/src packages/parity/test demo/run.ts demo/typescript",
80
+ "test": "vitest run --project unit --project codegen --project parity --project demo",
69
81
  "test:pack": "./scripts/pack-check.sh",
70
82
  "test:contract": "vitest run --project contract",
71
83
  "test:parity:live": "pnpm build && node --experimental-transform-types packages/parity/src/main.ts",