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