@aws-sdk/client-pinpoint-sms-voice 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 +38 -49
- package/dist-es/protocols/Aws_restJson1.js +27 -38
- 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-pinpoint-sms-voice
|
|
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-pinpoint-sms-voice
|
|
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
|
|
|
@@ -13,8 +13,7 @@ const serializeAws_restJson1CreateConfigurationSetCommand = async (input, contex
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/sms-voice/configuration-sets";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.ConfigurationSetName
|
|
17
|
-
input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
16
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
18
17
|
});
|
|
19
18
|
return new protocol_http_1.HttpRequest({
|
|
20
19
|
protocol,
|
|
@@ -46,12 +45,10 @@ const serializeAws_restJson1CreateConfigurationSetEventDestinationCommand = asyn
|
|
|
46
45
|
}
|
|
47
46
|
let body;
|
|
48
47
|
body = JSON.stringify({
|
|
49
|
-
...(input.EventDestination
|
|
50
|
-
input.EventDestination !== null && {
|
|
48
|
+
...(input.EventDestination != null && {
|
|
51
49
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
52
50
|
}),
|
|
53
|
-
...(input.EventDestinationName
|
|
54
|
-
input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName }),
|
|
51
|
+
...(input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName }),
|
|
55
52
|
});
|
|
56
53
|
return new protocol_http_1.HttpRequest({
|
|
57
54
|
protocol,
|
|
@@ -184,15 +181,11 @@ const serializeAws_restJson1SendVoiceMessageCommand = async (input, context) =>
|
|
|
184
181
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/sms-voice/voice/message";
|
|
185
182
|
let body;
|
|
186
183
|
body = JSON.stringify({
|
|
187
|
-
...(input.CallerId
|
|
188
|
-
...(input.ConfigurationSetName
|
|
189
|
-
|
|
190
|
-
...(input.
|
|
191
|
-
|
|
192
|
-
...(input.DestinationPhoneNumber !== undefined &&
|
|
193
|
-
input.DestinationPhoneNumber !== null && { DestinationPhoneNumber: input.DestinationPhoneNumber }),
|
|
194
|
-
...(input.OriginationPhoneNumber !== undefined &&
|
|
195
|
-
input.OriginationPhoneNumber !== null && { OriginationPhoneNumber: input.OriginationPhoneNumber }),
|
|
184
|
+
...(input.CallerId != null && { CallerId: input.CallerId }),
|
|
185
|
+
...(input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName }),
|
|
186
|
+
...(input.Content != null && { Content: serializeAws_restJson1VoiceMessageContent(input.Content, context) }),
|
|
187
|
+
...(input.DestinationPhoneNumber != null && { DestinationPhoneNumber: input.DestinationPhoneNumber }),
|
|
188
|
+
...(input.OriginationPhoneNumber != null && { OriginationPhoneNumber: input.OriginationPhoneNumber }),
|
|
196
189
|
});
|
|
197
190
|
return new protocol_http_1.HttpRequest({
|
|
198
191
|
protocol,
|
|
@@ -234,8 +227,7 @@ const serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand = asyn
|
|
|
234
227
|
}
|
|
235
228
|
let body;
|
|
236
229
|
body = JSON.stringify({
|
|
237
|
-
...(input.EventDestination
|
|
238
|
-
input.EventDestination !== null && {
|
|
230
|
+
...(input.EventDestination != null && {
|
|
239
231
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
240
232
|
}),
|
|
241
233
|
});
|
|
@@ -687,32 +679,28 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
687
679
|
};
|
|
688
680
|
const serializeAws_restJson1CallInstructionsMessageType = (input, context) => {
|
|
689
681
|
return {
|
|
690
|
-
...(input.Text
|
|
682
|
+
...(input.Text != null && { Text: input.Text }),
|
|
691
683
|
};
|
|
692
684
|
};
|
|
693
685
|
const serializeAws_restJson1CloudWatchLogsDestination = (input, context) => {
|
|
694
686
|
return {
|
|
695
|
-
...(input.IamRoleArn
|
|
696
|
-
...(input.LogGroupArn
|
|
687
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
688
|
+
...(input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }),
|
|
697
689
|
};
|
|
698
690
|
};
|
|
699
691
|
const serializeAws_restJson1EventDestinationDefinition = (input, context) => {
|
|
700
692
|
return {
|
|
701
|
-
...(input.CloudWatchLogsDestination
|
|
702
|
-
input.CloudWatchLogsDestination !== null && {
|
|
693
|
+
...(input.CloudWatchLogsDestination != null && {
|
|
703
694
|
CloudWatchLogsDestination: serializeAws_restJson1CloudWatchLogsDestination(input.CloudWatchLogsDestination, context),
|
|
704
695
|
}),
|
|
705
|
-
...(input.Enabled
|
|
706
|
-
...(input.KinesisFirehoseDestination
|
|
707
|
-
input.KinesisFirehoseDestination !== null && {
|
|
696
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
697
|
+
...(input.KinesisFirehoseDestination != null && {
|
|
708
698
|
KinesisFirehoseDestination: serializeAws_restJson1KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
|
|
709
699
|
}),
|
|
710
|
-
...(input.MatchingEventTypes
|
|
711
|
-
input.MatchingEventTypes !== null && {
|
|
700
|
+
...(input.MatchingEventTypes != null && {
|
|
712
701
|
MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
|
|
713
702
|
}),
|
|
714
|
-
...(input.SnsDestination
|
|
715
|
-
input.SnsDestination !== null && {
|
|
703
|
+
...(input.SnsDestination != null && {
|
|
716
704
|
SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
|
|
717
705
|
}),
|
|
718
706
|
};
|
|
@@ -729,42 +717,40 @@ const serializeAws_restJson1EventTypes = (input, context) => {
|
|
|
729
717
|
};
|
|
730
718
|
const serializeAws_restJson1KinesisFirehoseDestination = (input, context) => {
|
|
731
719
|
return {
|
|
732
|
-
...(input.DeliveryStreamArn
|
|
733
|
-
|
|
734
|
-
...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
|
|
720
|
+
...(input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn }),
|
|
721
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
735
722
|
};
|
|
736
723
|
};
|
|
737
724
|
const serializeAws_restJson1PlainTextMessageType = (input, context) => {
|
|
738
725
|
return {
|
|
739
|
-
...(input.LanguageCode
|
|
740
|
-
...(input.Text
|
|
741
|
-
...(input.VoiceId
|
|
726
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
727
|
+
...(input.Text != null && { Text: input.Text }),
|
|
728
|
+
...(input.VoiceId != null && { VoiceId: input.VoiceId }),
|
|
742
729
|
};
|
|
743
730
|
};
|
|
744
731
|
const serializeAws_restJson1SnsDestination = (input, context) => {
|
|
745
732
|
return {
|
|
746
|
-
...(input.TopicArn
|
|
733
|
+
...(input.TopicArn != null && { TopicArn: input.TopicArn }),
|
|
747
734
|
};
|
|
748
735
|
};
|
|
749
736
|
const serializeAws_restJson1SSMLMessageType = (input, context) => {
|
|
750
737
|
return {
|
|
751
|
-
...(input.LanguageCode
|
|
752
|
-
...(input.Text
|
|
753
|
-
...(input.VoiceId
|
|
738
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
739
|
+
...(input.Text != null && { Text: input.Text }),
|
|
740
|
+
...(input.VoiceId != null && { VoiceId: input.VoiceId }),
|
|
754
741
|
};
|
|
755
742
|
};
|
|
756
743
|
const serializeAws_restJson1VoiceMessageContent = (input, context) => {
|
|
757
744
|
return {
|
|
758
|
-
...(input.CallInstructionsMessage
|
|
759
|
-
input.CallInstructionsMessage !== null && {
|
|
745
|
+
...(input.CallInstructionsMessage != null && {
|
|
760
746
|
CallInstructionsMessage: serializeAws_restJson1CallInstructionsMessageType(input.CallInstructionsMessage, context),
|
|
761
747
|
}),
|
|
762
|
-
...(input.PlainTextMessage
|
|
763
|
-
input.PlainTextMessage !== null && {
|
|
748
|
+
...(input.PlainTextMessage != null && {
|
|
764
749
|
PlainTextMessage: serializeAws_restJson1PlainTextMessageType(input.PlainTextMessage, context),
|
|
765
750
|
}),
|
|
766
|
-
...(input.SSMLMessage
|
|
767
|
-
|
|
751
|
+
...(input.SSMLMessage != null && {
|
|
752
|
+
SSMLMessage: serializeAws_restJson1SSMLMessageType(input.SSMLMessage, context),
|
|
753
|
+
}),
|
|
768
754
|
};
|
|
769
755
|
};
|
|
770
756
|
const deserializeAws_restJson1CloudWatchLogsDestination = (output, context) => {
|
|
@@ -786,18 +772,18 @@ const deserializeAws_restJson1ConfigurationSets = (output, context) => {
|
|
|
786
772
|
};
|
|
787
773
|
const deserializeAws_restJson1EventDestination = (output, context) => {
|
|
788
774
|
return {
|
|
789
|
-
CloudWatchLogsDestination: output.CloudWatchLogsDestination
|
|
775
|
+
CloudWatchLogsDestination: output.CloudWatchLogsDestination != null
|
|
790
776
|
? deserializeAws_restJson1CloudWatchLogsDestination(output.CloudWatchLogsDestination, context)
|
|
791
777
|
: undefined,
|
|
792
778
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
793
|
-
KinesisFirehoseDestination: output.KinesisFirehoseDestination
|
|
779
|
+
KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
|
|
794
780
|
? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
|
|
795
781
|
: undefined,
|
|
796
|
-
MatchingEventTypes: output.MatchingEventTypes
|
|
782
|
+
MatchingEventTypes: output.MatchingEventTypes != null
|
|
797
783
|
? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
|
|
798
784
|
: undefined,
|
|
799
785
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
800
|
-
SnsDestination: output.SnsDestination
|
|
786
|
+
SnsDestination: output.SnsDestination != null
|
|
801
787
|
? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
|
|
802
788
|
: undefined,
|
|
803
789
|
};
|
|
@@ -866,6 +852,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
866
852
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
867
853
|
const sanitizeErrorCode = (rawValue) => {
|
|
868
854
|
let cleanValue = rawValue;
|
|
855
|
+
if (typeof cleanValue === "number") {
|
|
856
|
+
cleanValue = cleanValue.toString();
|
|
857
|
+
}
|
|
869
858
|
if (cleanValue.indexOf(":") >= 0) {
|
|
870
859
|
cleanValue = cleanValue.split(":")[0];
|
|
871
860
|
}
|
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1CreateConfigurationSetCommand = function (input
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/sms-voice/configuration-sets";
|
|
17
|
-
body = JSON.stringify(__assign({}, (input.ConfigurationSetName
|
|
18
|
-
input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })));
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })));
|
|
19
18
|
return [2, new __HttpRequest({
|
|
20
19
|
protocol: protocol,
|
|
21
20
|
hostname: hostname,
|
|
@@ -50,11 +49,9 @@ export var serializeAws_restJson1CreateConfigurationSetEventDestinationCommand =
|
|
|
50
49
|
else {
|
|
51
50
|
throw new Error("No value provided for input HTTP label: ConfigurationSetName.");
|
|
52
51
|
}
|
|
53
|
-
body = JSON.stringify(__assign(__assign({}, (input.EventDestination
|
|
54
|
-
input.EventDestination !== null && {
|
|
52
|
+
body = JSON.stringify(__assign(__assign({}, (input.EventDestination != null && {
|
|
55
53
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
56
|
-
})), (input.EventDestinationName
|
|
57
|
-
input.EventDestinationName !== null && { EventDestinationName: input.EventDestinationName })));
|
|
54
|
+
})), (input.EventDestinationName != null && { EventDestinationName: input.EventDestinationName })));
|
|
58
55
|
return [2, new __HttpRequest({
|
|
59
56
|
protocol: protocol,
|
|
60
57
|
hostname: hostname,
|
|
@@ -207,11 +204,7 @@ export var serializeAws_restJson1SendVoiceMessageCommand = function (input, cont
|
|
|
207
204
|
"content-type": "application/json",
|
|
208
205
|
};
|
|
209
206
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/sms-voice/voice/message";
|
|
210
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CallerId
|
|
211
|
-
input.ConfigurationSetName !== null && { ConfigurationSetName: input.ConfigurationSetName })), (input.Content !== undefined &&
|
|
212
|
-
input.Content !== null && { Content: serializeAws_restJson1VoiceMessageContent(input.Content, context) })), (input.DestinationPhoneNumber !== undefined &&
|
|
213
|
-
input.DestinationPhoneNumber !== null && { DestinationPhoneNumber: input.DestinationPhoneNumber })), (input.OriginationPhoneNumber !== undefined &&
|
|
214
|
-
input.OriginationPhoneNumber !== null && { OriginationPhoneNumber: input.OriginationPhoneNumber })));
|
|
207
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CallerId != null && { CallerId: input.CallerId })), (input.ConfigurationSetName != null && { ConfigurationSetName: input.ConfigurationSetName })), (input.Content != null && { Content: serializeAws_restJson1VoiceMessageContent(input.Content, context) })), (input.DestinationPhoneNumber != null && { DestinationPhoneNumber: input.DestinationPhoneNumber })), (input.OriginationPhoneNumber != null && { OriginationPhoneNumber: input.OriginationPhoneNumber })));
|
|
215
208
|
return [2, new __HttpRequest({
|
|
216
209
|
protocol: protocol,
|
|
217
210
|
hostname: hostname,
|
|
@@ -256,8 +249,7 @@ export var serializeAws_restJson1UpdateConfigurationSetEventDestinationCommand =
|
|
|
256
249
|
else {
|
|
257
250
|
throw new Error("No value provided for input HTTP label: EventDestinationName.");
|
|
258
251
|
}
|
|
259
|
-
body = JSON.stringify(__assign({}, (input.EventDestination
|
|
260
|
-
input.EventDestination !== null && {
|
|
252
|
+
body = JSON.stringify(__assign({}, (input.EventDestination != null && {
|
|
261
253
|
EventDestination: serializeAws_restJson1EventDestinationDefinition(input.EventDestination, context),
|
|
262
254
|
})));
|
|
263
255
|
return [2, new __HttpRequest({
|
|
@@ -875,23 +867,19 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
875
867
|
});
|
|
876
868
|
}); };
|
|
877
869
|
var serializeAws_restJson1CallInstructionsMessageType = function (input, context) {
|
|
878
|
-
return __assign({}, (input.Text
|
|
870
|
+
return __assign({}, (input.Text != null && { Text: input.Text }));
|
|
879
871
|
};
|
|
880
872
|
var serializeAws_restJson1CloudWatchLogsDestination = function (input, context) {
|
|
881
|
-
return __assign(__assign({}, (input.IamRoleArn
|
|
873
|
+
return __assign(__assign({}, (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }));
|
|
882
874
|
};
|
|
883
875
|
var serializeAws_restJson1EventDestinationDefinition = function (input, context) {
|
|
884
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsDestination
|
|
885
|
-
input.CloudWatchLogsDestination !== null && {
|
|
876
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogsDestination != null && {
|
|
886
877
|
CloudWatchLogsDestination: serializeAws_restJson1CloudWatchLogsDestination(input.CloudWatchLogsDestination, context),
|
|
887
|
-
})), (input.Enabled
|
|
888
|
-
input.KinesisFirehoseDestination !== null && {
|
|
878
|
+
})), (input.Enabled != null && { Enabled: input.Enabled })), (input.KinesisFirehoseDestination != null && {
|
|
889
879
|
KinesisFirehoseDestination: serializeAws_restJson1KinesisFirehoseDestination(input.KinesisFirehoseDestination, context),
|
|
890
|
-
})), (input.MatchingEventTypes
|
|
891
|
-
input.MatchingEventTypes !== null && {
|
|
880
|
+
})), (input.MatchingEventTypes != null && {
|
|
892
881
|
MatchingEventTypes: serializeAws_restJson1EventTypes(input.MatchingEventTypes, context),
|
|
893
|
-
})), (input.SnsDestination
|
|
894
|
-
input.SnsDestination !== null && {
|
|
882
|
+
})), (input.SnsDestination != null && {
|
|
895
883
|
SnsDestination: serializeAws_restJson1SnsDestination(input.SnsDestination, context),
|
|
896
884
|
}));
|
|
897
885
|
};
|
|
@@ -906,27 +894,25 @@ var serializeAws_restJson1EventTypes = function (input, context) {
|
|
|
906
894
|
});
|
|
907
895
|
};
|
|
908
896
|
var serializeAws_restJson1KinesisFirehoseDestination = function (input, context) {
|
|
909
|
-
return __assign(__assign({}, (input.DeliveryStreamArn
|
|
910
|
-
input.DeliveryStreamArn !== null && { DeliveryStreamArn: input.DeliveryStreamArn })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }));
|
|
897
|
+
return __assign(__assign({}, (input.DeliveryStreamArn != null && { DeliveryStreamArn: input.DeliveryStreamArn })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }));
|
|
911
898
|
};
|
|
912
899
|
var serializeAws_restJson1PlainTextMessageType = function (input, context) {
|
|
913
|
-
return __assign(__assign(__assign({}, (input.LanguageCode
|
|
900
|
+
return __assign(__assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text })), (input.VoiceId != null && { VoiceId: input.VoiceId }));
|
|
914
901
|
};
|
|
915
902
|
var serializeAws_restJson1SnsDestination = function (input, context) {
|
|
916
|
-
return __assign({}, (input.TopicArn
|
|
903
|
+
return __assign({}, (input.TopicArn != null && { TopicArn: input.TopicArn }));
|
|
917
904
|
};
|
|
918
905
|
var serializeAws_restJson1SSMLMessageType = function (input, context) {
|
|
919
|
-
return __assign(__assign(__assign({}, (input.LanguageCode
|
|
906
|
+
return __assign(__assign(__assign({}, (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.Text != null && { Text: input.Text })), (input.VoiceId != null && { VoiceId: input.VoiceId }));
|
|
920
907
|
};
|
|
921
908
|
var serializeAws_restJson1VoiceMessageContent = function (input, context) {
|
|
922
|
-
return __assign(__assign(__assign({}, (input.CallInstructionsMessage
|
|
923
|
-
input.CallInstructionsMessage !== null && {
|
|
909
|
+
return __assign(__assign(__assign({}, (input.CallInstructionsMessage != null && {
|
|
924
910
|
CallInstructionsMessage: serializeAws_restJson1CallInstructionsMessageType(input.CallInstructionsMessage, context),
|
|
925
|
-
})), (input.PlainTextMessage
|
|
926
|
-
input.PlainTextMessage !== null && {
|
|
911
|
+
})), (input.PlainTextMessage != null && {
|
|
927
912
|
PlainTextMessage: serializeAws_restJson1PlainTextMessageType(input.PlainTextMessage, context),
|
|
928
|
-
})), (input.SSMLMessage
|
|
929
|
-
|
|
913
|
+
})), (input.SSMLMessage != null && {
|
|
914
|
+
SSMLMessage: serializeAws_restJson1SSMLMessageType(input.SSMLMessage, context),
|
|
915
|
+
}));
|
|
930
916
|
};
|
|
931
917
|
var deserializeAws_restJson1CloudWatchLogsDestination = function (output, context) {
|
|
932
918
|
return {
|
|
@@ -947,18 +933,18 @@ var deserializeAws_restJson1ConfigurationSets = function (output, context) {
|
|
|
947
933
|
};
|
|
948
934
|
var deserializeAws_restJson1EventDestination = function (output, context) {
|
|
949
935
|
return {
|
|
950
|
-
CloudWatchLogsDestination: output.CloudWatchLogsDestination
|
|
936
|
+
CloudWatchLogsDestination: output.CloudWatchLogsDestination != null
|
|
951
937
|
? deserializeAws_restJson1CloudWatchLogsDestination(output.CloudWatchLogsDestination, context)
|
|
952
938
|
: undefined,
|
|
953
939
|
Enabled: __expectBoolean(output.Enabled),
|
|
954
|
-
KinesisFirehoseDestination: output.KinesisFirehoseDestination
|
|
940
|
+
KinesisFirehoseDestination: output.KinesisFirehoseDestination != null
|
|
955
941
|
? deserializeAws_restJson1KinesisFirehoseDestination(output.KinesisFirehoseDestination, context)
|
|
956
942
|
: undefined,
|
|
957
|
-
MatchingEventTypes: output.MatchingEventTypes
|
|
943
|
+
MatchingEventTypes: output.MatchingEventTypes != null
|
|
958
944
|
? deserializeAws_restJson1EventTypes(output.MatchingEventTypes, context)
|
|
959
945
|
: undefined,
|
|
960
946
|
Name: __expectString(output.Name),
|
|
961
|
-
SnsDestination: output.SnsDestination
|
|
947
|
+
SnsDestination: output.SnsDestination != null
|
|
962
948
|
? deserializeAws_restJson1SnsDestination(output.SnsDestination, context)
|
|
963
949
|
: undefined,
|
|
964
950
|
};
|
|
@@ -1034,6 +1020,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1034
1020
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1035
1021
|
var sanitizeErrorCode = function (rawValue) {
|
|
1036
1022
|
var cleanValue = rawValue;
|
|
1023
|
+
if (typeof cleanValue === "number") {
|
|
1024
|
+
cleanValue = cleanValue.toString();
|
|
1025
|
+
}
|
|
1037
1026
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1038
1027
|
cleanValue = cleanValue.split(":")[0];
|
|
1039
1028
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pinpoint-sms-voice",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pinpoint Sms Voice 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"
|