@composio/core 0.26.0 → 0.28.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.
Files changed (49) hide show
  1. package/dist/{CustomTool-DfP4ldQl.d.mts → CustomTool-DyypijT6.d.mts} +2 -2
  2. package/dist/{Telemetry-41JkqpZ7.mjs → Telemetry-D2PJwXKx.mjs} +1 -1
  3. package/dist/{composio-BMDH-1Qj.d.mts → composio-CwHMpKXb.d.mts} +748 -70
  4. package/dist/{customTool.types-BoOELgJF.d.mts → customTool.types-DoItUHkO.d.mts} +780 -23
  5. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +3 -3
  6. package/dist/docs/reference/sdk-reference/typescript/session.mdx +5 -4
  7. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +5 -1
  8. package/dist/experimental/index.d.mts +2 -2
  9. package/dist/{fileUtils.node-DNLhLg0W.mjs → fileUtils.node-ILI1IjnZ.mjs} +4 -3
  10. package/dist/index.d.mts +10 -10
  11. package/dist/index.mjs +420 -158
  12. package/dist/models/Files.node.mjs +2 -2
  13. package/dist/sensitiveFileUploadPaths-BaEORC7-.mjs +588 -0
  14. package/dist/{types-DHNV_T_z.d.mts → types-DWZWePfZ.d.mts} +2 -2
  15. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  16. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  17. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  18. package/dist/utils/modifiers/FileToolModifier.node.mjs +1 -1
  19. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  20. package/package.json +7 -6
  21. package/src/lib/toolRouterParams.ts +33 -15
  22. package/src/lib/toolRouterSessionDelete.ts +1 -10
  23. package/src/models/ConnectedAccounts.ts +1 -1
  24. package/src/models/CustomTool.ts +1 -1
  25. package/src/models/CustomToolkits.ts +114 -8
  26. package/src/models/Experimental.ts +1 -1
  27. package/src/models/MCP.ts +1 -2
  28. package/src/models/SessionConfigs.ts +11 -3
  29. package/src/models/SessionContext.ts +6 -21
  30. package/src/models/ToolRouter.ts +5 -1
  31. package/src/models/ToolRouterSession.ts +21 -35
  32. package/src/models/Tools.ts +3 -3
  33. package/src/models/Triggers.ts +12 -5
  34. package/src/models/inlineCustomToolsPayload.ts +3 -3
  35. package/src/models/proxyParamsTransform.ts +1 -1
  36. package/src/types/customTool.types.ts +13 -5
  37. package/src/types/customToolkits.types.ts +89 -9
  38. package/src/types/sessionConfigs.types.ts +21 -7
  39. package/src/types/toolRouter.types.ts +169 -17
  40. package/src/types/triggers.types.ts +14 -0
  41. package/src/utils/fileUtils.node.ts +5 -2
  42. package/src/utils/mime.ts +347 -1
  43. package/src/utils/transformers/connectedAccounts.ts +2 -7
  44. package/src/utils/transformers/customToolkits.ts +78 -9
  45. package/src/utils/transformers/sessionConfigs.ts +3 -3
  46. package/src/utils/transformers/toolRouterResponseTransform.ts +71 -5
  47. package/src/utils/transformers/toolkits.ts +7 -13
  48. package/src/utils/transformers/triggers.ts +28 -18
  49. package/dist/sensitiveFileUploadPaths-BlLp-Yo2.mjs +0 -189
@@ -1,16 +1,16 @@
1
- import { $n as CreateConnectedAccountOptions, Aa as ToolExecuteParams, Cn as ConnectedAccountCompleteAuthResponse, D as Session, Da as Tool, Ea as SchemaModifierOptions, Fa as ToolListParams, In as ConnectedAccountRetrieveResponse, Ja as ToolkitVersionParam, M as SessionWithoutMcp, Ma as ToolExecuteResponse, Oa as ToolExecuteMetaParams, Pa as ToolList, Pn as ConnectedAccountRefreshOptions, Rn as ConnectedAccountRevokeResponse, Va as ToolRetrievalOptions, Yn as CreateConnectedAccountLinkOptions, ai as McpServerGetResponse, cr as UpdateConnectedAccountParams, dr as BaseComposioProvider, f as CustomToolkit, fa as ProviderOptions, fn as ComposioRequestOptions, fr as BaseNonAgenticProvider, jn as ConnectedAccountListResponse, kn as ConnectedAccountListParams, mi as ExecuteToolFnOptions, o as CustomTool, or as UpdateConnectedAccountAclParams, pa as SessionExecuteMetaModifiers, pn as ConnectionRequest, rt as ToolRouterSessionDeleteResponse, ua as ExecuteToolModifiers, ui as McpUrlResponse, vi as ToolCallSession, xn as ConnectedAccountCompleteAuthParams, z as ToolRouterCreateSessionConfig, za as ToolProxyParams } from "./customTool.types-BoOELgJF.mjs";
1
+ import { $a as ToolProxyParams, Ba as SchemaModifierOptions, D as Session, Da as SessionExecuteMetaModifiers, Dn as ConnectionRequest, Ea as ProviderOptions, En as ComposioRequestOptions, Er as BaseNonAgenticProvider, Fn as ConnectedAccountCompleteAuthParams, Gn as ConnectedAccountListResponse, Ha as ToolExecuteMetaParams, Ja as ToolList, Jn as ConnectedAccountRefreshOptions, Ka as ToolExecuteResponse, Ln as ConnectedAccountCompleteAuthResponse, M as SessionWithoutMcp, Mi as ToolCallSession, Oi as ExecuteToolFnOptions, Qn as ConnectedAccountRevokeResponse, Sr as UpdateConnectedAccountParams, Tr as BaseComposioProvider, Un as ConnectedAccountListParams, V as ToolRouterCreateSessionConfig, Va as Tool, Wa as ToolExecuteParams, Xn as ConnectedAccountRetrieveResponse, Ya as ToolListParams, br as UpdateConnectedAccountAclParams, co as ToolkitVersionParam, f as CustomToolkit, ht as ToolRouterSessionDeleteResponse, lr as CreateConnectedAccountLinkOptions, o as CustomTool, pr as CreateConnectedAccountOptions, to as ToolRetrievalOptions, wa as ExecuteToolModifiers, wi as McpUrlResponse, yi as McpServerGetResponse } from "./customTool.types-DoItUHkO.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
5
  import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
