@composio/core 0.18.1 → 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.
- package/dist/{CustomTool-Bz0f52QR.mjs → CustomTool-BMlZfJVz.mjs} +1 -1
- package/dist/{CustomTool-VRfWzMix.d.mts → CustomTool-CB5vm1Jc.d.mts} +1 -1
- package/dist/{FileModifierErrors-CwB-Inm9.mjs → FileModifierErrors-BqFmpRsm.mjs} +1 -1
- package/dist/{FileToolModifier.utils.neutral-D_YkHwZP.mjs → FileToolModifier.utils.neutral-DWFpnsj2.mjs} +4 -2
- package/dist/{SsrfErrors-xhdVE4yw.mjs → SsrfErrors-C91YhASE.mjs} +14 -10
- package/dist/{Telemetry-Dw9W5RSp.mjs → Telemetry-HlftxMx6.mjs} +2 -2
- package/dist/{cancellation-P5YUlcfz.mjs → cancellation-CXpfmiVo.mjs} +7 -5
- package/dist/{composio-Cb3d1jFe.d.mts → composio-DLGaeN70.d.mts} +327 -26
- package/dist/{customTool.types-B6ej_8XZ.d.mts → customTool.types-BAmEh3MB.d.mts} +95 -4
- package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/composio.mdx +3 -13
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +46 -3
- package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +4 -4
- package/dist/docs/reference/sdk-reference/typescript/tools.mdx +33 -23
- package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +3 -2
- package/dist/{errors-Ue9wMrPK.mjs → errors-BuEKehbI.mjs} +23 -3
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/{fileUtils.node-KE5Fa-af.mjs → fileUtils.node-L7XD8UPr.mjs} +8 -6
- package/dist/index.d.mts +160 -101
- package/dist/index.mjs +336 -127
- package/dist/models/Files.node.d.mts +2 -3
- package/dist/models/Files.node.mjs +2 -2
- package/dist/models/Files.workerd.d.mts +2 -3
- package/dist/platform/node.d.mts +2 -3
- package/dist/platform/workerd.d.mts +2 -3
- package/dist/{sensitiveFileUploadPaths-QN7w4n8v.mjs → sensitiveFileUploadPaths-B6pBt9lO.mjs} +10 -7
- package/dist/{ssrfGuard.node-BLX6b-Rf.mjs → ssrfGuard.node-B9xQB4za.mjs} +104 -14
- package/dist/{types-CGdgK442.d.mts → types-CxLPO0Xq.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -4
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -4
- package/dist/utils/modifiers/FileToolModifier.node.mjs +6 -6
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +3 -4
- package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
- package/dist/utils/ssrfGuard.node.d.mts +19 -10
- package/dist/utils/ssrfGuard.node.mjs +1 -1
- package/dist/utils/ssrfGuard.workerd.d.mts +12 -4
- package/dist/utils/ssrfGuard.workerd.mjs +2 -2
- package/package.json +8 -8
- package/src/errors/ToolErrors.ts +24 -0
- package/src/index.ts +4 -0
- package/src/models/MCP.ts +29 -15
- package/src/models/ToolRouter.ts +1 -0
- package/src/models/ToolRouterSession.ts +106 -9
- package/src/models/Toolkits.ts +1 -2
- package/src/models/Tools.ts +55 -25
- package/src/models/Triggers.ts +7 -2
- package/src/services/pusher/Pusher.ts +29 -10
- package/src/types/toolRouter.types.ts +54 -3
- package/src/types/toolkit.types.ts +17 -0
- package/src/utils/jsonSchema.ts +4 -1
- package/src/utils/ssrfGuard.node.ts +127 -13
- package/src/utils/ssrfGuard.workerd.ts +11 -1
- package/src/utils/transformers/toolkits.ts +79 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $i as
|
|
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
|
-
*
|
|
474
|
+
* Generates arguments for a tool from a natural-language description of the task.
|
|
471
475
|
*
|
|
472
|
-
*
|
|
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
|
|
475
|
-
* @param {ToolGetInputParams} body - The
|
|
476
|
-
* @
|
|
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
|
-
*
|
|
481
|
-
*
|
|
482
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
499
|
+
* Sends an HTTP request to a toolkit's API, authenticated as a connected account.
|
|
490
500
|
*
|
|
491
|
-
*
|
|
492
|
-
*
|
|
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
|
-
*
|
|
495
|
-
*
|
|
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
|
-
* //
|
|
500
|
-
* const
|
|
501
|
-
*
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
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(
|
|
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
|
|
@@ -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.
|