@aws-sdk/client-wisdom 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +82 -133
- package/dist-es/protocols/Aws_restJson1.js +58 -109
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-wisdom
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-wisdom
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -17,14 +17,13 @@ const serializeAws_restJson1CreateAssistantCommand = async (input, context) => {
|
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
20
|
-
...(input.description
|
|
21
|
-
...(input.name
|
|
22
|
-
...(input.serverSideEncryptionConfiguration
|
|
23
|
-
input.serverSideEncryptionConfiguration !== null && {
|
|
20
|
+
...(input.description != null && { description: input.description }),
|
|
21
|
+
...(input.name != null && { name: input.name }),
|
|
22
|
+
...(input.serverSideEncryptionConfiguration != null && {
|
|
24
23
|
serverSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
|
|
25
24
|
}),
|
|
26
|
-
...(input.tags
|
|
27
|
-
...(input.type
|
|
25
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
26
|
+
...(input.type != null && { type: input.type }),
|
|
28
27
|
});
|
|
29
28
|
return new protocol_http_1.HttpRequest({
|
|
30
29
|
protocol,
|
|
@@ -56,14 +55,12 @@ const serializeAws_restJson1CreateAssistantAssociationCommand = async (input, co
|
|
|
56
55
|
}
|
|
57
56
|
let body;
|
|
58
57
|
body = JSON.stringify({
|
|
59
|
-
...(input.association
|
|
60
|
-
input.association !== null && {
|
|
58
|
+
...(input.association != null && {
|
|
61
59
|
association: serializeAws_restJson1AssistantAssociationInputData(input.association, context),
|
|
62
60
|
}),
|
|
63
|
-
...(input.associationType
|
|
64
|
-
input.associationType !== null && { associationType: input.associationType }),
|
|
61
|
+
...(input.associationType != null && { associationType: input.associationType }),
|
|
65
62
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
66
|
-
...(input.tags
|
|
63
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
67
64
|
});
|
|
68
65
|
return new protocol_http_1.HttpRequest({
|
|
69
66
|
protocol,
|
|
@@ -97,14 +94,12 @@ const serializeAws_restJson1CreateContentCommand = async (input, context) => {
|
|
|
97
94
|
let body;
|
|
98
95
|
body = JSON.stringify({
|
|
99
96
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
100
|
-
...(input.metadata
|
|
101
|
-
|
|
102
|
-
...(input.
|
|
103
|
-
...(input.
|
|
104
|
-
|
|
105
|
-
...(input.
|
|
106
|
-
...(input.title !== undefined && input.title !== null && { title: input.title }),
|
|
107
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
97
|
+
...(input.metadata != null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) }),
|
|
98
|
+
...(input.name != null && { name: input.name }),
|
|
99
|
+
...(input.overrideLinkOutUri != null && { overrideLinkOutUri: input.overrideLinkOutUri }),
|
|
100
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
101
|
+
...(input.title != null && { title: input.title }),
|
|
102
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
108
103
|
});
|
|
109
104
|
return new protocol_http_1.HttpRequest({
|
|
110
105
|
protocol,
|
|
@@ -127,23 +122,19 @@ const serializeAws_restJson1CreateKnowledgeBaseCommand = async (input, context)
|
|
|
127
122
|
let body;
|
|
128
123
|
body = JSON.stringify({
|
|
129
124
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
130
|
-
...(input.description
|
|
131
|
-
...(input.knowledgeBaseType
|
|
132
|
-
|
|
133
|
-
...(input.
|
|
134
|
-
...(input.renderingConfiguration !== undefined &&
|
|
135
|
-
input.renderingConfiguration !== null && {
|
|
125
|
+
...(input.description != null && { description: input.description }),
|
|
126
|
+
...(input.knowledgeBaseType != null && { knowledgeBaseType: input.knowledgeBaseType }),
|
|
127
|
+
...(input.name != null && { name: input.name }),
|
|
128
|
+
...(input.renderingConfiguration != null && {
|
|
136
129
|
renderingConfiguration: serializeAws_restJson1RenderingConfiguration(input.renderingConfiguration, context),
|
|
137
130
|
}),
|
|
138
|
-
...(input.serverSideEncryptionConfiguration
|
|
139
|
-
input.serverSideEncryptionConfiguration !== null && {
|
|
131
|
+
...(input.serverSideEncryptionConfiguration != null && {
|
|
140
132
|
serverSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
|
|
141
133
|
}),
|
|
142
|
-
...(input.sourceConfiguration
|
|
143
|
-
input.sourceConfiguration !== null && {
|
|
134
|
+
...(input.sourceConfiguration != null && {
|
|
144
135
|
sourceConfiguration: serializeAws_restJson1SourceConfiguration(input.sourceConfiguration, context),
|
|
145
136
|
}),
|
|
146
|
-
...(input.tags
|
|
137
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
147
138
|
});
|
|
148
139
|
return new protocol_http_1.HttpRequest({
|
|
149
140
|
protocol,
|
|
@@ -176,9 +167,9 @@ const serializeAws_restJson1CreateSessionCommand = async (input, context) => {
|
|
|
176
167
|
let body;
|
|
177
168
|
body = JSON.stringify({
|
|
178
169
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
179
|
-
...(input.description
|
|
180
|
-
...(input.name
|
|
181
|
-
...(input.tags
|
|
170
|
+
...(input.description != null && { description: input.description }),
|
|
171
|
+
...(input.name != null && { name: input.name }),
|
|
172
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
182
173
|
});
|
|
183
174
|
return new protocol_http_1.HttpRequest({
|
|
184
175
|
protocol,
|
|
@@ -719,8 +710,7 @@ const serializeAws_restJson1NotifyRecommendationsReceivedCommand = async (input,
|
|
|
719
710
|
}
|
|
720
711
|
let body;
|
|
721
712
|
body = JSON.stringify({
|
|
722
|
-
...(input.recommendationIds
|
|
723
|
-
input.recommendationIds !== null && {
|
|
713
|
+
...(input.recommendationIds != null && {
|
|
724
714
|
recommendationIds: serializeAws_restJson1RecommendationIdList(input.recommendationIds, context),
|
|
725
715
|
}),
|
|
726
716
|
});
|
|
@@ -753,9 +743,9 @@ const serializeAws_restJson1QueryAssistantCommand = async (input, context) => {
|
|
|
753
743
|
}
|
|
754
744
|
let body;
|
|
755
745
|
body = JSON.stringify({
|
|
756
|
-
...(input.maxResults
|
|
757
|
-
...(input.nextToken
|
|
758
|
-
...(input.queryText
|
|
746
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
747
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
748
|
+
...(input.queryText != null && { queryText: input.queryText }),
|
|
759
749
|
});
|
|
760
750
|
return new protocol_http_1.HttpRequest({
|
|
761
751
|
protocol,
|
|
@@ -817,8 +807,7 @@ const serializeAws_restJson1SearchContentCommand = async (input, context) => {
|
|
|
817
807
|
};
|
|
818
808
|
let body;
|
|
819
809
|
body = JSON.stringify({
|
|
820
|
-
...(input.searchExpression
|
|
821
|
-
input.searchExpression !== null && {
|
|
810
|
+
...(input.searchExpression != null && {
|
|
822
811
|
searchExpression: serializeAws_restJson1SearchExpression(input.searchExpression, context),
|
|
823
812
|
}),
|
|
824
813
|
});
|
|
@@ -856,8 +845,7 @@ const serializeAws_restJson1SearchSessionsCommand = async (input, context) => {
|
|
|
856
845
|
};
|
|
857
846
|
let body;
|
|
858
847
|
body = JSON.stringify({
|
|
859
|
-
...(input.searchExpression
|
|
860
|
-
input.searchExpression !== null && {
|
|
848
|
+
...(input.searchExpression != null && {
|
|
861
849
|
searchExpression: serializeAws_restJson1SearchExpression(input.searchExpression, context),
|
|
862
850
|
}),
|
|
863
851
|
});
|
|
@@ -891,7 +879,7 @@ const serializeAws_restJson1StartContentUploadCommand = async (input, context) =
|
|
|
891
879
|
}
|
|
892
880
|
let body;
|
|
893
881
|
body = JSON.stringify({
|
|
894
|
-
...(input.contentType
|
|
882
|
+
...(input.contentType != null && { contentType: input.contentType }),
|
|
895
883
|
});
|
|
896
884
|
return new protocol_http_1.HttpRequest({
|
|
897
885
|
protocol,
|
|
@@ -922,7 +910,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
922
910
|
}
|
|
923
911
|
let body;
|
|
924
912
|
body = JSON.stringify({
|
|
925
|
-
...(input.tags
|
|
913
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
926
914
|
});
|
|
927
915
|
return new protocol_http_1.HttpRequest({
|
|
928
916
|
protocol,
|
|
@@ -994,15 +982,12 @@ const serializeAws_restJson1UpdateContentCommand = async (input, context) => {
|
|
|
994
982
|
}
|
|
995
983
|
let body;
|
|
996
984
|
body = JSON.stringify({
|
|
997
|
-
...(input.metadata
|
|
998
|
-
|
|
999
|
-
...(input.
|
|
1000
|
-
|
|
1001
|
-
...(input.
|
|
1002
|
-
|
|
1003
|
-
...(input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }),
|
|
1004
|
-
...(input.title !== undefined && input.title !== null && { title: input.title }),
|
|
1005
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
985
|
+
...(input.metadata != null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) }),
|
|
986
|
+
...(input.overrideLinkOutUri != null && { overrideLinkOutUri: input.overrideLinkOutUri }),
|
|
987
|
+
...(input.removeOverrideLinkOutUri != null && { removeOverrideLinkOutUri: input.removeOverrideLinkOutUri }),
|
|
988
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
989
|
+
...(input.title != null && { title: input.title }),
|
|
990
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1006
991
|
});
|
|
1007
992
|
return new protocol_http_1.HttpRequest({
|
|
1008
993
|
protocol,
|
|
@@ -1034,7 +1019,7 @@ const serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = async (input
|
|
|
1034
1019
|
}
|
|
1035
1020
|
let body;
|
|
1036
1021
|
body = JSON.stringify({
|
|
1037
|
-
...(input.templateUri
|
|
1022
|
+
...(input.templateUri != null && { templateUri: input.templateUri }),
|
|
1038
1023
|
});
|
|
1039
1024
|
return new protocol_http_1.HttpRequest({
|
|
1040
1025
|
protocol,
|
|
@@ -2526,10 +2511,8 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2526
2511
|
};
|
|
2527
2512
|
const serializeAws_restJson1AppIntegrationsConfiguration = (input, context) => {
|
|
2528
2513
|
return {
|
|
2529
|
-
...(input.appIntegrationArn
|
|
2530
|
-
|
|
2531
|
-
...(input.objectFields !== undefined &&
|
|
2532
|
-
input.objectFields !== null && {
|
|
2514
|
+
...(input.appIntegrationArn != null && { appIntegrationArn: input.appIntegrationArn }),
|
|
2515
|
+
...(input.objectFields != null && {
|
|
2533
2516
|
objectFields: serializeAws_restJson1ObjectFieldsList(input.objectFields, context),
|
|
2534
2517
|
}),
|
|
2535
2518
|
};
|
|
@@ -2553,9 +2536,9 @@ const serializeAws_restJson1ContentMetadata = (input, context) => {
|
|
|
2553
2536
|
};
|
|
2554
2537
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
2555
2538
|
return {
|
|
2556
|
-
...(input.field
|
|
2557
|
-
...(input.operator
|
|
2558
|
-
...(input.value
|
|
2539
|
+
...(input.field != null && { field: input.field }),
|
|
2540
|
+
...(input.operator != null && { operator: input.operator }),
|
|
2541
|
+
...(input.value != null && { value: input.value }),
|
|
2559
2542
|
};
|
|
2560
2543
|
};
|
|
2561
2544
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -2590,18 +2573,17 @@ const serializeAws_restJson1RecommendationIdList = (input, context) => {
|
|
|
2590
2573
|
};
|
|
2591
2574
|
const serializeAws_restJson1RenderingConfiguration = (input, context) => {
|
|
2592
2575
|
return {
|
|
2593
|
-
...(input.templateUri
|
|
2576
|
+
...(input.templateUri != null && { templateUri: input.templateUri }),
|
|
2594
2577
|
};
|
|
2595
2578
|
};
|
|
2596
2579
|
const serializeAws_restJson1SearchExpression = (input, context) => {
|
|
2597
2580
|
return {
|
|
2598
|
-
...(input.filters
|
|
2599
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
2581
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
2600
2582
|
};
|
|
2601
2583
|
};
|
|
2602
2584
|
const serializeAws_restJson1ServerSideEncryptionConfiguration = (input, context) => {
|
|
2603
2585
|
return {
|
|
2604
|
-
...(input.kmsKeyId
|
|
2586
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2605
2587
|
};
|
|
2606
2588
|
};
|
|
2607
2589
|
const serializeAws_restJson1SourceConfiguration = (input, context) => {
|
|
@@ -2626,9 +2608,7 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2626
2608
|
const deserializeAws_restJson1AppIntegrationsConfiguration = (output, context) => {
|
|
2627
2609
|
return {
|
|
2628
2610
|
appIntegrationArn: (0, smithy_client_1.expectString)(output.appIntegrationArn),
|
|
2629
|
-
objectFields: output.objectFields
|
|
2630
|
-
? deserializeAws_restJson1ObjectFieldsList(output.objectFields, context)
|
|
2631
|
-
: undefined,
|
|
2611
|
+
objectFields: output.objectFields != null ? deserializeAws_restJson1ObjectFieldsList(output.objectFields, context) : undefined,
|
|
2632
2612
|
};
|
|
2633
2613
|
};
|
|
2634
2614
|
const deserializeAws_restJson1AssistantAssociationData = (output, context) => {
|
|
@@ -2637,13 +2617,11 @@ const deserializeAws_restJson1AssistantAssociationData = (output, context) => {
|
|
|
2637
2617
|
assistantAssociationArn: (0, smithy_client_1.expectString)(output.assistantAssociationArn),
|
|
2638
2618
|
assistantAssociationId: (0, smithy_client_1.expectString)(output.assistantAssociationId),
|
|
2639
2619
|
assistantId: (0, smithy_client_1.expectString)(output.assistantId),
|
|
2640
|
-
associationData: output.associationData
|
|
2620
|
+
associationData: output.associationData != null
|
|
2641
2621
|
? deserializeAws_restJson1AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
|
|
2642
2622
|
: undefined,
|
|
2643
2623
|
associationType: (0, smithy_client_1.expectString)(output.associationType),
|
|
2644
|
-
tags: output.tags
|
|
2645
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2646
|
-
: undefined,
|
|
2624
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2647
2625
|
};
|
|
2648
2626
|
};
|
|
2649
2627
|
const deserializeAws_restJson1AssistantAssociationOutputData = (output, context) => {
|
|
@@ -2660,13 +2638,11 @@ const deserializeAws_restJson1AssistantAssociationSummary = (output, context) =>
|
|
|
2660
2638
|
assistantAssociationArn: (0, smithy_client_1.expectString)(output.assistantAssociationArn),
|
|
2661
2639
|
assistantAssociationId: (0, smithy_client_1.expectString)(output.assistantAssociationId),
|
|
2662
2640
|
assistantId: (0, smithy_client_1.expectString)(output.assistantId),
|
|
2663
|
-
associationData: output.associationData
|
|
2641
|
+
associationData: output.associationData != null
|
|
2664
2642
|
? deserializeAws_restJson1AssistantAssociationOutputData((0, smithy_client_1.expectUnion)(output.associationData), context)
|
|
2665
2643
|
: undefined,
|
|
2666
2644
|
associationType: (0, smithy_client_1.expectString)(output.associationType),
|
|
2667
|
-
tags: output.tags
|
|
2668
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2669
|
-
: undefined,
|
|
2645
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2670
2646
|
};
|
|
2671
2647
|
};
|
|
2672
2648
|
const deserializeAws_restJson1AssistantAssociationSummaryList = (output, context) => {
|
|
@@ -2686,13 +2662,11 @@ const deserializeAws_restJson1AssistantData = (output, context) => {
|
|
|
2686
2662
|
assistantId: (0, smithy_client_1.expectString)(output.assistantId),
|
|
2687
2663
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2688
2664
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2689
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
2665
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
2690
2666
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
2691
2667
|
: undefined,
|
|
2692
2668
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2693
|
-
tags: output.tags
|
|
2694
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2695
|
-
: undefined,
|
|
2669
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2696
2670
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2697
2671
|
};
|
|
2698
2672
|
};
|
|
@@ -2713,13 +2687,11 @@ const deserializeAws_restJson1AssistantSummary = (output, context) => {
|
|
|
2713
2687
|
assistantId: (0, smithy_client_1.expectString)(output.assistantId),
|
|
2714
2688
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2715
2689
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2716
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
2690
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
2717
2691
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
2718
2692
|
: undefined,
|
|
2719
2693
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2720
|
-
tags: output.tags
|
|
2721
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2722
|
-
: undefined,
|
|
2694
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2723
2695
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2724
2696
|
};
|
|
2725
2697
|
};
|
|
@@ -2731,20 +2703,14 @@ const deserializeAws_restJson1ContentData = (output, context) => {
|
|
|
2731
2703
|
knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
|
|
2732
2704
|
knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
|
|
2733
2705
|
linkOutUri: (0, smithy_client_1.expectString)(output.linkOutUri),
|
|
2734
|
-
metadata: output.metadata
|
|
2735
|
-
? deserializeAws_restJson1ContentMetadata(output.metadata, context)
|
|
2736
|
-
: undefined,
|
|
2706
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ContentMetadata(output.metadata, context) : undefined,
|
|
2737
2707
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2738
2708
|
revisionId: (0, smithy_client_1.expectString)(output.revisionId),
|
|
2739
2709
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2740
|
-
tags: output.tags
|
|
2741
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2742
|
-
: undefined,
|
|
2710
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2743
2711
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
2744
2712
|
url: (0, smithy_client_1.expectString)(output.url),
|
|
2745
|
-
urlExpiry: output.urlExpiry
|
|
2746
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.urlExpiry)))
|
|
2747
|
-
: undefined,
|
|
2713
|
+
urlExpiry: output.urlExpiry != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.urlExpiry))) : undefined,
|
|
2748
2714
|
};
|
|
2749
2715
|
};
|
|
2750
2716
|
const deserializeAws_restJson1ContentMetadata = (output, context) => {
|
|
@@ -2773,15 +2739,11 @@ const deserializeAws_restJson1ContentSummary = (output, context) => {
|
|
|
2773
2739
|
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
2774
2740
|
knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
|
|
2775
2741
|
knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
|
|
2776
|
-
metadata: output.metadata
|
|
2777
|
-
? deserializeAws_restJson1ContentMetadata(output.metadata, context)
|
|
2778
|
-
: undefined,
|
|
2742
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ContentMetadata(output.metadata, context) : undefined,
|
|
2779
2743
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2780
2744
|
revisionId: (0, smithy_client_1.expectString)(output.revisionId),
|
|
2781
2745
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2782
|
-
tags: output.tags
|
|
2783
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2784
|
-
: undefined,
|
|
2746
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2785
2747
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
2786
2748
|
};
|
|
2787
2749
|
};
|
|
@@ -2798,22 +2760,16 @@ const deserializeAws_restJson1ContentSummaryList = (output, context) => {
|
|
|
2798
2760
|
};
|
|
2799
2761
|
const deserializeAws_restJson1Document = (output, context) => {
|
|
2800
2762
|
return {
|
|
2801
|
-
contentReference: output.contentReference
|
|
2763
|
+
contentReference: output.contentReference != null
|
|
2802
2764
|
? deserializeAws_restJson1ContentReference(output.contentReference, context)
|
|
2803
2765
|
: undefined,
|
|
2804
|
-
excerpt: output.excerpt
|
|
2805
|
-
|
|
2806
|
-
: undefined,
|
|
2807
|
-
title: output.title !== undefined && output.title !== null
|
|
2808
|
-
? deserializeAws_restJson1DocumentText(output.title, context)
|
|
2809
|
-
: undefined,
|
|
2766
|
+
excerpt: output.excerpt != null ? deserializeAws_restJson1DocumentText(output.excerpt, context) : undefined,
|
|
2767
|
+
title: output.title != null ? deserializeAws_restJson1DocumentText(output.title, context) : undefined,
|
|
2810
2768
|
};
|
|
2811
2769
|
};
|
|
2812
2770
|
const deserializeAws_restJson1DocumentText = (output, context) => {
|
|
2813
2771
|
return {
|
|
2814
|
-
highlights: output.highlights
|
|
2815
|
-
? deserializeAws_restJson1Highlights(output.highlights, context)
|
|
2816
|
-
: undefined,
|
|
2772
|
+
highlights: output.highlights != null ? deserializeAws_restJson1Highlights(output.highlights, context) : undefined,
|
|
2817
2773
|
text: (0, smithy_client_1.expectString)(output.text),
|
|
2818
2774
|
};
|
|
2819
2775
|
};
|
|
@@ -2857,23 +2813,21 @@ const deserializeAws_restJson1KnowledgeBaseData = (output, context) => {
|
|
|
2857
2813
|
knowledgeBaseArn: (0, smithy_client_1.expectString)(output.knowledgeBaseArn),
|
|
2858
2814
|
knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
|
|
2859
2815
|
knowledgeBaseType: (0, smithy_client_1.expectString)(output.knowledgeBaseType),
|
|
2860
|
-
lastContentModificationTime: output.lastContentModificationTime
|
|
2816
|
+
lastContentModificationTime: output.lastContentModificationTime != null
|
|
2861
2817
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastContentModificationTime)))
|
|
2862
2818
|
: undefined,
|
|
2863
2819
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2864
|
-
renderingConfiguration: output.renderingConfiguration
|
|
2820
|
+
renderingConfiguration: output.renderingConfiguration != null
|
|
2865
2821
|
? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
|
|
2866
2822
|
: undefined,
|
|
2867
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
2823
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
2868
2824
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
2869
2825
|
: undefined,
|
|
2870
|
-
sourceConfiguration: output.sourceConfiguration
|
|
2826
|
+
sourceConfiguration: output.sourceConfiguration != null
|
|
2871
2827
|
? deserializeAws_restJson1SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
|
|
2872
2828
|
: undefined,
|
|
2873
2829
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2874
|
-
tags: output.tags
|
|
2875
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2876
|
-
: undefined,
|
|
2830
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2877
2831
|
};
|
|
2878
2832
|
};
|
|
2879
2833
|
const deserializeAws_restJson1KnowledgeBaseList = (output, context) => {
|
|
@@ -2894,19 +2848,17 @@ const deserializeAws_restJson1KnowledgeBaseSummary = (output, context) => {
|
|
|
2894
2848
|
knowledgeBaseId: (0, smithy_client_1.expectString)(output.knowledgeBaseId),
|
|
2895
2849
|
knowledgeBaseType: (0, smithy_client_1.expectString)(output.knowledgeBaseType),
|
|
2896
2850
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2897
|
-
renderingConfiguration: output.renderingConfiguration
|
|
2851
|
+
renderingConfiguration: output.renderingConfiguration != null
|
|
2898
2852
|
? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
|
|
2899
2853
|
: undefined,
|
|
2900
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
2854
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
2901
2855
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
2902
2856
|
: undefined,
|
|
2903
|
-
sourceConfiguration: output.sourceConfiguration
|
|
2857
|
+
sourceConfiguration: output.sourceConfiguration != null
|
|
2904
2858
|
? deserializeAws_restJson1SourceConfiguration((0, smithy_client_1.expectUnion)(output.sourceConfiguration), context)
|
|
2905
2859
|
: undefined,
|
|
2906
2860
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2907
|
-
tags: output.tags
|
|
2908
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2909
|
-
: undefined,
|
|
2861
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2910
2862
|
};
|
|
2911
2863
|
};
|
|
2912
2864
|
const deserializeAws_restJson1NotifyRecommendationsReceivedError = (output, context) => {
|
|
@@ -2955,9 +2907,7 @@ const deserializeAws_restJson1QueryResultsList = (output, context) => {
|
|
|
2955
2907
|
};
|
|
2956
2908
|
const deserializeAws_restJson1RecommendationData = (output, context) => {
|
|
2957
2909
|
return {
|
|
2958
|
-
document: output.document
|
|
2959
|
-
? deserializeAws_restJson1Document(output.document, context)
|
|
2960
|
-
: undefined,
|
|
2910
|
+
document: output.document != null ? deserializeAws_restJson1Document(output.document, context) : undefined,
|
|
2961
2911
|
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
2962
2912
|
relevanceLevel: (0, smithy_client_1.expectString)(output.relevanceLevel),
|
|
2963
2913
|
relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
|
|
@@ -2988,11 +2938,11 @@ const deserializeAws_restJson1RecommendationList = (output, context) => {
|
|
|
2988
2938
|
};
|
|
2989
2939
|
const deserializeAws_restJson1RecommendationTrigger = (output, context) => {
|
|
2990
2940
|
return {
|
|
2991
|
-
data: output.data
|
|
2941
|
+
data: output.data != null
|
|
2992
2942
|
? deserializeAws_restJson1RecommendationTriggerData((0, smithy_client_1.expectUnion)(output.data), context)
|
|
2993
2943
|
: undefined,
|
|
2994
2944
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2995
|
-
recommendationIds: output.recommendationIds
|
|
2945
|
+
recommendationIds: output.recommendationIds != null
|
|
2996
2946
|
? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
|
|
2997
2947
|
: undefined,
|
|
2998
2948
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
@@ -3025,9 +2975,7 @@ const deserializeAws_restJson1RenderingConfiguration = (output, context) => {
|
|
|
3025
2975
|
};
|
|
3026
2976
|
const deserializeAws_restJson1ResultData = (output, context) => {
|
|
3027
2977
|
return {
|
|
3028
|
-
document: output.document
|
|
3029
|
-
? deserializeAws_restJson1Document(output.document, context)
|
|
3030
|
-
: undefined,
|
|
2978
|
+
document: output.document != null ? deserializeAws_restJson1Document(output.document, context) : undefined,
|
|
3031
2979
|
relevanceScore: (0, smithy_client_1.limitedParseDouble)(output.relevanceScore),
|
|
3032
2980
|
resultId: (0, smithy_client_1.expectString)(output.resultId),
|
|
3033
2981
|
};
|
|
@@ -3043,9 +2991,7 @@ const deserializeAws_restJson1SessionData = (output, context) => {
|
|
|
3043
2991
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3044
2992
|
sessionArn: (0, smithy_client_1.expectString)(output.sessionArn),
|
|
3045
2993
|
sessionId: (0, smithy_client_1.expectString)(output.sessionId),
|
|
3046
|
-
tags: output.tags
|
|
3047
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3048
|
-
: undefined,
|
|
2994
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3049
2995
|
};
|
|
3050
2996
|
};
|
|
3051
2997
|
const deserializeAws_restJson1SessionSummaries = (output, context) => {
|
|
@@ -3117,6 +3063,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3117
3063
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3118
3064
|
const sanitizeErrorCode = (rawValue) => {
|
|
3119
3065
|
let cleanValue = rawValue;
|
|
3066
|
+
if (typeof cleanValue === "number") {
|
|
3067
|
+
cleanValue = cleanValue.toString();
|
|
3068
|
+
}
|
|
3120
3069
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3121
3070
|
cleanValue = cleanValue.split(":")[0];
|
|
3122
3071
|
}
|
|
@@ -16,10 +16,9 @@ export var serializeAws_restJson1CreateAssistantCommand = function (input, conte
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assistants";
|
|
19
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
20
|
-
input.serverSideEncryptionConfiguration !== null && {
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.serverSideEncryptionConfiguration != null && {
|
|
21
20
|
serverSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
|
|
22
|
-
})), (input.tags
|
|
21
|
+
})), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.type != null && { type: input.type })));
|
|
23
22
|
return [2, new __HttpRequest({
|
|
24
23
|
protocol: protocol,
|
|
25
24
|
hostname: hostname,
|
|
@@ -54,11 +53,9 @@ export var serializeAws_restJson1CreateAssistantAssociationCommand = function (i
|
|
|
54
53
|
else {
|
|
55
54
|
throw new Error("No value provided for input HTTP label: assistantId.");
|
|
56
55
|
}
|
|
57
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.association
|
|
58
|
-
input.association !== null && {
|
|
56
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.association != null && {
|
|
59
57
|
association: serializeAws_restJson1AssistantAssociationInputData(input.association, context),
|
|
60
|
-
})), (input.associationType !==
|
|
61
|
-
input.associationType !== null && { associationType: input.associationType })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
58
|
+
})), (input.associationType != null && { associationType: input.associationType })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
62
59
|
return [2, new __HttpRequest({
|
|
63
60
|
protocol: protocol,
|
|
64
61
|
hostname: hostname,
|
|
@@ -94,9 +91,7 @@ export var serializeAws_restJson1CreateContentCommand = function (input, context
|
|
|
94
91
|
else {
|
|
95
92
|
throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
|
|
96
93
|
}
|
|
97
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.metadata
|
|
98
|
-
input.metadata !== null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.overrideLinkOutUri !== undefined &&
|
|
99
|
-
input.overrideLinkOutUri !== null && { overrideLinkOutUri: input.overrideLinkOutUri })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.title !== undefined && input.title !== null && { title: input.title })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId })));
|
|
94
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.metadata != null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) })), (input.name != null && { name: input.name })), (input.overrideLinkOutUri != null && { overrideLinkOutUri: input.overrideLinkOutUri })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.title != null && { title: input.title })), (input.uploadId != null && { uploadId: input.uploadId })));
|
|
100
95
|
return [2, new __HttpRequest({
|
|
101
96
|
protocol: protocol,
|
|
102
97
|
hostname: hostname,
|
|
@@ -121,17 +116,13 @@ export var serializeAws_restJson1CreateKnowledgeBaseCommand = function (input, c
|
|
|
121
116
|
"content-type": "application/json",
|
|
122
117
|
};
|
|
123
118
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/knowledgeBases";
|
|
124
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
125
|
-
input.knowledgeBaseType !== null && { knowledgeBaseType: input.knowledgeBaseType })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.renderingConfiguration !== undefined &&
|
|
126
|
-
input.renderingConfiguration !== null && {
|
|
119
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.knowledgeBaseType != null && { knowledgeBaseType: input.knowledgeBaseType })), (input.name != null && { name: input.name })), (input.renderingConfiguration != null && {
|
|
127
120
|
renderingConfiguration: serializeAws_restJson1RenderingConfiguration(input.renderingConfiguration, context),
|
|
128
|
-
})), (input.serverSideEncryptionConfiguration
|
|
129
|
-
input.serverSideEncryptionConfiguration !== null && {
|
|
121
|
+
})), (input.serverSideEncryptionConfiguration != null && {
|
|
130
122
|
serverSideEncryptionConfiguration: serializeAws_restJson1ServerSideEncryptionConfiguration(input.serverSideEncryptionConfiguration, context),
|
|
131
|
-
})), (input.sourceConfiguration
|
|
132
|
-
input.sourceConfiguration !== null && {
|
|
123
|
+
})), (input.sourceConfiguration != null && {
|
|
133
124
|
sourceConfiguration: serializeAws_restJson1SourceConfiguration(input.sourceConfiguration, context),
|
|
134
|
-
})), (input.tags
|
|
125
|
+
})), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
135
126
|
return [2, new __HttpRequest({
|
|
136
127
|
protocol: protocol,
|
|
137
128
|
hostname: hostname,
|
|
@@ -166,7 +157,7 @@ export var serializeAws_restJson1CreateSessionCommand = function (input, context
|
|
|
166
157
|
else {
|
|
167
158
|
throw new Error("No value provided for input HTTP label: assistantId.");
|
|
168
159
|
}
|
|
169
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
160
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
170
161
|
return [2, new __HttpRequest({
|
|
171
162
|
protocol: protocol,
|
|
172
163
|
hostname: hostname,
|
|
@@ -775,8 +766,7 @@ export var serializeAws_restJson1NotifyRecommendationsReceivedCommand = function
|
|
|
775
766
|
else {
|
|
776
767
|
throw new Error("No value provided for input HTTP label: sessionId.");
|
|
777
768
|
}
|
|
778
|
-
body = JSON.stringify(__assign({}, (input.recommendationIds
|
|
779
|
-
input.recommendationIds !== null && {
|
|
769
|
+
body = JSON.stringify(__assign({}, (input.recommendationIds != null && {
|
|
780
770
|
recommendationIds: serializeAws_restJson1RecommendationIdList(input.recommendationIds, context),
|
|
781
771
|
})));
|
|
782
772
|
return [2, new __HttpRequest({
|
|
@@ -812,7 +802,7 @@ export var serializeAws_restJson1QueryAssistantCommand = function (input, contex
|
|
|
812
802
|
else {
|
|
813
803
|
throw new Error("No value provided for input HTTP label: assistantId.");
|
|
814
804
|
}
|
|
815
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults
|
|
805
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.queryText != null && { queryText: input.queryText })));
|
|
816
806
|
return [2, new __HttpRequest({
|
|
817
807
|
protocol: protocol,
|
|
818
808
|
hostname: hostname,
|
|
@@ -879,8 +869,7 @@ export var serializeAws_restJson1SearchContentCommand = function (input, context
|
|
|
879
869
|
throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
|
|
880
870
|
}
|
|
881
871
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
882
|
-
body = JSON.stringify(__assign({}, (input.searchExpression
|
|
883
|
-
input.searchExpression !== null && {
|
|
872
|
+
body = JSON.stringify(__assign({}, (input.searchExpression != null && {
|
|
884
873
|
searchExpression: serializeAws_restJson1SearchExpression(input.searchExpression, context),
|
|
885
874
|
})));
|
|
886
875
|
return [2, new __HttpRequest({
|
|
@@ -918,8 +907,7 @@ export var serializeAws_restJson1SearchSessionsCommand = function (input, contex
|
|
|
918
907
|
throw new Error("No value provided for input HTTP label: assistantId.");
|
|
919
908
|
}
|
|
920
909
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
921
|
-
body = JSON.stringify(__assign({}, (input.searchExpression
|
|
922
|
-
input.searchExpression !== null && {
|
|
910
|
+
body = JSON.stringify(__assign({}, (input.searchExpression != null && {
|
|
923
911
|
searchExpression: serializeAws_restJson1SearchExpression(input.searchExpression, context),
|
|
924
912
|
})));
|
|
925
913
|
return [2, new __HttpRequest({
|
|
@@ -956,7 +944,7 @@ export var serializeAws_restJson1StartContentUploadCommand = function (input, co
|
|
|
956
944
|
else {
|
|
957
945
|
throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
|
|
958
946
|
}
|
|
959
|
-
body = JSON.stringify(__assign({}, (input.contentType
|
|
947
|
+
body = JSON.stringify(__assign({}, (input.contentType != null && { contentType: input.contentType })));
|
|
960
948
|
return [2, new __HttpRequest({
|
|
961
949
|
protocol: protocol,
|
|
962
950
|
hostname: hostname,
|
|
@@ -990,7 +978,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
990
978
|
else {
|
|
991
979
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
992
980
|
}
|
|
993
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
981
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
994
982
|
return [2, new __HttpRequest({
|
|
995
983
|
protocol: protocol,
|
|
996
984
|
hostname: hostname,
|
|
@@ -1068,10 +1056,7 @@ export var serializeAws_restJson1UpdateContentCommand = function (input, context
|
|
|
1068
1056
|
else {
|
|
1069
1057
|
throw new Error("No value provided for input HTTP label: contentId.");
|
|
1070
1058
|
}
|
|
1071
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.metadata
|
|
1072
|
-
input.metadata !== null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) })), (input.overrideLinkOutUri !== undefined &&
|
|
1073
|
-
input.overrideLinkOutUri !== null && { overrideLinkOutUri: input.overrideLinkOutUri })), (input.removeOverrideLinkOutUri !== undefined &&
|
|
1074
|
-
input.removeOverrideLinkOutUri !== null && { removeOverrideLinkOutUri: input.removeOverrideLinkOutUri })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId })), (input.title !== undefined && input.title !== null && { title: input.title })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId })));
|
|
1059
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.metadata != null && { metadata: serializeAws_restJson1ContentMetadata(input.metadata, context) })), (input.overrideLinkOutUri != null && { overrideLinkOutUri: input.overrideLinkOutUri })), (input.removeOverrideLinkOutUri != null && { removeOverrideLinkOutUri: input.removeOverrideLinkOutUri })), (input.revisionId != null && { revisionId: input.revisionId })), (input.title != null && { title: input.title })), (input.uploadId != null && { uploadId: input.uploadId })));
|
|
1075
1060
|
return [2, new __HttpRequest({
|
|
1076
1061
|
protocol: protocol,
|
|
1077
1062
|
hostname: hostname,
|
|
@@ -1106,7 +1091,7 @@ export var serializeAws_restJson1UpdateKnowledgeBaseTemplateUriCommand = functio
|
|
|
1106
1091
|
else {
|
|
1107
1092
|
throw new Error("No value provided for input HTTP label: knowledgeBaseId.");
|
|
1108
1093
|
}
|
|
1109
|
-
body = JSON.stringify(__assign({}, (input.templateUri
|
|
1094
|
+
body = JSON.stringify(__assign({}, (input.templateUri != null && { templateUri: input.templateUri })));
|
|
1110
1095
|
return [2, new __HttpRequest({
|
|
1111
1096
|
protocol: protocol,
|
|
1112
1097
|
hostname: hostname,
|
|
@@ -3235,9 +3220,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
3235
3220
|
});
|
|
3236
3221
|
}); };
|
|
3237
3222
|
var serializeAws_restJson1AppIntegrationsConfiguration = function (input, context) {
|
|
3238
|
-
return __assign(__assign({}, (input.appIntegrationArn
|
|
3239
|
-
input.appIntegrationArn !== null && { appIntegrationArn: input.appIntegrationArn })), (input.objectFields !== undefined &&
|
|
3240
|
-
input.objectFields !== null && {
|
|
3223
|
+
return __assign(__assign({}, (input.appIntegrationArn != null && { appIntegrationArn: input.appIntegrationArn })), (input.objectFields != null && {
|
|
3241
3224
|
objectFields: serializeAws_restJson1ObjectFieldsList(input.objectFields, context),
|
|
3242
3225
|
}));
|
|
3243
3226
|
};
|
|
@@ -3258,7 +3241,7 @@ var serializeAws_restJson1ContentMetadata = function (input, context) {
|
|
|
3258
3241
|
}, {});
|
|
3259
3242
|
};
|
|
3260
3243
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
3261
|
-
return __assign(__assign(__assign({}, (input.field
|
|
3244
|
+
return __assign(__assign(__assign({}, (input.field != null && { field: input.field })), (input.operator != null && { operator: input.operator })), (input.value != null && { value: input.value }));
|
|
3262
3245
|
};
|
|
3263
3246
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
3264
3247
|
return input
|
|
@@ -3291,14 +3274,13 @@ var serializeAws_restJson1RecommendationIdList = function (input, context) {
|
|
|
3291
3274
|
});
|
|
3292
3275
|
};
|
|
3293
3276
|
var serializeAws_restJson1RenderingConfiguration = function (input, context) {
|
|
3294
|
-
return __assign({}, (input.templateUri
|
|
3277
|
+
return __assign({}, (input.templateUri != null && { templateUri: input.templateUri }));
|
|
3295
3278
|
};
|
|
3296
3279
|
var serializeAws_restJson1SearchExpression = function (input, context) {
|
|
3297
|
-
return __assign({}, (input.filters
|
|
3298
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }));
|
|
3280
|
+
return __assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }));
|
|
3299
3281
|
};
|
|
3300
3282
|
var serializeAws_restJson1ServerSideEncryptionConfiguration = function (input, context) {
|
|
3301
|
-
return __assign({}, (input.kmsKeyId
|
|
3283
|
+
return __assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }));
|
|
3302
3284
|
};
|
|
3303
3285
|
var serializeAws_restJson1SourceConfiguration = function (input, context) {
|
|
3304
3286
|
return SourceConfiguration.visit(input, {
|
|
@@ -3321,9 +3303,7 @@ var serializeAws_restJson1Tags = function (input, context) {
|
|
|
3321
3303
|
var deserializeAws_restJson1AppIntegrationsConfiguration = function (output, context) {
|
|
3322
3304
|
return {
|
|
3323
3305
|
appIntegrationArn: __expectString(output.appIntegrationArn),
|
|
3324
|
-
objectFields: output.objectFields
|
|
3325
|
-
? deserializeAws_restJson1ObjectFieldsList(output.objectFields, context)
|
|
3326
|
-
: undefined,
|
|
3306
|
+
objectFields: output.objectFields != null ? deserializeAws_restJson1ObjectFieldsList(output.objectFields, context) : undefined,
|
|
3327
3307
|
};
|
|
3328
3308
|
};
|
|
3329
3309
|
var deserializeAws_restJson1AssistantAssociationData = function (output, context) {
|
|
@@ -3332,13 +3312,11 @@ var deserializeAws_restJson1AssistantAssociationData = function (output, context
|
|
|
3332
3312
|
assistantAssociationArn: __expectString(output.assistantAssociationArn),
|
|
3333
3313
|
assistantAssociationId: __expectString(output.assistantAssociationId),
|
|
3334
3314
|
assistantId: __expectString(output.assistantId),
|
|
3335
|
-
associationData: output.associationData
|
|
3315
|
+
associationData: output.associationData != null
|
|
3336
3316
|
? deserializeAws_restJson1AssistantAssociationOutputData(__expectUnion(output.associationData), context)
|
|
3337
3317
|
: undefined,
|
|
3338
3318
|
associationType: __expectString(output.associationType),
|
|
3339
|
-
tags: output.tags
|
|
3340
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3341
|
-
: undefined,
|
|
3319
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3342
3320
|
};
|
|
3343
3321
|
};
|
|
3344
3322
|
var deserializeAws_restJson1AssistantAssociationOutputData = function (output, context) {
|
|
@@ -3355,13 +3333,11 @@ var deserializeAws_restJson1AssistantAssociationSummary = function (output, cont
|
|
|
3355
3333
|
assistantAssociationArn: __expectString(output.assistantAssociationArn),
|
|
3356
3334
|
assistantAssociationId: __expectString(output.assistantAssociationId),
|
|
3357
3335
|
assistantId: __expectString(output.assistantId),
|
|
3358
|
-
associationData: output.associationData
|
|
3336
|
+
associationData: output.associationData != null
|
|
3359
3337
|
? deserializeAws_restJson1AssistantAssociationOutputData(__expectUnion(output.associationData), context)
|
|
3360
3338
|
: undefined,
|
|
3361
3339
|
associationType: __expectString(output.associationType),
|
|
3362
|
-
tags: output.tags
|
|
3363
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3364
|
-
: undefined,
|
|
3340
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3365
3341
|
};
|
|
3366
3342
|
};
|
|
3367
3343
|
var deserializeAws_restJson1AssistantAssociationSummaryList = function (output, context) {
|
|
@@ -3381,13 +3357,11 @@ var deserializeAws_restJson1AssistantData = function (output, context) {
|
|
|
3381
3357
|
assistantId: __expectString(output.assistantId),
|
|
3382
3358
|
description: __expectString(output.description),
|
|
3383
3359
|
name: __expectString(output.name),
|
|
3384
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
3360
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
3385
3361
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
3386
3362
|
: undefined,
|
|
3387
3363
|
status: __expectString(output.status),
|
|
3388
|
-
tags: output.tags
|
|
3389
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3390
|
-
: undefined,
|
|
3364
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3391
3365
|
type: __expectString(output.type),
|
|
3392
3366
|
};
|
|
3393
3367
|
};
|
|
@@ -3408,13 +3382,11 @@ var deserializeAws_restJson1AssistantSummary = function (output, context) {
|
|
|
3408
3382
|
assistantId: __expectString(output.assistantId),
|
|
3409
3383
|
description: __expectString(output.description),
|
|
3410
3384
|
name: __expectString(output.name),
|
|
3411
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
3385
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
3412
3386
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
3413
3387
|
: undefined,
|
|
3414
3388
|
status: __expectString(output.status),
|
|
3415
|
-
tags: output.tags
|
|
3416
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3417
|
-
: undefined,
|
|
3389
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3418
3390
|
type: __expectString(output.type),
|
|
3419
3391
|
};
|
|
3420
3392
|
};
|
|
@@ -3426,20 +3398,14 @@ var deserializeAws_restJson1ContentData = function (output, context) {
|
|
|
3426
3398
|
knowledgeBaseArn: __expectString(output.knowledgeBaseArn),
|
|
3427
3399
|
knowledgeBaseId: __expectString(output.knowledgeBaseId),
|
|
3428
3400
|
linkOutUri: __expectString(output.linkOutUri),
|
|
3429
|
-
metadata: output.metadata
|
|
3430
|
-
? deserializeAws_restJson1ContentMetadata(output.metadata, context)
|
|
3431
|
-
: undefined,
|
|
3401
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ContentMetadata(output.metadata, context) : undefined,
|
|
3432
3402
|
name: __expectString(output.name),
|
|
3433
3403
|
revisionId: __expectString(output.revisionId),
|
|
3434
3404
|
status: __expectString(output.status),
|
|
3435
|
-
tags: output.tags
|
|
3436
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3437
|
-
: undefined,
|
|
3405
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3438
3406
|
title: __expectString(output.title),
|
|
3439
3407
|
url: __expectString(output.url),
|
|
3440
|
-
urlExpiry: output.urlExpiry
|
|
3441
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.urlExpiry)))
|
|
3442
|
-
: undefined,
|
|
3408
|
+
urlExpiry: output.urlExpiry != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.urlExpiry))) : undefined,
|
|
3443
3409
|
};
|
|
3444
3410
|
};
|
|
3445
3411
|
var deserializeAws_restJson1ContentMetadata = function (output, context) {
|
|
@@ -3467,15 +3433,11 @@ var deserializeAws_restJson1ContentSummary = function (output, context) {
|
|
|
3467
3433
|
contentType: __expectString(output.contentType),
|
|
3468
3434
|
knowledgeBaseArn: __expectString(output.knowledgeBaseArn),
|
|
3469
3435
|
knowledgeBaseId: __expectString(output.knowledgeBaseId),
|
|
3470
|
-
metadata: output.metadata
|
|
3471
|
-
? deserializeAws_restJson1ContentMetadata(output.metadata, context)
|
|
3472
|
-
: undefined,
|
|
3436
|
+
metadata: output.metadata != null ? deserializeAws_restJson1ContentMetadata(output.metadata, context) : undefined,
|
|
3473
3437
|
name: __expectString(output.name),
|
|
3474
3438
|
revisionId: __expectString(output.revisionId),
|
|
3475
3439
|
status: __expectString(output.status),
|
|
3476
|
-
tags: output.tags
|
|
3477
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3478
|
-
: undefined,
|
|
3440
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3479
3441
|
title: __expectString(output.title),
|
|
3480
3442
|
};
|
|
3481
3443
|
};
|
|
@@ -3492,22 +3454,16 @@ var deserializeAws_restJson1ContentSummaryList = function (output, context) {
|
|
|
3492
3454
|
};
|
|
3493
3455
|
var deserializeAws_restJson1Document = function (output, context) {
|
|
3494
3456
|
return {
|
|
3495
|
-
contentReference: output.contentReference
|
|
3457
|
+
contentReference: output.contentReference != null
|
|
3496
3458
|
? deserializeAws_restJson1ContentReference(output.contentReference, context)
|
|
3497
3459
|
: undefined,
|
|
3498
|
-
excerpt: output.excerpt
|
|
3499
|
-
|
|
3500
|
-
: undefined,
|
|
3501
|
-
title: output.title !== undefined && output.title !== null
|
|
3502
|
-
? deserializeAws_restJson1DocumentText(output.title, context)
|
|
3503
|
-
: undefined,
|
|
3460
|
+
excerpt: output.excerpt != null ? deserializeAws_restJson1DocumentText(output.excerpt, context) : undefined,
|
|
3461
|
+
title: output.title != null ? deserializeAws_restJson1DocumentText(output.title, context) : undefined,
|
|
3504
3462
|
};
|
|
3505
3463
|
};
|
|
3506
3464
|
var deserializeAws_restJson1DocumentText = function (output, context) {
|
|
3507
3465
|
return {
|
|
3508
|
-
highlights: output.highlights
|
|
3509
|
-
? deserializeAws_restJson1Highlights(output.highlights, context)
|
|
3510
|
-
: undefined,
|
|
3466
|
+
highlights: output.highlights != null ? deserializeAws_restJson1Highlights(output.highlights, context) : undefined,
|
|
3511
3467
|
text: __expectString(output.text),
|
|
3512
3468
|
};
|
|
3513
3469
|
};
|
|
@@ -3550,23 +3506,21 @@ var deserializeAws_restJson1KnowledgeBaseData = function (output, context) {
|
|
|
3550
3506
|
knowledgeBaseArn: __expectString(output.knowledgeBaseArn),
|
|
3551
3507
|
knowledgeBaseId: __expectString(output.knowledgeBaseId),
|
|
3552
3508
|
knowledgeBaseType: __expectString(output.knowledgeBaseType),
|
|
3553
|
-
lastContentModificationTime: output.lastContentModificationTime
|
|
3509
|
+
lastContentModificationTime: output.lastContentModificationTime != null
|
|
3554
3510
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastContentModificationTime)))
|
|
3555
3511
|
: undefined,
|
|
3556
3512
|
name: __expectString(output.name),
|
|
3557
|
-
renderingConfiguration: output.renderingConfiguration
|
|
3513
|
+
renderingConfiguration: output.renderingConfiguration != null
|
|
3558
3514
|
? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
|
|
3559
3515
|
: undefined,
|
|
3560
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
3516
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
3561
3517
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
3562
3518
|
: undefined,
|
|
3563
|
-
sourceConfiguration: output.sourceConfiguration
|
|
3519
|
+
sourceConfiguration: output.sourceConfiguration != null
|
|
3564
3520
|
? deserializeAws_restJson1SourceConfiguration(__expectUnion(output.sourceConfiguration), context)
|
|
3565
3521
|
: undefined,
|
|
3566
3522
|
status: __expectString(output.status),
|
|
3567
|
-
tags: output.tags
|
|
3568
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3569
|
-
: undefined,
|
|
3523
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3570
3524
|
};
|
|
3571
3525
|
};
|
|
3572
3526
|
var deserializeAws_restJson1KnowledgeBaseList = function (output, context) {
|
|
@@ -3587,19 +3541,17 @@ var deserializeAws_restJson1KnowledgeBaseSummary = function (output, context) {
|
|
|
3587
3541
|
knowledgeBaseId: __expectString(output.knowledgeBaseId),
|
|
3588
3542
|
knowledgeBaseType: __expectString(output.knowledgeBaseType),
|
|
3589
3543
|
name: __expectString(output.name),
|
|
3590
|
-
renderingConfiguration: output.renderingConfiguration
|
|
3544
|
+
renderingConfiguration: output.renderingConfiguration != null
|
|
3591
3545
|
? deserializeAws_restJson1RenderingConfiguration(output.renderingConfiguration, context)
|
|
3592
3546
|
: undefined,
|
|
3593
|
-
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration
|
|
3547
|
+
serverSideEncryptionConfiguration: output.serverSideEncryptionConfiguration != null
|
|
3594
3548
|
? deserializeAws_restJson1ServerSideEncryptionConfiguration(output.serverSideEncryptionConfiguration, context)
|
|
3595
3549
|
: undefined,
|
|
3596
|
-
sourceConfiguration: output.sourceConfiguration
|
|
3550
|
+
sourceConfiguration: output.sourceConfiguration != null
|
|
3597
3551
|
? deserializeAws_restJson1SourceConfiguration(__expectUnion(output.sourceConfiguration), context)
|
|
3598
3552
|
: undefined,
|
|
3599
3553
|
status: __expectString(output.status),
|
|
3600
|
-
tags: output.tags
|
|
3601
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3602
|
-
: undefined,
|
|
3554
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3603
3555
|
};
|
|
3604
3556
|
};
|
|
3605
3557
|
var deserializeAws_restJson1NotifyRecommendationsReceivedError = function (output, context) {
|
|
@@ -3648,9 +3600,7 @@ var deserializeAws_restJson1QueryResultsList = function (output, context) {
|
|
|
3648
3600
|
};
|
|
3649
3601
|
var deserializeAws_restJson1RecommendationData = function (output, context) {
|
|
3650
3602
|
return {
|
|
3651
|
-
document: output.document
|
|
3652
|
-
? deserializeAws_restJson1Document(output.document, context)
|
|
3653
|
-
: undefined,
|
|
3603
|
+
document: output.document != null ? deserializeAws_restJson1Document(output.document, context) : undefined,
|
|
3654
3604
|
recommendationId: __expectString(output.recommendationId),
|
|
3655
3605
|
relevanceLevel: __expectString(output.relevanceLevel),
|
|
3656
3606
|
relevanceScore: __limitedParseDouble(output.relevanceScore),
|
|
@@ -3681,11 +3631,11 @@ var deserializeAws_restJson1RecommendationList = function (output, context) {
|
|
|
3681
3631
|
};
|
|
3682
3632
|
var deserializeAws_restJson1RecommendationTrigger = function (output, context) {
|
|
3683
3633
|
return {
|
|
3684
|
-
data: output.data
|
|
3634
|
+
data: output.data != null
|
|
3685
3635
|
? deserializeAws_restJson1RecommendationTriggerData(__expectUnion(output.data), context)
|
|
3686
3636
|
: undefined,
|
|
3687
3637
|
id: __expectString(output.id),
|
|
3688
|
-
recommendationIds: output.recommendationIds
|
|
3638
|
+
recommendationIds: output.recommendationIds != null
|
|
3689
3639
|
? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
|
|
3690
3640
|
: undefined,
|
|
3691
3641
|
source: __expectString(output.source),
|
|
@@ -3718,9 +3668,7 @@ var deserializeAws_restJson1RenderingConfiguration = function (output, context)
|
|
|
3718
3668
|
};
|
|
3719
3669
|
var deserializeAws_restJson1ResultData = function (output, context) {
|
|
3720
3670
|
return {
|
|
3721
|
-
document: output.document
|
|
3722
|
-
? deserializeAws_restJson1Document(output.document, context)
|
|
3723
|
-
: undefined,
|
|
3671
|
+
document: output.document != null ? deserializeAws_restJson1Document(output.document, context) : undefined,
|
|
3724
3672
|
relevanceScore: __limitedParseDouble(output.relevanceScore),
|
|
3725
3673
|
resultId: __expectString(output.resultId),
|
|
3726
3674
|
};
|
|
@@ -3736,9 +3684,7 @@ var deserializeAws_restJson1SessionData = function (output, context) {
|
|
|
3736
3684
|
name: __expectString(output.name),
|
|
3737
3685
|
sessionArn: __expectString(output.sessionArn),
|
|
3738
3686
|
sessionId: __expectString(output.sessionId),
|
|
3739
|
-
tags: output.tags
|
|
3740
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3741
|
-
: undefined,
|
|
3687
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3742
3688
|
};
|
|
3743
3689
|
};
|
|
3744
3690
|
var deserializeAws_restJson1SessionSummaries = function (output, context) {
|
|
@@ -3816,6 +3762,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3816
3762
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3817
3763
|
var sanitizeErrorCode = function (rawValue) {
|
|
3818
3764
|
var cleanValue = rawValue;
|
|
3765
|
+
if (typeof cleanValue === "number") {
|
|
3766
|
+
cleanValue = cleanValue.toString();
|
|
3767
|
+
}
|
|
3819
3768
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3820
3769
|
cleanValue = cleanValue.split(":")[0];
|
|
3821
3770
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wisdom",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wisdom Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|