@composio/core 0.9.1 → 0.10.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/dist/{CustomTool-Bkk0QYzw.cjs → CustomTool-CQ_YjABZ.cjs} +2 -2
- package/dist/{CustomTool-IIUhFtP8.mjs → CustomTool-D7-1S2at.mjs} +2 -2
- package/dist/{CustomTool-BFkwL1aY.d.mts → CustomTool-DJUGNOer.d.mts} +1 -1
- package/dist/{CustomTool-PSRHsd85.d.cts → CustomTool-aber890o.d.cts} +1 -1
- package/dist/{composio-BnLWW0B6.d.cts → composio-CSMCZZgj.d.cts} +64 -38
- package/dist/{composio-Dzlk0Wj4.d.mts → composio-DRl6WCI9.d.mts} +64 -38
- package/dist/{customTool.types-BVgnEbR2.d.cts → customTool.types-BzEWHa0w.d.cts} +164 -69
- package/dist/{customTool.types-oV5boR1w.d.mts → customTool.types-CMOMgxoM.d.mts} +164 -69
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.cjs +184 -101
- package/dist/index.d.cts +13 -9
- package/dist/index.d.mts +13 -9
- package/dist/index.mjs +182 -102
- package/dist/{types-AcoPzTnm.d.mts → types-BTOPdg4d.d.mts} +1 -1
- package/dist/{types-4vkdo_RG.d.cts → types-DE7O6Z6S.d.cts} +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as ToolkitVersionParam, I as ProviderOptions, J as BaseNonAgenticProvider, Kt as McpUrlResponse, L as SessionExecuteMetaModifiers, P as ExecuteToolModifiers, Vt as McpServerGetResponse, Xt as ExecuteToolFnOptions, a as SchemaModifierOptions, b as ToolRetrievalOptions, d as ToolExecuteResponse$1, l as ToolExecuteParams, m as ToolListParams, o as Tool, p as ToolList, q as BaseComposioProvider, s as ToolExecuteMetaParams, v as ToolProxyParams } from "./tool.types-CB_4JKhV.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Cn as UpdateConnectedAccountAclParams, H as ToolRouterCreateSessionConfig, Qt as ConnectedAccountListResponse, Rt as ConnectionRequest, Tn as UpdateConnectedAccountParams, Xt as ConnectedAccountListParams, a as CustomTool, c as CustomToolInputParameter, fn as CreateConnectedAccountLinkOptions, gn as CreateConnectedAccountOptions, h as CustomToolkit, j as Session, l as CustomToolOptions, rn as ConnectedAccountRetrieveResponse, tn as ConnectedAccountRefreshOptions } from "./customTool.types-CMOMgxoM.mjs";
|
|
3
3
|
import ComposioClient, { Composio } from "@composio/client";
|
|
4
4
|
import z, { z as z$1 } from "zod/v3";
|
|
5
5
|
import { OpenAI } from "openai";
|
|
@@ -583,7 +583,6 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
|
|
|
583
583
|
description?: string | undefined;
|
|
584
584
|
availableVersions?: string[] | undefined;
|
|
585
585
|
createdAt?: string | undefined;
|
|
586
|
-
updatedAt?: string | undefined;
|
|
587
586
|
categories?: {
|
|
588
587
|
slug: string;
|
|
589
588
|
name: string;
|
|
@@ -591,12 +590,12 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
|
|
|
591
590
|
appUrl?: string | undefined;
|
|
592
591
|
toolsCount?: number | undefined;
|
|
593
592
|
triggersCount?: number | undefined;
|
|
593
|
+
updatedAt?: string | undefined;
|
|
594
594
|
}, {
|
|
595
595
|
logo?: string | undefined;
|
|
596
596
|
description?: string | undefined;
|
|
597
597
|
availableVersions?: string[] | undefined;
|
|
598
598
|
createdAt?: string | undefined;
|
|
599
|
-
updatedAt?: string | undefined;
|
|
600
599
|
categories?: {
|
|
601
600
|
slug: string;
|
|
602
601
|
name: string;
|
|
@@ -604,6 +603,7 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
|
|
|
604
603
|
appUrl?: string | undefined;
|
|
605
604
|
toolsCount?: number | undefined;
|
|
606
605
|
triggersCount?: number | undefined;
|
|
606
|
+
updatedAt?: string | undefined;
|
|
607
607
|
}>;
|
|
608
608
|
declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
609
609
|
name: z$1.ZodString;
|
|
@@ -632,7 +632,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
632
632
|
description?: string | undefined;
|
|
633
633
|
availableVersions?: string[] | undefined;
|
|
634
634
|
createdAt?: string | undefined;
|
|
635
|
-
updatedAt?: string | undefined;
|
|
636
635
|
categories?: {
|
|
637
636
|
slug: string;
|
|
638
637
|
name: string;
|
|
@@ -640,12 +639,12 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
640
639
|
appUrl?: string | undefined;
|
|
641
640
|
toolsCount?: number | undefined;
|
|
642
641
|
triggersCount?: number | undefined;
|
|
642
|
+
updatedAt?: string | undefined;
|
|
643
643
|
}, {
|
|
644
644
|
logo?: string | undefined;
|
|
645
645
|
description?: string | undefined;
|
|
646
646
|
availableVersions?: string[] | undefined;
|
|
647
647
|
createdAt?: string | undefined;
|
|
648
|
-
updatedAt?: string | undefined;
|
|
649
648
|
categories?: {
|
|
650
649
|
slug: string;
|
|
651
650
|
name: string;
|
|
@@ -653,6 +652,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
653
652
|
appUrl?: string | undefined;
|
|
654
653
|
toolsCount?: number | undefined;
|
|
655
654
|
triggersCount?: number | undefined;
|
|
655
|
+
updatedAt?: string | undefined;
|
|
656
656
|
}>;
|
|
657
657
|
isLocalToolkit: z$1.ZodBoolean;
|
|
658
658
|
authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
@@ -666,7 +666,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
666
666
|
description?: string | undefined;
|
|
667
667
|
availableVersions?: string[] | undefined;
|
|
668
668
|
createdAt?: string | undefined;
|
|
669
|
-
updatedAt?: string | undefined;
|
|
670
669
|
categories?: {
|
|
671
670
|
slug: string;
|
|
672
671
|
name: string;
|
|
@@ -674,6 +673,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
674
673
|
appUrl?: string | undefined;
|
|
675
674
|
toolsCount?: number | undefined;
|
|
676
675
|
triggersCount?: number | undefined;
|
|
676
|
+
updatedAt?: string | undefined;
|
|
677
677
|
};
|
|
678
678
|
isLocalToolkit: boolean;
|
|
679
679
|
authSchemes?: string[] | undefined;
|
|
@@ -687,7 +687,6 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
687
687
|
description?: string | undefined;
|
|
688
688
|
availableVersions?: string[] | undefined;
|
|
689
689
|
createdAt?: string | undefined;
|
|
690
|
-
updatedAt?: string | undefined;
|
|
691
690
|
categories?: {
|
|
692
691
|
slug: string;
|
|
693
692
|
name: string;
|
|
@@ -695,6 +694,7 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
|
|
|
695
694
|
appUrl?: string | undefined;
|
|
696
695
|
toolsCount?: number | undefined;
|
|
697
696
|
triggersCount?: number | undefined;
|
|
697
|
+
updatedAt?: string | undefined;
|
|
698
698
|
};
|
|
699
699
|
isLocalToolkit: boolean;
|
|
700
700
|
authSchemes?: string[] | undefined;
|
|
@@ -728,7 +728,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
728
728
|
description?: string | undefined;
|
|
729
729
|
availableVersions?: string[] | undefined;
|
|
730
730
|
createdAt?: string | undefined;
|
|
731
|
-
updatedAt?: string | undefined;
|
|
732
731
|
categories?: {
|
|
733
732
|
slug: string;
|
|
734
733
|
name: string;
|
|
@@ -736,12 +735,12 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
736
735
|
appUrl?: string | undefined;
|
|
737
736
|
toolsCount?: number | undefined;
|
|
738
737
|
triggersCount?: number | undefined;
|
|
738
|
+
updatedAt?: string | undefined;
|
|
739
739
|
}, {
|
|
740
740
|
logo?: string | undefined;
|
|
741
741
|
description?: string | undefined;
|
|
742
742
|
availableVersions?: string[] | undefined;
|
|
743
743
|
createdAt?: string | undefined;
|
|
744
|
-
updatedAt?: string | undefined;
|
|
745
744
|
categories?: {
|
|
746
745
|
slug: string;
|
|
747
746
|
name: string;
|
|
@@ -749,6 +748,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
749
748
|
appUrl?: string | undefined;
|
|
750
749
|
toolsCount?: number | undefined;
|
|
751
750
|
triggersCount?: number | undefined;
|
|
751
|
+
updatedAt?: string | undefined;
|
|
752
752
|
}>;
|
|
753
753
|
isLocalToolkit: z$1.ZodBoolean;
|
|
754
754
|
authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
@@ -762,7 +762,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
762
762
|
description?: string | undefined;
|
|
763
763
|
availableVersions?: string[] | undefined;
|
|
764
764
|
createdAt?: string | undefined;
|
|
765
|
-
updatedAt?: string | undefined;
|
|
766
765
|
categories?: {
|
|
767
766
|
slug: string;
|
|
768
767
|
name: string;
|
|
@@ -770,6 +769,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
770
769
|
appUrl?: string | undefined;
|
|
771
770
|
toolsCount?: number | undefined;
|
|
772
771
|
triggersCount?: number | undefined;
|
|
772
|
+
updatedAt?: string | undefined;
|
|
773
773
|
};
|
|
774
774
|
isLocalToolkit: boolean;
|
|
775
775
|
authSchemes?: string[] | undefined;
|
|
@@ -783,7 +783,6 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
783
783
|
description?: string | undefined;
|
|
784
784
|
availableVersions?: string[] | undefined;
|
|
785
785
|
createdAt?: string | undefined;
|
|
786
|
-
updatedAt?: string | undefined;
|
|
787
786
|
categories?: {
|
|
788
787
|
slug: string;
|
|
789
788
|
name: string;
|
|
@@ -791,6 +790,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
791
790
|
appUrl?: string | undefined;
|
|
792
791
|
toolsCount?: number | undefined;
|
|
793
792
|
triggersCount?: number | undefined;
|
|
793
|
+
updatedAt?: string | undefined;
|
|
794
794
|
};
|
|
795
795
|
isLocalToolkit: boolean;
|
|
796
796
|
authSchemes?: string[] | undefined;
|
|
@@ -1187,7 +1187,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1187
1187
|
description?: string | undefined;
|
|
1188
1188
|
availableVersions?: string[] | undefined;
|
|
1189
1189
|
createdAt?: string | undefined;
|
|
1190
|
-
updatedAt?: string | undefined;
|
|
1191
1190
|
categories?: {
|
|
1192
1191
|
slug: string;
|
|
1193
1192
|
name: string;
|
|
@@ -1195,12 +1194,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1195
1194
|
appUrl?: string | undefined;
|
|
1196
1195
|
toolsCount?: number | undefined;
|
|
1197
1196
|
triggersCount?: number | undefined;
|
|
1197
|
+
updatedAt?: string | undefined;
|
|
1198
1198
|
}, {
|
|
1199
1199
|
logo?: string | undefined;
|
|
1200
1200
|
description?: string | undefined;
|
|
1201
1201
|
availableVersions?: string[] | undefined;
|
|
1202
1202
|
createdAt?: string | undefined;
|
|
1203
|
-
updatedAt?: string | undefined;
|
|
1204
1203
|
categories?: {
|
|
1205
1204
|
slug: string;
|
|
1206
1205
|
name: string;
|
|
@@ -1208,6 +1207,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1208
1207
|
appUrl?: string | undefined;
|
|
1209
1208
|
toolsCount?: number | undefined;
|
|
1210
1209
|
triggersCount?: number | undefined;
|
|
1210
|
+
updatedAt?: string | undefined;
|
|
1211
1211
|
}>;
|
|
1212
1212
|
isLocalToolkit: z$1.ZodBoolean;
|
|
1213
1213
|
composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
@@ -1557,7 +1557,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1557
1557
|
description?: string | undefined;
|
|
1558
1558
|
availableVersions?: string[] | undefined;
|
|
1559
1559
|
createdAt?: string | undefined;
|
|
1560
|
-
updatedAt?: string | undefined;
|
|
1561
1560
|
categories?: {
|
|
1562
1561
|
slug: string;
|
|
1563
1562
|
name: string;
|
|
@@ -1565,6 +1564,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1565
1564
|
appUrl?: string | undefined;
|
|
1566
1565
|
toolsCount?: number | undefined;
|
|
1567
1566
|
triggersCount?: number | undefined;
|
|
1567
|
+
updatedAt?: string | undefined;
|
|
1568
1568
|
};
|
|
1569
1569
|
isLocalToolkit: boolean;
|
|
1570
1570
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1624,7 +1624,6 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1624
1624
|
description?: string | undefined;
|
|
1625
1625
|
availableVersions?: string[] | undefined;
|
|
1626
1626
|
createdAt?: string | undefined;
|
|
1627
|
-
updatedAt?: string | undefined;
|
|
1628
1627
|
categories?: {
|
|
1629
1628
|
slug: string;
|
|
1630
1629
|
name: string;
|
|
@@ -1632,6 +1631,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
1632
1631
|
appUrl?: string | undefined;
|
|
1633
1632
|
toolsCount?: number | undefined;
|
|
1634
1633
|
triggersCount?: number | undefined;
|
|
1634
|
+
updatedAt?: string | undefined;
|
|
1635
1635
|
};
|
|
1636
1636
|
isLocalToolkit: boolean;
|
|
1637
1637
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -2634,21 +2634,21 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
|
2634
2634
|
}, "strip", z$1.ZodTypeAny, {
|
|
2635
2635
|
connectedAccountId: string;
|
|
2636
2636
|
id: string;
|
|
2637
|
+
updatedAt: string;
|
|
2637
2638
|
disabledAt: string | null;
|
|
2638
2639
|
state: Record<string, unknown>;
|
|
2639
2640
|
triggerConfig: Record<string, unknown>;
|
|
2640
2641
|
triggerName: string;
|
|
2641
|
-
updatedAt: string;
|
|
2642
2642
|
uuid?: string | undefined;
|
|
2643
2643
|
triggerData?: string | undefined;
|
|
2644
2644
|
}, {
|
|
2645
2645
|
connectedAccountId: string;
|
|
2646
2646
|
id: string;
|
|
2647
|
+
updatedAt: string;
|
|
2647
2648
|
disabledAt: string | null;
|
|
2648
2649
|
state: Record<string, unknown>;
|
|
2649
2650
|
triggerConfig: Record<string, unknown>;
|
|
2650
2651
|
triggerName: string;
|
|
2651
|
-
updatedAt: string;
|
|
2652
2652
|
uuid?: string | undefined;
|
|
2653
2653
|
triggerData?: string | undefined;
|
|
2654
2654
|
}>;
|
|
@@ -2666,21 +2666,21 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
2666
2666
|
}, "strip", z$1.ZodTypeAny, {
|
|
2667
2667
|
connectedAccountId: string;
|
|
2668
2668
|
id: string;
|
|
2669
|
+
updatedAt: string;
|
|
2669
2670
|
disabledAt: string | null;
|
|
2670
2671
|
state: Record<string, unknown>;
|
|
2671
2672
|
triggerConfig: Record<string, unknown>;
|
|
2672
2673
|
triggerName: string;
|
|
2673
|
-
updatedAt: string;
|
|
2674
2674
|
uuid?: string | undefined;
|
|
2675
2675
|
triggerData?: string | undefined;
|
|
2676
2676
|
}, {
|
|
2677
2677
|
connectedAccountId: string;
|
|
2678
2678
|
id: string;
|
|
2679
|
+
updatedAt: string;
|
|
2679
2680
|
disabledAt: string | null;
|
|
2680
2681
|
state: Record<string, unknown>;
|
|
2681
2682
|
triggerConfig: Record<string, unknown>;
|
|
2682
2683
|
triggerName: string;
|
|
2683
|
-
updatedAt: string;
|
|
2684
2684
|
uuid?: string | undefined;
|
|
2685
2685
|
triggerData?: string | undefined;
|
|
2686
2686
|
}>, "many">;
|
|
@@ -2690,11 +2690,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
2690
2690
|
items: {
|
|
2691
2691
|
connectedAccountId: string;
|
|
2692
2692
|
id: string;
|
|
2693
|
+
updatedAt: string;
|
|
2693
2694
|
disabledAt: string | null;
|
|
2694
2695
|
state: Record<string, unknown>;
|
|
2695
2696
|
triggerConfig: Record<string, unknown>;
|
|
2696
2697
|
triggerName: string;
|
|
2697
|
-
updatedAt: string;
|
|
2698
2698
|
uuid?: string | undefined;
|
|
2699
2699
|
triggerData?: string | undefined;
|
|
2700
2700
|
}[];
|
|
@@ -2704,11 +2704,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
2704
2704
|
items: {
|
|
2705
2705
|
connectedAccountId: string;
|
|
2706
2706
|
id: string;
|
|
2707
|
+
updatedAt: string;
|
|
2707
2708
|
disabledAt: string | null;
|
|
2708
2709
|
state: Record<string, unknown>;
|
|
2709
2710
|
triggerConfig: Record<string, unknown>;
|
|
2710
2711
|
triggerName: string;
|
|
2711
|
-
updatedAt: string;
|
|
2712
2712
|
uuid?: string | undefined;
|
|
2713
2713
|
triggerData?: string | undefined;
|
|
2714
2714
|
}[];
|
|
@@ -4066,7 +4066,8 @@ declare class ConnectedAccounts {
|
|
|
4066
4066
|
/**
|
|
4067
4067
|
* Enable or disable a connected account. Accepts `{ enabled: boolean }`.
|
|
4068
4068
|
*
|
|
4069
|
-
* For ACL writes on SHARED connections, see
|
|
4069
|
+
* For ACL writes on SHARED connections, see
|
|
4070
|
+
* `composio.experimental.updateAcl()`.
|
|
4070
4071
|
*
|
|
4071
4072
|
* @param {string} nanoid - The unique identifier of the connected account
|
|
4072
4073
|
* @param {UpdateConnectedAccountParams} params - The update parameters
|
|
@@ -4079,16 +4080,28 @@ declare class ConnectedAccounts {
|
|
|
4079
4080
|
* ```
|
|
4080
4081
|
*/
|
|
4081
4082
|
update(nanoid: string, params: UpdateConnectedAccountParams): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4083
|
+
}
|
|
4084
|
+
//#endregion
|
|
4085
|
+
//#region src/models/Experimental.d.ts
|
|
4086
|
+
/**
|
|
4087
|
+
* `composio.experimental` namespace. Mirrors the Python SDK's
|
|
4088
|
+
* `composio.experimental` mount, with one method per experimental
|
|
4089
|
+
* surface. **Shape may change in future releases.**
|
|
4090
|
+
*/
|
|
4091
|
+
declare class Experimental {
|
|
4092
|
+
private client;
|
|
4093
|
+
constructor(client: ComposioClient);
|
|
4082
4094
|
/**
|
|
4083
4095
|
* Update the per-user ACL on a SHARED connected account.
|
|
4096
|
+
* **Experimental — shape may change in future releases.**
|
|
4084
4097
|
*
|
|
4085
4098
|
* Only meaningful for SHARED connections — calling this on a PRIVATE
|
|
4086
4099
|
* connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
|
|
4087
|
-
* require the connection's creator or an API key
|
|
4088
|
-
* {@link update} are governed separately.
|
|
4100
|
+
* require the connection's creator or an API key.
|
|
4089
4101
|
*
|
|
4090
|
-
* PATCH semantics: omit a field to leave it unchanged; pass an empty
|
|
4091
|
-
* to clear an allow/deny list. At least one field must be
|
|
4102
|
+
* PATCH semantics: omit a field to leave it unchanged; pass an empty
|
|
4103
|
+
* array to clear an allow/deny list. At least one field must be
|
|
4104
|
+
* provided.
|
|
4092
4105
|
*
|
|
4093
4106
|
* Resolution rule (deny wins):
|
|
4094
4107
|
* 1. requesting `userId` in `notAllowedUserIds` → DENY
|
|
@@ -4098,22 +4111,26 @@ declare class ConnectedAccounts {
|
|
|
4098
4111
|
*
|
|
4099
4112
|
* @example
|
|
4100
4113
|
* ```typescript
|
|
4114
|
+
* import { Composio } from '@composio/core';
|
|
4115
|
+
*
|
|
4116
|
+
* const composio = new Composio({ apiKey: '...' });
|
|
4117
|
+
*
|
|
4101
4118
|
* // Allow every userId to use this connection
|
|
4102
|
-
* await composio.
|
|
4119
|
+
* await composio.experimental.updateAcl('ca_abc', { allowAllUsers: true });
|
|
4103
4120
|
*
|
|
4104
4121
|
* // Everyone except a specific user
|
|
4105
|
-
* await composio.
|
|
4122
|
+
* await composio.experimental.updateAcl('ca_abc', {
|
|
4106
4123
|
* allowAllUsers: true,
|
|
4107
4124
|
* notAllowedUserIds: ['user_bob'],
|
|
4108
4125
|
* });
|
|
4109
4126
|
*
|
|
4110
4127
|
* // Targeted allow
|
|
4111
|
-
* await composio.
|
|
4128
|
+
* await composio.experimental.updateAcl('ca_abc', {
|
|
4112
4129
|
* allowedUserIds: ['user_alice', 'user_bob'],
|
|
4113
4130
|
* });
|
|
4114
4131
|
*
|
|
4115
4132
|
* // Revoke a previously-granted allow list (back to deny-by-default)
|
|
4116
|
-
* await composio.
|
|
4133
|
+
* await composio.experimental.updateAcl('ca_abc', { allowedUserIds: [] });
|
|
4117
4134
|
* ```
|
|
4118
4135
|
*
|
|
4119
4136
|
* **Empty-array semantics — read carefully.** Passing `[]` for either
|
|
@@ -4125,9 +4142,10 @@ declare class ConnectedAccounts {
|
|
|
4125
4142
|
* re-grants access to users you previously blocked. Always pair an
|
|
4126
4143
|
* empty deny list with a deliberate audit of the allow side.
|
|
4127
4144
|
*
|
|
4128
|
-
* @returns The PATCH response (`{ id, status, success }`). To read
|
|
4129
|
-
* updated
|
|
4130
|
-
* promise
|
|
4145
|
+
* @returns The PATCH response (`{ id, status, success }`). To read
|
|
4146
|
+
* the updated ACL block, call
|
|
4147
|
+
* `composio.connectedAccounts.get(nanoid)` after the promise
|
|
4148
|
+
* resolves and inspect `account.experimental?.aclConfigForShared`.
|
|
4131
4149
|
*/
|
|
4132
4150
|
updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>;
|
|
4133
4151
|
}
|
|
@@ -4146,17 +4164,17 @@ declare const MCPServerInstanceSchema: z.ZodObject<{
|
|
|
4146
4164
|
type: "streamable_http";
|
|
4147
4165
|
userId: string;
|
|
4148
4166
|
id: string;
|
|
4149
|
-
allowedTools: string[];
|
|
4150
4167
|
url: string;
|
|
4151
4168
|
authConfigs: string[];
|
|
4169
|
+
allowedTools: string[];
|
|
4152
4170
|
}, {
|
|
4153
4171
|
name: string;
|
|
4154
4172
|
type: "streamable_http";
|
|
4155
4173
|
userId: string;
|
|
4156
4174
|
id: string;
|
|
4157
|
-
allowedTools: string[];
|
|
4158
4175
|
url: string;
|
|
4159
4176
|
authConfigs: string[];
|
|
4177
|
+
allowedTools: string[];
|
|
4160
4178
|
}>;
|
|
4161
4179
|
type MCPServerInstance = z.infer<typeof MCPServerInstanceSchema>;
|
|
4162
4180
|
declare const MCPConfigCreationParamsSchema: z.ZodObject<{
|
|
@@ -4283,15 +4301,15 @@ declare const MCPListParamsSchema: z.ZodObject<{
|
|
|
4283
4301
|
}, "strip", z.ZodTypeAny, {
|
|
4284
4302
|
toolkits: string[];
|
|
4285
4303
|
limit: number;
|
|
4286
|
-
page: number;
|
|
4287
4304
|
authConfigs: string[];
|
|
4305
|
+
page: number;
|
|
4288
4306
|
name?: string | undefined;
|
|
4289
4307
|
}, {
|
|
4290
4308
|
name?: string | undefined;
|
|
4291
4309
|
toolkits?: string[] | undefined;
|
|
4292
4310
|
limit?: number | undefined;
|
|
4293
|
-
page?: number | undefined;
|
|
4294
4311
|
authConfigs?: string[] | undefined;
|
|
4312
|
+
page?: number | undefined;
|
|
4295
4313
|
}>;
|
|
4296
4314
|
type MCPListParams = z.infer<typeof MCPListParamsSchema>;
|
|
4297
4315
|
declare const MCPItemSchema: z.ZodObject<{
|
|
@@ -5293,6 +5311,14 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
5293
5311
|
authConfigs: AuthConfigs;
|
|
5294
5312
|
/** Manage authenticated connections */
|
|
5295
5313
|
connectedAccounts: ConnectedAccounts;
|
|
5314
|
+
/**
|
|
5315
|
+
* Experimental SDK methods whose shape may change in future releases.
|
|
5316
|
+
* Houses stateful operations like {@link Experimental.updateAcl} that
|
|
5317
|
+
* take a client and perform I/O. Stateless experimental factories
|
|
5318
|
+
* (e.g. `experimental_createTool`) stay at the top level.
|
|
5319
|
+
* @experimental
|
|
5320
|
+
*/
|
|
5321
|
+
experimental: Experimental;
|
|
5296
5322
|
/** Model Context Protocol server management */
|
|
5297
5323
|
mcp: MCP;
|
|
5298
5324
|
/**
|
|
@@ -5455,4 +5481,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
5455
5481
|
flush(): Promise<void>;
|
|
5456
5482
|
}
|
|
5457
5483
|
//#endregion
|
|
5458
|
-
export {
|
|
5484
|
+
export { WebhookVersions as $, TriggerSubscribeParamSchema as A, ToolkitAuthConfigDetailsSchema as At, VerifyWebhookParamsSchema as B, ToolkitRetrieveCategoriesResponse as Bt, TriggerInstanceUpsertParams as C, ToolKitItem as Ct, TriggerStatusEnum as D, ToolKitMeta as Dt, TriggerInstanceUpsertResponseSchema as E, ToolKitListResponseSchema as Et, TriggersTypeListParamsSchema as F, ToolkitCategory as Ft, WebhookPayloadV1Schema as G, ToolkitSortByEnumSchema as Gt, WebhookPayload as H, ToolkitRetrieveResponse as Ht, TriggersTypeListResponse as I, ToolkitCategorySchema as It, WebhookPayloadV3 as J, WebhookPayloadV2 as K, ToolkitsListParamsSchema as Kt, TriggersTypeListResponseSchema as L, ToolkitListParams as Lt, TriggerType as M, ToolkitAuthFieldSchema as Mt, TriggerTypeSchema as N, ToolkitAuthFieldsResponse as Nt, TriggerStatusType as O, ToolKitMetaSchema as Ot, TriggersTypeListParams as P, ToolkitAuthFieldsResponseSchema as Pt, WebhookVersion as Q, TriggersTypeRetrieveResponse as R, ToolkitMangedByEnum as Rt, TriggerInstanceManageUpdateResponseSchema as S, CreateCustomAuthConfigParamsSchema as St, TriggerInstanceUpsertResponse as T, ToolKitListResponse as Tt, WebhookPayloadSchema as U, ToolkitRetrieveResponseSchema as Ut, VerifyWebhookResult as V, ToolkitRetrieveCategoriesResponseSchema as Vt, WebhookPayloadV1 as W, ToolkitSortByEnum as Wt, WebhookTriggerPayloadV3 as X, WebhookPayloadV3Schema as Y, WebhookTriggerPayloadV3Schema as Z, TriggerInstanceManageDeleteResponse as _, CreateAuthConfigParams as _t, Experimental as a, AuthConfigRetrieveResponse as at, TriggerInstanceManageUpdateParamsSchema as b, CreateAuthConfigResponseSchema as bt, TriggerData as c, AuthConfigType as ct, TriggerInstanceListActiveParams as d, AuthConfigUpdateParamsSchema as dt, AuthConfigCreationToolAccessConfigSchema as et, TriggerInstanceListActiveParamsSchema as f, AuthCustomConfigUpdateParamsSchema as ft, TriggerInstanceListActiveResponseSchema as g, AuthSchemeTypes as gt, TriggerInstanceListActiveResponseItemSchema as h, AuthSchemeType as ht, MCP as i, AuthConfigListResponseSchema as it, TriggerSubscribeParams as j, ToolkitAuthField as jt, TriggerStatuses as k, ToolkitAuthConfigDetails as kt, TriggerEvent as l, AuthConfigTypes as lt, TriggerInstanceListActiveResponseItem as m, AuthSchemeEnum as mt, ComposioConfig as n, AuthConfigListParamsSchema as nt, IncomingTriggerPayload as o, AuthConfigRetrieveResponseSchema as ot, TriggerInstanceListActiveResponse as p, AuthDefaultConfigUpdateParamsSchema as pt, WebhookPayloadV2Schema as q, OpenAIProvider as r, AuthConfigListResponse as rt, IncomingTriggerPayloadSchema as s, AuthConfigToolAccessConfigSchema as st, Composio$1 as t, AuthConfigListParams as tt, TriggerEventData as u, AuthConfigUpdateParams as ut, TriggerInstanceManageDeleteResponseSchema as v, CreateAuthConfigParamsSchema as vt, TriggerInstanceUpsertParamsSchema as w, ToolKitItemSchema as wt, TriggerInstanceManageUpdateResponse as x, CreateComposioManagedAuthConfigParamsSchema as xt, TriggerInstanceManageUpdateParams as y, CreateAuthConfigResponse as yt, VerifyWebhookParams as z, ToolkitMangedByEnumSchema as zt };
|