6
- import { SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
6
+ import { SessionExecuteParams } from "@composio/client/resources/tool-router/session";
7
7
  import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
8
- import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
8
+ import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/triggers-types";
9
9
  import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
10
10
  import { OpenAI } from "openai";
11
11
  //#region src/models/Tools.d.ts
12
12
  type ToolRouterSessionExecuteOptions = {
13
- experimental?: SessionExecuteParams.Experimental;
13
+ experimental?: NonNullable<SessionExecuteParams['experimental']>;
14
14
  };
15
15
  /**
16
16
  * This class is used to manage tools in the Composio SDK.
@@ -3464,6 +3464,8 @@ declare const TriggerInstanceListActiveParamsSchema: z$1.ZodObject<{
3464
3464
  triggerNames?: string[] | null | undefined;
3465
3465
  }>;
3466
3466
  type TriggerInstanceListActiveParams = z$1.infer<typeof TriggerInstanceListActiveParamsSchema>;
3467
+ declare const TriggerInstanceTypeSchema: z$1.ZodEnum<["webhook", "poll"]>;
3468
+ type TriggerInstanceType = z$1.infer<typeof TriggerInstanceTypeSchema>;
3467
3469
  declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
3468
3470
  id: z$1.ZodString;
3469
3471
  connectedAccountId: z$1.ZodString;
@@ -3474,7 +3476,11 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
3474
3476
  updatedAt: z$1.ZodString;
3475
3477
  triggerData: z$1.ZodOptional<z$1.ZodString>;
3476
3478
  uuid: z$1.ZodOptional<z$1.ZodString>;
3479
+ type: z$1.ZodEnum<["webhook", "poll"]>;
3480
+ fallbackReason: z$1.ZodNullable<z$1.ZodString>;
3481
+ pollingInterval: z$1.ZodNullable<z$1.ZodNumber>;
3477
3482
  }, "strip", z$1.ZodTypeAny, {
3483
+ type: "webhook" | "poll";
3478
3484
  connectedAccountId: string;
3479
3485
  id: string;
3480
3486
  updatedAt: string;
@@ -3482,9 +3488,12 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
3482
3488
  state: Record<string, unknown>;
3483
3489
  triggerConfig: Record<string, unknown>;
3484
3490
  triggerName: string;
3491
+ fallbackReason: string | null;
3492
+ pollingInterval: number | null;
3485
3493
  uuid?: string | undefined;
3486
3494
  triggerData?: string | undefined;
3487
3495
  }, {
3496
+ type: "webhook" | "poll";
3488
3497
  connectedAccountId: string;
3489
3498
  id: string;
3490
3499
  updatedAt: string;
@@ -3492,6 +3501,8 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
3492
3501
  state: Record<string, unknown>;
3493
3502
  triggerConfig: Record<string, unknown>;
3494
3503
  triggerName: string;
3504
+ fallbackReason: string | null;
3505
+ pollingInterval: number | null;
3495
3506
  uuid?: string | undefined;
3496
3507
  triggerData?: string | undefined;
3497
3508
  }>;
@@ -3506,7 +3517,11 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3506
3517
  updatedAt: z$1.ZodString;
3507
3518
  triggerData: z$1.ZodOptional<z$1.ZodString>;
3508
3519
  uuid: z$1.ZodOptional<z$1.ZodString>;
3520
+ type: z$1.ZodEnum<["webhook", "poll"]>;
3521
+ fallbackReason: z$1.ZodNullable<z$1.ZodString>;
3522
+ pollingInterval: z$1.ZodNullable<z$1.ZodNumber>;
3509
3523
  }, "strip", z$1.ZodTypeAny, {
3524
+ type: "webhook" | "poll";
3510
3525
  connectedAccountId: string;
3511
3526
  id: string;
3512
3527
  updatedAt: string;
@@ -3514,9 +3529,12 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3514
3529
  state: Record<string, unknown>;
3515
3530
  triggerConfig: Record<string, unknown>;
3516
3531
  triggerName: string;
3532
+ fallbackReason: string | null;
3533
+ pollingInterval: number | null;
3517
3534
  uuid?: string | undefined;
3518
3535
  triggerData?: string | undefined;
3519
3536
  }, {
3537
+ type: "webhook" | "poll";
3520
3538
  connectedAccountId: string;
3521
3539
  id: string;
3522
3540
  updatedAt: string;
@@ -3524,6 +3542,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3524
3542
  state: Record<string, unknown>;
3525
3543
  triggerConfig: Record<string, unknown>;
3526
3544
  triggerName: string;
3545
+ fallbackReason: string | null;
3546
+ pollingInterval: number | null;
3527
3547
  uuid?: string | undefined;
3528
3548
  triggerData?: string | undefined;
3529
3549
  }>, "many">;
@@ -3531,6 +3551,7 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3531
3551
  totalPages: z$1.ZodNumber;
3532
3552
  }, "strip", z$1.ZodTypeAny, {
3533
3553
  items: {
3554
+ type: "webhook" | "poll";
3534
3555
  connectedAccountId: string;
3535
3556
  id: string;
3536
3557
  updatedAt: string;
@@ -3538,6 +3559,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3538
3559
  state: Record<string, unknown>;
3539
3560
  triggerConfig: Record<string, unknown>;
3540
3561
  triggerName: string;
3562
+ fallbackReason: string | null;
3563
+ pollingInterval: number | null;
3541
3564
  uuid?: string | undefined;
3542
3565
  triggerData?: string | undefined;
3543
3566
  }[];
@@ -3545,6 +3568,7 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3545
3568
  totalPages: number;
3546
3569
  }, {
3547
3570
  items: {
3571
+ type: "webhook" | "poll";
3548
3572
  connectedAccountId: string;
3549
3573
  id: string;
3550
3574
  updatedAt: string;
@@ -3552,6 +3576,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
3552
3576
  state: Record<string, unknown>;
3553
3577
  triggerConfig: Record<string, unknown>;
3554
3578
  triggerName: string;
3579
+ fallbackReason: string | null;
3580
+ pollingInterval: number | null;
3555
3581
  uuid?: string | undefined;
3556
3582
  triggerData?: string | undefined;
3557
3583
  }[];
@@ -3563,20 +3589,35 @@ type TriggerInstanceListActiveResponseItem = z$1.infer<typeof TriggerInstanceLis
3563
3589
  declare const TriggerInstanceUpsertParamsSchema: z$1.ZodObject<{
3564
3590
  connectedAccountId: z$1.ZodOptional<z$1.ZodString>;
3565
3591
  triggerConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3592
+ type: z$1.ZodOptional<z$1.ZodEnum<["webhook", "poll"]>>;
3593
+ pollingInterval: z$1.ZodOptional<z$1.ZodNumber>;
3566
3594
  }, "strip", z$1.ZodTypeAny, {
3595
+ type?: "webhook" | "poll" | undefined;
3567
3596
  connectedAccountId?: string | undefined;
3568
3597
  triggerConfig?: Record<string, unknown> | undefined;
3598
+ pollingInterval?: number | undefined;
3569
3599
  }, {
3600
+ type?: "webhook" | "poll" | undefined;
3570
3601
  connectedAccountId?: string | undefined;
3571
3602
  triggerConfig?: Record<string, unknown> | undefined;
3603
+ pollingInterval?: number | undefined;
3572
3604
  }>;
3573
3605
  type TriggerInstanceUpsertParams = z$1.infer<typeof TriggerInstanceUpsertParamsSchema>;
3574
3606
  declare const TriggerInstanceUpsertResponseSchema: z$1.ZodObject<{
3575
3607
  triggerId: z$1.ZodString;
3608
+ type: z$1.ZodEnum<["webhook", "poll"]>;
3609
+ fallbackReason: z$1.ZodNullable<z$1.ZodString>;
3610
+ pollingInterval: z$1.ZodNullable<z$1.ZodNumber>;
3576
3611
  }, "strip", z$1.ZodTypeAny, {
3612
+ type: "webhook" | "poll";
3577
3613
  triggerId: string;
3614
+ fallbackReason: string | null;
3615
+ pollingInterval: number | null;
3578
3616
  }, {
3617
+ type: "webhook" | "poll";
3579
3618
  triggerId: string;
3619
+ fallbackReason: string | null;
3620
+ pollingInterval: number | null;
3580
3621
  }>;
3581
3622
  type TriggerInstanceUpsertResponse = z$1.infer<typeof TriggerInstanceUpsertResponseSchema>;
3582
3623
  declare const TriggerInstanceManageUpdateParamsSchema: z$1.ZodObject<{
@@ -3676,7 +3717,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3676
3717
  userId: string;
3677
3718
  uuid: string;
3678
3719
  id: string;
3679
- triggerSlug: string;
3680
3720
  metadata: {
3681
3721
  toolkitSlug: string;
3682
3722
  uuid: string;
@@ -3693,6 +3733,7 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3693
3733
  triggerConfig: Record<string, unknown>;
3694
3734
  triggerData?: string | undefined;
3695
3735
  };
3736
+ triggerSlug: string;
3696
3737
  payload?: Record<string, unknown> | undefined;
3697
3738
  originalPayload?: Record<string, unknown> | undefined;
3698
3739
  }, {
@@ -3700,7 +3741,6 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3700
3741
  userId: string;
3701
3742
  uuid: string;
3702
3743
  id: string;
3703
- triggerSlug: string;
3704
3744
  metadata: {
3705
3745
  toolkitSlug: string;
3706
3746
  uuid: string;
@@ -3717,6 +3757,7 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
3717
3757
  triggerConfig: Record<string, unknown>;
3718
3758
  triggerData?: string | undefined;
3719
3759
  };
3760
+ triggerSlug: string;
3720
3761
  payload?: Record<string, unknown> | undefined;
3721
3762
  originalPayload?: Record<string, unknown> | undefined;
3722
3763
  }>;
@@ -3777,9 +3818,13 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
3777
3818
  payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3778
3819
  config: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3779
3820
  version: z$1.ZodOptional<z$1.ZodString>;
3821
+ type: z$1.ZodEnum<["webhook", "poll"]>;
3822
+ types: z$1.ZodArray<z$1.ZodEnum<["webhook", "poll"]>, "many">;
3823
+ requiresWebhookEndpointSetup: z$1.ZodOptional<z$1.ZodBoolean>;
3780
3824
  }, "strip", z$1.ZodTypeAny, {
3781
3825
  slug: string;
3782
3826
  name: string;
3827
+ type: "webhook" | "poll";
3783
3828
  description: string;
3784
3829
  toolkit: {
3785
3830
  slug: string;
@@ -3788,11 +3833,14 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
3788
3833
  };
3789
3834
  config: Record<string, unknown>;
3790
3835
  payload: Record<string, unknown>;
3836
+ types: ("webhook" | "poll")[];
3791
3837
  version?: string | undefined;
3792
3838
  instructions?: string | undefined;
3839
+ requiresWebhookEndpointSetup?: boolean | undefined;
3793
3840
  }, {
3794
3841
  slug: string;
3795
3842
  name: string;
3843
+ type: "webhook" | "poll";
3796
3844
  description: string;
3797
3845
  toolkit: {
3798
3846
  slug: string;
@@ -3801,8 +3849,10 @@ declare const TriggerTypeSchema: z$1.ZodObject<{
3801
3849
  };
3802
3850
  config: Record<string, unknown>;
3803
3851
  payload: Record<string, unknown>;
3852
+ types: ("webhook" | "poll")[];
3804
3853
  version?: string | undefined;
3805
3854
  instructions?: string | undefined;
3855
+ requiresWebhookEndpointSetup?: boolean | undefined;
3806
3856
  }>;
3807
3857
  type TriggerType = z$1.infer<typeof TriggerTypeSchema>;
3808
3858
  declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
@@ -3827,9 +3877,13 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3827
3877
  payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3828
3878
  config: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3829
3879
  version: z$1.ZodOptional<z$1.ZodString>;
3880
+ type: z$1.ZodEnum<["webhook", "poll"]>;
3881
+ types: z$1.ZodArray<z$1.ZodEnum<["webhook", "poll"]>, "many">;
3882
+ requiresWebhookEndpointSetup: z$1.ZodOptional<z$1.ZodBoolean>;
3830
3883
  }, "strip", z$1.ZodTypeAny, {
3831
3884
  slug: string;
3832
3885
  name: string;
3886
+ type: "webhook" | "poll";
3833
3887
  description: string;
3834
3888
  toolkit: {
3835
3889
  slug: string;
@@ -3838,11 +3892,14 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3838
3892
  };
3839
3893
  config: Record<string, unknown>;
3840
3894
  payload: Record<string, unknown>;
3895
+ types: ("webhook" | "poll")[];
3841
3896
  version?: string | undefined;
3842
3897
  instructions?: string | undefined;
3898
+ requiresWebhookEndpointSetup?: boolean | undefined;
3843
3899
  }, {
3844
3900
  slug: string;
3845
3901
  name: string;
3902
+ type: "webhook" | "poll";
3846
3903
  description: string;
3847
3904
  toolkit: {
3848
3905
  slug: string;
@@ -3851,8 +3908,10 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3851
3908
  };
3852
3909
  config: Record<string, unknown>;
3853
3910
  payload: Record<string, unknown>;
3911
+ types: ("webhook" | "poll")[];
3854
3912
  version?: string | undefined;
3855
3913
  instructions?: string | undefined;
3914
+ requiresWebhookEndpointSetup?: boolean | undefined;
3856
3915
  }>, "many">;
3857
3916
  nextCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
3858
3917
  totalPages: z$1.ZodNumber;
@@ -3860,6 +3919,7 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3860
3919
  items: {
3861
3920
  slug: string;
3862
3921
  name: string;
3922
+ type: "webhook" | "poll";
3863
3923
  description: string;
3864
3924
  toolkit: {
3865
3925
  slug: string;
@@ -3868,8 +3928,10 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3868
3928
  };
3869
3929
  config: Record<string, unknown>;
3870
3930
  payload: Record<string, unknown>;
3931
+ types: ("webhook" | "poll")[];
3871
3932
  version?: string | undefined;
3872
3933
  instructions?: string | undefined;
3934
+ requiresWebhookEndpointSetup?: boolean | undefined;
3873
3935
  }[];
3874
3936
  totalPages: number;
3875
3937
  nextCursor?: string | null | undefined;
@@ -3877,6 +3939,7 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3877
3939
  items: {
3878
3940
  slug: string;
3879
3941
  name: string;
3942
+ type: "webhook" | "poll";
3880
3943
  description: string;
3881
3944
  toolkit: {
3882
3945
  slug: string;
@@ -3885,8 +3948,10 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
3885
3948
  };
3886
3949
  config: Record<string, unknown>;
3887
3950
  payload: Record<string, unknown>;
3951
+ types: ("webhook" | "poll")[];
3888
3952
  version?: string | undefined;
3889
3953
  instructions?: string | undefined;
3954
+ requiresWebhookEndpointSetup?: boolean | undefined;
3890
3955
  }[];
3891
3956
  totalPages: number;
3892
3957
  nextCursor?: string | null | undefined;
@@ -3923,17 +3988,17 @@ declare const WebhookPayloadV1Schema: z$1.ZodObject<{
3923
3988
  payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3924
3989
  log_id: z$1.ZodString;
3925
3990
  }, "strip", z$1.ZodTypeAny, {
3991
+ log_id: string;
3926
3992
  payload: Record<string, unknown>;
3927
3993
  trigger_name: string;
3928
3994
  connection_id: string;
3929
3995
  trigger_id: string;
3930
- log_id: string;
3931
3996
  }, {
3997
+ log_id: string;
3932
3998
  payload: Record<string, unknown>;
3933
3999
  trigger_name: string;
3934
4000
  connection_id: string;
3935
4001
  trigger_id: string;
3936
- log_id: string;
3937
4002
  }>;
3938
4003
  type WebhookPayloadV1 = z$1.infer<typeof WebhookPayloadV1Schema>;
3939
4004
  /** V2 webhook payload - includes timestamp and nested data */
@@ -3963,11 +4028,11 @@ declare const WebhookPayloadV2Schema: z$1.ZodObject<{
3963
4028
  }, "strip", z$1.ZodTypeAny, {
3964
4029
  type: string;
3965
4030
  data: {
4031
+ user_id: string;
3966
4032
  connection_id: string;
3967
4033
  trigger_id: string;
3968
4034
  connection_nano_id: string;
3969
4035
  trigger_nano_id: string;
3970
- user_id: string;
3971
4036
  } & {
3972
4037
  [k: string]: unknown;
3973
4038
  };
@@ -3976,11 +4041,11 @@ declare const WebhookPayloadV2Schema: z$1.ZodObject<{
3976
4041
  }, {
3977
4042
  type: string;
3978
4043
  data: {
4044
+ user_id: string;
3979
4045
  connection_id: string;
3980
4046
  trigger_id: string;
3981
4047
  connection_nano_id: string;
3982
4048
  trigger_nano_id: string;
3983
- user_id: string;
3984
4049
  } & {
3985
4050
  [k: string]: unknown;
3986
4051
  };
@@ -3999,14 +4064,14 @@ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
3999
4064
  type: string;
4000
4065
  data: Record<string, unknown>;
4001
4066
  id: string;
4002
- metadata: Record<string, unknown>;
4003
4067
  timestamp: string;
4068
+ metadata: Record<string, unknown>;
4004
4069
  }, {
4005
4070
  type: string;
4006
4071
  data: Record<string, unknown>;
4007
4072
  id: string;
4008
- metadata: Record<string, unknown>;
4009
4073
  timestamp: string;
4074
+ metadata: Record<string, unknown>;
4010
4075
  }>;
4011
4076
  type WebhookPayloadV3 = z$1.infer<typeof WebhookPayloadV3Schema>;
4012
4077
  /** V3 trigger-specific payload - has trigger metadata fields */
@@ -4041,32 +4106,32 @@ declare const WebhookTriggerPayloadV3Schema: z$1.ZodObject<{
4041
4106
  type: string;
4042
4107
  data: Record<string, unknown>;
4043
4108
  id: string;
4109
+ timestamp: string;
4044
4110
  metadata: {
4045
- trigger_id: string;
4046
- log_id: string;
4047
- user_id: string;
4048
- trigger_slug: string;
4049
4111
  connected_account_id: string;
4050
4112
  auth_config_id: string;
4113
+ user_id: string;
4114
+ log_id: string;
4115
+ trigger_id: string;
4116
+ trigger_slug: string;
4051
4117
  } & {
4052
4118
  [k: string]: unknown;
4053
4119
  };
4054
- timestamp: string;
4055
4120
  }, {
4056
4121
  type: string;
4057
4122
  data: Record<string, unknown>;
4058
4123
  id: string;
4124
+ timestamp: string;
4059
4125
  metadata: {
4060
- trigger_id: string;
4061
- log_id: string;
4062
- user_id: string;
4063
- trigger_slug: string;
4064
4126
  connected_account_id: string;
4065
4127
  auth_config_id: string;
4128
+ user_id: string;
4129
+ log_id: string;
4130
+ trigger_id: string;
4131
+ trigger_slug: string;
4066
4132
  } & {
4067
4133
  [k: string]: unknown;
4068
4134
  };
4069
- timestamp: string;
4070
4135
  }>;
4071
4136
  type WebhookTriggerPayloadV3 = z$1.infer<typeof WebhookTriggerPayloadV3Schema>;
4072
4137
  /** Union of all webhook payload versions */
@@ -4080,14 +4145,14 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
4080
4145
  type: string;
4081
4146
  data: Record<string, unknown>;
4082
4147
  id: string;
4083
- metadata: Record<string, unknown>;
4084
4148
  timestamp: string;
4149
+ metadata: Record<string, unknown>;
4085
4150
  }, {
4086
4151
  type: string;
4087
4152
  data: Record<string, unknown>;
4088
4153
  id: string;
4089
- metadata: Record<string, unknown>;
4090
4154
  timestamp: string;
4155
+ metadata: Record<string, unknown>;
4091
4156
  }>, z$1.ZodObject<{
4092
4157
  type: z$1.ZodString;
4093
4158
  timestamp: z$1.ZodString;
@@ -4114,11 +4179,11 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
4114
4179
  }, "strip", z$1.ZodTypeAny, {
4115
4180
  type: string;
4116
4181
  data: {
4182
+ user_id: string;
4117
4183
  connection_id: string;
4118
4184
  trigger_id: string;
4119
4185
  connection_nano_id: string;
4120
4186
  trigger_nano_id: string;
4121
- user_id: string;
4122
4187
  } & {
4123
4188
  [k: string]: unknown;
4124
4189
  };
@@ -4127,11 +4192,11 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
4127
4192
  }, {
4128
4193
  type: string;
4129
4194
  data: {
4195
+ user_id: string;
4130
4196
  connection_id: string;
4131
4197
  trigger_id: string;
4132
4198
  connection_nano_id: string;
4133
4199
  trigger_nano_id: string;
4134
- user_id: string;
4135
4200
  } & {
4136
4201
  [k: string]: unknown;
4137
4202
  };
@@ -4144,17 +4209,17 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
4144
4209
  payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
4145
4210
  log_id: z$1.ZodString;
4146
4211
  }, "strip", z$1.ZodTypeAny, {
4212
+ log_id: string;
4147
4213
  payload: Record<string, unknown>;
4148
4214
  trigger_name: string;
4149
4215
  connection_id: string;
4150
4216
  trigger_id: string;
4151
- log_id: string;
4152
4217
  }, {
4218
+ log_id: string;
4153
4219
  payload: Record<string, unknown>;
4154
4220
  trigger_name: string;
4155
4221
  connection_id: string;
4156
4222
  trigger_id: string;
4157
- log_id: string;
4158
4223
  }>]>;
