@wildix/wilma-tools-client 1.0.1

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 (130) hide show
  1. package/dist-cjs/WilmaTools.js +55 -0
  2. package/dist-cjs/WilmaToolsClient.js +51 -0
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  5. package/dist-cjs/commands/CreateConnectorCommand.js +20 -0
  6. package/dist-cjs/commands/CreateToolCommand.js +20 -0
  7. package/dist-cjs/commands/DeleteConnectorCommand.js +20 -0
  8. package/dist-cjs/commands/DeleteToolCommand.js +20 -0
  9. package/dist-cjs/commands/DescribeCapabilitiesCommand.js +20 -0
  10. package/dist-cjs/commands/DescribeConnectorsCommand.js +20 -0
  11. package/dist-cjs/commands/DescribeToolsCommand.js +20 -0
  12. package/dist-cjs/commands/DiscoverToolsCommand.js +20 -0
  13. package/dist-cjs/commands/ExecuteConnectorCommand.js +20 -0
  14. package/dist-cjs/commands/ExecuteToolCommand.js +20 -0
  15. package/dist-cjs/commands/GetConnectorCommand.js +20 -0
  16. package/dist-cjs/commands/GetConnectorDefinitionCommand.js +20 -0
  17. package/dist-cjs/commands/GetToolCommand.js +20 -0
  18. package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +20 -0
  19. package/dist-cjs/commands/ListConnectorsCommand.js +20 -0
  20. package/dist-cjs/commands/ListToolsCommand.js +20 -0
  21. package/dist-cjs/commands/ResolveConnectorConfigurationCommand.js +20 -0
  22. package/dist-cjs/commands/UpdateConnectorCommand.js +20 -0
  23. package/dist-cjs/commands/UpdateToolCommand.js +20 -0
  24. package/dist-cjs/commands/index.js +22 -0
  25. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  26. package/dist-cjs/endpoint/bdd.js +28 -0
  27. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  28. package/dist-cjs/extensionConfiguration.js +2 -0
  29. package/dist-cjs/index.js +14 -0
  30. package/dist-cjs/models/WilmaToolsServiceException.js +12 -0
  31. package/dist-cjs/models/enums.js +12 -0
  32. package/dist-cjs/models/errors.js +116 -0
  33. package/dist-cjs/models/models_0.js +2 -0
  34. package/dist-cjs/pagination/Interfaces.js +2 -0
  35. package/dist-cjs/pagination/ListConnectorDefinitionsPaginator.js +7 -0
  36. package/dist-cjs/pagination/ListConnectorsPaginator.js +7 -0
  37. package/dist-cjs/pagination/index.js +6 -0
  38. package/dist-cjs/runtimeConfig.browser.js +32 -0
  39. package/dist-cjs/runtimeConfig.js +41 -0
  40. package/dist-cjs/runtimeConfig.native.js +15 -0
  41. package/dist-cjs/runtimeConfig.shared.js +51 -0
  42. package/dist-cjs/runtimeExtensions.js +12 -0
  43. package/dist-cjs/schemas/schemas_0.js +690 -0
  44. package/dist-es/WilmaTools.js +51 -0
  45. package/dist-es/WilmaToolsClient.js +47 -0
  46. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  47. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  48. package/dist-es/commands/CreateConnectorCommand.js +16 -0
  49. package/dist-es/commands/CreateToolCommand.js +16 -0
  50. package/dist-es/commands/DeleteConnectorCommand.js +16 -0
  51. package/dist-es/commands/DeleteToolCommand.js +16 -0
  52. package/dist-es/commands/DescribeCapabilitiesCommand.js +16 -0
  53. package/dist-es/commands/DescribeConnectorsCommand.js +16 -0
  54. package/dist-es/commands/DescribeToolsCommand.js +16 -0
  55. package/dist-es/commands/DiscoverToolsCommand.js +16 -0
  56. package/dist-es/commands/ExecuteConnectorCommand.js +16 -0
  57. package/dist-es/commands/ExecuteToolCommand.js +16 -0
  58. package/dist-es/commands/GetConnectorCommand.js +16 -0
  59. package/dist-es/commands/GetConnectorDefinitionCommand.js +16 -0
  60. package/dist-es/commands/GetToolCommand.js +16 -0
  61. package/dist-es/commands/ListConnectorDefinitionsCommand.js +16 -0
  62. package/dist-es/commands/ListConnectorsCommand.js +16 -0
  63. package/dist-es/commands/ListToolsCommand.js +16 -0
  64. package/dist-es/commands/ResolveConnectorConfigurationCommand.js +16 -0
  65. package/dist-es/commands/UpdateConnectorCommand.js +16 -0
  66. package/dist-es/commands/UpdateToolCommand.js +16 -0
  67. package/dist-es/commands/index.js +19 -0
  68. package/dist-es/endpoint/EndpointParameters.js +12 -0
  69. package/dist-es/endpoint/bdd.js +25 -0
  70. package/dist-es/endpoint/endpointResolver.js +12 -0
  71. package/dist-es/extensionConfiguration.js +1 -0
  72. package/dist-es/index.js +9 -0
  73. package/dist-es/models/WilmaToolsServiceException.js +8 -0
  74. package/dist-es/models/enums.js +9 -0
  75. package/dist-es/models/errors.js +105 -0
  76. package/dist-es/models/models_0.js +1 -0
  77. package/dist-es/pagination/Interfaces.js +1 -0
  78. package/dist-es/pagination/ListConnectorDefinitionsPaginator.js +4 -0
  79. package/dist-es/pagination/ListConnectorsPaginator.js +4 -0
  80. package/dist-es/pagination/index.js +3 -0
  81. package/dist-es/runtimeConfig.browser.js +27 -0
  82. package/dist-es/runtimeConfig.js +36 -0
  83. package/dist-es/runtimeConfig.native.js +11 -0
  84. package/dist-es/runtimeConfig.shared.js +47 -0
  85. package/dist-es/runtimeExtensions.js +8 -0
  86. package/dist-es/schemas/schemas_0.js +686 -0
  87. package/dist-types/WilmaTools.d.ts +168 -0
  88. package/dist-types/WilmaToolsClient.d.ts +189 -0
  89. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  90. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  91. package/dist-types/commands/CreateConnectorCommand.d.ts +138 -0
  92. package/dist-types/commands/CreateToolCommand.d.ts +178 -0
  93. package/dist-types/commands/DeleteConnectorCommand.d.ts +87 -0
  94. package/dist-types/commands/DeleteToolCommand.d.ts +87 -0
  95. package/dist-types/commands/DescribeCapabilitiesCommand.d.ts +111 -0
  96. package/dist-types/commands/DescribeConnectorsCommand.d.ts +100 -0
  97. package/dist-types/commands/DescribeToolsCommand.d.ts +98 -0
  98. package/dist-types/commands/DiscoverToolsCommand.d.ts +103 -0
  99. package/dist-types/commands/ExecuteConnectorCommand.d.ts +96 -0
  100. package/dist-types/commands/ExecuteToolCommand.d.ts +94 -0
  101. package/dist-types/commands/GetConnectorCommand.d.ts +116 -0
  102. package/dist-types/commands/GetConnectorDefinitionCommand.d.ts +150 -0
  103. package/dist-types/commands/GetToolCommand.d.ts +136 -0
  104. package/dist-types/commands/ListConnectorDefinitionsCommand.d.ts +154 -0
  105. package/dist-types/commands/ListConnectorsCommand.d.ts +120 -0
  106. package/dist-types/commands/ListToolsCommand.d.ts +137 -0
  107. package/dist-types/commands/ResolveConnectorConfigurationCommand.d.ts +106 -0
  108. package/dist-types/commands/UpdateConnectorCommand.d.ts +143 -0
  109. package/dist-types/commands/UpdateToolCommand.d.ts +183 -0
  110. package/dist-types/commands/index.d.ts +19 -0
  111. package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
  112. package/dist-types/endpoint/bdd.d.ts +2 -0
  113. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  114. package/dist-types/extensionConfiguration.d.ts +8 -0
  115. package/dist-types/index.d.ts +25 -0
  116. package/dist-types/models/WilmaToolsServiceException.d.ts +14 -0
  117. package/dist-types/models/enums.d.ts +46 -0
  118. package/dist-types/models/errors.d.ts +108 -0
  119. package/dist-types/models/models_0.d.ts +1602 -0
  120. package/dist-types/pagination/Interfaces.d.ts +8 -0
  121. package/dist-types/pagination/ListConnectorDefinitionsPaginator.d.ts +7 -0
  122. package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
  123. package/dist-types/pagination/index.d.ts +3 -0
  124. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  125. package/dist-types/runtimeConfig.d.ts +55 -0
  126. package/dist-types/runtimeConfig.native.d.ts +54 -0
  127. package/dist-types/runtimeConfig.shared.d.ts +32 -0
  128. package/dist-types/runtimeExtensions.d.ts +17 -0
  129. package/dist-types/schemas/schemas_0.d.ts +104 -0
  130. package/package.json +57 -0
