@composio/core 0.18.0 → 0.19.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 (62) hide show
  1. package/dist/{CustomTool-C4tv-GL1.mjs → CustomTool-BMlZfJVz.mjs} +16 -6
  2. package/dist/{CustomTool-BKhHv2hJ.d.mts → CustomTool-CB5vm1Jc.d.mts} +1 -1
  3. package/dist/{FileModifierErrors-B8V8_3VE.mjs → FileModifierErrors-BqFmpRsm.mjs} +1 -1
  4. package/dist/{FileToolModifier.utils.neutral-D_YkHwZP.mjs → FileToolModifier.utils.neutral-DWFpnsj2.mjs} +4 -2
  5. package/dist/{SsrfErrors-DNJt57GL.mjs → SsrfErrors-C91YhASE.mjs} +137 -13
  6. package/dist/{Telemetry-CBtSnWrm.mjs → Telemetry-HlftxMx6.mjs} +2 -34
  7. package/dist/{cancellation-jUVItfHw.mjs → cancellation-CXpfmiVo.mjs} +7 -5
  8. package/dist/{composio-CldtZUyC.d.mts → composio-DLGaeN70.d.mts} +333 -32
  9. package/dist/{customTool.types-DC5fPOOi.d.mts → customTool.types-BAmEh3MB.d.mts} +131 -38
  10. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +2 -2
  11. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +3 -13
  12. package/dist/docs/reference/sdk-reference/typescript/session.mdx +50 -6
  13. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +4 -4
  14. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +33 -23
  15. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +3 -2
  16. package/dist/{errors-DyZt79fi.mjs → errors-BuEKehbI.mjs} +23 -3
  17. package/dist/experimental/index.d.mts +2 -2
  18. package/dist/experimental/index.mjs +1 -1
  19. package/dist/{fileUtils.node-BwpUOF0s.mjs → fileUtils.node-L7XD8UPr.mjs} +11 -9
  20. package/dist/index.d.mts +164 -104
  21. package/dist/index.mjs +382 -153
  22. package/dist/models/Files.node.d.mts +2 -3
  23. package/dist/models/Files.node.mjs +2 -2
  24. package/dist/models/Files.workerd.d.mts +2 -3
  25. package/dist/platform/node.d.mts +2 -3
  26. package/dist/platform/workerd.d.mts +2 -3
  27. package/dist/{sensitiveFileUploadPaths-B0w8dqpv.mjs → sensitiveFileUploadPaths-B6pBt9lO.mjs} +10 -7
  28. package/dist/{ssrfGuard.node-DlxO8uzr.mjs → ssrfGuard.node-B9xQB4za.mjs} +197 -30
  29. package/dist/{types-BgsRW-XH.d.mts → types-CxLPO0Xq.d.mts} +2 -2
  30. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -4
  31. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -4
  32. package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -4
  33. package/dist/utils/modifiers/FileToolModifier.node.mjs +6 -6
  34. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +3 -4
  35. package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
  36. package/dist/utils/ssrfGuard.node.d.mts +19 -10
  37. package/dist/utils/ssrfGuard.node.mjs +1 -1
  38. package/dist/utils/ssrfGuard.workerd.d.mts +12 -4
  39. package/dist/utils/ssrfGuard.workerd.mjs +2 -2
  40. package/package.json +26 -8
  41. package/src/errors/ToolErrors.ts +24 -0
  42. package/src/index.ts +4 -0
  43. package/src/models/CustomTool.ts +41 -6
  44. package/src/models/MCP.ts +29 -15
  45. package/src/models/RemoteFile.ts +54 -36
  46. package/src/models/ToolRouter.ts +1 -0
  47. package/src/models/ToolRouterSession.ts +115 -13
  48. package/src/models/Toolkits.ts +1 -2
  49. package/src/models/Tools.ts +55 -25
  50. package/src/models/Triggers.ts +22 -2
  51. package/src/services/pusher/Pusher.ts +29 -10
  52. package/src/telemetry/redact.ts +133 -6
  53. package/src/types/toolRouter.types.ts +54 -3
  54. package/src/types/toolkit.types.ts +17 -0
  55. package/src/utils/fileUtils.node.ts +10 -2
  56. package/src/utils/jsonSchema.ts +4 -1
  57. package/src/utils/logger.ts +6 -6
  58. package/src/utils/pinnedDispatcher.node.ts +109 -13
  59. package/src/utils/sdk.ts +1 -1
  60. package/src/utils/ssrfGuard.node.ts +153 -27
  61. package/src/utils/ssrfGuard.workerd.ts +15 -1
  62. package/src/utils/transformers/toolkits.ts +79 -2
@@ -1,13 +1,13 @@
1
- import { $i as ToolExecuteResponse, D as Session, Dn as UpdateConnectedAccountAclParams, Er as McpServerGetResponse, Fr as ExecuteToolFnOptions, Ht as ConnectionRequest, Ji as Tool, M as SessionWithoutMcp, Mn as BaseComposioProvider, Ni as ProviderOptions, Nn as BaseNonAgenticProvider, Pi as SessionExecuteMetaModifiers, Vt as ComposioRequestOptions, Yi as ToolExecuteMetaParams, Zi as ToolExecuteParams, an as ConnectedAccountRefreshOptions, bn as CreateConnectedAccountOptions, ca as ToolRetrievalOptions, en as ConnectedAccountListParams, f as CustomToolkit, gn as CreateConnectedAccountLinkOptions, ha as ToolkitVersionParam, ji as ExecuteToolModifiers, jr as McpUrlResponse, kn as UpdateConnectedAccountParams, na as ToolListParams, nn as ConnectedAccountListResponse, o as CustomTool, oa as ToolProxyParams, q as ToolRouterSessionDeleteResponse, qi as SchemaModifierOptions, sn as ConnectedAccountRetrieveResponse, ta as ToolList, z as ToolRouterCreateSessionConfig, zr as ToolCallSession } from "./customTool.types-DC5fPOOi.mjs";
1
+ import { $i as Tool, Br as ExecuteToolFnOptions, D as Session, Ii as ExecuteToolModifiers, Ir as McpUrlResponse, J as ToolRouterSessionDeleteResponse, Kt as ComposioRequestOptions, Ln as BaseComposioProvider, M as SessionWithoutMcp, Mn as UpdateConnectedAccountAclParams, Pn as UpdateConnectedAccountParams, Qi as SchemaModifierOptions, Ri as ProviderOptions, Rn as BaseNonAgenticProvider, Tn as CreateConnectedAccountOptions, Wr as ToolCallSession, an as ConnectedAccountListParams, ba as ToolkitVersionParam, da as ToolProxyParams, ea as ToolExecuteMetaParams, f as CustomToolkit, fn as ConnectedAccountRetrieveResponse, ia as ToolExecuteResponse, jr as McpServerGetResponse, na as ToolExecuteParams, o as CustomTool, oa as ToolList, pa as ToolRetrievalOptions, qt as ConnectionRequest, sa as ToolListParams, sn as ConnectedAccountListResponse, un as ConnectedAccountRefreshOptions, xn as CreateConnectedAccountLinkOptions, z as ToolRouterCreateSessionConfig, zi as SessionExecuteMetaModifiers } from "./customTool.types-BAmEh3MB.mjs";
2
2
  import ComposioClient, { Composio } from "@composio/client";