4159
4224
  type WebhookPayload = z$1.infer<typeof WebhookPayloadSchema>;
4160
4225
  /** Webhook version enum */
@@ -4223,16 +4288,16 @@ declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
4223
4288
  tolerance: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
4224
4289
  }, "strip", z$1.ZodTypeAny, {
4225
4290
  id: string;
4226
- payload: string;
4227
4291
  timestamp: string;
4228
4292
  secret: string;
4293
+ payload: string;
4229
4294
  signature: string;
4230
4295
  tolerance: number;
4231
4296
  }, {
4232
4297
  id: string;
4233
- payload: string;
4234
4298
  timestamp: string;
4235
4299
  secret: string;
4300
+ payload: string;
4236
4301
  signature: string;
4237
4302
  tolerance?: number | undefined;
4238
4303
  }>;
@@ -4328,10 +4393,14 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
4328
4393
  * Create a new trigger instance for a user
4329
4394
  * If the connected account id is not provided, the first connected account for the user and toolkit will be used
4330
4395
  *
4396
+ * For a trigger that supports both webhook and polling, `body.type` picks one; omit it to let Composio choose.
4397
+ * `body.pollingInterval` sets the minutes between polls and wins over `triggerConfig.interval`.
4398
+ *
4331
4399
  * @param {string} userId - The user id of the trigger instance
4332
4400
  * @param {string} slug - The slug of the trigger instance
4333
4401
  * @param {TriggerInstanceUpsertParams} body - The parameters to create the trigger instance
4334
- * @returns {Promise<TriggerInstanceUpsertResponse>} The created trigger instance
4402
+ * @returns {Promise<TriggerInstanceUpsertResponse>} The trigger instance, with the type it uses, why it polls
4403
+ * when it fell back from a webhook, and its polling interval
4335
4404
  */
4336
4405
  create(userId: string, slug: string, body?: TriggerInstanceUpsertParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceUpsertResponse>;
4337
4406
  /**
@@ -4355,14 +4424,14 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
4355
4424
  * @param {string} triggerId - The id of the trigger instance
4356
4425
  * @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
4357
4426
  */
4358
- disable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
4427
+ disable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<import("@composio/client/resources/trigger-instances").ManageUpdateResponse>;
4359
4428
  /**
4360
4429
  * Enable a trigger instance
4361
4430
  *
4362
4431
  * @param {string} triggerId - The id of the trigger instance
4363
4432
  * @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
4364
4433
  */
4365
- enable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
4434
+ enable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<import("@composio/client/resources/trigger-instances").ManageUpdateResponse>;
4366
4435
  /**
4367
4436
  * @TODO Learn about trigger types
4368
4437
  */
@@ -5436,6 +5505,17 @@ declare class Usage {
5436
5505
  }
5437
5506
  //#endregion
5438
5507
  //#region src/types/customToolkits.types.d.ts
5508
+ declare const CustomToolkitApiKeyFieldSchema: z$1.ZodObject<{
5509
+ displayName: z$1.ZodOptional<z$1.ZodString>;
5510
+ description: z$1.ZodOptional<z$1.ZodString>;
5511
+ }, "strip", z$1.ZodTypeAny, {
5512
+ description?: string | undefined;
5513
+ displayName?: string | undefined;
5514
+ }, {
5515
+ description?: string | undefined;
5516
+ displayName?: string | undefined;
5517
+ }>;
5518
+ type CustomToolkitApiKeyField = z$1.infer<typeof CustomToolkitApiKeyFieldSchema>;
5439
5519
  /**
5440
5520
  * How end users authenticate to a custom toolkit.
5441
5521
  * **Experimental — custom toolkits are in pilot; shape may change.**
@@ -5465,6 +5545,29 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
5465
5545
  description?: string | undefined;
5466
5546
  displayName?: string | undefined;
5467
5547
  }>>;
5548
+ /** Additional connect-page input used by `{{generic_id}}` in headers. */
5549
+ additionalFields: z$1.ZodOptional<z$1.ZodObject<{
5550
+ genericId: z$1.ZodObject<{
5551
+ displayName: z$1.ZodString;
5552
+ description: z$1.ZodOptional<z$1.ZodString>;
5553
+ }, "strip", z$1.ZodTypeAny, {
5554
+ displayName: string;
5555
+ description?: string | undefined;
5556
+ }, {
5557
+ displayName: string;
5558
+ description?: string | undefined;
5559
+ }>;
5560
+ }, "strip", z$1.ZodTypeAny, {
5561
+ genericId: {
5562
+ displayName: string;
5563
+ description?: string | undefined;
5564
+ };
5565
+ }, {
5566
+ genericId: {
5567
+ displayName: string;
5568
+ description?: string | undefined;
5569
+ };
5570
+ }>>;
5468
5571
  }, "strip", z$1.ZodTypeAny, {
5469
5572
  mode: "API_KEY";
5470
5573
  headers: Record<string, string>;
@@ -5472,6 +5575,12 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
5472
5575
  description?: string | undefined;
5473
5576
  displayName?: string | undefined;
5474
5577
  } | undefined;
5578
+ additionalFields?: {
5579
+ genericId: {
5580
+ displayName: string;
5581
+ description?: string | undefined;
5582
+ };
5583
+ } | undefined;
5475
5584
  }, {
5476
5585
  mode: "API_KEY";
5477
5586
  headers: Record<string, string>;
@@ -5479,6 +5588,12 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
5479
5588
  description?: string | undefined;
5480
5589
  displayName?: string | undefined;
5481
5590
  } | undefined;