@@ -0,0 +1,136 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetToolInput, GetToolOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaToolsClientResolvedConfig } from "../WilmaToolsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetToolCommand}.
14
+ */
15
+ export interface GetToolCommandInput extends GetToolInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetToolCommand}.
21
+ */
22
+ export interface GetToolCommandOutput extends GetToolOutput, __MetadataBearer {
23
+ }
24
+ declare const GetToolCommand_base: {
25
+ new (input: GetToolCommandInput): import("@smithy/core/client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetToolCommandInput): import("@smithy/core/client").CommandImpl<GetToolCommandInput, GetToolCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Get a tool by its ID.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, GetToolCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, GetToolCommand } = require("@wildix/wilma-tools-client"); // CommonJS import
36
+ * // import type { WilmaToolsClientConfig } from "@wildix/wilma-tools-client";
37
+ * const config = {}; // type is WilmaToolsClientConfig
38
+ * const client = new WilmaToolsClient(config);
39
+ * const input = { // GetToolInput
40
+ * companyId: "STRING_VALUE",
41
+ * toolId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetToolCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetToolOutput
46
+ * // tool: { // Tool
47
+ * // id: "STRING_VALUE", // required
48
+ * // companyId: "STRING_VALUE", // required
49
+ * // name: "STRING_VALUE", // required
50
+ * // category: "STRING_VALUE", // required
51
+ * // description: "STRING_VALUE",
52
+ * // input: { // ToolInput
53
+ * // schema: "DOCUMENT_VALUE", // required
54
+ * // },
55
+ * // handler: { // ToolHandler Union: only one key present
56
+ * // connector: { // ToolConnectorHandler
57
+ * // definition: { // ConnectorDefinitionRef
58
+ * // key: "STRING_VALUE", // required
59
+ * // version: "STRING_VALUE", // required
60
+ * // },
61
+ * // configuration: "DOCUMENT_VALUE", // required
62
+ * // authorization: { // ConnectorAuthorization Union: only one key present
63
+ * // shared: { // ConnectorSharedAuthorization
64
+ * // connection: { // ConnectionRef
65
+ * // id: "STRING_VALUE", // required
66
+ * // },
67
+ * // },
68
+ * // user: {},
69
+ * // },
70
+ * // toolId: "STRING_VALUE", // required
71
+ * // toolConfiguration: "DOCUMENT_VALUE",
72
+ * // },
73
+ * // mcp: { // ToolMcpHandler
74
+ * // serverUrl: "STRING_VALUE", // required
75
+ * // authorization: { // ToolMcpAuthorization Union: only one key present
76
+ * // connection: {
77
+ * // id: "STRING_VALUE", // required
78
+ * // },
79
+ * // customHeaders: { // ToolMcpHeadersMap
80
+ * // "<keys>": "STRING_VALUE",
81
+ * // },
82
+ * // },
83
+ * // tools: [ // ToolMcpEnabledToolsList // required
84
+ * // "STRING_VALUE",
85
+ * // ],
86
+ * // },
87
+ * // mcpTool: { // ToolMcpToolHandler
88
+ * // mcpToolId: "STRING_VALUE", // required
89
+ * // mcpToolName: "STRING_VALUE", // required
90
+ * // },
91
+ * // },
92
+ * // revision: Number("int"), // required
93
+ * // },
94
+ * // };
95
+ *
96
+ * ```
97
+ *
98
+ * @param GetToolCommandInput - {@link GetToolCommandInput}
99
+ * @returns {@link GetToolCommandOutput}
100
+ * @see {@link GetToolCommandInput} for command's `input` shape.
101
+ * @see {@link GetToolCommandOutput} for command's `response` shape.
102
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
103
+ *
104
+ * @throws {@link ValidationException} (client fault)
105
+ *
106
+ * @throws {@link NotFoundException} (client fault)
107
+ *
108
+ * @throws {@link UnauthorizedException} (client fault)
109
+ *
110
+ * @throws {@link ForbiddenException} (client fault)
111
+ *
112
+ * @throws {@link AlreadyExistException} (client fault)
113
+ *
114
+ * @throws {@link ToolExecutionException} (client fault)
115
+ *
116
+ * @throws {@link ToolExecutionServerException} (server fault)
117
+ *
118
+ * @throws {@link WilmaToolsServiceException}
119
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
120
+ *
121
+ *
122
+ * @public
123
+ */
124
+ export declare class GetToolCommand extends GetToolCommand_base {
125
+ /** @internal type navigation helper, not in runtime. */
126
+ protected static __types: {
127
+ api: {
128
+ input: GetToolInput;
129
+ output: GetToolOutput;
130
+ };
131
+ sdk: {
132
+ input: GetToolCommandInput;
133
+ output: GetToolCommandOutput;
134
+ };
135
+ };
136
+ }
@@ -0,0 +1,154 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListConnectorDefinitionsInput, ListConnectorDefinitionsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaToolsClientResolvedConfig } from "../WilmaToolsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListConnectorDefinitionsCommand}.
14
+ */
15
+ export interface ListConnectorDefinitionsCommandInput extends ListConnectorDefinitionsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListConnectorDefinitionsCommand}.
21
+ */
22
+ export interface ListConnectorDefinitionsCommandOutput extends ListConnectorDefinitionsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListConnectorDefinitionsCommand_base: {
25
+ new (input: ListConnectorDefinitionsCommandInput): import("@smithy/core/client").CommandImpl<ListConnectorDefinitionsCommandInput, ListConnectorDefinitionsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListConnectorDefinitionsCommandInput]): import("@smithy/core/client").CommandImpl<ListConnectorDefinitionsCommandInput, ListConnectorDefinitionsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists immutable connector definitions available from the server catalog.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, ListConnectorDefinitionsCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, ListConnectorDefinitionsCommand } = require("@wildix/wilma-tools-client"); // CommonJS import
36
+ * // import type { WilmaToolsClientConfig } from "@wildix/wilma-tools-client";
37
+ * const config = {}; // type is WilmaToolsClientConfig
38
+ * const client = new WilmaToolsClient(config);
39
+ * const input = { // ListConnectorDefinitionsInput
40
+ * companyId: "STRING_VALUE",
41
+ * query: "STRING_VALUE",
42
+ * pageSize: Number("int"),
43
+ * nextToken: "STRING_VALUE",
44
+ * };
45
+ * const command = new ListConnectorDefinitionsCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListConnectorDefinitionsOutput
48
+ * // definitions: [ // ConnectorDefinitions // required
49
+ * // { // ConnectorDefinition
50
+ * // ref: { // ConnectorDefinitionRef
51
+ * // key: "STRING_VALUE", // required
52
+ * // version: "STRING_VALUE", // required
53
+ * // },
54
+ * // metadata: { // ConnectorMetadata
55
+ * // title: "STRING_VALUE", // required
56
+ * // description: "STRING_VALUE", // required
57
+ * // icon: "STRING_VALUE",
58
+ * // category: "STRING_VALUE",
59
+ * // documentationUrl: "STRING_VALUE",
60
+ * // },
61
+ * // configuration: { // ConnectorConfigurationDefinition
62
+ * // schema: "DOCUMENT_VALUE", // required
63
+ * // uiSchema: "DOCUMENT_VALUE",
64
+ * // },
65
+ * // authorization: { // ConnectorAuthorizationDefinition
66
+ * // provider: "STRING_VALUE", // required
67
+ * // modes: [ // ConnectorAuthorizationModes // required
68
+ * // "shared" || "user",
69
+ * // ],
70
+ * // },
71
+ * // instructions: "STRING_VALUE",
72
+ * // references: [ // ConnectorReferences
73
+ * // { // ConnectorReference
74
+ * // name: "STRING_VALUE", // required
75
+ * // title: "STRING_VALUE", // required
76
+ * // summary: "STRING_VALUE", // required
77
+ * // content: "STRING_VALUE", // required
78
+ * // },
79
+ * // ],
80
+ * // tools: [ // ConnectorTools // required
81
+ * // { // ConnectorTool
82
+ * // id: "STRING_VALUE", // required
83
+ * // name: "STRING_VALUE", // required
84
+ * // description: "STRING_VALUE", // required
85
+ * // access: "read" || "write" || "destructive", // required
86
+ * // idempotent: true || false,
87
+ * // category: "STRING_VALUE",
88
+ * // input: { // ToolInput
89
+ * // schema: "DOCUMENT_VALUE", // required
90
+ * // },
91
+ * // configuration: {
92
+ * // schema: "DOCUMENT_VALUE", // required
93
+ * // uiSchema: "DOCUMENT_VALUE",
94
+ * // },
95
+ * // examples: [ // ConnectorExamples
96
+ * // "STRING_VALUE",
97
+ * // ],
98
+ * // docs: "STRING_VALUE",
99
+ * // authorizationScopes: [ // ConnectorAuthorizationScopes
100
+ * // "STRING_VALUE",
101
+ * // ],
102
+ * // },
103
+ * // ],
104
+ * // deprecated: true || false,
105
+ * // replacedBy: {
106
+ * // key: "STRING_VALUE", // required
107
+ * // version: "STRING_VALUE", // required
108
+ * // },
109
+ * // },
110
+ * // ],
111
+ * // nextToken: "STRING_VALUE",
112
+ * // };
113
+ *
114
+ * ```
115
+ *
116
+ * @param ListConnectorDefinitionsCommandInput - {@link ListConnectorDefinitionsCommandInput}
117
+ * @returns {@link ListConnectorDefinitionsCommandOutput}
118
+ * @see {@link ListConnectorDefinitionsCommandInput} for command's `input` shape.
119
+ * @see {@link ListConnectorDefinitionsCommandOutput} for command's `response` shape.
120
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
121
+ *
122
+ * @throws {@link ValidationException} (client fault)
123
+ *
124
+ * @throws {@link UnauthorizedException} (client fault)
125
+ *
126
+ * @throws {@link ForbiddenException} (client fault)
127
+ *
128
+ * @throws {@link NotFoundException} (client fault)
129
+ *
130
+ * @throws {@link AlreadyExistException} (client fault)
131
+ *
132
+ * @throws {@link ToolExecutionException} (client fault)
133
+ *
134
+ * @throws {@link ToolExecutionServerException} (server fault)
135
+ *
136
+ * @throws {@link WilmaToolsServiceException}
137
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
138
+ *
139
+ *
140
+ * @public
141
+ */
142
+ export declare class ListConnectorDefinitionsCommand extends ListConnectorDefinitionsCommand_base {
143
+ /** @internal type navigation helper, not in runtime. */
144
+ protected static __types: {
145
+ api: {
146
+ input: ListConnectorDefinitionsInput;
147
+ output: ListConnectorDefinitionsOutput;
148
+ };
149
+ sdk: {
150
+ input: ListConnectorDefinitionsCommandInput;
151
+ output: ListConnectorDefinitionsCommandOutput;
152
+ };
153
+ };
154
+ }
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListConnectorsInput, ListConnectorsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaToolsClientResolvedConfig } from "../WilmaToolsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListConnectorsCommand}.
14
+ */
15
+ export interface ListConnectorsCommandInput extends ListConnectorsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListConnectorsCommand}.
21
+ */
22
+ export interface ListConnectorsCommandOutput extends ListConnectorsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListConnectorsCommand_base: {
25
+ new (input: ListConnectorsCommandInput): import("@smithy/core/client").CommandImpl<ListConnectorsCommandInput, ListConnectorsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListConnectorsCommandInput]): import("@smithy/core/client").CommandImpl<ListConnectorsCommandInput, ListConnectorsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists configured connectors owned by the current company.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, ListConnectorsCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, ListConnectorsCommand } = require("@wildix/wilma-tools-client"); // CommonJS import
36
+ * // import type { WilmaToolsClientConfig } from "@wildix/wilma-tools-client";
37
+ * const config = {}; // type is WilmaToolsClientConfig
38
+ * const client = new WilmaToolsClient(config);
39
+ * const input = { // ListConnectorsInput
40
+ * companyId: "STRING_VALUE",
41
+ * pageSize: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new ListConnectorsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListConnectorsOutput
47
+ * // connectors: [ // Connectors // required
48
+ * // { // Connector
49
+ * // definition: { // ConnectorDefinitionRef
50
+ * // key: "STRING_VALUE", // required
51
+ * // version: "STRING_VALUE", // required
52
+ * // },
53
+ * // configuration: "DOCUMENT_VALUE", // required
54
+ * // authorization: { // ConnectorAuthorization Union: only one key present
55
+ * // shared: { // ConnectorSharedAuthorization
56
+ * // connection: { // ConnectionRef
57
+ * // id: "STRING_VALUE", // required
58
+ * // },
59
+ * // },
60
+ * // user: {},
61
+ * // },
62
+ * // name: "STRING_VALUE", // required
63
+ * // description: "STRING_VALUE", // required
64
+ * // grant: { // ConnectorToolGrant Union: only one key present
65
+ * // read: {},
66
+ * // readWrite: {},
67
+ * // all: {},
68
+ * // tools: [ // ConnectorEnabledTools
69
+ * // "STRING_VALUE",
70
+ * // ],
71
+ * // },
72
+ * // id: "STRING_VALUE", // required
73
+ * // companyId: "STRING_VALUE", // required
74
+ * // revision: Number("int"), // required
75
+ * // },
76
+ * // ],
77
+ * // nextToken: "STRING_VALUE",
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param ListConnectorsCommandInput - {@link ListConnectorsCommandInput}
83
+ * @returns {@link ListConnectorsCommandOutput}
84
+ * @see {@link ListConnectorsCommandInput} for command's `input` shape.
85
+ * @see {@link ListConnectorsCommandOutput} for command's `response` shape.
86
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
87
+ *
88
+ * @throws {@link ValidationException} (client fault)
89
+ *
90
+ * @throws {@link UnauthorizedException} (client fault)
91
+ *
92
+ * @throws {@link ForbiddenException} (client fault)
93
+ *
94
+ * @throws {@link NotFoundException} (client fault)
95
+ *
96
+ * @throws {@link AlreadyExistException} (client fault)
97
+ *
98
+ * @throws {@link ToolExecutionException} (client fault)
99
+ *
100
+ * @throws {@link ToolExecutionServerException} (server fault)
101
+ *
102
+ * @throws {@link WilmaToolsServiceException}
103
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class ListConnectorsCommand extends ListConnectorsCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: ListConnectorsInput;
113
+ output: ListConnectorsOutput;
114
+ };
115
+ sdk: {
116
+ input: ListConnectorsCommandInput;
117
+ output: ListConnectorsCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -0,0 +1,137 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListToolsInput, ListToolsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaToolsClientResolvedConfig } from "../WilmaToolsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListToolsCommand}.
14
+ */
15
+ export interface ListToolsCommandInput extends ListToolsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListToolsCommand}.
21
+ */
22
+ export interface ListToolsCommandOutput extends ListToolsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListToolsCommand_base: {
25
+ new (input: ListToolsCommandInput): import("@smithy/core/client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListToolsCommandInput]): import("@smithy/core/client").CommandImpl<ListToolsCommandInput, ListToolsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * List all tools for the current company.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, ListToolsCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, ListToolsCommand } = require("@wildix/wilma-tools-client"); // CommonJS import
36
+ * // import type { WilmaToolsClientConfig } from "@wildix/wilma-tools-client";
37
+ * const config = {}; // type is WilmaToolsClientConfig
38
+ * const client = new WilmaToolsClient(config);
39
+ * const input = { // ListToolsInput
40
+ * companyId: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListToolsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListToolsOutput
45
+ * // tools: [ // ToolsList // required
46
+ * // { // Tool
47
+ * // id: "STRING_VALUE", // required
48
+ * // companyId: "STRING_VALUE", // required
49
+ * // name: "STRING_VALUE", // required
50
+ * // category: "STRING_VALUE", // required
51
+ * // description: "STRING_VALUE",
52
+ * // input: { // ToolInput
53
+ * // schema: "DOCUMENT_VALUE", // required
54
+ * // },
55
+ * // handler: { // ToolHandler Union: only one key present
56
+ * // connector: { // ToolConnectorHandler
57
+ * // definition: { // ConnectorDefinitionRef
58
+ * // key: "STRING_VALUE", // required
59
+ * // version: "STRING_VALUE", // required
60
+ * // },
61
+ * // configuration: "DOCUMENT_VALUE", // required
62
+ * // authorization: { // ConnectorAuthorization Union: only one key present
63
+ * // shared: { // ConnectorSharedAuthorization
64
+ * // connection: { // ConnectionRef
65
+ * // id: "STRING_VALUE", // required
66
+ * // },
67
+ * // },
68
+ * // user: {},
69
+ * // },
70
+ * // toolId: "STRING_VALUE", // required
71
+ * // toolConfiguration: "DOCUMENT_VALUE",
72
+ * // },
73
+ * // mcp: { // ToolMcpHandler
74
+ * // serverUrl: "STRING_VALUE", // required
75
+ * // authorization: { // ToolMcpAuthorization Union: only one key present
76
+ * // connection: {
77
+ * // id: "STRING_VALUE", // required
78
+ * // },
79
+ * // customHeaders: { // ToolMcpHeadersMap
80
+ * // "<keys>": "STRING_VALUE",
81
+ * // },
82
+ * // },
83
+ * // tools: [ // ToolMcpEnabledToolsList // required
84
+ * // "STRING_VALUE",
85
+ * // ],
86
+ * // },
87
+ * // mcpTool: { // ToolMcpToolHandler
88
+ * // mcpToolId: "STRING_VALUE", // required
89
+ * // mcpToolName: "STRING_VALUE", // required
90
+ * // },
91
+ * // },
92
+ * // revision: Number("int"), // required
93
+ * // },
94
+ * // ],
95
+ * // };
96
+ *
97
+ * ```
98
+ *
99
+ * @param ListToolsCommandInput - {@link ListToolsCommandInput}
100
+ * @returns {@link ListToolsCommandOutput}
101
+ * @see {@link ListToolsCommandInput} for command's `input` shape.
102
+ * @see {@link ListToolsCommandOutput} for command's `response` shape.
103
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
104
+ *
105
+ * @throws {@link ValidationException} (client fault)
106
+ *
107
+ * @throws {@link UnauthorizedException} (client fault)
108
+ *
109
+ * @throws {@link ForbiddenException} (client fault)
110
+ *
111
+ * @throws {@link NotFoundException} (client fault)
112
+ *
113
+ * @throws {@link AlreadyExistException} (client fault)
114
+ *
115
+ * @throws {@link ToolExecutionException} (client fault)
116
+ *
117
+ * @throws {@link ToolExecutionServerException} (server fault)
118
+ *
119
+ * @throws {@link WilmaToolsServiceException}
120
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
121
+ *
122
+ *
123
+ * @public
124
+ */
125
+ export declare class ListToolsCommand extends ListToolsCommand_base {
126
+ /** @internal type navigation helper, not in runtime. */
127
+ protected static __types: {
128
+ api: {
129
+ input: ListToolsInput;
130
+ output: ListToolsOutput;
131
+ };
132
+ sdk: {
133
+ input: ListToolsCommandInput;
134
+ output: ListToolsCommandOutput;
135
+ };
136
+ };
137
+ }
@@ -0,0 +1,106 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ResolveConnectorConfigurationInput, ResolveConnectorConfigurationOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaToolsClientResolvedConfig } from "../WilmaToolsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ResolveConnectorConfigurationCommand}.
14
+ */
15
+ export interface ResolveConnectorConfigurationCommandInput extends ResolveConnectorConfigurationInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ResolveConnectorConfigurationCommand}.
21
+ */
22
+ export interface ResolveConnectorConfigurationCommandOutput extends ResolveConnectorConfigurationOutput, __MetadataBearer {
23
+ }
24
+ declare const ResolveConnectorConfigurationCommand_base: {
25
+ new (input: ResolveConnectorConfigurationCommandInput): import("@smithy/core/client").CommandImpl<ResolveConnectorConfigurationCommandInput, ResolveConnectorConfigurationCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ResolveConnectorConfigurationCommandInput): import("@smithy/core/client").CommandImpl<ResolveConnectorConfigurationCommandInput, ResolveConnectorConfigurationCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Resolves account-dependent configuration fields from current form values. By default the
31
+ * definition-level configuration contract is resolved; pass `toolId` to resolve a connector
32
+ * tool's per-tool configuration contract instead.
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { WilmaToolsClient, ResolveConnectorConfigurationCommand } from "@wildix/wilma-tools-client"; // ES Modules import
37
+ * // const { WilmaToolsClient, ResolveConnectorConfigurationCommand } = require("@wildix/wilma-tools-client"); // CommonJS import
38
+ * // import type { WilmaToolsClientConfig } from "@wildix/wilma-tools-client";
39
+ * const config = {}; // type is WilmaToolsClientConfig
40
+ * const client = new WilmaToolsClient(config);
41
+ * const input = { // ResolveConnectorConfigurationInput
42
+ * companyId: "STRING_VALUE",
43
+ * key: "STRING_VALUE", // required
44
+ * version: "STRING_VALUE", // required
45
+ * toolId: "STRING_VALUE",
46
+ * values: "DOCUMENT_VALUE", // required
47
+ * authorization: { // ConnectorAuthorization Union: only one key present
48
+ * shared: { // ConnectorSharedAuthorization
49
+ * connection: { // ConnectionRef
50
+ * id: "STRING_VALUE", // required
51
+ * },
52
+ * },
53
+ * user: {},
54
+ * },
55
+ * user: "STRING_VALUE",
56
+ * };
57
+ * const command = new ResolveConnectorConfigurationCommand(input);
58
+ * const response = await client.send(command);
59
+ * // { // ResolveConnectorConfigurationOutput
60
+ * // configuration: { // ConnectorConfigurationDefinition
61
+ * // schema: "DOCUMENT_VALUE", // required
62
+ * // uiSchema: "DOCUMENT_VALUE",
63
+ * // },
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param ResolveConnectorConfigurationCommandInput - {@link ResolveConnectorConfigurationCommandInput}
69
+ * @returns {@link ResolveConnectorConfigurationCommandOutput}
70
+ * @see {@link ResolveConnectorConfigurationCommandInput} for command's `input` shape.
71
+ * @see {@link ResolveConnectorConfigurationCommandOutput} for command's `response` shape.
72
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
73
+ *
74
+ * @throws {@link ValidationException} (client fault)
75
+ *
76
+ * @throws {@link NotFoundException} (client fault)
77
+ *
78
+ * @throws {@link ForbiddenException} (client fault)
79
+ *
80
+ * @throws {@link UnauthorizedException} (client fault)
81
+ *
82
+ * @throws {@link AlreadyExistException} (client fault)
83
+ *
84
+ * @throws {@link ToolExecutionException} (client fault)
85
+ *
86
+ * @throws {@link ToolExecutionServerException} (server fault)
87
+ *
88
+ * @throws {@link WilmaToolsServiceException}
89
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
90
+ *
91
+ *
92
+ * @public
93
+ */
94
+ export declare class ResolveConnectorConfigurationCommand extends ResolveConnectorConfigurationCommand_base {
95
+ /** @internal type navigation helper, not in runtime. */
96
+ protected static __types: {
97
+ api: {
98
+ input: ResolveConnectorConfigurationInput;
99
+ output: ResolveConnectorConfigurationOutput;
100
+ };
101
+ sdk: {
102
+ input: ResolveConnectorConfigurationCommandInput;
103
+ output: ResolveConnectorConfigurationCommandOutput;
104
+ };
105
+ };
106
+ }