@aws-sdk/client-qbusiness 3.703.0 → 3.705.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.
- package/README.md +96 -0
- package/dist-cjs/index.js +801 -42
- package/dist-es/QBusiness.js +24 -0
- package/dist-es/commands/AssociatePermissionCommand.js +22 -0
- package/dist-es/commands/ChatCommand.js +2 -1
- package/dist-es/commands/CreateDataAccessorCommand.js +23 -0
- package/dist-es/commands/DeleteDataAccessorCommand.js +22 -0
- package/dist-es/commands/DisassociatePermissionCommand.js +22 -0
- package/dist-es/commands/GetDataAccessorCommand.js +23 -0
- package/dist-es/commands/GetPolicyCommand.js +22 -0
- package/dist-es/commands/ListDataAccessorsCommand.js +23 -0
- package/dist-es/commands/ListPluginActionsCommand.js +22 -0
- package/dist-es/commands/ListPluginTypeActionsCommand.js +22 -0
- package/dist-es/commands/ListPluginTypeMetadataCommand.js +22 -0
- package/dist-es/commands/SearchRelevantContentCommand.js +22 -0
- package/dist-es/commands/UpdateDataAccessorCommand.js +23 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +59 -52
- package/dist-es/models/models_1.js +54 -0
- package/dist-es/pagination/ListDataAccessorsPaginator.js +4 -0
- package/dist-es/pagination/ListPluginActionsPaginator.js +4 -0
- package/dist-es/pagination/ListPluginTypeActionsPaginator.js +4 -0
- package/dist-es/pagination/ListPluginTypeMetadataPaginator.js +4 -0
- package/dist-es/pagination/SearchRelevantContentPaginator.js +4 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +455 -4
- package/dist-types/QBusiness.d.ts +85 -0
- package/dist-types/QBusinessClient.d.ts +14 -2
- package/dist-types/commands/AssociatePermissionCommand.d.ts +105 -0
- package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +2 -2
- package/dist-types/commands/BatchPutDocumentCommand.d.ts +2 -2
- package/dist-types/commands/ChatCommand.d.ts +5 -4
- package/dist-types/commands/ChatSyncCommand.d.ts +5 -4
- package/dist-types/commands/CreateApplicationCommand.d.ts +6 -3
- package/dist-types/commands/CreateDataAccessorCommand.d.ts +203 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/CreateIndexCommand.d.ts +2 -2
- package/dist-types/commands/CreatePluginCommand.d.ts +9 -3
- package/dist-types/commands/CreateRetrieverCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserCommand.d.ts +2 -2
- package/dist-types/commands/CreateWebExperienceCommand.d.ts +8 -2
- package/dist-types/commands/DeleteApplicationCommand.d.ts +2 -2
- package/dist-types/commands/DeleteChatControlsConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/DeleteConversationCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDataAccessorCommand.d.ts +95 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteGroupCommand.d.ts +2 -2
- package/dist-types/commands/DeleteIndexCommand.d.ts +2 -2
- package/dist-types/commands/DeletePluginCommand.d.ts +2 -2
- package/dist-types/commands/DeleteRetrieverCommand.d.ts +2 -2
- package/dist-types/commands/DeleteUserCommand.d.ts +2 -2
- package/dist-types/commands/DeleteWebExperienceCommand.d.ts +2 -2
- package/dist-types/commands/DisassociatePermissionCommand.d.ts +95 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +6 -3
- package/dist-types/commands/GetChatControlsConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/GetDataAccessorCommand.d.ts +191 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/GetGroupCommand.d.ts +2 -2
- package/dist-types/commands/GetIndexCommand.d.ts +2 -2
- package/dist-types/commands/GetMediaCommand.d.ts +2 -2
- package/dist-types/commands/GetPluginCommand.d.ts +9 -3
- package/dist-types/commands/GetPolicyCommand.d.ts +92 -0
- package/dist-types/commands/GetRetrieverCommand.d.ts +2 -2
- package/dist-types/commands/GetUserCommand.d.ts +2 -2
- package/dist-types/commands/GetWebExperienceCommand.d.ts +8 -2
- package/dist-types/commands/ListApplicationsCommand.d.ts +4 -1
- package/dist-types/commands/ListAttachmentsCommand.d.ts +2 -2
- package/dist-types/commands/ListConversationsCommand.d.ts +2 -2
- package/dist-types/commands/ListDataAccessorsCommand.d.ts +106 -0
- package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListDataSourcesCommand.d.ts +2 -2
- package/dist-types/commands/ListDocumentsCommand.d.ts +2 -2
- package/dist-types/commands/ListGroupsCommand.d.ts +2 -2
- package/dist-types/commands/ListIndicesCommand.d.ts +2 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +3 -3
- package/dist-types/commands/ListPluginActionsCommand.d.ts +102 -0
- package/dist-types/commands/ListPluginTypeActionsCommand.d.ts +98 -0
- package/dist-types/commands/ListPluginTypeMetadataCommand.d.ts +95 -0
- package/dist-types/commands/ListPluginsCommand.d.ts +3 -3
- package/dist-types/commands/ListRetrieversCommand.d.ts +3 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/ListWebExperiencesCommand.d.ts +2 -2
- package/dist-types/commands/PutFeedbackCommand.d.ts +2 -2
- package/dist-types/commands/PutGroupCommand.d.ts +2 -2
- package/dist-types/commands/SearchRelevantContentCommand.d.ts +218 -0
- package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +4 -3
- package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +3 -3
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -2
- package/dist-types/commands/UpdateChatControlsConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/UpdateDataAccessorCommand.d.ts +186 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateIndexCommand.d.ts +2 -2
- package/dist-types/commands/UpdatePluginCommand.d.ts +8 -2
- package/dist-types/commands/UpdateRetrieverCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserCommand.d.ts +3 -3
- package/dist-types/commands/UpdateWebExperienceCommand.d.ts +8 -2
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +735 -636
- package/dist-types/models/models_1.d.ts +752 -0
- package/dist-types/pagination/ListDataAccessorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPluginActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPluginTypeActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPluginTypeMetadataPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchRelevantContentPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/QBusiness.d.ts +205 -0
- package/dist-types/ts3.4/QBusinessClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/AssociatePermissionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ChatCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ChatSyncCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateDataAccessorCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/DeleteDataAccessorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociatePermissionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetDataAccessorCommand.d.ts +48 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListDataAccessorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPluginActionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPluginTypeActionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPluginTypeMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchRelevantContentCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/StartDataSourceSyncJobCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StopDataSourceSyncJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateChatControlsConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDataAccessorCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +250 -224
- package/dist-types/ts3.4/models/models_1.d.ts +241 -0
- package/dist-types/ts3.4/pagination/ListDataAccessorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPluginActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPluginTypeActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPluginTypeMetadataPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchRelevantContentPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +1 -1
|
@@ -2,8 +2,25 @@ 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,
|
|
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";
|
|
6
7
|
import { QBusinessServiceException as __BaseException } from "../models/QBusinessServiceException";
|
|
8
|
+
export const se_AssociatePermissionCommand = async (input, context) => {
|
|
9
|
+
const b = rb(input, context);
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/json",
|
|
12
|
+
};
|
|
13
|
+
b.bp("/applications/{applicationId}/policy");
|
|
14
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify(take(input, {
|
|
17
|
+
actions: (_) => _json(_),
|
|
18
|
+
principal: [],
|
|
19
|
+
statementId: [],
|
|
20
|
+
}));
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
23
|
+
};
|
|
7
24
|
export const se_BatchDeleteDocumentCommand = async (input, context) => {
|
|
8
25
|
const b = rb(input, context);
|
|
9
26
|
const headers = {
|
|
@@ -105,12 +122,31 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
105
122
|
identityType: [],
|
|
106
123
|
personalizationConfiguration: (_) => _json(_),
|
|
107
124
|
qAppsConfiguration: (_) => _json(_),
|
|
125
|
+
quickSightConfiguration: (_) => _json(_),
|
|
108
126
|
roleArn: [],
|
|
109
127
|
tags: (_) => _json(_),
|
|
110
128
|
}));
|
|
111
129
|
b.m("POST").h(headers).b(body);
|
|
112
130
|
return b.build();
|
|
113
131
|
};
|
|
132
|
+
export const se_CreateDataAccessorCommand = async (input, context) => {
|
|
133
|
+
const b = rb(input, context);
|
|
134
|
+
const headers = {
|
|
135
|
+
"content-type": "application/json",
|
|
136
|
+
};
|
|
137
|
+
b.bp("/applications/{applicationId}/dataaccessors");
|
|
138
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
139
|
+
let body;
|
|
140
|
+
body = JSON.stringify(take(input, {
|
|
141
|
+
actionConfigurations: (_) => se_ActionConfigurationList(_, context),
|
|
142
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
143
|
+
displayName: [],
|
|
144
|
+
principal: [],
|
|
145
|
+
tags: (_) => _json(_),
|
|
146
|
+
}));
|
|
147
|
+
b.m("POST").h(headers).b(body);
|
|
148
|
+
return b.build();
|
|
149
|
+
};
|
|
114
150
|
export const se_CreateDataSourceCommand = async (input, context) => {
|
|
115
151
|
const b = rb(input, context);
|
|
116
152
|
const headers = {
|
|
@@ -220,6 +256,7 @@ export const se_CreateWebExperienceCommand = async (input, context) => {
|
|
|
220
256
|
body = JSON.stringify(take(input, {
|
|
221
257
|
browserExtensionConfiguration: (_) => _json(_),
|
|
222
258
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
259
|
+
customizationConfiguration: (_) => _json(_),
|
|
223
260
|
identityProviderConfiguration: (_) => _json(_),
|
|
224
261
|
origins: (_) => _json(_),
|
|
225
262
|
roleArn: [],
|
|
@@ -263,6 +300,16 @@ export const se_DeleteConversationCommand = async (input, context) => {
|
|
|
263
300
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
264
301
|
return b.build();
|
|
265
302
|
};
|
|
303
|
+
export const se_DeleteDataAccessorCommand = async (input, context) => {
|
|
304
|
+
const b = rb(input, context);
|
|
305
|
+
const headers = {};
|
|
306
|
+
b.bp("/applications/{applicationId}/dataaccessors/{dataAccessorId}");
|
|
307
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
308
|
+
b.p("dataAccessorId", () => input.dataAccessorId, "{dataAccessorId}", false);
|
|
309
|
+
let body;
|
|
310
|
+
b.m("DELETE").h(headers).b(body);
|
|
311
|
+
return b.build();
|
|
312
|
+
};
|
|
266
313
|
export const se_DeleteDataSourceCommand = async (input, context) => {
|
|
267
314
|
const b = rb(input, context);
|
|
268
315
|
const headers = {};
|
|
@@ -338,6 +385,16 @@ export const se_DeleteWebExperienceCommand = async (input, context) => {
|
|
|
338
385
|
b.m("DELETE").h(headers).b(body);
|
|
339
386
|
return b.build();
|
|
340
387
|
};
|
|
388
|
+
export const se_DisassociatePermissionCommand = async (input, context) => {
|
|
389
|
+
const b = rb(input, context);
|
|
390
|
+
const headers = {};
|
|
391
|
+
b.bp("/applications/{applicationId}/policy/{statementId}");
|
|
392
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
393
|
+
b.p("statementId", () => input.statementId, "{statementId}", false);
|
|
394
|
+
let body;
|
|
395
|
+
b.m("DELETE").h(headers).b(body);
|
|
396
|
+
return b.build();
|
|
397
|
+
};
|
|
341
398
|
export const se_GetApplicationCommand = async (input, context) => {
|
|
342
399
|
const b = rb(input, context);
|
|
343
400
|
const headers = {};
|
|
@@ -360,6 +417,16 @@ export const se_GetChatControlsConfigurationCommand = async (input, context) =>
|
|
|
360
417
|
b.m("GET").h(headers).q(query).b(body);
|
|
361
418
|
return b.build();
|
|
362
419
|
};
|
|
420
|
+
export const se_GetDataAccessorCommand = async (input, context) => {
|
|
421
|
+
const b = rb(input, context);
|
|
422
|
+
const headers = {};
|
|
423
|
+
b.bp("/applications/{applicationId}/dataaccessors/{dataAccessorId}");
|
|
424
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
425
|
+
b.p("dataAccessorId", () => input.dataAccessorId, "{dataAccessorId}", false);
|
|
426
|
+
let body;
|
|
427
|
+
b.m("GET").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
429
|
+
};
|
|
363
430
|
export const se_GetDataSourceCommand = async (input, context) => {
|
|
364
431
|
const b = rb(input, context);
|
|
365
432
|
const headers = {};
|
|
@@ -417,6 +484,15 @@ export const se_GetPluginCommand = async (input, context) => {
|
|
|
417
484
|
b.m("GET").h(headers).b(body);
|
|
418
485
|
return b.build();
|
|
419
486
|
};
|
|
487
|
+
export const se_GetPolicyCommand = async (input, context) => {
|
|
488
|
+
const b = rb(input, context);
|
|
489
|
+
const headers = {};
|
|
490
|
+
b.bp("/applications/{applicationId}/policy");
|
|
491
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
492
|
+
let body;
|
|
493
|
+
b.m("GET").h(headers).b(body);
|
|
494
|
+
return b.build();
|
|
495
|
+
};
|
|
420
496
|
export const se_GetRetrieverCommand = async (input, context) => {
|
|
421
497
|
const b = rb(input, context);
|
|
422
498
|
const headers = {};
|
|
@@ -488,6 +564,19 @@ export const se_ListConversationsCommand = async (input, context) => {
|
|
|
488
564
|
b.m("GET").h(headers).q(query).b(body);
|
|
489
565
|
return b.build();
|
|
490
566
|
};
|
|
567
|
+
export const se_ListDataAccessorsCommand = async (input, context) => {
|
|
568
|
+
const b = rb(input, context);
|
|
569
|
+
const headers = {};
|
|
570
|
+
b.bp("/applications/{applicationId}/dataaccessors");
|
|
571
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
572
|
+
const query = map({
|
|
573
|
+
[_nT]: [, input[_nT]],
|
|
574
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
575
|
+
});
|
|
576
|
+
let body;
|
|
577
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
578
|
+
return b.build();
|
|
579
|
+
};
|
|
491
580
|
export const se_ListDataSourcesCommand = async (input, context) => {
|
|
492
581
|
const b = rb(input, context);
|
|
493
582
|
const headers = {};
|
|
@@ -582,6 +671,20 @@ export const se_ListMessagesCommand = async (input, context) => {
|
|
|
582
671
|
b.m("GET").h(headers).q(query).b(body);
|
|
583
672
|
return b.build();
|
|
584
673
|
};
|
|
674
|
+
export const se_ListPluginActionsCommand = async (input, context) => {
|
|
675
|
+
const b = rb(input, context);
|
|
676
|
+
const headers = {};
|
|
677
|
+
b.bp("/applications/{applicationId}/plugins/{pluginId}/actions");
|
|
678
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
679
|
+
b.p("pluginId", () => input.pluginId, "{pluginId}", false);
|
|
680
|
+
const query = map({
|
|
681
|
+
[_nT]: [, input[_nT]],
|
|
682
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
683
|
+
});
|
|
684
|
+
let body;
|
|
685
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
686
|
+
return b.build();
|
|
687
|
+
};
|
|
585
688
|
export const se_ListPluginsCommand = async (input, context) => {
|
|
586
689
|
const b = rb(input, context);
|
|
587
690
|
const headers = {};
|
|
@@ -595,6 +698,31 @@ export const se_ListPluginsCommand = async (input, context) => {
|
|
|
595
698
|
b.m("GET").h(headers).q(query).b(body);
|
|
596
699
|
return b.build();
|
|
597
700
|
};
|
|
701
|
+
export const se_ListPluginTypeActionsCommand = async (input, context) => {
|
|
702
|
+
const b = rb(input, context);
|
|
703
|
+
const headers = {};
|
|
704
|
+
b.bp("/pluginTypes/{pluginType}/actions");
|
|
705
|
+
b.p("pluginType", () => input.pluginType, "{pluginType}", false);
|
|
706
|
+
const query = map({
|
|
707
|
+
[_nT]: [, input[_nT]],
|
|
708
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
709
|
+
});
|
|
710
|
+
let body;
|
|
711
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
712
|
+
return b.build();
|
|
713
|
+
};
|
|
714
|
+
export const se_ListPluginTypeMetadataCommand = async (input, context) => {
|
|
715
|
+
const b = rb(input, context);
|
|
716
|
+
const headers = {};
|
|
717
|
+
b.bp("/pluginTypeMetadata");
|
|
718
|
+
const query = map({
|
|
719
|
+
[_nT]: [, input[_nT]],
|
|
720
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
721
|
+
});
|
|
722
|
+
let body;
|
|
723
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
724
|
+
return b.build();
|
|
725
|
+
};
|
|
598
726
|
export const se_ListRetrieversCommand = async (input, context) => {
|
|
599
727
|
const b = rb(input, context);
|
|
600
728
|
const headers = {};
|
|
@@ -669,6 +797,28 @@ export const se_PutGroupCommand = async (input, context) => {
|
|
|
669
797
|
b.m("PUT").h(headers).b(body);
|
|
670
798
|
return b.build();
|
|
671
799
|
};
|
|
800
|
+
export const se_SearchRelevantContentCommand = async (input, context) => {
|
|
801
|
+
const b = rb(input, context);
|
|
802
|
+
const headers = {
|
|
803
|
+
"content-type": "application/json",
|
|
804
|
+
};
|
|
805
|
+
b.bp("/applications/{applicationId}/relevant-content");
|
|
806
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
807
|
+
const query = map({
|
|
808
|
+
[_uI]: [, input[_uI]],
|
|
809
|
+
[_uG]: [() => input.userGroups !== void 0, () => input[_uG] || []],
|
|
810
|
+
});
|
|
811
|
+
let body;
|
|
812
|
+
body = JSON.stringify(take(input, {
|
|
813
|
+
attributeFilter: (_) => se_AttributeFilter(_, context),
|
|
814
|
+
contentSource: (_) => _json(_),
|
|
815
|
+
maxResults: [],
|
|
816
|
+
nextToken: [],
|
|
817
|
+
queryText: [],
|
|
818
|
+
}));
|
|
819
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
820
|
+
return b.build();
|
|
821
|
+
};
|
|
672
822
|
export const se_StartDataSourceSyncJobCommand = async (input, context) => {
|
|
673
823
|
const b = rb(input, context);
|
|
674
824
|
const headers = {};
|
|
@@ -757,6 +907,22 @@ export const se_UpdateChatControlsConfigurationCommand = async (input, context)
|
|
|
757
907
|
b.m("PATCH").h(headers).b(body);
|
|
758
908
|
return b.build();
|
|
759
909
|
};
|
|
910
|
+
export const se_UpdateDataAccessorCommand = async (input, context) => {
|
|
911
|
+
const b = rb(input, context);
|
|
912
|
+
const headers = {
|
|
913
|
+
"content-type": "application/json",
|
|
914
|
+
};
|
|
915
|
+
b.bp("/applications/{applicationId}/dataaccessors/{dataAccessorId}");
|
|
916
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
917
|
+
b.p("dataAccessorId", () => input.dataAccessorId, "{dataAccessorId}", false);
|
|
918
|
+
let body;
|
|
919
|
+
body = JSON.stringify(take(input, {
|
|
920
|
+
actionConfigurations: (_) => se_ActionConfigurationList(_, context),
|
|
921
|
+
displayName: [],
|
|
922
|
+
}));
|
|
923
|
+
b.m("PUT").h(headers).b(body);
|
|
924
|
+
return b.build();
|
|
925
|
+
};
|
|
760
926
|
export const se_UpdateDataSourceCommand = async (input, context) => {
|
|
761
927
|
const b = rb(input, context);
|
|
762
928
|
const headers = {
|
|
@@ -862,6 +1028,7 @@ export const se_UpdateWebExperienceCommand = async (input, context) => {
|
|
|
862
1028
|
body = JSON.stringify(take(input, {
|
|
863
1029
|
authenticationConfiguration: (_) => _json(_),
|
|
864
1030
|
browserExtensionConfiguration: (_) => _json(_),
|
|
1031
|
+
customizationConfiguration: (_) => _json(_),
|
|
865
1032
|
identityProviderConfiguration: (_) => _json(_),
|
|
866
1033
|
origins: (_) => _json(_),
|
|
867
1034
|
roleArn: [],
|
|
@@ -873,6 +1040,20 @@ export const se_UpdateWebExperienceCommand = async (input, context) => {
|
|
|
873
1040
|
b.m("PUT").h(headers).b(body);
|
|
874
1041
|
return b.build();
|
|
875
1042
|
};
|
|
1043
|
+
export const de_AssociatePermissionCommand = async (output, context) => {
|
|
1044
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1046
|
+
}
|
|
1047
|
+
const contents = map({
|
|
1048
|
+
$metadata: deserializeMetadata(output),
|
|
1049
|
+
});
|
|
1050
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1051
|
+
const doc = take(data, {
|
|
1052
|
+
statement: __expectString,
|
|
1053
|
+
});
|
|
1054
|
+
Object.assign(contents, doc);
|
|
1055
|
+
return contents;
|
|
1056
|
+
};
|
|
876
1057
|
export const de_BatchDeleteDocumentCommand = async (output, context) => {
|
|
877
1058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
1059
|
return de_CommandError(output, context);
|
|
@@ -948,6 +1129,22 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
948
1129
|
Object.assign(contents, doc);
|
|
949
1130
|
return contents;
|
|
950
1131
|
};
|
|
1132
|
+
export const de_CreateDataAccessorCommand = async (output, context) => {
|
|
1133
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
+
return de_CommandError(output, context);
|
|
1135
|
+
}
|
|
1136
|
+
const contents = map({
|
|
1137
|
+
$metadata: deserializeMetadata(output),
|
|
1138
|
+
});
|
|
1139
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1140
|
+
const doc = take(data, {
|
|
1141
|
+
dataAccessorArn: __expectString,
|
|
1142
|
+
dataAccessorId: __expectString,
|
|
1143
|
+
idcApplicationArn: __expectString,
|
|
1144
|
+
});
|
|
1145
|
+
Object.assign(contents, doc);
|
|
1146
|
+
return contents;
|
|
1147
|
+
};
|
|
951
1148
|
export const de_CreateDataSourceCommand = async (output, context) => {
|
|
952
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
1150
|
return de_CommandError(output, context);
|
|
@@ -1064,6 +1261,16 @@ export const de_DeleteConversationCommand = async (output, context) => {
|
|
|
1064
1261
|
await collectBody(output.body, context);
|
|
1065
1262
|
return contents;
|
|
1066
1263
|
};
|
|
1264
|
+
export const de_DeleteDataAccessorCommand = async (output, context) => {
|
|
1265
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
|
+
return de_CommandError(output, context);
|
|
1267
|
+
}
|
|
1268
|
+
const contents = map({
|
|
1269
|
+
$metadata: deserializeMetadata(output),
|
|
1270
|
+
});
|
|
1271
|
+
await collectBody(output.body, context);
|
|
1272
|
+
return contents;
|
|
1273
|
+
};
|
|
1067
1274
|
export const de_DeleteDataSourceCommand = async (output, context) => {
|
|
1068
1275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
1276
|
return de_CommandError(output, context);
|
|
@@ -1134,6 +1341,16 @@ export const de_DeleteWebExperienceCommand = async (output, context) => {
|
|
|
1134
1341
|
await collectBody(output.body, context);
|
|
1135
1342
|
return contents;
|
|
1136
1343
|
};
|
|
1344
|
+
export const de_DisassociatePermissionCommand = async (output, context) => {
|
|
1345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
|
+
return de_CommandError(output, context);
|
|
1347
|
+
}
|
|
1348
|
+
const contents = map({
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
});
|
|
1351
|
+
await collectBody(output.body, context);
|
|
1352
|
+
return contents;
|
|
1353
|
+
};
|
|
1137
1354
|
export const de_GetApplicationCommand = async (output, context) => {
|
|
1138
1355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1139
1356
|
return de_CommandError(output, context);
|
|
@@ -1158,6 +1375,7 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
1158
1375
|
identityType: __expectString,
|
|
1159
1376
|
personalizationConfiguration: _json,
|
|
1160
1377
|
qAppsConfiguration: _json,
|
|
1378
|
+
quickSightConfiguration: _json,
|
|
1161
1379
|
roleArn: __expectString,
|
|
1162
1380
|
status: __expectString,
|
|
1163
1381
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -1183,6 +1401,28 @@ export const de_GetChatControlsConfigurationCommand = async (output, context) =>
|
|
|
1183
1401
|
Object.assign(contents, doc);
|
|
1184
1402
|
return contents;
|
|
1185
1403
|
};
|
|
1404
|
+
export const de_GetDataAccessorCommand = async (output, context) => {
|
|
1405
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1406
|
+
return de_CommandError(output, context);
|
|
1407
|
+
}
|
|
1408
|
+
const contents = map({
|
|
1409
|
+
$metadata: deserializeMetadata(output),
|
|
1410
|
+
});
|
|
1411
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1412
|
+
const doc = take(data, {
|
|
1413
|
+
actionConfigurations: (_) => de_ActionConfigurationList(_, context),
|
|
1414
|
+
applicationId: __expectString,
|
|
1415
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1416
|
+
dataAccessorArn: __expectString,
|
|
1417
|
+
dataAccessorId: __expectString,
|
|
1418
|
+
displayName: __expectString,
|
|
1419
|
+
idcApplicationArn: __expectString,
|
|
1420
|
+
principal: __expectString,
|
|
1421
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1422
|
+
});
|
|
1423
|
+
Object.assign(contents, doc);
|
|
1424
|
+
return contents;
|
|
1425
|
+
};
|
|
1186
1426
|
export const de_GetDataSourceCommand = async (output, context) => {
|
|
1187
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
1428
|
return de_CommandError(output, context);
|
|
@@ -1294,6 +1534,20 @@ export const de_GetPluginCommand = async (output, context) => {
|
|
|
1294
1534
|
Object.assign(contents, doc);
|
|
1295
1535
|
return contents;
|
|
1296
1536
|
};
|
|
1537
|
+
export const de_GetPolicyCommand = async (output, context) => {
|
|
1538
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1539
|
+
return de_CommandError(output, context);
|
|
1540
|
+
}
|
|
1541
|
+
const contents = map({
|
|
1542
|
+
$metadata: deserializeMetadata(output),
|
|
1543
|
+
});
|
|
1544
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1545
|
+
const doc = take(data, {
|
|
1546
|
+
policy: __expectString,
|
|
1547
|
+
});
|
|
1548
|
+
Object.assign(contents, doc);
|
|
1549
|
+
return contents;
|
|
1550
|
+
};
|
|
1297
1551
|
export const de_GetRetrieverCommand = async (output, context) => {
|
|
1298
1552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1299
1553
|
return de_CommandError(output, context);
|
|
@@ -1344,6 +1598,7 @@ export const de_GetWebExperienceCommand = async (output, context) => {
|
|
|
1344
1598
|
authenticationConfiguration: (_) => _json(__expectUnion(_)),
|
|
1345
1599
|
browserExtensionConfiguration: _json,
|
|
1346
1600
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1601
|
+
customizationConfiguration: _json,
|
|
1347
1602
|
defaultEndpoint: __expectString,
|
|
1348
1603
|
error: _json,
|
|
1349
1604
|
identityProviderConfiguration: (_) => _json(__expectUnion(_)),
|
|
@@ -1406,6 +1661,21 @@ export const de_ListConversationsCommand = async (output, context) => {
|
|
|
1406
1661
|
Object.assign(contents, doc);
|
|
1407
1662
|
return contents;
|
|
1408
1663
|
};
|
|
1664
|
+
export const de_ListDataAccessorsCommand = async (output, context) => {
|
|
1665
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1666
|
+
return de_CommandError(output, context);
|
|
1667
|
+
}
|
|
1668
|
+
const contents = map({
|
|
1669
|
+
$metadata: deserializeMetadata(output),
|
|
1670
|
+
});
|
|
1671
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1672
|
+
const doc = take(data, {
|
|
1673
|
+
dataAccessors: (_) => de_DataAccessors(_, context),
|
|
1674
|
+
nextToken: __expectString,
|
|
1675
|
+
});
|
|
1676
|
+
Object.assign(contents, doc);
|
|
1677
|
+
return contents;
|
|
1678
|
+
};
|
|
1409
1679
|
export const de_ListDataSourcesCommand = async (output, context) => {
|
|
1410
1680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
1681
|
return de_CommandError(output, context);
|
|
@@ -1496,6 +1766,21 @@ export const de_ListMessagesCommand = async (output, context) => {
|
|
|
1496
1766
|
Object.assign(contents, doc);
|
|
1497
1767
|
return contents;
|
|
1498
1768
|
};
|
|
1769
|
+
export const de_ListPluginActionsCommand = async (output, context) => {
|
|
1770
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1771
|
+
return de_CommandError(output, context);
|
|
1772
|
+
}
|
|
1773
|
+
const contents = map({
|
|
1774
|
+
$metadata: deserializeMetadata(output),
|
|
1775
|
+
});
|
|
1776
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1777
|
+
const doc = take(data, {
|
|
1778
|
+
items: _json,
|
|
1779
|
+
nextToken: __expectString,
|
|
1780
|
+
});
|
|
1781
|
+
Object.assign(contents, doc);
|
|
1782
|
+
return contents;
|
|
1783
|
+
};
|
|
1499
1784
|
export const de_ListPluginsCommand = async (output, context) => {
|
|
1500
1785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1501
1786
|
return de_CommandError(output, context);
|
|
@@ -1511,6 +1796,36 @@ export const de_ListPluginsCommand = async (output, context) => {
|
|
|
1511
1796
|
Object.assign(contents, doc);
|
|
1512
1797
|
return contents;
|
|
1513
1798
|
};
|
|
1799
|
+
export const de_ListPluginTypeActionsCommand = async (output, context) => {
|
|
1800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1801
|
+
return de_CommandError(output, context);
|
|
1802
|
+
}
|
|
1803
|
+
const contents = map({
|
|
1804
|
+
$metadata: deserializeMetadata(output),
|
|
1805
|
+
});
|
|
1806
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1807
|
+
const doc = take(data, {
|
|
1808
|
+
items: _json,
|
|
1809
|
+
nextToken: __expectString,
|
|
1810
|
+
});
|
|
1811
|
+
Object.assign(contents, doc);
|
|
1812
|
+
return contents;
|
|
1813
|
+
};
|
|
1814
|
+
export const de_ListPluginTypeMetadataCommand = async (output, context) => {
|
|
1815
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1816
|
+
return de_CommandError(output, context);
|
|
1817
|
+
}
|
|
1818
|
+
const contents = map({
|
|
1819
|
+
$metadata: deserializeMetadata(output),
|
|
1820
|
+
});
|
|
1821
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1822
|
+
const doc = take(data, {
|
|
1823
|
+
items: _json,
|
|
1824
|
+
nextToken: __expectString,
|
|
1825
|
+
});
|
|
1826
|
+
Object.assign(contents, doc);
|
|
1827
|
+
return contents;
|
|
1828
|
+
};
|
|
1514
1829
|
export const de_ListRetrieversCommand = async (output, context) => {
|
|
1515
1830
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
1831
|
return de_CommandError(output, context);
|
|
@@ -1575,6 +1890,21 @@ export const de_PutGroupCommand = async (output, context) => {
|
|
|
1575
1890
|
await collectBody(output.body, context);
|
|
1576
1891
|
return contents;
|
|
1577
1892
|
};
|
|
1893
|
+
export const de_SearchRelevantContentCommand = async (output, context) => {
|
|
1894
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1895
|
+
return de_CommandError(output, context);
|
|
1896
|
+
}
|
|
1897
|
+
const contents = map({
|
|
1898
|
+
$metadata: deserializeMetadata(output),
|
|
1899
|
+
});
|
|
1900
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1901
|
+
const doc = take(data, {
|
|
1902
|
+
nextToken: __expectString,
|
|
1903
|
+
relevantContent: (_) => de_RelevantContentList(_, context),
|
|
1904
|
+
});
|
|
1905
|
+
Object.assign(contents, doc);
|
|
1906
|
+
return contents;
|
|
1907
|
+
};
|
|
1578
1908
|
export const de_StartDataSourceSyncJobCommand = async (output, context) => {
|
|
1579
1909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
1910
|
return de_CommandError(output, context);
|
|
@@ -1639,6 +1969,16 @@ export const de_UpdateChatControlsConfigurationCommand = async (output, context)
|
|
|
1639
1969
|
await collectBody(output.body, context);
|
|
1640
1970
|
return contents;
|
|
1641
1971
|
};
|
|
1972
|
+
export const de_UpdateDataAccessorCommand = async (output, context) => {
|
|
1973
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
+
return de_CommandError(output, context);
|
|
1975
|
+
}
|
|
1976
|
+
const contents = map({
|
|
1977
|
+
$metadata: deserializeMetadata(output),
|
|
1978
|
+
});
|
|
1979
|
+
await collectBody(output.body, context);
|
|
1980
|
+
return contents;
|
|
1981
|
+
};
|
|
1642
1982
|
export const de_UpdateDataSourceCommand = async (output, context) => {
|
|
1643
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1644
1984
|
return de_CommandError(output, context);
|
|
@@ -1724,15 +2064,15 @@ const de_CommandError = async (output, context) => {
|
|
|
1724
2064
|
case "ResourceNotFoundException":
|
|
1725
2065
|
case "com.amazonaws.qbusiness#ResourceNotFoundException":
|
|
1726
2066
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2067
|
+
case "ServiceQuotaExceededException":
|
|
2068
|
+
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
2069
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1727
2070
|
case "ThrottlingException":
|
|
1728
2071
|
case "com.amazonaws.qbusiness#ThrottlingException":
|
|
1729
2072
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1730
2073
|
case "ValidationException":
|
|
1731
2074
|
case "com.amazonaws.qbusiness#ValidationException":
|
|
1732
2075
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ServiceQuotaExceededException":
|
|
1734
|
-
case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
|
|
1735
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1736
2076
|
case "ExternalResourceException":
|
|
1737
2077
|
case "com.amazonaws.qbusiness#ExternalResourceException":
|
|
1738
2078
|
throw await de_ExternalResourceExceptionRes(parsedOutput, context);
|
|
@@ -2028,6 +2368,19 @@ const de_TextOutputEvent_event = async (output, context) => {
|
|
|
2028
2368
|
Object.assign(contents, _json(data));
|
|
2029
2369
|
return contents;
|
|
2030
2370
|
};
|
|
2371
|
+
const se_ActionConfiguration = (input, context) => {
|
|
2372
|
+
return take(input, {
|
|
2373
|
+
action: [],
|
|
2374
|
+
filterConfiguration: (_) => se_ActionFilterConfiguration(_, context),
|
|
2375
|
+
});
|
|
2376
|
+
};
|
|
2377
|
+
const se_ActionConfigurationList = (input, context) => {
|
|
2378
|
+
return input
|
|
2379
|
+
.filter((e) => e != null)
|
|
2380
|
+
.map((entry) => {
|
|
2381
|
+
return se_ActionConfiguration(entry, context);
|
|
2382
|
+
});
|
|
2383
|
+
};
|
|
2031
2384
|
const se_ActionExecution = (input, context) => {
|
|
2032
2385
|
return take(input, {
|
|
2033
2386
|
payload: (_) => se_ActionExecutionPayload(_, context),
|
|
@@ -2056,6 +2409,11 @@ const se_ActionExecutionPayloadField = (input, context) => {
|
|
|
2056
2409
|
value: (_) => se_ActionPayloadFieldValue(_, context),
|
|
2057
2410
|
});
|
|
2058
2411
|
};
|
|
2412
|
+
const se_ActionFilterConfiguration = (input, context) => {
|
|
2413
|
+
return take(input, {
|
|
2414
|
+
documentAttributeFilter: (_) => se_AttributeFilter(_, context),
|
|
2415
|
+
});
|
|
2416
|
+
};
|
|
2059
2417
|
const se_ActionPayloadFieldValue = (input, context) => {
|
|
2060
2418
|
return input;
|
|
2061
2419
|
};
|
|
@@ -2208,6 +2566,20 @@ const se_MessageUsefulnessFeedback = (input, context) => {
|
|
|
2208
2566
|
usefulness: [],
|
|
2209
2567
|
});
|
|
2210
2568
|
};
|
|
2569
|
+
const de_ActionConfiguration = (output, context) => {
|
|
2570
|
+
return take(output, {
|
|
2571
|
+
action: __expectString,
|
|
2572
|
+
filterConfiguration: (_) => de_ActionFilterConfiguration(_, context),
|
|
2573
|
+
});
|
|
2574
|
+
};
|
|
2575
|
+
const de_ActionConfigurationList = (output, context) => {
|
|
2576
|
+
const retVal = (output || [])
|
|
2577
|
+
.filter((e) => e != null)
|
|
2578
|
+
.map((entry) => {
|
|
2579
|
+
return de_ActionConfiguration(entry, context);
|
|
2580
|
+
});
|
|
2581
|
+
return retVal;
|
|
2582
|
+
};
|
|
2211
2583
|
const de_ActionExecution = (output, context) => {
|
|
2212
2584
|
return take(output, {
|
|
2213
2585
|
payload: (_) => de_ActionExecutionPayload(_, context),
|
|
@@ -2229,6 +2601,11 @@ const de_ActionExecutionPayloadField = (output, context) => {
|
|
|
2229
2601
|
value: (_) => de_ActionPayloadFieldValue(_, context),
|
|
2230
2602
|
});
|
|
2231
2603
|
};
|
|
2604
|
+
const de_ActionFilterConfiguration = (output, context) => {
|
|
2605
|
+
return take(output, {
|
|
2606
|
+
documentAttributeFilter: (_) => de_AttributeFilter(_, context),
|
|
2607
|
+
});
|
|
2608
|
+
};
|
|
2232
2609
|
const de_ActionPayloadFieldValue = (output, context) => {
|
|
2233
2610
|
return output;
|
|
2234
2611
|
};
|
|
@@ -2296,6 +2673,7 @@ const de_Application = (output, context) => {
|
|
|
2296
2673
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2297
2674
|
displayName: __expectString,
|
|
2298
2675
|
identityType: __expectString,
|
|
2676
|
+
quickSightConfiguration: _json,
|
|
2299
2677
|
status: __expectString,
|
|
2300
2678
|
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2301
2679
|
});
|
|
@@ -2330,6 +2708,28 @@ const de_AttachmentList = (output, context) => {
|
|
|
2330
2708
|
});
|
|
2331
2709
|
return retVal;
|
|
2332
2710
|
};
|
|
2711
|
+
const de_AttributeFilter = (output, context) => {
|
|
2712
|
+
return take(output, {
|
|
2713
|
+
andAllFilters: (_) => de_AttributeFilters(_, context),
|
|
2714
|
+
containsAll: (_) => de_DocumentAttribute(_, context),
|
|
2715
|
+
containsAny: (_) => de_DocumentAttribute(_, context),
|
|
2716
|
+
equalsTo: (_) => de_DocumentAttribute(_, context),
|
|
2717
|
+
greaterThan: (_) => de_DocumentAttribute(_, context),
|
|
2718
|
+
greaterThanOrEquals: (_) => de_DocumentAttribute(_, context),
|
|
2719
|
+
lessThan: (_) => de_DocumentAttribute(_, context),
|
|
2720
|
+
lessThanOrEquals: (_) => de_DocumentAttribute(_, context),
|
|
2721
|
+
notFilter: (_) => de_AttributeFilter(_, context),
|
|
2722
|
+
orAllFilters: (_) => de_AttributeFilters(_, context),
|
|
2723
|
+
});
|
|
2724
|
+
};
|
|
2725
|
+
const de_AttributeFilters = (output, context) => {
|
|
2726
|
+
const retVal = (output || [])
|
|
2727
|
+
.filter((e) => e != null)
|
|
2728
|
+
.map((entry) => {
|
|
2729
|
+
return de_AttributeFilter(entry, context);
|
|
2730
|
+
});
|
|
2731
|
+
return retVal;
|
|
2732
|
+
};
|
|
2333
2733
|
const de_Conversation = (output, context) => {
|
|
2334
2734
|
return take(output, {
|
|
2335
2735
|
conversationId: __expectString,
|
|
@@ -2345,6 +2745,25 @@ const de_Conversations = (output, context) => {
|
|
|
2345
2745
|
});
|
|
2346
2746
|
return retVal;
|
|
2347
2747
|
};
|
|
2748
|
+
const de_DataAccessor = (output, context) => {
|
|
2749
|
+
return take(output, {
|
|
2750
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2751
|
+
dataAccessorArn: __expectString,
|
|
2752
|
+
dataAccessorId: __expectString,
|
|
2753
|
+
displayName: __expectString,
|
|
2754
|
+
idcApplicationArn: __expectString,
|
|
2755
|
+
principal: __expectString,
|
|
2756
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2757
|
+
});
|
|
2758
|
+
};
|
|
2759
|
+
const de_DataAccessors = (output, context) => {
|
|
2760
|
+
const retVal = (output || [])
|
|
2761
|
+
.filter((e) => e != null)
|
|
2762
|
+
.map((entry) => {
|
|
2763
|
+
return de_DataAccessor(entry, context);
|
|
2764
|
+
});
|
|
2765
|
+
return retVal;
|
|
2766
|
+
};
|
|
2348
2767
|
const de_DataSource = (output, context) => {
|
|
2349
2768
|
return take(output, {
|
|
2350
2769
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2385,6 +2804,12 @@ const de_DataSourceSyncJobs = (output, context) => {
|
|
|
2385
2804
|
});
|
|
2386
2805
|
return retVal;
|
|
2387
2806
|
};
|
|
2807
|
+
const de_DocumentAttribute = (output, context) => {
|
|
2808
|
+
return take(output, {
|
|
2809
|
+
name: __expectString,
|
|
2810
|
+
value: (_) => de_DocumentAttributeValue(__expectUnion(_), context),
|
|
2811
|
+
});
|
|
2812
|
+
};
|
|
2388
2813
|
const de_DocumentAttributeCondition = (output, context) => {
|
|
2389
2814
|
return take(output, {
|
|
2390
2815
|
key: __expectString,
|
|
@@ -2392,6 +2817,14 @@ const de_DocumentAttributeCondition = (output, context) => {
|
|
|
2392
2817
|
value: (_) => de_DocumentAttributeValue(__expectUnion(_), context),
|
|
2393
2818
|
});
|
|
2394
2819
|
};
|
|
2820
|
+
const de_DocumentAttributes = (output, context) => {
|
|
2821
|
+
const retVal = (output || [])
|
|
2822
|
+
.filter((e) => e != null)
|
|
2823
|
+
.map((entry) => {
|
|
2824
|
+
return de_DocumentAttribute(entry, context);
|
|
2825
|
+
});
|
|
2826
|
+
return retVal;
|
|
2827
|
+
};
|
|
2395
2828
|
const de_DocumentAttributeTarget = (output, context) => {
|
|
2396
2829
|
return take(output, {
|
|
2397
2830
|
attributeValueOperator: __expectString,
|
|
@@ -2546,6 +2979,24 @@ const de_Plugins = (output, context) => {
|
|
|
2546
2979
|
});
|
|
2547
2980
|
return retVal;
|
|
2548
2981
|
};
|
|
2982
|
+
const de_RelevantContent = (output, context) => {
|
|
2983
|
+
return take(output, {
|
|
2984
|
+
content: __expectString,
|
|
2985
|
+
documentAttributes: (_) => de_DocumentAttributes(_, context),
|
|
2986
|
+
documentId: __expectString,
|
|
2987
|
+
documentTitle: __expectString,
|
|
2988
|
+
documentUri: __expectString,
|
|
2989
|
+
scoreAttributes: _json,
|
|
2990
|
+
});
|
|
2991
|
+
};
|
|
2992
|
+
const de_RelevantContentList = (output, context) => {
|
|
2993
|
+
const retVal = (output || [])
|
|
2994
|
+
.filter((e) => e != null)
|
|
2995
|
+
.map((entry) => {
|
|
2996
|
+
return de_RelevantContent(entry, context);
|
|
2997
|
+
});
|
|
2998
|
+
return retVal;
|
|
2999
|
+
};
|
|
2549
3000
|
const de_SourceAttribution = (output, context) => {
|
|
2550
3001
|
return take(output, {
|
|
2551
3002
|
citationNumber: __expectInt32,
|