@aws-sdk/client-qbusiness 3.840.0 → 3.844.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/README.md +40 -0
  2. package/dist-cjs/index.js +309 -27
  3. package/dist-es/QBusiness.js +10 -0
  4. package/dist-es/commands/CreateChatResponseConfigurationCommand.js +22 -0
  5. package/dist-es/commands/DeleteChatResponseConfigurationCommand.js +22 -0
  6. package/dist-es/commands/GetChatResponseConfigurationCommand.js +22 -0
  7. package/dist-es/commands/ListChatResponseConfigurationsCommand.js +22 -0
  8. package/dist-es/commands/UpdateChatResponseConfigurationCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +16 -19
  11. package/dist-es/models/models_1.js +20 -0
  12. package/dist-es/pagination/ListChatResponseConfigurationsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/protocols/Aws_restJson1.js +166 -2
  15. package/dist-types/QBusiness.d.ts +35 -0
  16. package/dist-types/QBusinessClient.d.ts +7 -2
  17. package/dist-types/commands/CreateChatResponseConfigurationCommand.d.ts +116 -0
  18. package/dist-types/commands/CreateRetrieverCommand.d.ts +6 -5
  19. package/dist-types/commands/DeleteChatResponseConfigurationCommand.d.ts +89 -0
  20. package/dist-types/commands/GetChatResponseConfigurationCommand.d.ts +137 -0
  21. package/dist-types/commands/GetGroupCommand.d.ts +1 -1
  22. package/dist-types/commands/GetMediaCommand.d.ts +1 -1
  23. package/dist-types/commands/GetPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/GetRetrieverCommand.d.ts +6 -5
  25. package/dist-types/commands/GetUserCommand.d.ts +1 -2
  26. package/dist-types/commands/ListChatResponseConfigurationsCommand.d.ts +100 -0
  27. package/dist-types/commands/UpdateChatResponseConfigurationCommand.d.ts +105 -0
  28. package/dist-types/commands/UpdateRetrieverCommand.d.ts +6 -5
  29. package/dist-types/commands/index.d.ts +5 -0
  30. package/dist-types/models/models_0.d.ts +245 -177
  31. package/dist-types/models/models_1.d.ts +286 -1
  32. package/dist-types/pagination/ListChatResponseConfigurationsPaginator.d.ts +7 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  35. package/dist-types/ts3.4/QBusiness.d.ts +85 -0
  36. package/dist-types/ts3.4/QBusinessClient.d.ts +30 -0
  37. package/dist-types/ts3.4/commands/CreateChatResponseConfigurationCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/DeleteChatResponseConfigurationCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/GetChatResponseConfigurationCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/GetMediaCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -2
  44. package/dist-types/ts3.4/commands/ListChatResponseConfigurationsCommand.d.ts +51 -0
  45. package/dist-types/ts3.4/commands/UpdateChatResponseConfigurationCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +71 -51
  48. package/dist-types/ts3.4/models/models_1.d.ts +88 -0
  49. package/dist-types/ts3.4/pagination/ListChatResponseConfigurationsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  52. package/package.json +14 -14
@@ -8,6 +8,7 @@ import { ChatSyncCommand } from "./commands/ChatSyncCommand";
8
8
  import { CheckDocumentAccessCommand, } from "./commands/CheckDocumentAccessCommand";
9
9
  import { CreateAnonymousWebExperienceUrlCommand, } from "./commands/CreateAnonymousWebExperienceUrlCommand";
10
10
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
11
+ import { CreateChatResponseConfigurationCommand, } from "./commands/CreateChatResponseConfigurationCommand";
11
12
  import { CreateDataAccessorCommand, } from "./commands/CreateDataAccessorCommand";
12
13
  import { CreateDataSourceCommand, } from "./commands/CreateDataSourceCommand";
13
14
  import { CreateIndexCommand } from "./commands/CreateIndexCommand";
@@ -19,6 +20,7 @@ import { CreateWebExperienceCommand, } from "./commands/CreateWebExperienceComma
19
20
  import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
20
21
  import { DeleteAttachmentCommand, } from "./commands/DeleteAttachmentCommand";
