@composio/client 2.0.0 → 2.1.0
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/MIGRATION.md +15 -1
- package/README.md +17 -3
- package/dist/{_internal-BBZ8gsxI.d.mts → _internal-NSeZ9Kgw.d.mts} +212 -4
- package/dist/{_internal-C4YQE9nG.d.mts → _internal-nTeziat-.d.mts} +1 -1
- package/dist/effect/internal.d.mts +1 -1
- package/dist/effect/schemas/custom/create-toolkit.d.mts +13 -0
- package/dist/effect/schemas/custom/create-toolkit.mjs +21 -0
- package/dist/effect/schemas/custom/update-toolkits.d.mts +8 -0
- package/dist/effect/schemas/custom/update-toolkits.mjs +8 -0
- package/dist/effect/schemas/tools/retrieve-enum.mjs +1 -1
- package/dist/effect/schemas.d.mts +11 -0
- package/dist/effect/schemas.mjs +2 -0
- package/dist/effect.d.mts +8 -4
- package/dist/effect.mjs +13 -3
- package/dist/{environments-BFGXNbF0.mjs → environments-DsaIgVcq.mjs} +1 -1
- package/dist/{environments-cVbMu7FC.d.mts → environments-X99VPIhY.d.mts} +1 -1
- package/dist/{generated-operations-DXMQK5w5.mjs → generated-operations-BPwJuY-V.mjs} +13 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/internal.d.mts +1 -1
- package/dist/resources/_internal/_internal.d.mts +1 -1
- package/dist/resources/_internal/cli/cli.d.mts +1 -1
- package/dist/resources/_internal/cli/cli.mjs +1 -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 +1 -1
- package/dist/resources/_internal/consumer/consumer.d.mts +1 -1
- package/dist/resources/_internal/consumer/permissions.d.mts +1 -1
- package/dist/resources/_internal/consumer/permissions.mjs +1 -1
- package/dist/resources/_internal/consumer.d.mts +1 -1
- 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 +1 -1
- package/dist/resources/_internal/org/consumer/consumer.mjs +1 -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 +1 -1
- package/dist/resources/_internal/org/org.d.mts +1 -1
- package/dist/resources/_internal/org.d.mts +1 -1
- package/dist/resources/_internal.d.mts +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/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 +2 -2
- package/dist/resources/custom.mjs +15 -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 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/resources/toolkits.mjs +6 -2
- 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 +7 -6
package/MIGRATION.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
# Upgrade to @composio/client 2.
|
|
1
|
+
# Upgrade to @composio/client 2.x
|
|
2
|
+
|
|
3
|
+
### Changed in 2.1.0: one-time breaking exception
|
|
4
|
+
|
|
5
|
+
Version 2.1.0 exceptionally adopts an accidental breaking rename from the Platform API.
|
|
6
|
+
The following required inputs change for both the Promise and Effect clients:
|
|
7
|
+
|
|
8
|
+
| Operation | Migration |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| `custom.createToolkit` | Rename the required `app_url` body property to `mcp_url` |
|
|
11
|
+
| `custom.upsert` | Rename `toolkit_config.app_url` to `toolkit_config.mcp_url` |
|
|
12
|
+
|
|
13
|
+
The old input names are no longer supported. This minor release is an explicitly approved
|
|
14
|
+
one-time compatibility exception; future undeclared breaking changes remain blocked by the
|
|
15
|
+
previous-release gate.
|
|
2
16
|
|
|
3
17
|
By default, the 2.0 client refuses to send credentials over plain HTTP unless the hostname is
|
|
4
18
|
loopback. For a trusted development backend such as Docker's host gateway, opt in to the exact
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# composio-client
|
|
2
2
|
|
|
3
3
|
TypeScript and Python clients for the Composio v3.1 API. The checked-in OpenAPI snapshot supplies
|
|
4
|
-
|
|
4
|
+
116 operations, including explicitly unsupported internal operations used by Composio's own SDKs.
|
|
5
5
|
Use the Promise client at the package root, the optional [Effect client](#effect), or the
|
|
6
6
|
[Python sync and async clients](./python/README.md).
|
|
7
7
|
|
|
@@ -150,6 +150,10 @@ polyfills and test interceptors keep working. A custom `fetch` or extra `Request
|
|
|
150
150
|
through `createFetchTransport({ fetch, defaults })`; the former `fetch`, `fetchOptions` and
|
|
151
151
|
`defaultQuery` constructor options are gone (see the upgrade section).
|
|
152
152
|
|
|
153
|
+
`toolkits.retrieveChangelog` keeps its existing options argument on both TypeScript entries.
|
|
154
|
+
Pass its optional user filter as `retrieveChangelog({ query: { user_id: 'user-42' } })`;
|
|
155
|
+
headers and other request options stay in that same object.
|
|
156
|
+
|
|
153
157
|
### Retries and timeouts
|
|
154
158
|
|
|
155
159
|
GET, HEAD, OPTIONS, PUT and DELETE calls retry up to twice on connection errors, timeouts and
|
|
@@ -198,7 +202,7 @@ dependency, loads faster and spends less time per request (see [Performance](#pe
|
|
|
198
202
|
|
|
199
203
|
The accessor chains, method names, argument order and request and response types are the root
|
|
200
204
|
client's, and a call sends the same method, URL, body and headers as the root client does for the same
|
|
201
|
-
input. All
|
|
205
|
+
input. All 116 operations of the spec are there.
|
|
202
206
|
|
|
203
207
|
### Install
|
|
204
208
|
|
|
@@ -565,12 +569,22 @@ The detected runtime is one of `nodejs`, `bun`, `deno`, `cloudflare`, `vercel_ed
|
|
|
565
569
|
`fastly` or `unknown`, checked in [`std-env`](https://github.com/unjs/std-env)'s order; the
|
|
566
570
|
Python client always reports `python`.
|
|
567
571
|
|
|
568
|
-
## Upgrading to 2.
|
|
572
|
+
## Upgrading to 2.x
|
|
569
573
|
|
|
570
574
|
Authentication is explicit, several legacy exports are removed, internal operations have moved,
|
|
571
575
|
and POST/PATCH retries now require per-call opt-in. Read the [TypeScript migration guide](./MIGRATION.md)
|
|
572
576
|
or [Python migration guide](./python/MIGRATION.md) before upgrading from Stainless or an earlier RC.
|
|
573
577
|
|
|
578
|
+
Version 2.1.0 includes a one-time breaking exception for an accidental Platform API rename:
|
|
579
|
+
|
|
580
|
+
| Operation | Required input migration (Promise and Effect) |
|
|
581
|
+
| --- | --- |
|
|
582
|
+
| `custom.createToolkit` | `app_url` → `mcp_url` |
|
|
583
|
+
| `custom.upsert` | `toolkit_config.app_url` → `toolkit_config.mcp_url` |
|
|
584
|
+
|
|
585
|
+
The [Python migration guide](./python/MIGRATION.md#changed-in-210-one-time-breaking-exception)
|
|
586
|
+
covers the equivalent keyword changes. Undeclared breaking changes remain blocked.
|
|
587
|
+
|
|
574
588
|
## Development
|
|
575
589
|
|
|
576
590
|
Toolchain is pinned via [mise](https://mise.jdx.dev) (`mise install`): Node, Bun, pnpm, Python and uv. Exact versions live in `mise.toml`. ESM-only, TypeScript 7 (native compiler for typechecking, `typescript@6` retained for tooling until 7.1 restores the compiler API).
|
|
@@ -1801,7 +1801,7 @@ type GetApiV31ToolsResponses = {
|
|
|
1801
1801
|
};
|
|
1802
1802
|
type GetApiV31ToolsEnumResponses = {
|
|
1803
1803
|
/**
|
|
1804
|
-
*
|
|
1804
|
+
* Tool slugs
|
|
1805
1805
|
*/
|
|
1806
1806
|
200: Array<string>;
|
|
1807
1807
|
};
|
|
@@ -3011,6 +3011,121 @@ type PostApiV31ConnectedAccountsCompleteAuthResponses = {
|
|
|
3011
3011
|
toolkit_slug: string;
|
|
3012
3012
|
};
|
|
3013
3013
|
};
|
|
3014
|
+
type PostApiV31CustomToolkitsData = {
|
|
3015
|
+
/**
|
|
3016
|
+
* Toolkit to create
|
|
3017
|
+
*/
|
|
3018
|
+
body: {
|
|
3019
|
+
/**
|
|
3020
|
+
* Display name of the toolkit
|
|
3021
|
+
*/
|
|
3022
|
+
name: string;
|
|
3023
|
+
/**
|
|
3024
|
+
* MCP server URL. Must use https.
|
|
3025
|
+
*/
|
|
3026
|
+
mcp_url: string;
|
|
3027
|
+
/**
|
|
3028
|
+
* Square PNG or JPEG logo, 256-1024px, max 3MB. Defaults to the Model Context Protocol logo.
|
|
3029
|
+
*/
|
|
3030
|
+
logo_file?: {
|
|
3031
|
+
/**
|
|
3032
|
+
* Base64-encoded image, max 3MB decoded
|
|
3033
|
+
*/
|
|
3034
|
+
content: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* Image MIME type
|
|
3037
|
+
*/
|
|
3038
|
+
mime_type: 'image/png' | 'image/jpeg';
|
|
3039
|
+
};
|
|
3040
|
+
/**
|
|
3041
|
+
* How users authenticate to the MCP server
|
|
3042
|
+
*/
|
|
3043
|
+
auth_schemes: Array<{
|
|
3044
|
+
mode: 'NO_AUTH';
|
|
3045
|
+
} | {
|
|
3046
|
+
mode: 'API_KEY';
|
|
3047
|
+
/**
|
|
3048
|
+
* Headers sent to the MCP server. Use {{generic_api_key}} where the API key goes.
|
|
3049
|
+
*/
|
|
3050
|
+
headers: {
|
|
3051
|
+
[key: string]: string;
|
|
3052
|
+
};
|
|
3053
|
+
/**
|
|
3054
|
+
* Label and help text for the API key input on the connect page
|
|
3055
|
+
*/
|
|
3056
|
+
api_key_field?: {
|
|
3057
|
+
/**
|
|
3058
|
+
* Label for the API key input
|
|
3059
|
+
*/
|
|
3060
|
+
display_name?: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* Help text below the API key input
|
|
3063
|
+
*/
|
|
3064
|
+
description?: string;
|
|
3065
|
+
};
|
|
3066
|
+
/**
|
|
3067
|
+
* Additional values each user enters when connecting. Reference each field in a header, for example X-Org-Id: {{generic_id}}. Use display_name for the user-facing label. Every user must supply each declared field. Values are not secret.
|
|
3068
|
+
*/
|
|
3069
|
+
additional_fields?: {
|
|
3070
|
+
generic_id: {
|
|
3071
|
+
/**
|
|
3072
|
+
* Label shown to the user connecting their account
|
|
3073
|
+
*/
|
|
3074
|
+
display_name: string;
|
|
3075
|
+
/**
|
|
3076
|
+
* Help text below the input
|
|
3077
|
+
*/
|
|
3078
|
+
description?: string;
|
|
3079
|
+
};
|
|
3080
|
+
};
|
|
3081
|
+
} | {
|
|
3082
|
+
mode: 'DCR_OAUTH';
|
|
3083
|
+
/**
|
|
3084
|
+
* OAuth authorization server metadata URL, for example https://<auth server host>/.well-known/oauth-authorization-server. Use the URL your authorization server publishes; it can be on a different host from the MCP server or include a path.
|
|
3085
|
+
*/
|
|
3086
|
+
discovery_url: string;
|
|
3087
|
+
}>;
|
|
3088
|
+
/**
|
|
3089
|
+
* "all" to share the toolkit with every user in the project, or a user ID to make it private to that user. "default" and other spellings of "all" (such as "ALL" or " all") are rejected. Cannot be changed after create.
|
|
3090
|
+
*/
|
|
3091
|
+
user_id: 'all' | string;
|
|
3092
|
+
/**
|
|
3093
|
+
* URL to send the user to after they connect. Used only for connect_link.
|
|
3094
|
+
*/
|
|
3095
|
+
callback_url?: string;
|
|
3096
|
+
};
|
|
3097
|
+
path?: never;
|
|
3098
|
+
query?: never;
|
|
3099
|
+
url: '/api/v3.1/custom/toolkits';
|
|
3100
|
+
};
|
|
3101
|
+
type PostApiV31CustomToolkitsResponses = {
|
|
3102
|
+
/**
|
|
3103
|
+
* Successfully created toolkit
|
|
3104
|
+
*/
|
|
3105
|
+
200: {
|
|
3106
|
+
/**
|
|
3107
|
+
* Slug of the created toolkit
|
|
3108
|
+
*/
|
|
3109
|
+
slug: string;
|
|
3110
|
+
/**
|
|
3111
|
+
* Link for a private toolkit's user to connect. Null for shared or no-auth toolkits, or if the link could not be created. To retry, call POST /api/v3.1/connected_accounts/link with an auth config for the toolkit, creating one with POST /api/v3.1/auth_configs if needed.
|
|
3112
|
+
*/
|
|
3113
|
+
connect_link: {
|
|
3114
|
+
/**
|
|
3115
|
+
* Hosted connect page. Send the user here.
|
|
3116
|
+
*/
|
|
3117
|
+
redirect_url: string;
|
|
3118
|
+
/**
|
|
3119
|
+
* When the link expires (ISO 8601)
|
|
3120
|
+
*/
|
|
3121
|
+
expires_at: string;
|
|
3122
|
+
/**
|
|
3123
|
+
* Connected account for the user. It becomes ACTIVE once they connect.
|
|
3124
|
+
*/
|
|
3125
|
+
connected_account_id: string;
|
|
3126
|
+
} | null;
|
|
3127
|
+
};
|
|
3128
|
+
};
|
|
3014
3129
|
type DeleteApiV31CustomToolkitsBySlugData = {
|
|
3015
3130
|
body?: never;
|
|
3016
3131
|
path: {
|
|
@@ -3054,6 +3169,66 @@ type DeleteApiV31CustomToolkitsBySlugResponses = {
|
|
|
3054
3169
|
connected_accounts_deleted: number;
|
|
3055
3170
|
};
|
|
3056
3171
|
};
|
|
3172
|
+
type PatchApiV31CustomToolkitsBySlugData = {
|
|
3173
|
+
/**
|
|
3174
|
+
* Fields to update. Include at least one of name, logo_file, or api_key_field.
|
|
3175
|
+
*/
|
|
3176
|
+
body: {
|
|
3177
|
+
/**
|
|
3178
|
+
* Display name of the toolkit
|
|
3179
|
+
*/
|
|
3180
|
+
name?: string;
|
|
3181
|
+
/**
|
|
3182
|
+
* Square PNG or JPEG logo, 256-1024px, max 3MB. Omit to keep the current logo.
|
|
3183
|
+
*/
|
|
3184
|
+
logo_file?: {
|
|
3185
|
+
/**
|
|
3186
|
+
* Base64-encoded image, max 3MB decoded
|
|
3187
|
+
*/
|
|
3188
|
+
content: string;
|
|
3189
|
+
/**
|
|
3190
|
+
* Image MIME type
|
|
3191
|
+
*/
|
|
3192
|
+
mime_type: 'image/png' | 'image/jpeg';
|
|
3193
|
+
};
|
|
3194
|
+
/**
|
|
3195
|
+
* Label and help text for the API key input on the connect page. API_KEY toolkits only.
|
|
3196
|
+
*/
|
|
3197
|
+
api_key_field?: {
|
|
3198
|
+
/**
|
|
3199
|
+
* Label for the API key input
|
|
3200
|
+
*/
|
|
3201
|
+
display_name?: string;
|
|
3202
|
+
/**
|
|
3203
|
+
* Help text below the API key input
|
|
3204
|
+
*/
|
|
3205
|
+
description?: string;
|
|
3206
|
+
};
|
|
3207
|
+
/**
|
|
3208
|
+
* The user the toolkit is private to. Required to update a private toolkit when the project has 2FA enabled; optional for a toolkit shared with all users. Ignored when 2FA is disabled.
|
|
3209
|
+
*/
|
|
3210
|
+
user_id?: string;
|
|
3211
|
+
};
|
|
3212
|
+
path: {
|
|
3213
|
+
/**
|
|
3214
|
+
* Slug returned when the toolkit was created
|
|
3215
|
+
*/
|
|
3216
|
+
slug: string;
|
|
3217
|
+
};
|
|
3218
|
+
query?: never;
|
|
3219
|
+
url: '/api/v3.1/custom/toolkits/{slug}';
|
|
3220
|
+
};
|
|
3221
|
+
type PatchApiV31CustomToolkitsBySlugResponses = {
|
|
3222
|
+
/**
|
|
3223
|
+
* Successfully updated toolkit
|
|
3224
|
+
*/
|
|
3225
|
+
200: {
|
|
3226
|
+
/**
|
|
3227
|
+
* The toolkit was updated
|
|
3228
|
+
*/
|
|
3229
|
+
success: true;
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3057
3232
|
type PostApiV31ToolkitsByToolkitSlugScopesRecommendedData = {
|
|
3058
3233
|
body?: {
|
|
3059
3234
|
/**
|
|
@@ -3544,6 +3719,10 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
3544
3719
|
* Fast mode reduces search latency. It is experimental, so tool search quality may be affected.
|
|
3545
3720
|
*/
|
|
3546
3721
|
fast_mode?: boolean;
|
|
3722
|
+
/**
|
|
3723
|
+
* Set to true to stop tool search from returning cached plans (recommended_plan_steps, known_pitfalls, reference_workbench_snippets) in this session. Unlike fast_mode, tool search quality is unaffected. Defaults to false.
|
|
3724
|
+
*/
|
|
3725
|
+
disable_plan_search?: boolean;
|
|
3547
3726
|
/**
|
|
3548
3727
|
* Exposes the COMPOSIO_SUBMIT_FEEDBACK helper tool in this session so the agent can report tool executions with empty, incorrect, or failed results. Defaults to false.
|
|
3549
3728
|
*/
|
|
@@ -4776,6 +4955,10 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4776
4955
|
* Fast mode reduces search latency. It is experimental, so tool search quality may be affected.
|
|
4777
4956
|
*/
|
|
4778
4957
|
fast_mode?: boolean;
|
|
4958
|
+
/**
|
|
4959
|
+
* Set to true to stop tool search from returning cached plans (recommended_plan_steps, known_pitfalls, reference_workbench_snippets) in this session, false to return them again. Unlike fast_mode, tool search quality is unaffected.
|
|
4960
|
+
*/
|
|
4961
|
+
disable_plan_search?: boolean;
|
|
4779
4962
|
/**
|
|
4780
4963
|
* Exposes the COMPOSIO_SUBMIT_FEEDBACK helper tool in this session so the agent can report tool executions with empty, incorrect, or failed results. Replaces the stored block when provided; `enable` is required when the block is sent.
|
|
4781
4964
|
*/
|
|
@@ -23014,7 +23197,7 @@ type PostApiV31CustomToolkitsUpsertData = {
|
|
|
23014
23197
|
/**
|
|
23015
23198
|
* MCP server URL. Must use https.
|
|
23016
23199
|
*/
|
|
23017
|
-
|
|
23200
|
+
mcp_url: string;
|
|
23018
23201
|
/**
|
|
23019
23202
|
* Square PNG or JPEG logo, 256-1024px, max 3MB. Defaults to the Model Context Protocol logo.
|
|
23020
23203
|
*/
|
|
@@ -25860,6 +26043,17 @@ type PostApiV31ToolRouterSessionBySessionIdMountsByMountIdDeleteResponses = {
|
|
|
25860
26043
|
sandbox_mount_prefix: string;
|
|
25861
26044
|
};
|
|
25862
26045
|
};
|
|
26046
|
+
type GetApiV31ToolkitsChangelogData = {
|
|
26047
|
+
body?: never;
|
|
26048
|
+
path?: never;
|
|
26049
|
+
query?: {
|
|
26050
|
+
/**
|
|
26051
|
+
* [EXPERIMENTAL] Include the custom toolkits this user can use. Without it, only custom toolkits with access "all" are included.
|
|
26052
|
+
*/
|
|
26053
|
+
user_id?: string;
|
|
26054
|
+
};
|
|
26055
|
+
url: '/api/v3.1/toolkits/changelog';
|
|
26056
|
+
};
|
|
25863
26057
|
type GetApiV31ToolkitsChangelogResponses = {
|
|
25864
26058
|
/**
|
|
25865
26059
|
* Toolkits changelog retrieved successfully
|
|
@@ -26252,6 +26446,8 @@ type ToolkitListParamsGen = NonNullable<GetApiV31ToolkitsData['query']>;
|
|
|
26252
26446
|
interface ToolkitListParams extends ToolkitListParamsGen {}
|
|
26253
26447
|
type ToolkitRecommendScopesParamsGen = NonNullable<PostApiV31ToolkitsByToolkitSlugScopesRecommendedData['body']>;
|
|
26254
26448
|
interface ToolkitRecommendScopesParams extends ToolkitRecommendScopesParamsGen {}
|
|
26449
|
+
type ToolkitRetrieveChangelogParamsGen = NonNullable<GetApiV31ToolkitsChangelogData['query']>;
|
|
26450
|
+
interface ToolkitRetrieveChangelogParams extends ToolkitRetrieveChangelogParamsGen {}
|
|
26255
26451
|
type ToolkitRetrieveMultiParamsGen = NonNullable<PostApiV31ToolkitsMultiData['body']>;
|
|
26256
26452
|
interface ToolkitRetrieveMultiParams extends ToolkitRetrieveMultiParamsGen {}
|
|
26257
26453
|
type ToolkitRetrieveScopesGrantContextParamsGen = NonNullable<GetApiV31ToolkitsByToolkitSlugScopesGrantContextData['query']>;
|
|
@@ -26276,7 +26472,9 @@ interface Toolkits {
|
|
|
26276
26472
|
list(query?: ToolkitListParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitListResponse>;
|
|
26277
26473
|
recommendScopes(toolkitSlug: string, body: ToolkitRecommendScopesParams, options?: RequestOptions): APIPromise<ToolkitRecommendScopesResponse>;
|
|
26278
26474
|
retrieveCategories(options?: RequestOptions): APIPromise<ToolkitRetrieveCategoriesResponse>;
|
|
26279
|
-
retrieveChangelog(options?: RequestOptions
|
|
26475
|
+
retrieveChangelog(options?: RequestOptions & {
|
|
26476
|
+
query?: ToolkitRetrieveChangelogParams | null | undefined;
|
|
26477
|
+
}): APIPromise<ToolkitRetrieveChangelogResponse>;
|
|
26280
26478
|
retrieveMulti(body?: ToolkitRetrieveMultiParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitRetrieveMultiResponse>;
|
|
26281
26479
|
retrieveScopesGrantContext(toolkitSlug: string, query?: ToolkitRetrieveScopesGrantContextParams | null | undefined, options?: RequestOptions): APIPromise<ToolkitRetrieveScopesGrantContextResponse>;
|
|
26282
26480
|
}
|
|
@@ -26674,22 +26872,32 @@ interface ApiKeyRevocation {
|
|
|
26674
26872
|
declare const makeApiKeyRevocation: (client: Composio) => ApiKeyRevocation;
|
|
26675
26873
|
//#endregion
|
|
26676
26874
|
//#region src/compat/resources/custom.d.ts
|
|
26875
|
+
type CustomCreateToolkitParamsGen = NonNullable<PostApiV31CustomToolkitsData['body']>;
|
|
26876
|
+
interface CustomCreateToolkitParams extends CustomCreateToolkitParamsGen {}
|
|
26677
26877
|
type CustomDeleteToolkitParamsGen = NonNullable<DeleteApiV31CustomToolkitsBySlugData['query']>;
|
|
26678
26878
|
interface CustomDeleteToolkitParams extends CustomDeleteToolkitParamsGen {}
|
|
26679
26879
|
type CustomSyncParamsGen = NonNullable<PostApiV31CustomToolkitsSyncData['body']>;
|
|
26680
26880
|
interface CustomSyncParams extends CustomSyncParamsGen {}
|
|
26881
|
+
type CustomUpdateToolkitsParamsGen = NonNullable<PatchApiV31CustomToolkitsBySlugData['body']>;
|
|
26882
|
+
interface CustomUpdateToolkitsParams extends CustomUpdateToolkitsParamsGen {}
|
|
26681
26883
|
type CustomUpsertParamsGen = NonNullable<PostApiV31CustomToolkitsUpsertData['body']>;
|
|
26682
26884
|
interface CustomUpsertParams extends CustomUpsertParamsGen {}
|
|
26885
|
+
type CustomCreateToolkitResponseGen = PostApiV31CustomToolkitsResponses[200];
|
|
26886
|
+
interface CustomCreateToolkitResponse extends CustomCreateToolkitResponseGen {}
|
|
26683
26887
|
type CustomDeleteToolkitResponseGen = DeleteApiV31CustomToolkitsBySlugResponses[200];
|
|
26684
26888
|
interface CustomDeleteToolkitResponse extends CustomDeleteToolkitResponseGen {}
|
|
26685
26889
|
type CustomSyncResponseGen = PostApiV31CustomToolkitsSyncResponses[200];
|
|
26686
26890
|
interface CustomSyncResponse extends CustomSyncResponseGen {}
|
|
26891
|
+
type CustomUpdateToolkitsResponseGen = PatchApiV31CustomToolkitsBySlugResponses[200];
|
|
26892
|
+
interface CustomUpdateToolkitsResponse extends CustomUpdateToolkitsResponseGen {}
|
|
26687
26893
|
type CustomUpsertResponseGen = PostApiV31CustomToolkitsUpsertResponses[200];
|
|
26688
26894
|
interface CustomUpsertResponse extends CustomUpsertResponseGen {}
|
|
26689
26895
|
/** `client.custom`. */
|
|
26690
26896
|
interface Custom {
|
|
26897
|
+
createToolkit(body: CustomCreateToolkitParams, options?: RequestOptions): APIPromise<CustomCreateToolkitResponse>;
|
|
26691
26898
|
deleteToolkit(slug: string, query?: CustomDeleteToolkitParams | null | undefined, options?: RequestOptions): APIPromise<CustomDeleteToolkitResponse>;
|
|
26692
26899
|
sync(body: CustomSyncParams, options?: RequestOptions): APIPromise<CustomSyncResponse>;
|
|
26900
|
+
updateToolkits(slug: string, body?: CustomUpdateToolkitsParams | null | undefined, options?: RequestOptions): APIPromise<CustomUpdateToolkitsResponse>;
|
|
26693
26901
|
upsert(body: CustomUpsertParams, options?: RequestOptions): APIPromise<CustomUpsertResponse>;
|
|
26694
26902
|
}
|
|
26695
26903
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
@@ -27004,4 +27212,4 @@ interface Internal {
|
|
|
27004
27212
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
27005
27213
|
declare const makeInternal: (client: Composio) => Internal;
|
|
27006
27214
|
//#endregion
|
|
27007
|
-
export { SessionConfigsRetrieveResponse as $,
|
|
27215
|
+
export { SessionConfigsRetrieveResponse as $, SessionExecuteResponse as $i, GenerateURLResponse as $n, LinkCreateResponse as $r, WebhookEndpointListParams as $t, PermissionsResolveParams as A, Scope as Aa, ToolListResponse$1 as Ai, LogRetrieveToolExecutionResponse as An, AuthConfigUpdateParams as Ar, UsageRetrieveParams as At, makeCli as B, InternalServerError as Ba, ToolRouter as Bi, McpDeleteResponse as Bn, ToolkitRetrieveCategoriesResponse as Br, makeOwner as Bt, TriggerListResponse as C, makeFiles$1 as Ca, Files as Ci, UsageRetrieveParams$1 as Cn, AuthConfigCreateParams as Cr, SessionRetrieveInfoResponse as Ct, Consumer$1 as D, AuthOf as Da, ToolGetInputParams as Di, makeUsage$1 as Dn, AuthConfigListParams as Dr, OrgListResponse as Dt, makeTriggers as E, AuthMode as Ea, ToolExecuteResponse as Ei, UsageRetrieveSummaryResponse$1 as En, AuthConfigDeleteResponse as Er, OrgListParams as Et, CliCreateCodactFailureResponse as F, APIUserAbortError as Fa, ToolRetrieveRequiredScopesParams as Fi, McpCreateInstanceResponse as Fn, makeAuthConfigs as Fr, Project$1 as Ft, makeRealtime as G, RequestOptions as Ga, SessionConfigHistoryParams as Gi, McpRetrieveAppParams as Gn, ToolkitRetrieveParams as Gr, ProjectDeleteResponse as Gt, RealtimeAuthParams as H, PermissionDeniedError as Ha, Session$1 as Hi, McpListInstancesResponse as Hn, ToolkitRetrieveChangelogResponse as Hr, ProjectCreateParams as Ht, CliCreateSessionParams as I, AuthenticationError as Ia, ToolRetrieveRequiredScopesResponse as Ii, McpCreateParams as In, ToolkitListParams as Ir, ProjectListParams as It, EnvironmentMap as J, createFetchTransport as Ja, SessionCreateResponse as Ji, McpUpdateParams as Jn, ToolkitRetrieveScopesGrantContextResponse as Jr, ProjectRegenerateAPIKeyResponse as Jt, ClientOptions as K, FetchTransportDefaults as Ka, SessionConfigHistoryResponse as Ki, McpRetrieveAppResponse as Kn, ToolkitRetrieveResponse as Kr, ProjectListParams$1 as Kt, CliCreateSessionResponse as L, BadRequestError as La, ToolRetrieveResponse$1 as Li, McpCreateResponse as Ln, ToolkitListResponse as Lr, ProjectListResponse as Lt, makePermissions as M, APIConnectionTimeoutError as Ma, ToolProxyResponse as Mi, makeLogs$1 as Mn, AuthConfigUpdateStatusParams as Mr, UsageRetrieveSummaryParams as Mt, Cli as N, APIError as Na, ToolRetrieveEnumResponse as Ni, Mcp as Nn, AuthConfigUpdateStatusResponse as Nr, UsageRetrieveSummaryResponse as Nt, makeConsumer$1 as O, AutoCredentials as Oa, ToolGetInputResponse as Oi, LogCreateToolExecutionParams as On, AuthConfigListResponse as Or, makeOrg$1 as Ot, CliCreateCodactFailureParams as P, APIErrorBody as Pa, ToolRetrieveParams as Pi, McpCreateInstanceParams as Pn, AuthConfigs as Pr, makeUsage as Pt, SessionConfigsListResponse as Q, SessionExecuteParams as Qi, GenerateURLParams as Qn, LinkCreateParams as Qr, WebhookEndpointCreateResponse as Qt, CliGetSessionParams as R, ComposioError as Ra, Tools$1 as Ri, McpDeleteInstanceParams as Rn, ToolkitRecommendScopesParams as Rr, makeProject$1 as Rt, TriggerListParams as S, Files$1 as Sa, FileListResponse as Si, Usage$1 as Sn, makeTriggersTypes as Sr, Session as St, Triggers as T, AuthConstructors as Ta, ToolExecuteParams as Ti, UsageRetrieveSummaryParams$1 as Tn, AuthConfigDeleteParams as Tr, Org$1 as Tt, RealtimeAuthResponse as U, RateLimitError as Ua, SessionAttachParams as Ui, McpListParams as Un, ToolkitRetrieveMultiParams as Ur, ProjectCreateResponse as Ut, Realtime as V, NotFoundError as Va, makeToolRouter as Vi, McpListInstancesParams as Vn, ToolkitRetrieveChangelogParams as Vr, Project$2 as Vt, RealtimeCredentialsResponse as W, UnprocessableEntityError as Wa, SessionAttachResponse as Wi, McpListResponse as Wn, ToolkitRetrieveMultiResponse as Wr, ProjectDeleteParams as Wt, SessionConfigs as X, HeadersLike as Xa, SessionExecuteMetaParams as Xi, makeMcp as Xn, makeToolkits as Xr, makeProject$2 as Xt, LogLevel as Y, ClientIdentity as Ya, SessionDeleteResponse as Yi, McpUpdateResponse as Yn, Toolkits as Yr, ProjectRetrieveResponse as Yt, SessionConfigsListParams as Z, APIPromise as Za, SessionExecuteMetaResponse as Zi, Generate as Zn, Link as Zr, WebhookEndpointCreateParams as Zt, ToolListParams as _, FileCreateUploadURLResponse as _a, ConnectedAccounts as _i, WebhookSubscriptionUpdateResponse as _n, TriggersTypeListResponse as _r, ApiKeyRevocationCreateParams as _t, Consumer as a, SessionProxyExecuteResponse as aa, ConnectedAccountDeleteParams as ai, WebhookEndpointUpdateResponse as an, TriggerInstanceListActiveParams as ar, CustomCreateToolkitParams as at, Tools as b, FileListParams$1 as ba, FileCreatePresignedURLResponse as bi, Project$3 as bn, TriggersTypeRetrieveResponse as br, Auth as bt, ConsumerRetrieveConfigResponse as c, SessionSearchResponse as ca, ConnectedAccountListResponse as ci, WebhookSubscriptionCreateParams as cn, TriggerInstanceUpsertResponse as cr, CustomDeleteToolkitResponse as ct, ProjectResolveParams as d, SessionToolsParams as da, ConnectedAccountRefreshParams as di, WebhookSubscriptionListEventTypesResponse as dn, Manage as dr, CustomUpdateToolkitsParams as dt, SessionLinkParams as ea, makeLink as ei, WebhookEndpointListResponse as en, makeGenerate as er, makeSessionConfigs as et, ProjectResolveResponse as f, SessionToolsResponse as fa, ConnectedAccountRefreshResponse as fi, WebhookSubscriptionListParams as fn, ManageDeleteResponse as fr, CustomUpdateToolkitsResponse as ft, ToolListFieldsResponse as g, FileCreateUploadURLParams as ga, ConnectedAccountUpdateStatusResponse as gi, WebhookSubscriptionUpdateParams as gn, TriggersTypeListParams as gr, ApiKeyRevocation as gt, makeLogs as h, FileCreateDownloadURLResponse as ha, ConnectedAccountUpdateStatusParams as hi, WebhookSubscriptionRotateSecretResponse as hn, makeManage as hr, makeCustom as ht, makeOrg as i, SessionProxyExecuteParams as ia, ConnectedAccountCreateResponse as ii, WebhookEndpointUpdateParams as in, makeCustom$1 as ir, Custom as it, PermissionsResolveResponse as j, APIConnectionError as ja, ToolProxyParams as ji, Logs$1 as jn, AuthConfigUpdateResponse as jr, UsageRetrieveResponse as jt, Permissions as k, Credential as ka, ToolListParams$1 as ki, LogCreateToolExecutionResponse as kn, AuthConfigRetrieveResponse as kr, Usage as kt, makeConsumer as l, SessionToolkitsParams as la, ConnectedAccountPatchParams as li, WebhookSubscriptionCreateResponse as ln, TriggerInstances as lr, CustomSyncParams as lt, Logs as m, FileCreateDownloadURLParams as ma, ConnectedAccountRevokeResponse as mi, WebhookSubscriptionRetrieveResponse as mn, ManageUpdateResponse as mr, CustomUpsertResponse as mt, makeInternal as n, SessionPatchParams as na, ConnectedAccountCompleteAuthResponse as ni, WebhookEndpointReplaceResponse as nn, CustomCreateParams as nr, KeyringListTransferKeysResponse as nt, ConsumerListConnectedToolkitsParams as o, SessionRetrieveResponse as oa, ConnectedAccountDeleteResponse as oi, WebhookEndpoints as on, TriggerInstanceListActiveResponse as or, CustomCreateToolkitResponse as ot, makeProject as p, makeSession$1 as pa, ConnectedAccountRetrieveResponse as pi, WebhookSubscriptionListResponse as pn, ManageUpdateParams as pr, CustomUpsertParams as pt, Composio as q, Transport as qa, SessionCreateParams as qi, McpRetrieveResponse as qn, ToolkitRetrieveScopesGrantContextParams as qr, ProjectListResponse$1 as qt, Org as r, SessionPatchResponse as ra, ConnectedAccountCreateParams as ri, WebhookEndpointRetrieveResponse as rn, CustomCreateResponse as rr, makeKeyring as rt, ConsumerListConnectedToolkitsResponse as s, SessionSearchParams as sa, ConnectedAccountListParams as si, makeWebhookEndpoints as sn, TriggerInstanceUpsertParams as sr, CustomDeleteToolkitParams as st, Internal as t, SessionLinkResponse as ta, ConnectedAccountCompleteAuthParams as ti, WebhookEndpointReplaceParams as tn, Custom$1 as tr, Keyring as tt, Project as u, SessionToolkitsResponse as ua, ConnectedAccountPatchResponse as ui, WebhookSubscriptionDeleteResponse as un, makeTriggerInstances as ur, CustomSyncResponse as ut, ToolListResponse as v, FileDeleteParams as va, makeConnectedAccounts as vi, WebhookSubscriptions as vn, TriggersTypeRetrieveEnumResponse as vr, ApiKeyRevocationCreateResponse as vt, TriggerRetrieveResponse as w, Auth$1 as wa, makeFiles as wi, UsageRetrieveResponse$1 as wn, AuthConfigCreateResponse as wr, makeSession as wt, makeTools as x, FileListResponse$1 as xa, FileListParams as xi, makeProject$3 as xn, TriggersTypes as xr, makeAuth as xt, ToolRetrieveResponse as y, FileDeleteResponse as ya, FileCreatePresignedURLParams as yi, makeWebhookSubscriptions as yn, TriggersTypeRetrieveParams as yr, makeApiKeyRevocation as yt, CliGetSessionResponse as z, ConflictError as za, makeTools$1 as zi, McpDeleteInstanceResponse as zn, ToolkitRecommendScopesResponse as zr, Owner as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as PermissionsResolveParams, C as TriggerListResponse,
|
|
1
|
+
import { A as PermissionsResolveParams, C as TriggerListResponse, Da as AuthOf, F as CliCreateCodactFailureResponse, H as RealtimeAuthParams, I as CliCreateSessionParams, L as CliCreateSessionResponse, P as CliCreateCodactFailureParams, Pa as APIErrorBody, R as CliGetSessionParams, S as TriggerListParams, U as RealtimeAuthResponse, W as RealtimeCredentialsResponse, Xa as HeadersLike, _ as ToolListParams, c as ConsumerRetrieveConfigResponse, d as ProjectResolveParams, f as ProjectResolveResponse, g as ToolListFieldsResponse, j as PermissionsResolveResponse, o as ConsumerListConnectedToolkitsParams, s as ConsumerListConnectedToolkitsResponse, v as ToolListResponse, w as TriggerRetrieveResponse, y as ToolRetrieveResponse, z as CliGetSessionResponse } from "./_internal-NSeZ9Kgw.mjs";
|
|
2
2
|
import { Effect, Redacted } from "effect";
|
|
3
3
|
import "effect/http/HttpClient";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/custom/create-toolkit.d.ts
|
|
3
|
+
/** The 200 response of `POST /api/v3.1/custom/toolkits`, which `client.custom.createToolkit` answers with. */
|
|
4
|
+
declare const CustomCreateToolkitResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly slug: Schema.String;
|
|
6
|
+
readonly connect_link: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
7
|
+
readonly redirect_url: Schema.String;
|
|
8
|
+
readonly expires_at: Schema.String;
|
|
9
|
+
readonly connected_account_id: Schema.String;
|
|
10
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
|
|
11
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CustomCreateToolkitResponse };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/custom/create-toolkit.ts
|
|
4
|
+
/** The 200 response of `POST /api/v3.1/custom/toolkits`, which `client.custom.createToolkit` answers with. */
|
|
5
|
+
const CustomCreateToolkitResponse = Schema.StructWithRest(Schema.Struct({
|
|
6
|
+
"slug": Schema.String.annotate({
|
|
7
|
+
"description": "Slug of the created toolkit",
|
|
8
|
+
"examples": ["CUSTOM_NOTION_K7F2Q"]
|
|
9
|
+
}),
|
|
10
|
+
"connect_link": Schema.Union([Schema.StructWithRest(Schema.Struct({
|
|
11
|
+
"redirect_url": Schema.String.annotate({ "description": "Hosted connect page. Send the user here." }),
|
|
12
|
+
"expires_at": Schema.String.annotate({ "description": "When the link expires (ISO 8601)" }),
|
|
13
|
+
"connected_account_id": Schema.String.annotate({
|
|
14
|
+
"description": "Connected account for the user. It becomes ACTIVE once they connect.",
|
|
15
|
+
"format": "connectedAccountId"
|
|
16
|
+
})
|
|
17
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]), Schema.Null]).annotate({ "description": "Link for a private toolkit's user to connect. Null for shared or no-auth toolkits, or if the link could not be created. To retry, call POST /api/v3.1/connected_accounts/link with an auth config for the toolkit, creating one with POST /api/v3.1/auth_configs if needed." })
|
|
18
|
+
}), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CustomCreateToolkitResponse };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
//#region src/effect/generated/schemas/custom/update-toolkits.d.ts
|
|
3
|
+
/** The 200 response of `PATCH /api/v3.1/custom/toolkits/{slug}`, which `client.custom.updateToolkits` answers with. */
|
|
4
|
+
declare const CustomUpdateToolkitsResponse: Schema.StructWithRest<Schema.Struct<{
|
|
5
|
+
readonly success: Schema.Literal<true>;
|
|
6
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { CustomUpdateToolkitsResponse };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
|
|
3
|
+
//#region src/effect/generated/schemas/custom/update-toolkits.ts
|
|
4
|
+
/** The 200 response of `PATCH /api/v3.1/custom/toolkits/{slug}`, which `client.custom.updateToolkits` answers with. */
|
|
5
|
+
const CustomUpdateToolkitsResponse = Schema.StructWithRest(Schema.Struct({ "success": Schema.Literal(true).annotate({ "description": "The toolkit was updated" }) }), [Schema.Record(Schema.String, Schema.Json.annotate({ "expected": "JSON value" }))]);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { CustomUpdateToolkitsResponse };
|
|
@@ -2,7 +2,7 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
|
|
3
3
|
//#region src/effect/generated/schemas/tools/retrieve-enum.ts
|
|
4
4
|
/** The 200 response of `GET /api/v3.1/tools/enum`, which `client.tools.retrieveEnum` answers with. */
|
|
5
|
-
const ToolRetrieveEnumResponse = Schema.Array(Schema.String).annotate({ "description": "
|
|
5
|
+
const ToolRetrieveEnumResponse = Schema.Array(Schema.String).annotate({ "description": "Tool slugs" });
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ToolRetrieveEnumResponse };
|
|
@@ -7819,6 +7819,14 @@ declare const schemaLoaders: {
|
|
|
7819
7819
|
'connectedAccounts.updateStatus': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
7820
7820
|
readonly success: Schema.Boolean;
|
|
7821
7821
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
7822
|
+
'custom.createToolkit': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
7823
|
+
readonly slug: Schema.String;
|
|
7824
|
+
readonly connect_link: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
|
|
7825
|
+
readonly redirect_url: Schema.String;
|
|
7826
|
+
readonly expires_at: Schema.String;
|
|
7827
|
+
readonly connected_account_id: Schema.String;
|
|
7828
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>, Schema.Null]>;
|
|
7829
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
7822
7830
|
'custom.deleteToolkit': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
7823
7831
|
readonly slug: Schema.String;
|
|
7824
7832
|
readonly deleted: Schema.Literal<true>;
|
|
@@ -7831,6 +7839,9 @@ declare const schemaLoaders: {
|
|
|
7831
7839
|
readonly version: Schema.String;
|
|
7832
7840
|
readonly synced_count: Schema.Number;
|
|
7833
7841
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
7842
|
+
'custom.updateToolkits': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
7843
|
+
readonly success: Schema.Literal<true>;
|
|
7844
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
|
7834
7845
|
'custom.upsert': () => Promise<Schema.StructWithRest<Schema.Struct<{
|
|
7835
7846
|
readonly slug: Schema.String;
|
|
7836
7847
|
}>, readonly [Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
|
package/dist/effect/schemas.mjs
CHANGED
|
@@ -43,8 +43,10 @@ const schemaLoaders = {
|
|
|
43
43
|
"connectedAccounts.retrieve": async () => (await import("./schemas/connected-accounts/retrieve.mjs")).ConnectedAccountRetrieveResponse,
|
|
44
44
|
"connectedAccounts.revoke": async () => (await import("./schemas/connected-accounts/revoke.mjs")).ConnectedAccountRevokeResponse,
|
|
45
45
|
"connectedAccounts.updateStatus": async () => (await import("./schemas/connected-accounts/update-status.mjs")).ConnectedAccountUpdateStatusResponse,
|
|
46
|
+
"custom.createToolkit": async () => (await import("./schemas/custom/create-toolkit.mjs")).CustomCreateToolkitResponse,
|
|
46
47
|
"custom.deleteToolkit": async () => (await import("./schemas/custom/delete-toolkit.mjs")).CustomDeleteToolkitResponse,
|
|
47
48
|
"custom.sync": async () => (await import("./schemas/custom/sync.mjs")).CustomSyncResponse,
|
|
49
|
+
"custom.updateToolkits": async () => (await import("./schemas/custom/update-toolkits.mjs")).CustomUpdateToolkitsResponse,
|
|
48
50
|
"custom.upsert": async () => (await import("./schemas/custom/upsert.mjs")).CustomUpsertResponse,
|
|
49
51
|
"files.createPresignedURL": async () => (await import("./schemas/files/create-presigned-url.mjs")).FileCreatePresignedURLResponse,
|
|
50
52
|
"files.list": async () => (await import("./schemas/files/list.mjs")).FileListResponse,
|
package/dist/effect.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as SessionConfigsRetrieveResponse, $i as
|
|
2
|
-
import { n as VERSION, t as ENVIRONMENTS } from "./environments-
|
|
3
|
-
import { C as PermissionDeniedError, D as isComposioError, E as isAPIError, S as NotFoundError, T as UnprocessableEntityError, _ as ConfigurationError, a as Tracing, b as DecodeIssue, c as Credential, d as APIError, f as APIErrorFields, g as ComposioError, h as BadRequestError, i as RequestOptions, l as APIConnectionError, m as AuthenticationError, n as RawBodyRequestOptions, o as SchemaLoaders, p as APIStatusError, r as RawRequestOptions, s as Auth$2, u as APIConnectionTimeoutError, v as ConflictError, w as RateLimitError, x as InternalServerError, y as DecodeError } from "./_internal-
|
|
1
|
+
import { $ as SessionConfigsRetrieveResponse, $i as SessionExecuteResponse, $n as GenerateURLResponse, $r as LinkCreateResponse, $t as WebhookEndpointListParams, Aa as Scope, Ai as ToolListResponse, An as LogRetrieveToolExecutionResponse, Ar as AuthConfigUpdateParams, At as UsageRetrieveParams$1, Bn as McpDeleteResponse, Br as ToolkitRetrieveCategoriesResponse, Cn as UsageRetrieveParams, Cr as AuthConfigCreateParams, Ct as SessionRetrieveInfoResponse, Di as ToolGetInputParams, Dr as AuthConfigListParams, Dt as OrgListResponse, Ei as ToolExecuteResponse, En as UsageRetrieveSummaryResponse, Er as AuthConfigDeleteResponse, Et as OrgListParams, Fi as ToolRetrieveRequiredScopesParams, Fn as McpCreateInstanceResponse, Gi as SessionConfigHistoryParams, Gn as McpRetrieveAppParams, Gr as ToolkitRetrieveParams, Gt as ProjectDeleteResponse, Hn as McpListInstancesResponse, Hr as ToolkitRetrieveChangelogResponse, Ht as ProjectCreateParams, Ii as ToolRetrieveRequiredScopesResponse, In as McpCreateParams, Ir as ToolkitListParams, It as ProjectListParams$1, Ji as SessionCreateResponse, Jn as McpUpdateParams, Jr as ToolkitRetrieveScopesGrantContextResponse, Jt as ProjectRegenerateAPIKeyResponse, Ki as SessionConfigHistoryResponse, Kn as McpRetrieveAppResponse, Kr as ToolkitRetrieveResponse, Kt as ProjectListParams, Li as ToolRetrieveResponse, Ln as McpCreateResponse, Lr as ToolkitListResponse, Lt as ProjectListResponse$1, Mi as ToolProxyResponse, Mr as AuthConfigUpdateStatusParams, Mt as UsageRetrieveSummaryParams$1, Ni as ToolRetrieveEnumResponse, Nr as AuthConfigUpdateStatusResponse, Nt as UsageRetrieveSummaryResponse$1, Oa as AutoCredentials, Oi as ToolGetInputResponse, On as LogCreateToolExecutionParams, Or as AuthConfigListResponse, Pa as APIErrorBody, Pi as ToolRetrieveParams, Pn as McpCreateInstanceParams, Q as SessionConfigsListResponse, Qi as SessionExecuteParams, Qn as GenerateURLParams, Qr as LinkCreateParams, Qt as WebhookEndpointCreateResponse, Rn as McpDeleteInstanceParams, Rr as ToolkitRecommendScopesParams, Si as FileListResponse$1, Ta as AuthConstructors, Ti as ToolExecuteParams, Tn as UsageRetrieveSummaryParams, Tr as AuthConfigDeleteParams, Ui as SessionAttachParams, Un as McpListParams, Ur as ToolkitRetrieveMultiParams, Ut as ProjectCreateResponse, Vn as McpListInstancesParams, Vr as ToolkitRetrieveChangelogParams, Wi as SessionAttachResponse, Wn as McpListResponse, Wr as ToolkitRetrieveMultiResponse, Wt as ProjectDeleteParams, Xa as HeadersLike, Xi as SessionExecuteMetaParams, Ya as ClientIdentity, Yi as SessionDeleteResponse, Yn as McpUpdateResponse, Yt as ProjectRetrieveResponse, Z as SessionConfigsListParams, Zi as SessionExecuteMetaResponse, Zt as WebhookEndpointCreateParams, _a as FileCreateUploadURLResponse, _n as WebhookSubscriptionUpdateResponse, _r as TriggersTypeListResponse, _t as ApiKeyRevocationCreateParams, aa as SessionProxyExecuteResponse, ai as ConnectedAccountDeleteParams, an as WebhookEndpointUpdateResponse, ar as TriggerInstanceListActiveParams, at as CustomCreateToolkitParams, ba as FileListParams, bi as FileCreatePresignedURLResponse, br as TriggersTypeRetrieveResponse, ca as SessionSearchResponse, ci as ConnectedAccountListResponse, cn as WebhookSubscriptionCreateParams, cr as TriggerInstanceUpsertResponse, ct as CustomDeleteToolkitResponse, da as SessionToolsParams, di as ConnectedAccountRefreshParams, dn as WebhookSubscriptionListEventTypesResponse, dt as CustomUpdateToolkitsParams, ea as SessionLinkParams, en as WebhookEndpointListResponse, fa as SessionToolsResponse, fi as ConnectedAccountRefreshResponse, fn as WebhookSubscriptionListParams, fr as ManageDeleteResponse, ft as CustomUpdateToolkitsResponse, ga as FileCreateUploadURLParams, gi as ConnectedAccountUpdateStatusResponse, gn as WebhookSubscriptionUpdateParams, gr as TriggersTypeListParams, ha as FileCreateDownloadURLResponse, hi as ConnectedAccountUpdateStatusParams, hn as WebhookSubscriptionRotateSecretResponse, ia as SessionProxyExecuteParams, ii as ConnectedAccountCreateResponse, in as WebhookEndpointUpdateParams, ji as ToolProxyParams, jr as AuthConfigUpdateResponse, jt as UsageRetrieveResponse$1, ki as ToolListParams, kn as LogCreateToolExecutionResponse, kr as AuthConfigRetrieveResponse, la as SessionToolkitsParams, li as ConnectedAccountPatchParams, ln as WebhookSubscriptionCreateResponse, lt as CustomSyncParams, ma as FileCreateDownloadURLParams, mi as ConnectedAccountRevokeResponse, mn as WebhookSubscriptionRetrieveResponse, mr as ManageUpdateResponse, mt as CustomUpsertResponse, na as SessionPatchParams, ni as ConnectedAccountCompleteAuthResponse, nn as WebhookEndpointReplaceResponse, nr as CustomCreateParams, nt as KeyringListTransferKeysResponse, oa as SessionRetrieveResponse, oi as ConnectedAccountDeleteResponse, or as TriggerInstanceListActiveResponse, ot as CustomCreateToolkitResponse, pi as ConnectedAccountRetrieveResponse, pn as WebhookSubscriptionListResponse, pr as ManageUpdateParams, pt as CustomUpsertParams, qi as SessionCreateParams, qn as McpRetrieveResponse, qr as ToolkitRetrieveScopesGrantContextParams, qt as ProjectListResponse, ra as SessionPatchResponse, ri as ConnectedAccountCreateParams, rn as WebhookEndpointRetrieveResponse, rr as CustomCreateResponse, sa as SessionSearchParams, si as ConnectedAccountListParams, sr as TriggerInstanceUpsertParams, st as CustomDeleteToolkitParams, ta as SessionLinkResponse, ti as ConnectedAccountCompleteAuthParams, tn as WebhookEndpointReplaceParams, ua as SessionToolkitsResponse, ui as ConnectedAccountPatchResponse, un as WebhookSubscriptionDeleteResponse, ut as CustomSyncResponse, va as FileDeleteParams, vr as TriggersTypeRetrieveEnumResponse, vt as ApiKeyRevocationCreateResponse, wn as UsageRetrieveResponse, wr as AuthConfigCreateResponse, xa as FileListResponse, xi as FileListParams$1, ya as FileDeleteResponse, yi as FileCreatePresignedURLParams, yr as TriggersTypeRetrieveParams, zn as McpDeleteInstanceResponse, zr as ToolkitRecommendScopesResponse } from "./_internal-NSeZ9Kgw.mjs";
|
|
2
|
+
import { n as VERSION, t as ENVIRONMENTS } from "./environments-X99VPIhY.mjs";
|
|
3
|
+
import { C as PermissionDeniedError, D as isComposioError, E as isAPIError, S as NotFoundError, T as UnprocessableEntityError, _ as ConfigurationError, a as Tracing, b as DecodeIssue, c as Credential, d as APIError, f as APIErrorFields, g as ComposioError, h as BadRequestError, i as RequestOptions, l as APIConnectionError, m as AuthenticationError, n as RawBodyRequestOptions, o as SchemaLoaders, p as APIStatusError, r as RawRequestOptions, s as Auth$2, u as APIConnectionTimeoutError, v as ConflictError, w as RateLimitError, x as InternalServerError, y as DecodeError } from "./_internal-nTeziat-.mjs";
|
|
4
4
|
import { Context, Effect, Layer, Logger, Predicate, Stream } from "effect";
|
|
5
5
|
import * as HttpClient from "effect/http/HttpClient";
|
|
6
6
|
//#region src/effect/generated/resources/tool-router/session/files.d.ts
|
|
@@ -130,7 +130,9 @@ interface Toolkits {
|
|
|
130
130
|
readonly listStream: (query?: ToolkitListParams | null | undefined, options?: RequestOptions) => Stream.Stream<ToolkitListResponse['items'][number], ComposioError>;
|
|
131
131
|
readonly recommendScopes: (toolkitSlug: string, body: ToolkitRecommendScopesParams, options?: RequestOptions) => Effect.Effect<ToolkitRecommendScopesResponse, ComposioError>;
|
|
132
132
|
readonly retrieveCategories: (options?: RequestOptions) => Effect.Effect<ToolkitRetrieveCategoriesResponse, ComposioError>;
|
|
133
|
-
readonly retrieveChangelog: (options?: RequestOptions
|
|
133
|
+
readonly retrieveChangelog: (options?: RequestOptions & {
|
|
134
|
+
query?: ToolkitRetrieveChangelogParams | null | undefined;
|
|
135
|
+
}) => Effect.Effect<ToolkitRetrieveChangelogResponse, ComposioError>;
|
|
134
136
|
readonly retrieveMulti: (body?: ToolkitRetrieveMultiParams | null | undefined, options?: RequestOptions) => Effect.Effect<ToolkitRetrieveMultiResponse, ComposioError>;
|
|
135
137
|
/**
|
|
136
138
|
* Every item of `retrieveMulti`, page after page: the next page is requested with the
|
|
@@ -335,8 +337,10 @@ interface ApiKeyRevocation {
|
|
|
335
337
|
//#region src/effect/generated/resources/custom.d.ts
|
|
336
338
|
/** `client.custom` on the Effect surface. */
|
|
337
339
|
interface Custom {
|
|
340
|
+
readonly createToolkit: (body: CustomCreateToolkitParams, options?: RequestOptions) => Effect.Effect<CustomCreateToolkitResponse, ComposioError>;
|
|
338
341
|
readonly deleteToolkit: (slug: string, query?: CustomDeleteToolkitParams | null | undefined, options?: RequestOptions) => Effect.Effect<CustomDeleteToolkitResponse, ComposioError>;
|
|
339
342
|
readonly sync: (body: CustomSyncParams, options?: RequestOptions) => Effect.Effect<CustomSyncResponse, ComposioError>;
|
|
343
|
+
readonly updateToolkits: (slug: string, body?: CustomUpdateToolkitsParams | null | undefined, options?: RequestOptions) => Effect.Effect<CustomUpdateToolkitsResponse, ComposioError>;
|
|
340
344
|
readonly upsert: (body: CustomUpsertParams, options?: RequestOptions) => Effect.Effect<CustomUpsertResponse, ComposioError>;
|
|
341
345
|
}
|
|
342
346
|
//#endregion
|