@composio/client 2.0.0-rc.22 → 2.0.0-rc.23
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 +16 -4
- package/dist/{_internal-UUxDozdb.d.mts → _internal-Cw5Ug7qY.d.mts} +90 -55
- package/dist/{_internal-7BQNRB9A.d.mts → _internal-ttfqtnVb.d.mts} +17 -1
- package/dist/effect/internal.d.mts +1 -1
- package/dist/effect/schemas/{cli → _internal/cli}/create-codact-failure.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-codact-failure.mjs +2 -2
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.d.mts +13 -0
- package/dist/effect/schemas/_internal/consumer/permissions/resolve.mjs +20 -0
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.d.mts +10 -0
- package/dist/effect/schemas/_internal/org/consumer/retrieve-config.mjs +18 -0
- package/dist/effect/schemas.d.mts +17 -8
- package/dist/effect/schemas.mjs +3 -2
- package/dist/effect.d.mts +3 -17
- package/dist/effect.mjs +23 -21
- package/dist/{environments-Dz5jsC_v.d.mts → environments-C_HPMP7r.d.mts} +1 -1
- package/dist/{environments-DIBy8nYx.mjs → environments-QSJiwtIM.mjs} +1 -1
- package/dist/{generated-operations-igWp3zha.mjs → generated-operations-B3PjeXjl.mjs} +28 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -4
- package/dist/internal.d.mts +1 -1
- package/dist/resources/_internal/_internal.d.mts +1 -1
- package/dist/resources/_internal/_internal.mjs +2 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -2
- package/dist/resources/_internal/cli/cli.mjs +9 -1
- package/dist/resources/_internal/cli/realtime.d.mts +1 -1
- package/dist/resources/_internal/cli/realtime.mjs +1 -1
- package/dist/resources/_internal/cli.d.mts +2 -2
- package/dist/resources/_internal/consumer/consumer.d.mts +2 -0
- package/dist/resources/_internal/consumer/consumer.mjs +8 -0
- package/dist/resources/_internal/consumer/permissions.d.mts +2 -0
- package/dist/resources/_internal/consumer/permissions.mjs +14 -0
- package/dist/resources/_internal/consumer.d.mts +2 -0
- package/dist/resources/_internal/logs/logs.d.mts +1 -1
- package/dist/resources/_internal/logs/tools.d.mts +1 -1
- package/dist/resources/_internal/logs/tools.mjs +1 -1
- package/dist/resources/_internal/logs/triggers.d.mts +1 -1
- package/dist/resources/_internal/logs/triggers.mjs +1 -1
- package/dist/resources/_internal/logs.d.mts +1 -1
- package/dist/resources/_internal/org/consumer/consumer.d.mts +2 -2
- package/dist/resources/_internal/org/consumer/consumer.mjs +5 -1
- package/dist/resources/_internal/org/consumer/project.d.mts +1 -1
- package/dist/resources/_internal/org/consumer/project.mjs +1 -1
- package/dist/resources/_internal/org/consumer.d.mts +2 -2
- package/dist/resources/_internal/org/org.d.mts +1 -1
- package/dist/resources/_internal/org.d.mts +2 -2
- package/dist/resources/_internal.d.mts +2 -2
- 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/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/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/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/logs.d.mts +1 -1
- package/dist/resources/logs/logs.mjs +1 -1
- package/dist/resources/logs.d.mts +1 -1
- 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/mcp.d.mts +1 -1
- package/dist/resources/mcp/mcp.mjs +1 -1
- package/dist/resources/mcp.d.mts +1 -1
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -3
- package/dist/resources/org/owner/owner.d.mts +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/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 +2 -2
- package/dist/resources/project/project.d.mts +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/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.mjs +1 -1
- 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/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/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- 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/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/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/package.json +9 -4
- package/dist/effect/schemas/org/clanker/create-claim.d.mts +0 -9
- package/dist/effect/schemas/org/clanker/create-claim.mjs +0 -14
- package/dist/resources/cli/cli.d.mts +0 -2
- package/dist/resources/cli/cli.mjs +0 -15
- package/dist/resources/cli.d.mts +0 -2
- package/dist/resources/org/clanker.d.mts +0 -2
- package/dist/resources/org/clanker.mjs +0 -14
- /package/dist/resources/{cli.mjs → _internal/consumer.mjs} +0 -0
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
|
|
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 114 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
|
|
|
@@ -167,7 +167,7 @@ dependency, loads faster and spends less time per request (see [Performance](#pe
|
|
|
167
167
|
|
|
168
168
|
The accessor chains, method names, argument order and request and response types are the root
|
|
169
169
|
client's, and a call sends the same method, URL, body and headers as the root client does for the same
|
|
170
|
-
input. All
|
|
170
|
+
input. All 114 operations of the spec are there.
|
|
171
171
|
|
|
172
172
|
### Install
|
|
173
173
|
|
|
@@ -560,6 +560,18 @@ The opt-in records the resolved scheme, hostname, and port. Mutating `baseURL` c
|
|
|
560
560
|
and `withOptions({ baseURL: ... })` requires `allowInsecureHTTP: true` again when the origin
|
|
561
561
|
changes. Redirects to another origin remain credential-free.
|
|
562
562
|
|
|
563
|
+
### Changed in 2.0.0-rc.23
|
|
564
|
+
|
|
565
|
+
| Change | Migration |
|
|
566
|
+
| --- | --- |
|
|
567
|
+
| `client.cli.createCodactFailure` moved to `client._internal.cli.createCodactFailure` (Apollo now tags it `x-internal`) | Import `@composio/client/internal` and call it there. Its types come from `@composio/client/resources/_internal/cli`; `@composio/client/resources/cli` no longer exists. Its Effect response schema moved to `@composio/client/effect/schemas/_internal/cli/create-codact-failure`. The wire is unchanged |
|
|
568
|
+
| `client.org.clanker.createClaim` is removed, with `@composio/client/resources/org/clanker` (Apollo removed `POST /api/v3.1/org/clanker/create_claim`) | None: the endpoint no longer exists |
|
|
569
|
+
| `sessionConfigs.list` no longer accepts `search` (Apollo removed the filter) | Drop `search` from the query and filter the returned configs yourself |
|
|
570
|
+
|
|
571
|
+
Two new internal operations are under `client._internal`: `consumer.permissions.resolve()` and
|
|
572
|
+
`org.consumer.retrieveConfig()`. Each removal has a ledger entry; `search` is a `properties-removed`
|
|
573
|
+
entry.
|
|
574
|
+
|
|
563
575
|
### Moved in 2.0.0-rc.22
|
|
564
576
|
|
|
565
577
|
The operations the spec tags `x-internal` moved under `client._internal`, which is typed only through
|
|
@@ -574,8 +586,8 @@ The ledger declares each as a removal; `pnpm test:pack` holds the subpaths.
|
|
|
574
586
|
| `client.org.consumer.*` | `client._internal.org.consumer.*` |
|
|
575
587
|
| Their types, from `@composio/client/resources/cli`, `resources/cli/realtime`, `resources/logs`, `resources/logs/tools`, `resources/logs/triggers`, `resources/org/consumer*` | The same names from `@composio/client/resources/_internal/<same path>` |
|
|
576
588
|
|
|
577
|
-
`client.
|
|
578
|
-
`client.
|
|
589
|
+
`client.logs.createToolExecution` and `client.logs.retrieveToolExecution` are not tagged and stay
|
|
590
|
+
where they were. `client.cli.createCodactFailure` stayed too, until rc.23.
|
|
579
591
|
|
|
580
592
|
### Changed in 2.0.0-rc.22
|
|
581
593
|
|
|
@@ -1355,10 +1355,6 @@ type GetApiV31SessionConfigsData = {
|
|
|
1355
1355
|
* Maximum number of configs to return, from 1 to 100.
|
|
1356
1356
|
*/
|
|
1357
1357
|
limit?: number;
|
|
1358
|
-
/**
|
|
1359
|
-
* Case-insensitive substring match against the config name.
|
|
1360
|
-
*/
|
|
1361
|
-
search?: string;
|
|
1362
1358
|
/**
|
|
1363
1359
|
* Return archived configs when true. Defaults to active configs only.
|
|
1364
1360
|
*/
|
|
@@ -1560,6 +1556,48 @@ type PostApiV31ApiKeyRevocationResponses = {
|
|
|
1560
1556
|
received: boolean;
|
|
1561
1557
|
};
|
|
1562
1558
|
};
|
|
1559
|
+
type PostApiV31ConsumerPermissionsResolveData = {
|
|
1560
|
+
body?: {
|
|
1561
|
+
/**
|
|
1562
|
+
* Connected account nano IDs to include in resolution.
|
|
1563
|
+
*/
|
|
1564
|
+
connected_account_ids?: Array<string>;
|
|
1565
|
+
/**
|
|
1566
|
+
* Optional toolkit_slug -> connected account nano ID array map. Values are flattened and merged with connected_account_ids.
|
|
1567
|
+
*/
|
|
1568
|
+
connected_accounts?: {
|
|
1569
|
+
[key: string]: Array<string>;
|
|
1570
|
+
};
|
|
1571
|
+
/**
|
|
1572
|
+
* Optional default mode to include in the resolved tool-router permissions config.
|
|
1573
|
+
*/
|
|
1574
|
+
default?: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
|
|
1575
|
+
};
|
|
1576
|
+
path?: never;
|
|
1577
|
+
query?: never;
|
|
1578
|
+
url: '/api/v3.1/consumer/permissions/resolve';
|
|
1579
|
+
};
|
|
1580
|
+
type PostApiV31ConsumerPermissionsResolveResponses = {
|
|
1581
|
+
/**
|
|
1582
|
+
* Consumer permissions resolved successfully.
|
|
1583
|
+
*/
|
|
1584
|
+
200: {
|
|
1585
|
+
experimental: {
|
|
1586
|
+
permissions: {
|
|
1587
|
+
/**
|
|
1588
|
+
* Default elicitation behavior when no override matches. `allow_all` runs every tool without prompting; `ask_every_call` prompts on each invocation; `ask_once_per_session` prompts once and remembers the answer for the rest of the session.
|
|
1589
|
+
*/
|
|
1590
|
+
default: 'allow_all' | 'ask_every_call' | 'ask_once_per_session';
|
|
1591
|
+
/**
|
|
1592
|
+
* Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? "__none__"}`, plus account-wide overrides keyed by `*:${connectedAccountId ?? "__none__"}`. Exact tool overrides take precedence over account-wide overrides. `always_allow` skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once` prompts once per session (allow/deny) and remembers; `ask_always` prompts on every call with allow-once/allow-session/deny, ignoring any cached session allow. Overrides take precedence over `default`.
|
|
1593
|
+
*/
|
|
1594
|
+
overrides?: {
|
|
1595
|
+
[key: string]: 'always_allow' | 'always_deny' | 'ask_once' | 'ask_always';
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1563
1601
|
type PostApiV31LogsToolExecutionData = {
|
|
1564
1602
|
body?: {
|
|
1565
1603
|
limit?: number;
|
|
@@ -2353,7 +2391,7 @@ type PostApiV31ToolsExecuteProxyData = {
|
|
|
2353
2391
|
*/
|
|
2354
2392
|
connected_account_id?: string;
|
|
2355
2393
|
/**
|
|
2356
|
-
* The user id (entity id)
|
|
2394
|
+
* The user id (entity id) acting on connected_account_id. Required for a SHARED connection, where it is checked against the connection's ACL. When the project has 2FA enabled, it is also validated against the owner of a PRIVATE connection. Also selects which custom toolkits the request may use.
|
|
2357
2395
|
*/
|
|
2358
2396
|
user_id?: string;
|
|
2359
2397
|
/**
|
|
@@ -2897,30 +2935,23 @@ type PostApiV31ToolsScopesRequiredResponses = {
|
|
|
2897
2935
|
}>;
|
|
2898
2936
|
};
|
|
2899
2937
|
};
|
|
2900
|
-
type
|
|
2901
|
-
body?: {
|
|
2902
|
-
/**
|
|
2903
|
-
* Email of the human who will claim the clanker
|
|
2904
|
-
*/
|
|
2905
|
-
human_email: string;
|
|
2906
|
-
};
|
|
2907
|
-
path?: never;
|
|
2908
|
-
query?: never;
|
|
2909
|
-
url: '/api/v3.1/org/clanker/create_claim';
|
|
2910
|
-
};
|
|
2911
|
-
type PostApiV31OrgClankerCreateClaimResponses = {
|
|
2938
|
+
type GetApiV31OrgConsumerConfigResponses = {
|
|
2912
2939
|
/**
|
|
2913
|
-
*
|
|
2940
|
+
* Consumer configuration retrieved successfully.
|
|
2914
2941
|
*/
|
|
2915
2942
|
200: {
|
|
2916
2943
|
/**
|
|
2917
|
-
*
|
|
2944
|
+
* Organization nano ID.
|
|
2918
2945
|
*/
|
|
2919
|
-
|
|
2946
|
+
org_id: string;
|
|
2920
2947
|
/**
|
|
2921
|
-
*
|
|
2948
|
+
* Whether the consumer experience is enabled for this project.
|
|
2922
2949
|
*/
|
|
2923
|
-
|
|
2950
|
+
consumer_experience_enabled?: boolean;
|
|
2951
|
+
/**
|
|
2952
|
+
* Whether enhanced controls are enabled for this consumer project.
|
|
2953
|
+
*/
|
|
2954
|
+
enhanced_controls?: boolean;
|
|
2924
2955
|
};
|
|
2925
2956
|
};
|
|
2926
2957
|
type PostApiV31ConnectedAccountsByNanoidRevokeResponses = {
|
|
@@ -13111,7 +13142,7 @@ type PostApiV31ConnectedAccountsData = {
|
|
|
13111
13142
|
*/
|
|
13112
13143
|
experimental?: {
|
|
13113
13144
|
/**
|
|
13114
|
-
* Sharing model for this connected account. PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from a tool-router session ONLY when explicitly pinned in the session config — at most one SHARED connection per toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
13145
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from a tool-router session ONLY when explicitly pinned in the session config — at most one SHARED connection per toolkit per session. Sessions never use a SHARED connection implicitly. Every use of a SHARED connection must pass the acting user_id, which is checked against its ACL.
|
|
13115
13146
|
*/
|
|
13116
13147
|
account_type?: 'PRIVATE' | 'SHARED';
|
|
13117
13148
|
/**
|
|
@@ -21356,7 +21387,7 @@ type PostApiV31ConnectedAccountsLinkData = {
|
|
|
21356
21387
|
*/
|
|
21357
21388
|
experimental?: {
|
|
21358
21389
|
/**
|
|
21359
|
-
* Sharing model for this connected account. PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from a tool-router session ONLY when explicitly pinned in the session config — at most one SHARED connection per toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
21390
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from a tool-router session ONLY when explicitly pinned in the session config — at most one SHARED connection per toolkit per session. Sessions never use a SHARED connection implicitly. Every use of a SHARED connection must pass the acting user_id, which is checked against its ACL.
|
|
21360
21391
|
*/
|
|
21361
21392
|
account_type?: 'PRIVATE' | 'SHARED';
|
|
21362
21393
|
/**
|
|
@@ -23529,7 +23560,7 @@ type PostApiV31TriggerInstancesBySlugUpsertData = {
|
|
|
23529
23560
|
*/
|
|
23530
23561
|
connected_account_id?: string;
|
|
23531
23562
|
/**
|
|
23532
|
-
* The user id (entity id) that owns the connection. When connected_account_id is omitted, the first active connection for this user and the trigger's toolkit is auto-resolved (same as tool execution). When connected_account_id is also provided
|
|
23563
|
+
* The user id (entity id) that owns the connection. When connected_account_id is omitted, the first active connection for this user and the trigger's toolkit is auto-resolved (same as tool execution). When connected_account_id is also provided, user_id is checked against that connection: always against a SHARED connection's ACL (user_id is then required), and against a PRIVATE connection's owner when the project has 2FA enabled.
|
|
23533
23564
|
*/
|
|
23534
23565
|
user_id?: string;
|
|
23535
23566
|
/**
|
|
@@ -23801,7 +23832,7 @@ type PatchApiV31TriggerInstancesManageByTriggerIdData = {
|
|
|
23801
23832
|
*/
|
|
23802
23833
|
status?: 'enable' | 'disable';
|
|
23803
23834
|
/**
|
|
23804
|
-
* The user id
|
|
23835
|
+
* The user id acting on the connected account behind this trigger. On a shared connection it must be allowed by the connection ACL, and it is required to enable the trigger or set egress_url. On a private connection it must be the owner when the project has 2FA enabled, and is ignored when 2FA is disabled. Required to set egress_url when 2FA is enabled.
|
|
23805
23836
|
*/
|
|
23806
23837
|
user_id?: string;
|
|
23807
23838
|
/**
|
|
@@ -25012,7 +25043,7 @@ type PostApiV31ToolRouterSessionBySessionIdLinkData = {
|
|
|
25012
25043
|
*/
|
|
25013
25044
|
experimental?: {
|
|
25014
25045
|
/**
|
|
25015
|
-
* Sharing model for this connected account. PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from a tool-router session ONLY when explicitly pinned in the session config — at most one SHARED connection per toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
25046
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from a tool-router session ONLY when explicitly pinned in the session config — at most one SHARED connection per toolkit per session. Sessions never use a SHARED connection implicitly. Every use of a SHARED connection must pass the acting user_id, which is checked against its ACL.
|
|
25016
25047
|
*/
|
|
25017
25048
|
account_type?: 'PRIVATE' | 'SHARED';
|
|
25018
25049
|
/**
|
|
@@ -26378,19 +26409,6 @@ interface Mcp {
|
|
|
26378
26409
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26379
26410
|
declare const makeMcp: (client: Composio) => Mcp;
|
|
26380
26411
|
//#endregion
|
|
26381
|
-
//#region src/compat/resources/cli/cli.d.ts
|
|
26382
|
-
type CliCreateCodactFailureBodyGen = NonNullable<PostApiV31CliCodactFailuresData['body']>;
|
|
26383
|
-
type CliCreateCodactFailureHeadersGen = NonNullable<PostApiV31CliCodactFailuresData['headers']>;
|
|
26384
|
-
interface CliCreateCodactFailureParams extends CliCreateCodactFailureBodyGen, CliCreateCodactFailureHeadersGen {}
|
|
26385
|
-
type CliCreateCodactFailureResponseGen = PostApiV31CliCodactFailuresResponses[200];
|
|
26386
|
-
interface CliCreateCodactFailureResponse extends CliCreateCodactFailureResponseGen {}
|
|
26387
|
-
/** `client.cli`. */
|
|
26388
|
-
interface Cli$1 {
|
|
26389
|
-
createCodactFailure(params: CliCreateCodactFailureParams, options?: RequestOptions): APIPromise<CliCreateCodactFailureResponse>;
|
|
26390
|
-
}
|
|
26391
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26392
|
-
declare const makeCli$1: (client: Composio) => Cli$1;
|
|
26393
|
-
//#endregion
|
|
26394
26412
|
//#region src/compat/resources/logs/logs.d.ts
|
|
26395
26413
|
type LogCreateToolExecutionParamsGen = NonNullable<PostApiV31LogsToolExecutionData['body']>;
|
|
26396
26414
|
interface LogCreateToolExecutionParams extends LogCreateToolExecutionParamsGen {}
|
|
@@ -26560,18 +26578,6 @@ interface Usage {
|
|
|
26560
26578
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26561
26579
|
declare const makeUsage: (client: Composio) => Usage;
|
|
26562
26580
|
//#endregion
|
|
26563
|
-
//#region src/compat/resources/org/clanker.d.ts
|
|
26564
|
-
type ClankerCreateClaimParamsGen = NonNullable<PostApiV31OrgClankerCreateClaimData['body']>;
|
|
26565
|
-
interface ClankerCreateClaimParams extends ClankerCreateClaimParamsGen {}
|
|
26566
|
-
type ClankerCreateClaimResponseGen = PostApiV31OrgClankerCreateClaimResponses[200];
|
|
26567
|
-
interface ClankerCreateClaimResponse extends ClankerCreateClaimResponseGen {}
|
|
26568
|
-
/** `client.org.clanker`. */
|
|
26569
|
-
interface Clanker {
|
|
26570
|
-
createClaim(body: ClankerCreateClaimParams, options?: RequestOptions): APIPromise<ClankerCreateClaimResponse>;
|
|
26571
|
-
}
|
|
26572
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26573
|
-
declare const makeClanker: (client: Composio) => Clanker;
|
|
26574
|
-
//#endregion
|
|
26575
26581
|
//#region src/compat/resources/org/org.d.ts
|
|
26576
26582
|
type OrgListParamsGen = NonNullable<GetApiV31OrgListData['query']>;
|
|
26577
26583
|
interface OrgListParams extends OrgListParamsGen {}
|
|
@@ -26582,7 +26588,6 @@ interface Org$1 {
|
|
|
26582
26588
|
readonly owner: Owner;
|
|
26583
26589
|
readonly project: Project$1;
|
|
26584
26590
|
readonly usage: Usage;
|
|
26585
|
-
readonly clanker: Clanker;
|
|
26586
26591
|
list(query?: OrgListParams | null | undefined, options?: RequestOptions): APIPromise<OrgListResponse>;
|
|
26587
26592
|
}
|
|
26588
26593
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
@@ -26677,7 +26682,6 @@ interface ClientResources {
|
|
|
26677
26682
|
readonly triggersTypes: TriggersTypes;
|
|
26678
26683
|
readonly triggerInstances: TriggerInstances;
|
|
26679
26684
|
readonly mcp: Mcp;
|
|
26680
|
-
readonly cli: Cli$1;
|
|
26681
26685
|
readonly logs: Logs$1;
|
|
26682
26686
|
readonly project: Project$3;
|
|
26683
26687
|
readonly webhookSubscriptions: WebhookSubscriptions;
|
|
@@ -26814,10 +26818,15 @@ interface Realtime {
|
|
|
26814
26818
|
declare const makeRealtime: (client: Composio) => Realtime;
|
|
26815
26819
|
//#endregion
|
|
26816
26820
|
//#region src/compat/resources/_internal/cli/cli.d.ts
|
|
26821
|
+
type CliCreateCodactFailureBodyGen = NonNullable<PostApiV31CliCodactFailuresData['body']>;
|
|
26822
|
+
type CliCreateCodactFailureHeadersGen = NonNullable<PostApiV31CliCodactFailuresData['headers']>;
|
|
26823
|
+
interface CliCreateCodactFailureParams extends CliCreateCodactFailureBodyGen, CliCreateCodactFailureHeadersGen {}
|
|
26817
26824
|
type CliCreateSessionParamsGen = NonNullable<PostApiV31CliCreateSessionData['body']>;
|
|
26818
26825
|
interface CliCreateSessionParams extends CliCreateSessionParamsGen {}
|
|
26819
26826
|
type CliGetSessionParamsGen = NonNullable<GetApiV31CliGetSessionData['query']>;
|
|
26820
26827
|
interface CliGetSessionParams extends CliGetSessionParamsGen {}
|
|
26828
|
+
type CliCreateCodactFailureResponseGen = PostApiV31CliCodactFailuresResponses[200];
|
|
26829
|
+
interface CliCreateCodactFailureResponse extends CliCreateCodactFailureResponseGen {}
|
|
26821
26830
|
type CliCreateSessionResponseGen = PostApiV31CliCreateSessionResponses[201];
|
|
26822
26831
|
interface CliCreateSessionResponse extends CliCreateSessionResponseGen {}
|
|
26823
26832
|
type CliGetSessionResponseGen = GetApiV31CliGetSessionResponses[200];
|
|
@@ -26825,12 +26834,33 @@ interface CliGetSessionResponse extends CliGetSessionResponseGen {}
|
|
|
26825
26834
|
/** `client._internal.cli`. */
|
|
26826
26835
|
interface Cli {
|
|
26827
26836
|
readonly realtime: Realtime;
|
|
26837
|
+
createCodactFailure(params: CliCreateCodactFailureParams, options?: RequestOptions): APIPromise<CliCreateCodactFailureResponse>;
|
|
26828
26838
|
createSession(body?: CliCreateSessionParams | null | undefined, options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
26829
26839
|
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
26830
26840
|
}
|
|
26831
26841
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26832
26842
|
declare const makeCli: (client: Composio) => Cli;
|
|
26833
26843
|
//#endregion
|
|
26844
|
+
//#region src/compat/resources/_internal/consumer/permissions.d.ts
|
|
26845
|
+
type PermissionsResolveParamsGen = NonNullable<PostApiV31ConsumerPermissionsResolveData['body']>;
|
|
26846
|
+
interface PermissionsResolveParams extends PermissionsResolveParamsGen {}
|
|
26847
|
+
type PermissionsResolveResponseGen = PostApiV31ConsumerPermissionsResolveResponses[200];
|
|
26848
|
+
interface PermissionsResolveResponse extends PermissionsResolveResponseGen {}
|
|
26849
|
+
/** `client._internal.consumer.permissions`. */
|
|
26850
|
+
interface Permissions {
|
|
26851
|
+
resolve(body?: PermissionsResolveParams | null | undefined, options?: RequestOptions): APIPromise<PermissionsResolveResponse>;
|
|
26852
|
+
}
|
|
26853
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26854
|
+
declare const makePermissions: (client: Composio) => Permissions;
|
|
26855
|
+
//#endregion
|
|
26856
|
+
//#region src/compat/resources/_internal/consumer/consumer.d.ts
|
|
26857
|
+
/** `client._internal.consumer`. */
|
|
26858
|
+
interface Consumer$1 {
|
|
26859
|
+
readonly permissions: Permissions;
|
|
26860
|
+
}
|
|
26861
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26862
|
+
declare const makeConsumer$1: (client: Composio) => Consumer$1;
|
|
26863
|
+
//#endregion
|
|
26834
26864
|
//#region src/compat/resources/_internal/logs/triggers.d.ts
|
|
26835
26865
|
type TriggerListParamsGen = NonNullable<PostApiV31InternalTriggerLogsData['body']>;
|
|
26836
26866
|
interface TriggerListParams extends TriggerListParamsGen {}
|
|
@@ -26859,6 +26889,7 @@ interface ToolListFieldsResponse extends ToolListFieldsResponseGen {}
|
|
|
26859
26889
|
/** `client._internal.logs.tools`. */
|
|
26860
26890
|
interface Tools {
|
|
26861
26891
|
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
26892
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26862
26893
|
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
26863
26894
|
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26864
26895
|
listFields(options?: RequestOptions): APIPromise<ToolListFieldsResponse>;
|
|
@@ -26893,10 +26924,13 @@ type ConsumerListConnectedToolkitsHeadersGen = NonNullable<GetApiV31OrgConsumerC
|
|
|
26893
26924
|
interface ConsumerListConnectedToolkitsParams extends ConsumerListConnectedToolkitsQueryGen, ConsumerListConnectedToolkitsHeadersGen {}
|
|
26894
26925
|
type ConsumerListConnectedToolkitsResponseGen = GetApiV31OrgConsumerConnectedToolkitsResponses[200];
|
|
26895
26926
|
interface ConsumerListConnectedToolkitsResponse extends ConsumerListConnectedToolkitsResponseGen {}
|
|
26927
|
+
type ConsumerRetrieveConfigResponseGen = GetApiV31OrgConsumerConfigResponses[200];
|
|
26928
|
+
interface ConsumerRetrieveConfigResponse extends ConsumerRetrieveConfigResponseGen {}
|
|
26896
26929
|
/** `client._internal.org.consumer`. */
|
|
26897
26930
|
interface Consumer {
|
|
26898
26931
|
readonly project: Project;
|
|
26899
26932
|
listConnectedToolkits(params: ConsumerListConnectedToolkitsParams, options?: RequestOptions): APIPromise<ConsumerListConnectedToolkitsResponse>;
|
|
26933
|
+
retrieveConfig(options?: RequestOptions): APIPromise<ConsumerRetrieveConfigResponse>;
|
|
26900
26934
|
}
|
|
26901
26935
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26902
26936
|
declare const makeConsumer: (client: Composio) => Consumer;
|
|
@@ -26913,10 +26947,11 @@ declare const makeOrg: (client: Composio) => Org;
|
|
|
26913
26947
|
/** `client._internal`. */
|
|
26914
26948
|
interface Internal {
|
|
26915
26949
|
readonly cli: Cli;
|
|
26950
|
+
readonly consumer: Consumer$1;
|
|
26916
26951
|
readonly logs: Logs;
|
|
26917
26952
|
readonly org: Org;
|
|
26918
26953
|
}
|
|
26919
26954
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26920
26955
|
declare const makeInternal: (client: Composio) => Internal;
|
|
26921
26956
|
//#endregion
|
|
26922
|
-
export {
|
|
26957
|
+
export { SessionConfigsRetrieveResponse as $, SessionProxyExecuteParams as $i, CustomCreateResponse as $n, ConnectedAccountCreateResponse as $r, WebhookEndpointRetrieveResponse as $t, PermissionsResolveParams as A, APIUserAbortError as Aa, ToolRetrieveRequiredScopesParams as Ai, McpCreateInstanceParams as An, AuthConfigs as Ar, makeUsage as At, makeCli as B, RequestOptions as Ba, SessionConfigHistoryParams as Bi, McpListResponse as Bn, ToolkitRetrieveParams as Br, ProjectDeleteParams as Bt, TriggerListResponse as C, AutoCredentials as Ca, ToolGetInputResponse as Ci, makeUsage$1 as Cn, AuthConfigListParams as Cr, OrgListResponse as Ct, Consumer$1 as D, APIConnectionTimeoutError as Da, ToolProxyResponse as Di, Logs$1 as Dn, AuthConfigUpdateResponse as Dr, UsageRetrieveResponse as Dt, makeTriggers as E, APIConnectionError as Ea, ToolProxyParams as Ei, LogRetrieveToolExecutionResponse as En, AuthConfigUpdateParams as Er, UsageRetrieveParams as Et, CliCreateCodactFailureResponse as F, InternalServerError as Fa, ToolRouter as Fi, McpDeleteInstanceResponse as Fn, ToolkitRecommendScopesResponse as Fr, Owner as Ft, makeRealtime as G, HeadersLike as Ga, SessionExecuteMetaParams as Gi, McpUpdateResponse as Gn, makeToolkits as Gr, ProjectRetrieveResponse as Gt, RealtimeAuthParams as H, Transport as Ha, SessionCreateParams as Hi, McpRetrieveAppResponse as Hn, ToolkitRetrieveScopesGrantContextParams as Hr, ProjectListParams$1 as Ht, CliCreateSessionParams as I, NotFoundError as Ia, makeToolRouter as Ii, McpDeleteResponse as In, ToolkitRetrieveCategoriesResponse as Ir, makeOwner as It, EnvironmentMap as J, SessionExecuteResponse as Ji, GenerateURLParams as Jn, LinkCreateResponse as Jr, WebhookEndpointCreateResponse as Jt, ClientOptions as K, APIPromise as Ka, SessionExecuteMetaResponse as Ki, makeMcp as Kn, Link as Kr, makeProject$2 as Kt, CliCreateSessionResponse as L, PermissionDeniedError as La, Session$1 as Li, McpListInstancesParams as Ln, ToolkitRetrieveChangelogResponse as Lr, Project$2 as Lt, makePermissions as M, BadRequestError as Ma, ToolRetrieveResponse$1 as Mi, McpCreateParams as Mn, ToolkitListParams as Mr, ProjectListParams as Mt, Cli as N, ComposioError as Na, Tools$1 as Ni, McpCreateResponse as Nn, ToolkitListResponse as Nr, ProjectListResponse as Nt, makeConsumer$1 as O, APIError as Oa, ToolRetrieveEnumResponse as Oi, makeLogs$1 as On, AuthConfigUpdateStatusParams as Or, UsageRetrieveSummaryParams as Ot, CliCreateCodactFailureParams as P, ConflictError as Pa, makeTools$1 as Pi, McpDeleteInstanceParams as Pn, ToolkitRecommendScopesParams as Pr, makeProject$1 as Pt, SessionConfigsListResponse as Q, SessionPatchResponse as Qi, CustomCreateParams as Qn, ConnectedAccountCreateParams as Qr, WebhookEndpointReplaceResponse as Qt, CliGetSessionParams as R, RateLimitError as Ra, SessionAttachParams as Ri, McpListInstancesResponse as Rn, ToolkitRetrieveMultiParams as Rr, ProjectCreateParams as Rt, TriggerListParams as S, AuthOf as Sa, ToolGetInputParams as Si, UsageRetrieveSummaryResponse$1 as Sn, AuthConfigDeleteResponse as Sr, OrgListParams as St, Triggers as T, Scope as Ta, ToolListResponse$1 as Ti, LogCreateToolExecutionResponse as Tn, AuthConfigRetrieveResponse as Tr, Usage as Tt, RealtimeAuthResponse as U, createFetchTransport as Ua, SessionCreateResponse as Ui, McpRetrieveResponse as Un, ToolkitRetrieveScopesGrantContextResponse as Ur, ProjectListResponse$1 as Ut, Realtime as V, FetchTransportDefaults as Va, SessionConfigHistoryResponse as Vi, McpRetrieveAppParams as Vn, ToolkitRetrieveResponse as Vr, ProjectDeleteResponse as Vt, RealtimeCredentialsResponse as W, ClientIdentity as Wa, SessionDeleteResponse as Wi, McpUpdateParams as Wn, Toolkits as Wr, ProjectRegenerateAPIKeyResponse as Wt, SessionConfigs as X, SessionLinkResponse as Xi, makeGenerate as Xn, ConnectedAccountCompleteAuthParams as Xr, WebhookEndpointListResponse as Xt, LogLevel as Y, SessionLinkParams as Yi, GenerateURLResponse as Yn, makeLink as Yr, WebhookEndpointListParams as Yt, SessionConfigsListParams as Z, SessionPatchParams as Zi, Custom$1 as Zn, ConnectedAccountCompleteAuthResponse as Zr, WebhookEndpointReplaceParams as Zt, ToolListParams as _, Files$1 as _a, FileListResponse as _i, makeProject$3 as _n, TriggersTypes as _r, makeAuth as _t, Consumer as a, SessionToolkitsResponse as aa, ConnectedAccountPatchResponse as ai, WebhookSubscriptionCreateResponse as an, TriggerInstances as ar, CustomDeleteToolkitParams as at, Tools as b, AuthConstructors as ba, ToolExecuteParams as bi, UsageRetrieveResponse$1 as bn, AuthConfigCreateResponse as br, makeSession as bt, ConsumerRetrieveConfigResponse as c, makeSession$1 as ca, ConnectedAccountRetrieveResponse as ci, WebhookSubscriptionListParams as cn, ManageDeleteResponse as cr, CustomSyncResponse as ct, ProjectResolveParams as d, FileCreateUploadURLParams as da, ConnectedAccountUpdateStatusResponse as di, WebhookSubscriptionRotateSecretResponse as dn, makeManage as dr, makeCustom as dt, SessionProxyExecuteResponse as ea, ConnectedAccountDeleteParams as ei, WebhookEndpointUpdateParams as en, makeCustom$1 as er, makeSessionConfigs as et, ProjectResolveResponse as f, FileCreateUploadURLResponse as fa, ConnectedAccounts as fi, WebhookSubscriptionUpdateParams as fn, TriggersTypeListParams as fr, ApiKeyRevocation as ft, ToolListFieldsResponse as g, FileListResponse$1 as ga, FileListParams as gi, Project$3 as gn, TriggersTypeRetrieveResponse as gr, Auth as gt, makeLogs as h, FileListParams$1 as ha, FileCreatePresignedURLResponse as hi, makeWebhookSubscriptions as hn, TriggersTypeRetrieveParams as hr, makeApiKeyRevocation as ht, makeOrg as i, SessionToolkitsParams as ia, ConnectedAccountPatchParams as ii, WebhookSubscriptionCreateParams as in, TriggerInstanceUpsertResponse as ir, Custom as it, PermissionsResolveResponse as j, AuthenticationError as ja, ToolRetrieveRequiredScopesResponse as ji, McpCreateInstanceResponse as jn, makeAuthConfigs as jr, Project$1 as jt, Permissions as k, APIErrorBody as ka, ToolRetrieveParams as ki, Mcp as kn, AuthConfigUpdateStatusResponse as kr, UsageRetrieveSummaryResponse as kt, makeConsumer as l, FileCreateDownloadURLParams as la, ConnectedAccountRevokeResponse as li, WebhookSubscriptionListResponse as ln, ManageUpdateParams as lr, CustomUpsertParams as lt, Logs as m, FileDeleteResponse as ma, FileCreatePresignedURLParams as mi, WebhookSubscriptions as mn, TriggersTypeRetrieveEnumResponse as mr, ApiKeyRevocationCreateResponse as mt, makeInternal as n, SessionSearchParams as na, ConnectedAccountListParams as ni, WebhookEndpoints as nn, TriggerInstanceListActiveResponse as nr, KeyringListTransferKeysResponse as nt, ConsumerListConnectedToolkitsParams as o, SessionToolsParams as oa, ConnectedAccountRefreshParams as oi, WebhookSubscriptionDeleteResponse as on, makeTriggerInstances as or, CustomDeleteToolkitResponse as ot, makeProject as p, FileDeleteParams as pa, makeConnectedAccounts as pi, WebhookSubscriptionUpdateResponse as pn, TriggersTypeListResponse as pr, ApiKeyRevocationCreateParams as pt, Composio as q, SessionExecuteParams as qi, Generate as qn, LinkCreateParams as qr, WebhookEndpointCreateParams as qt, Org as r, SessionSearchResponse as ra, ConnectedAccountListResponse as ri, makeWebhookEndpoints as rn, TriggerInstanceUpsertParams as rr, makeKeyring as rt, ConsumerListConnectedToolkitsResponse as s, SessionToolsResponse as sa, ConnectedAccountRefreshResponse as si, WebhookSubscriptionListEventTypesResponse as sn, Manage as sr, CustomSyncParams as st, Internal as t, SessionRetrieveResponse as ta, ConnectedAccountDeleteResponse as ti, WebhookEndpointUpdateResponse as tn, TriggerInstanceListActiveParams as tr, Keyring as tt, Project as u, FileCreateDownloadURLResponse as ua, ConnectedAccountUpdateStatusParams as ui, WebhookSubscriptionRetrieveResponse as un, ManageUpdateResponse as ur, CustomUpsertResponse as ut, ToolListResponse as v, makeFiles$1 as va, Files as vi, Usage$1 as vn, makeTriggersTypes as vr, Session as vt, TriggerRetrieveResponse as w, Credential as wa, ToolListParams$1 as wi, LogCreateToolExecutionParams as wn, AuthConfigListResponse as wr, makeOrg$1 as wt, makeTools as x, AuthMode as xa, ToolExecuteResponse as xi, UsageRetrieveSummaryParams$1 as xn, AuthConfigDeleteParams as xr, Org$1 as xt, ToolRetrieveResponse as y, Auth$1 as ya, makeFiles as yi, UsageRetrieveParams$1 as yn, AuthConfigCreateParams as yr, SessionRetrieveInfoResponse as yt, CliGetSessionResponse as z, UnprocessableEntityError as za, SessionAttachResponse as zi, McpListParams as zn, ToolkitRetrieveMultiResponse as zr, ProjectCreateResponse as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as PermissionsResolveParams, C as TriggerListResponse, F as CliCreateCodactFailureResponse, Ga as HeadersLike, H as RealtimeAuthParams, I as CliCreateSessionParams, L as CliCreateSessionResponse, P as CliCreateCodactFailureParams, R as CliGetSessionParams, S as TriggerListParams, Sa as AuthOf, U as RealtimeAuthResponse, W as RealtimeCredentialsResponse, _ as ToolListParams, c as ConsumerRetrieveConfigResponse, d as ProjectResolveParams, f as ProjectResolveResponse, g as ToolListFieldsResponse, j as PermissionsResolveResponse, ka as APIErrorBody, o as ConsumerListConnectedToolkitsParams, s as ConsumerListConnectedToolkitsResponse, v as ToolListResponse, w as TriggerRetrieveResponse, y as ToolRetrieveResponse, z as CliGetSessionResponse } from "./_internal-Cw5Ug7qY.mjs";
|
|
2
2
|
import { Effect, Redacted } from "effect";
|
|
3
3
|
import "effect/http/HttpClient";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
@@ -207,10 +207,23 @@ interface Realtime {
|
|
|
207
207
|
/** `client._internal.cli` on the Effect surface. */
|
|
208
208
|
interface Cli {
|
|
209
209
|
readonly realtime: Realtime;
|
|
210
|
+
readonly createCodactFailure: (params: CliCreateCodactFailureParams, options?: RequestOptions) => Effect.Effect<CliCreateCodactFailureResponse, ComposioError>;
|
|
210
211
|
readonly createSession: (body?: CliCreateSessionParams | null | undefined, options?: RequestOptions) => Effect.Effect<CliCreateSessionResponse, ComposioError>;
|
|
211
212
|
readonly getSession: (query: CliGetSessionParams, options?: RequestOptions) => Effect.Effect<CliGetSessionResponse, ComposioError>;
|
|
212
213
|
}
|
|
213
214
|
//#endregion
|
|
215
|
+
//#region src/effect/generated/resources/_internal/consumer/permissions.d.ts
|
|
216
|
+
/** `client._internal.consumer.permissions` on the Effect surface. */
|
|
217
|
+
interface Permissions {
|
|
218
|
+
readonly resolve: (body?: PermissionsResolveParams | null | undefined, options?: RequestOptions) => Effect.Effect<PermissionsResolveResponse, ComposioError>;
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/effect/generated/resources/_internal/consumer/consumer.d.ts
|
|
222
|
+
/** `client._internal.consumer` on the Effect surface. */
|
|
223
|
+
interface Consumer$1 {
|
|
224
|
+
readonly permissions: Permissions;
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
214
227
|
//#region src/effect/generated/resources/_internal/logs/triggers.d.ts
|
|
215
228
|
/** `client._internal.logs.triggers` on the Effect surface. */
|
|
216
229
|
interface Triggers {
|
|
@@ -223,6 +236,7 @@ interface Triggers {
|
|
|
223
236
|
/** `client._internal.logs.tools` on the Effect surface. */
|
|
224
237
|
interface Tools {
|
|
225
238
|
readonly retrieve: (id: string, options?: RequestOptions) => Effect.Effect<ToolRetrieveResponse, ComposioError>;
|
|
239
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
226
240
|
readonly list: (body: ToolListParams, options?: RequestOptions) => Effect.Effect<ToolListResponse, ComposioError>;
|
|
227
241
|
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
228
242
|
readonly listFields: (options?: RequestOptions) => Effect.Effect<ToolListFieldsResponse, ComposioError>;
|
|
@@ -246,6 +260,7 @@ interface Project {
|
|
|
246
260
|
interface Consumer {
|
|
247
261
|
readonly project: Project;
|
|
248
262
|
readonly listConnectedToolkits: (params: ConsumerListConnectedToolkitsParams, options?: RequestOptions) => Effect.Effect<ConsumerListConnectedToolkitsResponse, ComposioError>;
|
|
263
|
+
readonly retrieveConfig: (options?: RequestOptions) => Effect.Effect<ConsumerRetrieveConfigResponse, ComposioError>;
|
|
249
264
|
}
|
|
250
265
|
//#endregion
|
|
251
266
|
//#region src/effect/generated/resources/_internal/org/org.d.ts
|
|
@@ -258,6 +273,7 @@ interface Org {
|
|
|
258
273
|
/** `client._internal` on the Effect surface. */
|
|
259
274
|
interface Internal {
|
|
260
275
|
readonly cli: Cli;
|
|
276
|
+
readonly consumer: Consumer$1;
|
|
261
277
|
readonly logs: Logs;
|
|
262
278
|
readonly org: Org;
|
|
263
279
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
//#region src/effect/generated/schemas/cli/create-codact-failure.d.ts
|
|
3
|
-
/** The 200 response of `POST /api/v3.1/cli/codact_failures`, which `client.cli.createCodactFailure` answers with. */
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/cli/create-codact-failure.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/cli/codact_failures`, which `client._internal.cli.createCodactFailure` answers with. */
|
|
4
4
|
declare const CliCreateCodactFailureResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
5
|
readonly tracked: Schema.Boolean;
|
|
6
6
|
readonly id: Schema.String;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
|
|
3
|
-
//#region src/effect/generated/schemas/cli/create-codact-failure.ts
|
|
4
|
-
/** The 200 response of `POST /api/v3.1/cli/codact_failures`, which `client.cli.createCodactFailure` answers with. */
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/cli/create-codact-failure.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/cli/codact_failures`, which `client._internal.cli.createCodactFailure` answers with. */
|
|
5
5
|
const CliCreateCodactFailureResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
6
|
"tracked": Schema.Boolean.annotate({
|
|
7
7
|
"description": "Whether the codact failure row was accepted for storage.",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/consumer/permissions/resolve.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/consumer/permissions/resolve`, which `client._internal.consumer.permissions.resolve` answers with. */
|
|
4
|
+
declare const PermissionsResolveResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly experimental: Schema.StructWithRest<Schema.Struct<{
|
|
6
|
+
readonly permissions: Schema.StructWithRest<Schema.Struct<{
|
|
7
|
+
readonly default: Schema.Literals<readonly ["allow_all", "ask_every_call", "ask_once_per_session"]>;
|
|
8
|
+
readonly overrides: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Literals<readonly ["always_allow", "always_deny", "ask_once", "ask_always"]>>>;
|
|
9
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
10
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
11
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { PermissionsResolveResponse };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/consumer/permissions/resolve.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/consumer/permissions/resolve`, which `client._internal.consumer.permissions.resolve` answers with. */
|
|
5
|
+
const PermissionsResolveResponse = Schema.StructWithRest(Schema.Struct({ "experimental": Schema.StructWithRest(Schema.Struct({ "permissions": Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"default": Schema.Literals([
|
|
7
|
+
"allow_all",
|
|
8
|
+
"ask_every_call",
|
|
9
|
+
"ask_once_per_session"
|
|
10
|
+
]).annotate({ "description": "Default elicitation behavior when no override matches. `allow_all` runs every tool without prompting; `ask_every_call` prompts on each invocation; `ask_once_per_session` prompts once and remembers the answer for the rest of the session." }),
|
|
11
|
+
"overrides": Schema.optionalKey(Schema.Record(Schema.String, Schema.Literals([
|
|
12
|
+
"always_allow",
|
|
13
|
+
"always_deny",
|
|
14
|
+
"ask_once",
|
|
15
|
+
"ask_always"
|
|
16
|
+
])).annotate({ "description": "Per-tool overrides keyed by `${toolSlug}:${connectedAccountId ?? \"__none__\"}`, plus account-wide overrides keyed by `*:${connectedAccountId ?? \"__none__\"}`. Exact tool overrides take precedence over account-wide overrides. `always_allow` skips the prompt and runs the tool; `always_deny` blocks the tool; `ask_once` prompts once per session (allow/deny) and remembers; `ask_always` prompts on every call with allow-once/allow-session/deny, ignoring any cached session allow. Overrides take precedence over `default`." }))
|
|
17
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PermissionsResolveResponse };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/_internal/org/consumer/retrieve-config.d.ts
|
|
3
|
+
/** The 200 response of `GET /api/v3.1/org/consumer/config`, which `client._internal.org.consumer.retrieveConfig` answers with. */
|
|
4
|
+
declare const ConsumerRetrieveConfigResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly org_id: Schema.String;
|
|
6
|
+
readonly consumer_experience_enabled: Schema.optionalKey<Schema.Boolean>;
|
|
7
|
+
readonly enhanced_controls: Schema.optionalKey<Schema.Boolean>;
|
|
8
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ConsumerRetrieveConfigResponse };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/_internal/org/consumer/retrieve-config.ts
|
|
4
|
+
/** The 200 response of `GET /api/v3.1/org/consumer/config`, which `client._internal.org.consumer.retrieveConfig` answers with. */
|
|
5
|
+
const ConsumerRetrieveConfigResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"org_id": Schema.String.annotate({ "description": "Organization nano ID." }),
|
|
7
|
+
"consumer_experience_enabled": Schema.optionalKey(Schema.Boolean.annotate({
|
|
8
|
+
"description": "Whether the consumer experience is enabled for this project.",
|
|
9
|
+
"default": true
|
|
10
|
+
})),
|
|
11
|
+
"enhanced_controls": Schema.optionalKey(Schema.Boolean.annotate({
|
|
12
|
+
"description": "Whether enhanced controls are enabled for this consumer project.",
|
|
13
|
+
"default": false
|
|
14
|
+
}))
|
|
15
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ConsumerRetrieveConfigResponse };
|
|
@@ -13,6 +13,10 @@ import * as Schema from "effect/Schema";
|
|
|
13
13
|
* schema it loads: that is what the type test compares with the response type the call returns.
|
|
14
14
|
*/
|
|
15
15
|
declare const schemaLoaders: {
|
|
16
|
+
'_internal.cli.createCodactFailure': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
17
|
+
readonly tracked: Schema.Boolean;
|
|
18
|
+
readonly id: Schema.String;
|
|
19
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
16
20
|
'_internal.cli.createSession': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
17
21
|
readonly id: Schema.String;
|
|
18
22
|
readonly code: Schema.String;
|
|
@@ -42,6 +46,14 @@ declare const schemaLoaders: {
|
|
|
42
46
|
readonly pusher_cluster: Schema.String;
|
|
43
47
|
readonly project_id: Schema.String;
|
|
44
48
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
49
|
+
'_internal.consumer.permissions.resolve': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
50
|
+
readonly experimental: Schema.StructWithRest<Schema.Struct<{
|
|
51
|
+
readonly permissions: Schema.StructWithRest<Schema.Struct<{
|
|
52
|
+
readonly default: Schema.Literals<readonly ["allow_all", "ask_every_call", "ask_once_per_session"]>;
|
|
53
|
+
readonly overrides: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Literals<readonly ["always_allow", "always_deny", "ask_once", "ask_always"]>>>;
|
|
54
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
55
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
56
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
45
57
|
'_internal.logs.tools.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
46
58
|
readonly data: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
47
59
|
readonly id: Schema.String;
|
|
@@ -203,6 +215,11 @@ declare const schemaLoaders: {
|
|
|
203
215
|
readonly consumer_user_id: Schema.String;
|
|
204
216
|
readonly user_id: Schema.String;
|
|
205
217
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
218
|
+
'_internal.org.consumer.retrieveConfig': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
219
|
+
readonly org_id: Schema.String;
|
|
220
|
+
readonly consumer_experience_enabled: Schema.optionalKey<Schema.Boolean>;
|
|
221
|
+
readonly enhanced_controls: Schema.optionalKey<Schema.Boolean>;
|
|
222
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
206
223
|
'apiKeyRevocation.create': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
207
224
|
readonly received: Schema.Boolean;
|
|
208
225
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
@@ -375,10 +392,6 @@ declare const schemaLoaders: {
|
|
|
375
392
|
readonly success: Schema.Boolean;
|
|
376
393
|
readonly message: Schema.String;
|
|
377
394
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
378
|
-
'cli.createCodactFailure': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
379
|
-
readonly tracked: Schema.Boolean;
|
|
380
|
-
readonly id: Schema.String;
|
|
381
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
382
395
|
'connectedAccounts.completeAuth': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
383
396
|
readonly connected_account_id: Schema.String;
|
|
384
397
|
readonly toolkit_slug: Schema.String;
|
|
@@ -8067,10 +8080,6 @@ declare const schemaLoaders: {
|
|
|
8067
8080
|
readonly managed_auth_via_composio: Schema.Boolean;
|
|
8068
8081
|
readonly deleted: Schema.Boolean;
|
|
8069
8082
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
8070
|
-
'org.clanker.createClaim': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
8071
|
-
readonly claim_slug: Schema.String;
|
|
8072
|
-
readonly expires_at: Schema.String;
|
|
8073
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
8074
8083
|
'org.list': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
8075
8084
|
readonly organizations: Schema.$Array<Schema.StructWithRest<Schema.Struct<{
|
|
8076
8085
|
readonly id: Schema.String;
|