21
22
  import { DeleteChatControlsConfigurationCommand, } from "./commands/DeleteChatControlsConfigurationCommand";
23
+ import { DeleteChatResponseConfigurationCommand, } from "./commands/DeleteChatResponseConfigurationCommand";
22
24
  import { DeleteConversationCommand, } from "./commands/DeleteConversationCommand";
23
25
  import { DeleteDataAccessorCommand, } from "./commands/DeleteDataAccessorCommand";
24
26
  import { DeleteDataSourceCommand, } from "./commands/DeleteDataSourceCommand";
@@ -31,6 +33,7 @@ import { DeleteWebExperienceCommand, } from "./commands/DeleteWebExperienceComma
31
33
  import { DisassociatePermissionCommand, } from "./commands/DisassociatePermissionCommand";
32
34
  import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
33
35
  import { GetChatControlsConfigurationCommand, } from "./commands/GetChatControlsConfigurationCommand";
36
+ import { GetChatResponseConfigurationCommand, } from "./commands/GetChatResponseConfigurationCommand";
34
37
  import { GetDataAccessorCommand, } from "./commands/GetDataAccessorCommand";
35
38
  import { GetDataSourceCommand, } from "./commands/GetDataSourceCommand";
36
39
  import { GetGroupCommand } from "./commands/GetGroupCommand";
@@ -43,6 +46,7 @@ import { GetUserCommand } from "./commands/GetUserCommand";
43
46
  import { GetWebExperienceCommand, } from "./commands/GetWebExperienceCommand";
44
47
  import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
45
48
  import { ListAttachmentsCommand, } from "./commands/ListAttachmentsCommand";
49
+ import { ListChatResponseConfigurationsCommand, } from "./commands/ListChatResponseConfigurationsCommand";
46
50
  import { ListConversationsCommand, } from "./commands/ListConversationsCommand";
47
51
  import { ListDataAccessorsCommand, } from "./commands/ListDataAccessorsCommand";
48
52
  import { ListDataSourcesCommand, } from "./commands/ListDataSourcesCommand";
@@ -68,6 +72,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
68
72
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
69
73
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
70
74
  import { UpdateChatControlsConfigurationCommand, } from "./commands/UpdateChatControlsConfigurationCommand";
75
+ import { UpdateChatResponseConfigurationCommand, } from "./commands/UpdateChatResponseConfigurationCommand";
71
76
  import { UpdateDataAccessorCommand, } from "./commands/UpdateDataAccessorCommand";
72
77
  import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
73
78
  import { UpdateIndexCommand } from "./commands/UpdateIndexCommand";