3
3
  import z, { z as z$1 } from "zod/v3";
4
- import { OpenAI } from "openai";
5
4
  import { Files } from "#files";
6
5
  import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
7
6
  import { SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
8
7
  import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
9
8
  import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
10
9
  import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
10
+ import { OpenAI } from "openai";
11
11
  import { Stream } from "openai/streaming";
12
12
  //#region src/models/Tools.d.ts
13
13
  type ToolRouterSessionExecuteOptions = {
@@ -385,6 +385,10 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
385
385
  *
386
386
  * @example Execute with a specific version (recommended for production)
387
387
  * ```typescript
388
+ * // Look up the tool's current version once, then pin that string in your code or config
389
+ * const { version } = await composio.tools.getRawComposioToolBySlug('GITHUB_GET_REPOS');
390
+ * console.log(version); // e.g. '20250909_00'
391
+ *
388
392
  * const result = await composio.tools.execute('GITHUB_GET_REPOS', {
389
393
  * userId: 'default',
390
394
  * version: '20250909_00',
@@ -467,45 +471,60 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
467
471
  */
468
472
  getToolsEnum(requestOptions?: ComposioRequestOptions): Promise<ToolRetrieveEnumResponse>;
469
473
  /**
470
- * Fetches the input parameters for a given tool.
474
+ * Generates arguments for a tool from a natural-language description of the task.
471
475
  *
472
- * This method is used to get the input parameters for a tool before executing it.
476
+ * Composio uses an LLM to fill the tool's input parameters from `text`. Review the
477
+ * generated arguments before passing them to `tools.execute()`.
473
478
  *
474
- * @param {string} slug - The ID of the tool to find input for
475
- * @param {ToolGetInputParams} body - The parameters to be passed to the tool
476
- * @returns {Promise<ToolGetInputResponse>} The input parameters schema for the specified tool
479
+ * @param {string} slug - The slug of the tool to generate arguments for
480
+ * @param {ToolGetInputParams} body - The generation request
481
+ * @param {string} body.text - What you want the tool to do, in natural language
482
+ * @param {string} [body.custom_description] - Extra context about the tool for the LLM
483
+ * @param {string} [body.system_prompt] - System prompt that steers the LLM
484
+ * @param {string} [body.version] - Tool version to generate arguments for
485
+ * @returns {Promise<ToolGetInputResponse>} The generated `arguments`, or an `error` when generation fails
477
486
  *
478
487
  * @example
479
488
  * ```typescript
480
- * // Get input parameters for a specific tool
481
- * const inputParams = await composio.tools.getInput('GITHUB_CREATE_ISSUE', {
482
- * userId: 'default'
489
+ * const { arguments: args, error } = await composio.tools.getInput('GITHUB_CREATE_ISSUE', {
490
+ * text: 'Open an issue in composiohq/composio titled "Docs typo" describing the broken link',
491
+ * version: '20250909_00',
483
492
  * });
484
- * console.log(inputParams.schema);
493
+ * if (error) throw new Error(error);
494
+ * console.log(args); // { owner: 'composiohq', repo: 'composio', title: 'Docs typo', ... }
485
495
  * ```
486
496
  */
487
497
  getInput(slug: string, body: ToolGetInputParams, requestOptions?: ComposioRequestOptions): Promise<ToolGetInputResponse>;
488
498
  /**
489
- * Proxies a custom request to a toolkit/integration.
499
+ * Sends an HTTP request to a toolkit's API, authenticated as a connected account.
490
500
  *
491
- * This method allows sending custom requests to a specific toolkit or integration
492
- * when you need more flexibility than the standard tool execution methods provide.
501
+ * Use it to call an endpoint that no predefined tool covers. Composio injects the
502
+ * connected account's credentials on the server side.
493
503
  *
494
- * @param {ToolProxyParams} body - The parameters for the proxy request including toolkit slug and custom data
495
- * @returns {Promise<ToolProxyResponse>} The response from the proxied request
504
+ * A relative `endpoint` is appended to the toolkit's base URL, and that base URL can
505
+ * already include a path. Google Calendar's base URL is
506
+ * `https://www.googleapis.com/calendar/v3`, so pass `/users/me/calendarList`, not
507
+ * `/calendar/v3/users/me/calendarList` (which resolves to `/calendar/v3/calendar/v3/...`
508
+ * and returns a 404 from Google). An absolute URL on the same domain is sent as-is.
509
+ *
510
+ * @param {ToolProxyParams} body - The proxy request
511
+ * @param {string} body.endpoint - Path relative to the toolkit's base URL, or an absolute URL
512
+ * @param {'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'} body.method - HTTP method
513
+ * @param {string} [body.connectedAccountId] - The connected account to authenticate as
514
+ * @param {unknown} [body.body] - JSON request body
515
+ * @param {Array<{ in: 'query' | 'header'; name: string; value: string | number }>} [body.parameters] - Extra query parameters or headers
516
+ * @returns {Promise<ToolProxyResponse>} The upstream status, headers, and parsed body
496
517
  *
497
518
  * @example
498
519
  * ```typescript
499
- * // Send a custom request to a toolkit
500
- * const response = await composio.tools.proxyExecute({
501
- * toolkitSlug: 'github',
502
- * userId: 'default',
503
- * data: {
504
- * endpoint: '/repos/owner/repo/issues',
505
- * method: 'GET'
506
- * }
520
+ * // Google Calendar's base URL is https://www.googleapis.com/calendar/v3
521
+ * const { status, data } = await composio.tools.proxyExecute({
522
+ * endpoint: '/users/me/calendarList',
523
+ * method: 'GET',
524
+ * connectedAccountId: 'ca_...',
525
+ * parameters: [{ in: 'query', name: 'maxResults', value: 10 }],
507
526
  * });
508
- * console.log(response.data);
527
+ * console.log(status, data);
509
528
  * ```
510
529
  */
511
530
  proxyExecute(body: ToolProxyParams, requestOptions?: ComposioRequestOptions): Promise<ToolProxyResponse>;
@@ -793,6 +812,18 @@ declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
793
812
  name: z$1.ZodString;
794
813
  type: z$1.ZodString;
795
814
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
815
+ /**
816
+ * Whether this field holds a secret/credential value. Clients use it to
817
+ * decide whether to mask the input when collecting the value in their own
818
+ * UI. The property is absent when the API omits the flag for the field.
819
+ */
820
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
821
+ /**
822
+ * The legacy template name the API reports for this field, mapped from
823
+ * `legacy_template_name`. The API declares it as an optional string without
824
+ * further documenting its semantics.
825
+ */
826
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
796
827
  }, "strip", z$1.ZodTypeAny, {
797
828
  name: string;
798
829
  type: string;
@@ -800,6 +831,8 @@ declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
800
831
  required: boolean;
801
832
  displayName: string;
802
833
  default?: string | null | undefined;
834
+ isSecret?: boolean | undefined;
835
+ legacyTemplateName?: string | undefined;
803
836
  }, {
804
837
  name: string;
805
838
  type: string;
@@ -807,10 +840,17 @@ declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
807
840
  required: boolean;
808
841
  displayName: string;
809
842
  default?: string | null | undefined;
843
+ isSecret?: boolean | undefined;
844
+ legacyTemplateName?: string | undefined;
810
845
  }>;
811
846
  declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
812
847
  name: z$1.ZodString;
813
848
  mode: z$1.ZodString;
849
+ /**
850
+ * URL to a page where users can obtain or configure credentials for this
851
+ * authentication method, e.g. `https://github.com/settings/tokens`.
852
+ */
853
+ authHintUrl: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
814
854
  fields: z$1.ZodObject<{
815
855
  authConfigCreation: z$1.ZodObject<{
816
856
  optional: z$1.ZodArray<z$1.ZodObject<{
@@ -820,6 +860,18 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
820
860
  name: z$1.ZodString;
821
861
  type: z$1.ZodString;
822
862
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
863
+ /**
864
+ * Whether this field holds a secret/credential value. Clients use it to
865
+ * decide whether to mask the input when collecting the value in their own
866
+ * UI. The property is absent when the API omits the flag for the field.
867
+ */
868
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
869
+ /**
870
+ * The legacy template name the API reports for this field, mapped from
871
+ * `legacy_template_name`. The API declares it as an optional string without
872
+ * further documenting its semantics.
873
+ */
874
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
823
875
  }, "strip", z$1.ZodTypeAny, {
824
876
  name: string;
825
877
  type: string;
@@ -827,6 +879,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
827
879
  required: boolean;
828
880
  displayName: string;
829
881
  default?: string | null | undefined;
882
+ isSecret?: boolean | undefined;
883
+ legacyTemplateName?: string | undefined;
830
884
  }, {
831
885
  name: string;
832
886
  type: string;
@@ -834,6 +888,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
834
888
  required: boolean;
835
889
  displayName: string;
836
890
  default?: string | null | undefined;
891
+ isSecret?: boolean | undefined;
892
+ legacyTemplateName?: string | undefined;
837
893
  }>, "many">;
838
894
  required: z$1.ZodArray<z$1.ZodObject<{
839
895
  description: z$1.ZodString;
@@ -842,6 +898,18 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
842
898
  name: z$1.ZodString;
843
899
  type: z$1.ZodString;
844
900
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
901
+ /**
902
+ * Whether this field holds a secret/credential value. Clients use it to
903
+ * decide whether to mask the input when collecting the value in their own
904
+ * UI. The property is absent when the API omits the flag for the field.
905
+ */
906
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
907
+ /**
908
+ * The legacy template name the API reports for this field, mapped from
909
+ * `legacy_template_name`. The API declares it as an optional string without
910
+ * further documenting its semantics.
911
+ */
912
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
845
913
  }, "strip", z$1.ZodTypeAny, {
846
914
  name: string;
847
915
  type: string;
@@ -849,6 +917,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
849
917
  required: boolean;
850
918
  displayName: string;
851
919
  default?: string | null | undefined;
920
+ isSecret?: boolean | undefined;
921
+ legacyTemplateName?: string | undefined;
852
922
  }, {
853
923
  name: string;
854
924
  type: string;
@@ -856,6 +926,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
856
926
  required: boolean;
857
927
  displayName: string;
858
928
  default?: string | null | undefined;
929
+ isSecret?: boolean | undefined;
930
+ legacyTemplateName?: string | undefined;
859
931
  }>, "many">;
860
932
  }, "strip", z$1.ZodTypeAny, {
861
933
  required: {
@@ -865,6 +937,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
865
937
  required: boolean;
866
938
  displayName: string;
867
939
  default?: string | null | undefined;
940
+ isSecret?: boolean | undefined;
941
+ legacyTemplateName?: string | undefined;
868
942
  }[];
869
943
  optional: {
870
944
  name: string;
@@ -873,6 +947,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
873
947
  required: boolean;
874
948
  displayName: string;
875
949
  default?: string | null | undefined;
950
+ isSecret?: boolean | undefined;
951
+ legacyTemplateName?: string | undefined;
876
952
  }[];
877
953
  }, {
878
954
  required: {
@@ -882,6 +958,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
882
958
  required: boolean;
883
959
  displayName: string;
884
960
  default?: string | null | undefined;
961
+ isSecret?: boolean | undefined;
962
+ legacyTemplateName?: string | undefined;
885
963
  }[];
886
964
  optional: {
887
965
  name: string;
@@ -890,6 +968,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
890
968
  required: boolean;
891
969
  displayName: string;
892
970
  default?: string | null | undefined;
971
+ isSecret?: boolean | undefined;
972
+ legacyTemplateName?: string | undefined;
893
973
  }[];
894
974
  }>;
895
975
  connectedAccountInitiation: z$1.ZodObject<{
@@ -900,6 +980,18 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
900
980
  name: z$1.ZodString;
901
981
  type: z$1.ZodString;
902
982
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
983
+ /**
984
+ * Whether this field holds a secret/credential value. Clients use it to
985
+ * decide whether to mask the input when collecting the value in their own
986
+ * UI. The property is absent when the API omits the flag for the field.
987
+ */
988
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
989
+ /**
990
+ * The legacy template name the API reports for this field, mapped from
991
+ * `legacy_template_name`. The API declares it as an optional string without
992
+ * further documenting its semantics.
993
+ */
994
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
903
995
  }, "strip", z$1.ZodTypeAny, {
904
996
  name: string;
905
997
  type: string;
@@ -907,6 +999,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
907
999
  required: boolean;
908
1000
  displayName: string;
909
1001
  default?: string | null | undefined;
1002
+ isSecret?: boolean | undefined;
1003
+ legacyTemplateName?: string | undefined;
910
1004
  }, {
911
1005
  name: string;
912
1006
  type: string;
@@ -914,6 +1008,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
914
1008
  required: boolean;
915
1009
  displayName: string;
916
1010
  default?: string | null | undefined;
1011
+ isSecret?: boolean | undefined;
1012
+ legacyTemplateName?: string | undefined;
917
1013
  }>, "many">;
918
1014
  required: z$1.ZodArray<z$1.ZodObject<{
919
1015
  description: z$1.ZodString;
@@ -922,6 +1018,18 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
922
1018
  name: z$1.ZodString;
923
1019
  type: z$1.ZodString;
924
1020
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1021
+ /**
1022
+ * Whether this field holds a secret/credential value. Clients use it to
1023
+ * decide whether to mask the input when collecting the value in their own
1024
+ * UI. The property is absent when the API omits the flag for the field.
1025
+ */
1026
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
1027
+ /**
1028
+ * The legacy template name the API reports for this field, mapped from
1029
+ * `legacy_template_name`. The API declares it as an optional string without
1030
+ * further documenting its semantics.
1031
+ */
1032
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
925
1033
  }, "strip", z$1.ZodTypeAny, {
926
1034
  name: string;
927
1035
  type: string;
@@ -929,6 +1037,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
929
1037
  required: boolean;
930
1038
  displayName: string;
931
1039
  default?: string | null | undefined;
1040
+ isSecret?: boolean | undefined;
1041
+ legacyTemplateName?: string | undefined;
932
1042
  }, {
933
1043
  name: string;
934
1044
  type: string;
@@ -936,6 +1046,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
936
1046
  required: boolean;
937
1047
  displayName: string;
938
1048
  default?: string | null | undefined;
1049
+ isSecret?: boolean | undefined;
1050
+ legacyTemplateName?: string | undefined;
939
1051
  }>, "many">;
940
1052
  }, "strip", z$1.ZodTypeAny, {
941
1053
  required: {
@@ -945,6 +1057,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
945
1057
  required: boolean;
946
1058
  displayName: string;
947
1059
  default?: string | null | undefined;
1060
+ isSecret?: boolean | undefined;
1061
+ legacyTemplateName?: string | undefined;
948
1062
  }[];
949
1063
  optional: {
950
1064
  name: string;
@@ -953,6 +1067,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
953
1067
  required: boolean;
954
1068
  displayName: string;
955
1069
  default?: string | null | undefined;
1070
+ isSecret?: boolean | undefined;
1071
+ legacyTemplateName?: string | undefined;
956
1072
  }[];
957
1073
  }, {
958
1074
  required: {
@@ -962,6 +1078,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
962
1078
  required: boolean;
963
1079
  displayName: string;
964
1080
  default?: string | null | undefined;
1081
+ isSecret?: boolean | undefined;
1082
+ legacyTemplateName?: string | undefined;
965
1083
  }[];
966
1084
  optional: {
967
1085
  name: string;
@@ -970,6 +1088,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
970
1088
  required: boolean;
971
1089
  displayName: string;
972
1090
  default?: string | null | undefined;
1091
+ isSecret?: boolean | undefined;
1092
+ legacyTemplateName?: string | undefined;
973
1093
  }[];
974
1094
  }>;
975
1095
  }, "strip", z$1.ZodTypeAny, {
@@ -981,6 +1101,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
981
1101
  required: boolean;
982
1102
  displayName: string;
983
1103
  default?: string | null | undefined;
1104
+ isSecret?: boolean | undefined;
1105
+ legacyTemplateName?: string | undefined;
984
1106
  }[];
985
1107
  optional: {
986
1108
  name: string;
@@ -989,6 +1111,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
989
1111
  required: boolean;
990
1112
  displayName: string;
991
1113
  default?: string | null | undefined;
1114
+ isSecret?: boolean | undefined;
1115
+ legacyTemplateName?: string | undefined;
992
1116
  }[];
993
1117
  };
994
1118
  connectedAccountInitiation: {
@@ -999,6 +1123,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
999
1123
  required: boolean;
1000
1124
  displayName: string;
1001
1125
  default?: string | null | undefined;
1126
+ isSecret?: boolean | undefined;
1127
+ legacyTemplateName?: string | undefined;
1002
1128
  }[];
1003
1129
  optional: {
1004
1130
  name: string;
@@ -1007,6 +1133,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1007
1133
  required: boolean;
1008
1134
  displayName: string;
1009
1135
  default?: string | null | undefined;
1136
+ isSecret?: boolean | undefined;
1137
+ legacyTemplateName?: string | undefined;
1010
1138
  }[];
1011
1139
  };
