@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,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 { GetAssistantAssociationRequestFilterSensitiveLog, GetAssistantAssociationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetAssistantAssociationCommand, serializeAws_restJson1GetAssistantAssociationCommand, } from "../protocols/Aws_restJson1";
5
- export class GetAssistantAssociationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetAssistantAssociationCommand.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 = "GetAssistantAssociationCommand";
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 = "GetAssistantAssociationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetAssistantAssociationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetAssistantAssociationResponseFilterSensitiveLog,
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
+ GetAssistantAssociationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetAssistantAssociationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetAssistantAssociationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetAssistantAssociationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetAssistantAssociationCommand;
38
+ }($Command));
39
+ export { GetAssistantAssociationCommand };
@@ -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 { GetAssistantRequestFilterSensitiveLog, GetAssistantResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetAssistantCommand, serializeAws_restJson1GetAssistantCommand, } from "../protocols/Aws_restJson1";
5
- export class GetAssistantCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetAssistantCommand.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 = "GetAssistantCommand";
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 = "GetAssistantCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetAssistantRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetAssistantResponseFilterSensitiveLog,
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
+ GetAssistantCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetAssistantCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetAssistantCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetAssistantCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetAssistantCommand;
38
+ }($Command));
39
+ export { GetAssistantCommand };
@@ -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 { GetContentRequestFilterSensitiveLog, GetContentResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetContentCommand, serializeAws_restJson1GetContentCommand, } from "../protocols/Aws_restJson1";
5
- export class GetContentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetContentCommand.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 = "GetContentCommand";
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 = "GetContentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetContentRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetContentResponseFilterSensitiveLog,
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
+ GetContentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetContentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetContentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetContentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetContentCommand;
38
+ }($Command));
39
+ export { GetContentCommand };
@@ -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 { GetContentSummaryRequestFilterSensitiveLog, GetContentSummaryResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetContentSummaryCommand, serializeAws_restJson1GetContentSummaryCommand, } from "../protocols/Aws_restJson1";
5
- export class GetContentSummaryCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetContentSummaryCommand.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 = "GetContentSummaryCommand";
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 = "GetContentSummaryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetContentSummaryRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetContentSummaryResponseFilterSensitiveLog,
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
+ GetContentSummaryCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetContentSummaryCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetContentSummaryCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetContentSummaryCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetContentSummaryCommand;
38
+ }($Command));
39
+ export { GetContentSummaryCommand };
@@ -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 { GetKnowledgeBaseRequestFilterSensitiveLog, GetKnowledgeBaseResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetKnowledgeBaseCommand, serializeAws_restJson1GetKnowledgeBaseCommand, } from "../protocols/Aws_restJson1";
5
- export class GetKnowledgeBaseCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetKnowledgeBaseCommand.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 = "GetKnowledgeBaseCommand";
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 = "GetKnowledgeBaseCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetKnowledgeBaseRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetKnowledgeBaseResponseFilterSensitiveLog,
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
+ GetKnowledgeBaseCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetKnowledgeBaseCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetKnowledgeBaseCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetKnowledgeBaseCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetKnowledgeBaseCommand;
38
+ }($Command));
39
+ export { GetKnowledgeBaseCommand };
@@ -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 { GetRecommendationsRequestFilterSensitiveLog, GetRecommendationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetRecommendationsCommand, serializeAws_restJson1GetRecommendationsCommand, } from "../protocols/Aws_restJson1";
5
- export class GetRecommendationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetRecommendationsCommand.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 = "GetRecommendationsCommand";
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 = "GetRecommendationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetRecommendationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetRecommendationsResponseFilterSensitiveLog,
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
+ GetRecommendationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetRecommendationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetRecommendationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetRecommendationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetRecommendationsCommand;
38
+ }($Command));
39
+ export { GetRecommendationsCommand };
@@ -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 { GetSessionRequestFilterSensitiveLog, GetSessionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetSessionCommand, serializeAws_restJson1GetSessionCommand, } from "../protocols/Aws_restJson1";
5
- export class GetSessionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetSessionCommand.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 = "GetSessionCommand";
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 = "GetSessionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetSessionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetSessionResponseFilterSensitiveLog,
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
+ GetSessionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetSessionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetSessionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetSessionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetSessionCommand;
38
+ }($Command));
39
+ export { GetSessionCommand };
@@ -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 { ListAssistantAssociationsRequestFilterSensitiveLog, ListAssistantAssociationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListAssistantAssociationsCommand, serializeAws_restJson1ListAssistantAssociationsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListAssistantAssociationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListAssistantAssociationsCommand.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 = "ListAssistantAssociationsCommand";
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 = "ListAssistantAssociationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListAssistantAssociationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListAssistantAssociationsResponseFilterSensitiveLog,
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
+ ListAssistantAssociationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListAssistantAssociationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListAssistantAssociationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListAssistantAssociationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListAssistantAssociationsCommand;
38
+ }($Command));
39
+ export { ListAssistantAssociationsCommand };
@@ -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 { ListAssistantsRequestFilterSensitiveLog, ListAssistantsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListAssistantsCommand, serializeAws_restJson1ListAssistantsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListAssistantsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListAssistantsCommand.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 = "ListAssistantsCommand";
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 = "ListAssistantsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListAssistantsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListAssistantsResponseFilterSensitiveLog,
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
+ ListAssistantsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListAssistantsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListAssistantsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListAssistantsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListAssistantsCommand;
38
+ }($Command));
39
+ export { ListAssistantsCommand };
@@ -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 { ListContentsRequestFilterSensitiveLog, ListContentsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListContentsCommand, serializeAws_restJson1ListContentsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListContentsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListContentsCommand.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 = "ListContentsCommand";
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 = "ListContentsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListContentsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListContentsResponseFilterSensitiveLog,
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
+ ListContentsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListContentsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListContentsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListContentsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListContentsCommand;
38
+ }($Command));
39
+ export { ListContentsCommand };