@composio/client 2.0.0-rc.12 → 2.0.0-rc.13
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 +5 -5
- package/dist/{api-key-revocation-DJF8KL2o.mjs → api-key-revocation-Cepb5MPW.mjs} +2 -2
- package/dist/{auth-configs-sKOQG2Yw.mjs → auth-configs-DuClvjog.mjs} +1 -1
- package/dist/{auth-CHlaMfu-.mjs → auth-g5G0n9oV.mjs} +2 -2
- package/dist/{clanker-DyM265dK.mjs → clanker-D1NQWaPc.mjs} +2 -2
- package/dist/{cli-zrk9Qew1.mjs → cli-CGKT5K03.mjs} +3 -3
- package/dist/{connected-accounts-a6ezLeaq.mjs → connected-accounts-C8CZoYC9.mjs} +3 -3
- package/dist/{consumer-B0qaosDp.mjs → consumer-C9YlbuuF.mjs} +3 -3
- package/dist/{custom-Ddfc8mtR.mjs → custom-C__H3Kph.mjs} +1 -1
- package/dist/{custom-99mj4dPN.mjs → custom-Dh-9BeLk.mjs} +1 -1
- package/dist/effect.d.mts +2 -2
- package/dist/effect.mjs +2 -2
- package/dist/{files-ITYv6j_c.mjs → files-Azjc6Q8K.mjs} +1 -1
- package/dist/{files-BkqUHaPL.mjs → files-D117G13q.mjs} +1 -1
- package/dist/{generate-i93AYL8q.mjs → generate-CRTH0ELB.mjs} +1 -1
- package/dist/{generated-deprecated-inputs-CQlAN1eH.mjs → generated-deprecated-inputs-LDMdNcg5.mjs} +1 -1
- package/dist/{generated-operations-BguuMwpw.mjs → generated-operations-CtVNMBUj.mjs} +9 -9
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +24 -24
- package/dist/{keyring-FoLfgtBi.mjs → keyring-Ct88j6tO.mjs} +1 -1
- package/dist/{link-DdF0Mpaw.mjs → link-Cf--DVaO.mjs} +1 -1
- package/dist/{logs-Bk1qx5Br.mjs → logs-Drxog1aA.mjs} +4 -5
- package/dist/{manage-CAZEslDY.mjs → manage-CE_6prdE.mjs} +1 -1
- package/dist/{mcp-B91r14RW.mjs → mcp-BH8R-5YV.mjs} +5 -5
- package/dist/{org-JUdjHRmz.mjs → org-Wf7f-Vv6.mjs} +7 -7
- package/dist/{owner-BiP5UwSE.mjs → owner-t5WgXUr3.mjs} +2 -2
- package/dist/{project-BqlCHKGr.mjs → project-CbBPg2b6.mjs} +2 -2
- package/dist/{project-BJ0ixr7M.mjs → project-CnnjwkO0.mjs} +2 -2
- package/dist/{project-D4uc18P5.mjs → project-EfFVX-hX.mjs} +2 -2
- package/dist/{project-B8d4M3Ut.mjs → project-p51XghZG.mjs} +2 -3
- package/dist/{realtime-BY6LAuSf.mjs → realtime-BKG7w32e.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 +1 -1
- package/dist/resources/custom.mjs +1 -1
- 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 +1 -1
- package/dist/resources/keyring.mjs +1 -1
- 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/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.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-BMaJyaay.mjs → session-BmNXoUzp.mjs} +3 -3
- package/dist/{session-BISWW6RD.mjs → session-Dr2pfpgr.mjs} +2 -3
- package/dist/{session-configs-Uq4WDziI.d.mts → session-configs-BCEkl1E-.d.mts} +26 -30
- package/dist/{tool-router-CigDMyik.mjs → tool-router-DUl_FyWW.mjs} +1 -1
- package/dist/{toolkits-8jNDLM-m.mjs → toolkits-NqNU3W0c.mjs} +2 -2
- package/dist/{tools-Dl-mKUP6.mjs → tools-N4xcs_0a.mjs} +1 -1
- package/dist/{tools-B8MskXI8.mjs → tools-tclheOeG.mjs} +2 -2
- package/dist/{trigger-instances-DRUh_YQ4.mjs → trigger-instances-93_0xLWQ.mjs} +2 -2
- package/dist/{triggers-BrVLwzqY.mjs → triggers-AZd9nfc9.mjs} +1 -1
- package/dist/{triggers-types-c8LTfiyU.mjs → triggers-types-Cop2FUpI.mjs} +1 -1
- package/dist/{usage-Bgc2EN82.mjs → usage-CGagRqsM.mjs} +2 -2
- package/dist/{usage-CMyLY8PR.mjs → usage-CrsH3XJs.mjs} +2 -2
- package/dist/version-CVZVY0oU.d.mts +4 -0
- package/dist/{webhook-endpoints-BN8qcJuW.mjs → webhook-endpoints-B2b3GF14.mjs} +2 -3
- package/dist/{webhook-subscriptions-BOYXHSCR.mjs → webhook-subscriptions-CSP2_-0w.mjs} +2 -2
- package/package.json +1 -1
- package/dist/version-D-eWgm6-.d.mts +0 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Composio API client for TypeScript, generated from the [v3.1 OpenAPI spec](https://staging-backend.composio.dev/api/v3.1/openapi.json) with [hey-api](https://heyapi.dev).
|
|
4
4
|
|
|
5
|
-
This repo is the successor to the Stainless-generated [`@composio/client`](https://www.npmjs.com/package/@composio/client) (Stainless is sunsetting). Current scope: the full `/api/v3.1` surface — all 113 released operations — in **both** languages: TypeScript at the package root, and Python in [`python/`](./python/README.md) (PyPI takeover pending).
|
|
5
|
+
This repo is the successor to the Stainless-generated [`@composio/client`](https://www.npmjs.com/package/@composio/client) (Stainless is sunsetting). Current scope: the full `/api/v3.1` surface — all 113 released operations — in **both** languages: TypeScript at the package root, and Python in [`python/`](./python/README.md) (PyPI takeover pending).
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
@@ -404,12 +404,12 @@ milliseconds:
|
|
|
404
404
|
|
|
405
405
|
| | Node, modules | Node, bundle | Bun, modules | Bun, bundle |
|
|
406
406
|
| --- | ---: | ---: | ---: | ---: |
|
|
407
|
-
| `./effect`, never decodes |
|
|
408
|
-
| plus importing `schemaLoaders` |
|
|
407
|
+
| `./effect`, never decodes | 4.2 / 4.5 | 4.7 / 4.8 | 3.6 / 2.8 | 11.2 / 11.7 |
|
|
408
|
+
| plus importing `schemaLoaders` | 2.4 / 0.2 | 5.3 / 5.2 | 0.2 / −0.7 | 3.6 / 3.8 |
|
|
409
409
|
|
|
410
410
|
The published-module lanes are noisy, which is how a difference comes out negative. Effect itself
|
|
411
|
-
is the larger part:
|
|
412
|
-
10.
|
|
411
|
+
is the larger part: 122.2 / 128.3 ms as modules on Node and 22.0 / 23.8 ms bundled, against 9.6 /
|
|
412
|
+
10.5 ms and 4.0 / 4.4 ms for the root client.
|
|
413
413
|
|
|
414
414
|
**Bundle size** of a single-file consumer: Effect's HTTP modules alone, then with a client that never
|
|
415
415
|
decodes, then with the loader table and every schema it reaches.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/api-key-revocation.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("apiKeyRevocation.create");
|
|
@@ -6,7 +6,7 @@ const OP_CREATE = generatedOperation("apiKeyRevocation.create");
|
|
|
6
6
|
* Spec-surface `client.apiKeyRevocation` resource: the 1-method public
|
|
7
7
|
* leaked-key revocation surface of the v3.1 spec
|
|
8
8
|
* (`POST /api_key_revocation` — POST-on-collection stays `create`), never
|
|
9
|
-
* published by Stainless
|
|
9
|
+
* published by Stainless.
|
|
10
10
|
*/
|
|
11
11
|
var ApiKeyRevocation = class {
|
|
12
12
|
#client;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/auth-configs.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("authConfigs.create");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Session } from "./session-
|
|
1
|
+
import { t as Session } from "./session-Dr2pfpgr.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/auth/auth.ts
|
|
4
4
|
/**
|
|
5
5
|
* Spec-surface `client.auth` resource: a method-less container for the
|
|
6
|
-
* `session` sub-resource
|
|
6
|
+
* `session` sub-resource.
|
|
7
7
|
*/
|
|
8
8
|
var Auth = class {
|
|
9
9
|
session;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/clanker.ts
|
|
4
4
|
const OP_CREATE_CLAIM = generatedOperation("org.clanker.createClaim");
|
|
5
5
|
/**
|
|
6
6
|
* Spec-surface `client.org.clanker` resource: the 1-method claim surface of
|
|
7
7
|
* the v3.1 spec (`POST /org/clanker/create_claim`), never published by
|
|
8
|
-
* Stainless
|
|
8
|
+
* Stainless.
|
|
9
9
|
*/
|
|
10
10
|
var Clanker = class {
|
|
11
11
|
#client;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
2
|
-
import { t as Realtime } from "./realtime-
|
|
1
|
+
import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
|
+
import { t as Realtime } from "./realtime-BKG7w32e.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/resources/cli/cli.ts
|
|
5
5
|
const OP_CREATE_CODACT_FAILURE = generatedOperation("cli.createCodactFailure");
|
|
@@ -9,7 +9,7 @@ const OP_GET_SESSION = generatedOperation("cli.getSession");
|
|
|
9
9
|
* Stainless-shaped `client.cli` resource: the 2-method published CLI
|
|
10
10
|
* authentication surface of `@composio/client` (createSession/getSession)
|
|
11
11
|
* plus the spec-surface `createCodactFailure` (`POST /cli/codact_failures`,
|
|
12
|
-
* never published by Stainless
|
|
12
|
+
* never published by Stainless).
|
|
13
13
|
*/
|
|
14
14
|
var Cli = class {
|
|
15
15
|
realtime;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/connected-accounts.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("connectedAccounts.create");
|
|
@@ -14,8 +14,8 @@ const OP_UPDATE_STATUS = generatedOperation("connectedAccounts.updateStatus");
|
|
|
14
14
|
* Stainless-shaped `client.connectedAccounts` resource: the 7-method published
|
|
15
15
|
* surface of `@composio/client` (create/retrieve/list/delete/patch/refresh/
|
|
16
16
|
* updateStatus) plus the spec-surface `revoke`
|
|
17
|
-
* (`POST /connected_accounts/{nanoid}/revoke`, never published by Stainless
|
|
18
|
-
*
|
|
17
|
+
* (`POST /connected_accounts/{nanoid}/revoke`, never published by Stainless),
|
|
18
|
+
* dispatched through the handwritten kernel.
|
|
19
19
|
*/
|
|
20
20
|
var ConnectedAccounts = class {
|
|
21
21
|
#client;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
2
|
-
import { t as Project } from "./project-
|
|
1
|
+
import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
|
+
import { t as Project } from "./project-p51XghZG.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/resources/org/consumer/consumer.ts
|
|
5
5
|
const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnectedToolkits");
|
|
@@ -7,7 +7,7 @@ const OP_LIST_CONNECTED_TOOLKITS = generatedOperation("org.consumer.listConnecte
|
|
|
7
7
|
* Spec-surface `client.org.consumer` resource: the 1-method consumer surface
|
|
8
8
|
* of the v3.1 spec (listConnectedToolkits over
|
|
9
9
|
* `/org/consumer/connected_toolkits`) plus the `project` sub-resource, never
|
|
10
|
-
* published by Stainless
|
|
10
|
+
* published by Stainless.
|
|
11
11
|
*/
|
|
12
12
|
var Consumer = class {
|
|
13
13
|
project;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/mcp/custom.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("mcp.custom.create");
|
package/dist/effect.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as ProjectRegenerateAPIKeyResponse, $n as ToolkitRetrieveChangelogResponse, $r as SessionCreateResponse, $t as McpCreateInstanceParams, A as ClankerCreateClaimResponse, An as TriggersTypeListParams, Ar as FileListResponse$1, At as LogRetrieveToolExecutionResponse, B as ConsumerListConnectedToolkitsParams, Bn as AuthConfigListParams, Br as ToolRetrieveEnumResponse, Ci as FileDeleteResponse, Cn as TriggerInstanceUpsertParams, Cr as ConnectedAccountRevokeResponse, D as OrgListResponse, Dn as ManageDeleteResponse, Dr as FileCreatePresignedURLParams, Dt as UsageRetrieveSummaryResponse, E as OrgListParams, Et as UsageRetrieveSummaryParams, F as UsageRetrieveSummaryResponse$1, Fi as APIErrorBody, Fr as ToolGetInputResponse, Ft as ToolRetrieveResponse$1, Gn as AuthConfigUpdateStatusParams, Gt as CliCreateSessionResponse, Hn as AuthConfigRetrieveResponse, Hr as ToolRetrieveRequiredScopesParams, Ht as CliCreateCodactFailureParams, In as AuthConfigCreateParams, Ir as ToolListParams, J as ProjectCreateResponse, Jn as ToolkitListParams, Jr as SessionAttachParams, Kn as AuthConfigUpdateStatusResponse, Kt as CliGetSessionParams, L as ProjectListParams$1, Ln as AuthConfigCreateResponse, Lr as ToolListResponse, Lt as TriggerListParams, M as UsageRetrieveParams$1, Mn as TriggersTypeRetrieveEnumResponse, Mr as ToolExecuteParams, Mt as ToolListFieldsResponse, N as UsageRetrieveResponse$1, Nn as TriggersTypeRetrieveParams, Nr as ToolExecuteResponse, Nt as ToolListParams$1, On as ManageUpdateParams, Or as FileCreatePresignedURLResponse, Ot as LogCreateToolExecutionParams, P as UsageRetrieveSummaryParams$1, Pn as TriggersTypeRetrieveResponse, Pr as ToolGetInputParams, Pt as ToolListResponse$1, Q as ProjectListResponse, Qn as ToolkitRetrieveCategoriesResponse, Qr as SessionCreateParams, R as ProjectListResponse$1, Rn as AuthConfigDeleteParams, Rr as ToolProxyParams, Rt as TriggerListResponse, Si as FileDeleteParams, Sn as TriggerInstanceListActiveResponse, Sr as ConnectedAccountRetrieveResponse, Ti as FileListResponse, Tr as ConnectedAccountUpdateStatusResponse, Tt as UsageRetrieveResponse, U as ProjectResolveParams, Un as AuthConfigUpdateParams, Ur as ToolRetrieveRequiredScopesResponse, Ut as CliCreateCodactFailureResponse, V as ConsumerListConnectedToolkitsResponse, Vn as AuthConfigListResponse, Vr as ToolRetrieveParams, W as ProjectResolveResponse, Wn as AuthConfigUpdateResponse, Wr as ToolRetrieveResponse, Wt as CliCreateSessionParams, X as ProjectDeleteResponse, Xn as ToolkitRecommendScopesParams, Xr as SessionConfigHistoryParams, Xt as RealtimeAuthResponse, Y as ProjectDeleteParams, Yn as ToolkitListResponse, Yr as SessionAttachResponse, Yt as RealtimeAuthParams, Z as ProjectListParams, Zn as ToolkitRecommendScopesResponse, Zr as SessionConfigHistoryResponse, Zt as RealtimeCredentialsResponse, _ as CustomUpsertParams, _i as SessionToolsResponse, _n as GenerateURLResponse, _r as ConnectedAccountListResponse, _t as WebhookSubscriptionRetrieveResponse, ai as SessionLinkParams, an as McpDeleteResponse, ar as ToolkitRetrieveScopesGrantContextResponse, at as WebhookEndpointReplaceParams, b as ApiKeyRevocationCreateParams, bi as FileCreateUploadURLParams, bn as CustomCreateResponse, br as ConnectedAccountRefreshParams, bt as WebhookSubscriptionUpdateResponse, ci as SessionPatchResponse, cn as McpListParams, cr as LinkCreateParams, ct as WebhookEndpointUpdateParams, d as KeyringListTransferKeysResponse, di as SessionRetrieveResponse, dn as McpRetrieveAppResponse, dr as ConnectedAccountCompleteAuthResponse, dt as WebhookSubscriptionCreateParams, ei as SessionDeleteResponse, en as McpCreateInstanceResponse, er as ToolkitRetrieveMultiParams, et as ProjectRetrieveResponse, fi as SessionSearchParams, fn as McpRetrieveResponse, fr as ConnectedAccountCreateParams, ft as WebhookSubscriptionCreateResponse, g as CustomSyncResponse, gi as SessionToolsParams, gn as GenerateURLParams, gr as ConnectedAccountListParams, gt as WebhookSubscriptionListResponse, h as CustomSyncParams, hi as SessionToolkitsResponse, hr as ConnectedAccountDeleteResponse, ht as WebhookSubscriptionListParams, i as SessionConfigsRetrieveResponse, ii as SessionExecuteResponse, in as McpDeleteInstanceResponse, ir as ToolkitRetrieveScopesGrantContextParams, it as WebhookEndpointListResponse, ji as HeadersLike, jn as TriggersTypeListResponse, k as ClankerCreateClaimParams, kn as ManageUpdateResponse, kr as FileListParams$1, kt as LogCreateToolExecutionResponse, li as SessionProxyExecuteParams, ln as McpListResponse, lr as LinkCreateResponse, lt as WebhookEndpointUpdateResponse, m as CustomDeleteToolkitResponse, mi as SessionToolkitsParams, mn as McpUpdateResponse, mr as ConnectedAccountDeleteParams, mt as WebhookSubscriptionListEventTypesResponse, n as SessionConfigsListParams, ni as SessionExecuteMetaResponse, nn as McpCreateResponse, nr as ToolkitRetrieveParams, nt as WebhookEndpointCreateResponse, oi as SessionLinkResponse, on as McpListInstancesParams, ot as WebhookEndpointReplaceResponse, p as CustomDeleteToolkitParams, pi as SessionSearchResponse, pn as McpUpdateParams, pr as ConnectedAccountCreateResponse, pt as WebhookSubscriptionDeleteResponse, q as ProjectCreateParams, qt as CliGetSessionResponse, r as SessionConfigsListResponse, ri as SessionExecuteParams, rn as McpDeleteInstanceParams, rr as ToolkitRetrieveResponse, rt as WebhookEndpointListParams, si as SessionPatchParams, sn as McpListInstancesResponse, st as WebhookEndpointRetrieveResponse, ti as SessionExecuteMetaParams, tn as McpCreateParams, tr as ToolkitRetrieveMultiResponse, tt as WebhookEndpointCreateParams, ui as SessionProxyExecuteResponse, un as McpRetrieveAppParams, ur as ConnectedAccountCompleteAuthParams, v as CustomUpsertResponse, vi as FileCreateDownloadURLParams, vr as ConnectedAccountPatchParams, vt as WebhookSubscriptionRotateSecretResponse, w as SessionRetrieveInfoResponse, wi as FileListParams, wn as TriggerInstanceUpsertResponse, wr as ConnectedAccountUpdateStatusParams, wt as UsageRetrieveParams, x as ApiKeyRevocationCreateResponse, xi as FileCreateUploadURLResponse, xn as TriggerInstanceListActiveParams, xr as ConnectedAccountRefreshResponse, yi as FileCreateDownloadURLResponse, yn as CustomCreateParams, yr as ConnectedAccountPatchResponse, yt as WebhookSubscriptionUpdateParams, zn as AuthConfigDeleteResponse, zr as ToolProxyResponse, zt as TriggerRetrieveResponse } from "./session-configs-
|
|
2
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { $ as ProjectRegenerateAPIKeyResponse, $n as ToolkitRetrieveChangelogResponse, $r as SessionCreateResponse, $t as McpCreateInstanceParams, A as ClankerCreateClaimResponse, An as TriggersTypeListParams, Ar as FileListResponse$1, At as LogRetrieveToolExecutionResponse, B as ConsumerListConnectedToolkitsParams, Bn as AuthConfigListParams, Br as ToolRetrieveEnumResponse, Ci as FileDeleteResponse, Cn as TriggerInstanceUpsertParams, Cr as ConnectedAccountRevokeResponse, D as OrgListResponse, Dn as ManageDeleteResponse, Dr as FileCreatePresignedURLParams, Dt as UsageRetrieveSummaryResponse, E as OrgListParams, Et as UsageRetrieveSummaryParams, F as UsageRetrieveSummaryResponse$1, Fi as APIErrorBody, Fr as ToolGetInputResponse, Ft as ToolRetrieveResponse$1, Gn as AuthConfigUpdateStatusParams, Gt as CliCreateSessionResponse, Hn as AuthConfigRetrieveResponse, Hr as ToolRetrieveRequiredScopesParams, Ht as CliCreateCodactFailureParams, In as AuthConfigCreateParams, Ir as ToolListParams, J as ProjectCreateResponse, Jn as ToolkitListParams, Jr as SessionAttachParams, Kn as AuthConfigUpdateStatusResponse, Kt as CliGetSessionParams, L as ProjectListParams$1, Ln as AuthConfigCreateResponse, Lr as ToolListResponse, Lt as TriggerListParams, M as UsageRetrieveParams$1, Mn as TriggersTypeRetrieveEnumResponse, Mr as ToolExecuteParams, Mt as ToolListFieldsResponse, N as UsageRetrieveResponse$1, Nn as TriggersTypeRetrieveParams, Nr as ToolExecuteResponse, Nt as ToolListParams$1, On as ManageUpdateParams, Or as FileCreatePresignedURLResponse, Ot as LogCreateToolExecutionParams, P as UsageRetrieveSummaryParams$1, Pn as TriggersTypeRetrieveResponse, Pr as ToolGetInputParams, Pt as ToolListResponse$1, Q as ProjectListResponse, Qn as ToolkitRetrieveCategoriesResponse, Qr as SessionCreateParams, R as ProjectListResponse$1, Rn as AuthConfigDeleteParams, Rr as ToolProxyParams, Rt as TriggerListResponse, Si as FileDeleteParams, Sn as TriggerInstanceListActiveResponse, Sr as ConnectedAccountRetrieveResponse, Ti as FileListResponse, Tr as ConnectedAccountUpdateStatusResponse, Tt as UsageRetrieveResponse, U as ProjectResolveParams, Un as AuthConfigUpdateParams, Ur as ToolRetrieveRequiredScopesResponse, Ut as CliCreateCodactFailureResponse, V as ConsumerListConnectedToolkitsResponse, Vn as AuthConfigListResponse, Vr as ToolRetrieveParams, W as ProjectResolveResponse, Wn as AuthConfigUpdateResponse, Wr as ToolRetrieveResponse, Wt as CliCreateSessionParams, X as ProjectDeleteResponse, Xn as ToolkitRecommendScopesParams, Xr as SessionConfigHistoryParams, Xt as RealtimeAuthResponse, Y as ProjectDeleteParams, Yn as ToolkitListResponse, Yr as SessionAttachResponse, Yt as RealtimeAuthParams, Z as ProjectListParams, Zn as ToolkitRecommendScopesResponse, Zr as SessionConfigHistoryResponse, Zt as RealtimeCredentialsResponse, _ as CustomUpsertParams, _i as SessionToolsResponse, _n as GenerateURLResponse, _r as ConnectedAccountListResponse, _t as WebhookSubscriptionRetrieveResponse, ai as SessionLinkParams, an as McpDeleteResponse, ar as ToolkitRetrieveScopesGrantContextResponse, at as WebhookEndpointReplaceParams, b as ApiKeyRevocationCreateParams, bi as FileCreateUploadURLParams, bn as CustomCreateResponse, br as ConnectedAccountRefreshParams, bt as WebhookSubscriptionUpdateResponse, ci as SessionPatchResponse, cn as McpListParams, cr as LinkCreateParams, ct as WebhookEndpointUpdateParams, d as KeyringListTransferKeysResponse, di as SessionRetrieveResponse, dn as McpRetrieveAppResponse, dr as ConnectedAccountCompleteAuthResponse, dt as WebhookSubscriptionCreateParams, ei as SessionDeleteResponse, en as McpCreateInstanceResponse, er as ToolkitRetrieveMultiParams, et as ProjectRetrieveResponse, fi as SessionSearchParams, fn as McpRetrieveResponse, fr as ConnectedAccountCreateParams, ft as WebhookSubscriptionCreateResponse, g as CustomSyncResponse, gi as SessionToolsParams, gn as GenerateURLParams, gr as ConnectedAccountListParams, gt as WebhookSubscriptionListResponse, h as CustomSyncParams, hi as SessionToolkitsResponse, hr as ConnectedAccountDeleteResponse, ht as WebhookSubscriptionListParams, i as SessionConfigsRetrieveResponse, ii as SessionExecuteResponse, in as McpDeleteInstanceResponse, ir as ToolkitRetrieveScopesGrantContextParams, it as WebhookEndpointListResponse, ji as HeadersLike, jn as TriggersTypeListResponse, k as ClankerCreateClaimParams, kn as ManageUpdateResponse, kr as FileListParams$1, kt as LogCreateToolExecutionResponse, li as SessionProxyExecuteParams, ln as McpListResponse, lr as LinkCreateResponse, lt as WebhookEndpointUpdateResponse, m as CustomDeleteToolkitResponse, mi as SessionToolkitsParams, mn as McpUpdateResponse, mr as ConnectedAccountDeleteParams, mt as WebhookSubscriptionListEventTypesResponse, n as SessionConfigsListParams, ni as SessionExecuteMetaResponse, nn as McpCreateResponse, nr as ToolkitRetrieveParams, nt as WebhookEndpointCreateResponse, oi as SessionLinkResponse, on as McpListInstancesParams, ot as WebhookEndpointReplaceResponse, p as CustomDeleteToolkitParams, pi as SessionSearchResponse, pn as McpUpdateParams, pr as ConnectedAccountCreateResponse, pt as WebhookSubscriptionDeleteResponse, q as ProjectCreateParams, qt as CliGetSessionResponse, r as SessionConfigsListResponse, ri as SessionExecuteParams, rn as McpDeleteInstanceParams, rr as ToolkitRetrieveResponse, rt as WebhookEndpointListParams, si as SessionPatchParams, sn as McpListInstancesResponse, st as WebhookEndpointRetrieveResponse, ti as SessionExecuteMetaParams, tn as McpCreateParams, tr as ToolkitRetrieveMultiResponse, tt as WebhookEndpointCreateParams, ui as SessionProxyExecuteResponse, un as McpRetrieveAppParams, ur as ConnectedAccountCompleteAuthParams, v as CustomUpsertResponse, vi as FileCreateDownloadURLParams, vr as ConnectedAccountPatchParams, vt as WebhookSubscriptionRotateSecretResponse, w as SessionRetrieveInfoResponse, wi as FileListParams, wn as TriggerInstanceUpsertResponse, wr as ConnectedAccountUpdateStatusParams, wt as UsageRetrieveParams, x as ApiKeyRevocationCreateResponse, xi as FileCreateUploadURLResponse, xn as TriggerInstanceListActiveParams, xr as ConnectedAccountRefreshResponse, yi as FileCreateDownloadURLResponse, yn as CustomCreateParams, yr as ConnectedAccountPatchResponse, yt as WebhookSubscriptionUpdateParams, zn as AuthConfigDeleteResponse, zr as ToolProxyResponse, zt as TriggerRetrieveResponse } from "./session-configs-BCEkl1E-.mjs";
|
|
2
|
+
import { t as VERSION } from "./version-CVZVY0oU.mjs";
|
|
3
3
|
import { Context, Effect, Layer, Redacted, Stream } from "effect";
|
|
4
4
|
import * as HttpClient from "effect/http/HttpClient";
|
|
5
5
|
import * as Schema from "effect/Schema";
|
package/dist/effect.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as makeAPIErrorMessage, m as errorDetails, s as ComposioError } from "./error-D9cG225M.mjs";
|
|
2
|
-
import { A as resolveHTTPURL, C as inspectDeprecation, D as callerPlacedCredential, E as assertCredentialTransport, M as mergeHeaders, O as carriesCredentials, S as inspectDeprecatedInputs, T as SCHEME_HEADERS, _ as schemeForRequest, a as TOO_MANY_REDIRECTS, c as buildURL, d as path, f as printableURL, g as safeJSON, h as rewriteForRedirect, i as REDIRECT_STATUSES, j as buildHeaders, k as parseHTTPURL, m as retryDelayMillis, n as generatedOperation, o as buildBody, r as OPAQUE_REDIRECT, s as buildRequestHeaders, t as GENERATED_OPERATIONS, v as shouldRetryResponse, w as matchOperation, x as VERSION, y as validatePositiveInteger } from "./generated-operations-
|
|
3
|
-
import { r as classifySuccessBody, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-
|
|
2
|
+
import { A as resolveHTTPURL, C as inspectDeprecation, D as callerPlacedCredential, E as assertCredentialTransport, M as mergeHeaders, O as carriesCredentials, S as inspectDeprecatedInputs, T as SCHEME_HEADERS, _ as schemeForRequest, a as TOO_MANY_REDIRECTS, c as buildURL, d as path, f as printableURL, g as safeJSON, h as rewriteForRedirect, i as REDIRECT_STATUSES, j as buildHeaders, k as parseHTTPURL, m as retryDelayMillis, n as generatedOperation, o as buildBody, r as OPAQUE_REDIRECT, s as buildRequestHeaders, t as GENERATED_OPERATIONS, v as shouldRetryResponse, w as matchOperation, x as VERSION, y as validatePositiveInteger } from "./generated-operations-CtVNMBUj.mjs";
|
|
3
|
+
import { r as classifySuccessBody, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-LDMdNcg5.mjs";
|
|
4
4
|
import { i as standardNextCursor, n as assertPageItems, r as isFinalCursor, t as assertCursorAdvanced } from "./pagination-rules-uMUdPq_7.mjs";
|
|
5
5
|
import { Config, Context, Data, Effect, Exit, Layer, Match, Option, Predicate, Redacted, Result, Stream, Tracer } from "effect";
|
|
6
6
|
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/tool-router/session/files.ts
|
|
4
4
|
const OP_LIST = generatedOperation("toolRouter.session.files.list");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/files.ts
|
|
4
4
|
const OP_LIST = generatedOperation("files.list");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/mcp/generate.ts
|
|
4
4
|
const OP_URL = generatedOperation("mcp.generate.url");
|
package/dist/{generated-deprecated-inputs-CQlAN1eH.mjs → generated-deprecated-inputs-LDMdNcg5.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as APIError } from "./error-D9cG225M.mjs";
|
|
2
|
-
import { g as safeJSON, l as castToError } from "./generated-operations-
|
|
2
|
+
import { g as safeJSON, l as castToError } from "./generated-operations-CtVNMBUj.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/api-promise.ts
|
|
5
5
|
/**
|
|
@@ -83,7 +83,7 @@ const buildHeaders = (sources) => mergeHeaders(sources).values;
|
|
|
83
83
|
* measured property of the API (two credential headers on one request is a
|
|
84
84
|
* 401, even where either alone is a 200), so the four rules below are all
|
|
85
85
|
* stated about *the* credential a request carries, and {@link selectScheme}
|
|
86
|
-
* decides which one that is. See
|
|
86
|
+
* decides which one that is. See §4 of
|
|
87
87
|
* `docs/research/drop-in-contract.md`.
|
|
88
88
|
* 1. **A credentialed API origin must use HTTPS.** Plain `http:` is permitted
|
|
89
89
|
* only for loopback development endpoints, or for the exact origin a
|
|
@@ -137,7 +137,7 @@ const buildHeaders = (sources) => mergeHeaders(sources).values;
|
|
|
137
137
|
* Deliberate, and sanctioned by the design record: the published Stainless
|
|
138
138
|
* client enforces none of this. Redirect *following* is no longer part of the
|
|
139
139
|
* divergence — both clients follow — but what rides along on the hop is. See
|
|
140
|
-
* §4 of `docs/research/drop-in-contract.md
|
|
140
|
+
* §4 of `docs/research/drop-in-contract.md`.
|
|
141
141
|
*/
|
|
142
142
|
/**
|
|
143
143
|
* The three credential classes this API accepts, and the header each one puts
|
|
@@ -374,9 +374,9 @@ const callerPlacedCredential = (sources) => {
|
|
|
374
374
|
*
|
|
375
375
|
* `x-user-api-key` and `x-org-api-key` are the spec's other two credential
|
|
376
376
|
* schemes (`UserApiKeyAuth`, `OrgApiKeyAuth`), and they belong here for the same
|
|
377
|
-
* reason `x-api-key` does — the kernel attaches all three
|
|
377
|
+
* reason `x-api-key` does — the kernel attaches all three
|
|
378
378
|
* and a caller can place the latter two directly besides. They were listed here
|
|
379
|
-
*
|
|
379
|
+
* *before* the attachment work, because omitting them cost more than
|
|
380
380
|
* a missed withdrawal: {@link carriesCredentials} answered `false` for a request
|
|
381
381
|
* carrying only one of them, so `request.ts` classified it as credential-free
|
|
382
382
|
* and handed the whole chain to `fetch` at `redirect: 'follow'` — the exact leak
|
|
@@ -905,7 +905,7 @@ const inspectDeprecatedInputs = ({ operation, query, body, headers, table, seen,
|
|
|
905
905
|
|
|
906
906
|
//#endregion
|
|
907
907
|
//#region src/version.ts
|
|
908
|
-
const VERSION = "2.0.0-rc.
|
|
908
|
+
const VERSION = "2.0.0-rc.13";
|
|
909
909
|
|
|
910
910
|
//#endregion
|
|
911
911
|
//#region src/compat/telemetry.ts
|
|
@@ -1044,7 +1044,7 @@ const path = (statics, ...params) => {
|
|
|
1044
1044
|
* empty values, and plain-object values expanded qs-style into bracket
|
|
1045
1045
|
* notation (`toolkit_versions[github]=v1`, the whole key percent-encoded) —
|
|
1046
1046
|
* pinned differentially against Stainless via `tools.retrieve`'s object
|
|
1047
|
-
* `toolkit_versions` param
|
|
1047
|
+
* `toolkit_versions` param.
|
|
1048
1048
|
*/
|
|
1049
1049
|
const stringifyQuery = (query) => {
|
|
1050
1050
|
const parts = [];
|
|
@@ -1203,7 +1203,7 @@ const TOO_MANY_REDIRECTS = `The API redirected more than ${20} times; the chain
|
|
|
1203
1203
|
* What is left is a *credentialed* request that redirects in a browser. It
|
|
1204
1204
|
* gets a named error rather than a silent leak — and on this API that is very
|
|
1205
1205
|
* nearly unreachable: the only redirects the platform serves are same-origin
|
|
1206
|
-
* edge normalizations
|
|
1206
|
+
* edge normalizations, and `buildURL`
|
|
1207
1207
|
* cannot construct a URL that triggers one.
|
|
1208
1208
|
*/
|
|
1209
1209
|
const OPAQUE_REDIRECT = "The API responded with a redirect that this runtime will not let the client read (an opaque redirect, in a browser). Redirects are followed only where the response can be inspected, because a credential must never cross an origin change.";
|
|
@@ -1374,8 +1374,8 @@ const dispatchWithRedirects = async (config, options, initialURL, initialBody, i
|
|
|
1374
1374
|
*
|
|
1375
1375
|
* Redirects are followed inside an attempt by `dispatchWithRedirects`, so the
|
|
1376
1376
|
* single response exit below still fires `onResponse` **once per logical
|
|
1377
|
-
* call** rather than once per hop — the once-per-call guarantee
|
|
1378
|
-
*
|
|
1377
|
+
* call** rather than once per hop — the once-per-call guarantee the
|
|
1378
|
+
* deprecation interceptor is built on. The `Response` handed back is the
|
|
1379
1379
|
* final hop's, so `response.url` is still "the URL this response came from",
|
|
1380
1380
|
* which is what `deprecation.ts` resolves relative `Link` targets against.
|
|
1381
1381
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $r as SessionCreateResponse, Ai as createFetchTransport, Bi as ConflictError, Ci as FileDeleteResponse, Di as RequestOptions, Ei as Files, Fi as APIErrorBody, Gi as UnprocessableEntityError, Hi as NotFoundError, Ii as APIUserAbortError, Jr as SessionAttachParams, Ki as APIPromise, Kr as ToolRouter, Li as AuthenticationError, Mi as APIConnectionError, Ni as APIConnectionTimeoutError, Oi as FetchTransportDefaults, Pi as APIError, Qr as SessionCreateParams, Ri as BadRequestError, Si as FileDeleteParams, Ti as FileListResponse, Ui as PermissionDeniedError, Vi as InternalServerError, Wi as RateLimitError, Xr as SessionConfigHistoryParams, Yr as SessionAttachResponse, Zr as SessionConfigHistoryResponse, _i as SessionToolsResponse, a as ClientOptions, ai as SessionLinkParams, bi as FileCreateUploadURLParams, c as LogLevel, ci as SessionPatchResponse, di as SessionRetrieveResponse, ei as SessionDeleteResponse, fi as SessionSearchParams, gi as SessionToolsParams, hi as SessionToolkitsResponse, ii as SessionExecuteResponse, ki as Transport, l as Logger, li as SessionProxyExecuteParams, mi as SessionToolkitsParams, ni as SessionExecuteMetaResponse, o as Composio, oi as SessionLinkResponse, pi as SessionSearchResponse, qr as Session, ri as SessionExecuteParams, s as EnvironmentMap, si as SessionPatchParams, ti as SessionExecuteMetaParams, ui as SessionProxyExecuteResponse, vi as FileCreateDownloadURLParams, wi as FileListParams, xi as FileCreateUploadURLResponse, yi as FileCreateDownloadURLResponse, zi as ComposioError } from "./session-configs-
|
|
2
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { $r as SessionCreateResponse, Ai as createFetchTransport, Bi as ConflictError, Ci as FileDeleteResponse, Di as RequestOptions, Ei as Files, Fi as APIErrorBody, Gi as UnprocessableEntityError, Hi as NotFoundError, Ii as APIUserAbortError, Jr as SessionAttachParams, Ki as APIPromise, Kr as ToolRouter, Li as AuthenticationError, Mi as APIConnectionError, Ni as APIConnectionTimeoutError, Oi as FetchTransportDefaults, Pi as APIError, Qr as SessionCreateParams, Ri as BadRequestError, Si as FileDeleteParams, Ti as FileListResponse, Ui as PermissionDeniedError, Vi as InternalServerError, Wi as RateLimitError, Xr as SessionConfigHistoryParams, Yr as SessionAttachResponse, Zr as SessionConfigHistoryResponse, _i as SessionToolsResponse, a as ClientOptions, ai as SessionLinkParams, bi as FileCreateUploadURLParams, c as LogLevel, ci as SessionPatchResponse, di as SessionRetrieveResponse, ei as SessionDeleteResponse, fi as SessionSearchParams, gi as SessionToolsParams, hi as SessionToolkitsResponse, ii as SessionExecuteResponse, ki as Transport, l as Logger, li as SessionProxyExecuteParams, mi as SessionToolkitsParams, ni as SessionExecuteMetaResponse, o as Composio, oi as SessionLinkResponse, pi as SessionSearchResponse, qr as Session, ri as SessionExecuteParams, s as EnvironmentMap, si as SessionPatchParams, ti as SessionExecuteMetaParams, ui as SessionProxyExecuteResponse, vi as FileCreateDownloadURLParams, wi as FileListParams, xi as FileCreateUploadURLResponse, yi as FileCreateDownloadURLResponse, zi as ComposioError } from "./session-configs-BCEkl1E-.mjs";
|
|
2
|
+
import { t as VERSION } from "./version-CVZVY0oU.mjs";
|
|
3
3
|
export { APIConnectionError, APIConnectionTimeoutError, APIError, type APIErrorBody, APIPromise, APIUserAbortError, AuthenticationError, BadRequestError, type ClientOptions, Composio, Composio as default, ComposioError, ConflictError, type EnvironmentMap, type FetchTransportDefaults, type FileCreateDownloadURLParams, type FileCreateDownloadURLResponse, type FileCreateUploadURLParams, type FileCreateUploadURLResponse, type FileDeleteParams, type FileDeleteResponse, type FileListParams, type FileListResponse, Files, InternalServerError, type LogLevel, type Logger, NotFoundError, PermissionDeniedError, RateLimitError, type RequestOptions, Session, type SessionAttachParams, type SessionAttachResponse, type SessionConfigHistoryParams, type SessionConfigHistoryResponse, type SessionCreateParams, type SessionCreateResponse, type SessionDeleteResponse, type SessionExecuteMetaParams, type SessionExecuteMetaResponse, type SessionExecuteParams, type SessionExecuteResponse, type SessionLinkParams, type SessionLinkResponse, type SessionPatchParams, type SessionPatchResponse, type SessionProxyExecuteParams, type SessionProxyExecuteResponse, type SessionRetrieveResponse, type SessionSearchParams, type SessionSearchResponse, type SessionToolkitsParams, type SessionToolkitsResponse, type SessionToolsParams, type SessionToolsResponse, ToolRouter, type Transport, UnprocessableEntityError, VERSION, createFetchTransport };
|
package/dist/index.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { a as AuthenticationError, c as ConflictError, d as PermissionDeniedError, f as RateLimitError, i as APIUserAbortError, l as InternalServerError, n as APIConnectionTimeoutError, o as BadRequestError, p as UnprocessableEntityError, r as APIError, s as ComposioError, t as APIConnectionError, u as NotFoundError } from "./error-D9cG225M.mjs";
|
|
2
|
-
import { C as inspectDeprecation, E as assertCredentialTransport, M as mergeHeaders, S as inspectDeprecatedInputs, k as parseHTTPURL, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, x as VERSION } from "./generated-operations-
|
|
3
|
-
import { t as Custom } from "./custom-
|
|
4
|
-
import { t as ApiKeyRevocation } from "./api-key-revocation-
|
|
5
|
-
import { t as AuthConfigs } from "./auth-configs-
|
|
6
|
-
import { t as Auth } from "./auth-
|
|
7
|
-
import { t as Cli } from "./cli-
|
|
8
|
-
import { t as ConnectedAccounts } from "./connected-accounts-
|
|
9
|
-
import { t as Files$1 } from "./files-
|
|
10
|
-
import { t as Keyring } from "./keyring-
|
|
11
|
-
import { t as Link } from "./link-
|
|
12
|
-
import { t as Logs } from "./logs-
|
|
13
|
-
import { t as Mcp } from "./mcp-
|
|
2
|
+
import { C as inspectDeprecation, E as assertCredentialTransport, M as mergeHeaders, S as inspectDeprecatedInputs, k as parseHTTPURL, p as readOperation, t as GENERATED_OPERATIONS, u as makeRequest, x as VERSION } from "./generated-operations-CtVNMBUj.mjs";
|
|
3
|
+
import { t as Custom } from "./custom-C__H3Kph.mjs";
|
|
4
|
+
import { t as ApiKeyRevocation } from "./api-key-revocation-Cepb5MPW.mjs";
|
|
5
|
+
import { t as AuthConfigs } from "./auth-configs-DuClvjog.mjs";
|
|
6
|
+
import { t as Auth } from "./auth-g5G0n9oV.mjs";
|
|
7
|
+
import { t as Cli } from "./cli-CGKT5K03.mjs";
|
|
8
|
+
import { t as ConnectedAccounts } from "./connected-accounts-C8CZoYC9.mjs";
|
|
9
|
+
import { t as Files$1 } from "./files-D117G13q.mjs";
|
|
10
|
+
import { t as Keyring } from "./keyring-Ct88j6tO.mjs";
|
|
11
|
+
import { t as Link } from "./link-Cf--DVaO.mjs";
|
|
12
|
+
import { t as Logs } from "./logs-Drxog1aA.mjs";
|
|
13
|
+
import { t as Mcp } from "./mcp-BH8R-5YV.mjs";
|
|
14
14
|
import { t as Migration } from "./migration-CBhnoN-Y.mjs";
|
|
15
|
-
import { t as Org } from "./org-
|
|
16
|
-
import { t as Project } from "./project-
|
|
15
|
+
import { t as Org } from "./org-Wf7f-Vv6.mjs";
|
|
16
|
+
import { t as Project } from "./project-CnnjwkO0.mjs";
|
|
17
17
|
import { SessionConfigs } from "./resources/session-configs.mjs";
|
|
18
|
-
import { t as Files } from "./files-
|
|
19
|
-
import { t as Session } from "./session-
|
|
20
|
-
import { t as ToolRouter } from "./tool-router-
|
|
21
|
-
import { t as Toolkits } from "./toolkits-
|
|
22
|
-
import { t as Tools } from "./tools-
|
|
23
|
-
import { t as TriggerInstances } from "./trigger-instances-
|
|
24
|
-
import { t as TriggersTypes } from "./triggers-types-
|
|
25
|
-
import { t as WebhookEndpoints } from "./webhook-endpoints-
|
|
26
|
-
import { t as WebhookSubscriptions } from "./webhook-subscriptions-
|
|
27
|
-
import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-
|
|
18
|
+
import { t as Files } from "./files-Azjc6Q8K.mjs";
|
|
19
|
+
import { t as Session } from "./session-BmNXoUzp.mjs";
|
|
20
|
+
import { t as ToolRouter } from "./tool-router-DUl_FyWW.mjs";
|
|
21
|
+
import { t as Toolkits } from "./toolkits-NqNU3W0c.mjs";
|
|
22
|
+
import { t as Tools } from "./tools-tclheOeG.mjs";
|
|
23
|
+
import { t as TriggerInstances } from "./trigger-instances-93_0xLWQ.mjs";
|
|
24
|
+
import { t as TriggersTypes } from "./triggers-types-Cop2FUpI.mjs";
|
|
25
|
+
import { t as WebhookEndpoints } from "./webhook-endpoints-B2b3GF14.mjs";
|
|
26
|
+
import { t as WebhookSubscriptions } from "./webhook-subscriptions-CSP2_-0w.mjs";
|
|
27
|
+
import { n as APIPromise, t as GENERATED_DEPRECATED_INPUTS } from "./generated-deprecated-inputs-LDMdNcg5.mjs";
|
|
28
28
|
|
|
29
29
|
//#region src/compat/generated-resource-wiring.ts
|
|
30
30
|
const createClientResources = (client) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/keyring.ts
|
|
4
4
|
const OP_LIST_TRANSFER_KEYS = generatedOperation("keyring.listTransferKeys");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/link.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("link.create");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
2
|
-
import { t as Triggers } from "./triggers-
|
|
3
|
-
import { t as Tools } from "./tools-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
|
+
import { t as Triggers } from "./triggers-AZd9nfc9.mjs";
|
|
3
|
+
import { t as Tools } from "./tools-N4xcs_0a.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/compat/resources/logs/logs.ts
|
|
6
6
|
const OP_CREATE_TOOL_EXECUTION = generatedOperation("logs.createToolExecution");
|
|
@@ -9,8 +9,7 @@ const OP_RETRIEVE_TOOL_EXECUTION = generatedOperation("logs.retrieveToolExecutio
|
|
|
9
9
|
* Stainless-shaped `client.logs` resource: a method-less container in the
|
|
10
10
|
* published Stainless client (the `triggers` and `tools` log sub-resources)
|
|
11
11
|
* plus the spec-surface `createToolExecution`/`retrieveToolExecution`
|
|
12
|
-
* (`/logs/tool_execution*`, never published by Stainless
|
|
13
|
-
* ticket 29).
|
|
12
|
+
* (`/logs/tool_execution*`, never published by Stainless).
|
|
14
13
|
*/
|
|
15
14
|
var Logs = class {
|
|
16
15
|
triggers;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/trigger-instances/manage.ts
|
|
4
4
|
const OP_UPDATE = generatedOperation("triggerInstances.manage.update");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
2
|
-
import { t as Custom } from "./custom-
|
|
3
|
-
import { t as Generate } from "./generate-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
|
+
import { t as Custom } from "./custom-Dh-9BeLk.mjs";
|
|
3
|
+
import { t as Generate } from "./generate-CRTH0ELB.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/compat/resources/mcp/mcp.ts
|
|
6
6
|
const OP_CREATE = generatedOperation("mcp.create");
|
|
@@ -16,8 +16,8 @@ const OP_RETRIEVE_APP = generatedOperation("mcp.retrieveApp");
|
|
|
16
16
|
* Stainless-shaped `client.mcp` resource: the 6-method published surface of
|
|
17
17
|
* `@composio/client` (create/retrieve/update/list/delete/retrieveApp) plus the
|
|
18
18
|
* spec-surface `/mcp/servers/{serverId}/instances` trio (listInstances/
|
|
19
|
-
* createInstance/deleteInstance), never published by Stainless
|
|
20
|
-
*
|
|
19
|
+
* createInstance/deleteInstance), never published by Stainless.
|
|
20
|
+
* Dispatched through the handwritten kernel.
|
|
21
21
|
*/
|
|
22
22
|
var Mcp = class {
|
|
23
23
|
custom;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
2
|
-
import { t as Clanker } from "./clanker-
|
|
3
|
-
import { t as Consumer } from "./consumer-
|
|
4
|
-
import { t as Owner } from "./owner-
|
|
5
|
-
import { t as Project } from "./project-
|
|
6
|
-
import { t as Usage } from "./usage-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
|
+
import { t as Clanker } from "./clanker-D1NQWaPc.mjs";
|
|
3
|
+
import { t as Consumer } from "./consumer-C9YlbuuF.mjs";
|
|
4
|
+
import { t as Owner } from "./owner-t5WgXUr3.mjs";
|
|
5
|
+
import { t as Project } from "./project-CbBPg2b6.mjs";
|
|
6
|
+
import { t as Usage } from "./usage-CGagRqsM.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/compat/resources/org/org.ts
|
|
9
9
|
const OP_LIST = generatedOperation("org.list");
|
|
@@ -11,7 +11,7 @@ const OP_LIST = generatedOperation("org.list");
|
|
|
11
11
|
* Spec-surface `client.org` resource: the 1-method org root of the v3.1 spec
|
|
12
12
|
* (`GET /org/list`) plus the owner/consumer/project/usage/clanker
|
|
13
13
|
* sub-resources — the deepest first-party nesting yet, never published by
|
|
14
|
-
* Stainless
|
|
14
|
+
* Stainless.
|
|
15
15
|
*/
|
|
16
16
|
var Org = class {
|
|
17
17
|
owner;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Project } from "./project-
|
|
1
|
+
import { t as Project } from "./project-EfFVX-hX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/owner/owner.ts
|
|
4
4
|
/**
|
|
5
5
|
* Spec-surface `client.org.owner` resource: a method-less container for the
|
|
6
|
-
* owner-scoped `project` sub-resource
|
|
6
|
+
* owner-scoped `project` sub-resource.
|
|
7
7
|
*/
|
|
8
8
|
var Owner = class {
|
|
9
9
|
project;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/project.ts
|
|
4
4
|
const OP_LIST = generatedOperation("org.project.list");
|
|
@@ -6,7 +6,7 @@ const OP_LIST = generatedOperation("org.project.list");
|
|
|
6
6
|
* Spec-surface `client.org.project` resource: the 1-method org-context
|
|
7
7
|
* project listing of the v3.1 spec (`GET /org/project/list` — deliberately
|
|
8
8
|
* coexists with `org.owner.project.list`: same summary, different auth
|
|
9
|
-
* contexts), never published by Stainless
|
|
9
|
+
* contexts), never published by Stainless.
|
|
10
10
|
*/
|
|
11
11
|
var Project = class {
|
|
12
12
|
#client;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as Config } from "./config-BLBbhLe1.mjs";
|
|
2
|
-
import { t as Usage } from "./usage-
|
|
2
|
+
import { t as Usage } from "./usage-CrsH3XJs.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/compat/resources/project/project.ts
|
|
5
5
|
/**
|
|
6
6
|
* Stainless-shaped `client.project` resource: a method-less container for the
|
|
7
7
|
* published (empty) `config` sub-resource plus the spec-surface `usage`
|
|
8
|
-
* sub-resource (never published by Stainless
|
|
8
|
+
* sub-resource (never published by Stainless).
|
|
9
9
|
*/
|
|
10
10
|
var Project = class {
|
|
11
11
|
config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, d as path, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/owner/project.ts
|
|
4
4
|
const OP_CREATE = generatedOperation("org.owner.project.create");
|
|
@@ -10,7 +10,7 @@ const OP_REGENERATE_APIKEY = generatedOperation("org.owner.project.regenerateAPI
|
|
|
10
10
|
* Spec-surface `client.org.owner.project` resource: the 5-method owner-scoped
|
|
11
11
|
* project surface of the v3.1 spec (create/list/retrieve/delete/
|
|
12
12
|
* regenerateAPIKey over `/org/owner/project/*`), never published by
|
|
13
|
-
* Stainless
|
|
13
|
+
* Stainless.
|
|
14
14
|
*/
|
|
15
15
|
var Project = class {
|
|
16
16
|
#client;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { M as mergeHeaders, b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/org/consumer/project.ts
|
|
4
4
|
const OP_RESOLVE = generatedOperation("org.consumer.project.resolve");
|
|
5
5
|
/**
|
|
6
6
|
* Spec-surface `client.org.consumer.project` resource: the 1-method consumer
|
|
7
7
|
* project-resolution surface of the v3.1 spec
|
|
8
|
-
* (`POST /org/consumer/project/resolve`), never published by Stainless
|
|
9
|
-
* wayfinder ticket 31.
|
|
8
|
+
* (`POST /org/consumer/project/resolve`), never published by Stainless.
|
|
10
9
|
*/
|
|
11
10
|
var Project = class {
|
|
12
11
|
#client;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as withOperation, n as generatedOperation } from "./generated-operations-
|
|
1
|
+
import { b as withOperation, n as generatedOperation } from "./generated-operations-CtVNMBUj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/resources/cli/realtime.ts
|
|
4
4
|
const OP_AUTH = generatedOperation("cli.realtime.auth");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { b as ApiKeyRevocationCreateParams, x as ApiKeyRevocationCreateResponse, y as ApiKeyRevocation } from "../session-configs-
|
|
1
|
+
import { b as ApiKeyRevocationCreateParams, x as ApiKeyRevocationCreateResponse, y as ApiKeyRevocation } from "../session-configs-BCEkl1E-.mjs";
|
|
2
2
|
export { ApiKeyRevocation, type ApiKeyRevocationCreateParams, type ApiKeyRevocationCreateResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as Auth } from "../../session-configs-
|
|
1
|
+
import { S as Auth } from "../../session-configs-BCEkl1E-.mjs";
|
|
2
2
|
export { Auth };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../../session-configs-
|
|
1
|
+
import { C as Session, S as Auth, w as SessionRetrieveInfoResponse } from "../../session-configs-BCEkl1E-.mjs";
|
|
2
2
|
export { Auth, Session, type SessionRetrieveInfoResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-
|
|
1
|
+
import { C as Session, w as SessionRetrieveInfoResponse } from "../../session-configs-BCEkl1E-.mjs";
|
|
2
2
|
export { Session, type SessionRetrieveInfoResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as AuthConfigListParams, Gn as AuthConfigUpdateStatusParams, Hn as AuthConfigRetrieveResponse, In as AuthConfigCreateParams, Kn as AuthConfigUpdateStatusResponse, Ln as AuthConfigCreateResponse, Rn as AuthConfigDeleteParams, Un as AuthConfigUpdateParams, Vn as AuthConfigListResponse, Wn as AuthConfigUpdateResponse, qn as AuthConfigs, zn as AuthConfigDeleteResponse } from "../session-configs-
|
|
1
|
+
import { Bn as AuthConfigListParams, Gn as AuthConfigUpdateStatusParams, Hn as AuthConfigRetrieveResponse, In as AuthConfigCreateParams, Kn as AuthConfigUpdateStatusResponse, Ln as AuthConfigCreateResponse, Rn as AuthConfigDeleteParams, Un as AuthConfigUpdateParams, Vn as AuthConfigListResponse, Wn as AuthConfigUpdateResponse, qn as AuthConfigs, zn as AuthConfigDeleteResponse } from "../session-configs-BCEkl1E-.mjs";
|
|
2
2
|
export { type AuthConfigCreateParams, type AuthConfigCreateResponse, type AuthConfigDeleteParams, type AuthConfigDeleteResponse, type AuthConfigListParams, type AuthConfigListResponse, type AuthConfigRetrieveResponse, type AuthConfigUpdateParams, type AuthConfigUpdateResponse, type AuthConfigUpdateStatusParams, type AuthConfigUpdateStatusResponse, AuthConfigs };
|