@aws-sdk/client-wisdom 3.451.0 → 3.454.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 (78) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/Wisdom.js +20 -0
  3. package/dist-cjs/commands/CreateQuickResponseCommand.js +52 -0
  4. package/dist-cjs/commands/DeleteImportJobCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteQuickResponseCommand.js +51 -0
  6. package/dist-cjs/commands/GetImportJobCommand.js +52 -0
  7. package/dist-cjs/commands/GetQuickResponseCommand.js +52 -0
  8. package/dist-cjs/commands/ListImportJobsCommand.js +51 -0
  9. package/dist-cjs/commands/ListQuickResponsesCommand.js +52 -0
  10. package/dist-cjs/commands/SearchQuickResponsesCommand.js +52 -0
  11. package/dist-cjs/commands/StartImportJobCommand.js +52 -0
  12. package/dist-cjs/commands/UpdateQuickResponseCommand.js +52 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +200 -1
  15. package/dist-cjs/pagination/ListImportJobsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListQuickResponsesPaginator.js +29 -0
  17. package/dist-cjs/pagination/SearchQuickResponsesPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +3 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +816 -18
  20. package/dist-es/Wisdom.js +20 -0
  21. package/dist-es/commands/CreateQuickResponseCommand.js +48 -0
  22. package/dist-es/commands/DeleteImportJobCommand.js +47 -0
  23. package/dist-es/commands/DeleteQuickResponseCommand.js +47 -0
  24. package/dist-es/commands/GetImportJobCommand.js +48 -0
  25. package/dist-es/commands/GetQuickResponseCommand.js +48 -0
  26. package/dist-es/commands/ListImportJobsCommand.js +47 -0
  27. package/dist-es/commands/ListQuickResponsesCommand.js +48 -0
  28. package/dist-es/commands/SearchQuickResponsesCommand.js +48 -0
  29. package/dist-es/commands/StartImportJobCommand.js +48 -0
  30. package/dist-es/commands/UpdateQuickResponseCommand.js +48 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/models/models_0.js +179 -0
  33. package/dist-es/pagination/ListImportJobsPaginator.js +25 -0
  34. package/dist-es/pagination/ListQuickResponsesPaginator.js +25 -0
  35. package/dist-es/pagination/SearchQuickResponsesPaginator.js +25 -0
  36. package/dist-es/pagination/index.js +3 -0
  37. package/dist-es/protocols/Aws_restJson1.js +794 -16
  38. package/dist-types/Wisdom.d.ts +70 -0
  39. package/dist-types/WisdomClient.d.ts +12 -2
  40. package/dist-types/commands/CreateQuickResponseCommand.d.ts +149 -0
  41. package/dist-types/commands/DeleteImportJobCommand.d.ts +87 -0
  42. package/dist-types/commands/DeleteQuickResponseCommand.d.ts +81 -0
  43. package/dist-types/commands/GetImportJobCommand.d.ts +106 -0
  44. package/dist-types/commands/GetQuickResponseCommand.d.ts +118 -0
  45. package/dist-types/commands/ListImportJobsCommand.d.ts +104 -0
  46. package/dist-types/commands/ListQuickResponsesCommand.d.ts +106 -0
  47. package/dist-types/commands/QueryAssistantCommand.d.ts +5 -0
  48. package/dist-types/commands/SearchQuickResponsesCommand.d.ts +163 -0
  49. package/dist-types/commands/StartContentUploadCommand.d.ts +1 -0
  50. package/dist-types/commands/StartImportJobCommand.d.ts +135 -0
  51. package/dist-types/commands/UpdateQuickResponseCommand.d.ts +149 -0
  52. package/dist-types/commands/index.d.ts +10 -0
  53. package/dist-types/models/models_0.d.ts +1631 -167
  54. package/dist-types/pagination/ListImportJobsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/ListQuickResponsesPaginator.d.ts +7 -0
  56. package/dist-types/pagination/SearchQuickResponsesPaginator.d.ts +7 -0
  57. package/dist-types/pagination/index.d.ts +3 -0
  58. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  59. package/dist-types/ts3.4/Wisdom.d.ts +170 -0
  60. package/dist-types/ts3.4/WisdomClient.d.ts +62 -2
  61. package/dist-types/ts3.4/commands/CreateQuickResponseCommand.d.ts +39 -0
  62. package/dist-types/ts3.4/commands/DeleteImportJobCommand.d.ts +38 -0
  63. package/dist-types/ts3.4/commands/DeleteQuickResponseCommand.d.ts +39 -0
  64. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +35 -0
  65. package/dist-types/ts3.4/commands/GetQuickResponseCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/ListImportJobsCommand.d.ts +38 -0
  67. package/dist-types/ts3.4/commands/ListQuickResponsesCommand.d.ts +39 -0
  68. package/dist-types/ts3.4/commands/SearchQuickResponsesCommand.d.ts +42 -0
  69. package/dist-types/ts3.4/commands/StartImportJobCommand.d.ts +38 -0
  70. package/dist-types/ts3.4/commands/UpdateQuickResponseCommand.d.ts +39 -0
  71. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +397 -0
  73. package/dist-types/ts3.4/pagination/ListImportJobsPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/ListQuickResponsesPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/SearchQuickResponsesPaginator.d.ts +11 -0
  76. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  77. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  78. package/package.json +2 -2
