@aws-sdk/client-wisdom 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Wisdom.js +137 -130
  4. package/dist-es/WisdomClient.js +28 -22
  5. package/dist-es/commands/CreateAssistantAssociationCommand.js +28 -21
  6. package/dist-es/commands/CreateAssistantCommand.js +28 -21
  7. package/dist-es/commands/CreateContentCommand.js +28 -21
  8. package/dist-es/commands/CreateKnowledgeBaseCommand.js +28 -21
  9. package/dist-es/commands/CreateSessionCommand.js +28 -21
  10. package/dist-es/commands/DeleteAssistantAssociationCommand.js +28 -21
  11. package/dist-es/commands/DeleteAssistantCommand.js +28 -21
  12. package/dist-es/commands/DeleteContentCommand.js +28 -21
  13. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +28 -21
  14. package/dist-es/commands/GetAssistantAssociationCommand.js +28 -21
  15. package/dist-es/commands/GetAssistantCommand.js +28 -21
  16. package/dist-es/commands/GetContentCommand.js +28 -21
  17. package/dist-es/commands/GetContentSummaryCommand.js +28 -21
  18. package/dist-es/commands/GetKnowledgeBaseCommand.js +28 -21
  19. package/dist-es/commands/GetRecommendationsCommand.js +28 -21
  20. package/dist-es/commands/GetSessionCommand.js +28 -21
  21. package/dist-es/commands/ListAssistantAssociationsCommand.js +28 -21
  22. package/dist-es/commands/ListAssistantsCommand.js +28 -21
  23. package/dist-es/commands/ListContentsCommand.js +28 -21
  24. package/dist-es/commands/ListKnowledgeBasesCommand.js +28 -21
  25. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  26. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +28 -21
  27. package/dist-es/commands/PutFeedbackCommand.js +28 -21
  28. package/dist-es/commands/QueryAssistantCommand.js +28 -21
  29. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +28 -21
  30. package/dist-es/commands/SearchContentCommand.js +28 -21
  31. package/dist-es/commands/SearchSessionsCommand.js +28 -21
  32. package/dist-es/commands/StartContentUploadCommand.js +28 -21
  33. package/dist-es/commands/TagResourceCommand.js +28 -21
  34. package/dist-es/commands/UntagResourceCommand.js +28 -21
  35. package/dist-es/commands/UpdateContentCommand.js +28 -21
  36. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +28 -21
  37. package/dist-es/endpoints.js +8 -8
  38. package/dist-es/models/WisdomServiceException.js +10 -5
  39. package/dist-es/models/models_0.js +207 -409
  40. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +68 -25
  41. package/dist-es/pagination/ListAssistantsPaginator.js +68 -25
  42. package/dist-es/pagination/ListContentsPaginator.js +68 -25
  43. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +68 -25
  44. package/dist-es/pagination/QueryAssistantPaginator.js +68 -25
  45. package/dist-es/pagination/SearchContentPaginator.js +68 -25
  46. package/dist-es/pagination/SearchSessionsPaginator.js +68 -25
  47. package/dist-es/protocols/Aws_restJson1.js +3086 -2164
  48. package/dist-es/runtimeConfig.browser.js +12 -26
  49. package/dist-es/runtimeConfig.js +12 -30
  50. package/dist-es/runtimeConfig.native.js +5 -8
  51. package/dist-es/runtimeConfig.shared.js +11 -8
  52. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class WisdomClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var WisdomClient = (function (_super) {
13
+ __extends(WisdomClient, _super);
14
+ function WisdomClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ WisdomClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return WisdomClient;
38
+ }(__Client));
39
+ export { WisdomClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateAssistantAssociationRequestFilterSensitiveLog, CreateAssistantAssociationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateAssistantAssociationCommand, serializeAws_restJson1CreateAssistantAssociationCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateAssistantAssociationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateAssistantAssociationCommand = (function (_super) {
7
+ __extends(CreateAssistantAssociationCommand, _super);
8
+ function CreateAssistantAssociationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateAssistantAssociationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "CreateAssistantAssociationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "CreateAssistantAssociationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateAssistantAssociationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateAssistantAssociationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateAssistantAssociationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateAssistantAssociationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateAssistantAssociationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateAssistantAssociationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateAssistantAssociationCommand;
38
+ }($Command));
39
+ export { CreateAssistantAssociationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateAssistantRequestFilterSensitiveLog, CreateAssistantResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateAssistantCommand, serializeAws_restJson1CreateAssistantCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateAssistantCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateAssistantCommand = (function (_super) {
7
+ __extends(CreateAssistantCommand, _super);
8
+ function CreateAssistantCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateAssistantCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "CreateAssistantCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "CreateAssistantCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateAssistantRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateAssistantResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateAssistantCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateAssistantCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateAssistantCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateAssistantCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateAssistantCommand;
38
+ }($Command));
39
+ export { CreateAssistantCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateContentRequestFilterSensitiveLog, CreateContentResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateContentCommand, serializeAws_restJson1CreateContentCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateContentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateContentCommand = (function (_super) {
7
+ __extends(CreateContentCommand, _super);
8
+ function CreateContentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "CreateContentCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "CreateContentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateContentRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateContentResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateContentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateContentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateContentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateContentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateContentCommand;
38
+ }($Command));
39
+ export { CreateContentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateKnowledgeBaseRequestFilterSensitiveLog, CreateKnowledgeBaseResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateKnowledgeBaseCommand, serializeAws_restJson1CreateKnowledgeBaseCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateKnowledgeBaseCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateKnowledgeBaseCommand = (function (_super) {
7
+ __extends(CreateKnowledgeBaseCommand, _super);
8
+ function CreateKnowledgeBaseCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateKnowledgeBaseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "CreateKnowledgeBaseCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "CreateKnowledgeBaseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateKnowledgeBaseRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateKnowledgeBaseResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateKnowledgeBaseCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateKnowledgeBaseCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateKnowledgeBaseCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateKnowledgeBaseCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateKnowledgeBaseCommand;
38
+ }($Command));
39
+ export { CreateKnowledgeBaseCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateSessionRequestFilterSensitiveLog, CreateSessionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateSessionCommand, serializeAws_restJson1CreateSessionCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateSessionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateSessionCommand = (function (_super) {
7
+ __extends(CreateSessionCommand, _super);
8
+ function CreateSessionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "CreateSessionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "CreateSessionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateSessionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateSessionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateSessionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateSessionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateSessionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateSessionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateSessionCommand;
38
+ }($Command));
39
+ export { CreateSessionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteAssistantAssociationRequestFilterSensitiveLog, DeleteAssistantAssociationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteAssistantAssociationCommand, serializeAws_restJson1DeleteAssistantAssociationCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteAssistantAssociationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteAssistantAssociationCommand = (function (_super) {
7
+ __extends(DeleteAssistantAssociationCommand, _super);
8
+ function DeleteAssistantAssociationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteAssistantAssociationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "DeleteAssistantAssociationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "DeleteAssistantAssociationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteAssistantAssociationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteAssistantAssociationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteAssistantAssociationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteAssistantAssociationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteAssistantAssociationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteAssistantAssociationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteAssistantAssociationCommand;
38
+ }($Command));
39
+ export { DeleteAssistantAssociationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteAssistantRequestFilterSensitiveLog, DeleteAssistantResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteAssistantCommand, serializeAws_restJson1DeleteAssistantCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteAssistantCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteAssistantCommand = (function (_super) {
7
+ __extends(DeleteAssistantCommand, _super);
8
+ function DeleteAssistantCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteAssistantCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "DeleteAssistantCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "DeleteAssistantCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteAssistantRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteAssistantResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteAssistantCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteAssistantCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteAssistantCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteAssistantCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteAssistantCommand;
38
+ }($Command));
39
+ export { DeleteAssistantCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteContentRequestFilterSensitiveLog, DeleteContentResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteContentCommand, serializeAws_restJson1DeleteContentCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteContentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteContentCommand = (function (_super) {
7
+ __extends(DeleteContentCommand, _super);
8
+ function DeleteContentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "DeleteContentCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "DeleteContentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteContentRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteContentResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteContentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteContentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteContentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteContentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteContentCommand;
38
+ }($Command));
39
+ export { DeleteContentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteKnowledgeBaseRequestFilterSensitiveLog, DeleteKnowledgeBaseResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteKnowledgeBaseCommand, serializeAws_restJson1DeleteKnowledgeBaseCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteKnowledgeBaseCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteKnowledgeBaseCommand = (function (_super) {
7
+ __extends(DeleteKnowledgeBaseCommand, _super);
8
+ function DeleteKnowledgeBaseCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteKnowledgeBaseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "WisdomClient";
15
- const commandName = "DeleteKnowledgeBaseCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "WisdomClient";
18
+ var commandName = "DeleteKnowledgeBaseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteKnowledgeBaseRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteKnowledgeBaseResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteKnowledgeBaseCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteKnowledgeBaseCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteKnowledgeBaseCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteKnowledgeBaseCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteKnowledgeBaseCommand;
38
+ }($Command));
39
+ export { DeleteKnowledgeBaseCommand };