@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.
- package/README.md +19 -6
- package/dist/{session-configs-BLy_O6bX.d.mts → api-key-revocation-DUHNHxSZ.d.mts} +177 -1205
- package/dist/effect.d.mts +3 -3
- package/dist/effect.mjs +4 -4
- package/dist/{generated-deprecated-inputs-Dy_lBver.mjs → environments-BGA2C5nZ.mjs} +18 -2
- package/dist/environments-xPjIJ-r7.d.mts +19 -0
- package/dist/{generated-operations-Dv7pAKDT.mjs → generated-operations-DhZryVXy.mjs} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +46 -71
- package/dist/resources/api-key-revocation.d.mts +2 -2
- package/dist/resources/api-key-revocation.mjs +13 -2
- package/dist/resources/auth/auth.d.mts +2 -2
- package/dist/resources/auth/auth.mjs +7 -2
- package/dist/resources/auth/session.d.mts +2 -2
- package/dist/resources/auth/session.mjs +10 -2
- package/dist/resources/auth-configs.d.mts +2 -2
- package/dist/resources/auth-configs.mjs +45 -2
- package/dist/resources/auth.d.mts +2 -2
- package/dist/resources/auth.mjs +1 -5
- package/dist/resources/cli/cli.d.mts +2 -2
- package/dist/resources/cli/cli.mjs +32 -2
- package/dist/resources/cli/realtime.d.mts +2 -2
- package/dist/resources/cli/realtime.mjs +19 -2
- package/dist/resources/cli.d.mts +2 -2
- package/dist/resources/cli.mjs +1 -5
- package/dist/resources/connected-accounts.d.mts +2 -2
- package/dist/resources/connected-accounts.mjs +70 -2
- package/dist/resources/custom.d.mts +2 -2
- package/dist/resources/custom.mjs +29 -2
- package/dist/resources/files.d.mts +2 -2
- package/dist/resources/files.mjs +22 -2
- package/dist/resources/keyring.d.mts +2 -2
- package/dist/resources/keyring.mjs +10 -2
- package/dist/resources/link.d.mts +2 -2
- package/dist/resources/link.mjs +13 -2
- package/dist/resources/logs/logs.d.mts +2 -2
- package/dist/resources/logs/logs.mjs +23 -2
- package/dist/resources/logs/tools.d.mts +2 -2
- package/dist/resources/logs/tools.mjs +23 -2
- package/dist/resources/logs/triggers.d.mts +2 -2
- package/dist/resources/logs/triggers.mjs +19 -2
- package/dist/resources/logs.d.mts +2 -2
- package/dist/resources/logs.mjs +1 -6
- package/dist/resources/mcp/custom.d.mts +2 -2
- package/dist/resources/mcp/custom.mjs +13 -2
- package/dist/resources/mcp/generate.d.mts +2 -2
- package/dist/resources/mcp/generate.mjs +13 -2
- package/dist/resources/mcp/mcp.d.mts +2 -2
- package/dist/resources/mcp/mcp.mjs +67 -2
- package/dist/resources/mcp.d.mts +2 -2
- package/dist/resources/mcp.mjs +1 -6
- package/dist/resources/org/clanker.d.mts +2 -2
- package/dist/resources/org/clanker.mjs +13 -2
- package/dist/resources/org/consumer/consumer.d.mts +2 -2
- package/dist/resources/org/consumer/consumer.mjs +21 -2
- package/dist/resources/org/consumer/project.d.mts +2 -2
- package/dist/resources/org/consumer/project.mjs +14 -2
- package/dist/resources/org/consumer.d.mts +2 -2
- package/dist/resources/org/consumer.mjs +1 -5
- package/dist/resources/org/org.d.mts +2 -2
- package/dist/resources/org/org.mjs +25 -2
- package/dist/resources/org/owner/owner.d.mts +2 -2
- package/dist/resources/org/owner/owner.mjs +7 -2
- package/dist/resources/org/owner/project.d.mts +2 -2
- package/dist/resources/org/owner/project.mjs +37 -2
- package/dist/resources/org/owner.d.mts +2 -2
- package/dist/resources/org/owner.mjs +1 -5
- package/dist/resources/org/project.d.mts +2 -2
- package/dist/resources/org/project.mjs +13 -2
- package/dist/resources/org/usage.d.mts +2 -2
- package/dist/resources/org/usage.mjs +22 -2
- package/dist/resources/org.d.mts +2 -2
- package/dist/resources/org.mjs +1 -9
- package/dist/resources/project/project.d.mts +2 -2
- package/dist/resources/project/project.mjs +7 -2
- package/dist/resources/project/usage.d.mts +2 -2
- package/dist/resources/project/usage.mjs +22 -2
- package/dist/resources/project.d.mts +2 -3
- package/dist/resources/project.mjs +1 -5
- package/dist/resources/session-configs.d.mts +2 -2
- package/dist/resources/session-configs.mjs +8 -12
- package/dist/resources/tool-router/session/files.d.mts +2 -2
- package/dist/resources/tool-router/session/files.mjs +40 -2
- package/dist/resources/tool-router/session/session.d.mts +2 -2
- package/dist/resources/tool-router/session/session.mjs +95 -2
- package/dist/resources/tool-router/session.d.mts +2 -2
- package/dist/resources/tool-router/session.mjs +1 -5
- package/dist/resources/tool-router/tool-router.d.mts +2 -2
- package/dist/resources/tool-router/tool-router.mjs +7 -2
- package/dist/resources/tool-router.d.mts +2 -2
- package/dist/resources/tool-router.mjs +1 -5
- package/dist/resources/toolkits.d.mts +2 -2
- package/dist/resources/toolkits.mjs +51 -2
- package/dist/resources/tools.d.mts +2 -2
- package/dist/resources/tools.mjs +56 -2
- package/dist/resources/trigger-instances/manage.d.mts +2 -2
- package/dist/resources/trigger-instances/manage.mjs +19 -2
- package/dist/resources/trigger-instances/trigger-instances.d.mts +2 -2
- package/dist/resources/trigger-instances/trigger-instances.mjs +24 -2
- package/dist/resources/trigger-instances.d.mts +2 -2
- package/dist/resources/trigger-instances.mjs +1 -5
- package/dist/resources/triggers-types.d.mts +2 -2
- package/dist/resources/triggers-types.mjs +26 -2
- package/dist/resources/webhook-endpoints.d.mts +2 -2
- package/dist/resources/webhook-endpoints.mjs +40 -2
- package/dist/resources/webhook-subscriptions.d.mts +2 -2
- package/dist/resources/webhook-subscriptions.mjs +45 -2
- package/package.json +2 -31
- package/dist/api-key-revocation-DMCgun-A.mjs +0 -25
- package/dist/auth-D-U9Aq8C.mjs +0 -17
- package/dist/auth-configs-DAG5mMeH.mjs +0 -55
- package/dist/clanker-Yomp86hJ.mjs +0 -24
- package/dist/cli-zihiw3aI.mjs +0 -44
- package/dist/config-BLBbhLe1.mjs +0 -10
- package/dist/config-DnyMhILW.d.mts +0 -9
- package/dist/connected-accounts-Bd4AbWoH.mjs +0 -83
- package/dist/consumer-Bk0cyIii.mjs +0 -33
- package/dist/custom-Ce8G2c11.mjs +0 -34
- package/dist/custom-DWT3cCog.mjs +0 -24
- package/dist/files-DRp_J4zH.mjs +0 -49
- package/dist/files-ZxEVlE_y.mjs +0 -31
- package/dist/generate-Du9XUrlx.mjs +0 -24
- package/dist/keyring-CgOIS5x7.mjs +0 -17
- package/dist/link-CW1ts4pm.mjs +0 -23
- package/dist/logs-DFdH5DoT.mjs +0 -37
- package/dist/manage-CeB03gO8.mjs +0 -28
- package/dist/mcp-DNRMWWum.mjs +0 -91
- package/dist/migration-CBhnoN-Y.mjs +0 -10
- package/dist/migration-CKGKuRO3.d.mts +0 -9
- package/dist/org-HuYaKgVf.mjs +0 -45
- package/dist/owner-I9fXmIO_.mjs +0 -17
- package/dist/project-CxQ2H8UB.mjs +0 -22
- package/dist/project-DcV01umC.mjs +0 -25
- package/dist/project-Dwblmpw8.mjs +0 -47
- package/dist/project-FuP5k9R1.mjs +0 -25
- package/dist/realtime-F_sGuTd8.mjs +0 -28
- package/dist/resources/auth/index.d.mts +0 -2
- package/dist/resources/auth/index.mjs +0 -4
- package/dist/resources/cli/index.d.mts +0 -2
- package/dist/resources/cli/index.mjs +0 -4
- package/dist/resources/index.d.mts +0 -3
- package/dist/resources/index.mjs +0 -16
- package/dist/resources/logs/index.d.mts +0 -2
- package/dist/resources/logs/index.mjs +0 -5
- package/dist/resources/mcp/index.d.mts +0 -2
- package/dist/resources/mcp/index.mjs +0 -5
- package/dist/resources/migration.d.mts +0 -2
- package/dist/resources/migration.mjs +0 -3
- package/dist/resources/org/consumer/index.d.mts +0 -2
- package/dist/resources/org/consumer/index.mjs +0 -4
- package/dist/resources/org/index.d.mts +0 -2
- package/dist/resources/org/index.mjs +0 -8
- package/dist/resources/org/owner/index.d.mts +0 -2
- package/dist/resources/org/owner/index.mjs +0 -4
- package/dist/resources/project/config.d.mts +0 -2
- package/dist/resources/project/config.mjs +0 -3
- package/dist/resources/project/index.d.mts +0 -3
- package/dist/resources/project/index.mjs +0 -4
- package/dist/resources/tool-router/index.d.mts +0 -2
- package/dist/resources/tool-router/index.mjs +0 -4
- package/dist/resources/tool-router/session/index.d.mts +0 -2
- package/dist/resources/tool-router/session/index.mjs +0 -4
- package/dist/resources/trigger-instances/index.d.mts +0 -2
- package/dist/resources/trigger-instances/index.mjs +0 -4
- package/dist/session-B-ifOjVv.mjs +0 -21
- package/dist/session-CpwJh7Hn.mjs +0 -110
- package/dist/tool-router-jNsaldKV.mjs +0 -14
- package/dist/toolkits-DK4My9FW.mjs +0 -62
- package/dist/tools-DNkimllW.mjs +0 -33
- package/dist/tools-Gun_2We6.mjs +0 -69
- package/dist/trigger-instances-vvKswQSW.mjs +0 -35
- package/dist/triggers-CfrGxKIo.mjs +0 -28
- package/dist/triggers-types-DYW2Mr8z.mjs +0 -34
- package/dist/usage-YIBYNpVF.mjs +0 -31
- package/dist/usage-vt9HmnNf.mjs +0 -31
- package/dist/version-DB98yI2B.d.mts +0 -4
- package/dist/webhook-endpoints-HqLteVW6.mjs +0 -50
- package/dist/webhook-subscriptions-CXhNXIOM.mjs +0 -55
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
14
|
+
const makeConnectedAccounts = (client) => ({
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return client.post("/api/v3.1/connected_accounts", withOperation(OP_CREATE, {
|
|
17
|
+
body,
|
|
18
|
+
...options
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
retrieve(nanoid, options) {
|
|
22
|
+
return client.get(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
23
|
+
},
|
|
24
|
+
list(query = {}, options) {
|
|
25
|
+
return client.get("/api/v3.1/connected_accounts", withOperation(OP_LIST, {
|
|
26
|
+
query,
|
|
27
|
+
...options
|
|
28
|
+
}));
|
|
29
|
+
},
|
|
30
|
+
delete(nanoid, query = {}, options) {
|
|
31
|
+
return client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_DELETE, {
|
|
32
|
+
query,
|
|
33
|
+
...options
|
|
34
|
+
}));
|
|
35
|
+
},
|
|
36
|
+
completeAuth(body, options) {
|
|
37
|
+
return client.post("/api/v3.1/connected_accounts/complete_auth", withOperation(OP_COMPLETE_AUTH, {
|
|
38
|
+
body,
|
|
39
|
+
...options
|
|
40
|
+
}));
|
|
41
|
+
},
|
|
42
|
+
patch(nanoid, body = {}, options) {
|
|
43
|
+
return client.patch(path`/api/v3.1/connected_accounts/${nanoid}`, withOperation(OP_PATCH, {
|
|
44
|
+
body,
|
|
45
|
+
...options
|
|
46
|
+
}));
|
|
47
|
+
},
|
|
48
|
+
refresh(nanoid, params = {}, options) {
|
|
49
|
+
const { query_redirect_url, body_redirect_url, ...body } = params ?? {};
|
|
50
|
+
return client.post(path`/api/v3.1/connected_accounts/${nanoid}/refresh`, withOperation(OP_REFRESH, {
|
|
51
|
+
query: { redirect_url: query_redirect_url },
|
|
52
|
+
body: {
|
|
53
|
+
...body,
|
|
54
|
+
redirect_url: body_redirect_url
|
|
55
|
+
},
|
|
56
|
+
...options
|
|
57
|
+
}));
|
|
58
|
+
},
|
|
59
|
+
revoke(nanoid, options) {
|
|
60
|
+
return client.post(path`/api/v3.1/connected_accounts/${nanoid}/revoke`, withOperation(OP_REVOKE, { ...options }));
|
|
61
|
+
},
|
|
62
|
+
updateStatus(nanoID, body, options) {
|
|
63
|
+
return client.patch(path`/api/v3.1/connected_accounts/${nanoID}/status`, withOperation(OP_UPDATE_STATUS, {
|
|
64
|
+
body,
|
|
65
|
+
...options
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { makeConnectedAccounts };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Custom,
|
|
1
|
+
import { C as CustomUpsertResponse, S as CustomUpsertParams, _ as Custom, b as CustomSyncParams, v as CustomDeleteToolkitParams, w as makeCustom, x as CustomSyncResponse, y as CustomDeleteToolkitResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Custom, CustomDeleteToolkitParams, CustomDeleteToolkitResponse, CustomSyncParams, CustomSyncResponse, CustomUpsertParams, CustomUpsertResponse, makeCustom };
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
8
|
+
const makeCustom = (client) => ({
|
|
9
|
+
deleteToolkit(slug, query = {}, options) {
|
|
10
|
+
return client.delete(path`/api/v3.1/custom/toolkits/${slug}`, withOperation(OP_DELETE_TOOLKIT, {
|
|
11
|
+
query,
|
|
12
|
+
...options
|
|
13
|
+
}));
|
|
14
|
+
},
|
|
15
|
+
sync(body, options) {
|
|
16
|
+
return client.post("/api/v3.1/custom/toolkits/sync", withOperation(OP_SYNC, {
|
|
17
|
+
body,
|
|
18
|
+
...options
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
upsert(body, options) {
|
|
22
|
+
return client.post("/api/v3.1/custom/toolkits/upsert", withOperation(OP_UPSERT, {
|
|
23
|
+
body,
|
|
24
|
+
...options
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { makeCustom };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ai as FileCreatePresignedURLParams, ci as FileListResponse, li as Files, oi as FileCreatePresignedURLResponse, si as FileListParams, ui as makeFiles } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { FileCreatePresignedURLParams, FileCreatePresignedURLResponse, FileListParams, FileListResponse, Files, makeFiles };
|
package/dist/resources/files.mjs
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/files.ts
|
|
4
|
+
const OP_LIST = generatedOperation("files.list");
|
|
5
|
+
const OP_CREATE_PRESIGNED_URL = generatedOperation("files.createPresignedURL");
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeFiles = (client) => ({
|
|
8
|
+
list(query = {}, options) {
|
|
9
|
+
return client.get("/api/v3.1/files/list", withOperation(OP_LIST, {
|
|
10
|
+
query,
|
|
11
|
+
...options
|
|
12
|
+
}));
|
|
13
|
+
},
|
|
14
|
+
createPresignedURL(body, options) {
|
|
15
|
+
return client.post("/api/v3.1/files/upload/request", withOperation(OP_CREATE_PRESIGNED_URL, {
|
|
16
|
+
body,
|
|
17
|
+
...options
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { makeFiles };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Keyring,
|
|
1
|
+
import { g as makeKeyring, h as KeyringListTransferKeysResponse, m as Keyring } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Keyring, KeyringListTransferKeysResponse, makeKeyring };
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/keyring.ts
|
|
4
|
+
const OP_LIST_TRANSFER_KEYS = generatedOperation("keyring.listTransferKeys");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeKeyring = (client) => ({ listTransferKeys(options) {
|
|
7
|
+
return client.get("/api/v3.1/keyring/transfer_keys", withOperation(OP_LIST_TRANSFER_KEYS, { ...options }));
|
|
8
|
+
} });
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { makeKeyring };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Link,
|
|
1
|
+
import { Br as makeLink, Lr as Link, Rr as LinkCreateParams, zr as LinkCreateResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Link, LinkCreateParams, LinkCreateResponse, makeLink };
|
package/dist/resources/link.mjs
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/link.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("link.create");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeLink = (client) => ({ create(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/connected_accounts/link", withOperation(OP_CREATE, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeLink };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Logs };
|
|
1
|
+
import { Gt as LogCreateToolExecutionParams, Jt as Logs, Kt as LogCreateToolExecutionResponse, Yt as makeLogs, qt as LogRetrieveToolExecutionResponse } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { LogCreateToolExecutionParams, LogCreateToolExecutionResponse, LogRetrieveToolExecutionResponse, Logs, makeLogs };
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
|
+
import { makeTriggers } from "./triggers.mjs";
|
|
3
|
+
import { makeTools } from "./tools.mjs";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
//#region src/compat/resources/logs/logs.ts
|
|
6
|
+
const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
|
|
7
|
+
const OP_RETRIEVE_TOOL_EXECUTION = generatedOperation("logs.retrieveToolExecution");
|
|
8
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
9
|
+
const makeLogs = (client) => ({
|
|
10
|
+
triggers: makeTriggers(client),
|
|
11
|
+
tools: makeTools(client),
|
|
12
|
+
createToolExecution(body = {}, options) {
|
|
13
|
+
return client.post("/api/v3.1/logs/tool_execution", withOperation(OP_CREATE_TOOL_EXECUTION, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}));
|
|
17
|
+
},
|
|
18
|
+
retrieveToolExecution(id, options) {
|
|
19
|
+
return client.get(path`/api/v3.1/logs/tool_execution/${id}`, withOperation(OP_RETRIEVE_TOOL_EXECUTION, { ...options }));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { makeLogs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools };
|
|
1
|
+
import { $t as ToolRetrieveResponse, Qt as ToolListResponse, Xt as ToolListFieldsResponse, Zt as ToolListParams, en as Tools, tn as makeTools } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools, makeTools };
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/logs/tools.ts
|
|
4
|
+
const OP_RETRIEVE = generatedOperation("logs.tools.retrieve");
|
|
5
|
+
const OP_LIST = generatedOperation("logs.tools.list");
|
|
6
|
+
const OP_LIST_FIELDS = generatedOperation("logs.tools.listFields");
|
|
7
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
8
|
+
const makeTools = (client) => ({
|
|
9
|
+
retrieve(id, options) {
|
|
10
|
+
return client.get(path`/api/v3.1/internal/action_execution/log/${id}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
11
|
+
},
|
|
12
|
+
list(body, options) {
|
|
13
|
+
return client.post("/api/v3.1/internal/action_execution/logs", withOperation(OP_LIST, {
|
|
14
|
+
body,
|
|
15
|
+
...options
|
|
16
|
+
}));
|
|
17
|
+
},
|
|
18
|
+
listFields(options) {
|
|
19
|
+
return client.get("/api/v3.1/internal/action_execution/fields", withOperation(OP_LIST_FIELDS, { ...options }));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { makeTools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { TriggerListParams, TriggerListResponse, TriggerRetrieveResponse, Triggers };
|
|
1
|
+
import { an as Triggers, in as TriggerRetrieveResponse, nn as TriggerListParams, on as makeTriggers, rn as TriggerListResponse } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { TriggerListParams, TriggerListResponse, TriggerRetrieveResponse, Triggers, makeTriggers };
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/logs/triggers.ts
|
|
4
|
+
const OP_RETRIEVE = generatedOperation("logs.triggers.retrieve");
|
|
5
|
+
const OP_LIST = generatedOperation("logs.triggers.list");
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeTriggers = (client) => ({
|
|
8
|
+
retrieve(id, options) {
|
|
9
|
+
return client.get(path`/api/v3.1/internal/trigger/log/${id}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
10
|
+
},
|
|
11
|
+
list(body = {}, options) {
|
|
12
|
+
return client.post("/api/v3.1/internal/trigger/logs", withOperation(OP_LIST, {
|
|
13
|
+
body,
|
|
14
|
+
...options
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { makeTriggers };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { $t as ToolRetrieveResponse, Gt as LogCreateToolExecutionParams, Jt as Logs, Kt as LogCreateToolExecutionResponse, Qt as ToolListResponse, Xt as ToolListFieldsResponse, Zt as ToolListParams, an as Triggers, en as Tools, in as TriggerRetrieveResponse, nn as TriggerListParams, qt as LogRetrieveToolExecutionResponse, rn as TriggerListResponse } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export type { LogCreateToolExecutionParams, LogCreateToolExecutionResponse, LogRetrieveToolExecutionResponse, Logs, ToolListFieldsResponse, ToolListParams, ToolListResponse, ToolRetrieveResponse, Tools, TriggerListParams, TriggerListResponse, TriggerRetrieveResponse, Triggers };
|
package/dist/resources/logs.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Custom, CustomCreateParams, CustomCreateResponse };
|
|
1
|
+
import { Gn as makeCustom, Hn as Custom, Un as CustomCreateParams, Wn as CustomCreateResponse } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Custom, CustomCreateParams, CustomCreateResponse, makeCustom };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/mcp/custom.ts
|
|
4
|
+
const OP_CREATE = generatedOperation("mcp.custom.create");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeCustom = (client) => ({ create(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/mcp/servers/custom", withOperation(OP_CREATE, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeCustom };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Generate, GenerateURLParams, GenerateURLResponse };
|
|
1
|
+
import { Bn as GenerateURLResponse, Rn as Generate, Vn as makeGenerate, zn as GenerateURLParams } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Generate, GenerateURLParams, GenerateURLResponse, makeGenerate };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/mcp/generate.ts
|
|
4
|
+
const OP_URL = generatedOperation("mcp.generate.url");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeGenerate = (client) => ({ url(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/mcp/servers/generate", withOperation(OP_URL, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeGenerate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Mcp, McpCreateInstanceParams, McpCreateInstanceResponse, McpCreateParams, McpCreateResponse, McpDeleteInstanceParams, McpDeleteInstanceResponse, McpDeleteResponse, McpListInstancesParams, McpListInstancesResponse, McpListParams, McpListResponse, McpRetrieveAppParams, McpRetrieveAppResponse, McpRetrieveResponse, McpUpdateParams, McpUpdateResponse };
|
|
1
|
+
import { An as McpListParams, Cn as McpCreateParams, Dn as McpDeleteResponse, En as McpDeleteInstanceResponse, Fn as McpUpdateParams, In as McpUpdateResponse, Ln as makeMcp, Mn as McpRetrieveAppParams, Nn as McpRetrieveAppResponse, On as McpListInstancesParams, Pn as McpRetrieveResponse, Sn as McpCreateInstanceResponse, Tn as McpDeleteInstanceParams, bn as Mcp, jn as McpListResponse, kn as McpListInstancesResponse, wn as McpCreateResponse, xn as McpCreateInstanceParams } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Mcp, McpCreateInstanceParams, McpCreateInstanceResponse, McpCreateParams, McpCreateResponse, McpDeleteInstanceParams, McpDeleteInstanceResponse, McpDeleteResponse, McpListInstancesParams, McpListInstancesResponse, McpListParams, McpListResponse, McpRetrieveAppParams, McpRetrieveAppResponse, McpRetrieveResponse, McpUpdateParams, McpUpdateResponse, makeMcp };
|
|
@@ -1,3 +1,68 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as path, n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
|
+
import { makeCustom } from "./custom.mjs";
|
|
3
|
+
import { makeGenerate } from "./generate.mjs";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
//#region src/compat/resources/mcp/mcp.ts
|
|
6
|
+
const OP_CREATE = generatedOperation("mcp.create");
|
|
7
|
+
const OP_RETRIEVE = generatedOperation("mcp.retrieve");
|
|
8
|
+
const OP_UPDATE = generatedOperation("mcp.update");
|
|
9
|
+
const OP_LIST = generatedOperation("mcp.list");
|
|
10
|
+
const OP_DELETE = generatedOperation("mcp.delete");
|
|
11
|
+
const OP_CREATE_INSTANCE = generatedOperation("mcp.createInstance");
|
|
12
|
+
const OP_DELETE_INSTANCE = generatedOperation("mcp.deleteInstance");
|
|
13
|
+
const OP_LIST_INSTANCES = generatedOperation("mcp.listInstances");
|
|
14
|
+
const OP_RETRIEVE_APP = generatedOperation("mcp.retrieveApp");
|
|
15
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
16
|
+
const makeMcp = (client) => ({
|
|
17
|
+
custom: makeCustom(client),
|
|
18
|
+
generate: makeGenerate(client),
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return client.post("/api/v3.1/mcp/servers", withOperation(OP_CREATE, {
|
|
21
|
+
body,
|
|
22
|
+
...options
|
|
23
|
+
}));
|
|
24
|
+
},
|
|
25
|
+
retrieve(id, options) {
|
|
26
|
+
return client.get(path`/api/v3.1/mcp/${id}`, withOperation(OP_RETRIEVE, { ...options }));
|
|
27
|
+
},
|
|
28
|
+
update(id, body = {}, options) {
|
|
29
|
+
return client.patch(path`/api/v3.1/mcp/${id}`, withOperation(OP_UPDATE, {
|
|
30
|
+
body,
|
|
31
|
+
...options
|
|
32
|
+
}));
|
|
33
|
+
},
|
|
34
|
+
list(query = {}, options) {
|
|
35
|
+
return client.get("/api/v3.1/mcp/servers", withOperation(OP_LIST, {
|
|
36
|
+
query,
|
|
37
|
+
...options
|
|
38
|
+
}));
|
|
39
|
+
},
|
|
40
|
+
delete(id, options) {
|
|
41
|
+
return client.delete(path`/api/v3.1/mcp/${id}`, withOperation(OP_DELETE, { ...options }));
|
|
42
|
+
},
|
|
43
|
+
createInstance(serverID, body, options) {
|
|
44
|
+
return client.post(path`/api/v3.1/mcp/servers/${serverID}/instances`, withOperation(OP_CREATE_INSTANCE, {
|
|
45
|
+
body,
|
|
46
|
+
...options
|
|
47
|
+
}));
|
|
48
|
+
},
|
|
49
|
+
deleteInstance(instanceID, params, options) {
|
|
50
|
+
const { serverId } = params;
|
|
51
|
+
return client.delete(path`/api/v3.1/mcp/servers/${serverId}/instances/${instanceID}`, withOperation(OP_DELETE_INSTANCE, { ...options }));
|
|
52
|
+
},
|
|
53
|
+
listInstances(serverID, query = {}, options) {
|
|
54
|
+
return client.get(path`/api/v3.1/mcp/servers/${serverID}/instances`, withOperation(OP_LIST_INSTANCES, {
|
|
55
|
+
query,
|
|
56
|
+
...options
|
|
57
|
+
}));
|
|
58
|
+
},
|
|
59
|
+
retrieveApp(appKey, query = {}, options) {
|
|
60
|
+
return client.get(path`/api/v3.1/mcp/app/${appKey}`, withOperation(OP_RETRIEVE_APP, {
|
|
61
|
+
query,
|
|
62
|
+
...options
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
//#endregion
|
|
68
|
+
export { makeMcp };
|
package/dist/resources/mcp.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Custom,
|
|
1
|
+
import { An as McpListParams, Bn as GenerateURLResponse, Cn as McpCreateParams, Dn as McpDeleteResponse, En as McpDeleteInstanceResponse, Fn as McpUpdateParams, Hn as Custom, In as McpUpdateResponse, Mn as McpRetrieveAppParams, Nn as McpRetrieveAppResponse, On as McpListInstancesParams, Pn as McpRetrieveResponse, Rn as Generate, Sn as McpCreateInstanceResponse, Tn as McpDeleteInstanceParams, Un as CustomCreateParams, Wn as CustomCreateResponse, bn as Mcp, jn as McpListResponse, kn as McpListInstancesResponse, wn as McpCreateResponse, xn as McpCreateInstanceParams, zn as GenerateURLParams } from "../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export type { Custom, CustomCreateParams, CustomCreateResponse, Generate, GenerateURLParams, GenerateURLResponse, Mcp, McpCreateInstanceParams, McpCreateInstanceResponse, McpCreateParams, McpCreateResponse, McpDeleteInstanceParams, McpDeleteInstanceResponse, McpDeleteResponse, McpListInstancesParams, McpListInstancesResponse, McpListParams, McpListResponse, McpRetrieveAppParams, McpRetrieveAppResponse, McpRetrieveResponse, McpUpdateParams, McpUpdateResponse };
|
package/dist/resources/mcp.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Clanker,
|
|
1
|
+
import { F as ClankerCreateClaimParams, I as ClankerCreateClaimResponse, L as makeClanker, P as Clanker } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Clanker, ClankerCreateClaimParams, ClankerCreateClaimResponse, makeClanker };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/org/clanker.ts
|
|
4
|
+
const OP_CREATE_CLAIM = generatedOperation("org.clanker.createClaim");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeClanker = (client) => ({ createClaim(body, options) {
|
|
7
|
+
return client.post("/api/v3.1/org/clanker/create_claim", withOperation(OP_CREATE_CLAIM, {
|
|
8
|
+
body,
|
|
9
|
+
...options
|
|
10
|
+
}));
|
|
11
|
+
} });
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { makeClanker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Consumer,
|
|
1
|
+
import { J as Consumer, X as ConsumerListConnectedToolkitsResponse, Y as ConsumerListConnectedToolkitsParams, Z as makeConsumer } from "../../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Consumer, ConsumerListConnectedToolkitsParams, ConsumerListConnectedToolkitsResponse, makeConsumer };
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../../generated-operations-DhZryVXy.mjs";
|
|
2
|
+
import { makeProject } from "./project.mjs";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/compat/resources/org/consumer/consumer.ts
|
|
5
|
+
const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnectedToolkits");
|
|
6
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
7
|
+
const makeConsumer = (client) => ({
|
|
8
|
+
project: makeProject(client),
|
|
9
|
+
listConnectedToolkits(params, options) {
|
|
10
|
+
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId, ...query } = params;
|
|
11
|
+
return client.get("/api/v3.1/org/consumer/connected_toolkits", withOperation(OP_LIST_CONNECTED_TOOLKITS, {
|
|
12
|
+
query,
|
|
13
|
+
...options
|
|
14
|
+
}, {
|
|
15
|
+
"x-user-api-key": xUserApiKey,
|
|
16
|
+
"x-org-id": xOrgId
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { makeConsumer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Project,
|
|
1
|
+
import { $ as ProjectResolveParams, Q as Project, et as ProjectResolveResponse, tt as makeProject } from "../../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Project, ProjectResolveParams, ProjectResolveResponse, makeProject };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../../generated-operations-DhZryVXy.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/org/consumer/project.ts
|
|
4
|
+
const OP_RESOLVE = generatedOperation("org.consumer.project.resolve");
|
|
5
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
6
|
+
const makeProject = (client) => ({ resolve(params, options) {
|
|
7
|
+
const { "x-user-api-key": xUserApiKey, "x-org-id": xOrgId } = params;
|
|
8
|
+
return client.post("/api/v3.1/org/consumer/project/resolve", withOperation(OP_RESOLVE, { ...options }, {
|
|
9
|
+
"x-user-api-key": xUserApiKey,
|
|
10
|
+
"x-org-id": xOrgId
|
|
11
|
+
}));
|
|
12
|
+
} });
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { makeProject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Consumer,
|
|
1
|
+
import { $ as ProjectResolveParams, J as Consumer, Q as Project, X as ConsumerListConnectedToolkitsResponse, Y as ConsumerListConnectedToolkitsParams, et as ProjectResolveResponse } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export type { Consumer, ConsumerListConnectedToolkitsParams, ConsumerListConnectedToolkitsResponse, Project, ProjectResolveParams, ProjectResolveResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Org,
|
|
1
|
+
import { A as Org, M as OrgListResponse, N as makeOrg, j as OrgListParams } from "../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Org, OrgListParams, OrgListResponse, makeOrg };
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as generatedOperation, y as withOperation } from "../../generated-operations-DhZryVXy.mjs";
|
|
2
|
+
import { makeClanker } from "./clanker.mjs";
|
|
3
|
+
import { makeConsumer } from "./consumer/consumer.mjs";
|
|
4
|
+
import { makeOwner } from "./owner/owner.mjs";
|
|
5
|
+
import { makeProject } from "./project.mjs";
|
|
6
|
+
import { makeUsage } from "./usage.mjs";
|
|
2
7
|
|
|
3
|
-
|
|
8
|
+
//#region src/compat/resources/org/org.ts
|
|
9
|
+
const OP_LIST = generatedOperation("org.list");
|
|
10
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
11
|
+
const makeOrg = (client) => ({
|
|
12
|
+
owner: makeOwner(client),
|
|
13
|
+
consumer: makeConsumer(client),
|
|
14
|
+
project: makeProject(client),
|
|
15
|
+
usage: makeUsage(client),
|
|
16
|
+
clanker: makeClanker(client),
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return client.get("/api/v3.1/org/list", withOperation(OP_LIST, {
|
|
19
|
+
query,
|
|
20
|
+
...options
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { makeOrg };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Owner };
|
|
1
|
+
import { nt as Owner, rt as makeOwner } from "../../../api-key-revocation-DUHNHxSZ.mjs";
|
|
2
|
+
export { Owner, makeOwner };
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { makeProject } from "./project.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
//#region src/compat/resources/org/owner/owner.ts
|
|
4
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
5
|
+
const makeOwner = (client) => ({ project: makeProject(client) });
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { makeOwner };
|