1012
1140
  }, {
@@ -1018,6 +1146,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1018
1146
  required: boolean;
1019
1147
  displayName: string;
1020
1148
  default?: string | null | undefined;
1149
+ isSecret?: boolean | undefined;
1150
+ legacyTemplateName?: string | undefined;
1021
1151
  }[];
1022
1152
  optional: {
1023
1153
  name: string;
@@ -1026,6 +1156,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1026
1156
  required: boolean;
1027
1157
  displayName: string;
1028
1158
  default?: string | null | undefined;
1159
+ isSecret?: boolean | undefined;
1160
+ legacyTemplateName?: string | undefined;
1029
1161
  }[];
1030
1162
  };
1031
1163
  connectedAccountInitiation: {
@@ -1036,6 +1168,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1036
1168
  required: boolean;
1037
1169
  displayName: string;
1038
1170
  default?: string | null | undefined;
1171
+ isSecret?: boolean | undefined;
1172
+ legacyTemplateName?: string | undefined;
1039
1173
  }[];
1040
1174
  optional: {
1041
1175
  name: string;
@@ -1044,6 +1178,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1044
1178
  required: boolean;
1045
1179
  displayName: string;
1046
1180
  default?: string | null | undefined;
1181
+ isSecret?: boolean | undefined;
1182
+ legacyTemplateName?: string | undefined;
1047
1183
  }[];