5591
+ additionalFields?: {
5592
+ genericId: {
5593
+ displayName: string;
5594
+ description?: string | undefined;
5595
+ };
5596
+ } | undefined;
5482
5597
  }>, z$1.ZodObject<{
5483
5598
  mode: z$1.ZodLiteral<"DCR_OAUTH">;
5484
5599
  /**
@@ -5494,9 +5609,318 @@ declare const CustomToolkitAuthSchemeSchema: z$1.ZodDiscriminatedUnion<"mode", [
5494
5609
  discoveryUrl: string;
5495
5610
  }>]>;
5496
5611
  type CustomToolkitAuthScheme = z$1.infer<typeof CustomToolkitAuthSchemeSchema>;
5612
+ declare const CustomToolkitLogoFileSchema: z$1.ZodObject<{
5613
+ content: z$1.ZodString;
5614
+ mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
5615
+ }, "strip", z$1.ZodTypeAny, {
5616
+ content: string;
5617
+ mimeType: "image/png" | "image/jpeg";
5618
+ }, {
5619
+ content: string;
5620
+ mimeType: "image/png" | "image/jpeg";
5621
+ }>;
5622
+ type CustomToolkitLogoFile = z$1.infer<typeof CustomToolkitLogoFileSchema>;
5623
+ /**
5624
+ * Params for `composio.experimental.customToolkits.create()`.
5625
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5626
+ */
5627
+ declare const CustomToolkitCreateParamsSchema: z$1.ZodObject<{
5628
+ /** Human-readable toolkit name. */
5629
+ name: z$1.ZodString;
5630
+ /** The MCP server URL. Must use https. */
5631
+ appUrl: z$1.ZodString;
5632
+ /** Square PNG or JPEG logo (256-1024px, max 3MB), base64-encoded. Defaults to the MCP logo. */
5633
+ logoFile: z$1.ZodOptional<z$1.ZodObject<{
5634
+ content: z$1.ZodString;
5635
+ mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
5636
+ }, "strip", z$1.ZodTypeAny, {
5637
+ content: string;
5638
+ mimeType: "image/png" | "image/jpeg";
5639
+ }, {
5640
+ content: string;
5641
+ mimeType: "image/png" | "image/jpeg";
5642
+ }>>;
5643
+ /** At least one scheme. Cannot be changed after create. */
5644
+ authSchemes: z$1.ZodArray<z$1.ZodDiscriminatedUnion<"mode", [z$1.ZodObject<{
5645
+ mode: z$1.ZodLiteral<"NO_AUTH">;
5646
+ }, "strip", z$1.ZodTypeAny, {
5647
+ mode: "NO_AUTH";
5648
+ }, {
5649
+ mode: "NO_AUTH";
5650
+ }>, z$1.ZodObject<{
5651
+ mode: z$1.ZodLiteral<"API_KEY">;
5652
+ /**
5653
+ * Headers sent with each request. Write `{{generic_api_key}}` where the
5654
+ * end user's API key goes, for example
5655
+ * `{ Authorization: 'Bearer {{generic_api_key}}' }`.
5656
+ */
5657
+ headers: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
5658
+ /** End-user copy for the API key input on the connect page. */
5659
+ apiKeyField: z$1.ZodOptional<z$1.ZodObject<{
5660
+ displayName: z$1.ZodOptional<z$1.ZodString>;
5661
+ description: z$1.ZodOptional<z$1.ZodString>;
5662
+ }, "strip", z$1.ZodTypeAny, {
5663
+ description?: string | undefined;
5664
+ displayName?: string | undefined;
5665
+ }, {
5666
+ description?: string | undefined;
5667
+ displayName?: string | undefined;
5668
+ }>>;
5669
+ /** Additional connect-page input used by `{{generic_id}}` in headers. */
5670
+ additionalFields: z$1.ZodOptional<z$1.ZodObject<{
5671
+ genericId: z$1.ZodObject<{
5672
+ displayName: z$1.ZodString;
5673
+ description: z$1.ZodOptional<z$1.ZodString>;
5674
+ }, "strip", z$1.ZodTypeAny, {
5675
+ displayName: string;
5676
+ description?: string | undefined;
5677
+ }, {
5678
+ displayName: string;
5679
+ description?: string | undefined;
5680
+ }>;
5681
+ }, "strip", z$1.ZodTypeAny, {
5682
+ genericId: {
5683
+ displayName: string;
5684
+ description?: string | undefined;
5685
+ };
5686
+ }, {
5687
+ genericId: {
5688
+ displayName: string;
5689
+ description?: string | undefined;
5690
+ };
5691
+ }>>;
5692
+ }, "strip", z$1.ZodTypeAny, {
5693
+ mode: "API_KEY";
5694
+ headers: Record<string, string>;
5695
+ apiKeyField?: {
5696
+ description?: string | undefined;
5697
+ displayName?: string | undefined;
5698
+ } | undefined;
5699
+ additionalFields?: {
5700
+ genericId: {
5701
+ displayName: string;
5702
+ description?: string | undefined;
5703
+ };
5704
+ } | undefined;
5705
+ }, {
5706
+ mode: "API_KEY";
5707
+ headers: Record<string, string>;
5708
+ apiKeyField?: {
5709
+ description?: string | undefined;
5710
+ displayName?: string | undefined;
5711
+ } | undefined;
5712
+ additionalFields?: {
5713
+ genericId: {
5714
+ displayName: string;
5715
+ description?: string | undefined;
5716
+ };
5717
+ } | undefined;
5718
+ }>, z$1.ZodObject<{
5719
+ mode: z$1.ZodLiteral<"DCR_OAUTH">;
5720
+ /**
5721
+ * Where to fetch the full auth scheme, usually the
5722
+ * `/.well-known/oauth-authorization-server` path of your MCP URL.
5723
+ */
5724
+ discoveryUrl: z$1.ZodString;
5725
+ }, "strip", z$1.ZodTypeAny, {
5726
+ mode: "DCR_OAUTH";
5727
+ discoveryUrl: string;
5728
+ }, {
5729
+ mode: "DCR_OAUTH";
5730
+ discoveryUrl: string;
5731
+ }>]>, "many">;
5732
+ /**
5733
+ * `'all'` to share the toolkit with every user in the project, or a user ID
5734
+ * to make it private to that user. Cannot be changed after create.
5735
+ */
5736
+ userId: z$1.ZodString;
5737
+ /** Where to send the user after they connect. Used only for `connectLink`. */
5738
+ callbackUrl: z$1.ZodOptional<z$1.ZodString>;
5739
+ }, "strip", z$1.ZodTypeAny, {
5740
+ name: string;
5741
+ userId: string;
5742
+ appUrl: string;
5743
+ authSchemes: ({
5744
+ mode: "NO_AUTH";
5745
+ } | {
5746
+ mode: "API_KEY";
5747
+ headers: Record<string, string>;
5748
+ apiKeyField?: {
5749
+ description?: string | undefined;
5750
+ displayName?: string | undefined;
5751
+ } | undefined;
5752
+ additionalFields?: {
5753
+ genericId: {
5754
+ displayName: string;
5755
+ description?: string | undefined;
5756
+ };
5757
+ } | undefined;
5758
+ } | {
5759
+ mode: "DCR_OAUTH";
5760
+ discoveryUrl: string;
5761
+ })[];
5762
+ callbackUrl?: string | undefined;
5763
+ logoFile?: {
5764
+ content: string;
5765
+ mimeType: "image/png" | "image/jpeg";
5766
+ } | undefined;
5767
+ }, {
5768
+ name: string;
5769
+ userId: string;
5770
+ appUrl: string;
5771
+ authSchemes: ({
5772
+ mode: "NO_AUTH";
5773
+ } | {
5774
+ mode: "API_KEY";
5775
+ headers: Record<string, string>;
5776
+ apiKeyField?: {
5777
+ description?: string | undefined;
5778
+ displayName?: string | undefined;
5779
+ } | undefined;
5780
+ additionalFields?: {
5781
+ genericId: {
5782
+ displayName: string;
5783
+ description?: string | undefined;
5784
+ };
5785
+ } | undefined;
5786
+ } | {
5787
+ mode: "DCR_OAUTH";
5788
+ discoveryUrl: string;
5789
+ })[];
5790
+ callbackUrl?: string | undefined;
5791
+ logoFile?: {
5792
+ content: string;
5793
+ mimeType: "image/png" | "image/jpeg";
5794
+ } | undefined;
5795
+ }>;
5796
+ type CustomToolkitCreateParams = z$1.infer<typeof CustomToolkitCreateParamsSchema>;
5797
+ declare const CustomToolkitCreateResponseSchema: z$1.ZodObject<{
5798
+ /** Slug of the created toolkit. Store it to update, sync or delete the toolkit later. */
5799
+ slug: z$1.ZodString;
5800
+ /**
5801
+ * Hosted connect page for a private toolkit's user. `null` for shared or
5802
+ * no-auth toolkits, or if the link could not be created.
5803
+ */
5804
+ connectLink: z$1.ZodNullable<z$1.ZodObject<{
5805
+ redirectUrl: z$1.ZodString;
5806
+ expiresAt: z$1.ZodString;
5807
+ connectedAccountId: z$1.ZodString;
5808
+ }, "strip", z$1.ZodTypeAny, {
5809
+ connectedAccountId: string;
5810
+ redirectUrl: string;
5811
+ expiresAt: string;
5812
+ }, {
5813
+ connectedAccountId: string;
5814
+ redirectUrl: string;
5815
+ expiresAt: string;
5816
+ }>>;
5817
+ }, "strip", z$1.ZodTypeAny, {
5818
+ slug: string;
5819
+ connectLink: {
5820
+ connectedAccountId: string;
5821
+ redirectUrl: string;
5822
+ expiresAt: string;
5823
+ } | null;
5824
+ }, {
5825
+ slug: string;
5826
+ connectLink: {
5827
+ connectedAccountId: string;
5828
+ redirectUrl: string;
5829
+ expiresAt: string;
5830
+ } | null;
5831
+ }>;
5832
+ type CustomToolkitCreateResponse = z$1.infer<typeof CustomToolkitCreateResponseSchema>;
5833
+ /**
5834
+ * Params for `composio.experimental.customToolkits.update()`.
5835
+ * **Experimental — custom toolkits are in pilot; shape may change.**
5836
+ */
5837
+ declare const CustomToolkitUpdateParamsSchema: z$1.ZodEffects<z$1.ZodObject<{
5838
+ name: z$1.ZodOptional<z$1.ZodString>;
5839
+ logoFile: z$1.ZodOptional<z$1.ZodObject<{
5840
+ content: z$1.ZodString;
5841
+ mimeType: z$1.ZodEnum<["image/png", "image/jpeg"]>;
5842
+ }, "strip", z$1.ZodTypeAny, {
5843
+ content: string;
5844
+ mimeType: "image/png" | "image/jpeg";
5845
+ }, {
5846
+ content: string;
5847
+ mimeType: "image/png" | "image/jpeg";
5848
+ }>>;
5849
+ /** End-user copy for the API key input on the connect page. API_KEY toolkits only. */
5850
+ apiKeyField: z$1.ZodOptional<z$1.ZodObject<{
5851
+ displayName: z$1.ZodOptional<z$1.ZodString>;
5852
+ description: z$1.ZodOptional<z$1.ZodString>;
5853
+ }, "strip", z$1.ZodTypeAny, {
5854
+ description?: string | undefined;
5855
+ displayName?: string | undefined;
5856
+ }, {
5857
+ description?: string | undefined;
5858
+ displayName?: string | undefined;
5859
+ }>>;
5860
+ /**
5861
+ * The user the toolkit is private to. Required to update a private toolkit
5862
+ * when the project has 2FA enabled.
5863
+ */
5864
+ userId: z$1.ZodOptional<z$1.ZodString>;
5865
+ }, "strip", z$1.ZodTypeAny, {
5866
+ name?: string | undefined;
5867
+ userId?: string | undefined;
5868
+ apiKeyField?: {
5869
+ description?: string | undefined;
5870
+ displayName?: string | undefined;
5871
+ } | undefined;
5872
+ logoFile?: {
5873
+ content: string;
5874
+ mimeType: "image/png" | "image/jpeg";
5875
+ } | undefined;
5876
+ }, {
5877
+ name?: string | undefined;
5878
+ userId?: string | undefined;
5879
+ apiKeyField?: {
5880
+ description?: string | undefined;
5881
+ displayName?: string | undefined;
5882
+ } | undefined;
5883
+ logoFile?: {
5884
+ content: string;
5885
+ mimeType: "image/png" | "image/jpeg";
5886
+ } | undefined;
5887
+ }>, {
5888
+ name?: string | undefined;
5889
+ userId?: string | undefined;
5890
+ apiKeyField?: {
5891
+ description?: string | undefined;
5892
+ displayName?: string | undefined;
5893
+ } | undefined;
5894
+ logoFile?: {
5895
+ content: string;
5896
+ mimeType: "image/png" | "image/jpeg";
5897
+ } | undefined;
5898
+ }, {
5899
+ name?: string | undefined;
5900
+ userId?: string | undefined;
5901
+ apiKeyField?: {
5902
+ description?: string | undefined;
5903
+ displayName?: string | undefined;
5904
+ } | undefined;
5905
+ logoFile?: {
5906
+ content: string;
5907
+ mimeType: "image/png" | "image/jpeg";
5908
+ } | undefined;
5909
+ }>;
5910
+ type CustomToolkitUpdateParams = z$1.infer<typeof CustomToolkitUpdateParamsSchema>;
5911
+ declare const CustomToolkitUpdateResponseSchema: z$1.ZodObject<{
5912
+ success: z$1.ZodLiteral<true>;
5913
+ }, "strip", z$1.ZodTypeAny, {
5914
+ success: true;
5915
+ }, {
5916
+ success: true;
5917
+ }>;
5918
+ type CustomToolkitUpdateResponse = z$1.infer<typeof CustomToolkitUpdateResponseSchema>;
5497
5919
  /**
5498
5920
  * Params for `composio.experimental.customToolkits.upsert()`.
5499
5921
  * **Experimental — custom toolkits are in pilot; shape may change.**
5922
+ *
5923
+ * @deprecated Use `CustomToolkitCreateParams` with `create()`.
5500
5924
  */
5501
5925
  declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5502
5926
  /**
@@ -5546,6 +5970,29 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5546
5970
  description?: string | undefined;
5547
5971
  displayName?: string | undefined;
5548
5972
  }>>;
5973
+ /** Additional connect-page input used by `{{generic_id}}` in headers. */
5974
+ additionalFields: z$1.ZodOptional<z$1.ZodObject<{
5975
+ genericId: z$1.ZodObject<{
5976
+ displayName: z$1.ZodString;
5977
+ description: z$1.ZodOptional<z$1.ZodString>;
5978
+ }, "strip", z$1.ZodTypeAny, {
5979
+ displayName: string;
5980
+ description?: string | undefined;
5981
+ }, {
5982
+ displayName: string;
5983
+ description?: string | undefined;
5984
+ }>;
5985
+ }, "strip", z$1.ZodTypeAny, {
5986
+ genericId: {
5987
+ displayName: string;
5988
+ description?: string | undefined;
5989
+ };
5990
+ }, {
5991
+ genericId: {
5992
+ displayName: string;
5993
+ description?: string | undefined;
5994
+ };
5995
+ }>>;
5549
5996
  }, "strip", z$1.ZodTypeAny, {
5550
5997
  mode: "API_KEY";
5551
5998
  headers: Record<string, string>;
@@ -5553,6 +6000,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5553
6000
  description?: string | undefined;
5554
6001
  displayName?: string | undefined;
5555
6002
  } | undefined;
