@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.
- package/dist-cjs/WilmaTools.js +55 -0
- package/dist-cjs/WilmaToolsClient.js +51 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/commands/CreateConnectorCommand.js +20 -0
- package/dist-cjs/commands/CreateToolCommand.js +20 -0
- package/dist-cjs/commands/DeleteConnectorCommand.js +20 -0
- package/dist-cjs/commands/DeleteToolCommand.js +20 -0
- package/dist-cjs/commands/DescribeCapabilitiesCommand.js +20 -0
- package/dist-cjs/commands/DescribeConnectorsCommand.js +20 -0
- package/dist-cjs/commands/DescribeToolsCommand.js +20 -0
- package/dist-cjs/commands/DiscoverToolsCommand.js +20 -0
- package/dist-cjs/commands/ExecuteConnectorCommand.js +20 -0
- package/dist-cjs/commands/ExecuteToolCommand.js +20 -0
- package/dist-cjs/commands/GetConnectorCommand.js +20 -0
- package/dist-cjs/commands/GetConnectorDefinitionCommand.js +20 -0
- package/dist-cjs/commands/GetToolCommand.js +20 -0
- package/dist-cjs/commands/ListConnectorDefinitionsCommand.js +20 -0
- package/dist-cjs/commands/ListConnectorsCommand.js +20 -0
- package/dist-cjs/commands/ListToolsCommand.js +20 -0
- package/dist-cjs/commands/ResolveConnectorConfigurationCommand.js +20 -0
- package/dist-cjs/commands/UpdateConnectorCommand.js +20 -0
- package/dist-cjs/commands/UpdateToolCommand.js +20 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +14 -0
- package/dist-cjs/models/WilmaToolsServiceException.js +12 -0
- package/dist-cjs/models/enums.js +12 -0
- package/dist-cjs/models/errors.js +116 -0
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListConnectorDefinitionsPaginator.js +7 -0
- package/dist-cjs/pagination/ListConnectorsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +41 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +51 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-cjs/schemas/schemas_0.js +690 -0
- package/dist-es/WilmaTools.js +51 -0
- package/dist-es/WilmaToolsClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/CreateConnectorCommand.js +16 -0
- package/dist-es/commands/CreateToolCommand.js +16 -0
- package/dist-es/commands/DeleteConnectorCommand.js +16 -0
- package/dist-es/commands/DeleteToolCommand.js +16 -0
- package/dist-es/commands/DescribeCapabilitiesCommand.js +16 -0
- package/dist-es/commands/DescribeConnectorsCommand.js +16 -0
- package/dist-es/commands/DescribeToolsCommand.js +16 -0
- package/dist-es/commands/DiscoverToolsCommand.js +16 -0
- package/dist-es/commands/ExecuteConnectorCommand.js +16 -0
- package/dist-es/commands/ExecuteToolCommand.js +16 -0
- package/dist-es/commands/GetConnectorCommand.js +16 -0
- package/dist-es/commands/GetConnectorDefinitionCommand.js +16 -0
- package/dist-es/commands/GetToolCommand.js +16 -0
- package/dist-es/commands/ListConnectorDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListConnectorsCommand.js +16 -0
- package/dist-es/commands/ListToolsCommand.js +16 -0
- package/dist-es/commands/ResolveConnectorConfigurationCommand.js +16 -0
- package/dist-es/commands/UpdateConnectorCommand.js +16 -0
- package/dist-es/commands/UpdateToolCommand.js +16 -0
- package/dist-es/commands/index.js +19 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/WilmaToolsServiceException.js +8 -0
- package/dist-es/models/enums.js +9 -0
- package/dist-es/models/errors.js +105 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListConnectorDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +36 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +47 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-es/schemas/schemas_0.js +686 -0
- package/dist-types/WilmaTools.d.ts +168 -0
- package/dist-types/WilmaToolsClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateConnectorCommand.d.ts +138 -0
- package/dist-types/commands/CreateToolCommand.d.ts +178 -0
- package/dist-types/commands/DeleteConnectorCommand.d.ts +87 -0
- package/dist-types/commands/DeleteToolCommand.d.ts +87 -0
- package/dist-types/commands/DescribeCapabilitiesCommand.d.ts +111 -0
- package/dist-types/commands/DescribeConnectorsCommand.d.ts +100 -0
- package/dist-types/commands/DescribeToolsCommand.d.ts +98 -0
- package/dist-types/commands/DiscoverToolsCommand.d.ts +103 -0
- package/dist-types/commands/ExecuteConnectorCommand.d.ts +96 -0
- package/dist-types/commands/ExecuteToolCommand.d.ts +94 -0
- package/dist-types/commands/GetConnectorCommand.d.ts +116 -0
- package/dist-types/commands/GetConnectorDefinitionCommand.d.ts +150 -0
- package/dist-types/commands/GetToolCommand.d.ts +136 -0
- package/dist-types/commands/ListConnectorDefinitionsCommand.d.ts +154 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +120 -0
- package/dist-types/commands/ListToolsCommand.d.ts +137 -0
- package/dist-types/commands/ResolveConnectorConfigurationCommand.d.ts +106 -0
- package/dist-types/commands/UpdateConnectorCommand.d.ts +143 -0
- package/dist-types/commands/UpdateToolCommand.d.ts +183 -0
- package/dist-types/commands/index.d.ts +19 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +25 -0
- package/dist-types/models/WilmaToolsServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +46 -0
- package/dist-types/models/errors.d.ts +108 -0
- package/dist-types/models/models_0.d.ts +1602 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListConnectorDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +104 -0
- 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
|
+
}
|