package/dist-es/Wisdom.js CHANGED
@@ -3,66 +3,86 @@ import { CreateAssistantAssociationCommand, } from "./commands/CreateAssistantAs
3
3
  import { CreateAssistantCommand, } from "./commands/CreateAssistantCommand";
4
4
  import { CreateContentCommand, } from "./commands/CreateContentCommand";
5
5
  import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseCommand";
6
+ import { CreateQuickResponseCommand, } from "./commands/CreateQuickResponseCommand";
6
7
  import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
7
8
  import { DeleteAssistantAssociationCommand, } from "./commands/DeleteAssistantAssociationCommand";
8
9
  import { DeleteAssistantCommand, } from "./commands/DeleteAssistantCommand";
9
10
  import { DeleteContentCommand, } from "./commands/DeleteContentCommand";
11
+ import { DeleteImportJobCommand, } from "./commands/DeleteImportJobCommand";
10
12
  import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseCommand";
13
+ import { DeleteQuickResponseCommand, } from "./commands/DeleteQuickResponseCommand";
11
14
  import { GetAssistantAssociationCommand, } from "./commands/GetAssistantAssociationCommand";
12
15
  import { GetAssistantCommand, } from "./commands/GetAssistantCommand";
13
16
  import { GetContentCommand } from "./commands/GetContentCommand";
14
17
  import { GetContentSummaryCommand, } from "./commands/GetContentSummaryCommand";
18
+ import { GetImportJobCommand, } from "./commands/GetImportJobCommand";
15
19
  import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
20
+ import { GetQuickResponseCommand, } from "./commands/GetQuickResponseCommand";
16
21
  import { GetRecommendationsCommand, } from "./commands/GetRecommendationsCommand";
17
22
  import { GetSessionCommand } from "./commands/GetSessionCommand";
18
23
  import { ListAssistantAssociationsCommand, } from "./commands/ListAssistantAssociationsCommand";
19
24
  import { ListAssistantsCommand, } from "./commands/ListAssistantsCommand";
20
25
  import { ListContentsCommand, } from "./commands/ListContentsCommand";
26
+ import { ListImportJobsCommand, } from "./commands/ListImportJobsCommand";
21
27
  import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand";
28
+ import { ListQuickResponsesCommand, } from "./commands/ListQuickResponsesCommand";
22
29
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
23
30
  import { NotifyRecommendationsReceivedCommand, } from "./commands/NotifyRecommendationsReceivedCommand";
24
31
  import { QueryAssistantCommand, } from "./commands/QueryAssistantCommand";
25
32
  import { RemoveKnowledgeBaseTemplateUriCommand, } from "./commands/RemoveKnowledgeBaseTemplateUriCommand";
26
33
  import { SearchContentCommand, } from "./commands/SearchContentCommand";
34
+ import { SearchQuickResponsesCommand, } from "./commands/SearchQuickResponsesCommand";
27
35
  import { SearchSessionsCommand, } from "./commands/SearchSessionsCommand";
28
36
  import { StartContentUploadCommand, } from "./commands/StartContentUploadCommand";