6003
+ additionalFields?: {
6004
+ genericId: {
6005
+ displayName: string;
6006
+ description?: string | undefined;
6007
+ };
6008
+ } | undefined;
5556
6009
  }, {
5557
6010
  mode: "API_KEY";
5558
6011
  headers: Record<string, string>;
@@ -5560,6 +6013,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5560
6013
  description?: string | undefined;
5561
6014
  displayName?: string | undefined;
5562
6015
  } | undefined;
6016
+ additionalFields?: {
6017
+ genericId: {
6018
+ displayName: string;
6019
+ description?: string | undefined;
6020
+ };
6021
+ } | undefined;
5563
6022
  }>, z$1.ZodObject<{
5564
6023
  mode: z$1.ZodLiteral<"DCR_OAUTH">;
5565
6024
  /**
@@ -5586,6 +6045,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5586
6045
  description?: string | undefined;
5587
6046
  displayName?: string | undefined;
5588
6047
  } | undefined;
6048
+ additionalFields?: {
6049
+ genericId: {
6050
+ displayName: string;
6051
+ description?: string | undefined;
6052
+ };
6053
+ } | undefined;
5589
6054
  } | {
5590
6055
  mode: "DCR_OAUTH";
5591
6056
  discoveryUrl: string;
@@ -5606,6 +6071,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5606
6071
  description?: string | undefined;
5607
6072
  displayName?: string | undefined;
5608
6073
  } | undefined;
6074
+ additionalFields?: {
6075
+ genericId: {
6076
+ displayName: string;
6077
+ description?: string | undefined;
6078
+ };
6079
+ } | undefined;
5609
6080
  } | {
5610
6081
  mode: "DCR_OAUTH";
5611
6082
  discoveryUrl: string;
@@ -5629,6 +6100,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5629
6100
  description?: string | undefined;
5630
6101
  displayName?: string | undefined;
5631
6102
  } | undefined;
6103
+ additionalFields?: {
6104
+ genericId: {
6105
+ displayName: string;
6106
+ description?: string | undefined;
6107
+ };
6108
+ } | undefined;
5632
6109
  } | {
5633
6110
  mode: "DCR_OAUTH";
5634
6111
  discoveryUrl: string;
@@ -5652,6 +6129,12 @@ declare const CustomToolkitUpsertParamsSchema: z$1.ZodObject<{
5652
6129
  description?: string | undefined;
5653
6130
  displayName?: string | undefined;
5654
6131
  } | undefined;
6132
+ additionalFields?: {
6133
+ genericId: {
6134
+ displayName: string;
6135
+ description?: string | undefined;
6136
+ };
6137
+ } | undefined;
5655
6138
  } | {
5656
6139
  mode: "DCR_OAUTH";
5657
6140
  discoveryUrl: string;
@@ -5736,20 +6219,67 @@ type CustomToolkitDeleteResponse = z$1.infer<typeof CustomToolkitDeleteResponseS
5736
6219
  *
5737
6220
  * @example
5738
6221
  * ```typescript
5739
- * const { slug } = await composio.experimental.customToolkits.upsert({
5740
- * slug: 'MY_TOOLKIT',
5741
- * toolkitConfig: {
5742
- * name: 'My Toolkit',
5743
- * appUrl: 'https://mcp.example.com/mcp',
5744
- * authSchemes: [{ mode: 'DCR_OAUTH', discoveryUrl: 'https://mcp.example.com/.well-known/oauth-authorization-server' }],
5745
- * },
6222
+ * const { slug } = await composio.experimental.customToolkits.create({
6223
+ * name: 'My Toolkit',
6224
+ * appUrl: 'https://mcp.example.com/mcp',
6225
+ * authSchemes: [{ mode: 'DCR_OAUTH', discoveryUrl: 'https://mcp.example.com/.well-known/oauth-authorization-server' }],
6226
+ * userId: 'all',
5746
6227
  * });
5747
- * await composio.experimental.customToolkits.sync(slug);
6228
+ * await composio.experimental.customToolkits.update(slug, { name: 'My Renamed Toolkit' });
5748
6229
  * ```
5749
6230
  */
5750
6231
  declare class CustomToolkits {
5751
6232
  private client;
5752
6233
  constructor(client: ComposioClient);
6234
+ /**
6235
+ * Creates a custom MCP toolkit and returns its generated slug.
6236
+ * **Experimental — custom toolkits are in pilot; shape may change.**
6237
+ *
6238
+ * Set `userId` to `'all'` to share the toolkit with every user in the
6239
+ * project, or to a user ID to make it private to that user. `appUrl`,
6240
+ * `authSchemes` and `userId` cannot change later: delete and re-create the
6241
+ * toolkit instead. For a private toolkit, `connectLink` is where to send
6242
+ * that user to connect.
6243
+ *
6244
+ * @param {CustomToolkitCreateParams} params - The toolkit to create
6245
+ * @returns {Promise<CustomToolkitCreateResponse>} The toolkit's slug and, for a private toolkit, a connect link
6246
+ * @throws {ValidationError} If the params fail validation
6247
+ *
6248
+ * @example
6249
+ * ```typescript
6250
+ * const { slug, connectLink } = await composio.experimental.customToolkits.create({
6251
+ * name: 'Internal API',
6252
+ * appUrl: 'https://mcp.internal.example.com/mcp',
6253
+ * authSchemes: [
6254
+ * { mode: 'API_KEY', headers: { Authorization: 'Bearer {{generic_api_key}}' } },
6255
+ * ],
6256
+ * userId: 'user_123',
6257
+ * });
6258
+ * ```
6259
+ */
6260
+ create(params: CustomToolkitCreateParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitCreateResponse>;
6261
+ /**
6262
+ * Updates a custom toolkit's name, logo or API key field copy. Omitted
6263
+ * fields keep their current value.
6264
+ * **Experimental — custom toolkits are in pilot; shape may change.**
6265
+ *
6266
+ * On a project with 2FA enabled, updating a private toolkit requires the
6267
+ * `userId` it is private to.
6268
+ *
6269
+ * @param {string} slug - The custom toolkit slug returned by `create()`
6270
+ * @param {CustomToolkitUpdateParams} params - At least one of `name`, `logoFile`, `apiKeyField`
6271
+ * @returns {Promise<CustomToolkitUpdateResponse>} `{ success: true }`
6272
+ * @throws {ValidationError} If the params fail validation
6273
+ *
6274
+ * @example
6275
+ * ```typescript
6276
+ * await composio.experimental.customToolkits.update('CUSTOM_INTERNAL_API_K7F2Q', {
6277
+ * name: 'Internal API (prod)',
6278
+ * userId: 'user_123',
6279
+ * });
6280
+ * ```
6281
+ */
6282
+ update(slug: string, params: CustomToolkitUpdateParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitUpdateResponse>;
5753
6283
  /**
5754
6284
  * Creates a custom toolkit, or updates its display metadata (name, API key
5755
6285
  * field copy) when the project already owns a toolkit with this slug.
@@ -5776,6 +6306,10 @@ declare class CustomToolkits {
5776
6306
  * },
5777
6307
  * });
5778
6308
  * ```
6309
+ *
6310
+ * @deprecated Use `create()` for a new toolkit and `update(slug, ...)` to change
6311
+ * its name, logo or API key field. `create()` generates the slug, so store the
6312
+ * slug it returns.
5779
6313
  */
5780
6314
  upsert(params: CustomToolkitUpsertParams, requestOptions?: ComposioRequestOptions): Promise<CustomToolkitUpsertResponse>;
5781
6315
  /**
@@ -5832,7 +6366,7 @@ declare class Experimental {
5832
6366
  */
5833
6367
  usage: Usage;
5834
6368
  /**
5835
- * Register and manage project-owned custom toolkits (`upsert()` / `sync()` / `delete()`).
6369
+ * Register and manage project-owned custom toolkits (`create()` / `update()` / `sync()` / `delete()`).
5836
6370
  * **Experimental — custom toolkits are in pilot; shape may change.**
5837
6371
  *
5838
6372
  * @example
@@ -7071,11 +7605,11 @@ declare const LogSearchFilterSchema: z$1.ZodObject<{
7071
7605
  value: z$1.ZodString;
7072
7606
  }, "strip", z$1.ZodTypeAny, {
7073
7607
  value: string;
7074
- field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7608
+ field: "status" | "tool_slug" | "toolkit_slug" | "connected_account_id" | "auth_config_id" | "user_id" | "session_id" | "sandbox_id" | "request_id" | "log_id";
7075
7609
  operator: "==" | "!=" | "contains" | "not_contains";
7076
7610
  }, {
7077
7611
  value: string;
7078
- field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7612
+ field: "status" | "tool_slug" | "toolkit_slug" | "connected_account_id" | "auth_config_id" | "user_id" | "session_id" | "sandbox_id" | "request_id" | "log_id";
7079
7613
  operator: "==" | "!=" | "contains" | "not_contains";
7080
7614
  }>;
7081
7615
  type LogSearchFilter = z$1.infer<typeof LogSearchFilterSchema>;
@@ -7104,11 +7638,11 @@ declare const LogSearchParamsSchema: z$1.ZodObject<{
7104
7638
  value: z$1.ZodString;
7105
7639
  }, "strip", z$1.ZodTypeAny, {
7106
7640
  value: string;
7107
- field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7641
+ field: "status" | "tool_slug" | "toolkit_slug" | "connected_account_id" | "auth_config_id" | "user_id" | "session_id" | "sandbox_id" | "request_id" | "log_id";
7108
7642
  operator: "==" | "!=" | "contains" | "not_contains";
7109
7643
  }, {
7110
7644
  value: string;
7111
- field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7645
+ field: "status" | "tool_slug" | "toolkit_slug" | "connected_account_id" | "auth_config_id" | "user_id" | "session_id" | "sandbox_id" | "request_id" | "log_id";
7112
7646
  operator: "==" | "!=" | "contains" | "not_contains";
7113
7647
  }>, "many">>;
7114
7648
  timeRange: z$1.ZodOptional<z$1.ZodObject<{
@@ -7128,7 +7662,7 @@ declare const LogSearchParamsSchema: z$1.ZodObject<{
7128
7662
  cursor?: string | null | undefined;
7129
7663
  filters?: {
7130
7664
  value: string;
7131
- field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7665
+ field: "status" | "tool_slug" | "toolkit_slug" | "connected_account_id" | "auth_config_id" | "user_id" | "session_id" | "sandbox_id" | "request_id" | "log_id";
7132
7666
  operator: "==" | "!=" | "contains" | "not_contains";
7133
7667
  }[] | undefined;
7134
7668
  timeRange?: {
@@ -7140,7 +7674,7 @@ declare const LogSearchParamsSchema: z$1.ZodObject<{
7140
7674
  cursor?: string | null | undefined;
7141
7675
  filters?: {
7142
7676
  value: string;
7143
- field: "status" | "log_id" | "user_id" | "connected_account_id" | "auth_config_id" | "tool_slug" | "toolkit_slug" | "session_id" | "sandbox_id" | "request_id";
7677
+ field: "status" | "tool_slug" | "toolkit_slug" | "connected_account_id" | "auth_config_id" | "user_id" | "session_id" | "sandbox_id" | "request_id" | "log_id";
7144
7678
  operator: "==" | "!=" | "contains" | "not_contains";
7145
7679
  }[] | undefined;
7146
7680
  timeRange?: {
@@ -7204,13 +7738,13 @@ declare const ToolExecutionLogSchema: z$1.ZodObject<{
7204
7738
  type: string;
7205
7739
  status: "success" | "failed";
7206
7740
  id: string;
7741
+ timestamp: string;
7742
+ level: "error" | "warn" | "info";
7207
7743
  metadata: {
7208
7744
  instant_charge?: string | undefined;
7209
7745
  } & {
7210
7746
  [k: string]: unknown;
7211
7747
  };
7212
- timestamp: string;
7213
- level: "error" | "warn" | "info";
7214
7748
  metrics: Record<string, unknown>;
7215
7749
  parent: {
7216
7750
  logId: string;
@@ -7221,13 +7755,13 @@ declare const ToolExecutionLogSchema: z$1.ZodObject<{
7221
7755
  type: string;
7222
7756
  status: "success" | "failed";
7223
7757
  id: string;
7758
+ timestamp: string;
7759
+ level: "error" | "warn" | "info";
7224
7760
  metadata: {
7225
7761
  instant_charge?: string | undefined;
7226
7762
  } & {
7227
7763
  [k: string]: unknown;
7228
7764
  };
7229
- timestamp: string;
7230
- level: "error" | "warn" | "info";
7231
7765
  metrics: Record<string, unknown>;
7232
7766
  parent: {
7233
7767
  logId: string;
@@ -7268,13 +7802,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
7268
7802
  type: string;
7269
7803
  status: "success" | "failed";
7270
7804
  id: string;
7805
+ timestamp: string;
7806
+ level: "error" | "warn" | "info";
7271
7807
  metadata: {
7272
7808
  instant_charge?: string | undefined;
7273
7809
  } & {
7274
7810
  [k: string]: unknown;
7275
7811
  };
7276
- timestamp: string;
7277
- level: "error" | "warn" | "info";
7278
7812
  metrics: Record<string, unknown>;
7279
7813
  parent: {
7280
7814
  logId: string;
@@ -7285,13 +7819,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
7285
7819
  type: string;
7286
7820
  status: "success" | "failed";
7287
7821
  id: string;
7822
+ timestamp: string;
7823
+ level: "error" | "warn" | "info";
7288
7824
  metadata: {
7289
7825
  instant_charge?: string | undefined;
7290
7826
  } & {
7291
7827
  [k: string]: unknown;
7292
7828
  };
7293
- timestamp: string;
7294
- level: "error" | "warn" | "info";
7295
7829
  metrics: Record<string, unknown>;
7296
7830
  parent: {
7297
7831
  logId: string;
@@ -7306,13 +7840,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
7306
7840
  type: string;
7307
7841
  status: "success" | "failed";
7308
7842
  id: string;
7843
+ timestamp: string;
7844
+ level: "error" | "warn" | "info";
7309
7845
  metadata: {
7310
7846
  instant_charge?: string | undefined;
7311
7847
  } & {
7312
7848
  [k: string]: unknown;
7313
7849
  };
7314
- timestamp: string;
7315
- level: "error" | "warn" | "info";
7316
7850
  metrics: Record<string, unknown>;
7317
7851
  parent: {
7318
7852
  logId: string;
@@ -7326,13 +7860,13 @@ declare const LogSearchResponseSchema: z$1.ZodObject<{
7326
7860
  type: string;
7327
7861
  status: "success" | "failed";
7328
7862
  id: string;
7863
+ timestamp: string;
7864
+ level: "error" | "warn" | "info";
7329
7865
  metadata: {
7330
7866
  instant_charge?: string | undefined;
7331
7867
  } & {
7332
7868
  [k: string]: unknown;
7333
7869
  };
7334
- timestamp: string;
7335
- level: "error" | "warn" | "info";
7336
7870
  metrics: Record<string, unknown>;
7337
7871
  parent: {
7338
7872
  logId: string;
@@ -7418,13 +7952,13 @@ declare const ToolExecutionLogDetailSchema: z$1.ZodObject<{
7418
7952
  status: "success" | "failed";
7419
7953
  data: Record<string, unknown>;
7420
7954
  id: string;
7955
+ timestamp: string;
7956
+ level: "error" | "warn" | "info";
7421
7957
  metadata: {
7422
7958
  instant_charge?: string | undefined;
7423
7959
  } & {
7424
7960
  [k: string]: unknown;
7425
7961
  };
7426
- timestamp: string;
7427
- level: "error" | "warn" | "info";
7428
7962
  metrics: Record<string, unknown>;
7429
7963
  parent: {
7430
7964
  logId: string;
@@ -7450,13 +7984,13 @@ declare const ToolExecutionLogDetailSchema: z$1.ZodObject<{
7450
7984
  status: "success" | "failed";
7451
7985
  data: Record<string, unknown>;
7452
7986
  id: string;
7987
+ timestamp: string;
7988
+ level: "error" | "warn" | "info";
7453
7989
  metadata: {
7454
7990
  instant_charge?: string | undefined;
7455
7991
  } & {
7456
7992
  [k: string]: unknown;
7457
7993
  };
7458
- timestamp: string;
7459
- level: "error" | "warn" | "info";
7460
7994
  metrics: Record<string, unknown>;
7461
7995
  parent: {
7462
7996
  logId: string;
@@ -7538,7 +8072,10 @@ declare class Logs {
7538
8072
  * active configs only, 20 per page, at most 100.
7539
8073
  */
7540
8074
  declare const SessionConfigListParamsSchema: z$1.ZodObject<{
7541
- /** Case-insensitive substring match against the config name. */
8075
+ /**
8076
+ * @deprecated The Composio API no longer accepts this field. It is ignored
8077
+ * and `list()` logs a warning when it is set; filter `items` by name instead.
8078
+ */
7542
8079
  search: z$1.ZodOptional<z$1.ZodString>;
7543
8080
  /** `true` returns only archived configs. Omitted returns active configs. */
7544
8081
  archived: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -7633,108 +8170,167 @@ declare const SessionConfigListResponseSchema: z$1.ZodObject<{
7633
8170
  type SessionConfigListResponse = z$1.infer<typeof SessionConfigListResponseSchema>;
7634
8171
  /**
7635
8172
  * The access policy stored in a saved Session config, in the backend's
7636
- * `enable`/`disable` shape. Toolkit slug keys and tag names are kept exactly
7637
- * as the backend sends them.
8173
+ * `enable`/`disable`/`require_approval` shape. Toolkit slug keys and tag names
8174
+ * are kept exactly as the backend sends them.
7638
8175
  */
7639
8176
  declare const SessionConfigPolicySchema: z$1.ZodObject<{
7640
8177
  toolkits: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodObject<{
8178
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7641
8179
  enable: z$1.ZodArray<z$1.ZodString, "many">;
7642
8180
  }, "strip", z$1.ZodTypeAny, {
7643
8181
  enable: string[];
8182
+ require_approval?: string[] | undefined;
7644
8183
  }, {
7645
8184
  enable: string[];
8185
+ require_approval?: string[] | undefined;
7646
8186
  }>, z$1.ZodObject<{
8187
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7647
8188
  disable: z$1.ZodArray<z$1.ZodString, "many">;
7648
8189
  }, "strip", z$1.ZodTypeAny, {
7649
8190
  disable: string[];
8191
+ require_approval?: string[] | undefined;
7650
8192
  }, {
7651
8193
  disable: string[];
8194
+ require_approval?: string[] | undefined;
8195
+ }>, z$1.ZodObject<{
8196
+ require_approval: z$1.ZodArray<z$1.ZodString, "many">;
8197
+ }, "strip", z$1.ZodTypeAny, {
8198
+ require_approval: string[];
8199
+ }, {
8200
+ require_approval: string[];
7652
8201
  }>]>>;
7653
8202
  /** Per-toolkit tool policy, keyed by toolkit slug. */
7654
8203
  tools: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodObject<{
8204
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7655
8205
  enable: z$1.ZodArray<z$1.ZodString, "many">;
7656
8206
  }, "strip", z$1.ZodTypeAny, {
7657
8207
  enable: string[];
8208
+ require_approval?: string[] | undefined;
7658
8209
  }, {
7659
8210
  enable: string[];
8211
+ require_approval?: string[] | undefined;
7660
8212
  }>, z$1.ZodObject<{
8213
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7661
8214
  disable: z$1.ZodArray<z$1.ZodString, "many">;
7662
8215
  }, "strip", z$1.ZodTypeAny, {
7663
8216
  disable: string[];
8217
+ require_approval?: string[] | undefined;
7664
8218
  }, {
7665
8219
  disable: string[];
8220
+ require_approval?: string[] | undefined;
7666
8221
  }>, z$1.ZodObject<{
8222
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7667
8223
  tags: z$1.ZodObject<{
7668
8224
  enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7669
8225
  disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
8226
+ /** Tags whose tools need the user's approval before they run. */
8227
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7670
8228
  }, "strip", z$1.ZodTypeAny, {
7671
8229
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7672
8230
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8231
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7673
8232
  }, {
7674
8233
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7675
8234
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8235
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7676
8236
  }>;
7677
8237
  }, "strip", z$1.ZodTypeAny, {
7678
8238
  tags: {
7679
8239
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7680
8240
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8241
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7681
8242
  };
8243
+ require_approval?: string[] | undefined;
7682
8244
  }, {
7683
8245
  tags: {
7684
8246
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7685
8247
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8248
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7686
8249
  };
8250
+ require_approval?: string[] | undefined;
8251
+ }>, z$1.ZodObject<{
8252
+ require_approval: z$1.ZodArray<z$1.ZodString, "many">;
8253
+ }, "strip", z$1.ZodTypeAny, {
8254
+ require_approval: string[];
8255
+ }, {
8256
+ require_approval: string[];
7687
8257
  }>]>>>;
7688
8258
  /** Global tag policy. */
7689
8259
  tags: z$1.ZodOptional<z$1.ZodObject<{
7690
8260
  enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7691
8261
  disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
8262
+ /** Tags whose tools need the user's approval before they run. */
8263
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7692
8264
  }, "strip", z$1.ZodTypeAny, {
7693
8265
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7694
8266
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8267
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7695
8268
  }, {
7696
8269
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7697
8270
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8271
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7698
8272
  }>>;
7699
8273
  }, "strip", z$1.ZodTypeAny, {
7700
8274
  tags?: {
7701
8275
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7702
8276
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8277
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7703
8278
  } | undefined;
7704
8279
  tools?: Record<string, {
8280
+ require_approval: string[];
8281
+ } | {
7705
8282
  enable: string[];
8283
+ require_approval?: string[] | undefined;
7706
8284
  } | {
7707
8285
  disable: string[];
8286
+ require_approval?: string[] | undefined;
7708
8287
  } | {
7709
8288
  tags: {
7710
8289
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7711
8290
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8291
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7712
8292
  };
8293
+ require_approval?: string[] | undefined;
7713
8294
  }> | undefined;
7714
8295
  toolkits?: {
7715
8296
  enable: string[];
8297
+ require_approval?: string[] | undefined;
7716
8298
  } | {
7717
8299
  disable: string[];
8300
+ require_approval?: string[] | undefined;
8301
+ } | {
8302
+ require_approval: string[];
7718
8303
  } | undefined;
7719
8304
  }, {
7720
8305
  tags?: {
7721
8306
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7722
8307
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8308
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7723
8309
  } | undefined;
7724
8310
  tools?: Record<string, {
8311
+ require_approval: string[];
8312
+ } | {
7725
8313
  enable: string[];
8314
+ require_approval?: string[] | undefined;
7726
8315
  } | {
7727
8316
  disable: string[];
8317
+ require_approval?: string[] | undefined;
7728
8318
  } | {
7729
8319
  tags: {
7730
8320
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7731
8321
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8322
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7732
8323
  };
8324
+ require_approval?: string[] | undefined;
7733
8325
  }> | undefined;
7734
8326
  toolkits?: {
7735
8327
  enable: string[];
8328
+ require_approval?: string[] | undefined;
7736
8329
  } | {
7737
8330
  disable: string[];
8331
+ require_approval?: string[] | undefined;
8332
+ } | {
8333
+ require_approval: string[];
7738
8334
  } | undefined;
7739
8335
  }>;
7740
8336
  type SessionConfigPolicy = z$1.infer<typeof SessionConfigPolicySchema>;
@@ -7756,103 +8352,162 @@ declare const SessionConfigSchema: z$1.ZodObject<{
7756
8352
  description: z$1.ZodNullable<z$1.ZodString>;
7757
8353
  config: z$1.ZodObject<{
7758
8354
  toolkits: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodObject<{
8355
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7759
8356
  enable: z$1.ZodArray<z$1.ZodString, "many">;
7760
8357
  }, "strip", z$1.ZodTypeAny, {
7761
8358
  enable: string[];
8359
+ require_approval?: string[] | undefined;
7762
8360
  }, {
7763
8361
  enable: string[];
8362
+ require_approval?: string[] | undefined;
7764
8363
  }>, z$1.ZodObject<{
8364
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7765
8365
  disable: z$1.ZodArray<z$1.ZodString, "many">;
7766
8366
  }, "strip", z$1.ZodTypeAny, {
7767
8367
  disable: string[];
8368
+ require_approval?: string[] | undefined;
7768
8369
  }, {
7769
8370
  disable: string[];
8371
+ require_approval?: string[] | undefined;
8372
+ }>, z$1.ZodObject<{
8373
+ require_approval: z$1.ZodArray<z$1.ZodString, "many">;
8374
+ }, "strip", z$1.ZodTypeAny, {
8375
+ require_approval: string[];
8376
+ }, {
8377
+ require_approval: string[];
7770
8378
  }>]>>;
7771
8379
  /** Per-toolkit tool policy, keyed by toolkit slug. */
7772
8380
  tools: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodObject<{
8381
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7773
8382
  enable: z$1.ZodArray<z$1.ZodString, "many">;
7774
8383
  }, "strip", z$1.ZodTypeAny, {
7775
8384
  enable: string[];
8385
+ require_approval?: string[] | undefined;
7776
8386
  }, {
7777
8387
  enable: string[];
8388
+ require_approval?: string[] | undefined;
7778
8389
  }>, z$1.ZodObject<{
8390
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7779
8391
  disable: z$1.ZodArray<z$1.ZodString, "many">;
7780
8392
  }, "strip", z$1.ZodTypeAny, {
7781
8393
  disable: string[];
8394
+ require_approval?: string[] | undefined;
7782
8395
  }, {
7783
8396
  disable: string[];
8397
+ require_approval?: string[] | undefined;
7784
8398
  }>, z$1.ZodObject<{
8399
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
7785
8400
  tags: z$1.ZodObject<{
7786
8401
  enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7787
8402
  disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
8403
+ /** Tags whose tools need the user's approval before they run. */
8404
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7788
8405
  }, "strip", z$1.ZodTypeAny, {
7789
8406
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7790
8407
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8408
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7791
8409
  }, {
7792
8410
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7793
8411
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8412
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7794
8413
  }>;
7795
8414
  }, "strip", z$1.ZodTypeAny, {
7796
8415
  tags: {
7797
8416
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7798
8417
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8418
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7799
8419
  };
8420
+ require_approval?: string[] | undefined;
7800
8421
  }, {
7801
8422
  tags: {
7802
8423
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7803
8424
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8425
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7804
8426
  };
8427
+ require_approval?: string[] | undefined;
8428
+ }>, z$1.ZodObject<{
8429
+ require_approval: z$1.ZodArray<z$1.ZodString, "many">;
8430
+ }, "strip", z$1.ZodTypeAny, {
8431
+ require_approval: string[];
8432
+ }, {
8433
+ require_approval: string[];
7805
8434
  }>]>>>;
7806
8435
  /** Global tag policy. */
7807
8436
  tags: z$1.ZodOptional<z$1.ZodObject<{
7808
8437
  enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7809
8438
  disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
8439
+ /** Tags whose tools need the user's approval before they run. */
8440
+ require_approval: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
7810
8441
  }, "strip", z$1.ZodTypeAny, {
7811
8442
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7812
8443
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8444
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7813
8445
  }, {
7814
8446
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7815
8447
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8448
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7816
8449
  }>>;
7817
8450
  }, "strip", z$1.ZodTypeAny, {
7818
8451
  tags?: {
7819
8452
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7820
8453
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8454
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7821
8455
  } | undefined;
7822
8456
  tools?: Record<string, {
8457
+ require_approval: string[];
8458
+ } | {
7823
8459
  enable: string[];
8460
+ require_approval?: string[] | undefined;
7824
8461
  } | {
7825
8462
  disable: string[];
8463
+ require_approval?: string[] | undefined;
7826
8464
  } | {
7827
8465
  tags: {
7828
8466
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7829
8467
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8468
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7830
8469
  };
8470
+ require_approval?: string[] | undefined;
7831
8471
  }> | undefined;
7832
8472
  toolkits?: {
7833
8473
  enable: string[];
8474
+ require_approval?: string[] | undefined;
7834
8475
  } | {
7835
8476
  disable: string[];
8477
+ require_approval?: string[] | undefined;
8478
+ } | {
8479
+ require_approval: string[];
7836
8480
  } | undefined;
7837
8481
  }, {
7838
8482
  tags?: {
7839
8483
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7840
8484
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8485
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7841
8486
  } | undefined;
7842
8487
  tools?: Record<string, {
8488
+ require_approval: string[];
8489
+ } | {
7843
8490
  enable: string[];
8491
+ require_approval?: string[] | undefined;
7844
8492
  } | {
7845
8493
  disable: string[];
8494
+ require_approval?: string[] | undefined;
7846
8495
  } | {
7847
8496
  tags: {
7848
8497
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7849
8498
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8499
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7850
8500
  };
8501
+ require_approval?: string[] | undefined;
7851
8502
  }> | undefined;
7852
8503
  toolkits?: {
7853
8504
  enable: string[];
8505
+ require_approval?: string[] | undefined;
7854
8506
  } | {
7855
8507
  disable: string[];
8508
+ require_approval?: string[] | undefined;
8509
+ } | {
8510
+ require_approval: string[];
7856
8511
  } | undefined;
7857
8512
  }>;
7858
8513
  }, "strip", z$1.ZodTypeAny, {
@@ -7865,21 +8520,32 @@ declare const SessionConfigSchema: z$1.ZodObject<{
7865
8520
  tags?: {
7866
8521
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7867
8522
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8523
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7868
8524
  } | undefined;
7869
8525
  tools?: Record<string, {
8526
+ require_approval: string[];
8527
+ } | {
7870
8528
  enable: string[];
8529
+ require_approval?: string[] | undefined;
7871
8530
  } | {
7872
8531
  disable: string[];
8532
+ require_approval?: string[] | undefined;
7873
8533
  } | {
7874
8534
  tags: {
7875
8535
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7876
8536
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8537
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7877
8538
  };
8539
+ require_approval?: string[] | undefined;
7878
8540
  }> | undefined;
7879
8541
  toolkits?: {
7880
8542
  enable: string[];
8543
+ require_approval?: string[] | undefined;
7881
8544
  } | {
7882
8545
  disable: string[];
8546
+ require_approval?: string[] | undefined;
8547
+ } | {
8548
+ require_approval: string[];
7883
8549
  } | undefined;
7884
8550
  };
7885
8551
  archived: boolean;
@@ -7893,21 +8559,32 @@ declare const SessionConfigSchema: z$1.ZodObject<{
7893
8559
  tags?: {
7894
8560
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7895
8561
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8562
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7896
8563
  } | undefined;
7897
8564
  tools?: Record<string, {
8565
+ require_approval: string[];
8566
+ } | {
7898
8567
  enable: string[];
8568
+ require_approval?: string[] | undefined;
7899
8569
  } | {
7900
8570
  disable: string[];
8571
+ require_approval?: string[] | undefined;
7901
8572
  } | {
7902
8573
  tags: {
7903
8574
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7904
8575
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
8576
+ require_approval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
7905
8577
  };
8578
+ require_approval?: string[] | undefined;
7906
8579
  }> | undefined;
7907
8580
  toolkits?: {
7908
8581
  enable: string[];
8582
+ require_approval?: string[] | undefined;
7909
8583
  } | {
7910
8584
  disable: string[];
8585
+ require_approval?: string[] | undefined;
8586
+ } | {
8587
+ require_approval: string[];
7911
8588
  } | undefined;
7912
8589
  };
7913
8590
  archived: boolean;
@@ -7928,7 +8605,7 @@ type SessionConfig = z$1.infer<typeof SessionConfigSchema>;
7928
8605
  *
7929
8606
  * @example
7930
8607
  * ```typescript
7931
- * const { items } = await composio.sessionConfigs.list({ search: 'support' });
8608
+ * const { items } = await composio.sessionConfigs.list();
7932
8609
  * const sessionConfig = await composio.sessionConfigs.get(items[0].id);
7933
8610
  * const session = await composio.sessions.create('user_123', {
7934
8611
  * experimental: { sessionConfigId: sessionConfig.id },
@@ -7946,7 +8623,8 @@ declare class SessionConfigs {
7946
8623
  *
7947
8624
  * Requires Session configs to be enabled for the project.
7948
8625
  *
7949
- * @param {SessionConfigListParams} [params] - `search`, `archived`, `limit` and `cursor`
8626
+ * @param {SessionConfigListParams} [params] - `archived`, `limit` and `cursor`; the
8627
+ * deprecated `search` is ignored
7950
8628
  * @returns {Promise<SessionConfigListResponse>} Config summaries and the next cursor
7951
8629
  * @throws {ValidationError} If the params fail validation
7952
8630
  *
@@ -8946,4 +9624,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
8946
9624
  flush(): Promise<void>;
8947
9625
  }
8948
9626
  //#endregion
8949
- export { WebhookEndpointListItemSchema as $, WebhookRequestLike as $n, ToolkitListGrantContextsParamsSchema as $r, UsageOrderBySchema as $t, LogSearchFilterSchema as A, TriggerStatusEnum as An, ToolKitListResponse as Ar, CustomToolkitAuthScheme as At, ToolExecutionLogLevelSchema as B, TriggersTypeListResponseSchema as Bn, ToolkitCategory as Br, CustomToolkitUpsertResponse as Bt, SessionConfigSummarySchema as C, TriggerInstanceManageUpdateParamsSchema as Cn, CreateAuthConfigParamsSchema as Cr, WebhookSubscriptionSetParamsSchema as Ct, LogSearchFilterFieldSchema as D, TriggerInstanceUpsertParamsSchema as Dn, CreateCustomAuthConfigParamsSchema as Dr, MCP as Dt, LogSearchFilterField as E, TriggerInstanceUpsertParams as En, CreateComposioManagedAuthConfigParamsSchema as Er, WebhookVersionSchema as Et, LogSearchTimeRange as F, TriggerType as Fn, ToolkitAuthConfigDetailsSchema as Fr, CustomToolkitSyncParamsSchema as Ft, ToolExecutionLogStatusSchema as G, WebhookPayload as Gn, ToolkitChangelogResponseSchema as Gr, UsageBreakdownParams as Gt, ToolExecutionLogMetadataSchema as H, VerifyWebhookParams as Hn, ToolkitChangelogItem as Hr, Usage as Ht, LogSearchTimeRangeSchema as I, TriggerTypeSchema as In, ToolkitAuthField as Ir, CustomToolkitSyncResponse as It, Webhooks as J, WebhookPayloadV1Schema as Jn, ToolkitGetManyParams as Jr, UsageBreakdownResponseSchema as Jt, WebhookEndpoints as K, WebhookPayloadSchema as Kn, ToolkitConditionalScope as Kr, UsageBreakdownParamsSchema as Kt, ToolExecutionLog as L, TriggersTypeListParams as Ln, ToolkitAuthFieldSchema as Lr, CustomToolkitSyncResponseSchema as Lt, LogSearchParamsSchema as M, TriggerStatuses as Mn, ToolKitMeta as Mr, CustomToolkitDeleteResponse as Mt, LogSearchResponse as N, TriggerSubscribeParamSchema as Nn, ToolKitMetaSchema as Nr, CustomToolkitDeleteResponseSchema as Nt, LogSearchFilterOperator as O, TriggerInstanceUpsertResponse as On, ToolKitItem as Or, Experimental as Ot, LogSearchResponseSchema as P, TriggerSubscribeParams as Pn, ToolkitAuthConfigDetails as Pr, CustomToolkitSyncParams as Pt, WebhookEndpointListItem as Q, WebhookPayloadV3Schema as Qn, ToolkitListGrantContextsParams as Qr, UsageFiltersSchema as Qt, ToolExecutionLogDetail as R, TriggersTypeListParamsSchema as Rn, ToolkitAuthFieldsResponse as Rr, CustomToolkitUpsertParams as Rt, SessionConfigSummary as S, TriggerInstanceManageUpdateParams as Sn, CreateAuthConfigParams as Sr, WebhookSubscriptionSetParams as St, LogSearchFilter as T, TriggerInstanceManageUpdateResponseSchema as Tn, CreateAuthConfigResponseSchema as Tr, WebhookSubscriptionUpdateParamsSchema as Tt, ToolExecutionLogParentSchema as U, VerifyWebhookParamsSchema as Un, ToolkitChangelogItemSchema as Ur, UsageBreakdownGroup as Ut, ToolExecutionLogMetadata as V, TriggersTypeRetrieveResponse as Vn, ToolkitCategorySchema as Vr, CustomToolkitUpsertResponseSchema as Vt, ToolExecutionLogSchema as W, VerifyWebhookResult as Wn, ToolkitChangelogResponse as Wr, UsageBreakdownGroupSchema as Wt, WebhookEndpointCreateParams as X, WebhookPayloadV2Schema as Xn, ToolkitGrantContextDimension as Xr, UsageEntitySummarySchema as Xt, WebhookEndpoint as Y, WebhookPayloadV2 as Yn, ToolkitGetManySlugsSchema as Yr, UsageEntitySummary as Yt, WebhookEndpointCreateParamsSchema as Z, WebhookPayloadV3 as Zn, ToolkitGrantContextDimensionSchema as Zr, UsageFilters as Zt, SessionConfigListResponse as _, ToolkitsGetManyParamsSchema as _i, TriggerInstanceListActiveResponseItem as _n, AuthCustomConfigUpdateParamsSchema as _r, WebhookSubscriptionListResponse as _t, ComposioLogger as a, ToolkitRecommendScopesParams as ai, DefaultWebhookSubscriptionEvents as an, AuthConfigCreationToolAccessConfigSchema as ar, WebhookEndpointReplaceParamsSchema as at, SessionConfigPolicySchema as b, TriggerInstanceManageDeleteResponse as bn, AuthSchemeType as br, WebhookSubscriptionRotateSecretResponseSchema as bt, Keyring as c, ToolkitRecommendScopesResponseSchema as ci, ParseWebhookOptions as cn, AuthConfigListResponse as cr, WebhookEndpointUpdateParamsSchema as ct, KeyringTransferKeysResponse as d, ToolkitRetrieveResponse as di, TriggerData as dn, AuthConfigRetrieveResponseSchema as dr, WebhookSubscriptionEventType as dt, ToolkitListGrantContextsResponse as ei, UsageOrderDirectionSchema as en, WebhookSubscription as er, WebhookEndpointListParams as et, KeyringTransferKeysResponseSchema as f, ToolkitRetrieveResponseSchema as fi, TriggerEvent as fn, AuthConfigToolAccessConfigSchema as fr, WebhookSubscriptionEventTypeSchema as ft, SessionConfigListParamsSchema as g, ToolkitVersionChangelogSchema as gi, TriggerInstanceListActiveResponse as gn, AuthConfigUpdateParamsSchema as gr, WebhookSubscriptionListParamsSchema as gt, SessionConfigListParams as h, ToolkitVersionChangelog as hi, TriggerInstanceListActiveParamsSchema as hn, AuthConfigUpdateParams as hr, WebhookSubscriptionListParams as ht, OpenAIProvider as i, ToolkitMangedByEnumSchema as ii, UsageSummaryResponseSchema as in, WebhookVersions as ir, WebhookEndpointReplaceParams as it, LogSearchParams as j, TriggerStatusType as jn, ToolKitListResponseSchema as jr, CustomToolkitAuthSchemeSchema as jt, LogSearchFilterOperatorSchema as k, TriggerInstanceUpsertResponseSchema as kn, ToolKitItemSchema as kr, CustomToolkits as kt, KeyringTransferKey as l, ToolkitRetrieveCategoriesResponse as li, SetWebhookSubscriptionParams as ln, AuthConfigListResponseSchema as lr, WebhookSubscriptionDeleteResponse as lt, SessionConfig as m, ToolkitSortByEnumSchema as mi, TriggerInstanceListActiveParams as mn, AuthConfigTypes as mr, WebhookSubscriptionEventTypesResponseSchema as mt, ComposioConfig as n, ToolkitListParams as ni, UsageSummaryParamsSchema as nn, WebhookTriggerPayloadV3Schema as nr, WebhookEndpointListResponse as nt, LogLevel as o, ToolkitRecommendScopesParamsSchema as oi, IncomingTriggerPayload as on, AuthConfigListParams as or, WebhookEndpointSchema as ot, SessionConfigs as p, ToolkitSortByEnum as pi, TriggerEventData as pn, AuthConfigType as pr, WebhookSubscriptionEventTypesResponse as pt, WebhookSubscriptions as q, WebhookPayloadV1 as qn, ToolkitConditionalScopeSchema as qr, UsageBreakdownResponse as qt, Sessions as r, ToolkitMangedByEnum as ri, UsageSummaryResponse as rn, WebhookVersion as rr, WebhookEndpointListResponseSchema as rt, logger as s, ToolkitRecommendScopesResponse as si, IncomingTriggerPayloadSchema as sn, AuthConfigListParamsSchema as sr, WebhookEndpointUpdateParams as st, Composio$1 as t, ToolkitListGrantContextsResponseSchema as ti, UsageSummaryParams as tn, WebhookTriggerPayloadV3 as tr, WebhookEndpointListParamsSchema as tt, KeyringTransferKeySchema as u, ToolkitRetrieveCategoriesResponseSchema as ui, SetWebhookSubscriptionParamsSchema as un, AuthConfigRetrieveResponse as ur, WebhookSubscriptionDeleteResponseSchema as ut, SessionConfigListResponseSchema as v, ToolkitsListParamsSchema as vi, TriggerInstanceListActiveResponseItemSchema as vn, AuthDefaultConfigUpdateParamsSchema as vr, WebhookSubscriptionListResponseSchema as vt, Logs as w, TriggerInstanceManageUpdateResponse as wn, CreateAuthConfigResponse as wr, WebhookSubscriptionUpdateParams as wt, SessionConfigSchema as x, TriggerInstanceManageDeleteResponseSchema as xn, AuthSchemeTypes as xr, WebhookSubscriptionSchema as xt, SessionConfigPolicy as y, TriggerInstanceListActiveResponseSchema as yn, AuthSchemeEnum as yr, WebhookSubscriptionRotateSecretResponse as yt, ToolExecutionLogDetailSchema as z, TriggersTypeListResponse as zn, ToolkitAuthFieldsResponseSchema as zr, CustomToolkitUpsertParamsSchema as zt };
9627
+ 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 };