@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.
- package/README.md +78 -4
- package/dist/{api-key-revocation-qTsznJmF.mjs → api-key-revocation-BPURmRJx.mjs} +1 -1
- package/dist/{auth-configs-B0IbEao2.mjs → auth-configs-DYkxc_It.mjs} +1 -1
- package/dist/{auth-Dw30Hpb_.mjs → auth-iqhTmHa9.mjs} +1 -1
- package/dist/{clanker-BJNgPfZ2.mjs → clanker-CzfQDpuy.mjs} +1 -1
- package/dist/{cli-CUWplx80.mjs → cli-Er9a9rGs.mjs} +2 -2
- package/dist/{client-CtqZaY-5.d.mts → client-CcYk8XXt.d.mts} +3857 -684
- package/dist/{connected-accounts-hwz_Ahf8.mjs → connected-accounts-DDgErVLd.mjs} +8 -1
- package/dist/{consumer-BX9lVqTG.mjs → consumer-BPCfagDO.mjs} +2 -2
- package/dist/custom-Cs019zcM.mjs +31 -0
- package/dist/{custom-tBFB6wwF.mjs → custom-VZyKhTTG.mjs} +2 -1
- package/dist/error-DPPtjCl1.mjs +75 -0
- package/dist/{files-Blm1q37V.mjs → files-C1QA5PTw.mjs} +1 -1
- package/dist/{files-vyDo0NH0.mjs → files-hhfQpMSx.mjs} +1 -1
- package/dist/{generate-DnzpeBp5.mjs → generate-iwm8bHWW.mjs} +2 -1
- package/dist/{generated-operations-DEPr4e2f.mjs → generated-operations-CJ7bbwvC.mjs} +50 -83
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +51 -29
- package/dist/keyring-Dkcbmstv.mjs +17 -0
- package/dist/{link-UHD4M7zo.mjs → link-Dk-yWRgc.mjs} +1 -1
- package/dist/{logs-B61ufb_6.mjs → logs-DnZUgpLM.mjs} +3 -3
- package/dist/{manage-6ysZI9l4.mjs → manage-DfB0PrkM.mjs} +1 -1
- package/dist/{mcp-C9IT8Cpv.mjs → mcp-BfStaFrR.mjs} +12 -3
- package/dist/{org-Bj5m1nn8.mjs → org-bXBx5whI.mjs} +6 -6
- package/dist/{owner-BSIXkRF0.mjs → owner-BlJ0zURX.mjs} +1 -1
- package/dist/pagination.d.mts +56 -0
- package/dist/pagination.mjs +50 -0
- package/dist/{project-84ETQ8s3.mjs → project-B0ax2ZoD.mjs} +1 -1
- package/dist/{project-BrbKVCdG.mjs → project-BeWloPLZ.mjs} +1 -1
- package/dist/{project-BfNWC2nb.mjs → project-BnMfaNjl.mjs} +1 -1
- package/dist/{project-CPmAuLg4.mjs → project-CGi2urmA.mjs} +1 -1
- package/dist/{realtime-D7OslBiN.mjs → realtime-BNfA3u3B.mjs} +1 -1
- package/dist/resources/api-key-revocation.d.mts +1 -1
- package/dist/resources/api-key-revocation.mjs +1 -1
- package/dist/resources/auth/auth.d.mts +1 -1
- package/dist/resources/auth/auth.mjs +1 -1
- package/dist/resources/auth/index.d.mts +1 -1
- package/dist/resources/auth/index.mjs +2 -2
- package/dist/resources/auth/session.d.mts +1 -1
- package/dist/resources/auth/session.mjs +1 -1
- package/dist/resources/auth-configs.d.mts +1 -1
- package/dist/resources/auth-configs.mjs +1 -1
- package/dist/resources/auth.d.mts +1 -1
- package/dist/resources/auth.mjs +2 -2
- package/dist/resources/cli/cli.d.mts +1 -1
- package/dist/resources/cli/cli.mjs +1 -1
- package/dist/resources/cli/index.d.mts +1 -1
- package/dist/resources/cli/index.mjs +2 -2
- package/dist/resources/cli/realtime.d.mts +1 -1
- package/dist/resources/cli/realtime.mjs +1 -1
- package/dist/resources/cli.d.mts +1 -1
- package/dist/resources/cli.mjs +2 -2
- package/dist/resources/connected-accounts.d.mts +1 -1
- package/dist/resources/connected-accounts.mjs +1 -1
- package/dist/resources/custom.d.mts +2 -0
- package/dist/resources/custom.mjs +3 -0
- package/dist/resources/files.d.mts +1 -1
- package/dist/resources/files.mjs +1 -1
- package/dist/resources/index.d.mts +1 -1
- package/dist/resources/index.mjs +13 -13
- package/dist/resources/keyring.d.mts +2 -0
- package/dist/resources/keyring.mjs +3 -0
- package/dist/resources/link.d.mts +1 -1
- package/dist/resources/link.mjs +1 -1
- package/dist/resources/logs/index.d.mts +1 -1
- package/dist/resources/logs/index.mjs +3 -3
- package/dist/resources/logs/logs.d.mts +1 -1
- package/dist/resources/logs/logs.mjs +1 -1
- package/dist/resources/logs/tools.d.mts +1 -1
- package/dist/resources/logs/tools.mjs +1 -1
- package/dist/resources/logs/triggers.d.mts +1 -1
- package/dist/resources/logs/triggers.mjs +1 -1
- package/dist/resources/logs.d.mts +1 -1
- package/dist/resources/logs.mjs +3 -3
- package/dist/resources/mcp/custom.d.mts +1 -1
- package/dist/resources/mcp/custom.mjs +1 -1
- package/dist/resources/mcp/generate.d.mts +1 -1
- package/dist/resources/mcp/generate.mjs +1 -1
- package/dist/resources/mcp/index.d.mts +1 -1
- package/dist/resources/mcp/index.mjs +3 -3
- package/dist/resources/mcp/mcp.d.mts +1 -1
- package/dist/resources/mcp/mcp.mjs +1 -1
- package/dist/resources/mcp.d.mts +1 -1
- package/dist/resources/mcp.mjs +3 -3
- package/dist/resources/org/clanker.d.mts +1 -1
- package/dist/resources/org/clanker.mjs +1 -1
- package/dist/resources/org/consumer/consumer.d.mts +1 -1
- package/dist/resources/org/consumer/consumer.mjs +1 -1
- package/dist/resources/org/consumer/index.d.mts +1 -1
- package/dist/resources/org/consumer/index.mjs +2 -2
- package/dist/resources/org/consumer/project.d.mts +1 -1
- package/dist/resources/org/consumer/project.mjs +1 -1
- package/dist/resources/org/consumer.d.mts +1 -1
- package/dist/resources/org/consumer.mjs +2 -2
- package/dist/resources/org/index.d.mts +1 -1
- package/dist/resources/org/index.mjs +6 -6
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -1
- package/dist/resources/org/owner/index.d.mts +1 -1
- package/dist/resources/org/owner/index.mjs +2 -2
- package/dist/resources/org/owner/owner.d.mts +1 -1
- package/dist/resources/org/owner/owner.mjs +1 -1
- package/dist/resources/org/owner/project.d.mts +1 -1
- package/dist/resources/org/owner/project.mjs +1 -1
- package/dist/resources/org/owner.d.mts +1 -1
- package/dist/resources/org/owner.mjs +2 -2
- package/dist/resources/org/project.d.mts +1 -1
- package/dist/resources/org/project.mjs +1 -1
- package/dist/resources/org/usage.d.mts +1 -1
- package/dist/resources/org/usage.mjs +1 -1
- package/dist/resources/org.d.mts +1 -1
- package/dist/resources/org.mjs +6 -6
- package/dist/resources/project/index.d.mts +1 -1
- package/dist/resources/project/index.mjs +1 -1
- package/dist/resources/project/project.d.mts +1 -1
- package/dist/resources/project/project.mjs +1 -1
- package/dist/resources/project/usage.d.mts +1 -1
- package/dist/resources/project/usage.mjs +1 -1
- package/dist/resources/project.d.mts +1 -1
- package/dist/resources/project.mjs +1 -1
- package/dist/resources/tool-router/index.d.mts +1 -1
- package/dist/resources/tool-router/index.mjs +2 -2
- package/dist/resources/tool-router/session/files.d.mts +1 -1
- package/dist/resources/tool-router/session/files.mjs +1 -1
- package/dist/resources/tool-router/session/index.d.mts +1 -1
- package/dist/resources/tool-router/session/index.mjs +2 -2
- package/dist/resources/tool-router/session/session.d.mts +1 -1
- package/dist/resources/tool-router/session/session.mjs +1 -1
- package/dist/resources/tool-router/session.d.mts +1 -1
- package/dist/resources/tool-router/session.mjs +2 -2
- package/dist/resources/tool-router/tool-router.d.mts +1 -1
- package/dist/resources/tool-router/tool-router.mjs +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.mjs +2 -2
- package/dist/resources/toolkits.d.mts +1 -1
- package/dist/resources/toolkits.mjs +1 -1
- package/dist/resources/tools.d.mts +1 -1
- package/dist/resources/tools.mjs +1 -1
- package/dist/resources/trigger-instances/index.d.mts +1 -1
- package/dist/resources/trigger-instances/index.mjs +2 -2
- package/dist/resources/trigger-instances/manage.d.mts +1 -1
- package/dist/resources/trigger-instances/manage.mjs +1 -1
- package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
- package/dist/resources/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances.mjs +2 -2
- package/dist/resources/triggers-types.d.mts +1 -1
- package/dist/resources/triggers-types.mjs +1 -1
- package/dist/resources/webhook-endpoints.d.mts +1 -1
- package/dist/resources/webhook-endpoints.mjs +1 -1
- package/dist/resources/webhook-subscriptions.d.mts +1 -1
- package/dist/resources/webhook-subscriptions.mjs +1 -1
- package/dist/{session-CJLfSQti.mjs → session-B78Twedd.mjs} +1 -1
- package/dist/{session-HQf03_ub.mjs → session-D3Azxyck.mjs} +2 -2
- package/dist/{tool-router-kFw8Xqp9.mjs → tool-router-Bx1tQfx-.mjs} +1 -1
- package/dist/{toolkits-wapurMFl.mjs → toolkits-DFC0JDvT.mjs} +15 -1
- package/dist/{tools-BmHuPUvd.mjs → tools-Bv2Txlel.mjs} +1 -1
- package/dist/{tools-KN8T5BtJ.mjs → tools-EL1x4SBb.mjs} +2 -1
- package/dist/{trigger-instances-DeRL4DhM.mjs → trigger-instances-BI-STHc4.mjs} +2 -2
- package/dist/{triggers-types-DLap3EOR.mjs → triggers-types-CJWi--Kk.mjs} +1 -1
- package/dist/{triggers-DZWXfIwq.mjs → triggers-vTkWuT5B.mjs} +1 -1
- package/dist/{usage-DwYx7p-o.mjs → usage-DspCrBUv.mjs} +1 -1
- package/dist/{usage-Buq-FwCY.mjs → usage-cffJ-ds7.mjs} +1 -1
- package/dist/{webhook-endpoints-DbIlhiI-.mjs → webhook-endpoints-DSN8i5KN.mjs} +1 -1
- package/dist/{webhook-subscriptions-CXC0oAhI.mjs → webhook-subscriptions-Bgsnr29T.mjs} +1 -1
- package/package.json +17 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-
|
|
2
|
-
import { t as Files } from "./files-
|
|
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,11 +1,13 @@
|
|
|
1
|
-
import { a as path, c as withOperation, n as generatedOperation } from "./generated-operations-
|
|
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-
|
|
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,
|
|
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-
|
|
2
|
-
import { t as Manage } from "./manage-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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",
|