@composio/core 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{CustomTool-BYHB7sPs.mjs → CustomTool-Bd1KdWvo.mjs} +9 -8
- package/dist/{CustomTool-CqPoLUD6.d.mts → CustomTool-CMW-d2ZN.d.mts} +10 -9
- package/dist/{Telemetry-41JkqpZ7.mjs → Telemetry-D2PJwXKx.mjs} +1 -1
- package/dist/{cancellation-ZoRh6EJQ.mjs → cancellation-BoJjs34Y.mjs} +1 -1
- package/dist/{composio-BUa10iB3.d.mts → composio-D5UV5HXN.d.mts} +799 -100
- package/dist/{customTool.types-gX421uPT.d.mts → customTool.types-B9fs34dv.d.mts} +105 -60
- package/dist/docs/reference/sdk-reference/typescript/composio.mdx +1 -1
- package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +86 -3
- package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +1 -1
- package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +1 -1
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +51 -13
- package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +6 -6
- package/dist/docs/reference/sdk-reference/typescript/tools.mdx +4 -4
- package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +5 -1
- package/dist/{errors-Cly0vXFh.mjs → errors-BK6Xc7Ia.mjs} +65 -1
- package/dist/experimental/index.d.mts +3 -3
- package/dist/experimental/index.mjs +1 -1
- package/dist/{fileUtils.node-DNLhLg0W.mjs → fileUtils.node-ILI1IjnZ.mjs} +4 -3
- package/dist/index.d.mts +46 -16
- package/dist/index.mjs +2973 -2778
- package/dist/models/Files.node.mjs +2 -2
- package/dist/sensitiveFileUploadPaths-BaEORC7-.mjs +588 -0
- package/dist/{types-DXxfzBX3.d.mts → types-CaP2SytR.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +3 -3
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +7 -6
- package/src/errors/ToolErrors.ts +73 -1
- package/src/experimental/index.ts +6 -1
- package/src/lib/toolRouterParams.ts +68 -33
- package/src/lib/toolRouterSessionDelete.ts +1 -10
- package/src/models/ConnectedAccounts.ts +3 -3
- package/src/models/ConnectionRequest.ts +38 -34
- package/src/models/CustomTool.ts +26 -31
- package/src/models/CustomToolkits.ts +116 -10
- package/src/models/Experimental.ts +1 -1
- package/src/models/MCP.ts +1 -2
- package/src/models/SessionConfigs.ts +11 -3
- package/src/models/SessionContext.ts +4 -4
- package/src/models/ToolRouter.ts +26 -17
- package/src/models/ToolRouterSession.ts +39 -24
- package/src/models/Tools.ts +60 -14
- package/src/models/Triggers.ts +12 -5
- package/src/models/inlineCustomToolsPayload.ts +3 -3
- package/src/models/proxyParamsTransform.ts +1 -1
- package/src/types/customTool.types.ts +62 -33
- package/src/types/customToolkits.types.ts +91 -11
- package/src/types/sessionConfigs.types.ts +21 -7
- package/src/types/toolRouter.types.ts +53 -24
- package/src/types/triggers.types.ts +14 -0
- package/src/utils/fileUtils.node.ts +5 -2
- package/src/utils/mime.ts +347 -1
- package/src/utils/rateLimit.ts +25 -0
- package/src/utils/transformers/connectedAccounts.ts +2 -7
- package/src/utils/transformers/customToolkits.ts +79 -10
- package/src/utils/transformers/sessionConfigs.ts +3 -3
- package/src/utils/transformers/toolRouterResponseTransform.ts +23 -75
- package/src/utils/transformers/toolkits.ts +7 -13
- package/src/utils/transformers/triggers.ts +28 -18
- package/dist/sensitiveFileUploadPaths-BlLp-Yo2.mjs +0 -189
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as ToolExecuteResponse, Dr as UpdateConnectedAccountAclParams, Ei as McpServerGetResponse, Fi as ExecuteToolFnOptions, Hn as ConnectedAccountCompleteAuthParams, J as ToolRouterCreateSessionConfig, Ja as Tool, Mr as BaseComposioProvider, Na as ProviderOptions, Nn as ComposioRequestOptions, Nr as BaseNonAgenticProvider, P as Session, Pa as SessionExecuteMetaModifiers, Pn as ConnectionRequest, Qn as ConnectedAccountListResponse, S as LocalTool, St as ToolRouterSessionDeleteResponse, Wn as ConnectedAccountCompleteAuthResponse, Xn as ConnectedAccountListParams, Ya as ToolExecuteMetaParams, Za as ToolExecuteParams, ar as ConnectedAccountRevokeResponse, br as CreateConnectedAccountOptions, co as ToolRetrievalOptions, gr as CreateConnectedAccountLinkOptions, ho as ToolkitVersionParam, ja as ExecuteToolModifiers, ji as McpUrlResponse, kr as UpdateConnectedAccountParams, no as ToolListParams, oo as ToolProxyParams, qa as SchemaModifierOptions, rr as ConnectedAccountRetrieveResponse, to as ToolList, tr as ConnectedAccountRefreshOptions, w as LocalToolkit, z as SessionWithoutMcp, zi as ToolCallSession } from "./customTool.types-B9fs34dv.mjs";
|
|
2
2
|
import ComposioClient, { Composio } from "@composio/client";
|
|
3
3
|
import z, { z as z$1 } from "zod/v3";
|
|
4
4
|
import { Files } from "#files";
|
|
5
|
+
import { z as z$2 } from "zod";
|
|
5
6
|
import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
|
|
6
|
-
import { SessionExecuteParams } from "@composio/client/resources/tool-router/session
|
|
7
|
+
import { SessionCreateParams, SessionExecuteParams } from "@composio/client/resources/tool-router/session";
|
|
7
8
|
import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
|
|
8
|
-
import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/
|
|
9
|
+
import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/triggers-types";
|
|
9
10
|
import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
|
|
10
11
|
import { OpenAI } from "openai";
|
|
11
12
|
//#region src/models/Tools.d.ts
|
|
12
13
|
type ToolRouterSessionExecuteOptions = {
|
|
13
|
-
experimental?: SessionExecuteParams
|
|
14
|
+
experimental?: NonNullable<SessionExecuteParams['experimental']>;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* This class is used to manage tools in the Composio SDK.
|
|
@@ -28,6 +29,12 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
28
29
|
* Scoped per-instance so a fresh `Composio` starts with a clean slate.
|
|
29
30
|
*/
|
|
30
31
|
private readonly warnedAutoUploadDisabledForTool;
|
|
32
|
+
/**
|
|
33
|
+
* Schemas `execute()` already fetched, so repeated executions don't each spend a request.
|
|
34
|
+
* Holds what `getRawComposioToolBySlug` returned with no `modifySchema`, so a caller's schema
|
|
35
|
+
* modifiers never reach it.
|
|
36
|
+
*/
|
|
37
|
+
private readonly executeToolSchemas;
|
|
31
38
|
constructor(client: ComposioClient, config?: ComposioConfig<TProvider>);
|
|
32
39
|
/**
|
|
33
40
|
* Transforms tool data from snake_case API format to camelCase for internal SDK use.
|
|
@@ -100,9 +107,9 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
100
107
|
* Lists Composio API tools available to the SDK.
|
|
101
108
|
*
|
|
102
109
|
* This method fetches remote Composio tools from the API in raw format. The response can be
|
|
103
|
-
* filtered and modified as needed.
|
|
110
|
+
* filtered and modified as needed. Experimental local tools are session-scoped; attach
|
|
104
111
|
* them when creating or reusing a Tool Router session, then use `session.tools()`,
|
|
105
|
-
* `session.
|
|
112
|
+
* `session.localTools()`, or `session.execute()`.
|
|
106
113
|
* It provides access to the underlying tool data without provider-specific wrapping.
|
|
107
114
|
*
|
|
108
115
|
* @param {ToolListParams} query - Query parameters to filter the tools (required)
|
|
@@ -179,8 +186,8 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
179
186
|
* This method fetches a single tool in raw format without provider-specific wrapping,
|
|
180
187
|
* providing direct access to the tool's schema and metadata. Tool versions are controlled
|
|
181
188
|
* at the Composio SDK initialization level through the `toolkitVersions` configuration.
|
|
182
|
-
*
|
|
183
|
-
* Tool Router session, then use `session.tools()`, `session.
|
|
189
|
+
* Experimental local tools are session-scoped; attach them when creating or reusing a
|
|
190
|
+
* Tool Router session, then use `session.tools()`, `session.localTools()`, or
|
|
184
191
|
* `session.execute()`.
|
|
185
192
|
*
|
|
186
193
|
* @param {string} slug - The unique identifier of the tool (e.g., 'GITHUB_GET_REPOS')
|
|
@@ -423,6 +430,8 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
423
430
|
* ```
|
|
424
431
|
*/
|
|
425
432
|
execute(slug: string, body: ToolExecuteParams, options?: ExecuteToolModifiers & ComposioRequestOptions): Promise<ToolExecuteResponse>;
|
|
433
|
+
/** The tool's schema for `execute()`, fetched only if no unexpired copy is cached. Failures aren't cached. */
|
|
434
|
+
private getToolSchemaForExecute;
|
|
426
435
|
/**
|
|
427
436
|
* Executes a tool based on a tool router session.
|
|
428
437
|
*
|
|
@@ -3464,6 +3473,8 @@ declare const TriggerInstanceListActiveParamsSchema: z$1.ZodObject<{
|
|
|
3464
3473
|
triggerNames?: string[] | null | undefined;
|
|
3465
3474
|
}>;
|
|
3466
3475
|
type TriggerInstanceListActiveParams = z$1.infer<typeof TriggerInstanceListActiveParamsSchema>;
|
|
3476
|
+
declare const TriggerInstanceTypeSchema: z$1.ZodEnum<["webhook", "poll"]>;
|
|
3477
|
+
type TriggerInstanceType = z$1.infer<typeof TriggerInstanceTypeSchema>;
|
|
3467
3478
|
declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
3468
3479
|
id: z$1.ZodString;
|
|
3469
3480
|
connectedAccountId: z$1.ZodString;
|
|
@@ -3474,7 +3485,11 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
|
3474
3485
|
updatedAt: z$1.ZodString;
|
|
3475
3486
|
triggerData: z$1.ZodOptional<z$1.ZodString>;
|
|
3476
3487
|
uuid: z$1.ZodOptional<z$1.ZodString>;
|
|
3488
|
+
type: z$1.ZodEnum<["webhook", "poll"]>;
|
|
3489
|
+
fallbackReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3490
|
+
pollingInterval: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3477
3491
|
}, "strip", z$1.ZodTypeAny, {
|
|
3492
|
+
type: "webhook" | "poll";
|
|
3478
3493
|
connectedAccountId: string;
|
|
3479
3494
|
id: string;
|
|
3480
3495
|
updatedAt: string;
|
|
@@ -3482,9 +3497,12 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
|
3482
3497
|
state: Record<string, unknown>;
|
|
3483
3498
|
triggerConfig: Record<string, unknown>;
|
|
3484
3499
|
triggerName: string;
|
|
3500
|
+
fallbackReason: string | null;
|
|
3501
|
+
pollingInterval: number | null;
|
|
3485
3502
|
uuid?: string | undefined;
|
|
3486
3503
|
triggerData?: string | undefined;
|
|
3487
3504
|
}, {
|
|
3505
|
+
type: "webhook" | "poll";
|
|
3488
3506
|
connectedAccountId: string;
|
|
3489
3507
|
id: string;
|
|
3490
3508
|
updatedAt: string;
|
|
@@ -3492,6 +3510,8 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
|
3492
3510
|
state: Record<string, unknown>;
|
|
3493
3511
|
triggerConfig: Record<string, unknown>;
|
|
3494
3512
|
triggerName: string;
|
|
3513
|
+
fallbackReason: string | null;
|
|
3514
|
+
pollingInterval: number | null;
|
|
3495
3515
|
uuid?: string | undefined;
|
|
3496
3516
|
triggerData?: string | undefined;
|
|
3497
3517
|
}>;
|
|
@@ -3506,7 +3526,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3506
3526
|
updatedAt: z$1.ZodString;
|
|
3507
3527
|
triggerData: z$1.ZodOptional<z$1.ZodString>;
|
|
3508
3528
|
uuid: z$1.ZodOptional<z$1.ZodString>;
|
|
3529
|
+
type: z$1.ZodEnum<["webhook", "poll"]>;
|
|
3530
|
+
fallbackReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3531
|
+
pollingInterval: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3509
3532
|
}, "strip", z$1.ZodTypeAny, {
|
|
3533
|
+
type: "webhook" | "poll";
|
|
3510
3534
|
connectedAccountId: string;
|
|
3511
3535
|
id: string;
|
|
3512
3536
|
updatedAt: string;
|
|
@@ -3514,9 +3538,12 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3514
3538
|
state: Record<string, unknown>;
|
|
3515
3539
|
triggerConfig: Record<string, unknown>;
|
|
3516
3540
|
triggerName: string;
|
|
3541
|
+
fallbackReason: string | null;
|
|
3542
|
+
pollingInterval: number | null;
|
|
3517
3543
|
uuid?: string | undefined;
|
|
3518
3544
|
triggerData?: string | undefined;
|
|
3519
3545
|
}, {
|
|
3546
|
+
type: "webhook" | "poll";
|
|
3520
3547
|
connectedAccountId: string;
|
|
3521
3548
|
id: string;
|
|
3522
3549
|
updatedAt: string;
|
|
@@ -3524,6 +3551,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3524
3551
|
state: Record<string, unknown>;
|
|
3525
3552
|
triggerConfig: Record<string, unknown>;
|
|
3526
3553
|
triggerName: string;
|
|
3554
|
+
fallbackReason: string | null;
|
|
3555
|
+
pollingInterval: number | null;
|
|
3527
3556
|
uuid?: string | undefined;
|
|
3528
3557
|
triggerData?: string | undefined;
|
|
3529
3558
|
}>, "many">;
|
|
@@ -3531,6 +3560,7 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3531
3560
|
totalPages: z$1.ZodNumber;
|
|
3532
3561
|
}, "strip", z$1.ZodTypeAny, {
|
|
3533
3562
|
items: {
|
|
3563
|
+
type: "webhook" | "poll";
|
|
3534
3564
|
connectedAccountId: string;
|
|
3535
3565
|
id: string;
|
|
3536
3566
|
updatedAt: string;
|
|
@@ -3538,6 +3568,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3538
3568
|
state: Record<string, unknown>;
|
|
3539
3569
|
triggerConfig: Record<string, unknown>;
|
|
3540
3570
|
triggerName: string;
|
|
3571
|
+
fallbackReason: string | null;
|
|
3572
|
+
pollingInterval: number | null;
|
|
3541
3573
|
uuid?: string | undefined;
|
|
3542
3574
|
triggerData?: string | undefined;
|
|
3543
3575
|
}[];
|
|
@@ -3545,6 +3577,7 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3545
3577
|
totalPages: number;
|
|
3546
3578
|
}, {
|
|
3547
3579
|
items: {
|
|
3580
|
+
type: "webhook" | "poll";
|
|
3548
3581
|
connectedAccountId: string;
|
|
3549
3582
|
id: string;
|
|
3550
3583
|
updatedAt: string;
|
|
@@ -3552,6 +3585,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
3552
3585
|
state: Record<string, unknown>;
|
|
3553
3586
|
triggerConfig: Record<string, unknown>;
|
|
3554
3587
|
triggerName: string;
|
|
3588
|
+
fallbackReason: string | null;
|
|
3589
|
+
pollingInterval: number | null;
|
|
3555
3590
|
uuid?: string | undefined;
|
|
3556
3591
|
triggerData?: string | undefined;
|
|
3557
3592
|
}[];
|
|
@@ -3563,20 +3598,35 @@ type TriggerInstanceListActiveResponseItem = z$1.infer<typeof TriggerInstanceLis
|
|
|
3563
3598
|
declare const TriggerInstanceUpsertParamsSchema: z$1.ZodObject<{
|
|
3564
3599
|
connectedAccountId: z$1.ZodOptional<z$1.ZodString>;
|
|
3565
3600
|
triggerConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3601
|
+
type: z$1.ZodOptional<z$1.ZodEnum<["webhook", "poll"]>>;
|
|
3602
|
+
pollingInterval: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3566
3603
|
}, "strip", z$1.ZodTypeAny, {
|
|
3604
|
+
type?: "webhook" | "poll" | undefined;
|
|
3567
3605
|
connectedAccountId?: string | undefined;
|
|
3568
3606
|
triggerConfig?: Record<string, unknown> | undefined;
|
|
3607
|
+
pollingInterval?: number | undefined;
|
|
3569
3608
|
}, {
|
|
3609
|
+
type?: "webhook" | "poll" | undefined;
|
|
3570
3610
|
connectedAccountId?: string | undefined;
|
|
3571
3611
|
triggerConfig?: Record<string, unknown> | undefined;
|
|
3612
|
+
pollingInterval?: number | undefined;
|
|
3572
3613
|
}>;
|
|
3573
3614
|
type TriggerInstanceUpsertParams = z$1.infer<typeof TriggerInstanceUpsertParamsSchema>;
|
|
3574
3615
|
declare const TriggerInstanceUpsertResponseSchema: z$1.ZodObject<{
|
|
3575
3616
|
triggerId: z$1.ZodString;
|
|
3617
|
+
type: z$1.ZodEnum<["webhook", "poll"]>;
|
|
3618
|
+
fallbackReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3619
|
+
pollingInterval: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3576
3620
|
}, "strip", z$1.ZodTypeAny, {
|
|
3621
|
+
type: "webhook" | "poll";
|
|
3577
3622
|
triggerId: string;
|
|
3623
|
+
fallbackReason: string | null;
|
|
3624
|
+
pollingInterval: number | null;
|
|
3578
3625
|
}, {
|
|
3626
|
+
type: "webhook" | "poll";
|
|
3579
3627
|
triggerId: string;
|
|
3628
|
+
fallbackReason: string | null;
|
|
3629
|
+
pollingInterval: number | null;
|
|
3580
3630
|
}>;
|
|
3581
3631
|
type TriggerInstanceUpsertResponse = z$1.infer<typeof TriggerInstanceUpsertResponseSchema>;
|
|
3582
3632
|
declare const TriggerInstanceManageUpdateParamsSchema: z$1.ZodObject<{
|
|
@@ -3676,6 +3726,7 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3676
3726
|
userId: string;
|
|
3677
3727
|
uuid: string;
|
|
3678
3728
|
id: string;
|
|
3729
|
+
triggerSlug: string;
|
|
3679
3730
|
metadata: {
|
|
3680
3731
|
toolkitSlug: string;
|
|
3681
3732
|
uuid: string;
|
|
@@ -3692,7 +3743,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3692
3743
|
triggerConfig: Record<string, unknown>;
|
|
3693
3744
|
triggerData?: string | undefined;
|
|
3694
3745
|
};
|
|
3695
|
-
triggerSlug: string;
|
|
3696
3746
|
payload?: Record<string, unknown> | undefined;
|
|
3697
3747
|
originalPayload?: Record<string, unknown> | undefined;
|
|
3698
3748
|
}, {
|
|
@@ -3700,6 +3750,7 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3700
3750
|
userId: string;
|
|
3701
3751
|
uuid: string;
|
|
3702
3752
|
id: string;
|
|
3753
|
+
triggerSlug: string;
|
|
3703
3754
|
metadata: {
|
|
3704
3755
|
toolkitSlug: string;
|
|
3705
3756
|
uuid: string;
|
|
@@ -3716,7 +3767,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
3716
3767
|
triggerConfig: Record<string, unknown>;
|
|
3717
3768
|
triggerData?: string | undefined;
|
|
3718
3769
|
};
|
|
3719
|
-
triggerSlug: string;
|
|
3720
3770
|
payload?: Record<string, unknown> | undefined;
|
|
3721
3771
|
originalPayload?: Record<string, unknown> | undefined;
|
|
3722
3772
|
}>;
|
|
@@ -3777,9 +3827,13 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
|
|
|
3777
3827
|
payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3778
3828
|
config: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3779
3829
|
version: z$1.ZodOptional<z$1.ZodString>;
|
|
3830
|
+
type: z$1.ZodEnum<["webhook", "poll"]>;
|
|
3831
|
+
types: z$1.ZodArray<z$1.ZodEnum<["webhook", "poll"]>, "many">;
|
|
3832
|
+
requiresWebhookEndpointSetup: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3780
3833
|
}, "strip", z$1.ZodTypeAny, {
|
|
3781
3834
|
slug: string;
|
|
3782
3835
|
name: string;
|
|
3836
|
+
type: "webhook" | "poll";
|
|
3783
3837
|
description: string;
|
|
3784
3838
|
toolkit: {
|
|
3785
3839
|
slug: string;
|
|
@@ -3788,11 +3842,14 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
|
|
|
3788
3842
|
};
|
|
3789
3843
|
config: Record<string, unknown>;
|
|
3790
3844
|
payload: Record<string, unknown>;
|
|
3845
|
+
types: ("webhook" | "poll")[];
|
|
3791
3846
|
version?: string | undefined;
|
|
3792
3847
|
instructions?: string | undefined;
|
|
3848
|
+
requiresWebhookEndpointSetup?: boolean | undefined;
|
|
3793
3849
|
}, {
|
|
3794
3850
|
slug: string;
|
|
3795
3851
|
name: string;
|
|
3852
|
+
type: "webhook" | "poll";
|
|
3796
3853
|
description: string;
|
|
3797
3854
|
toolkit: {
|
|
3798
3855
|
slug: string;
|
|
@@ -3801,8 +3858,10 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
|
|
|
3801
3858
|
};
|
|
3802
3859
|
config: Record<string, unknown>;
|
|
3803
3860
|
payload: Record<string, unknown>;
|
|
3861
|
+
types: ("webhook" | "poll")[];
|
|
3804
3862
|
version?: string | undefined;
|
|
3805
3863
|
instructions?: string | undefined;
|
|
3864
|
+
requiresWebhookEndpointSetup?: boolean | undefined;
|
|
3806
3865
|
}>;
|
|
3807
3866
|
type TriggerType = z$1.infer<typeof TriggerTypeSchema>;
|
|
3808
3867
|
declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
@@ -3827,9 +3886,13 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3827
3886
|
payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3828
3887
|
config: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3829
3888
|
version: z$1.ZodOptional<z$1.ZodString>;
|
|
3889
|
+
type: z$1.ZodEnum<["webhook", "poll"]>;
|
|
3890
|
+
types: z$1.ZodArray<z$1.ZodEnum<["webhook", "poll"]>, "many">;
|
|
3891
|
+
requiresWebhookEndpointSetup: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3830
3892
|
}, "strip", z$1.ZodTypeAny, {
|
|
3831
3893
|
slug: string;
|
|
3832
3894
|
name: string;
|
|
3895
|
+
type: "webhook" | "poll";
|
|
3833
3896
|
description: string;
|
|
3834
3897
|
toolkit: {
|
|
3835
3898
|
slug: string;
|
|
@@ -3838,11 +3901,14 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3838
3901
|
};
|
|
3839
3902
|
config: Record<string, unknown>;
|
|
3840
3903
|
payload: Record<string, unknown>;
|
|
3904
|
+
types: ("webhook" | "poll")[];
|
|
3841
3905
|
version?: string | undefined;
|
|
3842
3906
|
instructions?: string | undefined;
|
|
3907
|
+
requiresWebhookEndpointSetup?: boolean | undefined;
|
|
3843
3908
|
}, {
|
|
3844
3909
|
slug: string;
|
|
3845
3910
|
name: string;
|
|
3911
|
+
type: "webhook" | "poll";
|
|
3846
3912
|
description: string;
|
|
3847
3913
|
toolkit: {
|
|
3848
3914
|
slug: string;
|
|
@@ -3851,8 +3917,10 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3851
3917
|
};
|
|
3852
3918
|
config: Record<string, unknown>;
|
|
3853
3919
|
payload: Record<string, unknown>;
|
|
3920
|
+
types: ("webhook" | "poll")[];
|
|
3854
3921
|
version?: string | undefined;
|
|
3855
3922
|
instructions?: string | undefined;
|
|
3923
|
+
requiresWebhookEndpointSetup?: boolean | undefined;
|
|
3856
3924
|
}>, "many">;
|
|
3857
3925
|
nextCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
3858
3926
|
totalPages: z$1.ZodNumber;
|
|
@@ -3860,6 +3928,7 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3860
3928
|
items: {
|
|
3861
3929
|
slug: string;
|
|
3862
3930
|
name: string;
|
|
3931
|
+
type: "webhook" | "poll";
|
|
3863
3932
|
description: string;
|
|
3864
3933
|
toolkit: {
|
|
3865
3934
|
slug: string;
|
|
@@ -3868,8 +3937,10 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3868
3937
|
};
|
|
3869
3938
|
config: Record<string, unknown>;
|
|
3870
3939
|
payload: Record<string, unknown>;
|
|
3940
|
+
types: ("webhook" | "poll")[];
|
|
3871
3941
|
version?: string | undefined;
|
|
3872
3942
|
instructions?: string | undefined;
|
|
3943
|
+
requiresWebhookEndpointSetup?: boolean | undefined;
|
|
3873
3944
|
}[];
|
|
3874
3945
|
totalPages: number;
|
|
3875
3946
|
nextCursor?: string | null | undefined;
|
|
@@ -3877,6 +3948,7 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3877
3948
|
items: {
|
|
3878
3949
|
slug: string;
|
|
3879
3950
|
name: string;
|
|
3951
|
+
type: "webhook" | "poll";
|
|
3880
3952
|
description: string;
|
|
3881
3953
|
toolkit: {
|
|
3882
3954
|
slug: string;
|
|
@@ -3885,8 +3957,10 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
|
|
|
3885
3957
|
};
|
|
3886
3958
|
config: Record<string, unknown>;
|
|
3887
3959
|
payload: Record<string, unknown>;
|
|
3960
|
+
types: ("webhook" | "poll")[];
|
|
3888
3961
|
version?: string | undefined;
|
|
3889
3962
|
instructions?: string | undefined;
|
|
3963
|
+
requiresWebhookEndpointSetup?: boolean | undefined;
|
|
3890
3964
|
}[];
|
|
3891
3965
|
totalPages: number;
|
|
3892
3966
|
nextCursor?: string | null | undefined;
|
|
@@ -3923,17 +3997,17 @@ declare const WebhookPayloadV1Schema: z$1.ZodObject<{
|
|
|
3923
3997
|
payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
3924
3998
|
log_id: z$1.ZodString;
|
|
3925
3999
|
}, "strip", z$1.ZodTypeAny, {
|
|
3926
|
-
log_id: string;
|
|
3927
4000
|
payload: Record<string, unknown>;
|
|
3928
4001
|
trigger_name: string;
|
|
3929
4002
|
connection_id: string;
|
|
3930
4003
|
trigger_id: string;
|
|
3931
|
-
}, {
|
|
3932
4004
|
log_id: string;
|
|
4005
|
+
}, {
|
|
3933
4006
|
payload: Record<string, unknown>;
|
|
3934
4007
|
trigger_name: string;
|
|
3935
4008
|
connection_id: string;
|
|
3936
4009
|
trigger_id: string;
|
|
4010
|
+
log_id: string;
|
|
3937
4011
|
}>;
|
|
3938
4012
|
type WebhookPayloadV1 = z$1.infer<typeof WebhookPayloadV1Schema>;
|
|
3939
4013
|
/** V2 webhook payload - includes timestamp and nested data */
|
|
@@ -3963,11 +4037,11 @@ declare const WebhookPayloadV2Schema: z$1.ZodObject<{
|
|
|
3963
4037
|
}, "strip", z$1.ZodTypeAny, {
|
|
3964
4038
|
type: string;
|
|
3965
4039
|
data: {
|
|
3966
|
-
user_id: string;
|
|
3967
4040
|
connection_id: string;
|
|
3968
4041
|
trigger_id: string;
|
|
3969
4042
|
connection_nano_id: string;
|
|
3970
4043
|
trigger_nano_id: string;
|
|
4044
|
+
user_id: string;
|
|
3971
4045
|
} & {
|
|
3972
4046
|
[k: string]: unknown;
|
|
3973
4047
|
};
|
|
@@ -3976,11 +4050,11 @@ declare const WebhookPayloadV2Schema: z$1.ZodObject<{
|
|
|
3976
4050
|
}, {
|
|
3977
4051
|
type: string;
|
|
3978
4052
|
data: {
|
|
3979
|
-
user_id: string;
|
|
3980
4053
|
connection_id: string;
|
|
3981
4054
|
trigger_id: string;
|
|
3982
4055
|
connection_nano_id: string;
|
|
3983
4056
|
trigger_nano_id: string;
|
|
4057
|
+
user_id: string;
|
|
3984
4058
|
} & {
|
|
3985
4059
|
[k: string]: unknown;
|
|
3986
4060
|
};
|
|
@@ -3999,14 +4073,14 @@ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
|
|
|
3999
4073
|
type: string;
|
|
4000
4074
|
data: Record<string, unknown>;
|
|
4001
4075
|
id: string;
|
|
4002
|
-
timestamp: string;
|
|
4003
4076
|
metadata: Record<string, unknown>;
|
|
4077
|
+
timestamp: string;
|
|
4004
4078
|
}, {
|
|
4005
4079
|
type: string;
|
|
4006
4080
|
data: Record<string, unknown>;
|
|
4007
4081
|
id: string;
|
|
4008
|
-
timestamp: string;
|
|
4009
4082
|
metadata: Record<string, unknown>;
|
|
4083
|
+
timestamp: string;
|
|
4010
4084
|
}>;
|
|
4011
4085
|
type WebhookPayloadV3 = z$1.infer<typeof WebhookPayloadV3Schema>;
|
|
4012
4086
|
/** V3 trigger-specific payload - has trigger metadata fields */
|
|
@@ -4041,32 +4115,32 @@ declare const WebhookTriggerPayloadV3Schema: z$1.ZodObject<{
|
|
|
4041
4115
|
type: string;
|
|
4042
4116
|
data: Record<string, unknown>;
|
|
4043
4117
|
id: string;
|
|
4044
|
-
timestamp: string;
|
|
4045
4118
|
metadata: {
|
|
4046
|
-
connected_account_id: string;
|
|
4047
|
-
auth_config_id: string;
|
|
4048
|
-
user_id: string;
|
|
4049
|
-
log_id: string;
|
|
4050
4119
|
trigger_id: string;
|
|
4120
|
+
log_id: string;
|
|
4121
|
+
user_id: string;
|
|
4051
4122
|
trigger_slug: string;
|
|
4123
|
+
connected_account_id: string;
|
|
4124
|
+
auth_config_id: string;
|
|
4052
4125
|
} & {
|
|
4053
4126
|
[k: string]: unknown;
|
|
4054
4127
|
};
|
|
4128
|
+
timestamp: string;
|
|
4055
4129
|
}, {
|
|
4056
4130
|
type: string;
|
|
4057
4131
|
data: Record<string, unknown>;
|
|
4058
4132
|
id: string;
|
|
4059
|
-
timestamp: string;
|
|
4060
4133
|
metadata: {
|
|
4061
|
-
connected_account_id: string;
|
|
4062
|
-
auth_config_id: string;
|
|
4063
|
-
user_id: string;
|
|
4064
|
-
log_id: string;
|
|
4065
4134
|
trigger_id: string;
|
|
4135
|
+
log_id: string;
|
|
4136
|
+
user_id: string;
|
|
4066
4137
|
trigger_slug: string;
|
|
4138
|
+
connected_account_id: string;
|
|
4139
|
+
auth_config_id: string;
|
|
4067
4140
|
} & {
|
|
4068
4141
|
[k: string]: unknown;
|
|
4069
4142
|
};
|
|
4143
|
+
timestamp: string;
|
|
4070
4144
|
}>;
|
|
4071
4145
|
type WebhookTriggerPayloadV3 = z$1.infer<typeof WebhookTriggerPayloadV3Schema>;
|
|
4072
4146
|
/** Union of all webhook payload versions */
|
|
@@ -4080,14 +4154,14 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
|
|
|
4080
4154
|
type: string;
|
|
4081
4155
|
data: Record<string, unknown>;
|
|
4082
4156
|
id: string;
|
|
4083
|
-
timestamp: string;
|
|
4084
4157
|
metadata: Record<string, unknown>;
|
|
4158
|
+
timestamp: string;
|
|
4085
4159
|
}, {
|
|
4086
4160
|
type: string;
|
|
4087
4161
|
data: Record<string, unknown>;
|
|
4088
4162
|
id: string;
|
|
4089
|
-
timestamp: string;
|
|
4090
4163
|
metadata: Record<string, unknown>;
|
|
4164
|
+
timestamp: string;
|
|
4091
4165
|
}>, z$1.ZodObject<{
|
|
4092
4166
|
type: z$1.ZodString;
|
|
4093
4167
|
timestamp: z$1.ZodString;
|
|
@@ -4114,11 +4188,11 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
|
|
|
4114
4188
|
}, "strip", z$1.ZodTypeAny, {
|
|
4115
4189
|
type: string;
|
|
4116
4190
|
data: {
|
|
4117
|
-
user_id: string;
|
|
4118
4191
|
connection_id: string;
|
|
4119
4192
|
trigger_id: string;
|
|
4120
4193
|
connection_nano_id: string;
|
|
4121
4194
|
trigger_nano_id: string;
|
|
4195
|
+
user_id: string;
|
|
4122
4196
|
} & {
|
|
4123
4197
|
[k: string]: unknown;
|
|
4124
4198
|
};
|
|
@@ -4127,11 +4201,11 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
|
|
|
4127
4201
|
}, {
|
|
4128
4202
|
type: string;
|
|
4129
4203
|
data: {
|
|
4130
|
-
user_id: string;
|
|
4131
4204
|
connection_id: string;
|
|
4132
4205
|
trigger_id: string;
|
|
4133
4206
|
connection_nano_id: string;
|
|
4134
4207
|
trigger_nano_id: string;
|
|
4208
|
+
user_id: string;
|
|
4135
4209
|
} & {
|
|
4136
4210
|
[k: string]: unknown;
|
|
4137
4211
|
};
|
|
@@ -4144,17 +4218,17 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
|
|
|
4144
4218
|
payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
4145
4219
|
log_id: z$1.ZodString;
|
|
4146
4220
|
}, "strip", z$1.ZodTypeAny, {
|
|
4147
|
-
log_id: string;
|
|
4148
4221
|
payload: Record<string, unknown>;
|
|
4149
4222
|
trigger_name: string;
|
|
4150
4223
|
connection_id: string;
|
|
4151
4224
|
trigger_id: string;
|
|
4152
|
-
}, {
|
|
4153
4225
|
log_id: string;
|
|
4226
|
+
}, {
|
|
4154
4227
|
payload: Record<string, unknown>;
|
|
4155
4228
|
trigger_name: string;
|
|
4156
4229
|
connection_id: string;
|
|
4157
4230
|
trigger_id: string;
|
|
4231
|
+
log_id: string;
|
|
4158
4232
|
}>]>;
|
|
4159
4233
|
type WebhookPayload = z$1.infer<typeof WebhookPayloadSchema>;
|
|
4160
4234
|
/** Webhook version enum */
|
|
@@ -4223,16 +4297,16 @@ declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
|
|
|
4223
4297
|
tolerance: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
|
|
4224
4298
|
}, "strip", z$1.ZodTypeAny, {
|
|
4225
4299
|
id: string;
|
|
4226
|
-
timestamp: string;
|
|
4227
|
-
payload: string;
|
|
4228
4300
|
secret: string;
|
|
4301
|
+
payload: string;
|
|
4302
|
+
timestamp: string;
|
|
4229
4303
|
signature: string;
|
|
4230
4304
|
tolerance: number;
|
|
4231
4305
|
}, {
|
|
4232
4306
|
id: string;
|
|
4233
|
-
timestamp: string;
|
|
4234
|
-
payload: string;
|
|
4235
4307
|
secret: string;
|
|
4308
|
+
payload: string;
|
|
4309
|
+
timestamp: string;
|
|
4236
4310
|
signature: string;
|
|
4237
4311
|
tolerance?: number | undefined;
|
|
4238
4312
|
}>;
|
|
@@ -4328,10 +4402,14 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
4328
4402
|
* Create a new trigger instance for a user
|
|
4329
4403
|
* If the connected account id is not provided, the first connected account for the user and toolkit will be used
|
|
4330
4404
|
*
|
|
4405
|
+
* For a trigger that supports both webhook and polling, `body.type` picks one; omit it to let Composio choose.
|
|
4406
|
+
* `body.pollingInterval` sets the minutes between polls and wins over `triggerConfig.interval`.
|
|
4407
|
+
*
|
|
4331
4408
|
* @param {string} userId - The user id of the trigger instance
|
|
4332
4409
|
* @param {string} slug - The slug of the trigger instance
|
|
4333
4410
|
* @param {TriggerInstanceUpsertParams} body - The parameters to create the trigger instance
|
|
4334
|
-
* @returns {Promise<TriggerInstanceUpsertResponse>} The
|
|
4411
|
+
* @returns {Promise<TriggerInstanceUpsertResponse>} The trigger instance, with the type it uses, why it polls
|
|
4412
|
+
* when it fell back from a webhook, and its polling interval
|
|
4335
4413
|
*/
|
|
4336
4414
|
create(userId: string, slug: string, body?: TriggerInstanceUpsertParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceUpsertResponse>;
|
|
4337
4415
|
/**
|
|
@@ -4355,14 +4433,14 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
4355
4433
|
* @param {string} triggerId - The id of the trigger instance
|
|
4356
4434
|
* @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
|
|
4357
4435
|
*/
|
|
4358
|
-
disable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<
|
|
4436
|
+
disable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<import("@composio/client/resources/trigger-instances").ManageUpdateResponse>;
|
|
4359
4437
|
/**
|
|
4360
4438
|
* Enable a trigger instance
|
|
4361
4439
|
*
|
|
4362
4440
|
* @param {string} triggerId - The id of the trigger instance
|
|
4363
4441
|
* @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
|
|
4364
4442
|
*/
|
|
4365
|
-
enable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<
|
|
4443
|
+
enable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<import("@composio/client/resources/trigger-instances").ManageUpdateResponse>;
|
|
4366
4444
|
/**
|
|
4367
4445
|
* @TODO Learn about trigger types
|
|
4368
4446
|
*/
|
|
@@ -4933,8 +5011,8 @@ declare class ConnectedAccounts {
|
|
|
4933
5011
|
/**
|
|
4934
5012
|
* Waits for a connection request to complete and become active.
|
|
4935
5013
|
*
|
|
4936
|
-
* This method
|
|
4937
|
-
* until it either becomes active, enters a terminal error state, or times out.
|
|
5014
|
+
* This method polls the Composio API, backing off from 1 second to 5 seconds between polls,
|
|
5015
|
+
* to check the status of a connection until it either becomes active, enters a terminal error state, or times out.
|
|
4938
5016
|
*
|
|
4939
5017
|
* @param {string} connectedAccountId - The ID of the connected account to wait for
|
|
4940
5018
|
* @param {number} [timeout=60000] - Maximum time to wait in milliseconds (default: 60 seconds)
|
|
@@ -5436,6 +5514,17 @@ declare class Usage {
|
|
|
5436
5514
|
}
|
|
5437
5515
|
//#endregion
|
|
5438
5516
|
//#region src/types/customToolkits.types.d.ts
|
|
5517
|
+
declare const CustomToolkitApiKeyFieldSchema: z$1.ZodObject<{
|
|
5518
|
+
displayName: z$1.ZodOptional<z$1.ZodString>;
|
|
5519
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5520
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5521
|
+
description?: string | undefined;
|
|
5522
|
+
displayName?: string | undefined;
|
|
5523
|
+
}, {
|
|
5524
|
+
description?: string | undefined;
|
|
5525
|
+
displayName?: string | undefined;
|
|
5526
|
+
}>;
|
|
5527
|
+
type CustomToolkitApiKeyField = z$1.infer<typeof CustomToolkitApiKeyFieldSchema>;
|
|
5439
5528
|
/**
|
|
5440
5529
|
* How end users authenticate to a custom toolkit.
|
|
5441
5530
|
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
@@ -5465,6 +5554,29 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
|
|
|
5465
5554
|
description?: string | undefined;
|
|
5466
5555
|
displayName?: string | undefined;
|
|
5467
5556
|
}>>;
|
|
5557
|
+
/** Additional connect-page input used by `{{generic_id}}` in headers. */
|
|
5558
|
+
additionalFields: z$1.ZodOptional<z$1.ZodObject<{
|
|
5559
|
+
genericId: z$1.ZodObject<{
|
|
5560
|
+
displayName: z$1.ZodString;
|
|
5561
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5562
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5563
|
+
displayName: string;
|
|
5564
|
+
description?: string | undefined;
|
|
5565
|
+
}, {
|
|
5566
|
+
displayName: string;
|
|
5567
|
+
description?: string | undefined;
|
|
5568
|
+
}>;
|
|
5569
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5570
|
+
genericId: {
|
|
5571
|
+
displayName: string;
|
|
5572
|
+
description?: string | undefined;
|
|
5573
|
+
};
|
|
5574
|
+
}, {
|
|
5575
|
+
genericId: {
|
|
5576
|
+
displayName: string;
|
|
5577
|
+
description?: string | undefined;
|
|
5578
|
+
};
|
|
5579
|
+
}>>;
|
|
5468
5580
|
}, "strip", z$1.ZodTypeAny, {
|
|
5469
5581
|
mode: "API_KEY";
|
|
5470
5582
|
headers: Record<string, string>;
|
|
@@ -5472,6 +5584,12 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
|
|
|
5472
5584
|
description?: string | undefined;
|
|
5473
5585
|
displayName?: string | undefined;
|
|
5474
5586
|
} | undefined;
|
|
5587
|
+
additionalFields?: {
|
|
5588
|
+
genericId: {
|
|
5589
|
+
displayName: string;
|
|
5590
|
+
description?: string | undefined;
|
|
5591
|
+
};
|
|
5592
|
+
} | undefined;
|
|
5475
5593
|
}, {
|
|
5476
5594
|
mode: "API_KEY";
|
|
5477
5595
|
headers: Record<string, string>;
|
|
@@ -5479,6 +5597,12 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
|
|
|
5479
5597
|
description?: string | undefined;
|
|
5480
5598
|
displayName?: string | undefined;
|
|
5481
5599
|
} | undefined;
|
|
5600
|
+
additionalFields?: {
|
|
5601
|
+
genericId: {
|
|
5602
|
+
displayName: string;
|
|
5603
|
+
description?: string | undefined;
|
|
5604
|
+
};
|
|
5605
|
+
} | undefined;
|
|
5482
5606
|
}>, z$1.ZodObject<{
|
|
5483
5607
|
mode: z$1.ZodLiteral<"DCR_OAUTH">;
|
|
5484
5608
|
/**
|
|
@@ -5494,9 +5618,318 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
|
|
|
5494
5618
|
discoveryUrl: string;
|
|
5495
5619
|
}>]>;
|
|
5496
5620
|
type CustomToolkitAuthScheme = z$1.infer<typeof CustomToolkitAuthSchemeSchema>;
|
|
5621
|
+
declare const CustomToolkitLogoFileSchema: z$1.ZodObject<{
|
|
5622
|
+
content: z$1.ZodString;
|
|
5623
|
+
mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
|
|
5624
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5625
|
+
content: string;
|
|
5626
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5627
|
+
}, {
|
|
5628
|
+
content: string;
|
|
5629
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5630
|
+
}>;
|
|
5631
|
+
type CustomToolkitLogoFile = z$1.infer<typeof CustomToolkitLogoFileSchema>;
|
|
5632
|
+
/**
|
|
5633
|
+
* Params for `composio.experimental.customToolkits.create()`.
|
|
5634
|
+
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
5635
|
+
*/
|
|
5636
|
+
declare const CustomToolkitCreateParamsSchema: z$1.ZodObject<{
|
|
5637
|
+
/** Human-readable toolkit name. */
|
|
5638
|
+
name: z$1.ZodString;
|
|
5639
|
+
/** The MCP server URL. Must use https. */
|
|
5640
|
+
mcpUrl: z$1.ZodString;
|
|
5641
|
+
/** Square PNG or JPEG logo (256-1024px, max 3MB), base64-encoded. Defaults to the MCP logo. */
|
|
5642
|
+
logoFile: z$1.ZodOptional<z$1.ZodObject<{
|
|
5643
|
+
content: z$1.ZodString;
|
|
5644
|
+
mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
|
|
5645
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5646
|
+
content: string;
|
|
5647
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5648
|
+
}, {
|
|
5649
|
+
content: string;
|
|
5650
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5651
|
+
}>>;
|
|
5652
|
+
/** At least one scheme. Cannot be changed after create. */
|
|
5653
|
+
authSchemes: z$1.ZodArray<z$1.ZodDiscriminatedUnion<"mode", [z$1.ZodObject<{
|
|
5654
|
+
mode: z$1.ZodLiteral<"NO_AUTH">;
|
|
5655
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5656
|
+
mode: "NO_AUTH";
|
|
5657
|
+
}, {
|
|
5658
|
+
mode: "NO_AUTH";
|
|
5659
|
+
}>, z$1.ZodObject<{
|
|
5660
|
+
mode: z$1.ZodLiteral<"API_KEY">;
|
|
5661
|
+
/**
|
|
5662
|
+
* Headers sent with each request. Write `{{generic_api_key}}` where the
|
|
5663
|
+
* end user's API key goes, for example
|
|
5664
|
+
* `{ Authorization: 'Bearer {{generic_api_key}}' }`.
|
|
5665
|
+
*/
|
|
5666
|
+
headers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
5667
|
+
/** End-user copy for the API key input on the connect page. */
|
|
5668
|
+
apiKeyField: z$1.ZodOptional<z$1.ZodObject<{
|
|
5669
|
+
displayName: z$1.ZodOptional<z$1.ZodString>;
|
|
5670
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5671
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5672
|
+
description?: string | undefined;
|
|
5673
|
+
displayName?: string | undefined;
|
|
5674
|
+
}, {
|
|
5675
|
+
description?: string | undefined;
|
|
5676
|
+
displayName?: string | undefined;
|
|
5677
|
+
}>>;
|
|
5678
|
+
/** Additional connect-page input used by `{{generic_id}}` in headers. */
|
|
5679
|
+
additionalFields: z$1.ZodOptional<z$1.ZodObject<{
|
|
5680
|
+
genericId: z$1.ZodObject<{
|
|
5681
|
+
displayName: z$1.ZodString;
|
|
5682
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5683
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5684
|
+
displayName: string;
|
|
5685
|
+
description?: string | undefined;
|
|
5686
|
+
}, {
|
|
5687
|
+
displayName: string;
|
|
5688
|
+
description?: string | undefined;
|
|
5689
|
+
}>;
|
|
5690
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5691
|
+
genericId: {
|
|
5692
|
+
displayName: string;
|
|
5693
|
+
description?: string | undefined;
|
|
5694
|
+
};
|
|
5695
|
+
}, {
|
|
5696
|
+
genericId: {
|
|
5697
|
+
displayName: string;
|
|
5698
|
+
description?: string | undefined;
|
|
5699
|
+
};
|
|
5700
|
+
}>>;
|
|
5701
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5702
|
+
mode: "API_KEY";
|
|
5703
|
+
headers: Record<string, string>;
|
|
5704
|
+
apiKeyField?: {
|
|
5705
|
+
description?: string | undefined;
|
|
5706
|
+
displayName?: string | undefined;
|
|
5707
|
+
} | undefined;
|
|
5708
|
+
additionalFields?: {
|
|
5709
|
+
genericId: {
|
|
5710
|
+
displayName: string;
|
|
5711
|
+
description?: string | undefined;
|
|
5712
|
+
};
|
|
5713
|
+
} | undefined;
|
|
5714
|
+
}, {
|
|
5715
|
+
mode: "API_KEY";
|
|
5716
|
+
headers: Record<string, string>;
|
|
5717
|
+
apiKeyField?: {
|
|
5718
|
+
description?: string | undefined;
|
|
5719
|
+
displayName?: string | undefined;
|
|
5720
|
+
} | undefined;
|
|
5721
|
+
additionalFields?: {
|
|
5722
|
+
genericId: {
|
|
5723
|
+
displayName: string;
|
|
5724
|
+
description?: string | undefined;
|
|
5725
|
+
};
|
|
5726
|
+
} | undefined;
|
|
5727
|
+
}>, z$1.ZodObject<{
|
|
5728
|
+
mode: z$1.ZodLiteral<"DCR_OAUTH">;
|
|
5729
|
+
/**
|
|
5730
|
+
* Where to fetch the full auth scheme, usually the
|
|
5731
|
+
* `/.well-known/oauth-authorization-server` path of your MCP URL.
|
|
5732
|
+
*/
|
|
5733
|
+
discoveryUrl: z$1.ZodString;
|
|
5734
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5735
|
+
mode: "DCR_OAUTH";
|
|
5736
|
+
discoveryUrl: string;
|
|
5737
|
+
}, {
|
|
5738
|
+
mode: "DCR_OAUTH";
|
|
5739
|
+
discoveryUrl: string;
|
|
5740
|
+
}>]>, "many">;
|
|
5741
|
+
/**
|
|
5742
|
+
* `'all'` to share the toolkit with every user in the project, or a user ID
|
|
5743
|
+
* to make it private to that user. Cannot be changed after create.
|
|
5744
|
+
*/
|
|
5745
|
+
userId: z$1.ZodString;
|
|
5746
|
+
/** Where to send the user after they connect. Used only for `connectLink`. */
|
|
5747
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
5748
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5749
|
+
name: string;
|
|
5750
|
+
userId: string;
|
|
5751
|
+
mcpUrl: string;
|
|
5752
|
+
authSchemes: ({
|
|
5753
|
+
mode: "NO_AUTH";
|
|
5754
|
+
} | {
|
|
5755
|
+
mode: "API_KEY";
|
|
5756
|
+
headers: Record<string, string>;
|
|
5757
|
+
apiKeyField?: {
|
|
5758
|
+
description?: string | undefined;
|
|
5759
|
+
displayName?: string | undefined;
|
|
5760
|
+
} | undefined;
|
|
5761
|
+
additionalFields?: {
|
|
5762
|
+
genericId: {
|
|
5763
|
+
displayName: string;
|
|
5764
|
+
description?: string | undefined;
|
|
5765
|
+
};
|
|
5766
|
+
} | undefined;
|
|
5767
|
+
} | {
|
|
5768
|
+
mode: "DCR_OAUTH";
|
|
5769
|
+
discoveryUrl: string;
|
|
5770
|
+
})[];
|
|
5771
|
+
callbackUrl?: string | undefined;
|
|
5772
|
+
logoFile?: {
|
|
5773
|
+
content: string;
|
|
5774
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5775
|
+
} | undefined;
|
|
5776
|
+
}, {
|
|
5777
|
+
name: string;
|
|
5778
|
+
userId: string;
|
|
5779
|
+
mcpUrl: string;
|
|
5780
|
+
authSchemes: ({
|
|
5781
|
+
mode: "NO_AUTH";
|
|
5782
|
+
} | {
|
|
5783
|
+
mode: "API_KEY";
|
|
5784
|
+
headers: Record<string, string>;
|
|
5785
|
+
apiKeyField?: {
|
|
5786
|
+
description?: string | undefined;
|
|
5787
|
+
displayName?: string | undefined;
|
|
5788
|
+
} | undefined;
|
|
5789
|
+
additionalFields?: {
|
|
5790
|
+
genericId: {
|
|
5791
|
+
displayName: string;
|
|
5792
|
+
description?: string | undefined;
|
|
5793
|
+
};
|
|
5794
|
+
} | undefined;
|
|
5795
|
+
} | {
|
|
5796
|
+
mode: "DCR_OAUTH";
|
|
5797
|
+
discoveryUrl: string;
|
|
5798
|
+
})[];
|
|
5799
|
+
callbackUrl?: string | undefined;
|
|
5800
|
+
logoFile?: {
|
|
5801
|
+
content: string;
|
|
5802
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5803
|
+
} | undefined;
|
|
5804
|
+
}>;
|
|
5805
|
+
type CustomToolkitCreateParams = z$1.infer<typeof CustomToolkitCreateParamsSchema>;
|
|
5806
|
+
declare const CustomToolkitCreateResponseSchema: z$1.ZodObject<{
|
|
5807
|
+
/** Slug of the created toolkit. Store it to update, sync or delete the toolkit later. */
|
|
5808
|
+
slug: z$1.ZodString;
|
|
5809
|
+
/**
|
|
5810
|
+
* Hosted connect page for a private toolkit's user. `null` for shared or
|
|
5811
|
+
* no-auth toolkits, or if the link could not be created.
|
|
5812
|
+
*/
|
|
5813
|
+
connectLink: z$1.ZodNullable<z$1.ZodObject<{
|
|
5814
|
+
redirectUrl: z$1.ZodString;
|
|
5815
|
+
expiresAt: z$1.ZodString;
|
|
5816
|
+
connectedAccountId: z$1.ZodString;
|
|
5817
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5818
|
+
connectedAccountId: string;
|
|
5819
|
+
redirectUrl: string;
|
|
5820
|
+
expiresAt: string;
|
|
5821
|
+
}, {
|
|
5822
|
+
connectedAccountId: string;
|
|
5823
|
+
redirectUrl: string;
|
|
5824
|
+
expiresAt: string;
|
|
5825
|
+
}>>;
|
|
5826
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5827
|
+
slug: string;
|
|
5828
|
+
connectLink: {
|
|
5829
|
+
connectedAccountId: string;
|
|
5830
|
+
redirectUrl: string;
|
|
5831
|
+
expiresAt: string;
|
|
5832
|
+
} | null;
|
|
5833
|
+
}, {
|
|
5834
|
+
slug: string;
|
|
5835
|
+
connectLink: {
|
|
5836
|
+
connectedAccountId: string;
|
|
5837
|
+
redirectUrl: string;
|
|
5838
|
+
expiresAt: string;
|
|
5839
|
+
} | null;
|
|
5840
|
+
}>;
|
|
5841
|
+
type CustomToolkitCreateResponse = z$1.infer<typeof CustomToolkitCreateResponseSchema>;
|
|
5842
|
+
/**
|
|
5843
|
+
* Params for `composio.experimental.customToolkits.update()`.
|
|
5844
|
+
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
5845
|
+
*/
|
|
5846
|
+
declare const CustomToolkitUpdateParamsSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
5847
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
5848
|
+
logoFile: z$1.ZodOptional<z$1.ZodObject<{
|
|
5849
|
+
content: z$1.ZodString;
|
|
5850
|
+
mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
|
|
5851
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5852
|
+
content: string;
|
|
5853
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5854
|
+
}, {
|
|
5855
|
+
content: string;
|
|
5856
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5857
|
+
}>>;
|
|
5858
|
+
/** End-user copy for the API key input on the connect page. API_KEY toolkits only. */
|
|
5859
|
+
apiKeyField: z$1.ZodOptional<z$1.ZodObject<{
|
|
5860
|
+
displayName: z$1.ZodOptional<z$1.ZodString>;
|
|
5861
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5862
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5863
|
+
description?: string | undefined;
|
|
5864
|
+
displayName?: string | undefined;
|
|
5865
|
+
}, {
|
|
5866
|
+
description?: string | undefined;
|
|
5867
|
+
displayName?: string | undefined;
|
|
5868
|
+
}>>;
|
|
5869
|
+
/**
|
|
5870
|
+
* The user the toolkit is private to. Required to update a private toolkit
|
|
5871
|
+
* when the project has 2FA enabled.
|
|
5872
|
+
*/
|
|
5873
|
+
userId: z$1.ZodOptional<z$1.ZodString>;
|
|
5874
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5875
|
+
name?: string | undefined;
|
|
5876
|
+
userId?: string | undefined;
|
|
5877
|
+
apiKeyField?: {
|
|
5878
|
+
description?: string | undefined;
|
|
5879
|
+
displayName?: string | undefined;
|
|
5880
|
+
} | undefined;
|
|
5881
|
+
logoFile?: {
|
|
5882
|
+
content: string;
|
|
5883
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5884
|
+
} | undefined;
|
|
5885
|
+
}, {
|
|
5886
|
+
name?: string | undefined;
|
|
5887
|
+
userId?: string | undefined;
|
|
5888
|
+
apiKeyField?: {
|
|
5889
|
+
description?: string | undefined;
|
|
5890
|
+
displayName?: string | undefined;
|
|
5891
|
+
} | undefined;
|
|
5892
|
+
logoFile?: {
|
|
5893
|
+
content: string;
|
|
5894
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5895
|
+
} | undefined;
|
|
5896
|
+
}>, {
|
|
5897
|
+
name?: string | undefined;
|
|
5898
|
+
userId?: string | undefined;
|
|
5899
|
+
apiKeyField?: {
|
|
5900
|
+
description?: string | undefined;
|
|
5901
|
+
displayName?: string | undefined;
|
|
5902
|
+
} | undefined;
|
|
5903
|
+
logoFile?: {
|
|
5904
|
+
content: string;
|
|
5905
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5906
|
+
} | undefined;
|
|
5907
|
+
}, {
|
|
5908
|
+
name?: string | undefined;
|
|
5909
|
+
userId?: string | undefined;
|
|
5910
|
+
apiKeyField?: {
|
|
5911
|
+
description?: string | undefined;
|
|
5912
|
+
displayName?: string | undefined;
|
|
5913
|
+
} | undefined;
|
|
5914
|
+
logoFile?: {
|
|
5915
|
+
content: string;
|
|
5916
|
+
mimeType: "image/png" | "image/jpeg";
|
|
5917
|
+
} | undefined;
|
|
5918
|
+
}>;
|
|
5919
|
+
type CustomToolkitUpdateParams = z$1.infer<typeof CustomToolkitUpdateParamsSchema>;
|
|
5920
|
+
declare const CustomToolkitUpdateResponseSchema: z$1.ZodObject<{
|
|
5921
|
+
success: z$1.ZodLiteral<true>;
|
|
5922
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5923
|
+
success: true;
|
|
5924
|
+
}, {
|
|
5925
|
+
success: true;
|
|
5926
|
+
}>;
|
|
5927
|
+
type CustomToolkitUpdateResponse = z$1.infer<typeof CustomToolkitUpdateResponseSchema>;
|
|
5497
5928
|
/**
|
|
5498
5929
|
* Params for `composio.experimental.customToolkits.upsert()`.
|
|
5499
5930
|
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
5931
|
+
*
|
|
5932
|
+
* @deprecated Use `CustomToolkitCreateParams` with `create()`.
|
|
5500
5933
|
*/
|
|
5501
5934
|
declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
5502
5935
|
/**
|
|
@@ -5507,8 +5940,8 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5507
5940
|
toolkitConfig: z$1.ZodObject<{
|
|
5508
5941
|
/** Human-readable toolkit name. */
|
|
5509
5942
|
name: z$1.ZodString;
|
|
5510
|
-
/** The
|
|
5511
|
-
|
|
5943
|
+
/** The MCP server URL. Must use https. */
|
|
5944
|
+
mcpUrl: z$1.ZodString;
|
|
5512
5945
|
/** Square PNG or JPEG logo (256-1024px, max 3MB), base64-encoded. Defaults to the Composio logo. */
|
|
5513
5946
|
logoFile: z$1.ZodOptional<z$1.ZodObject<{
|
|
5514
5947
|
content: z$1.ZodString;
|
|
@@ -5546,6 +5979,29 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5546
5979
|
description?: string | undefined;
|
|
5547
5980
|
displayName?: string | undefined;
|
|
5548
5981
|
}>>;
|
|
5982
|
+
/** Additional connect-page input used by `{{generic_id}}` in headers. */
|
|
5983
|
+
additionalFields: z$1.ZodOptional<z$1.ZodObject<{
|
|
5984
|
+
genericId: z$1.ZodObject<{
|
|
5985
|
+
displayName: z$1.ZodString;
|
|
5986
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
5987
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5988
|
+
displayName: string;
|
|
5989
|
+
description?: string | undefined;
|
|
5990
|
+
}, {
|
|
5991
|
+
displayName: string;
|
|
5992
|
+
description?: string | undefined;
|
|
5993
|
+
}>;
|
|
5994
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
5995
|
+
genericId: {
|
|
5996
|
+
displayName: string;
|
|
5997
|
+
description?: string | undefined;
|
|
5998
|
+
};
|
|
5999
|
+
}, {
|
|
6000
|
+
genericId: {
|
|
6001
|
+
displayName: string;
|
|
6002
|
+
description?: string | undefined;
|
|
6003
|
+
};
|
|
6004
|
+
}>>;
|
|
5549
6005
|
}, "strip", z$1.ZodTypeAny, {
|
|
5550
6006
|
mode: "API_KEY";
|
|
5551
6007
|
headers: Record<string, string>;
|
|
@@ -5553,6 +6009,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5553
6009
|
description?: string | undefined;
|
|
5554
6010
|
displayName?: string | undefined;
|
|
5555
6011
|
} | undefined;
|
|
6012
|
+
additionalFields?: {
|
|
6013
|
+
genericId: {
|
|
6014
|
+
displayName: string;
|
|
6015
|
+
description?: string | undefined;
|
|
6016
|
+
};
|
|
6017
|
+
} | undefined;
|
|
5556
6018
|
}, {
|
|
5557
6019
|
mode: "API_KEY";
|
|
5558
6020
|
headers: Record<string, string>;
|
|
@@ -5560,6 +6022,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5560
6022
|
description?: string | undefined;
|
|
5561
6023
|
displayName?: string | undefined;
|
|
5562
6024
|
} | undefined;
|
|
6025
|
+
additionalFields?: {
|
|
6026
|
+
genericId: {
|
|
6027
|
+
displayName: string;
|
|
6028
|
+
description?: string | undefined;
|
|
6029
|
+
};
|
|
6030
|
+
} | undefined;
|
|
5563
6031
|
}>, z$1.ZodObject<{
|
|
5564
6032
|
mode: z$1.ZodLiteral<"DCR_OAUTH">;
|
|
5565
6033
|
/**
|
|
@@ -5576,7 +6044,7 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5576
6044
|
}>]>, "many">;
|
|
5577
6045
|
}, "strip", z$1.ZodTypeAny, {
|
|
5578
6046
|
name: string;
|
|
5579
|
-
|
|
6047
|
+
mcpUrl: string;
|
|
5580
6048
|
authSchemes: ({
|
|
5581
6049
|
mode: "NO_AUTH";
|
|
5582
6050
|
} | {
|
|
@@ -5586,6 +6054,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5586
6054
|
description?: string | undefined;
|
|
5587
6055
|
displayName?: string | undefined;
|
|
5588
6056
|
} | undefined;
|
|
6057
|
+
additionalFields?: {
|
|
6058
|
+
genericId: {
|
|
6059
|
+
displayName: string;
|
|
6060
|
+
description?: string | undefined;
|
|
6061
|
+
};
|
|
6062
|
+
} | undefined;
|
|
5589
6063
|
} | {
|
|
5590
6064
|
mode: "DCR_OAUTH";
|
|
5591
6065
|
discoveryUrl: string;
|
|
@@ -5596,7 +6070,7 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5596
6070
|
} | undefined;
|
|
5597
6071
|
}, {
|
|
5598
6072
|
name: string;
|
|
5599
|
-
|
|
6073
|
+
mcpUrl: string;
|
|
5600
6074
|
authSchemes: ({
|
|
5601
6075
|
mode: "NO_AUTH";
|
|
5602
6076
|
} | {
|
|
@@ -5606,6 +6080,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5606
6080
|
description?: string | undefined;
|
|
5607
6081
|
displayName?: string | undefined;
|
|
5608
6082
|
} | undefined;
|
|
6083
|
+
additionalFields?: {
|
|
6084
|
+
genericId: {
|
|
6085
|
+
displayName: string;
|
|
6086
|
+
description?: string | undefined;
|
|
6087
|
+
};
|
|
6088
|
+
} | undefined;
|
|
5609
6089
|
} | {
|
|
5610
6090
|
mode: "DCR_OAUTH";
|
|
5611
6091
|
discoveryUrl: string;
|
|
@@ -5619,7 +6099,7 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5619
6099
|
slug: string;
|
|
5620
6100
|
toolkitConfig: {
|
|
5621
6101
|
name: string;
|
|
5622
|
-
|
|
6102
|
+
mcpUrl: string;
|
|
5623
6103
|
authSchemes: ({
|
|
5624
6104
|
mode: "NO_AUTH";
|
|
5625
6105
|
} | {
|
|
@@ -5629,6 +6109,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5629
6109
|
description?: string | undefined;
|
|
5630
6110
|
displayName?: string | undefined;
|
|
5631
6111
|
} | undefined;
|
|
6112
|
+
additionalFields?: {
|
|
6113
|
+
genericId: {
|
|
6114
|
+
displayName: string;
|
|
6115
|
+
description?: string | undefined;
|
|
6116
|
+
};
|
|
6117
|
+
} | undefined;
|
|
5632
6118
|
} | {
|
|
5633
6119
|
mode: "DCR_OAUTH";
|
|
5634
6120
|
discoveryUrl: string;
|
|
@@ -5642,7 +6128,7 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5642
6128
|
slug: string;
|
|
5643
6129
|
toolkitConfig: {
|
|
5644
6130
|
name: string;
|
|
5645
|
-
|
|
6131
|
+
mcpUrl: string;
|
|
5646
6132
|
authSchemes: ({
|
|
5647
6133
|
mode: "NO_AUTH";
|
|
5648
6134
|
} | {
|
|
@@ -5652,6 +6138,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
|
|
|
5652
6138
|
description?: string | undefined;
|
|
5653
6139
|
displayName?: string | undefined;
|
|
5654
6140
|
} | undefined;
|
|
6141
|
+
additionalFields?: {
|
|
6142
|
+
genericId: {
|
|
6143
|
+
displayName: string;
|
|
6144
|
+
description?: string | undefined;
|
|
6145
|
+
};
|
|
6146
|
+
} | undefined;
|
|
5655
6147
|
} | {
|
|
5656
6148
|
mode: "DCR_OAUTH";
|
|
5657
6149
|
discoveryUrl: string;
|
|
@@ -5736,26 +6228,73 @@ type CustomToolkitDeleteResponse = z$1.infer<typeof CustomToolkitDeleteResponseS
|
|
|
5736
6228
|
*
|
|
5737
6229
|
* @example
|
|
5738
6230
|
* ```typescript
|
|
5739
|
-
* const { slug } = await composio.experimental.customToolkits.
|
|
5740
|
-
*
|
|
5741
|
-
*
|
|
5742
|
-
*
|
|
5743
|
-
*
|
|
5744
|
-
* authSchemes: [{ mode: 'DCR_OAUTH', discoveryUrl: 'https://mcp.example.com/.well-known/oauth-authorization-server' }],
|
|
5745
|
-
* },
|
|
6231
|
+
* const { slug } = await composio.experimental.customToolkits.create({
|
|
6232
|
+
* name: 'My Toolkit',
|
|
6233
|
+
* mcpUrl: 'https://mcp.example.com/mcp',
|
|
6234
|
+
* authSchemes: [{ mode: 'DCR_OAUTH', discoveryUrl: 'https://mcp.example.com/.well-known/oauth-authorization-server' }],
|
|
6235
|
+
* userId: 'all',
|
|
5746
6236
|
* });
|
|
5747
|
-
* await composio.experimental.customToolkits.
|
|
6237
|
+
* await composio.experimental.customToolkits.update(slug, { name: 'My Renamed Toolkit' });
|
|
5748
6238
|
* ```
|
|
5749
6239
|
*/
|
|
5750
6240
|
declare class CustomToolkits {
|
|
5751
6241
|
private client;
|
|
5752
6242
|
constructor(client: ComposioClient);
|
|
6243
|
+
/**
|
|
6244
|
+
* Creates a custom MCP toolkit and returns its generated slug.
|
|
6245
|
+
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
6246
|
+
*
|
|
6247
|
+
* Set `userId` to `'all'` to share the toolkit with every user in the
|
|
6248
|
+
* project, or to a user ID to make it private to that user. `mcpUrl`,
|
|
6249
|
+
* `authSchemes` and `userId` cannot change later: delete and re-create the
|
|
6250
|
+
* toolkit instead. For a private toolkit, `connectLink` is where to send
|
|
6251
|
+
* that user to connect.
|
|
6252
|
+
*
|
|
6253
|
+
* @param {CustomToolkitCreateParams} params - The toolkit to create
|
|
6254
|
+
* @returns {Promise<CustomToolkitCreateResponse>} The toolkit's slug and, for a private toolkit, a connect link
|
|
6255
|
+
* @throws {ValidationError} If the params fail validation
|
|
6256
|
+
*
|
|
6257
|
+
* @example
|
|
6258
|
+
* ```typescript
|
|
6259
|
+
* const { slug, connectLink } = await composio.experimental.customToolkits.create({
|
|
6260
|
+
* name: 'Internal API',
|
|
6261
|
+
* mcpUrl: 'https://mcp.internal.example.com/mcp',
|
|
6262
|
+
* authSchemes: [
|
|
6263
|
+
* { mode: 'API_KEY', headers: { Authorization: 'Bearer {{generic_api_key}}' } },
|
|
6264
|
+
* ],
|
|
6265
|
+
* userId: 'user_123',
|
|
6266
|
+
* });
|
|
6267
|
+
* ```
|
|
6268
|
+
*/
|
|
6269
|
+
create(params: CustomToolkitCreateParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitCreateResponse>;
|
|
6270
|
+
/**
|
|
6271
|
+
* Updates a custom toolkit's name, logo or API key field copy. Omitted
|
|
6272
|
+
* fields keep their current value.
|
|
6273
|
+
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
6274
|
+
*
|
|
6275
|
+
* On a project with 2FA enabled, updating a private toolkit requires the
|
|
6276
|
+
* `userId` it is private to.
|
|
6277
|
+
*
|
|
6278
|
+
* @param {string} slug - The custom toolkit slug returned by `create()`
|
|
6279
|
+
* @param {CustomToolkitUpdateParams} params - At least one of `name`, `logoFile`, `apiKeyField`
|
|
6280
|
+
* @returns {Promise<CustomToolkitUpdateResponse>} `{ success: true }`
|
|
6281
|
+
* @throws {ValidationError} If the params fail validation
|
|
6282
|
+
*
|
|
6283
|
+
* @example
|
|
6284
|
+
* ```typescript
|
|
6285
|
+
* await composio.experimental.customToolkits.update('CUSTOM_INTERNAL_API_K7F2Q', {
|
|
6286
|
+
* name: 'Internal API (prod)',
|
|
6287
|
+
* userId: 'user_123',
|
|
6288
|
+
* });
|
|
6289
|
+
* ```
|
|
6290
|
+
*/
|
|
6291
|
+
update(slug: string, params: CustomToolkitUpdateParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitUpdateResponse>;
|
|
5753
6292
|
/**
|
|
5754
6293
|
* Creates a custom toolkit, or updates its display metadata (name, API key
|
|
5755
6294
|
* field copy) when the project already owns a toolkit with this slug.
|
|
5756
6295
|
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
5757
6296
|
*
|
|
5758
|
-
* `
|
|
6297
|
+
* `mcpUrl` and `authSchemes` cannot change on an existing toolkit:
|
|
5759
6298
|
* re-sending them unchanged is a no-op, and changing them fails with a 409.
|
|
5760
6299
|
* Delete and re-register the toolkit instead, which revokes its connections.
|
|
5761
6300
|
*
|
|
@@ -5769,13 +6308,17 @@ declare class CustomToolkits {
|
|
|
5769
6308
|
* slug: 'INTERNAL_API',
|
|
5770
6309
|
* toolkitConfig: {
|
|
5771
6310
|
* name: 'Internal API',
|
|
5772
|
-
*
|
|
6311
|
+
* mcpUrl: 'https://mcp.internal.example.com/mcp',
|
|
5773
6312
|
* authSchemes: [
|
|
5774
6313
|
* { mode: 'API_KEY', headers: { Authorization: 'Bearer {{generic_api_key}}' } },
|
|
5775
6314
|
* ],
|
|
5776
6315
|
* },
|
|
5777
6316
|
* });
|
|
5778
6317
|
* ```
|
|
6318
|
+
*
|
|
6319
|
+
* @deprecated Use `create()` for a new toolkit and `update(slug, ...)` to change
|
|
6320
|
+
* its name, logo or API key field. `create()` generates the slug, so store the
|
|
6321
|
+
* slug it returns.
|
|
5779
6322
|
*/
|
|
5780
6323
|
upsert(params: CustomToolkitUpsertParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitUpsertResponse>;
|
|
5781
6324
|
/**
|
|
@@ -5832,7 +6375,7 @@ declare class Experimental {
|
|
|
5832
6375
|
*/
|
|
5833
6376
|
usage: Usage;
|
|
5834
6377
|
/**
|
|
5835
|
-
* Register and manage project-owned custom toolkits (`
|
|
6378
|
+
* Register and manage project-owned custom toolkits (`create()` / `update()` / `sync()` / `delete()`).
|
|
5836
6379
|
* **Experimental — custom toolkits are in pilot; shape may change.**
|
|
5837
6380
|
*
|
|
5838
6381
|
* @example
|
|
@@ -7071,11 +7614,11 @@ declare const LogSearchFilterSchema: z$1.ZodObject<{
|
|
|
7071
7614
|
value: z$1.ZodString;
|
|
7072
7615
|
}, "strip", z$1.ZodTypeAny, {
|
|
7073
7616
|
value: string;
|
|
7074
|
-
field: "status" | "
|
|
7617
|
+
field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
|
|
7075
7618
|
operator: "==" | "!=" | "contains" | "not_contains";
|
|
7076
7619
|
}, {
|
|
7077
7620
|
value: string;
|
|
7078
|
-
field: "status" | "
|
|
7621
|
+
field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
|
|
7079
7622
|
operator: "==" | "!=" | "contains" | "not_contains";
|
|
7080
7623
|
}>;
|
|
7081
7624
|
type LogSearchFilter = z$1.infer<typeof LogSearchFilterSchema>;
|
|
@@ -7104,11 +7647,11 @@ declare const LogSearchParamsSchema: z$1.ZodObject<{
|
|
|
7104
7647
|
value: z$1.ZodString;
|
|
7105
7648
|
}, "strip", z$1.ZodTypeAny, {
|
|
7106
7649
|
value: string;
|
|
7107
|
-
field: "status" | "
|
|
7650
|
+
field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
|
|
7108
7651
|
operator: "==" | "!=" | "contains" | "not_contains";
|
|
7109
7652
|
}, {
|
|
7110
7653
|
value: string;
|
|
7111
|
-
field: "status" | "
|
|
7654
|
+
field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
|
|
7112
7655
|
operator: "==" | "!=" | "contains" | "not_contains";
|
|
7113
7656
|
}>, "many">>;
|
|
7114
7657
|
timeRange: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -7128,7 +7671,7 @@ declare const LogSearchParamsSchema: z$1.ZodObject<{
|
|
|
7128
7671
|
cursor?: string | null | undefined;
|
|
7129
7672
|
filters?: {
|
|
7130
7673
|
value: string;
|
|
7131
|
-
field: "status" | "
|
|
7674
|
+
field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
|
|
7132
7675
|
operator: "==" | "!=" | "contains" | "not_contains";
|
|
7133
7676
|
}[] | undefined;
|
|
7134
7677
|
timeRange?: {
|
|
@@ -7140,7 +7683,7 @@ declare const LogSearchParamsSchema: z$1.ZodObject<{
|
|
|
7140
7683
|
cursor?: string | null | undefined;
|
|
7141
7684
|
filters?: {
|
|
7142
7685
|
value: string;
|
|
7143
|
-
field: "status" | "
|
|
7686
|
+
field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
|
|
7144
7687
|
operator: "==" | "!=" | "contains" | "not_contains";
|
|
7145
7688
|
}[] | undefined;
|
|
7146
7689
|
timeRange?: {
|
|
@@ -7204,13 +7747,13 @@ declare const ToolExecutionLogSchema: z$1.ZodObject<{
|
|
|
7204
7747
|
type: string;
|
|
7205
7748
|
status: "success" | "failed";
|
|
7206
7749
|
id: string;
|
|
7207
|
-
timestamp: string;
|
|
7208
|
-
level: "error" | "warn" | "info";
|
|
7209
7750
|
metadata: {
|
|
7210
7751
|
instant_charge?: string | undefined;
|
|
7211
7752
|
} & {
|
|
7212
7753
|
[k: string]: unknown;
|
|
7213
7754
|
};
|
|
7755
|
+
timestamp: string;
|
|
7756
|
+
level: "error" | "warn" | "info";
|
|
7214
7757
|
metrics: Record<string, unknown>;
|
|
7215
7758
|
parent: {
|
|
7216
7759
|
logId: string;
|
|
@@ -7221,13 +7764,13 @@ declare const ToolExecutionLogSchema: z$1.ZodObject<{
|
|
|
7221
7764
|
type: string;
|
|
7222
7765
|
status: "success" | "failed";
|
|
7223
7766
|
id: string;
|
|
7224
|
-
timestamp: string;
|
|
7225
|
-
level: "error" | "warn" | "info";
|
|
7226
7767
|
metadata: {
|
|
7227
7768
|
instant_charge?: string | undefined;
|
|
7228
7769
|
} & {
|
|
7229
7770
|
[k: string]: unknown;
|
|
7230
7771
|
};
|
|
7772
|
+
timestamp: string;
|
|
7773
|
+
level: "error" | "warn" | "info";
|
|
7231
7774
|
metrics: Record<string, unknown>;
|
|
7232
7775
|
parent: {
|
|
7233
7776
|
logId: string;
|
|
@@ -7268,13 +7811,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
|
|
|
7268
7811
|
type: string;
|
|
7269
7812
|
status: "success" | "failed";
|
|
7270
7813
|
id: string;
|
|
7271
|
-
timestamp: string;
|
|
7272
|
-
level: "error" | "warn" | "info";
|
|
7273
7814
|
metadata: {
|
|
7274
7815
|
instant_charge?: string | undefined;
|
|
7275
7816
|
} & {
|
|
7276
7817
|
[k: string]: unknown;
|
|
7277
7818
|
};
|
|
7819
|
+
timestamp: string;
|
|
7820
|
+
level: "error" | "warn" | "info";
|
|
7278
7821
|
metrics: Record<string, unknown>;
|
|
7279
7822
|
parent: {
|
|
7280
7823
|
logId: string;
|
|
@@ -7285,13 +7828,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
|
|
|
7285
7828
|
type: string;
|
|
7286
7829
|
status: "success" | "failed";
|
|
7287
7830
|
id: string;
|
|
7288
|
-
timestamp: string;
|
|
7289
|
-
level: "error" | "warn" | "info";
|
|
7290
7831
|
metadata: {
|
|
7291
7832
|
instant_charge?: string | undefined;
|
|
7292
7833
|
} & {
|
|
7293
7834
|
[k: string]: unknown;
|
|
7294
7835
|
};
|
|
7836
|
+
timestamp: string;
|
|
7837
|
+
level: "error" | "warn" | "info";
|
|
7295
7838
|
metrics: Record<string, unknown>;
|
|
7296
7839
|
parent: {
|
|
7297
7840
|
logId: string;
|
|
@@ -7306,13 +7849,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
|
|
|
7306
7849
|
type: string;
|
|
7307
7850
|
status: "success" | "failed";
|
|
7308
7851
|
id: string;
|
|
7309
|
-
timestamp: string;
|
|
7310
|
-
level: "error" | "warn" | "info";
|
|
7311
7852
|
metadata: {
|
|
7312
7853
|
instant_charge?: string | undefined;
|
|
7313
7854
|
} & {
|
|
7314
7855
|
[k: string]: unknown;
|
|
7315
7856
|
};
|
|
7857
|
+
timestamp: string;
|
|
7858
|
+
level: "error" | "warn" | "info";
|
|
7316
7859
|
metrics: Record<string, unknown>;
|
|
7317
7860
|
parent: {
|
|
7318
7861
|
logId: string;
|
|
@@ -7326,13 +7869,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
|
|
|
7326
7869
|
type: string;
|
|
7327
7870
|
status: "success" | "failed";
|
|
7328
7871
|
id: string;
|
|
7329
|
-
timestamp: string;
|
|
7330
|
-
level: "error" | "warn" | "info";
|
|
7331
7872
|
metadata: {
|
|
7332
7873
|
instant_charge?: string | undefined;
|
|
7333
7874
|
} & {
|
|
7334
7875
|
[k: string]: unknown;
|
|
7335
7876
|
};
|
|
7877
|
+
timestamp: string;
|
|
7878
|
+
level: "error" | "warn" | "info";
|
|
7336
7879
|
metrics: Record<string, unknown>;
|
|
7337
7880
|
parent: {
|
|
7338
7881
|
logId: string;
|
|
@@ -7418,13 +7961,13 @@ declare const ToolExecutionLogDetailSchema: z$1.ZodObject<{
|
|
|
7418
7961
|
status: "success" | "failed";
|
|
7419
7962
|
data: Record<string, unknown>;
|
|
7420
7963
|
id: string;
|
|
7421
|
-
timestamp: string;
|
|
7422
|
-
level: "error" | "warn" | "info";
|
|
7423
7964
|
metadata: {
|
|
7424
7965
|
instant_charge?: string | undefined;
|
|
7425
7966
|
} & {
|
|
7426
7967
|
[k: string]: unknown;
|
|
7427
7968
|
};
|
|
7969
|
+
timestamp: string;
|
|
7970
|
+
level: "error" | "warn" | "info";
|
|
7428
7971
|
metrics: Record<string, unknown>;
|
|
7429
7972
|
parent: {
|
|
7430
7973
|
logId: string;
|
|
@@ -7450,13 +7993,13 @@ declare const ToolExecutionLogDetailSchema: z$1.ZodObject<{
|
|
|
7450
7993
|
status: "success" | "failed";
|
|
7451
7994
|
data: Record<string, unknown>;
|
|
7452
7995
|
id: string;
|
|
7453
|
-
timestamp: string;
|
|
7454
|
-
level: "error" | "warn" | "info";
|
|
7455
7996
|
metadata: {
|
|
7456
7997
|
instant_charge?: string | undefined;
|
|
7457
7998
|
} & {
|
|
7458
7999
|
[k: string]: unknown;
|
|
7459
8000
|
};
|
|
8001
|
+
timestamp: string;
|
|
8002
|
+
level: "error" | "warn" | "info";
|
|
7460
8003
|
metrics: Record<string, unknown>;
|
|
7461
8004
|
parent: {
|
|
7462
8005
|
logId: string;
|
|
@@ -7538,7 +8081,10 @@ declare class Logs {
|
|
|
7538
8081
|
* active configs only, 20 per page, at most 100.
|
|
7539
8082
|
*/
|
|
7540
8083
|
declare const SessionConfigListParamsSchema: z$1.ZodObject<{
|
|
7541
|
-
/**
|
|
8084
|
+
/**
|
|
8085
|
+
* @deprecated The Composio API no longer accepts this field. It is ignored
|
|
8086
|
+
* and `list()` logs a warning when it is set; filter `items` by name instead.
|
|
8087
|
+
*/
|
|
7542
8088
|
search: z$1.ZodOptional<z$1.ZodString>;
|
|
7543
8089
|
/** `true` returns only archived configs. Omitted returns active configs. */
|
|
7544
8090
|
archived: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -7633,108 +8179,167 @@ declare const SessionConfigListResponseSchema: z$1.ZodObject<{
|
|
|
7633
8179
|
type SessionConfigListResponse = z$1.infer<typeof SessionConfigListResponseSchema>;
|
|
7634
8180
|
/**
|
|
7635
8181
|
* The access policy stored in a saved Session config, in the backend's
|
|
7636
|
-
* `enable`/`disable` shape. Toolkit slug keys and tag names
|
|
7637
|
-
* as the backend sends them.
|
|
8182
|
+
* `enable`/`disable`/`require_approval` shape. Toolkit slug keys and tag names
|
|
8183
|
+
* are kept exactly as the backend sends them.
|
|
7638
8184
|
*/
|
|
7639
8185
|
declare const SessionConfigPolicySchema: z$1.ZodObject<{
|
|
7640
8186
|
toolkits: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodObject<{
|
|
8187
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7641
8188
|
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7642
8189
|
}, "strip", z$1.ZodTypeAny, {
|
|
7643
8190
|
enable: string[];
|
|
8191
|
+
require_approval?: string[] | undefined;
|
|
7644
8192
|
}, {
|
|
7645
8193
|
enable: string[];
|
|
8194
|
+
require_approval?: string[] | undefined;
|
|
7646
8195
|
}>, z$1.ZodObject<{
|
|
8196
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7647
8197
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7648
8198
|
}, "strip", z$1.ZodTypeAny, {
|
|
7649
8199
|
disable: string[];
|
|
8200
|
+
require_approval?: string[] | undefined;
|
|
7650
8201
|
}, {
|
|
7651
8202
|
disable: string[];
|
|
8203
|
+
require_approval?: string[] | undefined;
|
|
8204
|
+
}>, z$1.ZodObject<{
|
|
8205
|
+
require_approval: z$1.ZodArray<z$1.ZodString, "many">;
|
|
8206
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
8207
|
+
require_approval: string[];
|
|
8208
|
+
}, {
|
|
8209
|
+
require_approval: string[];
|
|
7652
8210
|
}>]>>;
|
|
7653
8211
|
/** Per-toolkit tool policy, keyed by toolkit slug. */
|
|
7654
8212
|
tools: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodObject<{
|
|
8213
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7655
8214
|
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7656
8215
|
}, "strip", z$1.ZodTypeAny, {
|
|
7657
8216
|
enable: string[];
|
|
8217
|
+
require_approval?: string[] | undefined;
|
|
7658
8218
|
}, {
|
|
7659
8219
|
enable: string[];
|
|
8220
|
+
require_approval?: string[] | undefined;
|
|
7660
8221
|
}>, z$1.ZodObject<{
|
|
8222
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7661
8223
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7662
8224
|
}, "strip", z$1.ZodTypeAny, {
|
|
7663
8225
|
disable: string[];
|
|
8226
|
+
require_approval?: string[] | undefined;
|
|
7664
8227
|
}, {
|
|
7665
8228
|
disable: string[];
|
|
8229
|
+
require_approval?: string[] | undefined;
|
|
7666
8230
|
}>, z$1.ZodObject<{
|
|
8231
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7667
8232
|
tags: z$1.ZodObject<{
|
|
7668
8233
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7669
8234
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
8235
|
+
/** Tags whose tools need the user's approval before they run. */
|
|
8236
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7670
8237
|
}, "strip", z$1.ZodTypeAny, {
|
|
7671
8238
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7672
8239
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8240
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7673
8241
|
}, {
|
|
7674
8242
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7675
8243
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8244
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7676
8245
|
}>;
|
|
7677
8246
|
}, "strip", z$1.ZodTypeAny, {
|
|
7678
8247
|
tags: {
|
|
7679
8248
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7680
8249
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8250
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7681
8251
|
};
|
|
8252
|
+
require_approval?: string[] | undefined;
|
|
7682
8253
|
}, {
|
|
7683
8254
|
tags: {
|
|
7684
8255
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7685
8256
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8257
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7686
8258
|
};
|
|
8259
|
+
require_approval?: string[] | undefined;
|
|
8260
|
+
}>, z$1.ZodObject<{
|
|
8261
|
+
require_approval: z$1.ZodArray<z$1.ZodString, "many">;
|
|
8262
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
8263
|
+
require_approval: string[];
|
|
8264
|
+
}, {
|
|
8265
|
+
require_approval: string[];
|
|
7687
8266
|
}>]>>>;
|
|
7688
8267
|
/** Global tag policy. */
|
|
7689
8268
|
tags: z$1.ZodOptional<z$1.ZodObject<{
|
|
7690
8269
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7691
8270
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
8271
|
+
/** Tags whose tools need the user's approval before they run. */
|
|
8272
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7692
8273
|
}, "strip", z$1.ZodTypeAny, {
|
|
7693
8274
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7694
8275
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8276
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7695
8277
|
}, {
|
|
7696
8278
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7697
8279
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8280
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7698
8281
|
}>>;
|
|
7699
8282
|
}, "strip", z$1.ZodTypeAny, {
|
|
7700
8283
|
tags?: {
|
|
7701
8284
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7702
8285
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8286
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7703
8287
|
} | undefined;
|
|
7704
8288
|
tools?: Record<string, {
|
|
8289
|
+
require_approval: string[];
|
|
8290
|
+
} | {
|
|
7705
8291
|
enable: string[];
|
|
8292
|
+
require_approval?: string[] | undefined;
|
|
7706
8293
|
} | {
|
|
7707
8294
|
disable: string[];
|
|
8295
|
+
require_approval?: string[] | undefined;
|
|
7708
8296
|
} | {
|
|
7709
8297
|
tags: {
|
|
7710
8298
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7711
8299
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8300
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7712
8301
|
};
|
|
8302
|
+
require_approval?: string[] | undefined;
|
|
7713
8303
|
}> | undefined;
|
|
7714
8304
|
toolkits?: {
|
|
7715
8305
|
enable: string[];
|
|
8306
|
+
require_approval?: string[] | undefined;
|
|
7716
8307
|
} | {
|
|
7717
8308
|
disable: string[];
|
|
8309
|
+
require_approval?: string[] | undefined;
|
|
8310
|
+
} | {
|
|
8311
|
+
require_approval: string[];
|
|
7718
8312
|
} | undefined;
|
|
7719
8313
|
}, {
|
|
7720
8314
|
tags?: {
|
|
7721
8315
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7722
8316
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8317
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7723
8318
|
} | undefined;
|
|
7724
8319
|
tools?: Record<string, {
|
|
8320
|
+
require_approval: string[];
|
|
8321
|
+
} | {
|
|
7725
8322
|
enable: string[];
|
|
8323
|
+
require_approval?: string[] | undefined;
|
|
7726
8324
|
} | {
|
|
7727
8325
|
disable: string[];
|
|
8326
|
+
require_approval?: string[] | undefined;
|
|
7728
8327
|
} | {
|
|
7729
8328
|
tags: {
|
|
7730
8329
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7731
8330
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8331
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7732
8332
|
};
|
|
8333
|
+
require_approval?: string[] | undefined;
|
|
7733
8334
|
}> | undefined;
|
|
7734
8335
|
toolkits?: {
|
|
7735
8336
|
enable: string[];
|
|
8337
|
+
require_approval?: string[] | undefined;
|
|
7736
8338
|
} | {
|
|
7737
8339
|
disable: string[];
|
|
8340
|
+
require_approval?: string[] | undefined;
|
|
8341
|
+
} | {
|
|
8342
|
+
require_approval: string[];
|
|
7738
8343
|
} | undefined;
|
|
7739
8344
|
}>;
|
|
7740
8345
|
type SessionConfigPolicy = z$1.infer<typeof SessionConfigPolicySchema>;
|
|
@@ -7756,103 +8361,162 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7756
8361
|
description: z$1.ZodNullable<z$1.ZodString>;
|
|
7757
8362
|
config: z$1.ZodObject<{
|
|
7758
8363
|
toolkits: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodObject<{
|
|
8364
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7759
8365
|
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7760
8366
|
}, "strip", z$1.ZodTypeAny, {
|
|
7761
8367
|
enable: string[];
|
|
8368
|
+
require_approval?: string[] | undefined;
|
|
7762
8369
|
}, {
|
|
7763
8370
|
enable: string[];
|
|
8371
|
+
require_approval?: string[] | undefined;
|
|
7764
8372
|
}>, z$1.ZodObject<{
|
|
8373
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7765
8374
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7766
8375
|
}, "strip", z$1.ZodTypeAny, {
|
|
7767
8376
|
disable: string[];
|
|
8377
|
+
require_approval?: string[] | undefined;
|
|
7768
8378
|
}, {
|
|
7769
8379
|
disable: string[];
|
|
8380
|
+
require_approval?: string[] | undefined;
|
|
8381
|
+
}>, z$1.ZodObject<{
|
|
8382
|
+
require_approval: z$1.ZodArray<z$1.ZodString, "many">;
|
|
8383
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
8384
|
+
require_approval: string[];
|
|
8385
|
+
}, {
|
|
8386
|
+
require_approval: string[];
|
|
7770
8387
|
}>]>>;
|
|
7771
8388
|
/** Per-toolkit tool policy, keyed by toolkit slug. */
|
|
7772
8389
|
tools: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodObject<{
|
|
8390
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7773
8391
|
enable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7774
8392
|
}, "strip", z$1.ZodTypeAny, {
|
|
7775
8393
|
enable: string[];
|
|
8394
|
+
require_approval?: string[] | undefined;
|
|
7776
8395
|
}, {
|
|
7777
8396
|
enable: string[];
|
|
8397
|
+
require_approval?: string[] | undefined;
|
|
7778
8398
|
}>, z$1.ZodObject<{
|
|
8399
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7779
8400
|
disable: z$1.ZodArray<z$1.ZodString, "many">;
|
|
7780
8401
|
}, "strip", z$1.ZodTypeAny, {
|
|
7781
8402
|
disable: string[];
|
|
8403
|
+
require_approval?: string[] | undefined;
|
|
7782
8404
|
}, {
|
|
7783
8405
|
disable: string[];
|
|
8406
|
+
require_approval?: string[] | undefined;
|
|
7784
8407
|
}>, z$1.ZodObject<{
|
|
8408
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
7785
8409
|
tags: z$1.ZodObject<{
|
|
7786
8410
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7787
8411
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
8412
|
+
/** Tags whose tools need the user's approval before they run. */
|
|
8413
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7788
8414
|
}, "strip", z$1.ZodTypeAny, {
|
|
7789
8415
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7790
8416
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8417
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7791
8418
|
}, {
|
|
7792
8419
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7793
8420
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8421
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7794
8422
|
}>;
|
|
7795
8423
|
}, "strip", z$1.ZodTypeAny, {
|
|
7796
8424
|
tags: {
|
|
7797
8425
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7798
8426
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8427
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7799
8428
|
};
|
|
8429
|
+
require_approval?: string[] | undefined;
|
|
7800
8430
|
}, {
|
|
7801
8431
|
tags: {
|
|
7802
8432
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7803
8433
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8434
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7804
8435
|
};
|
|
8436
|
+
require_approval?: string[] | undefined;
|
|
8437
|
+
}>, z$1.ZodObject<{
|
|
8438
|
+
require_approval: z$1.ZodArray<z$1.ZodString, "many">;
|
|
8439
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
8440
|
+
require_approval: string[];
|
|
8441
|
+
}, {
|
|
8442
|
+
require_approval: string[];
|
|
7805
8443
|
}>]>>>;
|
|
7806
8444
|
/** Global tag policy. */
|
|
7807
8445
|
tags: z$1.ZodOptional<z$1.ZodObject<{
|
|
7808
8446
|
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7809
8447
|
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
8448
|
+
/** Tags whose tools need the user's approval before they run. */
|
|
8449
|
+
require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7810
8450
|
}, "strip", z$1.ZodTypeAny, {
|
|
7811
8451
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7812
8452
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8453
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7813
8454
|
}, {
|
|
7814
8455
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7815
8456
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8457
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7816
8458
|
}>>;
|
|
7817
8459
|
}, "strip", z$1.ZodTypeAny, {
|
|
7818
8460
|
tags?: {
|
|
7819
8461
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7820
8462
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8463
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7821
8464
|
} | undefined;
|
|
7822
8465
|
tools?: Record<string, {
|
|
8466
|
+
require_approval: string[];
|
|
8467
|
+
} | {
|
|
7823
8468
|
enable: string[];
|
|
8469
|
+
require_approval?: string[] | undefined;
|
|
7824
8470
|
} | {
|
|
7825
8471
|
disable: string[];
|
|
8472
|
+
require_approval?: string[] | undefined;
|
|
7826
8473
|
} | {
|
|
7827
8474
|
tags: {
|
|
7828
8475
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7829
8476
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8477
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7830
8478
|
};
|
|
8479
|
+
require_approval?: string[] | undefined;
|
|
7831
8480
|
}> | undefined;
|
|
7832
8481
|
toolkits?: {
|
|
7833
8482
|
enable: string[];
|
|
8483
|
+
require_approval?: string[] | undefined;
|
|
7834
8484
|
} | {
|
|
7835
8485
|
disable: string[];
|
|
8486
|
+
require_approval?: string[] | undefined;
|
|
8487
|
+
} | {
|
|
8488
|
+
require_approval: string[];
|
|
7836
8489
|
} | undefined;
|
|
7837
8490
|
}, {
|
|
7838
8491
|
tags?: {
|
|
7839
8492
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7840
8493
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8494
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7841
8495
|
} | undefined;
|
|
7842
8496
|
tools?: Record<string, {
|
|
8497
|
+
require_approval: string[];
|
|
8498
|
+
} | {
|
|
7843
8499
|
enable: string[];
|
|
8500
|
+
require_approval?: string[] | undefined;
|
|
7844
8501
|
} | {
|
|
7845
8502
|
disable: string[];
|
|
8503
|
+
require_approval?: string[] | undefined;
|
|
7846
8504
|
} | {
|
|
7847
8505
|
tags: {
|
|
7848
8506
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7849
8507
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8508
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7850
8509
|
};
|
|
8510
|
+
require_approval?: string[] | undefined;
|
|
7851
8511
|
}> | undefined;
|
|
7852
8512
|
toolkits?: {
|
|
7853
8513
|
enable: string[];
|
|
8514
|
+
require_approval?: string[] | undefined;
|
|
7854
8515
|
} | {
|
|
7855
8516
|
disable: string[];
|
|
8517
|
+
require_approval?: string[] | undefined;
|
|
8518
|
+
} | {
|
|
8519
|
+
require_approval: string[];
|
|
7856
8520
|
} | undefined;
|
|
7857
8521
|
}>;
|
|
7858
8522
|
}, "strip", z$1.ZodTypeAny, {
|
|
@@ -7865,21 +8529,32 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7865
8529
|
tags?: {
|
|
7866
8530
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7867
8531
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8532
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7868
8533
|
} | undefined;
|
|
7869
8534
|
tools?: Record<string, {
|
|
8535
|
+
require_approval: string[];
|
|
8536
|
+
} | {
|
|
7870
8537
|
enable: string[];
|
|
8538
|
+
require_approval?: string[] | undefined;
|
|
7871
8539
|
} | {
|
|
7872
8540
|
disable: string[];
|
|
8541
|
+
require_approval?: string[] | undefined;
|
|
7873
8542
|
} | {
|
|
7874
8543
|
tags: {
|
|
7875
8544
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7876
8545
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8546
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7877
8547
|
};
|
|
8548
|
+
require_approval?: string[] | undefined;
|
|
7878
8549
|
}> | undefined;
|
|
7879
8550
|
toolkits?: {
|
|
7880
8551
|
enable: string[];
|
|
8552
|
+
require_approval?: string[] | undefined;
|
|
7881
8553
|
} | {
|
|
7882
8554
|
disable: string[];
|
|
8555
|
+
require_approval?: string[] | undefined;
|
|
8556
|
+
} | {
|
|
8557
|
+
require_approval: string[];
|
|
7883
8558
|
} | undefined;
|
|
7884
8559
|
};
|
|
7885
8560
|
archived: boolean;
|
|
@@ -7893,21 +8568,32 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7893
8568
|
tags?: {
|
|
7894
8569
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7895
8570
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8571
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7896
8572
|
} | undefined;
|
|
7897
8573
|
tools?: Record<string, {
|
|
8574
|
+
require_approval: string[];
|
|
8575
|
+
} | {
|
|
7898
8576
|
enable: string[];
|
|
8577
|
+
require_approval?: string[] | undefined;
|
|
7899
8578
|
} | {
|
|
7900
8579
|
disable: string[];
|
|
8580
|
+
require_approval?: string[] | undefined;
|
|
7901
8581
|
} | {
|
|
7902
8582
|
tags: {
|
|
7903
8583
|
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7904
8584
|
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
8585
|
+
require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7905
8586
|
};
|
|
8587
|
+
require_approval?: string[] | undefined;
|
|
7906
8588
|
}> | undefined;
|
|
7907
8589
|
toolkits?: {
|
|
7908
8590
|
enable: string[];
|
|
8591
|
+
require_approval?: string[] | undefined;
|
|
7909
8592
|
} | {
|
|
7910
8593
|
disable: string[];
|
|
8594
|
+
require_approval?: string[] | undefined;
|
|
8595
|
+
} | {
|
|
8596
|
+
require_approval: string[];
|
|
7911
8597
|
} | undefined;
|
|
7912
8598
|
};
|
|
7913
8599
|
archived: boolean;
|
|
@@ -7928,7 +8614,7 @@ type SessionConfig = z$1.infer<typeof SessionConfigSchema>;
|
|
|
7928
8614
|
*
|
|
7929
8615
|
* @example
|
|
7930
8616
|
* ```typescript
|
|
7931
|
-
* const { items } = await composio.sessionConfigs.list(
|
|
8617
|
+
* const { items } = await composio.sessionConfigs.list();
|
|
7932
8618
|
* const sessionConfig = await composio.sessionConfigs.get(items[0].id);
|
|
7933
8619
|
* const session = await composio.sessions.create('user_123', {
|
|
7934
8620
|
* experimental: { sessionConfigId: sessionConfig.id },
|
|
@@ -7946,7 +8632,8 @@ declare class SessionConfigs {
|
|
|
7946
8632
|
*
|
|
7947
8633
|
* Requires Session configs to be enabled for the project.
|
|
7948
8634
|
*
|
|
7949
|
-
* @param {SessionConfigListParams} [params] - `
|
|
8635
|
+
* @param {SessionConfigListParams} [params] - `archived`, `limit` and `cursor`; the
|
|
8636
|
+
* deprecated `search` is ignored
|
|
7950
8637
|
* @returns {Promise<SessionConfigListResponse>} Config summaries and the next cursor
|
|
7951
8638
|
* @throws {ValidationError} If the params fail validation
|
|
7952
8639
|
*
|
|
@@ -7999,18 +8686,18 @@ declare const KeyringTransferKeySchema: z$1.ZodObject<{
|
|
|
7999
8686
|
/** Key identifier. Put it in the JWE protected header. */
|
|
8000
8687
|
kid: z$1.ZodString;
|
|
8001
8688
|
}, "strip", z$1.ZodTypeAny, {
|
|
8689
|
+
use: string;
|
|
8002
8690
|
kty: string;
|
|
8003
8691
|
n: string;
|
|
8004
8692
|
e: string;
|
|
8005
8693
|
alg: string;
|
|
8006
|
-
use: string;
|
|
8007
8694
|
kid: string;
|
|
8008
8695
|
}, {
|
|
8696
|
+
use: string;
|
|
8009
8697
|
kty: string;
|
|
8010
8698
|
n: string;
|
|
8011
8699
|
e: string;
|
|
8012
8700
|
alg: string;
|
|
8013
|
-
use: string;
|
|
8014
8701
|
kid: string;
|
|
8015
8702
|
}>;
|
|
8016
8703
|
type KeyringTransferKey = z$1.infer<typeof KeyringTransferKeySchema>;
|
|
@@ -8035,37 +8722,37 @@ declare const KeyringTransferKeysResponseSchema: z$1.ZodObject<{
|
|
|
8035
8722
|
/** Key identifier. Put it in the JWE protected header. */
|
|
8036
8723
|
kid: z$1.ZodString;
|
|
8037
8724
|
}, "strip", z$1.ZodTypeAny, {
|
|
8725
|
+
use: string;
|
|
8038
8726
|
kty: string;
|
|
8039
8727
|
n: string;
|
|
8040
8728
|
e: string;
|
|
8041
8729
|
alg: string;
|
|
8042
|
-
use: string;
|
|
8043
8730
|
kid: string;
|
|
8044
8731
|
}, {
|
|
8732
|
+
use: string;
|
|
8045
8733
|
kty: string;
|
|
8046
8734
|
n: string;
|
|
8047
8735
|
e: string;
|
|
8048
8736
|
alg: string;
|
|
8049
|
-
use: string;
|
|
8050
8737
|
kid: string;
|
|
8051
8738
|
}>, "many">;
|
|
8052
8739
|
}, "strip", z$1.ZodTypeAny, {
|
|
8053
8740
|
keys: {
|
|
8741
|
+
use: string;
|
|
8054
8742
|
kty: string;
|
|
8055
8743
|
n: string;
|
|
8056
8744
|
e: string;
|
|
8057
8745
|
alg: string;
|
|
8058
|
-
use: string;
|
|
8059
8746
|
kid: string;
|
|
8060
8747
|
}[];
|
|
8061
8748
|
activeKid: string;
|
|
8062
8749
|
}, {
|
|
8063
8750
|
keys: {
|
|
8751
|
+
use: string;
|
|
8064
8752
|
kty: string;
|
|
8065
8753
|
n: string;
|
|
8066
8754
|
e: string;
|
|
8067
8755
|
alg: string;
|
|
8068
|
-
use: string;
|
|
8069
8756
|
kid: string;
|
|
8070
8757
|
}[];
|
|
8071
8758
|
activeKid: string;
|
|
@@ -8347,6 +9034,17 @@ declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection
|
|
|
8347
9034
|
//#region src/types/composio.types.d.ts
|
|
8348
9035
|
type ComposioRequestHeaders = Record<string, string>;
|
|
8349
9036
|
//#endregion
|
|
9037
|
+
//#region src/lib/toolRouterParams.d.ts
|
|
9038
|
+
/** Local tools options, accepted under their current names and the deprecated `custom*` aliases. */
|
|
9039
|
+
type LocalToolsOptions = {
|
|
9040
|
+
localTools?: LocalTool[];
|
|
9041
|
+
localToolkits?: LocalToolkit[];
|
|
9042
|
+
/** @deprecated Use `localTools` instead. */
|
|
9043
|
+
customTools?: LocalTool[];
|
|
9044
|
+
/** @deprecated Use `localToolkits` instead. */
|
|
9045
|
+
customToolkits?: LocalToolkit[];
|
|
9046
|
+
};
|
|
9047
|
+
//#endregion
|
|
8350
9048
|
//#region src/models/ToolRouter.d.ts
|
|
8351
9049
|
declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
8352
9050
|
private client;
|
|
@@ -8379,6 +9077,7 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
8379
9077
|
* @param config {ToolRouterCreateSessionConfig} The config for the tool router session
|
|
8380
9078
|
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
8381
9079
|
* @throws {ComposioMCPDestinationError} When `mcp: true` is passed and the MCP URL is not on the API origin
|
|
9080
|
+
* @throws {ValidationError} When a local tools option and its deprecated `custom*` alias are both passed
|
|
8382
9081
|
*
|
|
8383
9082
|
* @example
|
|
8384
9083
|
* ```typescript
|
|
@@ -8390,8 +9089,8 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
8390
9089
|
* toolkits: ['gmail'],
|
|
8391
9090
|
* manageConnections: true,
|
|
8392
9091
|
* experimental: {
|
|
8393
|
-
*
|
|
8394
|
-
*
|
|
9092
|
+
* localTools: [myLocalTool],
|
|
9093
|
+
* localToolkits: [myLocalToolkit],
|
|
8395
9094
|
* },
|
|
8396
9095
|
* });
|
|
8397
9096
|
*
|
|
@@ -8417,8 +9116,12 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
8417
9116
|
* origins is logged, so native tools keep working.
|
|
8418
9117
|
*
|
|
8419
9118
|
* @param id {string} The id of the session to use
|
|
9119
|
+
* @param options {object} Optional session reuse options
|
|
9120
|
+
* @param options.localTools Local tools to attach to the session; `customTools` is a deprecated alias.
|
|
9121
|
+
* @param options.localToolkits Toolkits of local tools to attach; `customToolkits` is a deprecated alias.
|
|
8420
9122
|
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
8421
9123
|
* @throws {ComposioMCPDestinationError} When `mcp: true` is passed and the MCP URL is not on the API origin
|
|
9124
|
+
* @throws {ValidationError} When a local tools option and its deprecated `custom*` alias are both passed
|
|
8422
9125
|
*
|
|
8423
9126
|
* @example
|
|
8424
9127
|
* ```typescript
|
|
@@ -8432,14 +9135,10 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
8432
9135
|
* console.log(session.mcp.headers);
|
|
8433
9136
|
* ```
|
|
8434
9137
|
*/
|
|
8435
|
-
use(id: string, options: {
|
|
8436
|
-
customTools?: CustomTool[];
|
|
8437
|
-
customToolkits?: CustomToolkit[];
|
|
9138
|
+
use(id: string, options: LocalToolsOptions & {
|
|
8438
9139
|
mcp: true;
|
|
8439
9140
|
}, requestOptions?: ComposioRequestOptions): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
8440
|
-
use(id: string, options?: {
|
|
8441
|
-
customTools?: CustomTool[];
|
|
8442
|
-
customToolkits?: CustomToolkit[];
|
|
9141
|
+
use(id: string, options?: LocalToolsOptions & {
|
|
8443
9142
|
mcp?: boolean;
|
|
8444
9143
|
}, requestOptions?: ComposioRequestOptions): Promise<SessionWithoutMcp<TToolCollection, TTool, TProvider>>;
|
|
8445
9144
|
/**
|
|
@@ -8946,4 +9645,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
8946
9645
|
flush(): Promise<void>;
|
|
8947
9646
|
}
|
|
8948
9647
|
//#endregion
|
|
8949
|
-
export { WebhookEndpointListItemSchema as $,
|
|
9648
|
+
export { WebhookEndpointListItemSchema as $, TriggersTypeRetrieveResponse as $n, ToolkitCategorySchema as $r, UsageBreakdownGroup as $t, LogSearchFilterSchema as A, ToolkitsListParamsSchema as Ai, TriggerInstanceManageDeleteResponse as An, AuthDefaultConfigUpdateParamsSchema as Ar, CustomToolkitApiKeyField as At, ToolExecutionLogLevelSchema as B, TriggerInstanceUpsertResponse as Bn, ToolKitItem as Br, CustomToolkitSyncParams as Bt, SessionConfigSummarySchema as C, ToolkitRetrieveResponse as Ci, TriggerEventData as Cn, AuthConfigRetrieveResponseSchema as Cr, WebhookSubscriptionSetParamsSchema as Ct, LogSearchFilterFieldSchema as D, ToolkitVersionChangelog as Di, TriggerInstanceListActiveResponseItem as Dn, AuthConfigUpdateParams as Dr, MCP as Dt, LogSearchFilterField as E, ToolkitSortByEnumSchema as Ei, TriggerInstanceListActiveResponse as En, AuthConfigTypes as Er, WebhookVersionSchema as Et, LogSearchTimeRange as F, TriggerInstanceManageUpdateResponseSchema as Fn, CreateAuthConfigParamsSchema as Fr, CustomToolkitCreateResponse as Ft, ToolExecutionLogStatusSchema as G, TriggerSubscribeParamSchema as Gn, ToolKitMetaSchema as Gr, CustomToolkitUpdateParamsSchema as Gt, ToolExecutionLogMetadataSchema as H, TriggerStatusEnum as Hn, ToolKitListResponse as Hr, CustomToolkitSyncResponse as Ht, LogSearchTimeRangeSchema as I, TriggerInstanceType as In, CreateAuthConfigResponse as Ir, CustomToolkitCreateResponseSchema as It, Webhooks as J, TriggerTypeSchema as Jn, ToolkitAuthField as Jr, CustomToolkitUpsertParams as Jt, WebhookEndpoints as K, TriggerSubscribeParams as Kn, ToolkitAuthConfigDetails as Kr, CustomToolkitUpdateResponse as Kt, ToolExecutionLog as L, TriggerInstanceTypeSchema as Ln, CreateAuthConfigResponseSchema as Lr, CustomToolkitDeleteResponse as Lt, LogSearchParamsSchema as M, TriggerInstanceManageUpdateParams as Mn, AuthSchemeType as Mr, CustomToolkitAuthSchemeSchema as Mt, LogSearchResponse as N, TriggerInstanceManageUpdateParamsSchema as Nn, AuthSchemeTypes as Nr, CustomToolkitCreateParams as Nt, LogSearchFilterOperator as O, ToolkitVersionChangelogSchema as Oi, TriggerInstanceListActiveResponseItemSchema as On, AuthConfigUpdateParamsSchema as Or, Experimental as Ot, LogSearchResponseSchema as P, TriggerInstanceManageUpdateResponse as Pn, CreateAuthConfigParams as Pr, CustomToolkitCreateParamsSchema as Pt, WebhookEndpointListItem as Q, TriggersTypeListResponseSchema as Qn, ToolkitCategory as Qr, Usage as Qt, ToolExecutionLogDetail as R, TriggerInstanceUpsertParams as Rn, CreateComposioManagedAuthConfigParamsSchema as Rr, CustomToolkitDeleteResponseSchema as Rt, SessionConfigSummary as S, ToolkitRetrieveCategoriesResponseSchema as Si, TriggerEvent as Sn, AuthConfigRetrieveResponse as Sr, WebhookSubscriptionSetParams as St, LogSearchFilter as T, ToolkitSortByEnum as Ti, TriggerInstanceListActiveParamsSchema as Tn, AuthConfigType as Tr, WebhookSubscriptionUpdateParamsSchema as Tt, ToolExecutionLogParentSchema as U, TriggerStatusType as Un, ToolKitListResponseSchema as Ur, CustomToolkitSyncResponseSchema as Ut, ToolExecutionLogMetadata as V, TriggerInstanceUpsertResponseSchema as Vn, ToolKitItemSchema as Vr, CustomToolkitSyncParamsSchema as Vt, ToolExecutionLogSchema as W, TriggerStatuses as Wn, ToolKitMeta as Wr, CustomToolkitUpdateParams as Wt, WebhookEndpointCreateParams as X, TriggersTypeListParamsSchema as Xn, ToolkitAuthFieldsResponse as Xr, CustomToolkitUpsertResponse as Xt, WebhookEndpoint as Y, TriggersTypeListParams as Yn, ToolkitAuthFieldSchema as Yr, CustomToolkitUpsertParamsSchema as Yt, WebhookEndpointCreateParamsSchema as Z, TriggersTypeListResponse as Zn, ToolkitAuthFieldsResponseSchema as Zr, CustomToolkitUpsertResponseSchema as Zt, SessionConfigListResponse as _, ToolkitRecommendScopesParams as _i, IncomingTriggerPayloadSchema as _n, AuthConfigCreationToolAccessConfigSchema as _r, WebhookSubscriptionListResponse as _t, ComposioLogger as a, ToolkitConditionalScopeSchema as ai, UsageEntitySummary as an, WebhookPayloadV1 as ar, WebhookEndpointReplaceParamsSchema as at, SessionConfigPolicySchema as b, ToolkitRecommendScopesResponseSchema as bi, SetWebhookSubscriptionParamsSchema as bn, AuthConfigListResponse as br, WebhookSubscriptionRotateSecretResponseSchema as bt, Keyring as c, ToolkitGrantContextDimension as ci, UsageFiltersSchema as cn, WebhookPayloadV2Schema as cr, WebhookEndpointUpdateParamsSchema as ct, KeyringTransferKeysResponse as d, ToolkitListGrantContextsParamsSchema as di, UsageSummaryParams as dn, WebhookRequestLike as dr, WebhookSubscriptionEventType as dt, ToolkitChangelogItem as ei, UsageBreakdownGroupSchema as en, VerifyWebhookParams as er, WebhookEndpointListParams as et, KeyringTransferKeysResponseSchema as f, ToolkitListGrantContextsResponse as fi, UsageSummaryParamsSchema as fn, WebhookSubscription as fr, WebhookSubscriptionEventTypeSchema as ft, SessionConfigListParamsSchema as g, ToolkitMangedByEnumSchema as gi, IncomingTriggerPayload as gn, WebhookVersions as gr, WebhookSubscriptionListParamsSchema as gt, SessionConfigListParams as h, ToolkitMangedByEnum as hi, DefaultWebhookSubscriptionEvents as hn, WebhookVersion as hr, WebhookSubscriptionListParams as ht, OpenAIProvider as i, ToolkitConditionalScope as ii, UsageBreakdownResponseSchema as in, WebhookPayloadSchema as ir, WebhookEndpointReplaceParams as it, LogSearchParams as j, TriggerInstanceManageDeleteResponseSchema as jn, AuthSchemeEnum as jr, CustomToolkitAuthScheme as jt, LogSearchFilterOperatorSchema as k, ToolkitsGetManyParamsSchema as ki, TriggerInstanceListActiveResponseSchema as kn, AuthCustomConfigUpdateParamsSchema as kr, CustomToolkits as kt, KeyringTransferKey as l, ToolkitGrantContextDimensionSchema as li, UsageOrderBySchema as ln, WebhookPayloadV3 as lr, WebhookSubscriptionDeleteResponse as lt, SessionConfig as m, ToolkitListParams as mi, UsageSummaryResponseSchema as mn, WebhookTriggerPayloadV3Schema as mr, WebhookSubscriptionEventTypesResponseSchema as mt, ComposioConfig as n, ToolkitChangelogResponse as ni, UsageBreakdownParamsSchema as nn, VerifyWebhookResult as nr, WebhookEndpointListResponse as nt, LogLevel as o, ToolkitGetManyParams as oi, UsageEntitySummarySchema as on, WebhookPayloadV1Schema as or, WebhookEndpointSchema as ot, SessionConfigs as p, ToolkitListGrantContextsResponseSchema as pi, UsageSummaryResponse as pn, WebhookTriggerPayloadV3 as pr, WebhookSubscriptionEventTypesResponse as pt, WebhookSubscriptions as q, TriggerType as qn, ToolkitAuthConfigDetailsSchema as qr, CustomToolkitUpdateResponseSchema as qt, Sessions as r, ToolkitChangelogResponseSchema as ri, UsageBreakdownResponse as rn, WebhookPayload as rr, WebhookEndpointListResponseSchema as rt, logger as s, ToolkitGetManySlugsSchema as si, UsageFilters as sn, WebhookPayloadV2 as sr, WebhookEndpointUpdateParams as st, Composio$1 as t, ToolkitChangelogItemSchema as ti, UsageBreakdownParams as tn, VerifyWebhookParamsSchema as tr, WebhookEndpointListParamsSchema as tt, KeyringTransferKeySchema as u, ToolkitListGrantContextsParams as ui, UsageOrderDirectionSchema as un, WebhookPayloadV3Schema as ur, WebhookSubscriptionDeleteResponseSchema as ut, SessionConfigListResponseSchema as v, ToolkitRecommendScopesParamsSchema as vi, ParseWebhookOptions as vn, AuthConfigListParams as vr, WebhookSubscriptionListResponseSchema as vt, Logs as w, ToolkitRetrieveResponseSchema as wi, TriggerInstanceListActiveParams as wn, AuthConfigToolAccessConfigSchema as wr, WebhookSubscriptionUpdateParams as wt, SessionConfigSchema as x, ToolkitRetrieveCategoriesResponse as xi, TriggerData as xn, AuthConfigListResponseSchema as xr, WebhookSubscriptionSchema as xt, SessionConfigPolicy as y, ToolkitRecommendScopesResponse as yi, SetWebhookSubscriptionParams as yn, AuthConfigListParamsSchema as yr, WebhookSubscriptionRotateSecretResponse as yt, ToolExecutionLogDetailSchema as z, TriggerInstanceUpsertParamsSchema as zn, CreateCustomAuthConfigParamsSchema as zr, CustomToolkitLogoFile as zt };
|