1048
1184
  };
1049
1185
  }>;
@@ -1066,6 +1202,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1066
1202
  required: boolean;
1067
1203
  displayName: string;
1068
1204
  default?: string | null | undefined;
1205
+ isSecret?: boolean | undefined;
1206
+ legacyTemplateName?: string | undefined;
1069
1207
  }[];
1070
1208
  optional: {
1071
1209
  name: string;
@@ -1074,6 +1212,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1074
1212
  required: boolean;
1075
1213
  displayName: string;
1076
1214
  default?: string | null | undefined;
1215
+ isSecret?: boolean | undefined;
1216
+ legacyTemplateName?: string | undefined;
1077
1217
  }[];
1078
1218
  };
1079
1219
  connectedAccountInitiation: {
@@ -1084,6 +1224,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1084
1224
  required: boolean;
1085
1225
  displayName: string;
1086
1226
  default?: string | null | undefined;
1227
+ isSecret?: boolean | undefined;
1228
+ legacyTemplateName?: string | undefined;
1087
1229
  }[];
1088
1230
  optional: {
1089
1231
  name: string;
@@ -1092,9 +1234,12 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1092
1234
  required: boolean;
1093
1235
  displayName: string;
1094
1236
  default?: string | null | undefined;
1237
+ isSecret?: boolean | undefined;
1238
+ legacyTemplateName?: string | undefined;
1095
1239
  }[];
1096
1240
  };
1097
1241
  };
1242
+ authHintUrl?: string | null | undefined;
1098
1243
  proxy?: {
1099
1244
  baseUrl?: string | undefined;
1100
1245
  } | undefined;