37
+ import { StartImportJobCommand, } from "./commands/StartImportJobCommand";
29
38
  import { TagResourceCommand } from "./commands/TagResourceCommand";
30
39
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
31
40
  import { UpdateContentCommand, } from "./commands/UpdateContentCommand";
32
41
  import { UpdateKnowledgeBaseTemplateUriCommand, } from "./commands/UpdateKnowledgeBaseTemplateUriCommand";
42
+ import { UpdateQuickResponseCommand, } from "./commands/UpdateQuickResponseCommand";
33
43
  import { WisdomClient } from "./WisdomClient";
34
44
  const commands = {
35
45
  CreateAssistantCommand,
36
46
  CreateAssistantAssociationCommand,
37
47
  CreateContentCommand,
38
48
  CreateKnowledgeBaseCommand,
49
+ CreateQuickResponseCommand,
39
50
  CreateSessionCommand,
40
51
  DeleteAssistantCommand,
41
52
  DeleteAssistantAssociationCommand,
42
53
  DeleteContentCommand,
54
+ DeleteImportJobCommand,
43
55
  DeleteKnowledgeBaseCommand,
56
+ DeleteQuickResponseCommand,
44
57
  GetAssistantCommand,
45
58
  GetAssistantAssociationCommand,
46
59
  GetContentCommand,
47
60
  GetContentSummaryCommand,
61
+ GetImportJobCommand,
48
62
  GetKnowledgeBaseCommand,
63
+ GetQuickResponseCommand,
49
64
  GetRecommendationsCommand,
50
65
  GetSessionCommand,
51
66
  ListAssistantAssociationsCommand,
52
67
  ListAssistantsCommand,
53
68
  ListContentsCommand,
69
+ ListImportJobsCommand,
54
70
  ListKnowledgeBasesCommand,
71
+ ListQuickResponsesCommand,
55
72
  ListTagsForResourceCommand,
56
73
  NotifyRecommendationsReceivedCommand,
57
74
  QueryAssistantCommand,
58
75
  RemoveKnowledgeBaseTemplateUriCommand,
59
76
  SearchContentCommand,
77
+ SearchQuickResponsesCommand,
60
78
  SearchSessionsCommand,
61
79
  StartContentUploadCommand,
80
+ StartImportJobCommand,
62
81
  TagResourceCommand,
63
82
  UntagResourceCommand,
64
83
  UpdateContentCommand,
65
84
  UpdateKnowledgeBaseTemplateUriCommand,
85
+ UpdateQuickResponseCommand,
66
86
  };