@@ -87,6 +92,7 @@ const commands = {
87
92
  CheckDocumentAccessCommand,
88
93
  CreateAnonymousWebExperienceUrlCommand,
89
94
  CreateApplicationCommand,
95
+ CreateChatResponseConfigurationCommand,
90
96
  CreateDataAccessorCommand,
91
97
  CreateDataSourceCommand,
92
98
  CreateIndexCommand,
@@ -98,6 +104,7 @@ const commands = {
98
104
  DeleteApplicationCommand,
99
105
  DeleteAttachmentCommand,
100
106
  DeleteChatControlsConfigurationCommand,
107
+ DeleteChatResponseConfigurationCommand,
101
108
  DeleteConversationCommand,
102
109
  DeleteDataAccessorCommand,
103
110
  DeleteDataSourceCommand,
@@ -110,6 +117,7 @@ const commands = {
110
117
  DisassociatePermissionCommand,
111
118
  GetApplicationCommand,
112
119
  GetChatControlsConfigurationCommand,
120
+ GetChatResponseConfigurationCommand,
113
121
  GetDataAccessorCommand,
114
122
  GetDataSourceCommand,
115
123
  GetGroupCommand,
@@ -122,6 +130,7 @@ const commands = {
122
130
  GetWebExperienceCommand,
123
131
  ListApplicationsCommand,
124
132
  ListAttachmentsCommand,
133
+ ListChatResponseConfigurationsCommand,
125
134
  ListConversationsCommand,
126
135
  ListDataAccessorsCommand,
127
136
  ListDataSourcesCommand,
@@ -147,6 +156,7 @@ const commands = {
147
156
  UntagResourceCommand,
148
157
  UpdateApplicationCommand,
149
158
  UpdateChatControlsConfigurationCommand,
159
+ UpdateChatResponseConfigurationCommand,
150
160
  UpdateDataAccessorCommand,
151
161
  UpdateDataSourceCommand,
152
162
  UpdateIndexCommand,
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateChatResponseConfigurationCommand, se_CreateChatResponseConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateChatResponseConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "CreateChatResponseConfiguration", {})
17
+ .n("QBusinessClient", "CreateChatResponseConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateChatResponseConfigurationCommand)
20
+ .de(de_CreateChatResponseConfigurationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteChatResponseConfigurationCommand, se_DeleteChatResponseConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteChatResponseConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "DeleteChatResponseConfiguration", {})
17
+ .n("QBusinessClient", "DeleteChatResponseConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteChatResponseConfigurationCommand)
20
+ .de(de_DeleteChatResponseConfigurationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetChatResponseConfigurationCommand, se_GetChatResponseConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetChatResponseConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "GetChatResponseConfiguration", {})
17
+ .n("QBusinessClient", "GetChatResponseConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetChatResponseConfigurationCommand)
20
+ .de(de_GetChatResponseConfigurationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListChatResponseConfigurationsCommand, se_ListChatResponseConfigurationsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListChatResponseConfigurationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "ListChatResponseConfigurations", {})
17
+ .n("QBusinessClient", "ListChatResponseConfigurationsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListChatResponseConfigurationsCommand)
20
+ .de(de_ListChatResponseConfigurationsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateChatResponseConfigurationCommand, se_UpdateChatResponseConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateChatResponseConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ExpertQ", "UpdateChatResponseConfiguration", {})
17
+ .n("QBusinessClient", "UpdateChatResponseConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateChatResponseConfigurationCommand)
20
+ .de(de_UpdateChatResponseConfigurationCommand)
21
+ .build() {
22
+ }
@@ -7,6 +7,7 @@ export * from "./ChatSyncCommand";
7
7
  export * from "./CheckDocumentAccessCommand";
8
8
  export * from "./CreateAnonymousWebExperienceUrlCommand";
9
9
  export * from "./CreateApplicationCommand";
10
+ export * from "./CreateChatResponseConfigurationCommand";
10
11
  export * from "./CreateDataAccessorCommand";
11
12
  export * from "./CreateDataSourceCommand";
12
13
  export * from "./CreateIndexCommand";
@@ -18,6 +19,7 @@ export * from "./CreateWebExperienceCommand";
18
19
  export * from "./DeleteApplicationCommand";
19
20
  export * from "./DeleteAttachmentCommand";
20
21
  export * from "./DeleteChatControlsConfigurationCommand";
22
+ export * from "./DeleteChatResponseConfigurationCommand";
21
23
  export * from "./DeleteConversationCommand";
22
24
  export * from "./DeleteDataAccessorCommand";
23
25
  export * from "./DeleteDataSourceCommand";
@@ -30,6 +32,7 @@ export * from "./DeleteWebExperienceCommand";
30
32
  export * from "./DisassociatePermissionCommand";
31
33
  export * from "./GetApplicationCommand";
32
34
  export * from "./GetChatControlsConfigurationCommand";
35
+ export * from "./GetChatResponseConfigurationCommand";
33
36
  export * from "./GetDataAccessorCommand";
34
37
  export * from "./GetDataSourceCommand";
35
38
  export * from "./GetGroupCommand";
@@ -42,6 +45,7 @@ export * from "./GetUserCommand";
42
45
  export * from "./GetWebExperienceCommand";
43
46
  export * from "./ListApplicationsCommand";
44
47
  export * from "./ListAttachmentsCommand";
48
+ export * from "./ListChatResponseConfigurationsCommand";
45
49
  export * from "./ListConversationsCommand";
46
50
  export * from "./ListDataAccessorsCommand";
47
51
  export * from "./ListDataSourceSyncJobsCommand";
@@ -67,6 +71,7 @@ export * from "./TagResourceCommand";
67
71
  export * from "./UntagResourceCommand";
68
72
  export * from "./UpdateApplicationCommand";
69
73
  export * from "./UpdateChatControlsConfigurationCommand";
74
+ export * from "./UpdateChatResponseConfigurationCommand";
70
75
  export * from "./UpdateDataAccessorCommand";
71
76
  export * from "./UpdateDataSourceCommand";
72
77
  export * from "./UpdateIndexCommand";
@@ -323,6 +323,8 @@ export const DocumentAttributeBoostingLevel = {
323
323
  LOW: "LOW",
324
324
  MEDIUM: "MEDIUM",
325
325
  NONE: "NONE",
326
+ ONE: "ONE",
327
+ TWO: "TWO",
326
328
  VERY_HIGH: "VERY_HIGH",
327
329
  };
328
330
  export const NumberAttributeBoostingType = {
@@ -330,9 +332,14 @@ export const NumberAttributeBoostingType = {
330
332
  PRIORITIZE_SMALLER_VALUES: "PRIORITIZE_SMALLER_VALUES",
331
333
  };
332
334
  export const StringAttributeValueBoostingLevel = {
335
+ FIVE: "FIVE",
336
+ FOUR: "FOUR",
333
337
  HIGH: "HIGH",
334
338
  LOW: "LOW",
335
339
  MEDIUM: "MEDIUM",
340
+ ONE: "ONE",
341
+ THREE: "THREE",
342
+ TWO: "TWO",
336
343
  VERY_HIGH: "VERY_HIGH",
337
344
  };
338
345
  export var DocumentAttributeBoostingConfiguration;
@@ -525,6 +532,15 @@ export class LicenseNotFoundException extends __BaseException {
525
532
  Object.setPrototypeOf(this, LicenseNotFoundException.prototype);
526
533
  }
527
534
  }
535
+ export const ChatResponseConfigurationStatus = {
536
+ ACTIVE: "ACTIVE",
537
+ CREATING: "CREATING",
538
+ FAILED: "FAILED",
539
+ UPDATING: "UPDATING",
540
+ };
541
+ export const ResponseConfigurationType = {
542
+ ALL: "ALL",
543
+ };
528
544
  export var ContentSource;
529
545
  (function (ContentSource) {
530
546
  ContentSource.visit = (value, visitor) => {
@@ -584,25 +600,6 @@ export const RuleType = {
584
600
  CONTENT_BLOCKER_RULE: "CONTENT_BLOCKER_RULE",
585
601
  CONTENT_RETRIEVAL_RULE: "CONTENT_RETRIEVAL_RULE",
586
602
  };
587
- export const GroupStatus = {
588
- DELETED: "DELETED",
589
- DELETING: "DELETING",
590
- FAILED: "FAILED",
591
- PROCESSING: "PROCESSING",
592
- SUCCEEDED: "SUCCEEDED",
593
- };
594
- export class MediaTooLargeException extends __BaseException {
595
- name = "MediaTooLargeException";
596
- $fault = "client";
597
- constructor(opts) {
598
- super({
599
- name: "MediaTooLargeException",
600
- $fault: "client",
601
- ...opts,
602
- });
603
- Object.setPrototypeOf(this, MediaTooLargeException.prototype);
604
- }
605
- }
606
603
  export const APISchemaFilterSensitiveLog = (obj) => {
607
604
  if (obj.payload !== undefined)
608
605
  return { payload: SENSITIVE_STRING };
@@ -1,4 +1,24 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { QBusinessServiceException as __BaseException } from "./QBusinessServiceException";
3
+ export const GroupStatus = {
4
+ DELETED: "DELETED",
5
+ DELETING: "DELETING",
6
+ FAILED: "FAILED",
7
+ PROCESSING: "PROCESSING",
8
+ SUCCEEDED: "SUCCEEDED",
9
+ };
10
+ export class MediaTooLargeException extends __BaseException {
11
+ name = "MediaTooLargeException";
12
+ $fault = "client";
13
+ constructor(opts) {
14
+ super({
15
+ name: "MediaTooLargeException",
16
+ $fault: "client",
17
+ ...opts,
18
+ });
19
+ Object.setPrototypeOf(this, MediaTooLargeException.prototype);
20
+ }
21
+ }
2
22
  export const MessageType = {
3
23
  SYSTEM: "SYSTEM",
4
24
  USER: "USER",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListChatResponseConfigurationsCommand, } from "../commands/ListChatResponseConfigurationsCommand";
3
+ import { QBusinessClient } from "../QBusinessClient";
4
+ export const paginateListChatResponseConfigurations = createPaginator(QBusinessClient, ListChatResponseConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -2,6 +2,7 @@ export * from "./GetChatControlsConfigurationPaginator";
2
2
  export * from "./Interfaces";
3
3
  export * from "./ListApplicationsPaginator";
4
4
  export * from "./ListAttachmentsPaginator";
5
+ export * from "./ListChatResponseConfigurationsPaginator";
5
6
  export * from "./ListConversationsPaginator";
6
7
  export * from "./ListDataAccessorsPaginator";
7
8
  export * from "./ListDataSourceSyncJobsPaginator";
@@ -2,8 +2,8 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
- import { AccessDeniedException, ConflictException, DocumentAttributeValue, DocumentContent, ExternalResourceException, InternalServerException, LicenseNotFoundException, MediaTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { ChatInputStream, } from "../models/models_1";
5
+ import { AccessDeniedException, ConflictException, DocumentAttributeValue, DocumentContent, ExternalResourceException, InternalServerException, LicenseNotFoundException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
+ import { ChatInputStream, MediaTooLargeException, } from "../models/models_1";
7
7
  import { QBusinessServiceException as __BaseException } from "../models/QBusinessServiceException";
8
8
  export const se_AssociatePermissionCommand = async (input, context) => {
9
9
  const b = rb(input, context);
@@ -170,6 +170,23 @@ export const se_CreateApplicationCommand = async (input, context) => {
170
170
  b.m("POST").h(headers).b(body);
171
171
  return b.build();
172
172
  };
173
+ export const se_CreateChatResponseConfigurationCommand = async (input, context) => {
174
+ const b = rb(input, context);
175
+ const headers = {
176
+ "content-type": "application/json",
177
+ };
178
+ b.bp("/applications/{applicationId}/chatresponseconfigurations");
179
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
180
+ let body;
181
+ body = JSON.stringify(take(input, {
182
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
183
+ displayName: [],
184
+ responseConfigurations: (_) => _json(_),
185
+ tags: (_) => _json(_),
186
+ }));
187
+ b.m("POST").h(headers).b(body);
188
+ return b.build();
189
+ };
173
190
  export const se_CreateDataAccessorCommand = async (input, context) => {
174
191
  const b = rb(input, context);
175
192
  const headers = {
@@ -359,6 +376,16 @@ export const se_DeleteChatControlsConfigurationCommand = async (input, context)
359
376
  b.m("DELETE").h(headers).b(body);
360
377
  return b.build();
361
378
  };
379
+ export const se_DeleteChatResponseConfigurationCommand = async (input, context) => {
380
+ const b = rb(input, context);
381
+ const headers = {};
382
+ b.bp("/applications/{applicationId}/chatresponseconfigurations/{chatResponseConfigurationId}");
383
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
384
+ b.p("chatResponseConfigurationId", () => input.chatResponseConfigurationId, "{chatResponseConfigurationId}", false);
385
+ let body;
386
+ b.m("DELETE").h(headers).b(body);
387
+ return b.build();
388
+ };
362
389
  export const se_DeleteConversationCommand = async (input, context) => {
363
390
  const b = rb(input, context);
364
391
  const headers = {};
@@ -489,6 +516,16 @@ export const se_GetChatControlsConfigurationCommand = async (input, context) =>
489
516
  b.m("GET").h(headers).q(query).b(body);
490
517
  return b.build();
491
518
  };
519
+ export const se_GetChatResponseConfigurationCommand = async (input, context) => {
520
+ const b = rb(input, context);
521
+ const headers = {};
522
+ b.bp("/applications/{applicationId}/chatresponseconfigurations/{chatResponseConfigurationId}");
523
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
524
+ b.p("chatResponseConfigurationId", () => input.chatResponseConfigurationId, "{chatResponseConfigurationId}", false);
525
+ let body;
526
+ b.m("GET").h(headers).b(body);
527
+ return b.build();
528
+ };
492
529
  export const se_GetDataAccessorCommand = async (input, context) => {
493
530
  const b = rb(input, context);
494
531
  const headers = {};
@@ -622,6 +659,19 @@ export const se_ListAttachmentsCommand = async (input, context) => {
622
659
  b.m("GET").h(headers).q(query).b(body);
623
660
  return b.build();
624
661
  };
662
+ export const se_ListChatResponseConfigurationsCommand = async (input, context) => {
663
+ const b = rb(input, context);
664
+ const headers = {};
665
+ b.bp("/applications/{applicationId}/chatresponseconfigurations");
666
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
667
+ const query = map({
668
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
669
+ [_nT]: [, input[_nT]],
670
+ });
671
+ let body;
672
+ b.m("GET").h(headers).q(query).b(body);
673
+ return b.build();
674
+ };
625
675
  export const se_ListConversationsCommand = async (input, context) => {
626
676
  const b = rb(input, context);
627
677
  const headers = {};
@@ -990,6 +1040,23 @@ export const se_UpdateChatControlsConfigurationCommand = async (input, context)
990
1040
  b.m("PATCH").h(headers).b(body);
991
1041
  return b.build();
992
1042
  };
1043
+ export const se_UpdateChatResponseConfigurationCommand = async (input, context) => {
1044
+ const b = rb(input, context);
1045
+ const headers = {
1046
+ "content-type": "application/json",
1047
+ };
1048
+ b.bp("/applications/{applicationId}/chatresponseconfigurations/{chatResponseConfigurationId}");
1049
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
1050
+ b.p("chatResponseConfigurationId", () => input.chatResponseConfigurationId, "{chatResponseConfigurationId}", false);
1051
+ let body;
1052
+ body = JSON.stringify(take(input, {
1053
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1054
+ displayName: [],
1055
+ responseConfigurations: (_) => _json(_),
1056
+ }));
1057
+ b.m("PUT").h(headers).b(body);
1058
+ return b.build();
1059
+ };
993
1060
  export const se_UpdateDataAccessorCommand = async (input, context) => {
994
1061
  const b = rb(input, context);
995
1062
  const headers = {
@@ -1275,6 +1342,21 @@ export const de_CreateApplicationCommand = async (output, context) => {
1275
1342
  Object.assign(contents, doc);
1276
1343
  return contents;
1277
1344
  };
1345
+ export const de_CreateChatResponseConfigurationCommand = async (output, context) => {
1346
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1347
+ return de_CommandError(output, context);
1348
+ }
1349
+ const contents = map({
1350
+ $metadata: deserializeMetadata(output),
1351
+ });
1352
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1353
+ const doc = take(data, {
1354
+ chatResponseConfigurationArn: __expectString,
1355
+ chatResponseConfigurationId: __expectString,
1356
+ });
1357
+ Object.assign(contents, doc);
1358
+ return contents;
1359
+ };
1278
1360
  export const de_CreateDataAccessorCommand = async (output, context) => {
1279
1361
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
1362
  return de_CommandError(output, context);
@@ -1424,6 +1506,16 @@ export const de_DeleteChatControlsConfigurationCommand = async (output, context)
1424
1506
  await collectBody(output.body, context);
1425
1507
  return contents;
1426
1508
  };
1509
+ export const de_DeleteChatResponseConfigurationCommand = async (output, context) => {
1510
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1511
+ return de_CommandError(output, context);
1512
+ }
1513
+ const contents = map({
1514
+ $metadata: deserializeMetadata(output),
1515
+ });
1516
+ await collectBody(output.body, context);
1517
+ return contents;
1518
+ };
1427
1519
  export const de_DeleteConversationCommand = async (output, context) => {
1428
1520
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1429
1521
  return de_CommandError(output, context);
@@ -1576,6 +1668,25 @@ export const de_GetChatControlsConfigurationCommand = async (output, context) =>
1576
1668
  Object.assign(contents, doc);
1577
1669
  return contents;
1578
1670
  };
1671
+ export const de_GetChatResponseConfigurationCommand = async (output, context) => {
1672
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1673
+ return de_CommandError(output, context);
1674
+ }
1675
+ const contents = map({
1676
+ $metadata: deserializeMetadata(output),
1677
+ });
1678
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1679
+ const doc = take(data, {
1680
+ chatResponseConfigurationArn: __expectString,
1681
+ chatResponseConfigurationId: __expectString,
1682
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1683
+ displayName: __expectString,
1684
+ inUseConfiguration: (_) => de_ChatResponseConfigurationDetail(_, context),
1685
+ lastUpdateConfiguration: (_) => de_ChatResponseConfigurationDetail(_, context),
1686
+ });
1687
+ Object.assign(contents, doc);
1688
+ return contents;
1689
+ };
1579
1690
  export const de_GetDataAccessorCommand = async (output, context) => {
1580
1691
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1581
1692
  return de_CommandError(output, context);
@@ -1822,6 +1933,21 @@ export const de_ListAttachmentsCommand = async (output, context) => {
1822
1933
  Object.assign(contents, doc);
1823
1934
  return contents;
1824
1935
  };
1936
+ export const de_ListChatResponseConfigurationsCommand = async (output, context) => {
1937
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1938
+ return de_CommandError(output, context);
1939
+ }
1940
+ const contents = map({
1941
+ $metadata: deserializeMetadata(output),
1942
+ });
1943
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1944
+ const doc = take(data, {
1945
+ chatResponseConfigurations: (_) => de_ChatResponseConfigurations(_, context),
1946
+ nextToken: __expectString,
1947
+ });
1948
+ Object.assign(contents, doc);
1949
+ return contents;
1950
+ };
1825
1951
  export const de_ListConversationsCommand = async (output, context) => {
1826
1952
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1827
1953
  return de_CommandError(output, context);
@@ -2160,6 +2286,16 @@ export const de_UpdateChatControlsConfigurationCommand = async (output, context)
2160
2286
  await collectBody(output.body, context);
2161
2287
  return contents;
2162
2288
  };
2289
+ export const de_UpdateChatResponseConfigurationCommand = async (output, context) => {
2290
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2291
+ return de_CommandError(output, context);
2292
+ }
2293
+ const contents = map({
2294
+ $metadata: deserializeMetadata(output),
2295
+ });
2296
+ await collectBody(output.body, context);
2297
+ return contents;
2298
+ };
2163
2299
  export const de_UpdateDataAccessorCommand = async (output, context) => {
2164
2300
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2165
2301
  return de_CommandError(output, context);
@@ -2937,6 +3073,34 @@ const de_AttributeFilters = (output, context) => {
2937
3073
  });
2938
3074
  return retVal;
2939
3075
  };
3076
+ const de_ChatResponseConfiguration = (output, context) => {
3077
+ return take(output, {
3078
+ chatResponseConfigurationArn: __expectString,
3079
+ chatResponseConfigurationId: __expectString,
3080
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3081
+ displayName: __expectString,
3082
+ responseConfigurationSummary: __expectString,
3083
+ status: __expectString,
3084
+ updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3085
+ });
3086
+ };
3087
+ const de_ChatResponseConfigurationDetail = (output, context) => {
3088
+ return take(output, {
3089
+ error: _json,
3090
+ responseConfigurationSummary: __expectString,
3091
+ responseConfigurations: _json,
3092
+ status: __expectString,
3093
+ updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3094
+ });
3095
+ };
3096
+ const de_ChatResponseConfigurations = (output, context) => {
3097
+ const retVal = (output || [])
3098
+ .filter((e) => e != null)
3099
+ .map((entry) => {
3100
+ return de_ChatResponseConfiguration(entry, context);
3101
+ });
3102
+ return retVal;
3103
+ };
2940
3104
  const de_Conversation = (output, context) => {
2941
3105
  return take(output, {
2942
3106
  conversationId: __expectString,