@composio/client 2.0.0-rc.20 → 2.0.0-rc.22
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 +62 -1
- package/dist/_internal-7BQNRB9A.d.mts +265 -0
- package/dist/{api-key-revocation-DUHNHxSZ.d.mts → _internal-UUxDozdb.d.mts} +952 -279
- package/dist/effect/internal.d.mts +9 -0
- 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/{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/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 +451 -189
- package/dist/effect/schemas.mjs +11 -11
- package/dist/effect.d.mts +9 -246
- package/dist/effect.mjs +122 -102
- package/dist/{environments-BGA2C5nZ.mjs → environments-DIBy8nYx.mjs} +18 -10
- package/dist/{environments-xPjIJ-r7.d.mts → environments-Dz5jsC_v.d.mts} +1 -1
- package/dist/{generated-operations-DhZryVXy.mjs → generated-operations-igWp3zha.mjs} +21 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -11
- package/dist/internal.d.mts +9 -0
- package/dist/internal.mjs +1 -0
- package/dist/resources/_internal/_internal.d.mts +2 -0
- package/dist/resources/_internal/_internal.mjs +14 -0
- package/dist/resources/_internal/cli/cli.d.mts +2 -0
- package/dist/resources/_internal/cli/cli.mjs +25 -0
- 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/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 +3 -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/cli/cli.d.mts +2 -2
- package/dist/resources/cli/cli.mjs +8 -26
- package/dist/resources/cli.d.mts +2 -2
- package/dist/resources/connected-accounts.d.mts +1 -1
- package/dist/resources/connected-accounts.mjs +1 -1
- package/dist/resources/custom.d.mts +1 -1
- package/dist/resources/custom.mjs +1 -1
- package/dist/resources/files.d.mts +1 -1
- package/dist/resources/files.mjs +1 -1
- package/dist/resources/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/clanker.d.mts +1 -1
- package/dist/resources/org/clanker.mjs +1 -1
- package/dist/resources/org/org.d.mts +1 -1
- package/dist/resources/org/org.mjs +1 -3
- package/dist/resources/org/owner/owner.d.mts +1 -1
- package/dist/resources/org/owner/project.d.mts +1 -1
- package/dist/resources/org/owner/project.mjs +1 -1
- package/dist/resources/org/owner.d.mts +1 -1
- package/dist/resources/org/project.d.mts +1 -1
- package/dist/resources/org/project.mjs +1 -1
- package/dist/resources/org/usage.d.mts +1 -1
- package/dist/resources/org/usage.mjs +1 -1
- package/dist/resources/org.d.mts +2 -2
- package/dist/resources/project/project.d.mts +1 -1
- package/dist/resources/project/usage.d.mts +1 -1
- package/dist/resources/project/usage.mjs +1 -1
- package/dist/resources/project.d.mts +1 -1
- package/dist/resources/session-configs.d.mts +1 -1
- package/dist/resources/session-configs.mjs +1 -1
- package/dist/resources/tool-router/session/files.d.mts +1 -1
- package/dist/resources/tool-router/session/files.mjs +1 -1
- package/dist/resources/tool-router/session/session.d.mts +1 -1
- package/dist/resources/tool-router/session/session.mjs +1 -1
- package/dist/resources/tool-router/session.d.mts +1 -1
- package/dist/resources/tool-router/tool-router.d.mts +1 -1
- package/dist/resources/tool-router.d.mts +1 -1
- package/dist/resources/toolkits.d.mts +1 -1
- package/dist/resources/toolkits.mjs +1 -1
- package/dist/resources/tools.d.mts +1 -1
- package/dist/resources/tools.mjs +1 -1
- package/dist/resources/trigger-instances/manage.d.mts +1 -1
- package/dist/resources/trigger-instances/manage.mjs +1 -1
- package/dist/resources/trigger-instances/trigger-instances.d.mts +1 -1
- package/dist/resources/trigger-instances/trigger-instances.mjs +1 -1
- package/dist/resources/trigger-instances.d.mts +1 -1
- package/dist/resources/triggers-types.d.mts +1 -1
- package/dist/resources/triggers-types.mjs +1 -1
- package/dist/resources/webhook-endpoints.d.mts +1 -1
- package/dist/resources/webhook-endpoints.mjs +1 -1
- package/dist/resources/webhook-subscriptions.d.mts +1 -1
- package/dist/resources/webhook-subscriptions.mjs +1 -1
- package/package.json +10 -2
- package/dist/resources/cli/realtime.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/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/org/consumer.mjs → effect/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<{
|
|
@@ -1130,29 +1424,67 @@ type GetApiV31SessionConfigsBySessionConfigIdResponses = {
|
|
|
1130
1424
|
*/
|
|
1131
1425
|
archived: boolean;
|
|
1132
1426
|
/**
|
|
1133
|
-
* Stored Session access policy using the same enable/disable wire shape accepted on create and update.
|
|
1427
|
+
* Stored Session access policy using the same enable/disable wire shape accepted on create and update, with any require_approval lists.
|
|
1134
1428
|
*/
|
|
1135
1429
|
config: {
|
|
1136
1430
|
toolkits?: {
|
|
1137
1431
|
enable: Array<string>;
|
|
1432
|
+
/**
|
|
1433
|
+
* What in this entry needs the user's approval before it runs.
|
|
1434
|
+
*/
|
|
1435
|
+
require_approval?: Array<string>;
|
|
1138
1436
|
} | {
|
|
1139
1437
|
disable: Array<string>;
|
|
1438
|
+
/**
|
|
1439
|
+
* What in this entry needs the user's approval before it runs.
|
|
1440
|
+
*/
|
|
1441
|
+
require_approval?: Array<string>;
|
|
1442
|
+
} | {
|
|
1443
|
+
/**
|
|
1444
|
+
* What in this entry needs the user's approval before it runs.
|
|
1445
|
+
*/
|
|
1446
|
+
require_approval: Array<string>;
|
|
1140
1447
|
};
|
|
1141
1448
|
tools?: {
|
|
1142
1449
|
[key: string]: {
|
|
1143
1450
|
enable: Array<string>;
|
|
1451
|
+
/**
|
|
1452
|
+
* What in this entry needs the user's approval before it runs.
|
|
1453
|
+
*/
|
|
1454
|
+
require_approval?: Array<string>;
|
|
1144
1455
|
} | {
|
|
1145
1456
|
disable: Array<string>;
|
|
1457
|
+
/**
|
|
1458
|
+
* What in this entry needs the user's approval before it runs.
|
|
1459
|
+
*/
|
|
1460
|
+
require_approval?: Array<string>;
|
|
1146
1461
|
} | {
|
|
1147
1462
|
tags: {
|
|
1148
1463
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1149
1464
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Tags whose tools need the user's approval before they run.
|
|
1467
|
+
*/
|
|
1468
|
+
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1150
1469
|
};
|
|
1470
|
+
/**
|
|
1471
|
+
* What in this entry needs the user's approval before it runs.
|
|
1472
|
+
*/
|
|
1473
|
+
require_approval?: Array<string>;
|
|
1474
|
+
} | {
|
|
1475
|
+
/**
|
|
1476
|
+
* What in this entry needs the user's approval before it runs.
|
|
1477
|
+
*/
|
|
1478
|
+
require_approval: Array<string>;
|
|
1151
1479
|
};
|
|
1152
1480
|
};
|
|
1153
1481
|
tags?: {
|
|
1154
1482
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1155
1483
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1484
|
+
/**
|
|
1485
|
+
* Tags whose tools need the user's approval before they run.
|
|
1486
|
+
*/
|
|
1487
|
+
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
1156
1488
|
};
|
|
1157
1489
|
};
|
|
1158
1490
|
/**
|
|
@@ -2850,7 +3182,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2850
3182
|
*/
|
|
2851
3183
|
enable: Array<string>;
|
|
2852
3184
|
/**
|
|
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.
|
|
3185
|
+
* 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
3186
|
*/
|
|
2855
3187
|
require_approval?: Array<string>;
|
|
2856
3188
|
} | {
|
|
@@ -2859,12 +3191,12 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2859
3191
|
*/
|
|
2860
3192
|
disable: Array<string>;
|
|
2861
3193
|
/**
|
|
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.
|
|
3194
|
+
* 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
3195
|
*/
|
|
2864
3196
|
require_approval?: Array<string>;
|
|
2865
3197
|
} | {
|
|
2866
3198
|
/**
|
|
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.
|
|
3199
|
+
* 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
3200
|
*/
|
|
2869
3201
|
require_approval: Array<string>;
|
|
2870
3202
|
};
|
|
@@ -2954,7 +3286,7 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2954
3286
|
*/
|
|
2955
3287
|
enable: Array<string>;
|
|
2956
3288
|
/**
|
|
2957
|
-
* Tool calls matched here pause until the user approves them.
|
|
3289
|
+
* 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
3290
|
*/
|
|
2959
3291
|
require_approval?: Array<string>;
|
|
2960
3292
|
} | {
|
|
@@ -2963,40 +3295,40 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
2963
3295
|
*/
|
|
2964
3296
|
disable: Array<string>;
|
|
2965
3297
|
/**
|
|
2966
|
-
* Tool calls matched here pause until the user approves them.
|
|
3298
|
+
* 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
3299
|
*/
|
|
2968
3300
|
require_approval?: Array<string>;
|
|
2969
3301
|
} | {
|
|
2970
3302
|
/**
|
|
2971
|
-
*
|
|
3303
|
+
* 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
3304
|
*/
|
|
2973
3305
|
tags: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
2974
3306
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2975
3307
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2976
3308
|
/**
|
|
2977
|
-
* Tool calls matched here pause until the user approves them.
|
|
3309
|
+
* 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
3310
|
*/
|
|
2979
3311
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2980
3312
|
};
|
|
2981
3313
|
/**
|
|
2982
|
-
* Tool calls matched here pause until the user approves them.
|
|
3314
|
+
* 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
3315
|
*/
|
|
2984
3316
|
require_approval?: Array<string>;
|
|
2985
3317
|
} | {
|
|
2986
3318
|
/**
|
|
2987
|
-
* Tool calls matched here pause until the user approves them.
|
|
3319
|
+
* 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
3320
|
*/
|
|
2989
3321
|
require_approval: Array<string>;
|
|
2990
3322
|
};
|
|
2991
3323
|
};
|
|
2992
3324
|
/**
|
|
2993
|
-
*
|
|
3325
|
+
* 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
3326
|
*/
|
|
2995
3327
|
tags?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
2996
3328
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2997
3329
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
2998
3330
|
/**
|
|
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.
|
|
3331
|
+
* 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
3332
|
*/
|
|
3001
3333
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
3002
3334
|
};
|
|
@@ -3184,6 +3516,10 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
3184
3516
|
*/
|
|
3185
3517
|
enable?: boolean;
|
|
3186
3518
|
};
|
|
3519
|
+
/**
|
|
3520
|
+
* 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.
|
|
3521
|
+
*/
|
|
3522
|
+
restrict_egress_to_composio?: boolean;
|
|
3187
3523
|
/**
|
|
3188
3524
|
* 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
3525
|
*/
|
|
@@ -3202,17 +3538,78 @@ type PostApiV31ToolRouterSessionData = {
|
|
|
3202
3538
|
*/
|
|
3203
3539
|
tools?: Array<string> | string;
|
|
3204
3540
|
};
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3541
|
+
/**
|
|
3542
|
+
* 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.
|
|
3543
|
+
*/
|
|
3544
|
+
hooks?: Array<{
|
|
3545
|
+
type: 'before_execute';
|
|
3546
|
+
/**
|
|
3547
|
+
* Unique within the session. Shows up in results and logs.
|
|
3548
|
+
*/
|
|
3549
|
+
id: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3552
|
+
*/
|
|
3553
|
+
name?: string;
|
|
3554
|
+
/**
|
|
3555
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3556
|
+
*/
|
|
3557
|
+
applies_to: 'all' | {
|
|
3558
|
+
/**
|
|
3559
|
+
* Toolkit slugs
|
|
3560
|
+
*/
|
|
3561
|
+
toolkits: Array<string>;
|
|
3562
|
+
};
|
|
3563
|
+
handler: {
|
|
3564
|
+
type: 'condition_check';
|
|
3565
|
+
/**
|
|
3566
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3567
|
+
*/
|
|
3568
|
+
condition: string;
|
|
3569
|
+
action: 'block';
|
|
3570
|
+
};
|
|
3571
|
+
} | {
|
|
3572
|
+
type: 'after_execute';
|
|
3573
|
+
/**
|
|
3574
|
+
* Unique within the session. Shows up in results and logs.
|
|
3575
|
+
*/
|
|
3576
|
+
id: string;
|
|
3577
|
+
/**
|
|
3578
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3579
|
+
*/
|
|
3580
|
+
name?: string;
|
|
3581
|
+
/**
|
|
3582
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3583
|
+
*/
|
|
3584
|
+
applies_to: 'all' | {
|
|
3585
|
+
/**
|
|
3586
|
+
* Toolkit slugs
|
|
3587
|
+
*/
|
|
3588
|
+
toolkits: Array<string>;
|
|
3589
|
+
};
|
|
3590
|
+
handler: {
|
|
3591
|
+
type: 'condition_check';
|
|
3592
|
+
/**
|
|
3593
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3594
|
+
*/
|
|
3595
|
+
condition: string;
|
|
3596
|
+
action: 'block';
|
|
3597
|
+
} | {
|
|
3598
|
+
type: 'prompt_injection_check';
|
|
3599
|
+
action: 'block';
|
|
3600
|
+
};
|
|
3601
|
+
}>;
|
|
3602
|
+
search?: {
|
|
3603
|
+
enable?: boolean;
|
|
3604
|
+
};
|
|
3605
|
+
execute?: {
|
|
3606
|
+
enable_multi_execute?: boolean;
|
|
3607
|
+
};
|
|
3608
|
+
};
|
|
3609
|
+
path?: never;
|
|
3610
|
+
query?: never;
|
|
3611
|
+
url: '/api/v3.1/tool_router/session';
|
|
3612
|
+
};
|
|
3216
3613
|
type PostApiV31ToolRouterSessionResponses = {
|
|
3217
3614
|
/**
|
|
3218
3615
|
* Session successfully created. Returns the session ID and MCP server URL for the created session.
|
|
@@ -3433,6 +3830,67 @@ type PostApiV31ToolRouterSessionResponses = {
|
|
|
3433
3830
|
*/
|
|
3434
3831
|
enable: boolean;
|
|
3435
3832
|
};
|
|
3833
|
+
/**
|
|
3834
|
+
* Hooks that run on this session's tool calls.
|
|
3835
|
+
*/
|
|
3836
|
+
hooks?: Array<{
|
|
3837
|
+
type: 'before_execute';
|
|
3838
|
+
/**
|
|
3839
|
+
* Unique within the session. Shows up in results and logs.
|
|
3840
|
+
*/
|
|
3841
|
+
id: string;
|
|
3842
|
+
/**
|
|
3843
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3844
|
+
*/
|
|
3845
|
+
name?: string;
|
|
3846
|
+
/**
|
|
3847
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3848
|
+
*/
|
|
3849
|
+
applies_to: 'all' | {
|
|
3850
|
+
/**
|
|
3851
|
+
* Toolkit slugs
|
|
3852
|
+
*/
|
|
3853
|
+
toolkits: Array<string>;
|
|
3854
|
+
};
|
|
3855
|
+
handler: {
|
|
3856
|
+
type: 'condition_check';
|
|
3857
|
+
/**
|
|
3858
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3859
|
+
*/
|
|
3860
|
+
condition: string;
|
|
3861
|
+
action: 'block';
|
|
3862
|
+
};
|
|
3863
|
+
} | {
|
|
3864
|
+
type: 'after_execute';
|
|
3865
|
+
/**
|
|
3866
|
+
* Unique within the session. Shows up in results and logs.
|
|
3867
|
+
*/
|
|
3868
|
+
id: string;
|
|
3869
|
+
/**
|
|
3870
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
3871
|
+
*/
|
|
3872
|
+
name?: string;
|
|
3873
|
+
/**
|
|
3874
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
3875
|
+
*/
|
|
3876
|
+
applies_to: 'all' | {
|
|
3877
|
+
/**
|
|
3878
|
+
* Toolkit slugs
|
|
3879
|
+
*/
|
|
3880
|
+
toolkits: Array<string>;
|
|
3881
|
+
};
|
|
3882
|
+
handler: {
|
|
3883
|
+
type: 'condition_check';
|
|
3884
|
+
/**
|
|
3885
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
3886
|
+
*/
|
|
3887
|
+
condition: string;
|
|
3888
|
+
action: 'block';
|
|
3889
|
+
} | {
|
|
3890
|
+
type: 'prompt_injection_check';
|
|
3891
|
+
action: 'block';
|
|
3892
|
+
};
|
|
3893
|
+
}>;
|
|
3436
3894
|
/**
|
|
3437
3895
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
3438
3896
|
*/
|
|
@@ -3794,6 +4252,67 @@ type GetApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
3794
4252
|
*/
|
|
3795
4253
|
enable: boolean;
|
|
3796
4254
|
};
|
|
4255
|
+
/**
|
|
4256
|
+
* Hooks that run on this session's tool calls.
|
|
4257
|
+
*/
|
|
4258
|
+
hooks?: Array<{
|
|
4259
|
+
type: 'before_execute';
|
|
4260
|
+
/**
|
|
4261
|
+
* Unique within the session. Shows up in results and logs.
|
|
4262
|
+
*/
|
|
4263
|
+
id: string;
|
|
4264
|
+
/**
|
|
4265
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4266
|
+
*/
|
|
4267
|
+
name?: string;
|
|
4268
|
+
/**
|
|
4269
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4270
|
+
*/
|
|
4271
|
+
applies_to: 'all' | {
|
|
4272
|
+
/**
|
|
4273
|
+
* Toolkit slugs
|
|
4274
|
+
*/
|
|
4275
|
+
toolkits: Array<string>;
|
|
4276
|
+
};
|
|
4277
|
+
handler: {
|
|
4278
|
+
type: 'condition_check';
|
|
4279
|
+
/**
|
|
4280
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4281
|
+
*/
|
|
4282
|
+
condition: string;
|
|
4283
|
+
action: 'block';
|
|
4284
|
+
};
|
|
4285
|
+
} | {
|
|
4286
|
+
type: 'after_execute';
|
|
4287
|
+
/**
|
|
4288
|
+
* Unique within the session. Shows up in results and logs.
|
|
4289
|
+
*/
|
|
4290
|
+
id: string;
|
|
4291
|
+
/**
|
|
4292
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4293
|
+
*/
|
|
4294
|
+
name?: string;
|
|
4295
|
+
/**
|
|
4296
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4297
|
+
*/
|
|
4298
|
+
applies_to: 'all' | {
|
|
4299
|
+
/**
|
|
4300
|
+
* Toolkit slugs
|
|
4301
|
+
*/
|
|
4302
|
+
toolkits: Array<string>;
|
|
4303
|
+
};
|
|
4304
|
+
handler: {
|
|
4305
|
+
type: 'condition_check';
|
|
4306
|
+
/**
|
|
4307
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4308
|
+
*/
|
|
4309
|
+
condition: string;
|
|
4310
|
+
action: 'block';
|
|
4311
|
+
} | {
|
|
4312
|
+
type: 'prompt_injection_check';
|
|
4313
|
+
action: 'block';
|
|
4314
|
+
};
|
|
4315
|
+
}>;
|
|
3797
4316
|
/**
|
|
3798
4317
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
3799
4318
|
*/
|
|
@@ -3931,7 +4450,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3931
4450
|
*/
|
|
3932
4451
|
enable: Array<string>;
|
|
3933
4452
|
/**
|
|
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.
|
|
4453
|
+
* 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
4454
|
*/
|
|
3936
4455
|
require_approval?: Array<string>;
|
|
3937
4456
|
} | {
|
|
@@ -3940,12 +4459,12 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
3940
4459
|
*/
|
|
3941
4460
|
disable: Array<string>;
|
|
3942
4461
|
/**
|
|
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.
|
|
4462
|
+
* 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
4463
|
*/
|
|
3945
4464
|
require_approval?: Array<string>;
|
|
3946
4465
|
} | {
|
|
3947
4466
|
/**
|
|
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.
|
|
4467
|
+
* 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
4468
|
*/
|
|
3950
4469
|
require_approval: Array<string>;
|
|
3951
4470
|
};
|
|
@@ -4032,7 +4551,7 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4032
4551
|
*/
|
|
4033
4552
|
enable: Array<string>;
|
|
4034
4553
|
/**
|
|
4035
|
-
* Tool calls matched here pause until the user approves them.
|
|
4554
|
+
* 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
4555
|
*/
|
|
4037
4556
|
require_approval?: Array<string>;
|
|
4038
4557
|
} | {
|
|
@@ -4041,40 +4560,40 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4041
4560
|
*/
|
|
4042
4561
|
disable: Array<string>;
|
|
4043
4562
|
/**
|
|
4044
|
-
* Tool calls matched here pause until the user approves them.
|
|
4563
|
+
* 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
4564
|
*/
|
|
4046
4565
|
require_approval?: Array<string>;
|
|
4047
4566
|
} | {
|
|
4048
4567
|
/**
|
|
4049
|
-
*
|
|
4568
|
+
* 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
4569
|
*/
|
|
4051
4570
|
tags: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
4052
4571
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4053
4572
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4054
4573
|
/**
|
|
4055
|
-
* Tool calls matched here pause until the user approves them.
|
|
4574
|
+
* 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
4575
|
*/
|
|
4057
4576
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4058
4577
|
};
|
|
4059
4578
|
/**
|
|
4060
|
-
* Tool calls matched here pause until the user approves them.
|
|
4579
|
+
* 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
4580
|
*/
|
|
4062
4581
|
require_approval?: Array<string>;
|
|
4063
4582
|
} | {
|
|
4064
4583
|
/**
|
|
4065
|
-
* Tool calls matched here pause until the user approves them.
|
|
4584
|
+
* 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
4585
|
*/
|
|
4067
4586
|
require_approval: Array<string>;
|
|
4068
4587
|
};
|
|
4069
4588
|
};
|
|
4070
4589
|
/**
|
|
4071
|
-
*
|
|
4590
|
+
* 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
4591
|
*/
|
|
4073
4592
|
tags?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'> | {
|
|
4074
4593
|
enable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4075
4594
|
disable?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4076
4595
|
/**
|
|
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.
|
|
4596
|
+
* 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
4597
|
*/
|
|
4079
4598
|
require_approval?: Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>;
|
|
4080
4599
|
};
|
|
@@ -4135,6 +4654,67 @@ type PatchApiV31ToolRouterSessionBySessionIdData = {
|
|
|
4135
4654
|
execute?: {
|
|
4136
4655
|
enable_multi_execute?: boolean;
|
|
4137
4656
|
};
|
|
4657
|
+
/**
|
|
4658
|
+
* 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.
|
|
4659
|
+
*/
|
|
4660
|
+
hooks?: Array<{
|
|
4661
|
+
type: 'before_execute';
|
|
4662
|
+
/**
|
|
4663
|
+
* Unique within the session. Shows up in results and logs.
|
|
4664
|
+
*/
|
|
4665
|
+
id: string;
|
|
4666
|
+
/**
|
|
4667
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4668
|
+
*/
|
|
4669
|
+
name?: string;
|
|
4670
|
+
/**
|
|
4671
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4672
|
+
*/
|
|
4673
|
+
applies_to: 'all' | {
|
|
4674
|
+
/**
|
|
4675
|
+
* Toolkit slugs
|
|
4676
|
+
*/
|
|
4677
|
+
toolkits: Array<string>;
|
|
4678
|
+
};
|
|
4679
|
+
handler: {
|
|
4680
|
+
type: 'condition_check';
|
|
4681
|
+
/**
|
|
4682
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4683
|
+
*/
|
|
4684
|
+
condition: string;
|
|
4685
|
+
action: 'block';
|
|
4686
|
+
};
|
|
4687
|
+
} | {
|
|
4688
|
+
type: 'after_execute';
|
|
4689
|
+
/**
|
|
4690
|
+
* Unique within the session. Shows up in results and logs.
|
|
4691
|
+
*/
|
|
4692
|
+
id: string;
|
|
4693
|
+
/**
|
|
4694
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
4695
|
+
*/
|
|
4696
|
+
name?: string;
|
|
4697
|
+
/**
|
|
4698
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
4699
|
+
*/
|
|
4700
|
+
applies_to: 'all' | {
|
|
4701
|
+
/**
|
|
4702
|
+
* Toolkit slugs
|
|
4703
|
+
*/
|
|
4704
|
+
toolkits: Array<string>;
|
|
4705
|
+
};
|
|
4706
|
+
handler: {
|
|
4707
|
+
type: 'condition_check';
|
|
4708
|
+
/**
|
|
4709
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
4710
|
+
*/
|
|
4711
|
+
condition: string;
|
|
4712
|
+
action: 'block';
|
|
4713
|
+
} | {
|
|
4714
|
+
type: 'prompt_injection_check';
|
|
4715
|
+
action: 'block';
|
|
4716
|
+
};
|
|
4717
|
+
}> | null;
|
|
4138
4718
|
experimental?: {
|
|
4139
4719
|
/**
|
|
4140
4720
|
* Per-tool elicitation permission config. Replaces the stored block when provided.
|
|
@@ -4407,6 +4987,67 @@ type PatchApiV31ToolRouterSessionBySessionIdResponses = {
|
|
|
4407
4987
|
*/
|
|
4408
4988
|
enable: boolean;
|
|
4409
4989
|
};
|
|
4990
|
+
/**
|
|
4991
|
+
* Hooks that run on this session's tool calls.
|
|
4992
|
+
*/
|
|
4993
|
+
hooks?: Array<{
|
|
4994
|
+
type: 'before_execute';
|
|
4995
|
+
/**
|
|
4996
|
+
* Unique within the session. Shows up in results and logs.
|
|
4997
|
+
*/
|
|
4998
|
+
id: string;
|
|
4999
|
+
/**
|
|
5000
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5001
|
+
*/
|
|
5002
|
+
name?: string;
|
|
5003
|
+
/**
|
|
5004
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5005
|
+
*/
|
|
5006
|
+
applies_to: 'all' | {
|
|
5007
|
+
/**
|
|
5008
|
+
* Toolkit slugs
|
|
5009
|
+
*/
|
|
5010
|
+
toolkits: Array<string>;
|
|
5011
|
+
};
|
|
5012
|
+
handler: {
|
|
5013
|
+
type: 'condition_check';
|
|
5014
|
+
/**
|
|
5015
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5016
|
+
*/
|
|
5017
|
+
condition: string;
|
|
5018
|
+
action: 'block';
|
|
5019
|
+
};
|
|
5020
|
+
} | {
|
|
5021
|
+
type: 'after_execute';
|
|
5022
|
+
/**
|
|
5023
|
+
* Unique within the session. Shows up in results and logs.
|
|
5024
|
+
*/
|
|
5025
|
+
id: string;
|
|
5026
|
+
/**
|
|
5027
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5028
|
+
*/
|
|
5029
|
+
name?: string;
|
|
5030
|
+
/**
|
|
5031
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5032
|
+
*/
|
|
5033
|
+
applies_to: 'all' | {
|
|
5034
|
+
/**
|
|
5035
|
+
* Toolkit slugs
|
|
5036
|
+
*/
|
|
5037
|
+
toolkits: Array<string>;
|
|
5038
|
+
};
|
|
5039
|
+
handler: {
|
|
5040
|
+
type: 'condition_check';
|
|
5041
|
+
/**
|
|
5042
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5043
|
+
*/
|
|
5044
|
+
condition: string;
|
|
5045
|
+
action: 'block';
|
|
5046
|
+
} | {
|
|
5047
|
+
type: 'prompt_injection_check';
|
|
5048
|
+
action: 'block';
|
|
5049
|
+
};
|
|
5050
|
+
}>;
|
|
4410
5051
|
/**
|
|
4411
5052
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
4412
5053
|
*/
|
|
@@ -4861,6 +5502,67 @@ type PostApiV31ToolRouterSessionBySessionIdAttachResponses = {
|
|
|
4861
5502
|
*/
|
|
4862
5503
|
enable: boolean;
|
|
4863
5504
|
};
|
|
5505
|
+
/**
|
|
5506
|
+
* Hooks that run on this session's tool calls.
|
|
5507
|
+
*/
|
|
5508
|
+
hooks?: Array<{
|
|
5509
|
+
type: 'before_execute';
|
|
5510
|
+
/**
|
|
5511
|
+
* Unique within the session. Shows up in results and logs.
|
|
5512
|
+
*/
|
|
5513
|
+
id: string;
|
|
5514
|
+
/**
|
|
5515
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5516
|
+
*/
|
|
5517
|
+
name?: string;
|
|
5518
|
+
/**
|
|
5519
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5520
|
+
*/
|
|
5521
|
+
applies_to: 'all' | {
|
|
5522
|
+
/**
|
|
5523
|
+
* Toolkit slugs
|
|
5524
|
+
*/
|
|
5525
|
+
toolkits: Array<string>;
|
|
5526
|
+
};
|
|
5527
|
+
handler: {
|
|
5528
|
+
type: 'condition_check';
|
|
5529
|
+
/**
|
|
5530
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5531
|
+
*/
|
|
5532
|
+
condition: string;
|
|
5533
|
+
action: 'block';
|
|
5534
|
+
};
|
|
5535
|
+
} | {
|
|
5536
|
+
type: 'after_execute';
|
|
5537
|
+
/**
|
|
5538
|
+
* Unique within the session. Shows up in results and logs.
|
|
5539
|
+
*/
|
|
5540
|
+
id: string;
|
|
5541
|
+
/**
|
|
5542
|
+
* A readable name. The agent sees it when this hook blocks a call.
|
|
5543
|
+
*/
|
|
5544
|
+
name?: string;
|
|
5545
|
+
/**
|
|
5546
|
+
* Which tools the hook covers: "all" for all of them, or only the listed toolkits.
|
|
5547
|
+
*/
|
|
5548
|
+
applies_to: 'all' | {
|
|
5549
|
+
/**
|
|
5550
|
+
* Toolkit slugs
|
|
5551
|
+
*/
|
|
5552
|
+
toolkits: Array<string>;
|
|
5553
|
+
};
|
|
5554
|
+
handler: {
|
|
5555
|
+
type: 'condition_check';
|
|
5556
|
+
/**
|
|
5557
|
+
* What to block, written as a plain sentence. For example: "Sending email to anyone outside example.org".
|
|
5558
|
+
*/
|
|
5559
|
+
condition: string;
|
|
5560
|
+
action: 'block';
|
|
5561
|
+
} | {
|
|
5562
|
+
type: 'prompt_injection_check';
|
|
5563
|
+
action: 'block';
|
|
5564
|
+
};
|
|
5565
|
+
}>;
|
|
4864
5566
|
/**
|
|
4865
5567
|
* Preload configuration. Explicit slugs are returned as an array; dynamic preload is returned as "all".
|
|
4866
5568
|
*/
|
|
@@ -5586,6 +6288,8 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteResponses = {
|
|
|
5586
6288
|
} & ExecuteCompleted) | ({
|
|
5587
6289
|
result_type: 'failed';
|
|
5588
6290
|
} & ExecuteFailed) | ({
|
|
6291
|
+
result_type: 'blocked';
|
|
6292
|
+
} & ExecuteBlocked) | ({
|
|
5589
6293
|
result_type: 'input_required';
|
|
5590
6294
|
} & ExecuteRequiresUserInput);
|
|
5591
6295
|
};
|
|
@@ -5726,6 +6430,8 @@ type PostApiV31ToolRouterSessionBySessionIdExecuteMetaResponses = {
|
|
|
5726
6430
|
} & ExecuteCompleted) | ({
|
|
5727
6431
|
result_type: 'failed';
|
|
5728
6432
|
} & ExecuteFailed) | ({
|
|
6433
|
+
result_type: 'blocked';
|
|
6434
|
+
} & ExecuteBlocked) | ({
|
|
5729
6435
|
result_type: 'input_required';
|
|
5730
6436
|
} & ExecuteRequiresUserInput);
|
|
5731
6437
|
};
|
|
@@ -6325,11 +7031,19 @@ type GetApiV31AuthConfigsResponses = {
|
|
|
6325
7031
|
tools_available_for_execution?: Array<string>;
|
|
6326
7032
|
};
|
|
6327
7033
|
/**
|
|
6328
|
-
*
|
|
7034
|
+
* 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.
|
|
7035
|
+
*
|
|
7036
|
+
* @deprecated
|
|
6329
7037
|
*/
|
|
6330
7038
|
shared_credentials?: {
|
|
6331
7039
|
[key: string]: unknown;
|
|
6332
7040
|
};
|
|
7041
|
+
/**
|
|
7042
|
+
* Connection field values inherited by every connected account created under this auth config. Same value as shared_credentials; secret values are redacted.
|
|
7043
|
+
*/
|
|
7044
|
+
shared_connection_fields?: {
|
|
7045
|
+
[key: string]: unknown;
|
|
7046
|
+
};
|
|
6333
7047
|
/**
|
|
6334
7048
|
* Whether this auth config is enabled for tool router
|
|
6335
7049
|
*/
|
|
@@ -6562,11 +7276,19 @@ type GetApiV31AuthConfigsByNanoidResponses = {
|
|
|
6562
7276
|
tools_available_for_execution?: Array<string>;
|
|
6563
7277
|
};
|
|
6564
7278
|
/**
|
|
6565
|
-
*
|
|
7279
|
+
* 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.
|
|
7280
|
+
*
|
|
7281
|
+
* @deprecated
|
|
6566
7282
|
*/
|
|
6567
7283
|
shared_credentials?: {
|
|
6568
7284
|
[key: string]: unknown;
|
|
6569
7285
|
};
|
|
7286
|
+
/**
|
|
7287
|
+
* Connection field values inherited by every connected account created under this auth config. Same value as shared_credentials; secret values are redacted.
|
|
7288
|
+
*/
|
|
7289
|
+
shared_connection_fields?: {
|
|
7290
|
+
[key: string]: unknown;
|
|
7291
|
+
};
|
|
6570
7292
|
/**
|
|
6571
7293
|
* Whether this auth config is enabled for tool router
|
|
6572
7294
|
*/
|
|
@@ -6735,7 +7457,7 @@ type GetApiV31CliGetSessionResponses = {
|
|
|
6735
7457
|
*/
|
|
6736
7458
|
200: {
|
|
6737
7459
|
/**
|
|
6738
|
-
* The
|
|
7460
|
+
* The CLI session ID, or the code for a lookup by code
|
|
6739
7461
|
*/
|
|
6740
7462
|
id: string;
|
|
6741
7463
|
/**
|
|
@@ -21171,7 +21893,6 @@ type PostApiV31OrgOwnerProjectNewData = {
|
|
|
21171
21893
|
display_name?: string;
|
|
21172
21894
|
mask_secret_keys_in_connected_account?: boolean;
|
|
21173
21895
|
log_visibility_setting?: 'show_all' | 'dont_store_data';
|
|
21174
|
-
require_mcp_api_key?: boolean;
|
|
21175
21896
|
/**
|
|
21176
21897
|
* Whether to enable composio link for managed authentication. This key will be deprecated in the future. Please don't use this key.
|
|
21177
21898
|
*/
|
|
@@ -21187,6 +21908,10 @@ type PostApiV31OrgOwnerProjectNewData = {
|
|
|
21187
21908
|
theme?: {
|
|
21188
21909
|
[key: string]: unknown;
|
|
21189
21910
|
};
|
|
21911
|
+
/**
|
|
21912
|
+
* Enable Instant Toolkits for this project.
|
|
21913
|
+
*/
|
|
21914
|
+
enable_instant?: boolean;
|
|
21190
21915
|
/**
|
|
21191
21916
|
* 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
21917
|
*/
|
|
@@ -21529,6 +22254,10 @@ type PostApiV31OrgConsumerProjectResolveResponses = {
|
|
|
21529
22254
|
* Derived internal Composio user ID for the authenticated user in this consumer org context.
|
|
21530
22255
|
*/
|
|
21531
22256
|
consumer_user_id: string;
|
|
22257
|
+
/**
|
|
22258
|
+
* ID of the authenticated user the request was made as.
|
|
22259
|
+
*/
|
|
22260
|
+
user_id: string;
|
|
21532
22261
|
};
|
|
21533
22262
|
};
|
|
21534
22263
|
type GetApiV31OrgConsumerConnectedToolkitsData = {
|
|
@@ -22288,6 +23017,21 @@ type PostApiV31CustomToolkitsUpsertData = {
|
|
|
22288
23017
|
*/
|
|
22289
23018
|
description?: string;
|
|
22290
23019
|
};
|
|
23020
|
+
/**
|
|
23021
|
+
* 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.
|
|
23022
|
+
*/
|
|
23023
|
+
additional_fields?: {
|
|
23024
|
+
generic_id: {
|
|
23025
|
+
/**
|
|
23026
|
+
* Label shown to the user connecting their account
|
|
23027
|
+
*/
|
|
23028
|
+
display_name: string;
|
|
23029
|
+
/**
|
|
23030
|
+
* Help text below the input
|
|
23031
|
+
*/
|
|
23032
|
+
description?: string;
|
|
23033
|
+
};
|
|
23034
|
+
};
|
|
22291
23035
|
} | {
|
|
22292
23036
|
mode: 'DCR_OAUTH';
|
|
22293
23037
|
/**
|
|
@@ -23131,9 +23875,15 @@ type GetApiV31TriggersTypesBySlugResponses = {
|
|
|
23131
23875
|
*/
|
|
23132
23876
|
instructions: string;
|
|
23133
23877
|
/**
|
|
23134
|
-
*
|
|
23878
|
+
* Deprecated: use types. poll for any trigger that polls, even one a webhook wakes; otherwise webhook.
|
|
23879
|
+
*
|
|
23880
|
+
* @deprecated
|
|
23135
23881
|
*/
|
|
23136
23882
|
type: 'webhook' | 'poll';
|
|
23883
|
+
/**
|
|
23884
|
+
* The trigger mechanisms this trigger supports, in order of preference: webhook (event-based) before poll (scheduled check).
|
|
23885
|
+
*/
|
|
23886
|
+
types: Array<'webhook' | 'poll'>;
|
|
23137
23887
|
/**
|
|
23138
23888
|
* Information about the toolkit that provides this trigger
|
|
23139
23889
|
*/
|
|
@@ -23221,9 +23971,15 @@ type GetApiV31TriggersTypesResponses = {
|
|
|
23221
23971
|
*/
|
|
23222
23972
|
instructions: string;
|
|
23223
23973
|
/**
|
|
23224
|
-
*
|
|
23974
|
+
* Deprecated: use types. poll for any trigger that polls, even one a webhook wakes; otherwise webhook.
|
|
23975
|
+
*
|
|
23976
|
+
* @deprecated
|
|
23225
23977
|
*/
|
|
23226
23978
|
type: 'webhook' | 'poll';
|
|
23979
|
+
/**
|
|
23980
|
+
* The trigger mechanisms this trigger supports, in order of preference: webhook (event-based) before poll (scheduled check).
|
|
23981
|
+
*/
|
|
23982
|
+
types: Array<'webhook' | 'poll'>;
|
|
23227
23983
|
/**
|
|
23228
23984
|
* Information about the toolkit that provides this trigger
|
|
23229
23985
|
*/
|
|
@@ -24795,6 +25551,8 @@ type PostApiV31ToolRouterSessionBySessionIdProxyExecuteResponses = {
|
|
|
24795
25551
|
200: ({
|
|
24796
25552
|
result_type: 'completed';
|
|
24797
25553
|
} & ProxyExecuteCompleted) | ({
|
|
25554
|
+
result_type: 'blocked';
|
|
25555
|
+
} & ProxyExecuteBlocked) | ({
|
|
24798
25556
|
result_type: 'input_required';
|
|
24799
25557
|
} & ExecuteRequiresUserInput);
|
|
24800
25558
|
};
|
|
@@ -25059,127 +25817,14 @@ type GetApiV31ToolkitsChangelogResponses = {
|
|
|
25059
25817
|
};
|
|
25060
25818
|
};
|
|
25061
25819
|
//#endregion
|
|
25062
|
-
//#region src/compat/
|
|
25820
|
+
//#region src/compat/error.d.ts
|
|
25821
|
+
declare class ComposioError extends Error {}
|
|
25063
25822
|
/**
|
|
25064
|
-
*
|
|
25065
|
-
*
|
|
25066
|
-
*
|
|
25067
|
-
*
|
|
25068
|
-
*
|
|
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
|
-
type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
25167
|
-
/** A fully-specified request: the route plus the per-request options. */
|
|
25168
|
-
interface FinalRequestOptions extends RequestOptions {
|
|
25169
|
-
method: HTTPMethod;
|
|
25170
|
-
path: string;
|
|
25171
|
-
query?: Record<string, unknown> | null | undefined;
|
|
25172
|
-
body?: unknown;
|
|
25173
|
-
}
|
|
25174
|
-
//#endregion
|
|
25175
|
-
//#region src/compat/error.d.ts
|
|
25176
|
-
declare class ComposioError extends Error {}
|
|
25177
|
-
/**
|
|
25178
|
-
* The error envelope every Composio API error response carries — the spec's
|
|
25179
|
-
* shared `Error` schema, `{ error: { message, code, slug, status, request_id?,
|
|
25180
|
-
* suggested_fix?, errors? } }`. `APIError.error` stays the raw parsed body
|
|
25181
|
-
* (hard contract: a proxy can answer with anything); {@link APIError.details}
|
|
25182
|
-
* is the same body narrowed to this shape when it has it.
|
|
25823
|
+
* The error envelope every Composio API error response carries — the spec's
|
|
25824
|
+
* shared `Error` schema, `{ error: { message, code, slug, status, request_id?,
|
|
25825
|
+
* suggested_fix?, errors? } }`. `APIError.error` stays the raw parsed body
|
|
25826
|
+
* (hard contract: a proxy can answer with anything); {@link APIError.details}
|
|
25827
|
+
* is the same body narrowed to this shape when it has it.
|
|
25183
25828
|
*/
|
|
25184
25829
|
type APIErrorBody = Error$1;
|
|
25185
25830
|
declare class APIError<TStatus extends number | undefined = number | undefined, THeaders extends Headers | undefined = Headers | undefined, TError extends object | undefined = object | undefined> extends ComposioError {
|
|
@@ -25733,79 +26378,18 @@ interface Mcp {
|
|
|
25733
26378
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25734
26379
|
declare const makeMcp: (client: Composio) => Mcp;
|
|
25735
26380
|
//#endregion
|
|
25736
|
-
//#region src/compat/resources/cli/realtime.d.ts
|
|
25737
|
-
type RealtimeAuthParamsGen = NonNullable<PostApiV31CliRealtimeAuthData['body']>;
|
|
25738
|
-
interface RealtimeAuthParams extends RealtimeAuthParamsGen {}
|
|
25739
|
-
type RealtimeAuthResponseGen = PostApiV31CliRealtimeAuthResponses[200];
|
|
25740
|
-
interface RealtimeAuthResponse extends RealtimeAuthResponseGen {}
|
|
25741
|
-
type RealtimeCredentialsResponseGen = GetApiV31CliRealtimeCredentialsResponses[200];
|
|
25742
|
-
interface RealtimeCredentialsResponse extends RealtimeCredentialsResponseGen {}
|
|
25743
|
-
/** `client.cli.realtime`. */
|
|
25744
|
-
interface Realtime {
|
|
25745
|
-
auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse>;
|
|
25746
|
-
credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse>;
|
|
25747
|
-
}
|
|
25748
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25749
|
-
declare const makeRealtime: (client: Composio) => Realtime;
|
|
25750
|
-
//#endregion
|
|
25751
26381
|
//#region src/compat/resources/cli/cli.d.ts
|
|
25752
26382
|
type CliCreateCodactFailureBodyGen = NonNullable<PostApiV31CliCodactFailuresData['body']>;
|
|
25753
26383
|
type CliCreateCodactFailureHeadersGen = NonNullable<PostApiV31CliCodactFailuresData['headers']>;
|
|
25754
26384
|
interface CliCreateCodactFailureParams extends CliCreateCodactFailureBodyGen, CliCreateCodactFailureHeadersGen {}
|
|
25755
|
-
type CliCreateSessionParamsGen = NonNullable<PostApiV31CliCreateSessionData['body']>;
|
|
25756
|
-
interface CliCreateSessionParams extends CliCreateSessionParamsGen {}
|
|
25757
|
-
type CliGetSessionParamsGen = NonNullable<GetApiV31CliGetSessionData['query']>;
|
|
25758
|
-
interface CliGetSessionParams extends CliGetSessionParamsGen {}
|
|
25759
26385
|
type CliCreateCodactFailureResponseGen = PostApiV31CliCodactFailuresResponses[200];
|
|
25760
26386
|
interface CliCreateCodactFailureResponse extends CliCreateCodactFailureResponseGen {}
|
|
25761
|
-
type CliCreateSessionResponseGen = PostApiV31CliCreateSessionResponses[201];
|
|
25762
|
-
interface CliCreateSessionResponse extends CliCreateSessionResponseGen {}
|
|
25763
|
-
type CliGetSessionResponseGen = GetApiV31CliGetSessionResponses[200];
|
|
25764
|
-
interface CliGetSessionResponse extends CliGetSessionResponseGen {}
|
|
25765
26387
|
/** `client.cli`. */
|
|
25766
|
-
interface Cli {
|
|
25767
|
-
readonly realtime: Realtime;
|
|
26388
|
+
interface Cli$1 {
|
|
25768
26389
|
createCodactFailure(params: CliCreateCodactFailureParams, options?: RequestOptions): APIPromise<CliCreateCodactFailureResponse>;
|
|
25769
|
-
createSession(body?: CliCreateSessionParams | null | undefined, options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
25770
|
-
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
25771
|
-
}
|
|
25772
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25773
|
-
declare const makeCli: (client: Composio) => Cli;
|
|
25774
|
-
//#endregion
|
|
25775
|
-
//#region src/compat/resources/logs/triggers.d.ts
|
|
25776
|
-
type TriggerListParamsGen = NonNullable<PostApiV31InternalTriggerLogsData['body']>;
|
|
25777
|
-
interface TriggerListParams extends TriggerListParamsGen {}
|
|
25778
|
-
type TriggerRetrieveResponseGen = GetApiV31InternalTriggerLogByIdResponses[200];
|
|
25779
|
-
interface TriggerRetrieveResponse extends TriggerRetrieveResponseGen {}
|
|
25780
|
-
type TriggerListResponseGen = PostApiV31InternalTriggerLogsResponses[200];
|
|
25781
|
-
interface TriggerListResponse extends TriggerListResponseGen {}
|
|
25782
|
-
/** `client.logs.triggers`. */
|
|
25783
|
-
interface Triggers {
|
|
25784
|
-
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
25785
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
25786
|
-
list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
25787
|
-
}
|
|
25788
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25789
|
-
declare const makeTriggers: (client: Composio) => Triggers;
|
|
25790
|
-
//#endregion
|
|
25791
|
-
//#region src/compat/resources/logs/tools.d.ts
|
|
25792
|
-
type ToolListParamsGen = NonNullable<PostApiV31InternalActionExecutionLogsData['body']>;
|
|
25793
|
-
interface ToolListParams extends ToolListParamsGen {}
|
|
25794
|
-
type ToolRetrieveResponseGen = GetApiV31InternalActionExecutionLogByIdResponses[200];
|
|
25795
|
-
interface ToolRetrieveResponse extends ToolRetrieveResponseGen {}
|
|
25796
|
-
type ToolListResponseGen = PostApiV31InternalActionExecutionLogsResponses[200];
|
|
25797
|
-
interface ToolListResponse extends ToolListResponseGen {}
|
|
25798
|
-
type ToolListFieldsResponseGen = GetApiV31InternalActionExecutionFieldsResponses[200];
|
|
25799
|
-
interface ToolListFieldsResponse extends ToolListFieldsResponseGen {}
|
|
25800
|
-
/** `client.logs.tools`. */
|
|
25801
|
-
interface Tools {
|
|
25802
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
25803
|
-
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
25804
|
-
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
25805
|
-
listFields(options?: RequestOptions): APIPromise<ToolListFieldsResponse>;
|
|
25806
26390
|
}
|
|
25807
26391
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25808
|
-
declare const
|
|
26392
|
+
declare const makeCli$1: (client: Composio) => Cli$1;
|
|
25809
26393
|
//#endregion
|
|
25810
26394
|
//#region src/compat/resources/logs/logs.d.ts
|
|
25811
26395
|
type LogCreateToolExecutionParamsGen = NonNullable<PostApiV31LogsToolExecutionData['body']>;
|
|
@@ -25815,14 +26399,12 @@ interface LogCreateToolExecutionResponse extends LogCreateToolExecutionResponseG
|
|
|
25815
26399
|
type LogRetrieveToolExecutionResponseGen = GetApiV31LogsToolExecutionByIdResponses[200];
|
|
25816
26400
|
interface LogRetrieveToolExecutionResponse extends LogRetrieveToolExecutionResponseGen {}
|
|
25817
26401
|
/** `client.logs`. */
|
|
25818
|
-
interface Logs {
|
|
25819
|
-
readonly triggers: Triggers;
|
|
25820
|
-
readonly tools: Tools;
|
|
26402
|
+
interface Logs$1 {
|
|
25821
26403
|
createToolExecution(body?: LogCreateToolExecutionParams | null | undefined, options?: RequestOptions): APIPromise<LogCreateToolExecutionResponse>;
|
|
25822
26404
|
retrieveToolExecution(id: string, options?: RequestOptions): APIPromise<LogRetrieveToolExecutionResponse>;
|
|
25823
26405
|
}
|
|
25824
26406
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25825
|
-
declare const makeLogs: (client: Composio) => Logs;
|
|
26407
|
+
declare const makeLogs$1: (client: Composio) => Logs$1;
|
|
25826
26408
|
//#endregion
|
|
25827
26409
|
//#region src/compat/resources/project/usage.d.ts
|
|
25828
26410
|
type UsageRetrieveParamsGen$1 = NonNullable<PostApiV31ProjectUsageByEntityTypeData['body']>;
|
|
@@ -25949,43 +26531,17 @@ interface Owner {
|
|
|
25949
26531
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25950
26532
|
declare const makeOwner: (client: Composio) => Owner;
|
|
25951
26533
|
//#endregion
|
|
25952
|
-
//#region src/compat/resources/org/consumer/project.d.ts
|
|
25953
|
-
type ProjectResolveHeadersGen = NonNullable<PostApiV31OrgConsumerProjectResolveData['headers']>;
|
|
25954
|
-
interface ProjectResolveParams extends ProjectResolveHeadersGen {}
|
|
25955
|
-
type ProjectResolveResponseGen = PostApiV31OrgConsumerProjectResolveResponses[200];
|
|
25956
|
-
interface ProjectResolveResponse extends ProjectResolveResponseGen {}
|
|
25957
|
-
/** `client.org.consumer.project`. */
|
|
25958
|
-
interface Project$1 {
|
|
25959
|
-
resolve(params: ProjectResolveParams, options?: RequestOptions): APIPromise<ProjectResolveResponse>;
|
|
25960
|
-
}
|
|
25961
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25962
|
-
declare const makeProject$1: (client: Composio) => Project$1;
|
|
25963
|
-
//#endregion
|
|
25964
|
-
//#region src/compat/resources/org/consumer/consumer.d.ts
|
|
25965
|
-
type ConsumerListConnectedToolkitsQueryGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['query']>;
|
|
25966
|
-
type ConsumerListConnectedToolkitsHeadersGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['headers']>;
|
|
25967
|
-
interface ConsumerListConnectedToolkitsParams extends ConsumerListConnectedToolkitsQueryGen, ConsumerListConnectedToolkitsHeadersGen {}
|
|
25968
|
-
type ConsumerListConnectedToolkitsResponseGen = GetApiV31OrgConsumerConnectedToolkitsResponses[200];
|
|
25969
|
-
interface ConsumerListConnectedToolkitsResponse extends ConsumerListConnectedToolkitsResponseGen {}
|
|
25970
|
-
/** `client.org.consumer`. */
|
|
25971
|
-
interface Consumer {
|
|
25972
|
-
readonly project: Project$1;
|
|
25973
|
-
listConnectedToolkits(params: ConsumerListConnectedToolkitsParams, options?: RequestOptions): APIPromise<ConsumerListConnectedToolkitsResponse>;
|
|
25974
|
-
}
|
|
25975
|
-
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25976
|
-
declare const makeConsumer: (client: Composio) => Consumer;
|
|
25977
|
-
//#endregion
|
|
25978
26534
|
//#region src/compat/resources/org/project.d.ts
|
|
25979
26535
|
type ProjectListParamsGen = NonNullable<GetApiV31OrgProjectListData['query']>;
|
|
25980
26536
|
interface ProjectListParams extends ProjectListParamsGen {}
|
|
25981
26537
|
type ProjectListResponseGen = GetApiV31OrgProjectListResponses[200];
|
|
25982
26538
|
interface ProjectListResponse extends ProjectListResponseGen {}
|
|
25983
26539
|
/** `client.org.project`. */
|
|
25984
|
-
interface Project {
|
|
26540
|
+
interface Project$1 {
|
|
25985
26541
|
list(query?: ProjectListParams | null | undefined, options?: RequestOptions): APIPromise<ProjectListResponse>;
|
|
25986
26542
|
}
|
|
25987
26543
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
25988
|
-
declare const makeProject: (client: Composio) => Project;
|
|
26544
|
+
declare const makeProject$1: (client: Composio) => Project$1;
|
|
25989
26545
|
//#endregion
|
|
25990
26546
|
//#region src/compat/resources/org/usage.d.ts
|
|
25991
26547
|
type UsageRetrieveParamsGen = NonNullable<PostApiV31OrgUsageByEntityTypeData['body']>;
|
|
@@ -26022,16 +26578,15 @@ interface OrgListParams extends OrgListParamsGen {}
|
|
|
26022
26578
|
type OrgListResponseGen = GetApiV31OrgListResponses[200];
|
|
26023
26579
|
interface OrgListResponse extends OrgListResponseGen {}
|
|
26024
26580
|
/** `client.org`. */
|
|
26025
|
-
interface Org {
|
|
26581
|
+
interface Org$1 {
|
|
26026
26582
|
readonly owner: Owner;
|
|
26027
|
-
readonly
|
|
26028
|
-
readonly project: Project;
|
|
26583
|
+
readonly project: Project$1;
|
|
26029
26584
|
readonly usage: Usage;
|
|
26030
26585
|
readonly clanker: Clanker;
|
|
26031
26586
|
list(query?: OrgListParams | null | undefined, options?: RequestOptions): APIPromise<OrgListResponse>;
|
|
26032
26587
|
}
|
|
26033
26588
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26034
|
-
declare const makeOrg: (client: Composio) => Org;
|
|
26589
|
+
declare const makeOrg$1: (client: Composio) => Org$1;
|
|
26035
26590
|
//#endregion
|
|
26036
26591
|
//#region src/compat/resources/auth/session.d.ts
|
|
26037
26592
|
type SessionRetrieveInfoResponseGen = GetApiV31AuthSessionInfoResponses[200];
|
|
@@ -26051,6 +26606,18 @@ interface Auth {
|
|
|
26051
26606
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26052
26607
|
declare const makeAuth: (client: Composio) => Auth;
|
|
26053
26608
|
//#endregion
|
|
26609
|
+
//#region src/compat/resources/api-key-revocation.d.ts
|
|
26610
|
+
type ApiKeyRevocationCreateParamsGen = NonNullable<PostApiV31ApiKeyRevocationData['body']>;
|
|
26611
|
+
interface ApiKeyRevocationCreateParams extends ApiKeyRevocationCreateParamsGen {}
|
|
26612
|
+
type ApiKeyRevocationCreateResponseGen = PostApiV31ApiKeyRevocationResponses[200];
|
|
26613
|
+
interface ApiKeyRevocationCreateResponse extends ApiKeyRevocationCreateResponseGen {}
|
|
26614
|
+
/** `client.apiKeyRevocation`. */
|
|
26615
|
+
interface ApiKeyRevocation {
|
|
26616
|
+
create(body: ApiKeyRevocationCreateParams, options?: RequestOptions): APIPromise<ApiKeyRevocationCreateResponse>;
|
|
26617
|
+
}
|
|
26618
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26619
|
+
declare const makeApiKeyRevocation: (client: Composio) => ApiKeyRevocation;
|
|
26620
|
+
//#endregion
|
|
26054
26621
|
//#region src/compat/resources/custom.d.ts
|
|
26055
26622
|
type CustomDeleteToolkitParamsGen = NonNullable<DeleteApiV31CustomToolkitsBySlugData['query']>;
|
|
26056
26623
|
interface CustomDeleteToolkitParams extends CustomDeleteToolkitParamsGen {}
|
|
@@ -26110,12 +26677,12 @@ interface ClientResources {
|
|
|
26110
26677
|
readonly triggersTypes: TriggersTypes;
|
|
26111
26678
|
readonly triggerInstances: TriggerInstances;
|
|
26112
26679
|
readonly mcp: Mcp;
|
|
26113
|
-
readonly cli: Cli;
|
|
26114
|
-
readonly logs: Logs;
|
|
26680
|
+
readonly cli: Cli$1;
|
|
26681
|
+
readonly logs: Logs$1;
|
|
26115
26682
|
readonly project: Project$3;
|
|
26116
26683
|
readonly webhookSubscriptions: WebhookSubscriptions;
|
|
26117
26684
|
readonly webhookEndpoints: WebhookEndpoints;
|
|
26118
|
-
readonly org: Org;
|
|
26685
|
+
readonly org: Org$1;
|
|
26119
26686
|
readonly auth: Auth;
|
|
26120
26687
|
readonly apiKeyRevocation: ApiKeyRevocation;
|
|
26121
26688
|
readonly custom: Custom;
|
|
@@ -26216,9 +26783,6 @@ declare class Composio {
|
|
|
26216
26783
|
query?: Record<string, unknown> | null;
|
|
26217
26784
|
body?: unknown;
|
|
26218
26785
|
}): APIPromise<Rsp>;
|
|
26219
|
-
request<Rsp>(options: FinalRequestOptions): APIPromise<Rsp>;
|
|
26220
|
-
static Composio: typeof Composio;
|
|
26221
|
-
static DEFAULT_TIMEOUT: number;
|
|
26222
26786
|
static ComposioError: typeof ComposioError;
|
|
26223
26787
|
static APIError: typeof APIError;
|
|
26224
26788
|
static APIConnectionError: typeof APIConnectionError;
|
|
@@ -26234,16 +26798,125 @@ declare class Composio {
|
|
|
26234
26798
|
static UnprocessableEntityError: typeof UnprocessableEntityError;
|
|
26235
26799
|
}
|
|
26236
26800
|
//#endregion
|
|
26237
|
-
//#region src/compat/resources/
|
|
26238
|
-
type
|
|
26239
|
-
interface
|
|
26240
|
-
type
|
|
26241
|
-
interface
|
|
26242
|
-
|
|
26243
|
-
interface
|
|
26244
|
-
|
|
26801
|
+
//#region src/compat/resources/_internal/cli/realtime.d.ts
|
|
26802
|
+
type RealtimeAuthParamsGen = NonNullable<PostApiV31CliRealtimeAuthData['body']>;
|
|
26803
|
+
interface RealtimeAuthParams extends RealtimeAuthParamsGen {}
|
|
26804
|
+
type RealtimeAuthResponseGen = PostApiV31CliRealtimeAuthResponses[200];
|
|
26805
|
+
interface RealtimeAuthResponse extends RealtimeAuthResponseGen {}
|
|
26806
|
+
type RealtimeCredentialsResponseGen = GetApiV31CliRealtimeCredentialsResponses[200];
|
|
26807
|
+
interface RealtimeCredentialsResponse extends RealtimeCredentialsResponseGen {}
|
|
26808
|
+
/** `client._internal.cli.realtime`. */
|
|
26809
|
+
interface Realtime {
|
|
26810
|
+
auth(body: RealtimeAuthParams, options?: RequestOptions): APIPromise<RealtimeAuthResponse>;
|
|
26811
|
+
credentials(options?: RequestOptions): APIPromise<RealtimeCredentialsResponse>;
|
|
26245
26812
|
}
|
|
26246
26813
|
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26247
|
-
declare const
|
|
26814
|
+
declare const makeRealtime: (client: Composio) => Realtime;
|
|
26815
|
+
//#endregion
|
|
26816
|
+
//#region src/compat/resources/_internal/cli/cli.d.ts
|
|
26817
|
+
type CliCreateSessionParamsGen = NonNullable<PostApiV31CliCreateSessionData['body']>;
|
|
26818
|
+
interface CliCreateSessionParams extends CliCreateSessionParamsGen {}
|
|
26819
|
+
type CliGetSessionParamsGen = NonNullable<GetApiV31CliGetSessionData['query']>;
|
|
26820
|
+
interface CliGetSessionParams extends CliGetSessionParamsGen {}
|
|
26821
|
+
type CliCreateSessionResponseGen = PostApiV31CliCreateSessionResponses[201];
|
|
26822
|
+
interface CliCreateSessionResponse extends CliCreateSessionResponseGen {}
|
|
26823
|
+
type CliGetSessionResponseGen = GetApiV31CliGetSessionResponses[200];
|
|
26824
|
+
interface CliGetSessionResponse extends CliGetSessionResponseGen {}
|
|
26825
|
+
/** `client._internal.cli`. */
|
|
26826
|
+
interface Cli {
|
|
26827
|
+
readonly realtime: Realtime;
|
|
26828
|
+
createSession(body?: CliCreateSessionParams | null | undefined, options?: RequestOptions): APIPromise<CliCreateSessionResponse>;
|
|
26829
|
+
getSession(query: CliGetSessionParams, options?: RequestOptions): APIPromise<CliGetSessionResponse>;
|
|
26830
|
+
}
|
|
26831
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26832
|
+
declare const makeCli: (client: Composio) => Cli;
|
|
26833
|
+
//#endregion
|
|
26834
|
+
//#region src/compat/resources/_internal/logs/triggers.d.ts
|
|
26835
|
+
type TriggerListParamsGen = NonNullable<PostApiV31InternalTriggerLogsData['body']>;
|
|
26836
|
+
interface TriggerListParams extends TriggerListParamsGen {}
|
|
26837
|
+
type TriggerRetrieveResponseGen = GetApiV31InternalTriggerLogByIdResponses[200];
|
|
26838
|
+
interface TriggerRetrieveResponse extends TriggerRetrieveResponseGen {}
|
|
26839
|
+
type TriggerListResponseGen = PostApiV31InternalTriggerLogsResponses[200];
|
|
26840
|
+
interface TriggerListResponse extends TriggerListResponseGen {}
|
|
26841
|
+
/** `client._internal.logs.triggers`. */
|
|
26842
|
+
interface Triggers {
|
|
26843
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26844
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
26845
|
+
list(body?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
26846
|
+
}
|
|
26847
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26848
|
+
declare const makeTriggers: (client: Composio) => Triggers;
|
|
26849
|
+
//#endregion
|
|
26850
|
+
//#region src/compat/resources/_internal/logs/tools.d.ts
|
|
26851
|
+
type ToolListParamsGen = NonNullable<PostApiV31InternalActionExecutionLogsData['body']>;
|
|
26852
|
+
interface ToolListParams extends ToolListParamsGen {}
|
|
26853
|
+
type ToolRetrieveResponseGen = GetApiV31InternalActionExecutionLogByIdResponses[200];
|
|
26854
|
+
interface ToolRetrieveResponse extends ToolRetrieveResponseGen {}
|
|
26855
|
+
type ToolListResponseGen = PostApiV31InternalActionExecutionLogsResponses[200];
|
|
26856
|
+
interface ToolListResponse extends ToolListResponseGen {}
|
|
26857
|
+
type ToolListFieldsResponseGen = GetApiV31InternalActionExecutionFieldsResponses[200];
|
|
26858
|
+
interface ToolListFieldsResponse extends ToolListFieldsResponseGen {}
|
|
26859
|
+
/** `client._internal.logs.tools`. */
|
|
26860
|
+
interface Tools {
|
|
26861
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
26862
|
+
list(body: ToolListParams, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
26863
|
+
/** @deprecated Deprecated in the input OpenAPI schema. */
|
|
26864
|
+
listFields(options?: RequestOptions): APIPromise<ToolListFieldsResponse>;
|
|
26865
|
+
}
|
|
26866
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26867
|
+
declare const makeTools: (client: Composio) => Tools;
|
|
26868
|
+
//#endregion
|
|
26869
|
+
//#region src/compat/resources/_internal/logs/logs.d.ts
|
|
26870
|
+
/** `client._internal.logs`. */
|
|
26871
|
+
interface Logs {
|
|
26872
|
+
readonly triggers: Triggers;
|
|
26873
|
+
readonly tools: Tools;
|
|
26874
|
+
}
|
|
26875
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26876
|
+
declare const makeLogs: (client: Composio) => Logs;
|
|
26877
|
+
//#endregion
|
|
26878
|
+
//#region src/compat/resources/_internal/org/consumer/project.d.ts
|
|
26879
|
+
type ProjectResolveHeadersGen = NonNullable<PostApiV31OrgConsumerProjectResolveData['headers']>;
|
|
26880
|
+
interface ProjectResolveParams extends ProjectResolveHeadersGen {}
|
|
26881
|
+
type ProjectResolveResponseGen = PostApiV31OrgConsumerProjectResolveResponses[200];
|
|
26882
|
+
interface ProjectResolveResponse extends ProjectResolveResponseGen {}
|
|
26883
|
+
/** `client._internal.org.consumer.project`. */
|
|
26884
|
+
interface Project {
|
|
26885
|
+
resolve(params: ProjectResolveParams, options?: RequestOptions): APIPromise<ProjectResolveResponse>;
|
|
26886
|
+
}
|
|
26887
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26888
|
+
declare const makeProject: (client: Composio) => Project;
|
|
26889
|
+
//#endregion
|
|
26890
|
+
//#region src/compat/resources/_internal/org/consumer/consumer.d.ts
|
|
26891
|
+
type ConsumerListConnectedToolkitsQueryGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['query']>;
|
|
26892
|
+
type ConsumerListConnectedToolkitsHeadersGen = NonNullable<GetApiV31OrgConsumerConnectedToolkitsData['headers']>;
|
|
26893
|
+
interface ConsumerListConnectedToolkitsParams extends ConsumerListConnectedToolkitsQueryGen, ConsumerListConnectedToolkitsHeadersGen {}
|
|
26894
|
+
type ConsumerListConnectedToolkitsResponseGen = GetApiV31OrgConsumerConnectedToolkitsResponses[200];
|
|
26895
|
+
interface ConsumerListConnectedToolkitsResponse extends ConsumerListConnectedToolkitsResponseGen {}
|
|
26896
|
+
/** `client._internal.org.consumer`. */
|
|
26897
|
+
interface Consumer {
|
|
26898
|
+
readonly project: Project;
|
|
26899
|
+
listConnectedToolkits(params: ConsumerListConnectedToolkitsParams, options?: RequestOptions): APIPromise<ConsumerListConnectedToolkitsResponse>;
|
|
26900
|
+
}
|
|
26901
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26902
|
+
declare const makeConsumer: (client: Composio) => Consumer;
|
|
26903
|
+
//#endregion
|
|
26904
|
+
//#region src/compat/resources/_internal/org/org.d.ts
|
|
26905
|
+
/** `client._internal.org`. */
|
|
26906
|
+
interface Org {
|
|
26907
|
+
readonly consumer: Consumer;
|
|
26908
|
+
}
|
|
26909
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26910
|
+
declare const makeOrg: (client: Composio) => Org;
|
|
26911
|
+
//#endregion
|
|
26912
|
+
//#region src/compat/resources/_internal/_internal.d.ts
|
|
26913
|
+
/** `client._internal`. */
|
|
26914
|
+
interface Internal {
|
|
26915
|
+
readonly cli: Cli;
|
|
26916
|
+
readonly logs: Logs;
|
|
26917
|
+
readonly org: Org;
|
|
26918
|
+
}
|
|
26919
|
+
/** @internal Builds the resource over a client; `new Composio(...)` calls it. */
|
|
26920
|
+
declare const makeInternal: (client: Composio) => Internal;
|
|
26248
26921
|
//#endregion
|
|
26249
|
-
export {
|
|
26922
|
+
export { CustomSyncResponse as $, SessionProxyExecuteResponse as $i, makeCustom$1 as $n, ConnectedAccountDeleteParams as $r, WebhookSubscriptionCreateParams as $t, CliGetSessionResponse as A, AuthenticationError as Aa, ToolRetrieveRequiredScopesResponse as Ai, McpCreateInstanceResponse as An, makeAuthConfigs as Ar, Owner as At, LogLevel as B, FetchTransportDefaults as Ba, SessionConfigHistoryResponse as Bi, McpRetrieveAppParams as Bn, ToolkitRetrieveResponse as Br, ProjectRetrieveResponse as Bt, TriggerRetrieveResponse as C, Credential as Ca, ToolListParams$1 as Ci, makeLogs$1 as Cn, AuthConfigListResponse as Cr, UsageRetrieveSummaryParams as Ct, CliCreateSessionParams as D, APIError as Da, ToolRetrieveEnumResponse as Di, makeCli$1 as Dn, AuthConfigUpdateStatusParams as Dr, ProjectListParams as Dt, Cli as E, APIConnectionTimeoutError as Ea, ToolProxyResponse as Ei, CliCreateCodactFailureResponse as En, AuthConfigUpdateResponse as Er, Project$1 as Et, RealtimeCredentialsResponse as F, NotFoundError as Fa, makeToolRouter as Fi, McpDeleteResponse as Fn, ToolkitRetrieveCategoriesResponse as Fr, ProjectDeleteParams as Ft, makeSessionConfigs as G, APIPromise as Ga, SessionExecuteMetaResponse as Gi, makeMcp as Gn, Link as Gr, WebhookEndpointListResponse as Gt, SessionConfigsListParams as H, createFetchTransport as Ha, SessionCreateResponse as Hi, McpRetrieveResponse as Hn, ToolkitRetrieveScopesGrantContextResponse as Hr, WebhookEndpointCreateParams as Ht, makeRealtime as I, PermissionDeniedError as Ia, Session$1 as Ii, McpListInstancesParams as In, ToolkitRetrieveChangelogResponse as Ir, ProjectDeleteResponse as It, makeKeyring as J, SessionLinkParams as Ji, GenerateURLResponse as Jn, makeLink as Jr, WebhookEndpointRetrieveResponse as Jt, Keyring as K, SessionExecuteParams as Ki, Generate as Kn, LinkCreateParams as Kr, WebhookEndpointReplaceParams as Kt, ClientOptions as L, RateLimitError as La, SessionAttachParams as Li, McpListInstancesResponse as Ln, ToolkitRetrieveMultiParams as Lr, ProjectListParams$1 as Lt, Realtime as M, ComposioError as Ma, Tools$1 as Mi, McpCreateResponse as Mn, ToolkitListResponse as Mr, Project$2 as Mt, RealtimeAuthParams as N, ConflictError as Na, makeTools$1 as Ni, McpDeleteInstanceParams as Nn, ToolkitRecommendScopesParams as Nr, ProjectCreateParams as Nt, CliCreateSessionResponse as O, APIErrorBody as Oa, ToolRetrieveParams as Oi, Mcp as On, AuthConfigUpdateStatusResponse as Or, ProjectListResponse as Ot, RealtimeAuthResponse as P, InternalServerError as Pa, ToolRouter as Pi, McpDeleteInstanceResponse as Pn, ToolkitRecommendScopesResponse as Pr, ProjectCreateResponse as Pt, CustomSyncParams as Q, SessionProxyExecuteParams as Qi, CustomCreateResponse as Qn, ConnectedAccountCreateResponse as Qr, makeWebhookEndpoints as Qt, Composio as R, UnprocessableEntityError as Ra, SessionAttachResponse as Ri, McpListParams as Rn, ToolkitRetrieveMultiResponse as Rr, ProjectListResponse$1 as Rt, TriggerListResponse as S, AutoCredentials as Sa, ToolGetInputResponse as Si, Logs$1 as Sn, AuthConfigListParams as Sr, UsageRetrieveResponse as St, makeTriggers as T, APIConnectionError as Ta, ToolProxyParams as Ti, CliCreateCodactFailureParams as Tn, AuthConfigUpdateParams as Tr, makeUsage as Tt, SessionConfigsListResponse as U, ClientIdentity as Ua, SessionDeleteResponse as Ui, McpUpdateParams as Un, Toolkits as Ur, WebhookEndpointCreateResponse as Ut, SessionConfigs as V, Transport as Va, SessionCreateParams as Vi, McpRetrieveAppResponse as Vn, ToolkitRetrieveScopesGrantContextParams as Vr, makeProject$2 as Vt, SessionConfigsRetrieveResponse as W, HeadersLike as Wa, SessionExecuteMetaParams as Wi, McpUpdateResponse as Wn, makeToolkits as Wr, WebhookEndpointListParams as Wt, CustomDeleteToolkitParams as X, SessionPatchParams as Xi, Custom$1 as Xn, ConnectedAccountCompleteAuthResponse as Xr, WebhookEndpointUpdateResponse as Xt, Custom as Y, SessionLinkResponse as Yi, makeGenerate as Yn, ConnectedAccountCompleteAuthParams as Yr, WebhookEndpointUpdateParams as Yt, CustomDeleteToolkitResponse as Z, SessionPatchResponse as Zi, CustomCreateParams as Zn, ConnectedAccountCreateParams as Zr, WebhookEndpoints as Zt, ToolListResponse as _, makeFiles$1 as _a, Files as _i, UsageRetrieveSummaryResponse$1 as _n, makeTriggersTypes as _r, ClankerCreateClaimParams as _t, Consumer as a, SessionToolsParams as aa, ConnectedAccountRefreshParams as ai, WebhookSubscriptionRetrieveResponse as an, makeTriggerInstances as ar, ApiKeyRevocationCreateResponse as at, makeTools as b, AuthMode as ba, ToolExecuteResponse as bi, LogCreateToolExecutionResponse as bn, AuthConfigDeleteParams as br, Usage as bt, makeConsumer as c, FileCreateDownloadURLParams as ca, ConnectedAccountRevokeResponse as ci, WebhookSubscriptionUpdateResponse as cn, ManageUpdateParams as cr, makeAuth as ct, ProjectResolveResponse as d, FileCreateUploadURLResponse as da, ConnectedAccounts as di, Project$3 as dn, TriggersTypeListParams as dr, makeSession as dt, SessionRetrieveResponse as ea, ConnectedAccountDeleteResponse as ei, WebhookSubscriptionCreateResponse as en, TriggerInstanceListActiveParams as er, CustomUpsertParams as et, makeProject as f, FileDeleteParams as fa, makeConnectedAccounts as fi, makeProject$3 as fn, TriggersTypeListResponse as fr, Org$1 as ft, ToolListParams as g, Files$1 as ga, FileListResponse as gi, UsageRetrieveSummaryParams$1 as gn, TriggersTypes as gr, Clanker as gt, ToolListFieldsResponse as h, FileListResponse$1 as ha, FileListParams as hi, UsageRetrieveResponse$1 as hn, TriggersTypeRetrieveResponse as hr, makeOrg$1 as ht, makeOrg as i, SessionToolkitsResponse as ia, ConnectedAccountPatchResponse as ii, WebhookSubscriptionListResponse as in, TriggerInstances as ir, ApiKeyRevocationCreateParams as it, makeCli as j, BadRequestError as ja, ToolRetrieveResponse$1 as ji, McpCreateParams as jn, ToolkitListParams as jr, makeOwner as jt, CliGetSessionParams as k, APIUserAbortError as ka, ToolRetrieveRequiredScopesParams as ki, McpCreateInstanceParams as kn, AuthConfigs as kr, makeProject$1 as kt, Project as l, FileCreateDownloadURLResponse as la, ConnectedAccountUpdateStatusParams as li, WebhookSubscriptions as ln, ManageUpdateResponse as lr, Session as lt, makeLogs as m, FileListParams$1 as ma, FileCreatePresignedURLResponse as mi, UsageRetrieveParams$1 as mn, TriggersTypeRetrieveParams as mr, OrgListResponse as mt, makeInternal as n, SessionSearchResponse as na, ConnectedAccountListResponse as ni, WebhookSubscriptionListEventTypesResponse as nn, TriggerInstanceUpsertParams as nr, makeCustom as nt, ConsumerListConnectedToolkitsParams as o, SessionToolsResponse as oa, ConnectedAccountRefreshResponse as oi, WebhookSubscriptionRotateSecretResponse as on, Manage as or, makeApiKeyRevocation as ot, Logs as p, FileDeleteResponse as pa, FileCreatePresignedURLParams as pi, Usage$1 as pn, TriggersTypeRetrieveEnumResponse as pr, OrgListParams as pt, KeyringListTransferKeysResponse as q, SessionExecuteResponse as qi, GenerateURLParams as qn, LinkCreateResponse as qr, WebhookEndpointReplaceResponse as qt, Org as r, SessionToolkitsParams as ra, ConnectedAccountPatchParams as ri, WebhookSubscriptionListParams as rn, TriggerInstanceUpsertResponse as rr, ApiKeyRevocation as rt, ConsumerListConnectedToolkitsResponse as s, makeSession$1 as sa, ConnectedAccountRetrieveResponse as si, WebhookSubscriptionUpdateParams as sn, ManageDeleteResponse as sr, Auth as st, Internal as t, SessionSearchParams as ta, ConnectedAccountListParams as ti, WebhookSubscriptionDeleteResponse as tn, TriggerInstanceListActiveResponse as tr, CustomUpsertResponse as tt, ProjectResolveParams as u, FileCreateUploadURLParams as ua, ConnectedAccountUpdateStatusResponse as ui, makeWebhookSubscriptions as un, makeManage as ur, SessionRetrieveInfoResponse as ut, ToolRetrieveResponse as v, Auth$1 as va, makeFiles as vi, makeUsage$1 as vn, AuthConfigCreateParams as vr, ClankerCreateClaimResponse as vt, Triggers as w, Scope as wa, ToolListResponse$1 as wi, Cli$1 as wn, AuthConfigRetrieveResponse as wr, UsageRetrieveSummaryResponse as wt, TriggerListParams as x, AuthOf as xa, ToolGetInputParams as xi, LogRetrieveToolExecutionResponse as xn, AuthConfigDeleteResponse as xr, UsageRetrieveParams as xt, Tools as y, AuthConstructors as ya, ToolExecuteParams as yi, LogCreateToolExecutionParams as yn, AuthConfigCreateResponse as yr, makeClanker as yt, EnvironmentMap as z, RequestOptions as za, SessionConfigHistoryParams as zi, McpListResponse as zn, ToolkitRetrieveParams as zr, ProjectRegenerateAPIKeyResponse as zt };
|