67
87
  export class Wisdom extends WisdomClient {
68
88
  }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { CreateQuickResponseRequestFilterSensitiveLog, CreateQuickResponseResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateQuickResponseCommand, se_CreateQuickResponseCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreateQuickResponseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateQuickResponseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "CreateQuickResponseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: CreateQuickResponseRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: CreateQuickResponseResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "CreateQuickResponse",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_CreateQuickResponseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_CreateQuickResponseCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteImportJobCommand, se_DeleteImportJobCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteImportJobCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteImportJobCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WisdomClient";
26
+ const commandName = "DeleteImportJobCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "DeleteImportJob",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteImportJobCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteImportJobCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteQuickResponseCommand, se_DeleteQuickResponseCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteQuickResponseCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteQuickResponseCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WisdomClient";
26
+ const commandName = "DeleteQuickResponseCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "DeleteQuickResponse",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteQuickResponseCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteQuickResponseCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { GetImportJobResponseFilterSensitiveLog } from "../models/models_0";
6
+ import { de_GetImportJobCommand, se_GetImportJobCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetImportJobCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetImportJobCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "GetImportJobCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: GetImportJobResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "GetImportJob",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_GetImportJobCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_GetImportJobCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { GetQuickResponseResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_GetQuickResponseCommand, se_GetQuickResponseCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetQuickResponseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetQuickResponseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "GetQuickResponseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: GetQuickResponseResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "GetQuickResponse",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_GetQuickResponseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_GetQuickResponseCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_ListImportJobsCommand, se_ListImportJobsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListImportJobsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListImportJobsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WisdomClient";
26
+ const commandName = "ListImportJobsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "WisdomService",
35
+ operation: "ListImportJobs",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_ListImportJobsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_ListImportJobsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { ListQuickResponsesResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_ListQuickResponsesCommand, se_ListQuickResponsesCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class ListQuickResponsesCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListQuickResponsesCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "ListQuickResponsesCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: ListQuickResponsesResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "ListQuickResponses",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_ListQuickResponsesCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_ListQuickResponsesCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { SearchQuickResponsesRequestFilterSensitiveLog, SearchQuickResponsesResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_SearchQuickResponsesCommand, se_SearchQuickResponsesCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class SearchQuickResponsesCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, SearchQuickResponsesCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "SearchQuickResponsesCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: SearchQuickResponsesRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: SearchQuickResponsesResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "SearchQuickResponses",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_SearchQuickResponsesCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_SearchQuickResponsesCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { StartImportJobResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_StartImportJobCommand, se_StartImportJobCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class StartImportJobCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartImportJobCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "StartImportJobCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: (_) => _,
33
+ outputFilterSensitiveLog: StartImportJobResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "StartImportJob",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_StartImportJobCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_StartImportJobCommand(output, context);
47
+ }
48
+ }
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { UpdateQuickResponseRequestFilterSensitiveLog, UpdateQuickResponseResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_UpdateQuickResponseCommand, se_UpdateQuickResponseCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class UpdateQuickResponseCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateQuickResponseCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "WisdomClient";
27
+ const commandName = "UpdateQuickResponseCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: UpdateQuickResponseRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: UpdateQuickResponseResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "WisdomService",
36
+ operation: "UpdateQuickResponse",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_UpdateQuickResponseCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_UpdateQuickResponseCommand(output, context);
47
+ }
48
+ }
@@ -2,30 +2,40 @@ export * from "./CreateAssistantAssociationCommand";
2
2
  export * from "./CreateAssistantCommand";
3
3
  export * from "./CreateContentCommand";
4
4
  export * from "./CreateKnowledgeBaseCommand";
5
+ export * from "./CreateQuickResponseCommand";
5
6
  export * from "./CreateSessionCommand";
6
7
  export * from "./DeleteAssistantAssociationCommand";
7
8
  export * from "./DeleteAssistantCommand";
8
9
  export * from "./DeleteContentCommand";
10
+ export * from "./DeleteImportJobCommand";
9
11
  export * from "./DeleteKnowledgeBaseCommand";
12
+ export * from "./DeleteQuickResponseCommand";
10
13
  export * from "./GetAssistantAssociationCommand";
11
14
  export * from "./GetAssistantCommand";
12
15
  export * from "./GetContentCommand";
13
16
  export * from "./GetContentSummaryCommand";
17
+ export * from "./GetImportJobCommand";
14
18
  export * from "./GetKnowledgeBaseCommand";
19
+ export * from "./GetQuickResponseCommand";
15
20
  export * from "./GetRecommendationsCommand";
16
21
  export * from "./GetSessionCommand";
17
22
  export * from "./ListAssistantAssociationsCommand";
18
23
  export * from "./ListAssistantsCommand";
19
24
  export * from "./ListContentsCommand";
25
+ export * from "./ListImportJobsCommand";
20
26
  export * from "./ListKnowledgeBasesCommand";
27
+ export * from "./ListQuickResponsesCommand";
21
28
  export * from "./ListTagsForResourceCommand";
22
29
  export * from "./NotifyRecommendationsReceivedCommand";
23
30
  export * from "./QueryAssistantCommand";
24
31
  export * from "./RemoveKnowledgeBaseTemplateUriCommand";
25
32
  export * from "./SearchContentCommand";
33
+ export * from "./SearchQuickResponsesCommand";
26
34
  export * from "./SearchSessionsCommand";
27
35
  export * from "./StartContentUploadCommand";
36
+ export * from "./StartImportJobCommand";
28
37
  export * from "./TagResourceCommand";
29
38
  export * from "./UntagResourceCommand";
30
39
  export * from "./UpdateContentCommand";
31
40
  export * from "./UpdateKnowledgeBaseTemplateUriCommand";
41
+ export * from "./UpdateQuickResponseCommand";