@composio/client 2.0.0-rc.5 → 2.0.0-rc.7

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 (166) hide show
  1. package/README.md +78 -4
  2. package/dist/{api-key-revocation-qTsznJmF.mjs → api-key-revocation-BPURmRJx.mjs} +1 -1
  3. package/dist/{auth-configs-B0IbEao2.mjs → auth-configs-DYkxc_It.mjs} +1 -1
  4. package/dist/{auth-Dw30Hpb_.mjs → auth-iqhTmHa9.mjs} +1 -1
  5. package/dist/{clanker-BJNgPfZ2.mjs → clanker-CzfQDpuy.mjs} +1 -1
  6. package/dist/{cli-CUWplx80.mjs → cli-Er9a9rGs.mjs} +2 -2
  7. package/dist/{client-CtqZaY-5.d.mts → client-CcYk8XXt.d.mts} +3857 -684
  8. package/dist/{connected-accounts-hwz_Ahf8.mjs → connected-accounts-DDgErVLd.mjs} +8 -1
  9. package/dist/{consumer-BX9lVqTG.mjs → consumer-BPCfagDO.mjs} +2 -2
  10. package/dist/custom-Cs019zcM.mjs +31 -0
  11. package/dist/{custom-tBFB6wwF.mjs → custom-VZyKhTTG.mjs} +2 -1
  12. package/dist/error-DPPtjCl1.mjs +75 -0
  13. package/dist/{files-Blm1q37V.mjs → files-C1QA5PTw.mjs} +1 -1
  14. package/dist/{files-vyDo0NH0.mjs → files-hhfQpMSx.mjs} +1 -1
  15. package/dist/{generate-DnzpeBp5.mjs → generate-iwm8bHWW.mjs} +2 -1
  16. package/dist/{generated-operations-DEPr4e2f.mjs → generated-operations-CJ7bbwvC.mjs} +50 -83
  17. package/dist/index.d.mts +2 -2
  18. package/dist/index.mjs +51 -29
  19. package/dist/keyring-Dkcbmstv.mjs +17 -0
  20. package/dist/{link-UHD4M7zo.mjs → link-Dk-yWRgc.mjs} +1 -1
  21. package/dist/{logs-B61ufb_6.mjs → logs-DnZUgpLM.mjs} +3 -3
  22. package/dist/{manage-6ysZI9l4.mjs → manage-DfB0PrkM.mjs} +1 -1
  23. package/dist/{mcp-C9IT8Cpv.mjs → mcp-BfStaFrR.mjs} +12 -3
  24. package/dist/{org-Bj5m1nn8.mjs → org-bXBx5whI.mjs} +6 -6
  25. package/dist/{owner-BSIXkRF0.mjs → owner-BlJ0zURX.mjs} +1 -1
  26. package/dist/pagination.d.mts +56 -0
  27. package/dist/pagination.mjs +50 -0
  28. package/dist/{project-84ETQ8s3.mjs → project-B0ax2ZoD.mjs} +1 -1
  29. package/dist/{project-BrbKVCdG.mjs → project-BeWloPLZ.mjs} +1 -1
  30. package/dist/{project-BfNWC2nb.mjs → project-BnMfaNjl.mjs} +1 -1
  31. package/dist/{project-CPmAuLg4.mjs → project-CGi2urmA.mjs} +1 -1
  32. package/dist/{realtime-D7OslBiN.mjs → realtime-BNfA3u3B.mjs} +1 -1
  33. package/dist/resources/api-key-revocation.d.mts +1 -1
  34. package/dist/resources/api-key-revocation.mjs +1 -1
  35. package/dist/resources/auth/auth.d.mts +1 -1
  36. package/dist/resources/auth/auth.mjs +1 -1
  37. package/dist/resources/auth/index.d.mts +1 -1
  38. package/dist/resources/auth/index.mjs +2 -2
  39. package/dist/resources/auth/session.d.mts +1 -1
  40. package/dist/resources/auth/session.mjs +1 -1
  41. package/dist/resources/auth-configs.d.mts +1 -1
  42. package/dist/resources/auth-configs.mjs +1 -1
  43. package/dist/resources/auth.d.mts +1 -1
  44. package/dist/resources/auth.mjs +2 -2
  45. package/dist/resources/cli/cli.d.mts +1 -1
  46. package/dist/resources/cli/cli.mjs +1 -1
  47. package/dist/resources/cli/index.d.mts +1 -1
  48. package/dist/resources/cli/index.mjs +2 -2
  49. package/dist/resources/cli/realtime.d.mts +1 -1
  50. package/dist/resources/cli/realtime.mjs +1 -1
  51. package/dist/resources/cli.d.mts +1 -1
  52. package/dist/resources/cli.mjs +2 -2
  53. package/dist/resources/connected-accounts.d.mts +1 -1
  54. package/dist/resources/connected-accounts.mjs +1 -1
  55. package/dist/resources/custom.d.mts +2 -0
  56. package/dist/resources/custom.mjs +3 -0
  57. package/dist/resources/files.d.mts +1 -1
  58. package/dist/resources/files.mjs +1 -1
  59. package/dist/resources/index.d.mts +1 -1
  60. package/dist/resources/index.mjs +13 -13
  61. package/dist/resources/keyring.d.mts +2 -0
  62. package/dist/resources/keyring.mjs +3 -0
  63. package/dist/resources/link.d.mts +1 -1
  64. package/dist/resources/link.mjs +1 -1
  65. package/dist/resources/logs/index.d.mts +1 -1
  66. package/dist/resources/logs/index.mjs +3 -3
  67. package/dist/resources/logs/logs.d.mts +1 -1
  68. package/dist/resources/logs/logs.mjs +1 -1
  69. package/dist/resources/logs/tools.d.mts +1 -1
  70. package/dist/resources/logs/tools.mjs +1 -1
  71. package/dist/resources/logs/triggers.d.mts +1 -1
  72. package/dist/resources/logs/triggers.mjs +1 -1
  73. package/dist/resources/logs.d.mts +1 -1
  74. package/dist/resources/logs.mjs +3 -3
  75. package/dist/resources/mcp/custom.d.mts +1 -1
  76. package/dist/resources/mcp/custom.mjs +1 -1
  77. package/dist/resources/mcp/generate.d.mts +1 -1
  78. package/dist/resources/mcp/generate.mjs +1 -1
  79. package/dist/resources/mcp/index.d.mts +1 -1
  80. package/dist/resources/mcp/index.mjs +3 -3
  81. package/dist/resources/mcp/mcp.d.mts +1 -1
  82. package/dist/resources/mcp/mcp.mjs +1 -1
  83. package/dist/resources/mcp.d.mts +1 -1
  84. package/dist/resources/mcp.mjs +3 -3
  85. package/dist/resources/org/clanker.d.mts +1 -1
  86. package/dist/resources/org/clanker.mjs +1 -1
  87. package/dist/resources/org/consumer/consumer.d.mts +1 -1
  88. package/dist/resources/org/consumer/consumer.mjs +1 -1
  89. package/dist/resources/org/consumer/index.d.mts +1 -1
  90. package/dist/resources/org/consumer/index.mjs +2 -2
  91. package/dist/resources/org/consumer/project.d.mts +1 -1
  92. package/dist/resources/org/consumer/project.mjs +1 -1
  93. package/dist/resources/org/consumer.d.mts +1 -1
  94. package/dist/resources/org/consumer.mjs +2 -2
  95. package/dist/resources/org/index.d.mts +1 -1
  96. package/dist/resources/org/index.mjs +6 -6
  97. package/dist/resources/org/org.d.mts +1 -1
  98. package/dist/resources/org/org.mjs +1 -1
  99. package/dist/resources/org/owner/index.d.mts +1 -1
  100. package/dist/resources/org/owner/index.mjs +2 -2
  101. package/dist/resources/org/owner/owner.d.mts +1 -1
  102. package/dist/resources/org/owner/owner.mjs +1 -1
  103. package/dist/resources/org/owner/project.d.mts +1 -1
  104. package/dist/resources/org/owner/project.mjs +1 -1
  105. package/dist/resources/org/owner.d.mts +1 -1
  106. package/dist/resources/org/owner.mjs +2 -2
  107. package/dist/resources/org/project.d.mts +1 -1
  108. package/dist/resources/org/project.mjs +1 -1
  109. package/dist/resources/org/usage.d.mts +1 -1
  110. package/dist/resources/org/usage.mjs +1 -1
  111. package/dist/resources/org.d.mts +1 -1
  112. package/dist/resources/org.mjs +6 -6
  113. package/dist/resources/project/index.d.mts +1 -1
  114. package/dist/resources/project/index.mjs +1 -1
  115. package/dist/resources/project/project.d.mts +1 -1
  116. package/dist/resources/project/project.mjs +1 -1
  117. package/dist/resources/project/usage.d.mts +1 -1
  118. package/dist/resources/project/usage.mjs +1 -1
  119. package/dist/resources/project.d.mts +1 -1
  120. package/dist/resources/project.mjs +1 -1
  121. package/dist/resources/tool-router/index.d.mts +1 -1
  122. package/dist/resources/tool-router/index.mjs +2 -2
  123. package/dist/resources/tool-router/session/files.d.mts +1 -1
  124. package/dist/resources/tool-router/session/files.mjs +1 -1
  125. package/dist/resources/tool-router/session/index.d.mts +1 -1
  126. package/dist/resources/tool-router/session/index.mjs +2 -2
  127. package/dist/resources/tool-router/session/session.d.mts +1 -1
  128. package/dist/resources/tool-router/session/session.mjs +1 -1
  129. package/dist/resources/tool-router/session.d.mts +1 -1
  130. package/dist/resources/tool-router/session.mjs +2 -2
  131. package/dist/resources/tool-router/tool-router.d.mts +1 -1
  132. package/dist/resources/tool-router/tool-router.mjs +1 -1
  133. package/dist/resources/tool-router.d.mts +1 -1
  134. package/dist/resources/tool-router.mjs +2 -2
  135. package/dist/resources/toolkits.d.mts +1 -1
  136. package/dist/resources/toolkits.mjs +1 -1
  137. package/dist/resources/tools.d.mts +1 -1
  138. package/dist/resources/tools.mjs +1 -1
  139. package/dist/resources/trigger-instances/index.d.mts +1 -1
  140. package/dist/resources/trigger-instances/index.mjs +2 -2
  141. package/dist/resources/trigger-instances/manage.d.mts +1 -1
  142. package/dist/resources/trigger-instances/manage.mjs +1 -1
  143. package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
  144. package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
  145. package/dist/resources/trigger-instances.d.mts +1 -1
  146. package/dist/resources/trigger-instances.mjs +2 -2
  147. package/dist/resources/triggers-types.d.mts +1 -1
  148. package/dist/resources/triggers-types.mjs +1 -1
  149. package/dist/resources/webhook-endpoints.d.mts +1 -1
  150. package/dist/resources/webhook-endpoints.mjs +1 -1
  151. package/dist/resources/webhook-subscriptions.d.mts +1 -1
  152. package/dist/resources/webhook-subscriptions.mjs +1 -1
  153. package/dist/{session-CJLfSQti.mjs → session-B78Twedd.mjs} +1 -1
  154. package/dist/{session-HQf03_ub.mjs → session-D3Azxyck.mjs} +2 -2
  155. package/dist/{tool-router-kFw8Xqp9.mjs → tool-router-Bx1tQfx-.mjs} +1 -1
  156. package/dist/{toolkits-wapurMFl.mjs → toolkits-DFC0JDvT.mjs} +15 -1
  157. package/dist/{tools-BmHuPUvd.mjs → tools-Bv2Txlel.mjs} +1 -1
  158. package/dist/{tools-KN8T5BtJ.mjs → tools-EL1x4SBb.mjs} +2 -1
  159. package/dist/{trigger-instances-DeRL4DhM.mjs → trigger-instances-BI-STHc4.mjs} +2 -2
  160. package/dist/{triggers-types-DLap3EOR.mjs → triggers-types-CJWi--Kk.mjs} +1 -1
  161. package/dist/{triggers-DZWXfIwq.mjs → triggers-vTkWuT5B.mjs} +1 -1
  162. package/dist/{usage-DwYx7p-o.mjs → usage-DspCrBUv.mjs} +1 -1
  163. package/dist/{usage-Buq-FwCY.mjs → usage-cffJ-ds7.mjs} +1 -1
  164. package/dist/{webhook-endpoints-DbIlhiI-.mjs → webhook-endpoints-DSN8i5KN.mjs} +1 -1
  165. package/dist/{webhook-subscriptions-CXC0oAhI.mjs → webhook-subscriptions-Bgsnr29T.mjs} +1 -1
  166. package/package.json +17 -5
@@ -1,5 +1,5 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Files } from "./files-vyDo0NH0.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.mjs";
2
+ import { t as Files } from "./files-hhfQpMSx.mjs";
3
3
 
4
4
  //#region src/compat/resources/tool-router/session/session.ts
5
5
  const OP_CREATE = generatedOperation("toolRouter.session.create");
@@ -1,4 +1,4 @@
1
- import { t as Session } from "./session-HQf03_ub.mjs";
1
+ import { t as Session } from "./session-D3Azxyck.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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 } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.mjs";
2
2
 
3
3
  //#region src/compat/resources/logs/tools.ts
4
4
  const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
@@ -1,4 +1,4 @@
1
- import { a as path, c as withOperation, f as mergeHeaders, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation, p as mergeHeaders } from "./generated-operations-CJ7bbwvC.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,5 +1,5 @@
1
- import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-DEPr4e2f.mjs";
2
- import { t as Manage } from "./manage-6ysZI9l4.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.mjs";
2
+ import { t as Manage } from "./manage-DfB0PrkM.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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-DEPr4e2f.mjs";
1
+ import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-CJ7bbwvC.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.5",
3
+ "version": "2.0.0-rc.7",
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",