@@ -1110,6 +1255,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1110
1255
  required: boolean;
1111
1256
  displayName: string;
1112
1257
  default?: string | null | undefined;
1258
+ isSecret?: boolean | undefined;
1259
+ legacyTemplateName?: string | undefined;
1113
1260
  }[];
1114
1261
  optional: {
1115
1262
  name: string;
@@ -1118,6 +1265,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1118
1265
  required: boolean;
1119
1266
  displayName: string;
1120
1267
  default?: string | null | undefined;
1268
+ isSecret?: boolean | undefined;
1269
+ legacyTemplateName?: string | undefined;
1121
1270
  }[];
1122
1271
  };
1123
1272
  connectedAccountInitiation: {
@@ -1128,6 +1277,8 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1128
1277
  required: boolean;
1129
1278
  displayName: string;
1130
1279
  default?: string | null | undefined;
1280
+ isSecret?: boolean | undefined;
1281
+ legacyTemplateName?: string | undefined;
1131
1282
  }[];
1132
1283
  optional: {
1133
1284
  name: string;
@@ -1136,9 +1287,12 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1136
1287
  required: boolean;
1137
1288
  displayName: string;
1138
1289
  default?: string | null | undefined;
1290
+ isSecret?: boolean | undefined;
1291
+ legacyTemplateName?: string | undefined;
1139
1292
  }[];
1140
1293
  };
1141
1294
  };
1295
+ authHintUrl?: string | null | undefined;
1142
1296
  proxy?: {
1143
1297
  baseUrl?: string | undefined;
1144
1298
  } | undefined;
@@ -1197,6 +1351,11 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1197
1351
  authConfigDetails: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1198
1352
  name: z$1.ZodString;
1199
1353
  mode: z$1.ZodString;
1354
+ /**
1355
+ * URL to a page where users can obtain or configure credentials for this
1356
+ * authentication method, e.g. `https://github.com/settings/tokens`.
1357
+ */
1358
+ authHintUrl: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1200
1359
  fields: z$1.ZodObject<{
1201
1360
  authConfigCreation: z$1.ZodObject<{
1202
1361
  optional: z$1.ZodArray<z$1.ZodObject<{
@@ -1206,6 +1365,18 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1206
1365
  name: z$1.ZodString;
1207
1366
  type: z$1.ZodString;
1208
1367
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1368
+ /**
1369
+ * Whether this field holds a secret/credential value. Clients use it to
1370
+ * decide whether to mask the input when collecting the value in their own
1371
+ * UI. The property is absent when the API omits the flag for the field.
1372
+ */
1373
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
1374
+ /**
1375
+ * The legacy template name the API reports for this field, mapped from
1376
+ * `legacy_template_name`. The API declares it as an optional string without
1377
+ * further documenting its semantics.
1378
+ */
1379
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1209
1380
  }, "strip", z$1.ZodTypeAny, {
1210
1381
  name: string;
1211
1382
  type: string;
@@ -1213,6 +1384,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1213
1384
  required: boolean;
1214
1385
  displayName: string;
1215
1386
  default?: string | null | undefined;
1387
+ isSecret?: boolean | undefined;
1388
+ legacyTemplateName?: string | undefined;
1216
1389
  }, {
1217
1390
  name: string;
1218
1391
  type: string;
@@ -1220,6 +1393,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1220
1393
  required: boolean;
1221
1394
  displayName: string;
1222
1395
  default?: string | null | undefined;
1396
+ isSecret?: boolean | undefined;
1397
+ legacyTemplateName?: string | undefined;
1223
1398
  }>, "many">;
1224
1399
  required: z$1.ZodArray<z$1.ZodObject<{
1225
1400
  description: z$1.ZodString;
@@ -1228,6 +1403,18 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1228
1403
  name: z$1.ZodString;
1229
1404
  type: z$1.ZodString;
1230
1405
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1406
+ /**
1407
+ * Whether this field holds a secret/credential value. Clients use it to
1408
+ * decide whether to mask the input when collecting the value in their own
1409
+ * UI. The property is absent when the API omits the flag for the field.
1410
+ */
1411
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
1412
+ /**
1413
+ * The legacy template name the API reports for this field, mapped from
1414
+ * `legacy_template_name`. The API declares it as an optional string without
1415
+ * further documenting its semantics.
1416
+ */
1417
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1231
1418
  }, "strip", z$1.ZodTypeAny, {
1232
1419
  name: string;
1233
1420
  type: string;
@@ -1235,6 +1422,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1235
1422
  required: boolean;
1236
1423
  displayName: string;
1237
1424
  default?: string | null | undefined;
1425
+ isSecret?: boolean | undefined;
1426
+ legacyTemplateName?: string | undefined;
1238
1427
  }, {
1239
1428
  name: string;
1240
1429
  type: string;
@@ -1242,6 +1431,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1242
1431
  required: boolean;
1243
1432
  displayName: string;
1244
1433
  default?: string | null | undefined;
1434
+ isSecret?: boolean | undefined;
1435
+ legacyTemplateName?: string | undefined;
1245
1436
  }>, "many">;
1246
1437
  }, "strip", z$1.ZodTypeAny, {
1247
1438
  required: {
@@ -1251,6 +1442,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1251
1442
  required: boolean;
1252
1443
  displayName: string;
1253
1444
  default?: string | null | undefined;
1445
+ isSecret?: boolean | undefined;
1446
+ legacyTemplateName?: string | undefined;
1254
1447
  }[];
1255
1448
  optional: {
1256
1449
  name: string;
@@ -1259,6 +1452,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1259
1452
  required: boolean;
1260
1453
  displayName: string;
1261
1454
  default?: string | null | undefined;
1455
+ isSecret?: boolean | undefined;
1456
+ legacyTemplateName?: string | undefined;
1262
1457
  }[];
1263
1458
  }, {
1264
1459
  required: {
@@ -1268,6 +1463,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1268
1463
  required: boolean;
1269
1464
  displayName: string;
1270
1465
  default?: string | null | undefined;
1466
+ isSecret?: boolean | undefined;
1467
+ legacyTemplateName?: string | undefined;
1271
1468
  }[];
1272
1469
  optional: {
1273
1470
  name: string;
@@ -1276,6 +1473,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1276
1473
  required: boolean;
1277
1474
  displayName: string;
1278
1475
  default?: string | null | undefined;
1476
+ isSecret?: boolean | undefined;
1477
+ legacyTemplateName?: string | undefined;
1279
1478
  }[];
1280
1479
  }>;
1281
1480
  connectedAccountInitiation: z$1.ZodObject<{
@@ -1286,6 +1485,18 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1286
1485
  name: z$1.ZodString;
1287
1486
  type: z$1.ZodString;
1288
1487
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1488
+ /**
1489
+ * Whether this field holds a secret/credential value. Clients use it to
1490
+ * decide whether to mask the input when collecting the value in their own
1491
+ * UI. The property is absent when the API omits the flag for the field.
1492
+ */
1493
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
1494
+ /**
1495
+ * The legacy template name the API reports for this field, mapped from
1496
+ * `legacy_template_name`. The API declares it as an optional string without
1497
+ * further documenting its semantics.
1498
+ */
1499
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1289
1500
  }, "strip", z$1.ZodTypeAny, {
1290
1501
  name: string;
1291
1502
  type: string;
@@ -1293,6 +1504,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1293
1504
  required: boolean;
1294
1505
  displayName: string;
1295
1506
  default?: string | null | undefined;
1507
+ isSecret?: boolean | undefined;
1508
+ legacyTemplateName?: string | undefined;
1296
1509
  }, {
1297
1510
  name: string;
1298
1511
  type: string;
@@ -1300,6 +1513,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1300
1513
  required: boolean;
1301
1514
  displayName: string;
1302
1515
  default?: string | null | undefined;
1516
+ isSecret?: boolean | undefined;
1517
+ legacyTemplateName?: string | undefined;
1303
1518
  }>, "many">;
1304
1519
  required: z$1.ZodArray<z$1.ZodObject<{
1305
1520
  description: z$1.ZodString;
@@ -1308,6 +1523,18 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1308
1523
  name: z$1.ZodString;
1309
1524
  type: z$1.ZodString;
1310
1525
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1526
+ /**
1527
+ * Whether this field holds a secret/credential value. Clients use it to
1528
+ * decide whether to mask the input when collecting the value in their own
1529
+ * UI. The property is absent when the API omits the flag for the field.
1530
+ */
1531
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
1532
+ /**
1533
+ * The legacy template name the API reports for this field, mapped from
1534
+ * `legacy_template_name`. The API declares it as an optional string without
1535
+ * further documenting its semantics.
1536
+ */
1537
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1311
1538
  }, "strip", z$1.ZodTypeAny, {
1312
1539
  name: string;
1313
1540
  type: string;
@@ -1315,6 +1542,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1315
1542
  required: boolean;
1316
1543
  displayName: string;
1317
1544
  default?: string | null | undefined;
1545
+ isSecret?: boolean | undefined;
1546
+ legacyTemplateName?: string | undefined;
1318
1547
  }, {
1319
1548
  name: string;
1320
1549
  type: string;
@@ -1322,6 +1551,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1322
1551
  required: boolean;
1323
1552
  displayName: string;
1324
1553
  default?: string | null | undefined;
1554
+ isSecret?: boolean | undefined;
1555
+ legacyTemplateName?: string | undefined;
1325
1556
  }>, "many">;
1326
1557
  }, "strip", z$1.ZodTypeAny, {
1327
1558
  required: {
@@ -1331,6 +1562,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1331
1562
  required: boolean;
1332
1563
  displayName: string;
1333
1564
  default?: string | null | undefined;
1565
+ isSecret?: boolean | undefined;
1566
+ legacyTemplateName?: string | undefined;
1334
1567
  }[];
1335
1568
  optional: {
1336
1569
  name: string;
@@ -1339,6 +1572,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1339
1572
  required: boolean;
1340
1573
  displayName: string;
1341
1574
  default?: string | null | undefined;
1575
+ isSecret?: boolean | undefined;
1576
+ legacyTemplateName?: string | undefined;
1342
1577
  }[];
1343
1578
  }, {
1344
1579
  required: {
@@ -1348,6 +1583,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1348
1583
  required: boolean;
1349
1584
  displayName: string;
1350
1585
  default?: string | null | undefined;
1586
+ isSecret?: boolean | undefined;
1587
+ legacyTemplateName?: string | undefined;
1351
1588
  }[];
1352
1589
  optional: {
1353
1590
  name: string;
@@ -1356,6 +1593,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1356
1593
  required: boolean;
1357
1594
  displayName: string;
1358
1595
  default?: string | null | undefined;
1596
+ isSecret?: boolean | undefined;
1597
+ legacyTemplateName?: string | undefined;
1359
1598
  }[];
1360
1599
  }>;
