@composio/client 2.0.0-rc.21 → 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 +65 -3
- package/dist/{api-key-revocation-BB3FTdR3.d.mts → _internal-Cw5Ug7qY.d.mts} +1032 -313
- package/dist/_internal-ttfqtnVb.d.mts +281 -0
- package/dist/effect/internal.d.mts +9 -0
- 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/{cli → _internal/cli}/create-session.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/create-session.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/get-session.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/get-session.mjs +3 -3
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/auth.mjs +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.d.mts +2 -2
- package/dist/effect/schemas/{cli → _internal/cli}/realtime/credentials.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/{logs → _internal/logs}/tools/list-fields.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list-fields.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/list.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/tools/retrieve.mjs +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/list.mjs +3 -3
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.d.mts +2 -2
- package/dist/effect/schemas/{logs → _internal/logs}/triggers/retrieve.mjs +3 -3
- package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.d.mts +2 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/list-connected-toolkits.mjs +2 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.d.mts +3 -2
- package/dist/effect/schemas/{org → _internal/org}/consumer/project/resolve.mjs +4 -3
- 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/auth-configs/list.d.mts +1 -0
- package/dist/effect/schemas/auth-configs/list.mjs +2 -1
- package/dist/effect/schemas/auth-configs/retrieve.d.mts +1 -0
- package/dist/effect/schemas/auth-configs/retrieve.mjs +2 -1
- package/dist/effect/schemas/components/block-reason.d.mts +12 -0
- package/dist/effect/schemas/components/block-reason.mjs +14 -0
- package/dist/effect/schemas/components/execute-blocked.d.mts +30 -0
- package/dist/effect/schemas/components/execute-blocked.mjs +24 -0
- package/dist/effect/schemas/components/execute-completed.d.mts +8 -0
- package/dist/effect/schemas/components/execute-completed.mjs +3 -1
- package/dist/effect/schemas/components/execute-failed.d.mts +8 -0
- package/dist/effect/schemas/components/execute-failed.mjs +3 -1
- package/dist/effect/schemas/components/hook-result.d.mts +13 -0
- package/dist/effect/schemas/components/hook-result.mjs +15 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.d.mts +24 -0
- package/dist/effect/schemas/components/proxy-execute-blocked.mjs +18 -0
- package/dist/effect/schemas/components/proxy-execute-completed.d.mts +8 -0
- package/dist/effect/schemas/components/proxy-execute-completed.mjs +3 -1
- package/dist/effect/schemas/components/session-create-response-config.d.mts +28 -0
- package/dist/effect/schemas/components/session-create-response-config.mjs +24 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.d.mts +28 -0
- package/dist/effect/schemas/components/tool-router-session-v31-config-history-list-response.mjs +24 -0
- package/dist/effect/schemas/session-configs/retrieve.d.mts +11 -0
- package/dist/effect/schemas/session-configs/retrieve.mjs +59 -23
- package/dist/effect/schemas/tool-router/session/attach.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/config-history.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/create.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.d.mts +40 -0
- package/dist/effect/schemas/tool-router/session/execute-meta.mjs +2 -0
- package/dist/effect/schemas/tool-router/session/execute.d.mts +40 -0
- package/dist/effect/schemas/tool-router/session/execute.mjs +2 -0
- package/dist/effect/schemas/tool-router/session/patch.d.mts +28 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.d.mts +26 -0
- package/dist/effect/schemas/tool-router/session/proxy-execute.mjs +6 -1
- package/dist/effect/schemas/tool-router/session/retrieve.d.mts +28 -0
- package/dist/effect/schemas/triggers-types/list.d.mts +1 -0
- package/dist/effect/schemas/triggers-types/list.mjs +5 -1
- package/dist/effect/schemas/triggers-types/retrieve.d.mts +1 -0
- package/dist/effect/schemas/triggers-types/retrieve.mjs +5 -1
- package/dist/effect/schemas.d.mts +468 -197
- package/dist/effect/schemas.mjs +14 -13
- package/dist/effect.d.mts +9 -260
- package/dist/effect.mjs +134 -112
- package/dist/{environments-BXSnADKo.d.mts → environments-C_HPMP7r.d.mts} +1 -1
- package/dist/{environments-CmxYUUsW.mjs → environments-QSJiwtIM.mjs} +18 -10
- package/dist/{generated-operations-BNRn8az6.mjs → generated-operations-B3PjeXjl.mjs} +48 -16
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +4 -4
- package/dist/internal.d.mts +9 -0
- package/dist/resources/_internal/_internal.d.mts +2 -0
- package/dist/resources/_internal/_internal.mjs +16 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -0
- package/dist/resources/{cli → _internal/cli}/cli.mjs +5 -5
- package/dist/resources/_internal/cli/realtime.d.mts +2 -0
- package/dist/resources/{cli → _internal/cli}/realtime.mjs +4 -4
- package/dist/resources/_internal/cli.d.mts +2 -0
- package/dist/resources/_internal/cli.mjs +1 -0
- 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/consumer.mjs +1 -0
- package/dist/resources/_internal/logs/logs.d.mts +2 -0
- package/dist/resources/_internal/logs/logs.mjs +12 -0
- package/dist/resources/_internal/logs/tools.d.mts +2 -0
- package/dist/resources/{logs → _internal/logs}/tools.mjs +5 -5
- package/dist/resources/_internal/logs/triggers.d.mts +2 -0
- package/dist/resources/{logs → _internal/logs}/triggers.mjs +4 -4
- package/dist/resources/_internal/logs.d.mts +2 -0
- package/dist/resources/_internal/logs.mjs +1 -0
- package/dist/resources/_internal/org/consumer/consumer.d.mts +2 -0
- package/dist/resources/{org → _internal/org}/consumer/consumer.mjs +7 -3
- package/dist/resources/_internal/org/consumer/project.d.mts +2 -0
- package/dist/resources/{org → _internal/org}/consumer/project.mjs +3 -3
- package/dist/resources/_internal/org/consumer.d.mts +2 -0
- package/dist/resources/_internal/org/consumer.mjs +1 -0
- package/dist/resources/_internal/org/org.d.mts +2 -0
- package/dist/resources/_internal/org/org.mjs +8 -0
- package/dist/resources/_internal/org.d.mts +2 -0
- package/dist/resources/_internal/org.mjs +1 -0
- package/dist/resources/_internal.d.mts +2 -0
- package/dist/resources/_internal.mjs +1 -0
- 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 -5
- package/dist/resources/logs.d.mts +2 -2
- 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 -5
- 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 +17 -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/realtime.d.mts +0 -2
- package/dist/resources/cli.d.mts +0 -2
- package/dist/resources/logs/tools.d.mts +0 -2
- package/dist/resources/logs/triggers.d.mts +0 -2
- package/dist/resources/org/clanker.d.mts +0 -2
- package/dist/resources/org/clanker.mjs +0 -14
- package/dist/resources/org/consumer/consumer.d.mts +0 -2
- package/dist/resources/org/consumer/project.d.mts +0 -2
- package/dist/resources/org/consumer.d.mts +0 -2
- /package/dist/{resources/cli.mjs → effect/internal.mjs} +0 -0
- /package/dist/{resources/org/consumer.mjs → internal.mjs} +0 -0
|
@@ -1,3 +1,108 @@
|
|
|
1
|
+
//#region src/compat/api-promise.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Stainless-compatible `APIPromise`.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors composio-base-ts `src/core/api-promise.ts`: a `Promise` subclass
|
|
6
|
+
* with a no-op executor whose `then`/`catch`/`finally` are overridden to
|
|
7
|
+
* parse lazily. The laziness matters — `.asResponse()` must resolve with the
|
|
8
|
+
* raw `Response` on HTTP error statuses without ever materializing (and thus
|
|
9
|
+
* leaving unhandled) the rejected parsed promise.
|
|
10
|
+
*/
|
|
11
|
+
declare class APIPromise<T> extends Promise<T> {
|
|
12
|
+
private readonly exchangePromise;
|
|
13
|
+
private readonly parseResponse;
|
|
14
|
+
private parsedPromise;
|
|
15
|
+
constructor(exchangePromise: Promise<Response>, parseResponse?: (response: Response) => Promise<T>);
|
|
16
|
+
_thenUnwrap<U>(transform: (data: T, response: Response) => U): APIPromise<U>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets the raw `Response` instead of parsing the body. Resolves (never
|
|
19
|
+
* throws an `APIError`) on HTTP error statuses; rejects only on
|
|
20
|
+
* connection/abort failures.
|
|
21
|
+
*/
|
|
22
|
+
asResponse(): Promise<Response>;
|
|
23
|
+
/** Gets the parsed data plus the raw `Response`. */
|
|
24
|
+
withResponse(): Promise<{
|
|
25
|
+
data: T;
|
|
26
|
+
response: Response;
|
|
27
|
+
}>;
|
|
28
|
+
private parse;
|
|
29
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
30
|
+
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
31
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/compat/headers.d.ts
|
|
35
|
+
type HeaderValue = string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The internal nullable representation used by Stainless. The symbol that
|
|
38
|
+
* brands its concrete type is private, so compatibility is expressed through
|
|
39
|
+
* the two public data fields the representation carries.
|
|
40
|
+
*/
|
|
41
|
+
interface NullableHeadersLike {
|
|
42
|
+
readonly values: Headers;
|
|
43
|
+
readonly nulls: ReadonlySet<string>;
|
|
44
|
+
}
|
|
45
|
+
/** Header inputs accepted by the published Stainless client. */
|
|
46
|
+
type HeadersLike = Headers | ReadonlyArray<ReadonlyArray<HeaderValue | readonly HeaderValue[]>> | Record<string, HeaderValue | readonly HeaderValue[]> | NullableHeadersLike | null | undefined;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/compat/identity.d.ts
|
|
49
|
+
/**
|
|
50
|
+
* The product calling through this client, such as `@composio/core` or
|
|
51
|
+
* `@composio/cli`. It owns the product headers: once a client has one,
|
|
52
|
+
* `defaultHeaders` and per-call `headers` can no longer carry them.
|
|
53
|
+
*/
|
|
54
|
+
interface ClientIdentity {
|
|
55
|
+
/** The calling product, such as `@composio/core` or `@composio/cli`. Sent as `x-client-provenance`. */
|
|
56
|
+
readonly product: string;
|
|
57
|
+
/** The calling product's version. Sent as `x-client-version` and `x-sdk-version`. */
|
|
58
|
+
readonly version: string;
|
|
59
|
+
/** Legacy label still read by the platform, sent as `x-source`. */
|
|
60
|
+
readonly source?: string | undefined;
|
|
61
|
+
/** Legacy label still read by the platform, sent as `x-framework`. */
|
|
62
|
+
readonly framework?: string | undefined;
|
|
63
|
+
/** Legacy label still read by the platform, sent as `x-runtime`. Defaults to the detected runtime. */
|
|
64
|
+
readonly runtime?: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/compat/transport.d.ts
|
|
68
|
+
/**
|
|
69
|
+
* Sends one prepared HTTP request without retries or redirect handling.
|
|
70
|
+
* Implementations should observe `request.signal` to stop their underlying I/O;
|
|
71
|
+
* the client still settles the public request promptly if they do not.
|
|
72
|
+
*/
|
|
73
|
+
interface Transport {
|
|
74
|
+
send(request: Request): Promise<Response>;
|
|
75
|
+
}
|
|
76
|
+
type KernelOwnedRequestInitKey = 'method' | 'headers' | 'body' | 'signal' | 'redirect';
|
|
77
|
+
/** Fetch defaults that cannot replace fields owned by the request kernel. */
|
|
78
|
+
type FetchTransportDefaults<Extra extends object = object> = Omit<RequestInit & Extra, KernelOwnedRequestInitKey>;
|
|
79
|
+
type FetchImplementation<Extra extends object> = (input: RequestInfo | URL, init?: FetchTransportDefaults<Extra>) => Promise<Response>;
|
|
80
|
+
/** Creates a transport backed by the supplied or global fetch function. */
|
|
81
|
+
declare const createFetchTransport: <Extra extends object = object>(options?: {
|
|
82
|
+
fetch?: FetchImplementation<Extra> | undefined;
|
|
83
|
+
defaults?: FetchTransportDefaults<Extra> | undefined;
|
|
84
|
+
}) => Transport;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/compat/request.d.ts
|
|
87
|
+
/**
|
|
88
|
+
* Per-request options bag — the Stainless last-positional-argument contract.
|
|
89
|
+
* Downstream derives this shape structurally (`Parameters<method>[last]`);
|
|
90
|
+
* `signal` support is load-bearing (abort → `APIUserAbortError`).
|
|
91
|
+
*/
|
|
92
|
+
interface RequestOptions {
|
|
93
|
+
headers?: HeadersLike;
|
|
94
|
+
maxRetries?: number;
|
|
95
|
+
timeout?: number;
|
|
96
|
+
signal?: AbortSignal | null;
|
|
97
|
+
/**
|
|
98
|
+
* Stainless options-bag compatibility: sent as the `Idempotency-Key`
|
|
99
|
+
* request header. Server-side replay/dedup for Composio's write endpoints
|
|
100
|
+
* is not guaranteed yet — callers who cannot tolerate a double execution
|
|
101
|
+
* should still set `maxRetries: 0` on writes.
|
|
102
|
+
*/
|
|
103
|
+
idempotencyKey?: string;
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
1
106
|
//#region src/generated/types.gen.d.ts
|
|
2
107
|
type Error$1 = {
|
|
3
108
|
error: {
|
|
@@ -462,6 +567,67 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
462
567
|
*/
|
|
463
568
|
enable: boolean;
|
|
464
569
|
};
|
|
570
|
+
/**
|
|
571
|
+
* Hooks that run on this session's tool calls.
|
|
572
|
+
*/
|
|
573
|
+
hooks?: Array<{
|
|
574
|
+
type: 'before_execute';
|
|
575
|
+
/**
|
|
576
|
+
* Unique within the session. Shows up in results and logs.
|
|
577
|
+
*/
|
|
578
|
+
id: string;
|
|
579
|
+
/**
|
|
580
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
581
|
+
*/
|
|
582
|
+
name?: string;
|
|
583
|
+
/**
|
|
584
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
585
|
+
*/
|
|
586
|
+
applies_to: 'all' | {
|
|
587
|
+
/**
|
|
588
|
+
* Toolkit slugs
|
|
589
|
+
*/
|
|
590
|
+
toolkits: Array<string>;
|
|
591
|
+
};
|
|
592
|
+
handler: {
|
|
593
|
+
type: 'condition_check';
|
|
594
|
+
/**
|
|
595
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
596
|
+
*/
|
|
597
|
+
condition: string;
|
|
598
|
+
action: 'block';
|
|
599
|
+
};
|
|
600
|
+
} | {
|
|
601
|
+
type: 'after_execute';
|
|
602
|
+
/**
|
|
603
|
+
* Unique within the session. Shows up in results and logs.
|
|
604
|
+
*/
|
|
605
|
+
id: string;
|
|
606
|
+
/**
|
|
607
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
608
|
+
*/
|
|
609
|
+
name?: string;
|
|
610
|
+
/**
|
|
611
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
612
|
+
*/
|
|
613
|
+
applies_to: 'all' | {
|
|
614
|
+
/**
|
|
615
|
+
* Toolkit slugs
|
|
616
|
+
*/
|
|
617
|
+
toolkits: Array<string>;
|
|
618
|
+
};
|
|
619
|
+
handler: {
|
|
620
|
+
type: 'condition_check';
|
|
621
|
+
/**
|
|
622
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
623
|
+
*/
|
|
624
|
+
condition: string;
|
|
625
|
+
action: 'block';
|
|
626
|
+
} | {
|
|
627
|
+
type: 'prompt_injection_check';
|
|
628
|
+
action: 'block';
|
|
629
|
+
};
|
|
630
|
+
}>;
|
|
465
631
|
/**
|
|
466
632
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
467
633
|
*/
|
|
@@ -500,6 +666,26 @@ type ToolRouterSessionV31ConfigHistoryListResponse = {
|
|
|
500
666
|
current_page: number;
|
|
501
667
|
total_items: number;
|
|
502
668
|
};
|
|
669
|
+
type HookResult = {
|
|
670
|
+
/**
|
|
671
|
+
* The hook id
|
|
672
|
+
*/
|
|
673
|
+
id: string;
|
|
674
|
+
status: 'evaluated';
|
|
675
|
+
/**
|
|
676
|
+
* What the hook decided
|
|
677
|
+
*/
|
|
678
|
+
outcome: 'continue' | 'block';
|
|
679
|
+
} | {
|
|
680
|
+
/**
|
|
681
|
+
* The hook id
|
|
682
|
+
*/
|
|
683
|
+
id: string;
|
|
684
|
+
/**
|
|
685
|
+
* The hook could not be evaluated
|
|
686
|
+
*/
|
|
687
|
+
status: 'unavailable';
|
|
688
|
+
};
|
|
503
689
|
type ExecuteCompleted = {
|
|
504
690
|
/**
|
|
505
691
|
* The tool ran and succeeded
|
|
@@ -536,6 +722,10 @@ type ExecuteCompleted = {
|
|
|
536
722
|
* Unique identifier for the execution log
|
|
537
723
|
*/
|
|
538
724
|
log_id: string;
|
|
725
|
+
/**
|
|
726
|
+
* Every session hook that applied to this call. Omitted when none applied.
|
|
727
|
+
*/
|
|
728
|
+
hook_results?: Array<HookResult>;
|
|
539
729
|
};
|
|
540
730
|
type ExecuteFailed = {
|
|
541
731
|
/**
|
|
@@ -573,6 +763,59 @@ type ExecuteFailed = {
|
|
|
573
763
|
* Unique identifier for the execution log
|
|
574
764
|
*/
|
|
575
765
|
log_id: string;
|
|
766
|
+
/**
|
|
767
|
+
* Every session hook that applied to this call. Omitted when none applied.
|
|
768
|
+
*/
|
|
769
|
+
hook_results?: Array<HookResult>;
|
|
770
|
+
};
|
|
771
|
+
type BlockReason = {
|
|
772
|
+
/**
|
|
773
|
+
* A before_execute hook stopped the call. The tool did not run.
|
|
774
|
+
*/
|
|
775
|
+
type: 'request_blocked';
|
|
776
|
+
hook_id: string;
|
|
777
|
+
} | {
|
|
778
|
+
/**
|
|
779
|
+
* An after_execute hook stopped the call. The tool ran; its response was withheld.
|
|
780
|
+
*/
|
|
781
|
+
type: 'response_blocked';
|
|
782
|
+
hook_id: string;
|
|
783
|
+
};
|
|
784
|
+
type ExecuteBlocked = {
|
|
785
|
+
/**
|
|
786
|
+
* A session hook stopped the call
|
|
787
|
+
*/
|
|
788
|
+
result_type: 'blocked';
|
|
789
|
+
reason: BlockReason;
|
|
790
|
+
/**
|
|
791
|
+
* A message for the agent. It includes the hook's name, when it has one; the hook id is in `reason`.
|
|
792
|
+
*/
|
|
793
|
+
message: string;
|
|
794
|
+
/**
|
|
795
|
+
* The execution log ID. Only set when the tool ran and its response was blocked.
|
|
796
|
+
*/
|
|
797
|
+
log_id?: string;
|
|
798
|
+
/**
|
|
799
|
+
* Returned only when the session enables instant.return_instant_charge and a charge is available. Only set when the tool ran and its response was blocked.
|
|
800
|
+
*/
|
|
801
|
+
instant_charge?: {
|
|
802
|
+
/**
|
|
803
|
+
* Instant charge in USD as an exact non-negative decimal string, with up to 12 fractional digits.
|
|
804
|
+
*/
|
|
805
|
+
amount: string;
|
|
806
|
+
/**
|
|
807
|
+
* Currency of the instant charge. Always USD.
|
|
808
|
+
*/
|
|
809
|
+
currency: 'USD';
|
|
810
|
+
/**
|
|
811
|
+
* Entity charging for instant usage. Always composio.
|
|
812
|
+
*/
|
|
813
|
+
charged_by: 'composio';
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* Every session hook that applied to this call. Omitted when none applied.
|
|
817
|
+
*/
|
|
818
|
+
hook_results?: Array<HookResult>;
|
|
576
819
|
};
|
|
577
820
|
/**
|
|
578
821
|
* A question for the user, in the shape of an MCP `elicitation/create` request in form mode (https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation). Show `message` to the user and collect an answer that matches `requested_schema`.
|
|
@@ -667,11 +910,19 @@ type ComposioManagedAuthConfigCreate = {
|
|
|
667
910
|
*/
|
|
668
911
|
restrict_to_following_tools?: Array<string>;
|
|
669
912
|
/**
|
|
670
|
-
*
|
|
913
|
+
* Shared credentials that will be inherited by all connected accounts using this auth config. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way.
|
|
914
|
+
*
|
|
915
|
+
* @deprecated
|
|
671
916
|
*/
|
|
672
917
|
shared_credentials?: {
|
|
673
918
|
[key: string]: unknown;
|
|
674
919
|
};
|
|
920
|
+
/**
|
|
921
|
+
* Connection field values inherited by every connected account created under this auth config (for example a region or subdomain). Non-secret values pre-fill the hosted Connect Link form; secret values are redacted in responses and never sent to the end user.
|
|
922
|
+
*/
|
|
923
|
+
shared_connection_fields?: {
|
|
924
|
+
[key: string]: unknown;
|
|
925
|
+
};
|
|
675
926
|
/**
|
|
676
927
|
* Whether this auth config is enabled for tool router
|
|
677
928
|
*/
|
|
@@ -730,11 +981,19 @@ type CustomAuthConfigCreate = {
|
|
|
730
981
|
tools_for_connected_account_creation?: Array<string>;
|
|
731
982
|
};
|
|
732
983
|
/**
|
|
733
|
-
*
|
|
984
|
+
* Shared credentials that will be inherited by all connected accounts using this auth config. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way.
|
|
985
|
+
*
|
|
986
|
+
* @deprecated
|
|
734
987
|
*/
|
|
735
988
|
shared_credentials?: {
|
|
736
989
|
[key: string]: unknown;
|
|
737
990
|
};
|
|
991
|
+
/**
|
|
992
|
+
* Connection field values inherited by every connected account created under this auth config (for example a region or subdomain). Non-secret values pre-fill the hosted Connect Link form; secret values are redacted in responses and never sent to the end user.
|
|
993
|
+
*/
|
|
994
|
+
shared_connection_fields?: {
|
|
995
|
+
[key: string]: unknown;
|
|
996
|
+
};
|
|
738
997
|
/**
|
|
739
998
|
* Whether this auth config is enabled for tool router
|
|
740
999
|
*/
|
|
@@ -798,11 +1057,19 @@ type CustomAuthConfigUpdate = {
|
|
|
798
1057
|
tools_available_for_execution?: Array<string>;
|
|
799
1058
|
};
|
|
800
1059
|
/**
|
|
801
|
-
* Shared credentials inherited by all connected accounts using this auth config. Secret values are redacted in responses, so provide the real values when updating; omit this field to leave them unchanged.
|
|
1060
|
+
* Shared credentials inherited by all connected accounts using this auth config. Secret values are redacted in responses, so provide the real values when updating; omit this field to leave them unchanged. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way.
|
|
1061
|
+
*
|
|
1062
|
+
* @deprecated
|
|
802
1063
|
*/
|
|
803
1064
|
shared_credentials?: {
|
|
804
1065
|
[key: string]: unknown;
|
|
805
1066
|
};
|
|
1067
|
+
/**
|
|
1068
|
+
* Connection field values inherited by every connected account created under this auth config. Secret values are redacted in responses, so provide the real values when updating; omit this field to leave them unchanged.
|
|
1069
|
+
*/
|
|
1070
|
+
shared_connection_fields?: {
|
|
1071
|
+
[key: string]: unknown;
|
|
1072
|
+
};
|
|
806
1073
|
/**
|
|
807
1074
|
* Whether this auth config is enabled for tool router
|
|
808
1075
|
*/
|
|
@@ -848,11 +1115,19 @@ type DefaultAuthConfigUpdate = {
|
|
|
848
1115
|
tools_available_for_execution?: Array<string>;
|
|
849
1116
|
};
|
|
850
1117
|
/**
|
|
851
|
-
* Shared credentials inherited by all connected accounts using this auth config. Secret values are redacted in responses, so provide the real values when updating; omit this field to leave them unchanged.
|
|
1118
|
+
* Shared credentials inherited by all connected accounts using this auth config. Secret values are redacted in responses, so provide the real values when updating; omit this field to leave them unchanged. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way.
|
|
1119
|
+
*
|
|
1120
|
+
* @deprecated
|
|
852
1121
|
*/
|
|
853
1122
|
shared_credentials?: {
|
|
854
1123
|
[key: string]: unknown;
|
|
855
1124
|
};
|
|
1125
|
+
/**
|
|
1126
|
+
* Connection field values inherited by every connected account created under this auth config. Secret values are redacted in responses, so provide the real values when updating; omit this field to leave them unchanged.
|
|
1127
|
+
*/
|
|
1128
|
+
shared_connection_fields?: {
|
|
1129
|
+
[key: string]: unknown;
|
|
1130
|
+
};
|
|
856
1131
|
/**
|
|
857
1132
|
* Whether this auth config is enabled for tool router
|
|
858
1133
|
*/
|
|
@@ -963,6 +1238,25 @@ type ProxyExecuteCompleted = {
|
|
|
963
1238
|
headers?: {
|
|
964
1239
|
[key: string]: string;
|
|
965
1240
|
};
|
|
1241
|
+
/**
|
|
1242
|
+
* Every session hook that applied to this request. Omitted when none applied.
|
|
1243
|
+
*/
|
|
1244
|
+
hook_results?: Array<HookResult>;
|
|
1245
|
+
};
|
|
1246
|
+
type ProxyExecuteBlocked = {
|
|
1247
|
+
/**
|
|
1248
|
+
* A session hook stopped the call
|
|
1249
|
+
*/
|
|
1250
|
+
result_type: 'blocked';
|
|
1251
|
+
reason: BlockReason;
|
|
1252
|
+
/**
|
|
1253
|
+
* A message for the agent. It includes the hook's name, when it has one; the hook id is in `reason`.
|
|
1254
|
+
*/
|
|
1255
|
+
message: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Every session hook that applied to this call. Omitted when none applied.
|
|
1258
|
+
*/
|
|
1259
|
+
hook_results?: Array<HookResult>;
|
|
966
1260
|
};
|
|
967
1261
|
type ToolRouterToolkitsListResponse = {
|
|
968
1262
|
items: Array<{
|
|
@@ -1061,10 +1355,6 @@ type GetApiV31SessionConfigsData = {
|
|
|
1061
1355
|
* Maximum number of configs to return, from 1 to 100.
|
|
1062
1356
|
*/
|
|
1063
1357
|
limit?: number;
|
|
1064
|
-
/**
|
|
1065
|
-
* Case-insensitive substring match against the config name.
|
|
1066
|
-
*/
|
|
1067
|
-
search?: string;
|
|
1068
1358
|
/**
|
|
1069
1359
|
* Return archived configs when true. Defaults to active configs only.
|
|
1070
1360
|
*/
|
|
@@ -1130,29 +1420,67 @@ type GetApiV31SessionConfigsBySessionConfigIdResponses = {
|
|
|
1130
1420
|
*/
|
|
1131
1421
|
archived: boolean;
|
|
1132
1422
|
/**
|
|
1133
|
-
* Stored Session access policy using the same enable/disable wire shape accepted on create and update.
|
|
1423
|
+
* Stored Session access policy using the same enable/disable wire shape accepted on create and update, with any require_approval lists.
|
|
1134
1424
|
*/
|
|
1135
1425
|
config: {
|
|
1136
1426
|
toolkits?: {
|
|
1137
1427
|
enable: Array<string>;
|
|
1428
|
+
/**
|
|
1429
|
+
* What in this entry needs the user's approval before it runs.
|
|
1430
|
+
*/
|
|
1431
|
+
require_approval?: Array<string>;
|
|
1138
1432
|
} | {
|
|
1139
1433
|
disable: Array<string>;
|
|
1434
|
+
/**
|
|
1435
|
+
* What in this entry needs the user's approval before it runs.
|
|
1436
|
+
*/
|
|
1437
|
+
require_approval?: Array<string>;
|
|
1438
|
+
} | {
|
|
1439
|
+
/**
|
|
1440
|
+
* What in this entry needs the user's approval before it runs.
|
|
1441
|
+
*/
|
|
1442
|
+
require_approval: Array<string>;
|
|
1140
1443
|
};
|
|
1141
1444
|
tools?: {
|
|
1142
1445
|
[key: string]: {
|
|
1143
1446
|
enable: Array<string>;
|
|
1447
|
+
/**
|
|
1448
|
+
* What in this entry needs the user's approval before it runs.
|
|
1449
|
+
*/
|
|
1450
|
+
require_approval?: Array<string>;
|
|
1144
1451
|
} | {
|
|
1145
1452
|
disable: Array<string>;
|
|
1453
|
+
/**
|
|
1454
|
+
* What in this entry needs the user's approval before it runs.
|
|
1455
|
+
*/
|
|
1456
|
+
require_approval?: Array<string>;
|
|
1146
1457
|
} | {
|
|
1147
1458
|
tags: {
|
|
1148
1459
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1149
1460
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1461
|
+
/**
|
|
1462
|
+
* Tags whose tools need the user's approval before they run.
|
|
1463
|
+
*/
|
|
1464
|
+
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1150
1465
|
};
|
|
1466
|
+
/**
|
|
1467
|
+
* What in this entry needs the user's approval before it runs.
|
|
1468
|
+
*/
|
|
1469
|
+
require_approval?: Array<string>;
|
|
1470
|
+
} | {
|
|
1471
|
+
/**
|
|
1472
|
+
* What in this entry needs the user's approval before it runs.
|
|
1473
|
+
*/
|
|
1474
|
+
require_approval: Array<string>;
|
|
1151
1475
|
};
|
|
1152
1476
|
};
|
|
1153
1477
|
tags?: {
|
|
1154
1478
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1155
1479
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Tags whose tools need the user's approval before they run.
|
|
1482
|
+
*/
|
|
1483
|
+
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1156
1484
|
};
|
|
1157
1485
|
};
|
|
1158
1486
|
/**
|
|
@@ -1228,17 +1556,59 @@ type PostApiV31ApiKeyRevocationResponses = {
|
|
|
1228
1556
|
received: boolean;
|
|
1229
1557
|
};
|
|
1230
1558
|
};
|
|
1231
|
-
type
|
|
1559
|
+
type PostApiV31ConsumerPermissionsResolveData = {
|
|
1232
1560
|
body?: {
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
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
|
+
};
|
|
1601
|
+
type PostApiV31LogsToolExecutionData = {
|
|
1602
|
+
body?: {
|
|
1603
|
+
limit?: number;
|
|
1604
|
+
cursor?: string | null;
|
|
1605
|
+
filters?: Array<{
|
|
1606
|
+
field: 'tool_slug' | 'toolkit_slug' | 'connected_account_id' | 'auth_config_id' | 'status' | 'user_id' | 'session_id' | 'sandbox_id' | 'request_id' | 'log_id';
|
|
1607
|
+
operator: '==' | '!=' | 'contains' | 'not_contains';
|
|
1608
|
+
value: string;
|
|
1609
|
+
}>;
|
|
1610
|
+
time_range?: {
|
|
1611
|
+
/**
|
|
1242
1612
|
* Start time in epoch milliseconds
|
|
1243
1613
|
*/
|
|
1244
1614
|
from: number;
|
|
@@ -2021,7 +2391,7 @@ type PostApiV31ToolsExecuteProxyData = {
|
|
|
2021
2391
|
*/
|
|
2022
2392
|
connected_account_id?: string;
|
|
2023
2393
|
/**
|
|
2024
|
-
* 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.
|
|
2025
2395
|
*/
|
|
2026
2396
|
user_id?: string;
|
|
2027
2397
|
/**
|
|
@@ -2565,30 +2935,23 @@ type PostApiV31ToolsScopesRequiredResponses = {
|
|
|
2565
2935
|
}>;
|
|
2566
2936
|
};
|
|
2567
2937
|
};
|
|
2568
|
-
type
|
|
2569
|
-
body?: {
|
|
2570
|
-
/**
|
|
2571
|
-
* Email of the human who will claim the clanker
|
|
2572
|
-
*/
|
|
2573
|
-
human_email: string;
|
|
2574
|
-
};
|
|
2575
|
-
path?: never;
|
|
2576
|
-
query?: never;
|
|
2577
|
-
url: '/api/v3.1/org/clanker/create_claim';
|
|
2578
|
-
};
|
|
2579
|
-
type PostApiV31OrgClankerCreateClaimResponses = {
|
|
2938
|
+
type GetApiV31OrgConsumerConfigResponses = {
|
|
2580
2939
|
/**
|
|
2581
|
-
*
|
|
2940
|
+
* Consumer configuration retrieved successfully.
|
|
2582
2941
|
*/
|
|
2583
2942
|
200: {
|
|
2584
2943
|
/**
|
|
2585
|
-
*
|
|
2944
|
+
* Organization nano ID.
|
|
2586
2945
|
*/
|
|
2587
|
-
|
|
2946
|
+
org_id: string;
|
|
2588
2947
|
/**
|
|
2589
|
-
*
|
|
2948
|
+
* Whether the consumer experience is enabled for this project.
|
|
2590
2949
|
*/
|
|
2591
|
-
|
|
2950
|
+
consumer_experience_enabled?: boolean;
|
|
2951
|
+
/**
|
|
2952
|
+
* Whether enhanced controls are enabled for this consumer project.
|
|
2953
|
+
*/
|
|
2954
|
+
enhanced_controls?: boolean;
|
|
2592
2955
|
};
|
|
2593
2956
|
};
|
|
2594
2957
|
type PostApiV31ConnectedAccountsByNanoidRevokeResponses = {
|
|
@@ -2850,7 +3213,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2850
3213
|
*/
|
|
2851
3214
|
enable: Array<string>;
|
|
2852
3215
|
/**
|
|
2853
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3216
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
2854
3217
|
*/
|
|
2855
3218
|
require_approval?: Array<string>;
|
|
2856
3219
|
} | {
|
|
@@ -2859,12 +3222,12 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2859
3222
|
*/
|
|
2860
3223
|
disable: Array<string>;
|
|
2861
3224
|
/**
|
|
2862
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3225
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
2863
3226
|
*/
|
|
2864
3227
|
require_approval?: Array<string>;
|
|
2865
3228
|
} | {
|
|
2866
3229
|
/**
|
|
2867
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3230
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
2868
3231
|
*/
|
|
2869
3232
|
require_approval: Array<string>;
|
|
2870
3233
|
};
|
|
@@ -2954,7 +3317,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2954
3317
|
*/
|
|
2955
3318
|
enable: Array<string>;
|
|
2956
3319
|
/**
|
|
2957
|
-
* Tool calls matched here pause until the user approves them.
|
|
3320
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
2958
3321
|
*/
|
|
2959
3322
|
require_approval?: Array<string>;
|
|
2960
3323
|
} | {
|
|
@@ -2963,40 +3326,40 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2963
3326
|
*/
|
|
2964
3327
|
disable: Array<string>;
|
|
2965
3328
|
/**
|
|
2966
|
-
* Tool calls matched here pause until the user approves them.
|
|
3329
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
2967
3330
|
*/
|
|
2968
3331
|
require_approval?: Array<string>;
|
|
2969
3332
|
} | {
|
|
2970
3333
|
/**
|
|
2971
|
-
*
|
|
3334
|
+
* Tags for this toolkit. Any `tags` object here fully replaces the session-wide `tags` for this toolkit, including one that only sets `require_approval`. Array format is treated as an enabled list.
|
|
2972
3335
|
*/
|
|
2973
3336
|
tags: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
2974
3337
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2975
3338
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2976
3339
|
/**
|
|
2977
|
-
* Tool calls matched here pause until the user approves them.
|
|
3340
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
2978
3341
|
*/
|
|
2979
3342
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2980
3343
|
};
|
|
2981
3344
|
/**
|
|
2982
|
-
* Tool calls matched here pause until the user approves them.
|
|
3345
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
2983
3346
|
*/
|
|
2984
3347
|
require_approval?: Array<string>;
|
|
2985
3348
|
} | {
|
|
2986
3349
|
/**
|
|
2987
|
-
* Tool calls matched here pause until the user approves them.
|
|
3350
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
2988
3351
|
*/
|
|
2989
3352
|
require_approval: Array<string>;
|
|
2990
3353
|
};
|
|
2991
3354
|
};
|
|
2992
3355
|
/**
|
|
2993
|
-
*
|
|
3356
|
+
* Session-wide tags for filtering tools. Array format is treated as an enabled list. Object format supports `enable` (a tool must have at least one) and `disable` (a tool must have none), and experimentally the tags whose tools need approval. If a toolkit sets `tools.<toolkit>.tags`, its tools use that object instead of this one.
|
|
2994
3357
|
*/
|
|
2995
3358
|
tags?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
2996
3359
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2997
3360
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2998
3361
|
/**
|
|
2999
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
3362
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
3000
3363
|
*/
|
|
3001
3364
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3002
3365
|
};
|
|
@@ -3184,6 +3547,10 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
3184
3547
|
*/
|
|
3185
3548
|
enable?: boolean;
|
|
3186
3549
|
};
|
|
3550
|
+
/**
|
|
3551
|
+
* Set to true to confine the workbench sandbox to Composio: code running in it can reach the Composio API and its own storage volume, and no other network destination. Defaults to false. Set at session creation only.
|
|
3552
|
+
*/
|
|
3553
|
+
restrict_egress_to_composio?: boolean;
|
|
3187
3554
|
/**
|
|
3188
3555
|
* What session MCP does with a tool call that needs approval when the MCP client can't ask the user. deny (default) rejects the call; allow runs it without approval.
|
|
3189
3556
|
*/
|
|
@@ -3202,6 +3569,67 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
3202
3569
|
*/
|
|
3203
3570
|
tools?: Array<string> | string;
|
|
3204
3571
|
};
|
|
3572
|
+
/**
|
|
3573
|
+
* Hooks that run on this session's tool calls. A hook can block a call before it runs, or block its result before the agent sees it.
|
|
3574
|
+
*/
|
|
3575
|
+
hooks?: Array<{
|
|
3576
|
+
type: 'before_execute';
|
|
3577
|
+
/**
|
|
3578
|
+
* Unique within the session. Shows up in results and logs.
|
|
3579
|
+
*/
|
|
3580
|
+
id: string;
|
|
3581
|
+
/**
|
|
3582
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3583
|
+
*/
|
|
3584
|
+
name?: string;
|
|
3585
|
+
/**
|
|
3586
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3587
|
+
*/
|
|
3588
|
+
applies_to: 'all' | {
|
|
3589
|
+
/**
|
|
3590
|
+
* Toolkit slugs
|
|
3591
|
+
*/
|
|
3592
|
+
toolkits: Array<string>;
|
|
3593
|
+
};
|
|
3594
|
+
handler: {
|
|
3595
|
+
type: 'condition_check';
|
|
3596
|
+
/**
|
|
3597
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3598
|
+
*/
|
|
3599
|
+
condition: string;
|
|
3600
|
+
action: 'block';
|
|
3601
|
+
};
|
|
3602
|
+
} | {
|
|
3603
|
+
type: 'after_execute';
|
|
3604
|
+
/**
|
|
3605
|
+
* Unique within the session. Shows up in results and logs.
|
|
3606
|
+
*/
|
|
3607
|
+
id: string;
|
|
3608
|
+
/**
|
|
3609
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3610
|
+
*/
|
|
3611
|
+
name?: string;
|
|
3612
|
+
/**
|
|
3613
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3614
|
+
*/
|
|
3615
|
+
applies_to: 'all' | {
|
|
3616
|
+
/**
|
|
3617
|
+
* Toolkit slugs
|
|
3618
|
+
*/
|
|
3619
|
+
toolkits: Array<string>;
|
|
3620
|
+
};
|
|
3621
|
+
handler: {
|
|
3622
|
+
type: 'condition_check';
|
|
3623
|
+
/**
|
|
3624
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3625
|
+
*/
|
|
3626
|
+
condition: string;
|
|
3627
|
+
action: 'block';
|
|
3628
|
+
} | {
|
|
3629
|
+
type: 'prompt_injection_check';
|
|
3630
|
+
action: 'block';
|
|
3631
|
+
};
|
|
3632
|
+
}>;
|
|
3205
3633
|
search?: {
|
|
3206
3634
|
enable?: boolean;
|
|
3207
3635
|
};
|
|
@@ -3433,6 +3861,67 @@ type PostApiV31ToolRouterSessionResponses = {
|
|
|
3433
3861
|
*/
|
|
3434
3862
|
enable: boolean;
|
|
3435
3863
|
};
|
|
3864
|
+
/**
|
|
3865
|
+
* Hooks that run on this session's tool calls.
|
|
3866
|
+
*/
|
|
3867
|
+
hooks?: Array<{
|
|
3868
|
+
type: 'before_execute';
|
|
3869
|
+
/**
|
|
3870
|
+
* Unique within the session. Shows up in results and logs.
|
|
3871
|
+
*/
|
|
3872
|
+
id: string;
|
|
3873
|
+
/**
|
|
3874
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3875
|
+
*/
|
|
3876
|
+
name?: string;
|
|
3877
|
+
/**
|
|
3878
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3879
|
+
*/
|
|
3880
|
+
applies_to: 'all' | {
|
|
3881
|
+
/**
|
|
3882
|
+
* Toolkit slugs
|
|
3883
|
+
*/
|
|
3884
|
+
toolkits: Array<string>;
|
|
3885
|
+
};
|
|
3886
|
+
handler: {
|
|
3887
|
+
type: 'condition_check';
|
|
3888
|
+
/**
|
|
3889
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3890
|
+
*/
|
|
3891
|
+
condition: string;
|
|
3892
|
+
action: 'block';
|
|
3893
|
+
};
|
|
3894
|
+
} | {
|
|
3895
|
+
type: 'after_execute';
|
|
3896
|
+
/**
|
|
3897
|
+
* Unique within the session. Shows up in results and logs.
|
|
3898
|
+
*/
|
|
3899
|
+
id: string;
|
|
3900
|
+
/**
|
|
3901
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3902
|
+
*/
|
|
3903
|
+
name?: string;
|
|
3904
|
+
/**
|
|
3905
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3906
|
+
*/
|
|
3907
|
+
applies_to: 'all' | {
|
|
3908
|
+
/**
|
|
3909
|
+
* Toolkit slugs
|
|
3910
|
+
*/
|
|
3911
|
+
toolkits: Array<string>;
|
|
3912
|
+
};
|
|
3913
|
+
handler: {
|
|
3914
|
+
type: 'condition_check';
|
|
3915
|
+
/**
|
|
3916
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3917
|
+
*/
|
|
3918
|
+
condition: string;
|
|
3919
|
+
action: 'block';
|
|
3920
|
+
} | {
|
|
3921
|
+
type: 'prompt_injection_check';
|
|
3922
|
+
action: 'block';
|
|
3923
|
+
};
|
|
3924
|
+
}>;
|
|
3436
3925
|
/**
|
|
3437
3926
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
3438
3927
|
*/
|
|
@@ -3794,6 +4283,67 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
3794
4283
|
*/
|
|
3795
4284
|
enable: boolean;
|
|
3796
4285
|
};
|
|
4286
|
+
/**
|
|
4287
|
+
* Hooks that run on this session's tool calls.
|
|
4288
|
+
*/
|
|
4289
|
+
hooks?: Array<{
|
|
4290
|
+
type: 'before_execute';
|
|
4291
|
+
/**
|
|
4292
|
+
* Unique within the session. Shows up in results and logs.
|
|
4293
|
+
*/
|
|
4294
|
+
id: string;
|
|
4295
|
+
/**
|
|
4296
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4297
|
+
*/
|
|
4298
|
+
name?: string;
|
|
4299
|
+
/**
|
|
4300
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4301
|
+
*/
|
|
4302
|
+
applies_to: 'all' | {
|
|
4303
|
+
/**
|
|
4304
|
+
* Toolkit slugs
|
|
4305
|
+
*/
|
|
4306
|
+
toolkits: Array<string>;
|
|
4307
|
+
};
|
|
4308
|
+
handler: {
|
|
4309
|
+
type: 'condition_check';
|
|
4310
|
+
/**
|
|
4311
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4312
|
+
*/
|
|
4313
|
+
condition: string;
|
|
4314
|
+
action: 'block';
|
|
4315
|
+
};
|
|
4316
|
+
} | {
|
|
4317
|
+
type: 'after_execute';
|
|
4318
|
+
/**
|
|
4319
|
+
* Unique within the session. Shows up in results and logs.
|
|
4320
|
+
*/
|
|
4321
|
+
id: string;
|
|
4322
|
+
/**
|
|
4323
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4324
|
+
*/
|
|
4325
|
+
name?: string;
|
|
4326
|
+
/**
|
|
4327
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4328
|
+
*/
|
|
4329
|
+
applies_to: 'all' | {
|
|
4330
|
+
/**
|
|
4331
|
+
* Toolkit slugs
|
|
4332
|
+
*/
|
|
4333
|
+
toolkits: Array<string>;
|
|
4334
|
+
};
|
|
4335
|
+
handler: {
|
|
4336
|
+
type: 'condition_check';
|
|
4337
|
+
/**
|
|
4338
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4339
|
+
*/
|
|
4340
|
+
condition: string;
|
|
4341
|
+
action: 'block';
|
|
4342
|
+
} | {
|
|
4343
|
+
type: 'prompt_injection_check';
|
|
4344
|
+
action: 'block';
|
|
4345
|
+
};
|
|
4346
|
+
}>;
|
|
3797
4347
|
/**
|
|
3798
4348
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
3799
4349
|
*/
|
|
@@ -3931,7 +4481,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3931
4481
|
*/
|
|
3932
4482
|
enable: Array<string>;
|
|
3933
4483
|
/**
|
|
3934
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4484
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
3935
4485
|
*/
|
|
3936
4486
|
require_approval?: Array<string>;
|
|
3937
4487
|
} | {
|
|
@@ -3940,12 +4490,12 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3940
4490
|
*/
|
|
3941
4491
|
disable: Array<string>;
|
|
3942
4492
|
/**
|
|
3943
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4493
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
3944
4494
|
*/
|
|
3945
4495
|
require_approval?: Array<string>;
|
|
3946
4496
|
} | {
|
|
3947
4497
|
/**
|
|
3948
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4498
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
3949
4499
|
*/
|
|
3950
4500
|
require_approval: Array<string>;
|
|
3951
4501
|
};
|
|
@@ -4032,7 +4582,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4032
4582
|
*/
|
|
4033
4583
|
enable: Array<string>;
|
|
4034
4584
|
/**
|
|
4035
|
-
* Tool calls matched here pause until the user approves them.
|
|
4585
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
4036
4586
|
*/
|
|
4037
4587
|
require_approval?: Array<string>;
|
|
4038
4588
|
} | {
|
|
@@ -4041,40 +4591,40 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4041
4591
|
*/
|
|
4042
4592
|
disable: Array<string>;
|
|
4043
4593
|
/**
|
|
4044
|
-
* Tool calls matched here pause until the user approves them.
|
|
4594
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
4045
4595
|
*/
|
|
4046
4596
|
require_approval?: Array<string>;
|
|
4047
4597
|
} | {
|
|
4048
4598
|
/**
|
|
4049
|
-
*
|
|
4599
|
+
* Tags for this toolkit. Any `tags` object here fully replaces the session-wide `tags` for this toolkit, including one that only sets `require_approval`. Array format is treated as an enabled list.
|
|
4050
4600
|
*/
|
|
4051
4601
|
tags: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
4052
4602
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4053
4603
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4054
4604
|
/**
|
|
4055
|
-
* Tool calls matched here pause until the user approves them.
|
|
4605
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
4056
4606
|
*/
|
|
4057
4607
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4058
4608
|
};
|
|
4059
4609
|
/**
|
|
4060
|
-
* Tool calls matched here pause until the user approves them.
|
|
4610
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
4061
4611
|
*/
|
|
4062
4612
|
require_approval?: Array<string>;
|
|
4063
4613
|
} | {
|
|
4064
4614
|
/**
|
|
4065
|
-
* Tool calls matched here pause until the user approves them.
|
|
4615
|
+
* Tool calls matched here pause until the user approves them. Setting this toolkit's own list, even an empty one, replaces the session-wide `tags.require_approval` for its tools.
|
|
4066
4616
|
*/
|
|
4067
4617
|
require_approval: Array<string>;
|
|
4068
4618
|
};
|
|
4069
4619
|
};
|
|
4070
4620
|
/**
|
|
4071
|
-
*
|
|
4621
|
+
* Session-wide tags for filtering tools. Array format is treated as an enabled list. Object format supports `enable` (a tool must have at least one) and `disable` (a tool must have none), and experimentally the tags whose tools need approval. If a toolkit sets `tools.<toolkit>.tags`, its tools use that object instead of this one.
|
|
4072
4622
|
*/
|
|
4073
4623
|
tags?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
4074
4624
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4075
4625
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4076
4626
|
/**
|
|
4077
|
-
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed.
|
|
4627
|
+
* Tool calls matched here pause until the user approves them. A tool needs approval if its toolkit, the tool itself or any of its tags is listed. A toolkit's own lists in `tools` replace the session-wide tag list for that toolkit.
|
|
4078
4628
|
*/
|
|
4079
4629
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4080
4630
|
};
|
|
@@ -4135,6 +4685,67 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4135
4685
|
execute?: {
|
|
4136
4686
|
enable_multi_execute?: boolean;
|
|
4137
4687
|
};
|
|
4688
|
+
/**
|
|
4689
|
+
* Hooks that run on this session's tool calls. A hook can block a call before it runs, or block its result before the agent sees it.
|
|
4690
|
+
*/
|
|
4691
|
+
hooks?: Array<{
|
|
4692
|
+
type: 'before_execute';
|
|
4693
|
+
/**
|
|
4694
|
+
* Unique within the session. Shows up in results and logs.
|
|
4695
|
+
*/
|
|
4696
|
+
id: string;
|
|
4697
|
+
/**
|
|
4698
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4699
|
+
*/
|
|
4700
|
+
name?: string;
|
|
4701
|
+
/**
|
|
4702
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4703
|
+
*/
|
|
4704
|
+
applies_to: 'all' | {
|
|
4705
|
+
/**
|
|
4706
|
+
* Toolkit slugs
|
|
4707
|
+
*/
|
|
4708
|
+
toolkits: Array<string>;
|
|
4709
|
+
};
|
|
4710
|
+
handler: {
|
|
4711
|
+
type: 'condition_check';
|
|
4712
|
+
/**
|
|
4713
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4714
|
+
*/
|
|
4715
|
+
condition: string;
|
|
4716
|
+
action: 'block';
|
|
4717
|
+
};
|
|
4718
|
+
} | {
|
|
4719
|
+
type: 'after_execute';
|
|
4720
|
+
/**
|
|
4721
|
+
* Unique within the session. Shows up in results and logs.
|
|
4722
|
+
*/
|
|
4723
|
+
id: string;
|
|
4724
|
+
/**
|
|
4725
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4726
|
+
*/
|
|
4727
|
+
name?: string;
|
|
4728
|
+
/**
|
|
4729
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4730
|
+
*/
|
|
4731
|
+
applies_to: 'all' | {
|
|
4732
|
+
/**
|
|
4733
|
+
* Toolkit slugs
|
|
4734
|
+
*/
|
|
4735
|
+
toolkits: Array<string>;
|
|
4736
|
+
};
|
|
4737
|
+
handler: {
|
|
4738
|
+
type: 'condition_check';
|
|
4739
|
+
/**
|
|
4740
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4741
|
+
*/
|
|
4742
|
+
condition: string;
|
|
4743
|
+
action: 'block';
|
|
4744
|
+
} | {
|
|
4745
|
+
type: 'prompt_injection_check';
|
|
4746
|
+
action: 'block';
|
|
4747
|
+
};
|
|
4748
|
+
}> | null;
|
|
4138
4749
|
experimental?: {
|
|
4139
4750
|
/**
|
|
4140
4751
|
* Per-tool elicitation permission config. Replaces the stored block when provided.
|
|
@@ -4407,6 +5018,67 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
4407
5018
|
*/
|
|
4408
5019
|
enable: boolean;
|
|
4409
5020
|
};
|
|
5021
|
+
/**
|
|
5022
|
+
* Hooks that run on this session's tool calls.
|
|
5023
|
+
*/
|
|
5024
|
+
hooks?: Array<{
|
|
5025
|
+
type: 'before_execute';
|
|
5026
|
+
/**
|
|
5027
|
+
* Unique within the session. Shows up in results and logs.
|
|
5028
|
+
*/
|
|
5029
|
+
id: string;
|
|
5030
|
+
/**
|
|
5031
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5032
|
+
*/
|
|
5033
|
+
name?: string;
|
|
5034
|
+
/**
|
|
5035
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5036
|
+
*/
|
|
5037
|
+
applies_to: 'all' | {
|
|
5038
|
+
/**
|
|
5039
|
+
* Toolkit slugs
|
|
5040
|
+
*/
|
|
5041
|
+
toolkits: Array<string>;
|
|
5042
|
+
};
|
|
5043
|
+
handler: {
|
|
5044
|
+
type: 'condition_check';
|
|
5045
|
+
/**
|
|
5046
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5047
|
+
*/
|
|
5048
|
+
condition: string;
|
|
5049
|
+
action: 'block';
|
|
5050
|
+
};
|
|
5051
|
+
} | {
|
|
5052
|
+
type: 'after_execute';
|
|
5053
|
+
/**
|
|
5054
|
+
* Unique within the session. Shows up in results and logs.
|
|
5055
|
+
*/
|
|
5056
|
+
id: string;
|
|
5057
|
+
/**
|
|
5058
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5059
|
+
*/
|
|
5060
|
+
name?: string;
|
|
5061
|
+
/**
|
|
5062
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5063
|
+
*/
|
|
5064
|
+
applies_to: 'all' | {
|
|
5065
|
+
/**
|
|
5066
|
+
* Toolkit slugs
|
|
5067
|
+
*/
|
|
5068
|
+
toolkits: Array<string>;
|
|
5069
|
+
};
|
|
5070
|
+
handler: {
|
|
5071
|
+
type: 'condition_check';
|
|
5072
|
+
/**
|
|
5073
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5074
|
+
*/
|
|
5075
|
+
condition: string;
|
|
5076
|
+
action: 'block';
|
|
5077
|
+
} | {
|
|
5078
|
+
type: 'prompt_injection_check';
|
|
5079
|
+
action: 'block';
|
|
5080
|
+
};
|
|
5081
|
+
}>;
|
|
4410
5082
|
/**
|
|
4411
5083
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
4412
5084
|
*/
|
|
@@ -4861,6 +5533,67 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
|
|
|
4861
5533
|
*/
|
|
4862
5534
|
enable: boolean;
|
|
4863
5535
|
};
|
|
5536
|
+
/**
|
|
5537
|
+
* Hooks that run on this session's tool calls.
|
|
5538
|
+
*/
|
|
5539
|
+
hooks?: Array<{
|
|
5540
|
+
type: 'before_execute';
|
|
5541
|
+
/**
|
|
5542
|
+
* Unique within the session. Shows up in results and logs.
|
|
5543
|
+
*/
|
|
5544
|
+
id: string;
|
|
5545
|
+
/**
|
|
5546
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5547
|
+
*/
|
|
5548
|
+
name?: string;
|
|
5549
|
+
/**
|
|
5550
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5551
|
+
*/
|
|
5552
|
+
applies_to: 'all' | {
|
|
5553
|
+
/**
|
|
5554
|
+
* Toolkit slugs
|
|
5555
|
+
*/
|
|
5556
|
+
toolkits: Array<string>;
|
|
5557
|
+
};
|
|
5558
|
+
handler: {
|
|
5559
|
+
type: 'condition_check';
|
|
5560
|
+
/**
|
|
5561
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5562
|
+
*/
|
|
5563
|
+
condition: string;
|
|
5564
|
+
action: 'block';
|
|
5565
|
+
};
|
|
5566
|
+
} | {
|
|
5567
|
+
type: 'after_execute';
|
|
5568
|
+
/**
|
|
5569
|
+
* Unique within the session. Shows up in results and logs.
|
|
5570
|
+
*/
|
|
5571
|
+
id: string;
|
|
5572
|
+
/**
|
|
5573
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5574
|
+
*/
|
|
5575
|
+
name?: string;
|
|
5576
|
+
/**
|
|
5577
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5578
|
+
*/
|
|
5579
|
+
applies_to: 'all' | {
|
|
5580
|
+
/**
|
|
5581
|
+
* Toolkit slugs
|
|
5582
|
+
*/
|
|
5583
|
+
toolkits: Array<string>;
|
|
5584
|
+
};
|
|
5585
|
+
handler: {
|
|
5586
|
+
type: 'condition_check';
|
|
5587
|
+
/**
|
|
5588
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5589
|
+
*/
|
|
5590
|
+
condition: string;
|
|
5591
|
+
action: 'block';
|
|
5592
|
+
} | {
|
|
5593
|
+
type: 'prompt_injection_check';
|
|
5594
|
+
action: 'block';
|
|
5595
|
+
};
|
|
5596
|
+
}>;
|
|
4864
5597
|
/**
|
|
4865
5598
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
4866
5599
|
*/
|
|
@@ -5586,6 +6319,8 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteResponses = {
|
|
|
5586
6319
|
} & ExecuteCompleted) | ({
|
|
5587
6320
|
result_type: 'failed';
|
|
5588
6321
|
} & ExecuteFailed) | ({
|
|
6322
|
+
result_type: 'blocked';
|
|
6323
|
+
} & ExecuteBlocked) | ({
|
|
5589
6324
|
result_type: 'input_required';
|
|
5590
6325
|
} & ExecuteRequiresUserInput);
|
|
5591
6326
|
};
|
|
@@ -5726,6 +6461,8 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteMetaResponses = {
|
|
|
5726
6461
|
} & ExecuteCompleted) | ({
|
|
5727
6462
|
result_type: 'failed';
|
|
5728
6463
|
} & ExecuteFailed) | ({
|
|
6464
|
+
result_type: 'blocked';
|
|
6465
|
+
} & ExecuteBlocked) | ({
|
|
5729
6466
|
result_type: 'input_required';
|
|
5730
6467
|
} & ExecuteRequiresUserInput);
|
|
5731
6468
|
};
|
|
@@ -6325,11 +7062,19 @@ type GetApiV31AuthConfigsResponses = {
|
|
|
6325
7062
|
tools_available_for_execution?: Array<string>;
|
|
6326
7063
|
};
|
|
6327
7064
|
/**
|
|
6328
|
-
*
|
|
7065
|
+
* Shared credentials that will be inherited by all connected accounts using this auth config. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way.
|
|
7066
|
+
*
|
|
7067
|
+
* @deprecated
|
|
6329
7068
|
*/
|
|
6330
7069
|
shared_credentials?: {
|
|
6331
7070
|
[key: string]: unknown;
|
|
6332
7071
|
};
|
|
7072
|
+
/**
|
|
7073
|
+
* Connection field values inherited by every connected account created under this auth config. Same value as shared_credentials; secret values are redacted.
|
|
7074
|
+
*/
|
|
7075
|
+
shared_connection_fields?: {
|
|
7076
|
+
[key: string]: unknown;
|
|
7077
|
+
};
|
|
6333
7078
|
/**
|
|
6334
7079
|
* Whether this auth config is enabled for tool router
|
|
6335
7080
|
*/
|
|
@@ -6562,11 +7307,19 @@ type GetApiV31AuthConfigsByNanoidResponses = {
|
|
|
6562
7307
|
tools_available_for_execution?: Array<string>;
|
|
6563
7308
|
};
|
|
6564
7309
|
/**
|
|
6565
|
-
*
|
|
7310
|
+
* Shared credentials that will be inherited by all connected accounts using this auth config. DEPRECATED: use `shared_connection_fields` instead. It takes the same value and behaves the same way.
|
|
7311
|
+
*
|
|
7312
|
+
* @deprecated
|
|
6566
7313
|
*/
|
|
6567
7314
|
shared_credentials?: {
|
|
6568
7315
|
[key: string]: unknown;
|
|
6569
7316
|
};
|
|
7317
|
+
/**
|
|
7318
|
+
* Connection field values inherited by every connected account created under this auth config. Same value as shared_credentials; secret values are redacted.
|
|
7319
|
+
*/
|
|
7320
|
+
shared_connection_fields?: {
|
|
7321
|
+
[key: string]: unknown;
|
|
7322
|
+
};
|
|
6570
7323
|
/**
|
|
6571
7324
|
* Whether this auth config is enabled for tool router
|
|
6572
7325
|
*/
|
|
@@ -6735,7 +7488,7 @@ type GetApiV31CliGetSessionResponses = {
|
|
|
6735
7488
|
*/
|
|
6736
7489
|
200: {
|
|
6737
7490
|
/**
|
|
6738
|
-
* The
|
|
7491
|
+
* The CLI session ID, or the code for a lookup by code
|
|
6739
7492
|
*/
|
|
6740
7493
|
id: string;
|
|
6741
7494
|
/**
|
|
@@ -12389,7 +13142,7 @@ type PostApiV31ConnectedAccountsData = {
|
|
|
12389
13142
|
*/
|
|
12390
13143
|
experimental?: {
|
|
12391
13144
|
/**
|
|
12392
|
-
* 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.
|
|
12393
13146
|
*/
|
|
12394
13147
|
account_type?: 'PRIVATE' | 'SHARED';
|
|
12395
13148
|
/**
|
|
@@ -20634,7 +21387,7 @@ type PostApiV31ConnectedAccountsLinkData = {
|
|
|
20634
21387
|
*/
|
|
20635
21388
|
experimental?: {
|
|
20636
21389
|
/**
|
|
20637
|
-
* 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.
|
|
20638
21391
|
*/
|
|
20639
21392
|
account_type?: 'PRIVATE' | 'SHARED';
|
|
20640
21393
|
/**
|
|
@@ -21171,7 +21924,6 @@ type PostApiV31OrgOwnerProjectNewData = {
|
|
|
21171
21924
|
display_name?: string;
|
|
21172
21925
|
mask_secret_keys_in_connected_account?: boolean;
|
|
21173
21926
|
log_visibility_setting?: 'show_all' | 'dont_store_data';
|
|
21174
|
-
require_mcp_api_key?: boolean;
|
|
21175
21927
|
/**
|
|
21176
21928
|
* Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key.
|
|
21177
21929
|
*/
|
|
@@ -21187,6 +21939,10 @@ type PostApiV31OrgOwnerProjectNewData = {
|
|
|
21187
21939
|
theme?: {
|
|
21188
21940
|
[key: string]: unknown;
|
|
21189
21941
|
};
|
|
21942
|
+
/**
|
|
21943
|
+
* Enable Instant Toolkits for this project.
|
|
21944
|
+
*/
|
|
21945
|
+
enable_instant?: boolean;
|
|
21190
21946
|
/**
|
|
21191
21947
|
* Enable Zero Data Retention for the new project. Hobby cannot enable it. Enterprise defaults to enabled; other paid plans default to disabled. An explicit value overrides the default.
|
|
21192
21948
|
*/
|
|
@@ -21529,8 +22285,12 @@ type PostApiV31OrgConsumerProjectResolveResponses = {
|
|
|
21529
22285
|
* Derived internal Composio user ID for the authenticated user in this consumer org context.
|
|
21530
22286
|
*/
|
|
21531
22287
|
consumer_user_id: string;
|
|
21532
|
-
|
|
21533
|
-
|
|
22288
|
+
/**
|
|
22289
|
+
* ID of the authenticated user the request was made as.
|
|
22290
|
+
*/
|
|
22291
|
+
user_id: string;
|
|
22292
|
+
};
|
|
22293
|
+
};
|
|
21534
22294
|
type GetApiV31OrgConsumerConnectedToolkitsData = {
|
|
21535
22295
|
body?: never;
|
|
21536
22296
|
headers: {
|
|
@@ -22288,6 +23048,21 @@ type PostApiV31CustomToolkitsUpsertData = {
|
|
|
22288
23048
|
*/
|
|
22289
23049
|
description?: string;
|
|
22290
23050
|
};
|
|
23051
|
+
/**
|
|
23052
|
+
* 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.
|
|
23053
|
+
*/
|
|
23054
|
+
additional_fields?: {
|
|
23055
|
+
generic_id: {
|
|
23056
|
+
/**
|
|
23057
|
+
* Label shown to the user connecting their account
|
|
23058
|
+
*/
|
|
23059
|
+
display_name: string;
|
|
23060
|
+
/**
|
|
23061
|
+
* Help text below the input
|
|
23062
|
+
*/
|
|
23063
|
+
description?: string;
|
|
23064
|
+
};
|
|
23065
|
+
};
|
|
22291
23066
|
} | {
|
|
22292
23067
|
mode: 'DCR_OAUTH';
|
|
22293
23068
|
/**
|
|
@@ -22785,7 +23560,7 @@ type PostApiV31TriggerInstancesBySlugUpsertData = {
|
|
|
22785
23560
|
*/
|
|
22786
23561
|
connected_account_id?: string;
|
|
22787
23562
|
/**
|
|
22788
|
-
* 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.
|
|
22789
23564
|
*/
|
|
22790
23565
|
user_id?: string;
|
|
22791
23566
|
/**
|
|
@@ -23057,7 +23832,7 @@ type PatchApiV31TriggerInstancesManageByTriggerIdData = {
|
|
|
23057
23832
|
*/
|
|
23058
23833
|
status?: 'enable' | 'disable';
|
|
23059
23834
|
/**
|
|
23060
|
-
* 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.
|
|
23061
23836
|
*/
|
|
23062
23837
|
user_id?: string;
|
|
23063
23838
|
/**
|
|
@@ -23131,9 +23906,15 @@ type GetApiV31TriggersTypesBySlugResponses = {
|
|
|
23131
23906
|
*/
|
|
23132
23907
|
instructions: string;
|
|
23133
23908
|
/**
|
|
23134
|
-
*
|
|
23909
|
+
* Deprecated: use types. poll for any trigger that polls, even one a webhook wakes; otherwise webhook.
|
|
23910
|
+
*
|
|
23911
|
+
* @deprecated
|
|
23135
23912
|
*/
|
|
23136
23913
|
type: 'webhook' | 'poll';
|
|
23914
|
+
/**
|
|
23915
|
+
* The trigger mechanisms this trigger supports, in order of preference: webhook (event-based) before poll (scheduled check).
|
|
23916
|
+
*/
|
|
23917
|
+
types: Array<'webhook' | 'poll'>;
|
|
23137
23918
|
/**
|
|
23138
23919
|
* Information about the toolkit that provides this trigger
|
|
23139
23920
|
*/
|
|
@@ -23221,9 +24002,15 @@ type GetApiV31TriggersTypesResponses = {
|
|
|
23221
24002
|
*/
|
|
23222
24003
|
instructions: string;
|
|
23223
24004
|
/**
|
|
23224
|
-
*
|
|
24005
|
+
* Deprecated: use types. poll for any trigger that polls, even one a webhook wakes; otherwise webhook.
|
|
24006
|
+
*
|
|
24007
|
+
* @deprecated
|
|
23225
24008
|
*/
|
|
23226
24009
|
type: 'webhook' | 'poll';
|
|
24010
|
+
/**
|
|
24011
|
+
* The trigger mechanisms this trigger supports, in order of preference: webhook (event-based) before poll (scheduled check).
|
|
24012
|
+
*/
|
|
24013
|
+
types: Array<'webhook' | 'poll'>;
|
|
23227
24014
|
/**
|
|
23228
24015
|
* Information about the toolkit that provides this trigger
|
|
23229
24016
|
*/
|
|
@@ -24256,7 +25043,7 @@ type PostApiV31ToolRouterSessionBySessionIdLinkData = {
|
|
|
24256
25043
|
*/
|
|
24257
25044
|
experimental?: {
|
|
24258
25045
|
/**
|
|
24259
|
-
* 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.
|
|
24260
25047
|
*/
|
|
24261
25048
|
account_type?: 'PRIVATE' | 'SHARED';
|
|
24262
25049
|
/**
|
|
@@ -24795,6 +25582,8 @@ type PostApiV31ToolRouterSessionBySessionIdProxyExecuteResponses = {
|
|
|
24795
25582
|
200: ({
|
|
24796
25583
|
result_type: 'completed';
|
|
24797
25584
|
} & ProxyExecuteCompleted) | ({
|
|
25585
|
+
result_type: 'blocked';
|
|
25586
|
+
} & ProxyExecuteBlocked) | ({
|
|
24798
25587
|
result_type: 'input_required';
|
|
24799
25588
|
} & ExecuteRequiresUserInput);
|
|
24800
25589
|
};
|
|
@@ -25059,111 +25848,6 @@ type GetApiV31ToolkitsChangelogResponses = {
|
|
|
25059
25848
|
};
|
|
25060
25849
|
};
|
|
25061
25850
|
//#endregion
|
|
25062
|
-
//#region src/compat/api-promise.d.ts
|
|
25063
|
-
/**
|
|
25064
|
-
* Stainless-compatible `APIPromise`.
|
|
25065
|
-
*
|
|
25066
|
-
* Mirrors composio-base-ts `src/core/api-promise.ts`: a `Promise` subclass
|
|
25067
|
-
* with a no-op executor whose `then`/`catch`/`finally` are overridden to
|
|
25068
|
-
* parse lazily. The laziness matters — `.asResponse()` must resolve with the
|
|
25069
|
-
* raw `Response` on HTTP error statuses without ever materializing (and thus
|
|
25070
|
-
* leaving unhandled) the rejected parsed promise.
|
|
25071
|
-
*/
|
|
25072
|
-
declare class APIPromise<T> extends Promise<T> {
|
|
25073
|
-
private readonly exchangePromise;
|
|
25074
|
-
private readonly parseResponse;
|
|
25075
|
-
private parsedPromise;
|
|
25076
|
-
constructor(exchangePromise: Promise<Response>, parseResponse?: (response: Response) => Promise<T>);
|
|
25077
|
-
_thenUnwrap<U>(transform: (data: T, response: Response) => U): APIPromise<U>;
|
|
25078
|
-
/**
|
|
25079
|
-
* Gets the raw `Response` instead of parsing the body. Resolves (never
|
|
25080
|
-
* throws an `APIError`) on HTTP error statuses; rejects only on
|
|
25081
|
-
* connection/abort failures.
|
|
25082
|
-
*/
|
|
25083
|
-
asResponse(): Promise<Response>;
|
|
25084
|
-
/** Gets the parsed data plus the raw `Response`. */
|
|
25085
|
-
withResponse(): Promise<{
|
|
25086
|
-
data: T;
|
|
25087
|
-
response: Response;
|
|
25088
|
-
}>;
|
|
25089
|
-
private parse;
|
|
25090
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
25091
|
-
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
|
|
25092
|
-
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
25093
|
-
}
|
|
25094
|
-
//#endregion
|
|
25095
|
-
//#region src/compat/headers.d.ts
|
|
25096
|
-
type HeaderValue = string | null | undefined;
|
|
25097
|
-
/**
|
|
25098
|
-
* The internal nullable representation used by Stainless. The symbol that
|
|
25099
|
-
* brands its concrete type is private, so compatibility is expressed through
|
|
25100
|
-
* the two public data fields the representation carries.
|
|
25101
|
-
*/
|
|
25102
|
-
interface NullableHeadersLike {
|
|
25103
|
-
readonly values: Headers;
|
|
25104
|
-
readonly nulls: ReadonlySet<string>;
|
|
25105
|
-
}
|
|
25106
|
-
/** Header inputs accepted by the published Stainless client. */
|
|
25107
|
-
type HeadersLike = Headers | ReadonlyArray<ReadonlyArray<HeaderValue | readonly HeaderValue[]>> | Record<string, HeaderValue | readonly HeaderValue[]> | NullableHeadersLike | null | undefined;
|
|
25108
|
-
//#endregion
|
|
25109
|
-
//#region src/compat/identity.d.ts
|
|
25110
|
-
/**
|
|
25111
|
-
* The product calling through this client, such as `@composio/core` or
|
|
25112
|
-
* `@composio/cli`. It owns the product headers: once a client has one,
|
|
25113
|
-
* `defaultHeaders` and per-call `headers` can no longer carry them.
|
|
25114
|
-
*/
|
|
25115
|
-
interface ClientIdentity {
|
|
25116
|
-
/** The calling product, such as `@composio/core` or `@composio/cli`. Sent as `x-client-provenance`. */
|
|
25117
|
-
readonly product: string;
|
|
25118
|
-
/** The calling product's version. Sent as `x-client-version` and `x-sdk-version`. */
|
|
25119
|
-
readonly version: string;
|
|
25120
|
-
/** Legacy label still read by the platform, sent as `x-source`. */
|
|
25121
|
-
readonly source?: string | undefined;
|
|
25122
|
-
/** Legacy label still read by the platform, sent as `x-framework`. */
|
|
25123
|
-
readonly framework?: string | undefined;
|
|
25124
|
-
/** Legacy label still read by the platform, sent as `x-runtime`. Defaults to the detected runtime. */
|
|
25125
|
-
readonly runtime?: string | undefined;
|
|
25126
|
-
}
|
|
25127
|
-
//#endregion
|
|
25128
|
-
//#region src/compat/transport.d.ts
|
|
25129
|
-
/**
|
|
25130
|
-
* Sends one prepared HTTP request without retries or redirect handling.
|
|
25131
|
-
* Implementations should observe `request.signal` to stop their underlying I/O;
|
|
25132
|
-
* the client still settles the public request promptly if they do not.
|
|
25133
|
-
*/
|
|
25134
|
-
interface Transport {
|
|
25135
|
-
send(request: Request): Promise<Response>;
|
|
25136
|
-
}
|
|
25137
|
-
type KernelOwnedRequestInitKey = 'method' | 'headers' | 'body' | 'signal' | 'redirect';
|
|
25138
|
-
/** Fetch defaults that cannot replace fields owned by the request kernel. */
|
|
25139
|
-
type FetchTransportDefaults<Extra extends object = object> = Omit<RequestInit & Extra, KernelOwnedRequestInitKey>;
|
|
25140
|
-
type FetchImplementation<Extra extends object> = (input: RequestInfo | URL, init?: FetchTransportDefaults<Extra>) => Promise<Response>;
|
|
25141
|
-
/** Creates a transport backed by the supplied or global fetch function. */
|
|
25142
|
-
declare const createFetchTransport: <Extra extends object = object>(options?: {
|
|
25143
|
-
fetch?: FetchImplementation<Extra> | undefined;
|
|
25144
|
-
defaults?: FetchTransportDefaults<Extra> | undefined;
|
|
25145
|
-
}) => Transport;
|
|
25146
|
-
//#endregion
|
|
25147
|
-
//#region src/compat/request.d.ts
|
|
25148
|
-
/**
|
|
25149
|
-
* Per-request options bag — the Stainless last-positional-argument contract.
|
|
25150
|
-
* Downstream derives this shape structurally (`Parameters<method>[last]`);
|
|
25151
|
-
* `signal` support is load-bearing (abort → `APIUserAbortError`).
|
|
25152
|
-
*/
|
|
25153
|
-
interface RequestOptions {
|
|
25154
|
-
headers?: HeadersLike;
|
|
25155
|
-
maxRetries?: number;
|
|
25156
|
-
timeout?: number;
|
|
25157
|
-
signal?: AbortSignal | null;
|
|
25158
|
-
/**
|
|
25159
|
-
* Stainless options-bag compatibility: sent as the `Idempotency-Key`
|
|
25160
|
-
* request header. Server-side replay/dedup for Composio's write endpoints
|
|
25161
|
-
* is not guaranteed yet — callers who cannot tolerate a double execution
|
|
25162
|
-
* should still set `maxRetries: 0` on writes.
|
|
25163
|
-
*/
|
|
25164
|
-
idempotencyKey?: string;
|
|
25165
|
-
}
|
|
25166
|
-
//#endregion
|
|
25167
25851
|
//#region src/compat/error.d.ts
|
|
25168
25852
|
declare class ComposioError extends Error {}
|
|
25169
25853
|
/**
|
|
@@ -25725,80 +26409,6 @@ interface Mcp {
|
|
|
25725
26409
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25726
26410
|
declare const makeMcp: (client: Composio) => Mcp;
|
|
25727
26411
|
//#endregion
|
|
25728
|
-
//#region src/compat/resources/cli/realtime.d.ts
|
|
25729
|
-
type RealtimeAuthParamsGen = NonNullable<PostApiV31CliRealtimeAuthData['body']>;
|
|
25730
|
-
interface RealtimeAuthParams extends RealtimeAuthParamsGen {}
|
|
25731
|
-
type RealtimeAuthResponseGen = PostApiV31CliRealtimeAuthResponses[200];
|
|
25732
|
-
interface RealtimeAuthResponse extends RealtimeAuthResponseGen {}
|
|
25733
|
-
type RealtimeCredentialsResponseGen = GetApiV31CliRealtimeCredentialsResponses[200];
|
|
25734
|
-
interface RealtimeCredentialsResponse extends RealtimeCredentialsResponseGen {}
|
|
25735
|
-
/** `client.cli.realtime`. */
|
|
25736
|
-
interface Realtime {
|
|
25737
|
-
auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse>;
|
|
25738
|
-
credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse>;
|
|
25739
|
-
}
|
|
25740
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25741
|
-
declare const makeRealtime: (client: Composio) => Realtime;
|
|
25742
|
-
//#endregion
|
|
25743
|
-
//#region src/compat/resources/cli/cli.d.ts
|
|
25744
|
-
type CliCreateCodactFailureBodyGen = NonNullable<PostApiV31CliCodactFailuresData['body']>;
|
|
25745
|
-
type CliCreateCodactFailureHeadersGen = NonNullable<PostApiV31CliCodactFailuresData['headers']>;
|
|
25746
|
-
interface CliCreateCodactFailureParams extends CliCreateCodactFailureBodyGen, CliCreateCodactFailureHeadersGen {}
|
|
25747
|
-
type CliCreateSessionParamsGen = NonNullable<PostApiV31CliCreateSessionData['body']>;
|
|
25748
|
-
interface CliCreateSessionParams extends CliCreateSessionParamsGen {}
|
|
25749
|
-
type CliGetSessionParamsGen = NonNullable<GetApiV31CliGetSessionData['query']>;
|
|
25750
|
-
interface CliGetSessionParams extends CliGetSessionParamsGen {}
|
|
25751
|
-
type CliCreateCodactFailureResponseGen = PostApiV31CliCodactFailuresResponses[200];
|
|
25752
|
-
interface CliCreateCodactFailureResponse extends CliCreateCodactFailureResponseGen {}
|
|
25753
|
-
type CliCreateSessionResponseGen = PostApiV31CliCreateSessionResponses[201];
|
|
25754
|
-
interface CliCreateSessionResponse extends CliCreateSessionResponseGen {}
|
|
25755
|
-
type CliGetSessionResponseGen = GetApiV31CliGetSessionResponses[200];
|
|
25756
|
-
interface CliGetSessionResponse extends CliGetSessionResponseGen {}
|
|
25757
|
-
/** `client.cli`. */
|
|
25758
|
-
interface Cli {
|
|
25759
|
-
readonly realtime: Realtime;
|
|
25760
|
-
createCodactFailure(params: CliCreateCodactFailureParams, options?: RequestOptions): APIPromise<CliCreateCodactFailureResponse>;
|
|
25761
|
-
createSession(body?: CliCreateSessionParams | null | undefined, options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
25762
|
-
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
25763
|
-
}
|
|
25764
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25765
|
-
declare const makeCli: (client: Composio) => Cli;
|
|
25766
|
-
//#endregion
|
|
25767
|
-
//#region src/compat/resources/logs/triggers.d.ts
|
|
25768
|
-
type TriggerListParamsGen = NonNullable<PostApiV31InternalTriggerLogsData['body']>;
|
|
25769
|
-
interface TriggerListParams extends TriggerListParamsGen {}
|
|
25770
|
-
type TriggerRetrieveResponseGen = GetApiV31InternalTriggerLogByIdResponses[200];
|
|
25771
|
-
interface TriggerRetrieveResponse extends TriggerRetrieveResponseGen {}
|
|
25772
|
-
type TriggerListResponseGen = PostApiV31InternalTriggerLogsResponses[200];
|
|
25773
|
-
interface TriggerListResponse extends TriggerListResponseGen {}
|
|
25774
|
-
/** `client.logs.triggers`. */
|
|
25775
|
-
interface Triggers {
|
|
25776
|
-
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
25777
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
25778
|
-
list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
25779
|
-
}
|
|
25780
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25781
|
-
declare const makeTriggers: (client: Composio) => Triggers;
|
|
25782
|
-
//#endregion
|
|
25783
|
-
//#region src/compat/resources/logs/tools.d.ts
|
|
25784
|
-
type ToolListParamsGen = NonNullable<PostApiV31InternalActionExecutionLogsData['body']>;
|
|
25785
|
-
interface ToolListParams extends ToolListParamsGen {}
|
|
25786
|
-
type ToolRetrieveResponseGen = GetApiV31InternalActionExecutionLogByIdResponses[200];
|
|
25787
|
-
interface ToolRetrieveResponse extends ToolRetrieveResponseGen {}
|
|
25788
|
-
type ToolListResponseGen = PostApiV31InternalActionExecutionLogsResponses[200];
|
|
25789
|
-
interface ToolListResponse extends ToolListResponseGen {}
|
|
25790
|
-
type ToolListFieldsResponseGen = GetApiV31InternalActionExecutionFieldsResponses[200];
|
|
25791
|
-
interface ToolListFieldsResponse extends ToolListFieldsResponseGen {}
|
|
25792
|
-
/** `client.logs.tools`. */
|
|
25793
|
-
interface Tools {
|
|
25794
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
25795
|
-
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
25796
|
-
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
25797
|
-
listFields(options?: RequestOptions): APIPromise<ToolListFieldsResponse>;
|
|
25798
|
-
}
|
|
25799
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25800
|
-
declare const makeTools: (client: Composio) => Tools;
|
|
25801
|
-
//#endregion
|
|
25802
26412
|
//#region src/compat/resources/logs/logs.d.ts
|
|
25803
26413
|
type LogCreateToolExecutionParamsGen = NonNullable<PostApiV31LogsToolExecutionData['body']>;
|
|
25804
26414
|
interface LogCreateToolExecutionParams extends LogCreateToolExecutionParamsGen {}
|
|
@@ -25807,14 +26417,12 @@ interface LogCreateToolExecutionResponse extends LogCreateToolExecutionResponseG
|
|
|
25807
26417
|
type LogRetrieveToolExecutionResponseGen = GetApiV31LogsToolExecutionByIdResponses[200];
|
|
25808
26418
|
interface LogRetrieveToolExecutionResponse extends LogRetrieveToolExecutionResponseGen {}
|
|
25809
26419
|
/** `client.logs`. */
|
|
25810
|
-
interface Logs {
|
|
25811
|
-
readonly triggers: Triggers;
|
|
25812
|
-
readonly tools: Tools;
|
|
26420
|
+
interface Logs$1 {
|
|
25813
26421
|
createToolExecution(body?: LogCreateToolExecutionParams | null | undefined, options?: RequestOptions): APIPromise<LogCreateToolExecutionResponse>;
|
|
25814
26422
|
retrieveToolExecution(id: string, options?: RequestOptions): APIPromise<LogRetrieveToolExecutionResponse>;
|
|
25815
26423
|
}
|
|
25816
26424
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25817
|
-
declare const makeLogs: (client: Composio) => Logs;
|
|
26425
|
+
declare const makeLogs$1: (client: Composio) => Logs$1;
|
|
25818
26426
|
//#endregion
|
|
25819
26427
|
//#region src/compat/resources/project/usage.d.ts
|
|
25820
26428
|
type UsageRetrieveParamsGen$1 = NonNullable<PostApiV31ProjectUsageByEntityTypeData['body']>;
|
|
@@ -25941,43 +26549,17 @@ interface Owner {
|
|
|
25941
26549
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25942
26550
|
declare const makeOwner: (client: Composio) => Owner;
|
|
25943
26551
|
//#endregion
|
|
25944
|
-
//#region src/compat/resources/org/consumer/project.d.ts
|
|
25945
|
-
type ProjectResolveHeadersGen = NonNullable<PostApiV31OrgConsumerProjectResolveData['headers']>;
|
|
25946
|
-
interface ProjectResolveParams extends ProjectResolveHeadersGen {}
|
|
25947
|
-
type ProjectResolveResponseGen = PostApiV31OrgConsumerProjectResolveResponses[200];
|
|
25948
|
-
interface ProjectResolveResponse extends ProjectResolveResponseGen {}
|
|
25949
|
-
/** `client.org.consumer.project`. */
|
|
25950
|
-
interface Project$1 {
|
|
25951
|
-
resolve(params: ProjectResolveParams, options?: RequestOptions): APIPromise<ProjectResolveResponse>;
|
|
25952
|
-
}
|
|
25953
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25954
|
-
declare const makeProject$1: (client: Composio) => Project$1;
|
|
25955
|
-
//#endregion
|
|
25956
|
-
//#region src/compat/resources/org/consumer/consumer.d.ts
|
|
25957
|
-
type ConsumerListConnectedToolkitsQueryGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['query']>;
|
|
25958
|
-
type ConsumerListConnectedToolkitsHeadersGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['headers']>;
|
|
25959
|
-
interface ConsumerListConnectedToolkitsParams extends ConsumerListConnectedToolkitsQueryGen, ConsumerListConnectedToolkitsHeadersGen {}
|
|
25960
|
-
type ConsumerListConnectedToolkitsResponseGen = GetApiV31OrgConsumerConnectedToolkitsResponses[200];
|
|
25961
|
-
interface ConsumerListConnectedToolkitsResponse extends ConsumerListConnectedToolkitsResponseGen {}
|
|
25962
|
-
/** `client.org.consumer`. */
|
|
25963
|
-
interface Consumer {
|
|
25964
|
-
readonly project: Project$1;
|
|
25965
|
-
listConnectedToolkits(params: ConsumerListConnectedToolkitsParams, options?: RequestOptions): APIPromise<ConsumerListConnectedToolkitsResponse>;
|
|
25966
|
-
}
|
|
25967
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25968
|
-
declare const makeConsumer: (client: Composio) => Consumer;
|
|
25969
|
-
//#endregion
|
|
25970
26552
|
//#region src/compat/resources/org/project.d.ts
|
|
25971
26553
|
type ProjectListParamsGen = NonNullable<GetApiV31OrgProjectListData['query']>;
|
|
25972
26554
|
interface ProjectListParams extends ProjectListParamsGen {}
|
|
25973
26555
|
type ProjectListResponseGen = GetApiV31OrgProjectListResponses[200];
|
|
25974
26556
|
interface ProjectListResponse extends ProjectListResponseGen {}
|
|
25975
26557
|
/** `client.org.project`. */
|
|
25976
|
-
interface Project {
|
|
26558
|
+
interface Project$1 {
|
|
25977
26559
|
list(query?: ProjectListParams | null | undefined, options?: RequestOptions): APIPromise<ProjectListResponse>;
|
|
25978
26560
|
}
|
|
25979
26561
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25980
|
-
declare const makeProject: (client: Composio) => Project;
|
|
26562
|
+
declare const makeProject$1: (client: Composio) => Project$1;
|
|
25981
26563
|
//#endregion
|
|
25982
26564
|
//#region src/compat/resources/org/usage.d.ts
|
|
25983
26565
|
type UsageRetrieveParamsGen = NonNullable<PostApiV31OrgUsageByEntityTypeData['body']>;
|
|
@@ -25996,34 +26578,20 @@ interface Usage {
|
|
|
25996
26578
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25997
26579
|
declare const makeUsage: (client: Composio) => Usage;
|
|
25998
26580
|
//#endregion
|
|
25999
|
-
//#region src/compat/resources/org/clanker.d.ts
|
|
26000
|
-
type ClankerCreateClaimParamsGen = NonNullable<PostApiV31OrgClankerCreateClaimData['body']>;
|
|
26001
|
-
interface ClankerCreateClaimParams extends ClankerCreateClaimParamsGen {}
|
|
26002
|
-
type ClankerCreateClaimResponseGen = PostApiV31OrgClankerCreateClaimResponses[200];
|
|
26003
|
-
interface ClankerCreateClaimResponse extends ClankerCreateClaimResponseGen {}
|
|
26004
|
-
/** `client.org.clanker`. */
|
|
26005
|
-
interface Clanker {
|
|
26006
|
-
createClaim(body: ClankerCreateClaimParams, options?: RequestOptions): APIPromise<ClankerCreateClaimResponse>;
|
|
26007
|
-
}
|
|
26008
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26009
|
-
declare const makeClanker: (client: Composio) => Clanker;
|
|
26010
|
-
//#endregion
|
|
26011
26581
|
//#region src/compat/resources/org/org.d.ts
|
|
26012
26582
|
type OrgListParamsGen = NonNullable<GetApiV31OrgListData['query']>;
|
|
26013
26583
|
interface OrgListParams extends OrgListParamsGen {}
|
|
26014
26584
|
type OrgListResponseGen = GetApiV31OrgListResponses[200];
|
|
26015
26585
|
interface OrgListResponse extends OrgListResponseGen {}
|
|
26016
26586
|
/** `client.org`. */
|
|
26017
|
-
interface Org {
|
|
26587
|
+
interface Org$1 {
|
|
26018
26588
|
readonly owner: Owner;
|
|
26019
|
-
readonly
|
|
26020
|
-
readonly project: Project;
|
|
26589
|
+
readonly project: Project$1;
|
|
26021
26590
|
readonly usage: Usage;
|
|
26022
|
-
readonly clanker: Clanker;
|
|
26023
26591
|
list(query?: OrgListParams | null | undefined, options?: RequestOptions): APIPromise<OrgListResponse>;
|
|
26024
26592
|
}
|
|
26025
26593
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26026
|
-
declare const makeOrg: (client: Composio) => Org;
|
|
26594
|
+
declare const makeOrg$1: (client: Composio) => Org$1;
|
|
26027
26595
|
//#endregion
|
|
26028
26596
|
//#region src/compat/resources/auth/session.d.ts
|
|
26029
26597
|
type SessionRetrieveInfoResponseGen = GetApiV31AuthSessionInfoResponses[200];
|
|
@@ -26043,6 +26611,18 @@ interface Auth {
|
|
|
26043
26611
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26044
26612
|
declare const makeAuth: (client: Composio) => Auth;
|
|
26045
26613
|
//#endregion
|
|
26614
|
+
//#region src/compat/resources/api-key-revocation.d.ts
|
|
26615
|
+
type ApiKeyRevocationCreateParamsGen = NonNullable<PostApiV31ApiKeyRevocationData['body']>;
|
|
26616
|
+
interface ApiKeyRevocationCreateParams extends ApiKeyRevocationCreateParamsGen {}
|
|
26617
|
+
type ApiKeyRevocationCreateResponseGen = PostApiV31ApiKeyRevocationResponses[200];
|
|
26618
|
+
interface ApiKeyRevocationCreateResponse extends ApiKeyRevocationCreateResponseGen {}
|
|
26619
|
+
/** `client.apiKeyRevocation`. */
|
|
26620
|
+
interface ApiKeyRevocation {
|
|
26621
|
+
create(body: ApiKeyRevocationCreateParams, options?: RequestOptions): APIPromise<ApiKeyRevocationCreateResponse>;
|
|
26622
|
+
}
|
|
26623
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26624
|
+
declare const makeApiKeyRevocation: (client: Composio) => ApiKeyRevocation;
|
|
26625
|
+
//#endregion
|
|
26046
26626
|
//#region src/compat/resources/custom.d.ts
|
|
26047
26627
|
type CustomDeleteToolkitParamsGen = NonNullable<DeleteApiV31CustomToolkitsBySlugData['query']>;
|
|
26048
26628
|
interface CustomDeleteToolkitParams extends CustomDeleteToolkitParamsGen {}
|
|
@@ -26102,12 +26682,11 @@ interface ClientResources {
|
|
|
26102
26682
|
readonly triggersTypes: TriggersTypes;
|
|
26103
26683
|
readonly triggerInstances: TriggerInstances;
|
|
26104
26684
|
readonly mcp: Mcp;
|
|
26105
|
-
readonly
|
|
26106
|
-
readonly logs: Logs;
|
|
26685
|
+
readonly logs: Logs$1;
|
|
26107
26686
|
readonly project: Project$3;
|
|
26108
26687
|
readonly webhookSubscriptions: WebhookSubscriptions;
|
|
26109
26688
|
readonly webhookEndpoints: WebhookEndpoints;
|
|
26110
|
-
readonly org: Org;
|
|
26689
|
+
readonly org: Org$1;
|
|
26111
26690
|
readonly auth: Auth;
|
|
26112
26691
|
readonly apiKeyRevocation: ApiKeyRevocation;
|
|
26113
26692
|
readonly custom: Custom;
|
|
@@ -26223,16 +26802,156 @@ declare class Composio {
|
|
|
26223
26802
|
static UnprocessableEntityError: typeof UnprocessableEntityError;
|
|
26224
26803
|
}
|
|
26225
26804
|
//#endregion
|
|
26226
|
-
//#region src/compat/resources/
|
|
26227
|
-
type
|
|
26228
|
-
interface
|
|
26229
|
-
type
|
|
26230
|
-
interface
|
|
26231
|
-
|
|
26232
|
-
interface
|
|
26233
|
-
|
|
26805
|
+
//#region src/compat/resources/_internal/cli/realtime.d.ts
|
|
26806
|
+
type RealtimeAuthParamsGen = NonNullable<PostApiV31CliRealtimeAuthData['body']>;
|
|
26807
|
+
interface RealtimeAuthParams extends RealtimeAuthParamsGen {}
|
|
26808
|
+
type RealtimeAuthResponseGen = PostApiV31CliRealtimeAuthResponses[200];
|
|
26809
|
+
interface RealtimeAuthResponse extends RealtimeAuthResponseGen {}
|
|
26810
|
+
type RealtimeCredentialsResponseGen = GetApiV31CliRealtimeCredentialsResponses[200];
|
|
26811
|
+
interface RealtimeCredentialsResponse extends RealtimeCredentialsResponseGen {}
|
|
26812
|
+
/** `client._internal.cli.realtime`. */
|
|
26813
|
+
interface Realtime {
|
|
26814
|
+
auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse>;
|
|
26815
|
+
credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse>;
|
|
26234
26816
|
}
|
|
26235
26817
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26236
|
-
declare const
|
|
26818
|
+
declare const makeRealtime: (client: Composio) => Realtime;
|
|
26819
|
+
//#endregion
|
|
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 {}
|
|
26824
|
+
type CliCreateSessionParamsGen = NonNullable<PostApiV31CliCreateSessionData['body']>;
|
|
26825
|
+
interface CliCreateSessionParams extends CliCreateSessionParamsGen {}
|
|
26826
|
+
type CliGetSessionParamsGen = NonNullable<GetApiV31CliGetSessionData['query']>;
|
|
26827
|
+
interface CliGetSessionParams extends CliGetSessionParamsGen {}
|
|
26828
|
+
type CliCreateCodactFailureResponseGen = PostApiV31CliCodactFailuresResponses[200];
|
|
26829
|
+
interface CliCreateCodactFailureResponse extends CliCreateCodactFailureResponseGen {}
|
|
26830
|
+
type CliCreateSessionResponseGen = PostApiV31CliCreateSessionResponses[201];
|
|
26831
|
+
interface CliCreateSessionResponse extends CliCreateSessionResponseGen {}
|
|
26832
|
+
type CliGetSessionResponseGen = GetApiV31CliGetSessionResponses[200];
|
|
26833
|
+
interface CliGetSessionResponse extends CliGetSessionResponseGen {}
|
|
26834
|
+
/** `client._internal.cli`. */
|
|
26835
|
+
interface Cli {
|
|
26836
|
+
readonly realtime: Realtime;
|
|
26837
|
+
createCodactFailure(params: CliCreateCodactFailureParams, options?: RequestOptions): APIPromise<CliCreateCodactFailureResponse>;
|
|
26838
|
+
createSession(body?: CliCreateSessionParams | null | undefined, options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
26839
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
26840
|
+
}
|
|
26841
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26842
|
+
declare const makeCli: (client: Composio) => Cli;
|
|
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
|
|
26864
|
+
//#region src/compat/resources/_internal/logs/triggers.d.ts
|
|
26865
|
+
type TriggerListParamsGen = NonNullable<PostApiV31InternalTriggerLogsData['body']>;
|
|
26866
|
+
interface TriggerListParams extends TriggerListParamsGen {}
|
|
26867
|
+
type TriggerRetrieveResponseGen = GetApiV31InternalTriggerLogByIdResponses[200];
|
|
26868
|
+
interface TriggerRetrieveResponse extends TriggerRetrieveResponseGen {}
|
|
26869
|
+
type TriggerListResponseGen = PostApiV31InternalTriggerLogsResponses[200];
|
|
26870
|
+
interface TriggerListResponse extends TriggerListResponseGen {}
|
|
26871
|
+
/** `client._internal.logs.triggers`. */
|
|
26872
|
+
interface Triggers {
|
|
26873
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26874
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
26875
|
+
list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
26876
|
+
}
|
|
26877
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26878
|
+
declare const makeTriggers: (client: Composio) => Triggers;
|
|
26879
|
+
//#endregion
|
|
26880
|
+
//#region src/compat/resources/_internal/logs/tools.d.ts
|
|
26881
|
+
type ToolListParamsGen = NonNullable<PostApiV31InternalActionExecutionLogsData['body']>;
|
|
26882
|
+
interface ToolListParams extends ToolListParamsGen {}
|
|
26883
|
+
type ToolRetrieveResponseGen = GetApiV31InternalActionExecutionLogByIdResponses[200];
|
|
26884
|
+
interface ToolRetrieveResponse extends ToolRetrieveResponseGen {}
|
|
26885
|
+
type ToolListResponseGen = PostApiV31InternalActionExecutionLogsResponses[200];
|
|
26886
|
+
interface ToolListResponse extends ToolListResponseGen {}
|
|
26887
|
+
type ToolListFieldsResponseGen = GetApiV31InternalActionExecutionFieldsResponses[200];
|
|
26888
|
+
interface ToolListFieldsResponse extends ToolListFieldsResponseGen {}
|
|
26889
|
+
/** `client._internal.logs.tools`. */
|
|
26890
|
+
interface Tools {
|
|
26891
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
26892
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26893
|
+
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
26894
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26895
|
+
listFields(options?: RequestOptions): APIPromise<ToolListFieldsResponse>;
|
|
26896
|
+
}
|
|
26897
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26898
|
+
declare const makeTools: (client: Composio) => Tools;
|
|
26899
|
+
//#endregion
|
|
26900
|
+
//#region src/compat/resources/_internal/logs/logs.d.ts
|
|
26901
|
+
/** `client._internal.logs`. */
|
|
26902
|
+
interface Logs {
|
|
26903
|
+
readonly triggers: Triggers;
|
|
26904
|
+
readonly tools: Tools;
|
|
26905
|
+
}
|
|
26906
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26907
|
+
declare const makeLogs: (client: Composio) => Logs;
|
|
26908
|
+
//#endregion
|
|
26909
|
+
//#region src/compat/resources/_internal/org/consumer/project.d.ts
|
|
26910
|
+
type ProjectResolveHeadersGen = NonNullable<PostApiV31OrgConsumerProjectResolveData['headers']>;
|
|
26911
|
+
interface ProjectResolveParams extends ProjectResolveHeadersGen {}
|
|
26912
|
+
type ProjectResolveResponseGen = PostApiV31OrgConsumerProjectResolveResponses[200];
|
|
26913
|
+
interface ProjectResolveResponse extends ProjectResolveResponseGen {}
|
|
26914
|
+
/** `client._internal.org.consumer.project`. */
|
|
26915
|
+
interface Project {
|
|
26916
|
+
resolve(params: ProjectResolveParams, options?: RequestOptions): APIPromise<ProjectResolveResponse>;
|
|
26917
|
+
}
|
|
26918
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26919
|
+
declare const makeProject: (client: Composio) => Project;
|
|
26920
|
+
//#endregion
|
|
26921
|
+
//#region src/compat/resources/_internal/org/consumer/consumer.d.ts
|
|
26922
|
+
type ConsumerListConnectedToolkitsQueryGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['query']>;
|
|
26923
|
+
type ConsumerListConnectedToolkitsHeadersGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['headers']>;
|
|
26924
|
+
interface ConsumerListConnectedToolkitsParams extends ConsumerListConnectedToolkitsQueryGen, ConsumerListConnectedToolkitsHeadersGen {}
|
|
26925
|
+
type ConsumerListConnectedToolkitsResponseGen = GetApiV31OrgConsumerConnectedToolkitsResponses[200];
|
|
26926
|
+
interface ConsumerListConnectedToolkitsResponse extends ConsumerListConnectedToolkitsResponseGen {}
|
|
26927
|
+
type ConsumerRetrieveConfigResponseGen = GetApiV31OrgConsumerConfigResponses[200];
|
|
26928
|
+
interface ConsumerRetrieveConfigResponse extends ConsumerRetrieveConfigResponseGen {}
|
|
26929
|
+
/** `client._internal.org.consumer`. */
|
|
26930
|
+
interface Consumer {
|
|
26931
|
+
readonly project: Project;
|
|
26932
|
+
listConnectedToolkits(params: ConsumerListConnectedToolkitsParams, options?: RequestOptions): APIPromise<ConsumerListConnectedToolkitsResponse>;
|
|
26933
|
+
retrieveConfig(options?: RequestOptions): APIPromise<ConsumerRetrieveConfigResponse>;
|
|
26934
|
+
}
|
|
26935
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26936
|
+
declare const makeConsumer: (client: Composio) => Consumer;
|
|
26937
|
+
//#endregion
|
|
26938
|
+
//#region src/compat/resources/_internal/org/org.d.ts
|
|
26939
|
+
/** `client._internal.org`. */
|
|
26940
|
+
interface Org {
|
|
26941
|
+
readonly consumer: Consumer;
|
|
26942
|
+
}
|
|
26943
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26944
|
+
declare const makeOrg: (client: Composio) => Org;
|
|
26945
|
+
//#endregion
|
|
26946
|
+
//#region src/compat/resources/_internal/_internal.d.ts
|
|
26947
|
+
/** `client._internal`. */
|
|
26948
|
+
interface Internal {
|
|
26949
|
+
readonly cli: Cli;
|
|
26950
|
+
readonly consumer: Consumer$1;
|
|
26951
|
+
readonly logs: Logs;
|
|
26952
|
+
readonly org: Org;
|
|
26953
|
+
}
|
|
26954
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26955
|
+
declare const makeInternal: (client: Composio) => Internal;
|
|
26237
26956
|
//#endregion
|
|
26238
|
-
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 };
|