@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,103 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DiscoverToolsInput, DiscoverToolsOutput } 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 DiscoverToolsCommand}.
14
+ */
15
+ export interface DiscoverToolsCommandInput extends DiscoverToolsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DiscoverToolsCommand}.
21
+ */
22
+ export interface DiscoverToolsCommandOutput extends DiscoverToolsOutput, __MetadataBearer {
23
+ }
24
+ declare const DiscoverToolsCommand_base: {
25
+ new (input: DiscoverToolsCommandInput): import("@smithy/core/client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DiscoverToolsCommandInput): import("@smithy/core/client").CommandImpl<DiscoverToolsCommandInput, DiscoverToolsCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Discover tools from an MCP server.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, DiscoverToolsCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, DiscoverToolsCommand } = 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 = { // DiscoverToolsInput
40
+ * companyId: "STRING_VALUE",
41
+ * serverUrl: "STRING_VALUE", // required
42
+ * authorization: { // ToolMcpAuthorization Union: only one key present
43
+ * connection: { // ConnectionRef
44
+ * id: "STRING_VALUE", // required
45
+ * },
46
+ * customHeaders: { // ToolMcpHeadersMap
47
+ * "<keys>": "STRING_VALUE",
48
+ * },
49
+ * },
50
+ * };
51
+ * const command = new DiscoverToolsCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // DiscoverToolsOutput
54
+ * // tools: [ // DiscoveredToolList // required
55
+ * // { // DiscoveredTool
56
+ * // name: "STRING_VALUE", // required
57
+ * // description: "STRING_VALUE", // required
58
+ * // inputSchema: "DOCUMENT_VALUE", // required
59
+ * // },
60
+ * // ],
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param DiscoverToolsCommandInput - {@link DiscoverToolsCommandInput}
66
+ * @returns {@link DiscoverToolsCommandOutput}
67
+ * @see {@link DiscoverToolsCommandInput} for command's `input` shape.
68
+ * @see {@link DiscoverToolsCommandOutput} for command's `response` shape.
69
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ *
73
+ * @throws {@link UnauthorizedException} (client fault)
74
+ *
75
+ * @throws {@link ForbiddenException} (client fault)
76
+ *
77
+ * @throws {@link NotFoundException} (client fault)
78
+ *
79
+ * @throws {@link AlreadyExistException} (client fault)
80
+ *
81
+ * @throws {@link ToolExecutionException} (client fault)
82
+ *
83
+ * @throws {@link ToolExecutionServerException} (server fault)
84
+ *
85
+ * @throws {@link WilmaToolsServiceException}
86
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class DiscoverToolsCommand extends DiscoverToolsCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: DiscoverToolsInput;
96
+ output: DiscoverToolsOutput;
97
+ };
98
+ sdk: {
99
+ input: DiscoverToolsCommandInput;
100
+ output: DiscoverToolsCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ExecuteConnectorInput, ExecuteConnectorOutput } 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 ExecuteConnectorCommand}.
14
+ */
15
+ export interface ExecuteConnectorCommandInput extends ExecuteConnectorInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ExecuteConnectorCommand}.
21
+ */
22
+ export interface ExecuteConnectorCommandOutput extends ExecuteConnectorOutput, __MetadataBearer {
23
+ }
24
+ declare const ExecuteConnectorCommand_base: {
25
+ new (input: ExecuteConnectorCommandInput): import("@smithy/core/client").CommandImpl<ExecuteConnectorCommandInput, ExecuteConnectorCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ExecuteConnectorCommandInput): import("@smithy/core/client").CommandImpl<ExecuteConnectorCommandInput, ExecuteConnectorCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Executes a connector with the invocation payload supplied by the model or agent.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, ExecuteConnectorCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, ExecuteConnectorCommand } = 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 = { // ExecuteConnectorInput
40
+ * companyId: "STRING_VALUE",
41
+ * connectorId: "STRING_VALUE", // required
42
+ * input: "DOCUMENT_VALUE", // required
43
+ * service: "STRING_VALUE",
44
+ * user: "STRING_VALUE",
45
+ * };
46
+ * const command = new ExecuteConnectorCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ExecuteConnectorOutput
49
+ * // result: { // ConnectorExecutionResult
50
+ * // output: "DOCUMENT_VALUE", // required
51
+ * // executionId: "STRING_VALUE", // required
52
+ * // definitionVersion: "STRING_VALUE", // required
53
+ * // },
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param ExecuteConnectorCommandInput - {@link ExecuteConnectorCommandInput}
59
+ * @returns {@link ExecuteConnectorCommandOutput}
60
+ * @see {@link ExecuteConnectorCommandInput} for command's `input` shape.
61
+ * @see {@link ExecuteConnectorCommandOutput} for command's `response` shape.
62
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ *
66
+ * @throws {@link NotFoundException} (client fault)
67
+ *
68
+ * @throws {@link ForbiddenException} (client fault)
69
+ *
70
+ * @throws {@link ToolExecutionException} (client fault)
71
+ *
72
+ * @throws {@link ToolExecutionServerException} (server fault)
73
+ *
74
+ * @throws {@link UnauthorizedException} (client fault)
75
+ *
76
+ * @throws {@link AlreadyExistException} (client fault)
77
+ *
78
+ * @throws {@link WilmaToolsServiceException}
79
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
80
+ *
81
+ *
82
+ * @public
83
+ */
84
+ export declare class ExecuteConnectorCommand extends ExecuteConnectorCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: ExecuteConnectorInput;
89
+ output: ExecuteConnectorOutput;
90
+ };
91
+ sdk: {
92
+ input: ExecuteConnectorCommandInput;
93
+ output: ExecuteConnectorCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -0,0 +1,94 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ExecuteToolInput, ExecuteToolOutput } 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 ExecuteToolCommand}.
14
+ */
15
+ export interface ExecuteToolCommandInput extends ExecuteToolInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ExecuteToolCommand}.
21
+ */
22
+ export interface ExecuteToolCommandOutput extends ExecuteToolOutput, __MetadataBearer {
23
+ }
24
+ declare const ExecuteToolCommand_base: {
25
+ new (input: ExecuteToolCommandInput): import("@smithy/core/client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ExecuteToolCommandInput): import("@smithy/core/client").CommandImpl<ExecuteToolCommandInput, ExecuteToolCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Execute a tool with the provided input.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, ExecuteToolCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, ExecuteToolCommand } = 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 = { // ExecuteToolInput
40
+ * companyId: "STRING_VALUE",
41
+ * id: "STRING_VALUE", // required
42
+ * input: "DOCUMENT_VALUE", // required
43
+ * service: "STRING_VALUE",
44
+ * user: "STRING_VALUE",
45
+ * };
46
+ * const command = new ExecuteToolCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ExecuteToolOutput
49
+ * // result: { // ToolExecutionResult
50
+ * // output: "DOCUMENT_VALUE", // required
51
+ * // },
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param ExecuteToolCommandInput - {@link ExecuteToolCommandInput}
57
+ * @returns {@link ExecuteToolCommandOutput}
58
+ * @see {@link ExecuteToolCommandInput} for command's `input` shape.
59
+ * @see {@link ExecuteToolCommandOutput} for command's `response` shape.
60
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link NotFoundException} (client fault)
65
+ *
66
+ * @throws {@link ForbiddenException} (client fault)
67
+ *
68
+ * @throws {@link ToolExecutionException} (client fault)
69
+ *
70
+ * @throws {@link ToolExecutionServerException} (server fault)
71
+ *
72
+ * @throws {@link UnauthorizedException} (client fault)
73
+ *
74
+ * @throws {@link AlreadyExistException} (client fault)
75
+ *
76
+ * @throws {@link WilmaToolsServiceException}
77
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class ExecuteToolCommand extends ExecuteToolCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: ExecuteToolInput;
87
+ output: ExecuteToolOutput;
88
+ };
89
+ sdk: {
90
+ input: ExecuteToolCommandInput;
91
+ output: ExecuteToolCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -0,0 +1,116 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetConnectorInput, GetConnectorOutput } 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 GetConnectorCommand}.
14
+ */
15
+ export interface GetConnectorCommandInput extends GetConnectorInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetConnectorCommand}.
21
+ */
22
+ export interface GetConnectorCommandOutput extends GetConnectorOutput, __MetadataBearer {
23
+ }
24
+ declare const GetConnectorCommand_base: {
25
+ new (input: GetConnectorCommandInput): import("@smithy/core/client").CommandImpl<GetConnectorCommandInput, GetConnectorCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetConnectorCommandInput): import("@smithy/core/client").CommandImpl<GetConnectorCommandInput, GetConnectorCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets a configured connector.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, GetConnectorCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, GetConnectorCommand } = 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 = { // GetConnectorInput
40
+ * companyId: "STRING_VALUE",
41
+ * connectorId: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetConnectorCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetConnectorOutput
46
+ * // connector: { // Connector
47
+ * // definition: { // ConnectorDefinitionRef
48
+ * // key: "STRING_VALUE", // required
49
+ * // version: "STRING_VALUE", // required
50
+ * // },
51
+ * // configuration: "DOCUMENT_VALUE", // required
52
+ * // authorization: { // ConnectorAuthorization Union: only one key present
53
+ * // shared: { // ConnectorSharedAuthorization
54
+ * // connection: { // ConnectionRef
55
+ * // id: "STRING_VALUE", // required
56
+ * // },
57
+ * // },
58
+ * // user: {},
59
+ * // },
60
+ * // name: "STRING_VALUE", // required
61
+ * // description: "STRING_VALUE", // required
62
+ * // grant: { // ConnectorToolGrant Union: only one key present
63
+ * // read: {},
64
+ * // readWrite: {},
65
+ * // all: {},
66
+ * // tools: [ // ConnectorEnabledTools
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // },
70
+ * // id: "STRING_VALUE", // required
71
+ * // companyId: "STRING_VALUE", // required
72
+ * // revision: Number("int"), // required
73
+ * // },
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param GetConnectorCommandInput - {@link GetConnectorCommandInput}
79
+ * @returns {@link GetConnectorCommandOutput}
80
+ * @see {@link GetConnectorCommandInput} for command's `input` shape.
81
+ * @see {@link GetConnectorCommandOutput} for command's `response` shape.
82
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ *
86
+ * @throws {@link NotFoundException} (client fault)
87
+ *
88
+ * @throws {@link UnauthorizedException} (client fault)
89
+ *
90
+ * @throws {@link ForbiddenException} (client fault)
91
+ *
92
+ * @throws {@link AlreadyExistException} (client fault)
93
+ *
94
+ * @throws {@link ToolExecutionException} (client fault)
95
+ *
96
+ * @throws {@link ToolExecutionServerException} (server fault)
97
+ *
98
+ * @throws {@link WilmaToolsServiceException}
99
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
100
+ *
101
+ *
102
+ * @public
103
+ */
104
+ export declare class GetConnectorCommand extends GetConnectorCommand_base {
105
+ /** @internal type navigation helper, not in runtime. */
106
+ protected static __types: {
107
+ api: {
108
+ input: GetConnectorInput;
109
+ output: GetConnectorOutput;
110
+ };
111
+ sdk: {
112
+ input: GetConnectorCommandInput;
113
+ output: GetConnectorCommandOutput;
114
+ };
115
+ };
116
+ }
@@ -0,0 +1,150 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetConnectorDefinitionInput, GetConnectorDefinitionOutput } 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 GetConnectorDefinitionCommand}.
14
+ */
15
+ export interface GetConnectorDefinitionCommandInput extends GetConnectorDefinitionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetConnectorDefinitionCommand}.
21
+ */
22
+ export interface GetConnectorDefinitionCommandOutput extends GetConnectorDefinitionOutput, __MetadataBearer {
23
+ }
24
+ declare const GetConnectorDefinitionCommand_base: {
25
+ new (input: GetConnectorDefinitionCommandInput): import("@smithy/core/client").CommandImpl<GetConnectorDefinitionCommandInput, GetConnectorDefinitionCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetConnectorDefinitionCommandInput): import("@smithy/core/client").CommandImpl<GetConnectorDefinitionCommandInput, GetConnectorDefinitionCommandOutput, WilmaToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Gets one immutable connector definition.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WilmaToolsClient, GetConnectorDefinitionCommand } from "@wildix/wilma-tools-client"; // ES Modules import
35
+ * // const { WilmaToolsClient, GetConnectorDefinitionCommand } = 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 = { // GetConnectorDefinitionInput
40
+ * companyId: "STRING_VALUE",
41
+ * key: "STRING_VALUE", // required
42
+ * version: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new GetConnectorDefinitionCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetConnectorDefinitionOutput
47
+ * // definition: { // ConnectorDefinition
48
+ * // ref: { // ConnectorDefinitionRef
49
+ * // key: "STRING_VALUE", // required
50
+ * // version: "STRING_VALUE", // required
51
+ * // },
52
+ * // metadata: { // ConnectorMetadata
53
+ * // title: "STRING_VALUE", // required
54
+ * // description: "STRING_VALUE", // required
55
+ * // icon: "STRING_VALUE",
56
+ * // category: "STRING_VALUE",
57
+ * // documentationUrl: "STRING_VALUE",
58
+ * // },
59
+ * // configuration: { // ConnectorConfigurationDefinition
60
+ * // schema: "DOCUMENT_VALUE", // required
61
+ * // uiSchema: "DOCUMENT_VALUE",
62
+ * // },
63
+ * // authorization: { // ConnectorAuthorizationDefinition
64
+ * // provider: "STRING_VALUE", // required
65
+ * // modes: [ // ConnectorAuthorizationModes // required
66
+ * // "shared" || "user",
67
+ * // ],
68
+ * // },
69
+ * // instructions: "STRING_VALUE",
70
+ * // references: [ // ConnectorReferences
71
+ * // { // ConnectorReference
72
+ * // name: "STRING_VALUE", // required
73
+ * // title: "STRING_VALUE", // required
74
+ * // summary: "STRING_VALUE", // required
75
+ * // content: "STRING_VALUE", // required
76
+ * // },
77
+ * // ],
78
+ * // tools: [ // ConnectorTools // required
79
+ * // { // ConnectorTool
80
+ * // id: "STRING_VALUE", // required
81
+ * // name: "STRING_VALUE", // required
82
+ * // description: "STRING_VALUE", // required
83
+ * // access: "read" || "write" || "destructive", // required
84
+ * // idempotent: true || false,
85
+ * // category: "STRING_VALUE",
86
+ * // input: { // ToolInput
87
+ * // schema: "DOCUMENT_VALUE", // required
88
+ * // },
89
+ * // configuration: {
90
+ * // schema: "DOCUMENT_VALUE", // required
91
+ * // uiSchema: "DOCUMENT_VALUE",
92
+ * // },
93
+ * // examples: [ // ConnectorExamples
94
+ * // "STRING_VALUE",
95
+ * // ],
96
+ * // docs: "STRING_VALUE",
97
+ * // authorizationScopes: [ // ConnectorAuthorizationScopes
98
+ * // "STRING_VALUE",
99
+ * // ],
100
+ * // },
101
+ * // ],
102
+ * // deprecated: true || false,
103
+ * // replacedBy: {
104
+ * // key: "STRING_VALUE", // required
105
+ * // version: "STRING_VALUE", // required
106
+ * // },
107
+ * // },
108
+ * // };
109
+ *
110
+ * ```
111
+ *
112
+ * @param GetConnectorDefinitionCommandInput - {@link GetConnectorDefinitionCommandInput}
113
+ * @returns {@link GetConnectorDefinitionCommandOutput}
114
+ * @see {@link GetConnectorDefinitionCommandInput} for command's `input` shape.
115
+ * @see {@link GetConnectorDefinitionCommandOutput} for command's `response` shape.
116
+ * @see {@link WilmaToolsClientResolvedConfig | config} for WilmaToolsClient's `config` shape.
117
+ *
118
+ * @throws {@link ValidationException} (client fault)
119
+ *
120
+ * @throws {@link NotFoundException} (client fault)
121
+ *
122
+ * @throws {@link UnauthorizedException} (client fault)
123
+ *
124
+ * @throws {@link ForbiddenException} (client fault)
125
+ *
126
+ * @throws {@link AlreadyExistException} (client fault)
127
+ *
128
+ * @throws {@link ToolExecutionException} (client fault)
129
+ *
130
+ * @throws {@link ToolExecutionServerException} (server fault)
131
+ *
132
+ * @throws {@link WilmaToolsServiceException}
133
+ * <p>Base exception class for all service exceptions from WilmaTools service.</p>
134
+ *
135
+ *
136
+ * @public
137
+ */
138
+ export declare class GetConnectorDefinitionCommand extends GetConnectorDefinitionCommand_base {
139
+ /** @internal type navigation helper, not in runtime. */
140
+ protected static __types: {
141
+ api: {
142
+ input: GetConnectorDefinitionInput;
143
+ output: GetConnectorDefinitionOutput;
144
+ };
145
+ sdk: {
146
+ input: GetConnectorDefinitionCommandInput;
147
+ output: GetConnectorDefinitionCommandOutput;
148
+ };
149
+ };
150
+ }