@aws-sdk/client-wisdom 3.187.0 → 3.188.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 (69) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Wisdom.js +0 -15
  3. package/dist-cjs/commands/index.js +0 -1
  4. package/dist-cjs/models/models_0.js +3 -25
  5. package/dist-cjs/protocols/Aws_restJson1.js +2 -88
  6. package/dist-es/Wisdom.js +126 -148
  7. package/dist-es/WisdomClient.js +22 -28
  8. package/dist-es/commands/CreateAssistantAssociationCommand.js +21 -28
  9. package/dist-es/commands/CreateAssistantCommand.js +21 -28
  10. package/dist-es/commands/CreateContentCommand.js +21 -28
  11. package/dist-es/commands/CreateKnowledgeBaseCommand.js +21 -28
  12. package/dist-es/commands/CreateSessionCommand.js +21 -28
  13. package/dist-es/commands/DeleteAssistantAssociationCommand.js +21 -28
  14. package/dist-es/commands/DeleteAssistantCommand.js +21 -28
  15. package/dist-es/commands/DeleteContentCommand.js +21 -28
  16. package/dist-es/commands/DeleteKnowledgeBaseCommand.js +21 -28
  17. package/dist-es/commands/GetAssistantAssociationCommand.js +21 -28
  18. package/dist-es/commands/GetAssistantCommand.js +21 -28
  19. package/dist-es/commands/GetContentCommand.js +21 -28
  20. package/dist-es/commands/GetContentSummaryCommand.js +21 -28
  21. package/dist-es/commands/GetKnowledgeBaseCommand.js +21 -28
  22. package/dist-es/commands/GetRecommendationsCommand.js +21 -28
  23. package/dist-es/commands/GetSessionCommand.js +21 -28
  24. package/dist-es/commands/ListAssistantAssociationsCommand.js +21 -28
  25. package/dist-es/commands/ListAssistantsCommand.js +21 -28
  26. package/dist-es/commands/ListContentsCommand.js +21 -28
  27. package/dist-es/commands/ListKnowledgeBasesCommand.js +21 -28
  28. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  29. package/dist-es/commands/NotifyRecommendationsReceivedCommand.js +21 -28
  30. package/dist-es/commands/QueryAssistantCommand.js +21 -28
  31. package/dist-es/commands/RemoveKnowledgeBaseTemplateUriCommand.js +21 -28
  32. package/dist-es/commands/SearchContentCommand.js +21 -28
  33. package/dist-es/commands/SearchSessionsCommand.js +21 -28
  34. package/dist-es/commands/StartContentUploadCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateContentCommand.js +21 -28
  38. package/dist-es/commands/UpdateKnowledgeBaseTemplateUriCommand.js +21 -28
  39. package/dist-es/commands/index.js +0 -1
  40. package/dist-es/endpoints.js +8 -8
  41. package/dist-es/models/WisdomServiceException.js +5 -10
  42. package/dist-es/models/models_0.js +400 -217
  43. package/dist-es/pagination/ListAssistantAssociationsPaginator.js +25 -68
  44. package/dist-es/pagination/ListAssistantsPaginator.js +25 -68
  45. package/dist-es/pagination/ListContentsPaginator.js +25 -68
  46. package/dist-es/pagination/ListKnowledgeBasesPaginator.js +25 -68
  47. package/dist-es/pagination/QueryAssistantPaginator.js +25 -68
  48. package/dist-es/pagination/SearchContentPaginator.js +25 -68
  49. package/dist-es/pagination/SearchSessionsPaginator.js +25 -68
  50. package/dist-es/protocols/Aws_restJson1.js +2087 -3093
  51. package/dist-es/runtimeConfig.browser.js +26 -12
  52. package/dist-es/runtimeConfig.js +30 -12
  53. package/dist-es/runtimeConfig.native.js +8 -5
  54. package/dist-es/runtimeConfig.shared.js +8 -11
  55. package/dist-types/Wisdom.d.ts +0 -11
  56. package/dist-types/WisdomClient.d.ts +2 -3
  57. package/dist-types/commands/index.d.ts +0 -1
  58. package/dist-types/models/models_0.d.ts +0 -69
  59. package/dist-types/protocols/Aws_restJson1.d.ts +0 -3
  60. package/dist-types/ts3.4/Wisdom.d.ts +0 -17
  61. package/dist-types/ts3.4/WisdomClient.d.ts +0 -6
  62. package/dist-types/ts3.4/commands/index.d.ts +0 -1
  63. package/dist-types/ts3.4/models/models_0.d.ts +0 -31
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -12
  65. package/package.json +33 -33
  66. package/dist-cjs/commands/PutFeedbackCommand.js +0 -36
  67. package/dist-es/commands/PutFeedbackCommand.js +0 -39
  68. package/dist-types/commands/PutFeedbackCommand.d.ts +0 -39
  69. package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +0 -32
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetAssistantAssociationRequestFilterSensitiveLog, GetAssistantAssociationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAssistantAssociationCommand, serializeAws_restJson1GetAssistantAssociationCommand, } from "../protocols/Aws_restJson1";
6
- var GetAssistantAssociationCommand = (function (_super) {
7
- __extends(GetAssistantAssociationCommand, _super);
8
- function GetAssistantAssociationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAssistantAssociationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAssistantAssociationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetAssistantAssociationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetAssistantAssociationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAssistantAssociationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAssistantAssociationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAssistantAssociationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetAssistantAssociationCommand(input, context);
33
- };
34
- GetAssistantAssociationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAssistantAssociationCommand(output, context);
36
- };
37
- return GetAssistantAssociationCommand;
38
- }($Command));
39
- export { GetAssistantAssociationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetAssistantRequestFilterSensitiveLog, GetAssistantResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAssistantCommand, serializeAws_restJson1GetAssistantCommand, } from "../protocols/Aws_restJson1";
6
- var GetAssistantCommand = (function (_super) {
7
- __extends(GetAssistantCommand, _super);
8
- function GetAssistantCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAssistantCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAssistantCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetAssistantCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetAssistantCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAssistantRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAssistantResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAssistantCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetAssistantCommand(input, context);
33
- };
34
- GetAssistantCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAssistantCommand(output, context);
36
- };
37
- return GetAssistantCommand;
38
- }($Command));
39
- export { GetAssistantCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetContentRequestFilterSensitiveLog, GetContentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetContentCommand, serializeAws_restJson1GetContentCommand, } from "../protocols/Aws_restJson1";
6
- var GetContentCommand = (function (_super) {
7
- __extends(GetContentCommand, _super);
8
- function GetContentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetContentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetContentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetContentCommand(input, context);
33
- };
34
- GetContentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetContentCommand(output, context);
36
- };
37
- return GetContentCommand;
38
- }($Command));
39
- export { GetContentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetContentSummaryRequestFilterSensitiveLog, GetContentSummaryResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetContentSummaryCommand, serializeAws_restJson1GetContentSummaryCommand, } from "../protocols/Aws_restJson1";
6
- var GetContentSummaryCommand = (function (_super) {
7
- __extends(GetContentSummaryCommand, _super);
8
- function GetContentSummaryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContentSummaryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContentSummaryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetContentSummaryCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetContentSummaryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContentSummaryRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContentSummaryResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContentSummaryCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetContentSummaryCommand(input, context);
33
- };
34
- GetContentSummaryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetContentSummaryCommand(output, context);
36
- };
37
- return GetContentSummaryCommand;
38
- }($Command));
39
- export { GetContentSummaryCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetKnowledgeBaseRequestFilterSensitiveLog, GetKnowledgeBaseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetKnowledgeBaseCommand, serializeAws_restJson1GetKnowledgeBaseCommand, } from "../protocols/Aws_restJson1";
6
- var GetKnowledgeBaseCommand = (function (_super) {
7
- __extends(GetKnowledgeBaseCommand, _super);
8
- function GetKnowledgeBaseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetKnowledgeBaseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetKnowledgeBaseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetKnowledgeBaseCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetKnowledgeBaseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetKnowledgeBaseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetKnowledgeBaseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetKnowledgeBaseCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetKnowledgeBaseCommand(input, context);
33
- };
34
- GetKnowledgeBaseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetKnowledgeBaseCommand(output, context);
36
- };
37
- return GetKnowledgeBaseCommand;
38
- }($Command));
39
- export { GetKnowledgeBaseCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetRecommendationsRequestFilterSensitiveLog, GetRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetRecommendationsCommand, serializeAws_restJson1GetRecommendationsCommand, } from "../protocols/Aws_restJson1";
6
- var GetRecommendationsCommand = (function (_super) {
7
- __extends(GetRecommendationsCommand, _super);
8
- function GetRecommendationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetRecommendationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetRecommendationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetRecommendationsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetRecommendationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetRecommendationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetRecommendationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetRecommendationsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetRecommendationsCommand(input, context);
33
- };
34
- GetRecommendationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetRecommendationsCommand(output, context);
36
- };
37
- return GetRecommendationsCommand;
38
- }($Command));
39
- export { GetRecommendationsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetSessionRequestFilterSensitiveLog, GetSessionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetSessionCommand, serializeAws_restJson1GetSessionCommand, } from "../protocols/Aws_restJson1";
6
- var GetSessionCommand = (function (_super) {
7
- __extends(GetSessionCommand, _super);
8
- function GetSessionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSessionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "GetSessionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "GetSessionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSessionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSessionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSessionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetSessionCommand(input, context);
33
- };
34
- GetSessionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetSessionCommand(output, context);
36
- };
37
- return GetSessionCommand;
38
- }($Command));
39
- export { GetSessionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAssistantAssociationsRequestFilterSensitiveLog, ListAssistantAssociationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAssistantAssociationsCommand, serializeAws_restJson1ListAssistantAssociationsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAssistantAssociationsCommand = (function (_super) {
7
- __extends(ListAssistantAssociationsCommand, _super);
8
- function ListAssistantAssociationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssistantAssociationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssistantAssociationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "ListAssistantAssociationsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "ListAssistantAssociationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssistantAssociationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssistantAssociationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssistantAssociationsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListAssistantAssociationsCommand(input, context);
33
- };
34
- ListAssistantAssociationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAssistantAssociationsCommand(output, context);
36
- };
37
- return ListAssistantAssociationsCommand;
38
- }($Command));
39
- export { ListAssistantAssociationsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAssistantsRequestFilterSensitiveLog, ListAssistantsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAssistantsCommand, serializeAws_restJson1ListAssistantsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAssistantsCommand = (function (_super) {
7
- __extends(ListAssistantsCommand, _super);
8
- function ListAssistantsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAssistantsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAssistantsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "ListAssistantsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "ListAssistantsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAssistantsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAssistantsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAssistantsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListAssistantsCommand(input, context);
33
- };
34
- ListAssistantsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAssistantsCommand(output, context);
36
- };
37
- return ListAssistantsCommand;
38
- }($Command));
39
- export { ListAssistantsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListContentsRequestFilterSensitiveLog, ListContentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListContentsCommand, serializeAws_restJson1ListContentsCommand, } from "../protocols/Aws_restJson1";
6
- var ListContentsCommand = (function (_super) {
7
- __extends(ListContentsCommand, _super);
8
- function ListContentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListContentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListContentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "WisdomClient";
18
- var commandName = "ListContentsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "WisdomClient";
15
+ const commandName = "ListContentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListContentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListContentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListContentsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListContentsCommand(input, context);
33
- };
34
- ListContentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListContentsCommand(output, context);
36
- };
37
- return ListContentsCommand;
38
- }($Command));
39
- export { ListContentsCommand };
31
+ }
32
+ }