@wildix/wim-wilma-client 0.0.11 → 3.1.12
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/Wilma.js +25 -3
- package/dist-cjs/WilmaClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-cjs/commands/CreateAgentCommand.js +10 -11
- package/dist-cjs/commands/CreateGuidelineCommand.js +10 -11
- package/dist-cjs/commands/CreateGuidelinesDirectoryCommand.js +10 -11
- package/dist-cjs/commands/CreateSkillCommand.js +20 -0
- package/dist-cjs/commands/CreateSkillFileUploadCommand.js +20 -0
- package/dist-cjs/commands/DeleteAgentCommand.js +10 -11
- package/dist-cjs/commands/DeleteChatCommand.js +10 -11
- package/dist-cjs/commands/DeleteFileCommand.js +20 -0
- package/dist-cjs/commands/DeleteGuidelineCommand.js +10 -11
- package/dist-cjs/commands/DeleteGuidelinesDirectoryCommand.js +10 -11
- package/dist-cjs/commands/DeleteSkillCommand.js +20 -0
- package/dist-cjs/commands/DeleteSkillFileCommand.js +20 -0
- package/dist-cjs/commands/DislikeAnswerCommand.js +10 -11
- package/dist-cjs/commands/DownloadFileCommand.js +20 -0
- package/dist-cjs/commands/ExecuteAgentCommand.js +10 -11
- package/dist-cjs/commands/GetAgentCommand.js +10 -11
- package/dist-cjs/commands/GetChatCommand.js +10 -11
- package/dist-cjs/commands/GetFileCommand.js +20 -0
- package/dist-cjs/commands/GetGuidelineCommand.js +10 -11
- package/dist-cjs/commands/GetOrganizationSettingsCommand.js +10 -11
- package/dist-cjs/commands/GetSettingsCommand.js +10 -11
- package/dist-cjs/commands/GetSkillCommand.js +20 -0
- package/dist-cjs/commands/GetSkillFileDownloadCommand.js +20 -0
- package/dist-cjs/commands/LikeAnswerCommand.js +10 -11
- package/dist-cjs/commands/ListAgentFeedbacksCommand.js +10 -11
- package/dist-cjs/commands/ListAgentsCommand.js +10 -11
- package/dist-cjs/commands/ListAgentsNamesCommand.js +10 -11
- package/dist-cjs/commands/ListChatsCommand.js +10 -11
- package/dist-cjs/commands/ListFeedbacksCommand.js +10 -11
- package/dist-cjs/commands/ListGuidelinesCommand.js +10 -11
- package/dist-cjs/commands/ListGuidelinesDirectoriesCommand.js +10 -11
- package/dist-cjs/commands/ListGuidelinesNamesCommand.js +10 -11
- package/dist-cjs/commands/ListSkillsCommand.js +20 -0
- package/dist-cjs/commands/PatchOrganizationSettingsCommand.js +10 -11
- package/dist-cjs/commands/PatchSettingsCommand.js +10 -11
- package/dist-cjs/commands/UpdateAgentCommand.js +10 -11
- package/dist-cjs/commands/UpdateGuidelineAccessCommand.js +10 -11
- package/dist-cjs/commands/UpdateGuidelineCommand.js +10 -11
- package/dist-cjs/commands/UpdateGuidelinesDirectoryCommand.js +10 -11
- package/dist-cjs/commands/UpdateSkillCommand.js +20 -0
- package/dist-cjs/commands/index.js +12 -1
- 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/index.js +4 -1
- package/dist-cjs/models/WilmaServiceException.js +3 -3
- package/dist-cjs/models/enums.js +45 -0
- package/dist-cjs/models/errors.js +43 -0
- package/dist-cjs/models/models_0.js +0 -96
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1110 -0
- package/dist-es/Wilma.js +27 -5
- package/dist-es/WilmaClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-es/commands/CreateAgentCommand.js +9 -10
- package/dist-es/commands/CreateGuidelineCommand.js +9 -10
- package/dist-es/commands/CreateGuidelinesDirectoryCommand.js +9 -10
- package/dist-es/commands/CreateSkillCommand.js +16 -0
- package/dist-es/commands/CreateSkillFileUploadCommand.js +16 -0
- package/dist-es/commands/DeleteAgentCommand.js +9 -10
- package/dist-es/commands/DeleteChatCommand.js +9 -10
- package/dist-es/commands/DeleteFileCommand.js +16 -0
- package/dist-es/commands/DeleteGuidelineCommand.js +9 -10
- package/dist-es/commands/DeleteGuidelinesDirectoryCommand.js +9 -10
- package/dist-es/commands/DeleteSkillCommand.js +16 -0
- package/dist-es/commands/DeleteSkillFileCommand.js +16 -0
- package/dist-es/commands/DislikeAnswerCommand.js +9 -10
- package/dist-es/commands/DownloadFileCommand.js +16 -0
- package/dist-es/commands/ExecuteAgentCommand.js +9 -10
- package/dist-es/commands/GetAgentCommand.js +9 -10
- package/dist-es/commands/GetChatCommand.js +9 -10
- package/dist-es/commands/GetFileCommand.js +16 -0
- package/dist-es/commands/GetGuidelineCommand.js +9 -10
- package/dist-es/commands/GetOrganizationSettingsCommand.js +9 -10
- package/dist-es/commands/GetSettingsCommand.js +9 -10
- package/dist-es/commands/GetSkillCommand.js +16 -0
- package/dist-es/commands/GetSkillFileDownloadCommand.js +16 -0
- package/dist-es/commands/LikeAnswerCommand.js +9 -10
- package/dist-es/commands/ListAgentFeedbacksCommand.js +9 -10
- package/dist-es/commands/ListAgentsCommand.js +9 -10
- package/dist-es/commands/ListAgentsNamesCommand.js +9 -10
- package/dist-es/commands/ListChatsCommand.js +9 -10
- package/dist-es/commands/ListFeedbacksCommand.js +9 -10
- package/dist-es/commands/ListGuidelinesCommand.js +9 -10
- package/dist-es/commands/ListGuidelinesDirectoriesCommand.js +9 -10
- package/dist-es/commands/ListGuidelinesNamesCommand.js +9 -10
- package/dist-es/commands/ListSkillsCommand.js +16 -0
- package/dist-es/commands/PatchOrganizationSettingsCommand.js +9 -10
- package/dist-es/commands/PatchSettingsCommand.js +9 -10
- package/dist-es/commands/UpdateAgentCommand.js +9 -10
- package/dist-es/commands/UpdateGuidelineAccessCommand.js +9 -10
- package/dist-es/commands/UpdateGuidelineCommand.js +9 -10
- package/dist-es/commands/UpdateGuidelinesDirectoryCommand.js +9 -10
- package/dist-es/commands/UpdateSkillCommand.js +16 -0
- package/dist-es/commands/index.js +12 -1
- 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/index.js +4 -1
- package/dist-es/models/WilmaServiceException.js +1 -1
- package/dist-es/models/enums.js +42 -0
- package/dist-es/models/errors.js +37 -0
- package/dist-es/models/models_0.js +1 -92
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1104 -0
- package/dist-types/Wilma.d.ts +108 -30
- package/dist-types/WilmaClient.d.ts +72 -43
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +127 -25
- package/dist-types/commands/CreateGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/CreateGuidelinesDirectoryCommand.d.ts +11 -7
- package/dist-types/commands/CreateSkillCommand.d.ts +103 -0
- package/dist-types/commands/CreateSkillFileUploadCommand.d.ts +99 -0
- package/dist-types/commands/DeleteAgentCommand.d.ts +11 -7
- package/dist-types/commands/DeleteChatCommand.d.ts +11 -7
- package/dist-types/commands/DeleteFileCommand.d.ts +80 -0
- package/dist-types/commands/DeleteGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/DeleteGuidelinesDirectoryCommand.d.ts +11 -7
- package/dist-types/commands/DeleteSkillCommand.d.ts +80 -0
- package/dist-types/commands/DeleteSkillFileCommand.d.ts +83 -0
- package/dist-types/commands/DislikeAnswerCommand.d.ts +11 -7
- package/dist-types/commands/DownloadFileCommand.d.ts +95 -0
- package/dist-types/commands/ExecuteAgentCommand.d.ts +28 -7
- package/dist-types/commands/GetAgentCommand.d.ts +69 -16
- package/dist-types/commands/GetChatCommand.d.ts +11 -7
- package/dist-types/commands/GetFileCommand.d.ts +93 -0
- package/dist-types/commands/GetGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/GetOrganizationSettingsCommand.d.ts +11 -7
- package/dist-types/commands/GetSettingsCommand.d.ts +11 -7
- package/dist-types/commands/GetSkillCommand.d.ts +103 -0
- package/dist-types/commands/GetSkillFileDownloadCommand.d.ts +86 -0
- package/dist-types/commands/LikeAnswerCommand.d.ts +11 -7
- package/dist-types/commands/ListAgentFeedbacksCommand.d.ts +11 -7
- package/dist-types/commands/ListAgentsCommand.d.ts +69 -16
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +11 -7
- package/dist-types/commands/ListChatsCommand.d.ts +11 -7
- package/dist-types/commands/ListFeedbacksCommand.d.ts +11 -7
- package/dist-types/commands/ListGuidelinesCommand.d.ts +11 -7
- package/dist-types/commands/ListGuidelinesDirectoriesCommand.d.ts +11 -7
- package/dist-types/commands/ListGuidelinesNamesCommand.d.ts +11 -7
- package/dist-types/commands/ListSkillsCommand.d.ts +92 -0
- package/dist-types/commands/PatchOrganizationSettingsCommand.d.ts +11 -7
- package/dist-types/commands/PatchSettingsCommand.d.ts +11 -7
- package/dist-types/commands/UpdateAgentCommand.d.ts +127 -25
- package/dist-types/commands/UpdateGuidelineAccessCommand.d.ts +11 -7
- package/dist-types/commands/UpdateGuidelineCommand.d.ts +11 -7
- package/dist-types/commands/UpdateGuidelinesDirectoryCommand.d.ts +11 -7
- package/dist-types/commands/UpdateSkillCommand.d.ts +106 -0
- package/dist-types/commands/index.d.ts +12 -1
- 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 +4 -3
- package/dist-types/index.d.ts +5 -1
- package/dist-types/models/WilmaServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +129 -0
- package/dist-types/models/errors.d.ts +35 -0
- package/dist-types/models/models_0.d.ts +640 -162
- package/dist-types/runtimeConfig.browser.d.ts +37 -13
- package/dist-types/runtimeConfig.d.ts +36 -12
- package/dist-types/runtimeConfig.native.d.ts +37 -13
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +172 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1125
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1063
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -263
package/dist-es/Wilma.js
CHANGED
|
@@ -1,49 +1,69 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { CreateAgentCommand, } from "./commands/CreateAgentCommand";
|
|
3
3
|
import { CreateGuidelineCommand, } from "./commands/CreateGuidelineCommand";
|
|
4
4
|
import { CreateGuidelinesDirectoryCommand, } from "./commands/CreateGuidelinesDirectoryCommand";
|
|
5
|
+
import { CreateSkillCommand, } from "./commands/CreateSkillCommand";
|
|
6
|
+
import { CreateSkillFileUploadCommand, } from "./commands/CreateSkillFileUploadCommand";
|
|
5
7
|
import { DeleteAgentCommand, } from "./commands/DeleteAgentCommand";
|
|
6
8
|
import { DeleteChatCommand, } from "./commands/DeleteChatCommand";
|
|
9
|
+
import { DeleteFileCommand, } from "./commands/DeleteFileCommand";
|
|
7
10
|
import { DeleteGuidelineCommand, } from "./commands/DeleteGuidelineCommand";
|
|
8
11
|
import { DeleteGuidelinesDirectoryCommand, } from "./commands/DeleteGuidelinesDirectoryCommand";
|
|
12
|
+
import { DeleteSkillCommand, } from "./commands/DeleteSkillCommand";
|
|
13
|
+
import { DeleteSkillFileCommand, } from "./commands/DeleteSkillFileCommand";
|
|
9
14
|
import { DislikeAnswerCommand, } from "./commands/DislikeAnswerCommand";
|
|
15
|
+
import { DownloadFileCommand, } from "./commands/DownloadFileCommand";
|
|
10
16
|
import { ExecuteAgentCommand, } from "./commands/ExecuteAgentCommand";
|
|
11
|
-
import { GetAgentCommand
|
|
12
|
-
import { GetChatCommand
|
|
17
|
+
import { GetAgentCommand } from "./commands/GetAgentCommand";
|
|
18
|
+
import { GetChatCommand } from "./commands/GetChatCommand";
|
|
19
|
+
import { GetFileCommand } from "./commands/GetFileCommand";
|
|
13
20
|
import { GetGuidelineCommand, } from "./commands/GetGuidelineCommand";
|
|
14
21
|
import { GetOrganizationSettingsCommand, } from "./commands/GetOrganizationSettingsCommand";
|
|
15
22
|
import { GetSettingsCommand, } from "./commands/GetSettingsCommand";
|
|
23
|
+
import { GetSkillCommand } from "./commands/GetSkillCommand";
|
|
24
|
+
import { GetSkillFileDownloadCommand, } from "./commands/GetSkillFileDownloadCommand";
|
|
16
25
|
import { LikeAnswerCommand, } from "./commands/LikeAnswerCommand";
|
|
17
26
|
import { ListAgentFeedbacksCommand, } from "./commands/ListAgentFeedbacksCommand";
|
|
18
27
|
import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
|
|
19
28
|
import { ListAgentsNamesCommand, } from "./commands/ListAgentsNamesCommand";
|
|
20
|
-
import { ListChatsCommand
|
|
29
|
+
import { ListChatsCommand } from "./commands/ListChatsCommand";
|
|
21
30
|
import { ListFeedbacksCommand, } from "./commands/ListFeedbacksCommand";
|
|
22
31
|
import { ListGuidelinesCommand, } from "./commands/ListGuidelinesCommand";
|
|
23
32
|
import { ListGuidelinesDirectoriesCommand, } from "./commands/ListGuidelinesDirectoriesCommand";
|
|
24
33
|
import { ListGuidelinesNamesCommand, } from "./commands/ListGuidelinesNamesCommand";
|
|
34
|
+
import { ListSkillsCommand, } from "./commands/ListSkillsCommand";
|
|
25
35
|
import { PatchOrganizationSettingsCommand, } from "./commands/PatchOrganizationSettingsCommand";
|
|
26
36
|
import { PatchSettingsCommand, } from "./commands/PatchSettingsCommand";
|
|
27
37
|
import { UpdateAgentCommand, } from "./commands/UpdateAgentCommand";
|
|
28
38
|
import { UpdateGuidelineAccessCommand, } from "./commands/UpdateGuidelineAccessCommand";
|
|
29
39
|
import { UpdateGuidelineCommand, } from "./commands/UpdateGuidelineCommand";
|
|
30
40
|
import { UpdateGuidelinesDirectoryCommand, } from "./commands/UpdateGuidelinesDirectoryCommand";
|
|
31
|
-
import {
|
|
41
|
+
import { UpdateSkillCommand, } from "./commands/UpdateSkillCommand";
|
|
42
|
+
import { WilmaClient } from "./WilmaClient";
|
|
32
43
|
const commands = {
|
|
33
44
|
CreateAgentCommand,
|
|
34
45
|
CreateGuidelineCommand,
|
|
35
46
|
CreateGuidelinesDirectoryCommand,
|
|
47
|
+
CreateSkillCommand,
|
|
48
|
+
CreateSkillFileUploadCommand,
|
|
36
49
|
DeleteAgentCommand,
|
|
37
50
|
DeleteChatCommand,
|
|
51
|
+
DeleteFileCommand,
|
|
38
52
|
DeleteGuidelineCommand,
|
|
39
53
|
DeleteGuidelinesDirectoryCommand,
|
|
54
|
+
DeleteSkillCommand,
|
|
55
|
+
DeleteSkillFileCommand,
|
|
40
56
|
DislikeAnswerCommand,
|
|
57
|
+
DownloadFileCommand,
|
|
41
58
|
ExecuteAgentCommand,
|
|
42
59
|
GetAgentCommand,
|
|
43
60
|
GetChatCommand,
|
|
61
|
+
GetFileCommand,
|
|
44
62
|
GetGuidelineCommand,
|
|
45
63
|
GetOrganizationSettingsCommand,
|
|
46
64
|
GetSettingsCommand,
|
|
65
|
+
GetSkillCommand,
|
|
66
|
+
GetSkillFileDownloadCommand,
|
|
47
67
|
LikeAnswerCommand,
|
|
48
68
|
ListAgentFeedbacksCommand,
|
|
49
69
|
ListAgentsCommand,
|
|
@@ -53,12 +73,14 @@ const commands = {
|
|
|
53
73
|
ListGuidelinesCommand,
|
|
54
74
|
ListGuidelinesDirectoriesCommand,
|
|
55
75
|
ListGuidelinesNamesCommand,
|
|
76
|
+
ListSkillsCommand,
|
|
56
77
|
PatchOrganizationSettingsCommand,
|
|
57
78
|
PatchSettingsCommand,
|
|
58
79
|
UpdateAgentCommand,
|
|
59
80
|
UpdateGuidelineCommand,
|
|
60
81
|
UpdateGuidelineAccessCommand,
|
|
61
82
|
UpdateGuidelinesDirectoryCommand,
|
|
83
|
+
UpdateSkillCommand,
|
|
62
84
|
};
|
|
63
85
|
export class Wilma extends WilmaClient {
|
|
64
86
|
}
|
package/dist-es/WilmaClient.js
CHANGED
|
@@ -1,35 +1,43 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
|
|
2
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
3
|
+
import { Client as __Client, } from "@smithy/core/client";
|
|
4
|
+
import { resolveEndpointConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { getContentLengthPlugin } from "@smithy/core/protocols";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { defaultWilmaHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
1
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
2
|
-
import { resolveRuntimeExtensions
|
|
3
|
-
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
5
|
-
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
6
|
-
import { Client as __Client, } from "@smithy/smithy-client";
|
|
7
|
-
import { authorizationMiddleware } from '@wildix/smithy-utils';
|
|
11
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
8
12
|
export { __Client };
|
|
9
13
|
export class WilmaClient extends __Client {
|
|
10
14
|
config;
|
|
11
15
|
constructor(...[configuration]) {
|
|
12
|
-
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
13
17
|
super(_config_0);
|
|
14
18
|
this.initConfig = _config_0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
path: ''
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
const config = { ..._config_3, endpoint };
|
|
28
|
-
this.config = config;
|
|
29
|
-
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveEndpointConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
|
|
26
|
+
this.config = _config_7;
|
|
27
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
30
28
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
29
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
32
30
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
35
|
+
httpAuthSchemeParametersProvider: defaultWilmaHttpAuthSchemeParametersProvider,
|
|
36
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
37
|
+
"smithy.api#httpBearerAuth": config.token,
|
|
38
|
+
}),
|
|
39
|
+
}));
|
|
40
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
33
41
|
}
|
|
34
42
|
destroy() {
|
|
35
43
|
super.destroy();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _token = runtimeConfig.token;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setToken(token) {
|
|
25
|
+
_token = token;
|
|
26
|
+
},
|
|
27
|
+
token() {
|
|
28
|
+
return _token;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
token: config.token(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
|
|
3
|
+
export const defaultWilmaHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
|
|
9
|
+
return {
|
|
10
|
+
schemeId: "smithy.api#httpBearerAuth",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function createWildixAuthPbxHttpAuthOption(authParameters) {
|
|
14
|
+
return {
|
|
15
|
+
schemeId: "wildix.auth#pbx",
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function createWildixAuthS2sHttpAuthOption(authParameters) {
|
|
19
|
+
return {
|
|
20
|
+
schemeId: "wildix.auth#s2s",
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
24
|
+
return {
|
|
25
|
+
schemeId: "wildix.auth#xbs",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export const defaultWilmaHttpAuthSchemeProvider = (authParameters) => {
|
|
29
|
+
const options = [];
|
|
30
|
+
switch (authParameters.operation) {
|
|
31
|
+
default: {
|
|
32
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
33
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
34
|
+
options.push(createWildixAuthPbxHttpAuthOption(authParameters));
|
|
35
|
+
options.push(createWildixAuthXbsHttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
|
+
const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
|
|
42
|
+
return Object.assign(config, {
|
|
43
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
|
+
token,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateAgent$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateAgentCommand extends $Command
|
|
6
|
+
export class CreateAgentCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "CreateAgent", {})
|
|
12
13
|
.n("WilmaClient", "CreateAgentCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateAgentCommand)
|
|
15
|
-
.de(de_CreateAgentCommand)
|
|
14
|
+
.sc(CreateAgent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateGuideline$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateGuidelineCommand extends $Command
|
|
6
|
+
export class CreateGuidelineCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "CreateGuideline", {})
|
|
12
13
|
.n("WilmaClient", "CreateGuidelineCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateGuidelineCommand)
|
|
15
|
-
.de(de_CreateGuidelineCommand)
|
|
14
|
+
.sc(CreateGuideline$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateGuidelinesDirectory$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class CreateGuidelinesDirectoryCommand extends $Command
|
|
6
|
+
export class CreateGuidelinesDirectoryCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "CreateGuidelinesDirectory", {})
|
|
12
13
|
.n("WilmaClient", "CreateGuidelinesDirectoryCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_CreateGuidelinesDirectoryCommand)
|
|
15
|
-
.de(de_CreateGuidelinesDirectoryCommand)
|
|
14
|
+
.sc(CreateGuidelinesDirectory$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateSkill$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateSkillCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Wilma", "CreateSkill", {})
|
|
13
|
+
.n("WilmaClient", "CreateSkillCommand")
|
|
14
|
+
.sc(CreateSkill$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateSkillFileUpload$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateSkillFileUploadCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Wilma", "CreateSkillFileUpload", {})
|
|
13
|
+
.n("WilmaClient", "CreateSkillFileUploadCommand")
|
|
14
|
+
.sc(CreateSkillFileUpload$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteAgent$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DeleteAgentCommand extends $Command
|
|
6
|
+
export class DeleteAgentCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "DeleteAgent", {})
|
|
12
13
|
.n("WilmaClient", "DeleteAgentCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DeleteAgentCommand)
|
|
15
|
-
.de(de_DeleteAgentCommand)
|
|
14
|
+
.sc(DeleteAgent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteChat$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DeleteChatCommand extends $Command
|
|
6
|
+
export class DeleteChatCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "DeleteChat", {})
|
|
12
13
|
.n("WilmaClient", "DeleteChatCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DeleteChatCommand)
|
|
15
|
-
.de(de_DeleteChatCommand)
|
|
14
|
+
.sc(DeleteChat$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteFile$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteFileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Wilma", "DeleteFile", {})
|
|
13
|
+
.n("WilmaClient", "DeleteFileCommand")
|
|
14
|
+
.sc(DeleteFile$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteGuideline$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DeleteGuidelineCommand extends $Command
|
|
6
|
+
export class DeleteGuidelineCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "DeleteGuideline", {})
|
|
12
13
|
.n("WilmaClient", "DeleteGuidelineCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DeleteGuidelineCommand)
|
|
15
|
-
.de(de_DeleteGuidelineCommand)
|
|
14
|
+
.sc(DeleteGuideline$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteGuidelinesDirectory$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DeleteGuidelinesDirectoryCommand extends $Command
|
|
6
|
+
export class DeleteGuidelinesDirectoryCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "DeleteGuidelinesDirectory", {})
|
|
12
13
|
.n("WilmaClient", "DeleteGuidelinesDirectoryCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DeleteGuidelinesDirectoryCommand)
|
|
15
|
-
.de(de_DeleteGuidelinesDirectoryCommand)
|
|
14
|
+
.sc(DeleteGuidelinesDirectory$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteSkill$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteSkillCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Wilma", "DeleteSkill", {})
|
|
13
|
+
.n("WilmaClient", "DeleteSkillCommand")
|
|
14
|
+
.sc(DeleteSkill$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteSkillFile$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteSkillFileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Wilma", "DeleteSkillFile", {})
|
|
13
|
+
.n("WilmaClient", "DeleteSkillFileCommand")
|
|
14
|
+
.sc(DeleteSkillFile$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DislikeAnswer$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class DislikeAnswerCommand extends $Command
|
|
6
|
+
export class DislikeAnswerCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "DislikeAnswer", {})
|
|
12
13
|
.n("WilmaClient", "DislikeAnswerCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_DislikeAnswerCommand)
|
|
15
|
-
.de(de_DislikeAnswerCommand)
|
|
14
|
+
.sc(DislikeAnswer$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DownloadFile$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DownloadFileCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Wilma", "DownloadFile", {})
|
|
13
|
+
.n("WilmaClient", "DownloadFileCommand")
|
|
14
|
+
.sc(DownloadFile$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ExecuteAgent$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class ExecuteAgentCommand extends $Command
|
|
6
|
+
export class ExecuteAgentCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "ExecuteAgent", {})
|
|
12
13
|
.n("WilmaClient", "ExecuteAgentCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_ExecuteAgentCommand)
|
|
15
|
-
.de(de_ExecuteAgentCommand)
|
|
14
|
+
.sc(ExecuteAgent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetAgent$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class GetAgentCommand extends $Command
|
|
6
|
+
export class GetAgentCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Wilma", "GetAgent", {})
|
|
12
13
|
.n("WilmaClient", "GetAgentCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_GetAgentCommand)
|
|
15
|
-
.de(de_GetAgentCommand)
|
|
14
|
+
.sc(GetAgent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|