1361
1600
  }, "strip", z$1.ZodTypeAny, {
@@ -1367,6 +1606,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1367
1606
  required: boolean;
1368
1607
  displayName: string;
1369
1608
  default?: string | null | undefined;
1609
+ isSecret?: boolean | undefined;
1610
+ legacyTemplateName?: string | undefined;
1370
1611
  }[];
1371
1612
  optional: {
1372
1613
  name: string;
@@ -1375,6 +1616,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1375
1616
  required: boolean;
1376
1617
  displayName: string;
1377
1618
  default?: string | null | undefined;
1619
+ isSecret?: boolean | undefined;
1620
+ legacyTemplateName?: string | undefined;
1378
1621
  }[];
1379
1622
  };
1380
1623
  connectedAccountInitiation: {
@@ -1385,6 +1628,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1385
1628
  required: boolean;
1386
1629
  displayName: string;
1387
1630
  default?: string | null | undefined;
1631
+ isSecret?: boolean | undefined;
1632
+ legacyTemplateName?: string | undefined;
1388
1633
  }[];
1389
1634
  optional: {
1390
1635
  name: string;
@@ -1393,6 +1638,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1393
1638
  required: boolean;
1394
1639
  displayName: string;
1395
1640
  default?: string | null | undefined;
1641
+ isSecret?: boolean | undefined;
1642
+ legacyTemplateName?: string | undefined;
1396
1643
  }[];
1397
1644
  };
1398
1645
  }, {
@@ -1404,6 +1651,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1404
1651
  required: boolean;
1405
1652
  displayName: string;
1406
1653
  default?: string | null | undefined;
1654
+ isSecret?: boolean | undefined;
1655
+ legacyTemplateName?: string | undefined;
1407
1656
  }[];
1408
1657
  optional: {
1409
1658
  name: string;
@@ -1412,6 +1661,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1412
1661
  required: boolean;
1413
1662
  displayName: string;
1414
1663
  default?: string | null | undefined;
1664
+ isSecret?: boolean | undefined;
1665
+ legacyTemplateName?: string | undefined;
1415
1666
  }[];
1416
1667
  };
1417
1668
  connectedAccountInitiation: {
@@ -1422,6 +1673,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1422
1673
  required: boolean;
1423
1674
  displayName: string;
1424
1675
  default?: string | null | undefined;
1676
+ isSecret?: boolean | undefined;
1677
+ legacyTemplateName?: string | undefined;
1425
1678
  }[];
1426
1679
  optional: {
1427
1680
  name: string;
@@ -1430,6 +1683,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1430
1683
  required: boolean;
1431
1684
  displayName: string;
1432
1685
  default?: string | null | undefined;
1686
+ isSecret?: boolean | undefined;
1687
+ legacyTemplateName?: string | undefined;
1433
1688
  }[];
1434
1689
  };
1435
1690
  }>;
@@ -1452,6 +1707,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1452
1707
  required: boolean;
1453
1708
  displayName: string;
1454
1709
  default?: string | null | undefined;
1710
+ isSecret?: boolean | undefined;
1711
+ legacyTemplateName?: string | undefined;
1455
1712
  }[];
1456
1713
  optional: {
1457
1714
  name: string;
@@ -1460,6 +1717,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1460
1717
  required: boolean;
1461
1718
  displayName: string;
1462
1719
  default?: string | null | undefined;
1720
+ isSecret?: boolean | undefined;
1721
+ legacyTemplateName?: string | undefined;
1463
1722
  }[];
1464
1723
  };
1465
1724
  connectedAccountInitiation: {
@@ -1470,6 +1729,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1470
1729
  required: boolean;
1471
1730
  displayName: string;
1472
1731
  default?: string | null | undefined;
1732
+ isSecret?: boolean | undefined;
1733
+ legacyTemplateName?: string | undefined;
1473
1734
  }[];
1474
1735
  optional: {
1475
1736
  name: string;
@@ -1478,9 +1739,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1478
1739
  required: boolean;
1479
1740
  displayName: string;
1480
1741
  default?: string | null | undefined;
1742
+ isSecret?: boolean | undefined;
1743
+ legacyTemplateName?: string | undefined;
1481
1744
  }[];
1482
1745
  };
1483
1746
  };
1747
+ authHintUrl?: string | null | undefined;
1484
1748
  proxy?: {
1485
1749
  baseUrl?: string | undefined;
1486
1750
  } | undefined;
@@ -1496,6 +1760,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1496
1760
  required: boolean;
1497
1761
  displayName: string;
1498
1762
  default?: string | null | undefined;
1763
+ isSecret?: boolean | undefined;
1764
+ legacyTemplateName?: string | undefined;
1499
1765
  }[];
1500
1766
  optional: {
1501
1767
  name: string;
@@ -1504,6 +1770,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1504
1770
  required: boolean;
1505
1771
  displayName: string;
1506
1772
  default?: string | null | undefined;
1773
+ isSecret?: boolean | undefined;
1774
+ legacyTemplateName?: string | undefined;
1507
1775
  }[];
1508
1776
  };
1509
1777
  connectedAccountInitiation: {
@@ -1514,6 +1782,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1514
1782
  required: boolean;
1515
1783
  displayName: string;
1516
1784
  default?: string | null | undefined;
1785
+ isSecret?: boolean | undefined;
1786
+ legacyTemplateName?: string | undefined;
1517
1787
  }[];
1518
1788
  optional: {
1519
1789
  name: string;
@@ -1522,9 +1792,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1522
1792
  required: boolean;
1523
1793
  displayName: string;
1524
1794
  default?: string | null | undefined;
1795
+ isSecret?: boolean | undefined;
1796
+ legacyTemplateName?: string | undefined;
1525
1797
  }[];
1526
1798
  };
1527
1799
  };
1800
+ authHintUrl?: string | null | undefined;
1528
1801
  proxy?: {
1529
1802
  baseUrl?: string | undefined;
1530
1803
  } | undefined;
@@ -1564,6 +1837,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1564
1837
  required: boolean;
1565
1838
  displayName: string;
1566
1839
  default?: string | null | undefined;
1840
+ isSecret?: boolean | undefined;
1841
+ legacyTemplateName?: string | undefined;
1567
1842
  }[];
1568
1843
  optional: {
1569
1844
  name: string;
@@ -1572,6 +1847,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1572
1847
  required: boolean;
1573
1848
  displayName: string;
1574
1849
  default?: string | null | undefined;
1850
+ isSecret?: boolean | undefined;
1851
+ legacyTemplateName?: string | undefined;
1575
1852
  }[];
1576
1853
  };
1577
1854
  connectedAccountInitiation: {
@@ -1582,6 +1859,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1582
1859
  required: boolean;
1583
1860
  displayName: string;
1584
1861
  default?: string | null | undefined;
1862
+ isSecret?: boolean | undefined;
1863
+ legacyTemplateName?: string | undefined;
1585
1864
  }[];
1586
1865
  optional: {
1587
1866
  name: string;
@@ -1590,9 +1869,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1590
1869
  required: boolean;
1591
1870
  displayName: string;
1592
1871
  default?: string | null | undefined;
1872
+ isSecret?: boolean | undefined;
1873
+ legacyTemplateName?: string | undefined;
1593
1874
  }[];
1594
1875
  };
1595
1876
  };
1877
+ authHintUrl?: string | null | undefined;
1596
1878
  proxy?: {
1597
1879
  baseUrl?: string | undefined;
1598
1880
  } | undefined;
@@ -1631,6 +1913,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1631
1913
  required: boolean;
1632
1914
  displayName: string;
1633
1915
  default?: string | null | undefined;
1916
+ isSecret?: boolean | undefined;
1917
+ legacyTemplateName?: string | undefined;
1634
1918
  }[];
1635
1919
  optional: {
1636
1920
  name: string;
@@ -1639,6 +1923,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1639
1923
  required: boolean;
1640
1924
  displayName: string;
1641
1925
  default?: string | null | undefined;
1926
+ isSecret?: boolean | undefined;
1927
+ legacyTemplateName?: string | undefined;
1642
1928
  }[];
1643
1929
  };
1644
1930
  connectedAccountInitiation: {
@@ -1649,6 +1935,8 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1649
1935
  required: boolean;
1650
1936
  displayName: string;
1651
1937
  default?: string | null | undefined;
1938
+ isSecret?: boolean | undefined;
1939
+ legacyTemplateName?: string | undefined;
1652
1940
  }[];
1653
1941
  optional: {
1654
1942
  name: string;
@@ -1657,9 +1945,12 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1657
1945
  required: boolean;
1658
1946
  displayName: string;
1659
1947
  default?: string | null | undefined;
1948
+ isSecret?: boolean | undefined;
1949
+ legacyTemplateName?: string | undefined;
1660
1950
  }[];
1661
1951
  };
1662
1952
  };
1953
+ authHintUrl?: string | null | undefined;
1663
1954
  proxy?: {
1664
1955
  baseUrl?: string | undefined;
1665
1956
  } | undefined;
@@ -1719,6 +2010,8 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
1719
2010
  name: z$1.ZodString;
1720
2011
  type: z$1.ZodString;
1721
2012
  default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2013
+ isSecret: z$1.ZodOptional<z$1.ZodBoolean>;
2014
+ legacyTemplateName: z$1.ZodOptional<z$1.ZodString>;
1722
2015
  } & {
1723
2016
  required: z$1.ZodOptional<z$1.ZodBoolean>;
1724
2017
  }, "strip", z$1.ZodTypeAny, {
@@ -1728,6 +2021,8 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
1728
2021
  displayName: string;
1729
2022
  required?: boolean | undefined;
1730
2023
  default?: string | null | undefined;
2024
+ isSecret?: boolean | undefined;
2025
+ legacyTemplateName?: string | undefined;
1731
2026
  }, {
1732
2027
  name: string;
1733
2028
  type: string;
@@ -1735,6 +2030,8 @@ declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
1735
2030
  displayName: string;
1736
2031
  required?: boolean | undefined;
1737
2032
  default?: string | null | undefined;
2033
+ isSecret?: boolean | undefined;
2034
+ legacyTemplateName?: string | undefined;
1738
2035
  }>, "many">;
1739
2036
  type ToolkitAuthFieldsResponse = z$1.infer<typeof ToolkitAuthFieldsResponseSchema>;
1740
2037
  //#endregion
@@ -2035,13 +2332,13 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2035
2332
  noOfConnections: number;
2036
2333
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2037
2334
  createdAt?: string | undefined;
2335
+ isComposioManaged?: boolean | undefined;
2038
2336
  credentials?: Record<string, unknown> | undefined;
2039
2337
  toolAccessConfig?: {
2040
2338
  toolsForConnectedAccountCreation?: string[] | undefined;
2041
2339
  toolsAvailableForExecution?: string[] | undefined;
2042
2340
  } | undefined;
2043
2341
  isEnabledForToolRouter?: boolean | undefined;
2044
- isComposioManaged?: boolean | undefined;
2045
2342
  expectedInputFields?: unknown[] | undefined;
2046
2343
  restrictToFollowingTools?: string[] | undefined;
2047
2344
  createdBy?: string | undefined;
@@ -2057,13 +2354,13 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2057
2354
  noOfConnections: number;
2058
2355
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2059
2356
  createdAt?: string | undefined;
2357
+ isComposioManaged?: boolean | undefined;
2060
2358
  credentials?: Record<string, unknown> | undefined;
2061
2359
  toolAccessConfig?: {
2062
2360
  toolsForConnectedAccountCreation?: string[] | undefined;
2063
2361
  toolsAvailableForExecution?: string[] | undefined;
2064
2362
  } | undefined;
2065
2363
  isEnabledForToolRouter?: boolean | undefined;
2066
- isComposioManaged?: boolean | undefined;
2067
2364
  expectedInputFields?: unknown[] | undefined;
2068
2365
  restrictToFollowingTools?: string[] | undefined;
2069
2366
  createdBy?: string | undefined;
@@ -2142,13 +2439,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2142
2439
  noOfConnections: number;
2143
2440
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2144
2441
  createdAt?: string | undefined;
2442
+ isComposioManaged?: boolean | undefined;
2145
2443
  credentials?: Record<string, unknown> | undefined;
2146
2444
  toolAccessConfig?: {
2147
2445
  toolsForConnectedAccountCreation?: string[] | undefined;
2148
2446
  toolsAvailableForExecution?: string[] | undefined;
2149
2447
  } | undefined;
2150
2448
  isEnabledForToolRouter?: boolean | undefined;
2151
- isComposioManaged?: boolean | undefined;
2152
2449
  expectedInputFields?: unknown[] | undefined;
2153
2450
  restrictToFollowingTools?: string[] | undefined;
2154
2451
  createdBy?: string | undefined;
@@ -2164,13 +2461,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2164
2461
  noOfConnections: number;
2165
2462
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2166
2463
  createdAt?: string | undefined;
2464
+ isComposioManaged?: boolean | undefined;
2167
2465
  credentials?: Record<string, unknown> | undefined;
2168
2466
  toolAccessConfig?: {
2169
2467
  toolsForConnectedAccountCreation?: string[] | undefined;
2170
2468
  toolsAvailableForExecution?: string[] | undefined;
2171
2469
  } | undefined;
2172
2470
  isEnabledForToolRouter?: boolean | undefined;
2173
- isComposioManaged?: boolean | undefined;
2174
2471
  expectedInputFields?: unknown[] | undefined;
2175
2472
  restrictToFollowingTools?: string[] | undefined;
2176
2473
  createdBy?: string | undefined;
@@ -2190,13 +2487,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2190
2487
  noOfConnections: number;
2191
2488
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2192
2489
  createdAt?: string | undefined;
2490
+ isComposioManaged?: boolean | undefined;
2193
2491
  credentials?: Record<string, unknown> | undefined;
2194
2492
  toolAccessConfig?: {
2195
2493
  toolsForConnectedAccountCreation?: string[] | undefined;
2196
2494
  toolsAvailableForExecution?: string[] | undefined;
2197
2495
  } | undefined;
2198
2496
  isEnabledForToolRouter?: boolean | undefined;
2199
- isComposioManaged?: boolean | undefined;
2200
2497
  expectedInputFields?: unknown[] | undefined;
2201
2498
  restrictToFollowingTools?: string[] | undefined;
2202
2499
  createdBy?: string | undefined;
@@ -2216,13 +2513,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2216
2513
  noOfConnections: number;
2217
2514
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2218
2515
  createdAt?: string | undefined;
2516
+ isComposioManaged?: boolean | undefined;
2219
2517
  credentials?: Record<string, unknown> | undefined;
2220
2518
  toolAccessConfig?: {
2221
2519
  toolsForConnectedAccountCreation?: string[] | undefined;
2222
2520
  toolsAvailableForExecution?: string[] | undefined;
2223
2521
  } | undefined;
2224
2522
  isEnabledForToolRouter?: boolean | undefined;
2225
- isComposioManaged?: boolean | undefined;
2226
2523
  expectedInputFields?: unknown[] | undefined;
2227
2524
  restrictToFollowingTools?: string[] | undefined;
2228
2525
  createdBy?: string | undefined;
@@ -3534,6 +3831,10 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3534
3831
  *
3535
3832
  * @param fn - The function to call when a trigger is received
3536
3833
  * @param filters - The filters to apply to the triggers
3834
+ * @param onSubscriptionError - Optional callback invoked with the raw Pusher payload when
3835
+ * the underlying subscription fails (for example on auth or permission rejection). The
3836
+ * subscribe promise still resolves; this is the only programmatic signal of the failure.
3837
+ * Errors thrown from — or promises rejected by — the callback are contained and logged.
3537
3838
  *
3538
3839
  * @example
3539
3840
  * ```ts
@@ -3543,7 +3844,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3543
3844
  * }, );
3544
3845
  * ```
3545
3846
  */
3546
- subscribe(fn: (_data: IncomingTriggerPayload) => void, filters?: TriggerSubscribeParams): Promise<void>;
3847
+ subscribe(fn: (_data: IncomingTriggerPayload) => void, filters?: TriggerSubscribeParams, onSubscriptionError?: (data: Record<string, unknown>) => void): Promise<void>;
3547
3848
  /**
3548
3849
  * Tries to parse data as V1, V2, or V3 webhook payload format.
3549
3850
  * Returns the parsed result with version info, or null if no format matches.