@aws-sdk/client-pinpoint-sms-voice-v2 3.1145.0 → 3.1146.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/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1144.0";
72
+ var version = "3.1145.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -550,8 +550,9 @@ const _DVMSLO = "DeleteVoiceMessageSpendLimitOverride";
550
550
  const _DVMSLOR = "DeleteVoiceMessageSpendLimitOverrideRequest";
551
551
  const _DVMSLORe = "DeleteVoiceMessageSpendLimitOverrideResult";
552
552
  const _E = "Enabled";
553
- const _EC = "EnabledChannels";
554
- const _ECn = "EnabledCountries";
553
+ const _EC = "EnableCleansing";
554
+ const _ECn = "EnabledChannels";
555
+ const _ECna = "EnabledCountries";
555
556
  const _ED = "EventDestinations";
556
557
  const _EDL = "EventDestinationList";
557
558
  const _EDN = "EventDestinationName";
@@ -695,6 +696,7 @@ const _OONI = "OptedOutNumberInformation";
695
696
  const _OONIL = "OptedOutNumberInformationList";
696
697
  const _OONp = "OptedOutNumbers";
697
698
  const _OOT = "OptedOutTimestamp";
699
+ const _OPN = "OriginalPhoneNumber";
698
700
  const _OU = "OpenUrl";
699
701
  const _Op = "Operator";
700
702
  const _Opt = "Option";
@@ -1138,13 +1140,13 @@ var AssociateProtectConfigurationResult$ = [3, n0, _APCRs,
1138
1140
  ];
1139
1141
  var CarrierLookupRequest$ = [3, n0, _CLR,
1140
1142
  0,
1141
- [_PN],
1142
- [0], 1
1143
+ [_PN, _EC],
1144
+ [0, 2], 1
1143
1145
  ];
1144
1146
  var CarrierLookupResult$ = [3, n0, _CLRa,
1145
1147
  0,
1146
- [_EPN, _PNT, _DCC, _ICC, _C, _MCC, _MNC, _Ca],
1147
- [0, 0, 0, 0, 0, 0, 0, 0], 2
1148
+ [_EPN, _PNT, _DCC, _ICC, _C, _MCC, _MNC, _Ca, _OPN],
1149
+ [0, 0, 0, 0, 0, 0, 0, 0, 0], 2
1148
1150
  ];
1149
1151
  var CarrierStatusInformation$ = [3, n0, _CSI,
1150
1152
  0,
@@ -1213,12 +1215,12 @@ var CreateEventDestinationResult$ = [3, n0, _CEDRr,
1213
1215
  ];
1214
1216
  var CreateNotifyConfigurationRequest$ = [3, n0, _CNCR,
1215
1217
  0,
1216
- [_DN, _UC, _EC, _DTI, _PI, _ECn, _DPE, _CT, _T],
1218
+ [_DN, _UC, _ECn, _DTI, _PI, _ECna, _DPE, _CT, _T],
1217
1219
  [0, 0, 64 | 0, 0, 0, 64 | 0, 2, [0, 4], () => TagList], 3
1218
1220
  ];
1219
1221
  var CreateNotifyConfigurationResult$ = [3, n0, _CNCRr,
1220
1222
  0,
1221
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR, _T],
1223
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR, _T],
1222
1224
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0, () => TagList], 10
1223
1225
  ];
1224
1226
  var CreateOptOutListRequest$ = [3, n0, _COOLR,
@@ -1388,7 +1390,7 @@ var DeleteNotifyConfigurationRequest$ = [3, n0, _DNCR,
1388
1390
  ];
1389
1391
  var DeleteNotifyConfigurationResult$ = [3, n0, _DNCRe,
1390
1392
  0,
1391
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR],
1393
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR],
1392
1394
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0], 10
1393
1395
  ];
1394
1396
  var DeleteNotifyMessageSpendLimitOverrideRequest$ = [3, n0, _DNMSLOR,
@@ -1918,7 +1920,7 @@ var NotifyConfigurationFilter$ = [3, n0, _NCF,
1918
1920
  ];
1919
1921
  var NotifyConfigurationInformation$ = [3, n0, _NCIot,
1920
1922
  0,
1921
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR],
1923
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR],
1922
1924
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0], 10
1923
1925
  ];
1924
1926
  var NotifyCountryInformation$ = [3, n0, _NCIoti,
@@ -2553,12 +2555,12 @@ var UpdateEventDestinationResult$ = [3, n0, _UEDRp,
2553
2555
  ];
2554
2556
  var UpdateNotifyConfigurationRequest$ = [3, n0, _UNCR,
2555
2557
  0,
2556
- [_NCI, _DTI, _PI, _ECn, _EC, _DPE],
2558
+ [_NCI, _DTI, _PI, _ECna, _ECn, _DPE],
2557
2559
  [0, 0, 0, 64 | 0, 64 | 0, 2], 1
2558
2560
  ];
2559
2561
  var UpdateNotifyConfigurationResult$ = [3, n0, _UNCRp,
2560
2562
  0,
2561
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR],
2563
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR],
2562
2564
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0], 10
2563
2565
  ];
2564
2566
  var UpdatePhoneNumberRequest$ = [3, n0, _UPNR,
@@ -4029,6 +4031,8 @@ const PhoneNumberType = {
4029
4031
  LANDLINE: "LANDLINE",
4030
4032
  MOBILE: "MOBILE",
4031
4033
  OTHER: "OTHER",
4034
+ PREPAID: "PREPAID",
4035
+ VOIP: "VOIP",
4032
4036
  };
4033
4037
  const CarrierStatus = {
4034
4038
  ACTIVE: "ACTIVE",
@@ -169,6 +169,8 @@ export const PhoneNumberType = {
169
169
  LANDLINE: "LANDLINE",
170
170
  MOBILE: "MOBILE",
171
171
  OTHER: "OTHER",
172
+ PREPAID: "PREPAID",
173
+ VOIP: "VOIP",
172
174
  };
173
175
  export const CarrierStatus = {
174
176
  ACTIVE: "ACTIVE",
@@ -287,8 +287,9 @@ const _DVMSLO = "DeleteVoiceMessageSpendLimitOverride";
287
287
  const _DVMSLOR = "DeleteVoiceMessageSpendLimitOverrideRequest";
288
288
  const _DVMSLORe = "DeleteVoiceMessageSpendLimitOverrideResult";
289
289
  const _E = "Enabled";
290
- const _EC = "EnabledChannels";
291
- const _ECn = "EnabledCountries";
290
+ const _EC = "EnableCleansing";
291
+ const _ECn = "EnabledChannels";
292
+ const _ECna = "EnabledCountries";
292
293
  const _ED = "EventDestinations";
293
294
  const _EDL = "EventDestinationList";
294
295
  const _EDN = "EventDestinationName";
@@ -432,6 +433,7 @@ const _OONI = "OptedOutNumberInformation";
432
433
  const _OONIL = "OptedOutNumberInformationList";
433
434
  const _OONp = "OptedOutNumbers";
434
435
  const _OOT = "OptedOutTimestamp";
436
+ const _OPN = "OriginalPhoneNumber";
435
437
  const _OU = "OpenUrl";
436
438
  const _Op = "Operator";
437
439
  const _Opt = "Option";
@@ -878,13 +880,13 @@ export var AssociateProtectConfigurationResult$ = [3, n0, _APCRs,
878
880
  ];
879
881
  export var CarrierLookupRequest$ = [3, n0, _CLR,
880
882
  0,
881
- [_PN],
882
- [0], 1
883
+ [_PN, _EC],
884
+ [0, 2], 1
883
885
  ];
884
886
  export var CarrierLookupResult$ = [3, n0, _CLRa,
885
887
  0,
886
- [_EPN, _PNT, _DCC, _ICC, _C, _MCC, _MNC, _Ca],
887
- [0, 0, 0, 0, 0, 0, 0, 0], 2
888
+ [_EPN, _PNT, _DCC, _ICC, _C, _MCC, _MNC, _Ca, _OPN],
889
+ [0, 0, 0, 0, 0, 0, 0, 0, 0], 2
888
890
  ];
889
891
  export var CarrierStatusInformation$ = [3, n0, _CSI,
890
892
  0,
@@ -953,12 +955,12 @@ export var CreateEventDestinationResult$ = [3, n0, _CEDRr,
953
955
  ];
954
956
  export var CreateNotifyConfigurationRequest$ = [3, n0, _CNCR,
955
957
  0,
956
- [_DN, _UC, _EC, _DTI, _PI, _ECn, _DPE, _CT, _T],
958
+ [_DN, _UC, _ECn, _DTI, _PI, _ECna, _DPE, _CT, _T],
957
959
  [0, 0, 64 | 0, 0, 0, 64 | 0, 2, [0, 4], () => TagList], 3
958
960
  ];
959
961
  export var CreateNotifyConfigurationResult$ = [3, n0, _CNCRr,
960
962
  0,
961
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR, _T],
963
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR, _T],
962
964
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0, () => TagList], 10
963
965
  ];
964
966
  export var CreateOptOutListRequest$ = [3, n0, _COOLR,
@@ -1128,7 +1130,7 @@ export var DeleteNotifyConfigurationRequest$ = [3, n0, _DNCR,
1128
1130
  ];
1129
1131
  export var DeleteNotifyConfigurationResult$ = [3, n0, _DNCRe,
1130
1132
  0,
1131
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR],
1133
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR],
1132
1134
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0], 10
1133
1135
  ];
1134
1136
  export var DeleteNotifyMessageSpendLimitOverrideRequest$ = [3, n0, _DNMSLOR,
@@ -1658,7 +1660,7 @@ export var NotifyConfigurationFilter$ = [3, n0, _NCF,
1658
1660
  ];
1659
1661
  export var NotifyConfigurationInformation$ = [3, n0, _NCIot,
1660
1662
  0,
1661
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR],
1663
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR],
1662
1664
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0], 10
1663
1665
  ];
1664
1666
  export var NotifyCountryInformation$ = [3, n0, _NCIoti,
@@ -2293,12 +2295,12 @@ export var UpdateEventDestinationResult$ = [3, n0, _UEDRp,
2293
2295
  ];
2294
2296
  export var UpdateNotifyConfigurationRequest$ = [3, n0, _UNCR,
2295
2297
  0,
2296
- [_NCI, _DTI, _PI, _ECn, _EC, _DPE],
2298
+ [_NCI, _DTI, _PI, _ECna, _ECn, _DPE],
2297
2299
  [0, 0, 0, 64 | 0, 64 | 0, 2], 1
2298
2300
  ];
2299
2301
  export var UpdateNotifyConfigurationResult$ = [3, n0, _UNCRp,
2300
2302
  0,
2301
- [_NCA, _NCI, _DN, _UC, _EC, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECn, _RR],
2303
+ [_NCA, _NCI, _DN, _UC, _ECn, _Ti, _TUS, _S, _DPE, _CTr, _DTI, _PI, _ECna, _RR],
2302
2304
  [0, 0, 0, 0, 64 | 0, 0, 0, 0, 2, 4, 0, 0, 64 | 0, 0], 10
2303
2305
  ];
2304
2306
  export var UpdatePhoneNumberRequest$ = [3, n0, _UPNR,
@@ -35,6 +35,7 @@ declare const CarrierLookupCommand_base: {
35
35
  * const client = new PinpointSMSVoiceV2Client(config);
36
36
  * const input = { // CarrierLookupRequest
37
37
  * PhoneNumber: "STRING_VALUE", // required
38
+ * EnableCleansing: true || false,
38
39
  * };
39
40
  * const command = new CarrierLookupCommand(input);
40
41
  * const response = await client.send(command);
@@ -47,6 +48,7 @@ declare const CarrierLookupCommand_base: {
47
48
  * // MNC: "STRING_VALUE",
48
49
  * // Carrier: "STRING_VALUE",
49
50
  * // PhoneNumberType: "STRING_VALUE", // required
51
+ * // OriginalPhoneNumber: "STRING_VALUE",
50
52
  * // };
51
53
  *
52
54
  * ```
@@ -24,10 +24,7 @@ declare const ListAvailablePhoneNumbersCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * Search available phone numbers from aggregator inventory, optionally filtered by pattern.
28
- * If NumberPreference is omitted, returns unfiltered available numbers.
29
- * Returns empty list (not an exception) when no numbers match.
30
- * ResourceNotFoundException is thrown only for invalid RegistrationId (campaign not found).
27
+ * <p>Retrieves a list of phone numbers that are available to request, based on the country, capabilities, and number type that you specify. You can optionally provide a number preference to return only numbers that match a specific digit pattern.</p> <p>If no numbers match your search, this operation returns an empty list rather than an error. This operation currently supports only <code>TEN_DLC</code> number types in the <code>US</code>.</p>
31
28
  * @example
32
29
  * Use a bare-bones client and the command you need to make an API call.
33
30
  * ```javascript
@@ -245,6 +245,8 @@ export declare const PhoneNumberType: {
245
245
  readonly LANDLINE: "LANDLINE";
246
246
  readonly MOBILE: "MOBILE";
247
247
  readonly OTHER: "OTHER";
248
+ readonly PREPAID: "PREPAID";
249
+ readonly VOIP: "VOIP";
248
250
  };
249
251
  /**
250
252
  * @public
@@ -156,6 +156,11 @@ export interface CarrierLookupRequest {
156
156
  * @public
157
157
  */
158
158
  PhoneNumber: string | undefined;
159
+ /**
160
+ * <p>Specifies whether the service cleanses the phone number that you provide. When set to <code>true</code>, the service normalizes the phone number according to the destination country's national numbering plan and dialing rules. The service returns the cleansed number in E.164 format in the <code>E164PhoneNumber</code> field and returns the number that you provided in the <code>OriginalPhoneNumber</code> field.</p>
161
+ * @public
162
+ */
163
+ EnableCleansing?: boolean | undefined;
159
164
  }
160
165
  /**
161
166
  * @public
@@ -197,10 +202,15 @@ export interface CarrierLookupResult {
197
202
  */
198
203
  Carrier?: string | undefined;
199
204
  /**
200
- * <p>Describes the type of phone number. Valid values are: MOBILE, LANDLINE, OTHER, and INVALID. Avoid sending SMS or voice messages to INVALID phone numbers, as these numbers are unlikely to belong to actual recipients.</p>
205
+ * <p>Describes the type of phone number. Valid values are: MOBILE, LANDLINE, VOIP, PREPAID, OTHER, and INVALID. Avoid sending SMS or voice messages to INVALID phone numbers, as these numbers are unlikely to belong to actual recipients.</p>
201
206
  * @public
202
207
  */
203
208
  PhoneNumberType: PhoneNumberType | undefined;
209
+ /**
210
+ * <p>The phone number exactly as you supplied it in the request. This field is returned only when you set <code>EnableCleansing</code> to <code>true</code>, the phone number was cleansed, and a normalized E.164 phone number was returned in the <code>E164PhoneNumber</code> field.</p>
211
+ * @public
212
+ */
213
+ OriginalPhoneNumber?: string | undefined;
204
214
  }
205
215
  /**
206
216
  * <p>Contains carrier-level launch status details for an RCS agent within a country.</p>
@@ -4934,7 +4944,7 @@ export interface GetResourcePolicyResult {
4934
4944
  CreatedTimestamp?: Date | undefined;
4935
4945
  }
4936
4946
  /**
4937
- * A single number preference — specifies a pattern type and filter value.
4947
+ * <p>A single number preference that specifies how to match available phone numbers. Each preference pairs a match type with one or more filter values.</p>
4938
4948
  * @public
4939
4949
  */
4940
4950
  export interface NumberPreferenceItem {
@@ -4974,8 +4984,7 @@ export interface ListAvailablePhoneNumbersRequest {
4974
4984
  */
4975
4985
  RegistrationId?: string | undefined;
4976
4986
  /**
4977
- * Optional. If omitted, returns unfiltered available numbers.
4978
- * Max 1 element for List API.
4987
+ * <p>An optional selection preference used to return only phone numbers that match a specific digit pattern, such as numbers that start with, end with, or contain a particular sequence. You can specify at most one preference. Number preferences apply only to <code>TEN_DLC</code> numbers in the <code>US</code>.</p>
4979
4988
  * @public
4980
4989
  */
4981
4990
  NumberPreference?: NumberPreferenceItem[] | undefined;
@@ -183,6 +183,8 @@ export declare const PhoneNumberType: {
183
183
  readonly LANDLINE: "LANDLINE";
184
184
  readonly MOBILE: "MOBILE";
185
185
  readonly OTHER: "OTHER";
186
+ readonly PREPAID: "PREPAID";
187
+ readonly VOIP: "VOIP";
186
188
  };
187
189
  export type PhoneNumberType = (typeof PhoneNumberType)[keyof typeof PhoneNumberType];
188
190
  export declare const CarrierStatus: {
@@ -102,6 +102,7 @@ export interface AssociateProtectConfigurationResult {
102
102
  }
103
103
  export interface CarrierLookupRequest {
104
104
  PhoneNumber: string | undefined;
105
+ EnableCleansing?: boolean | undefined;
105
106
  }
106
107
  export interface CarrierLookupResult {
107
108
  E164PhoneNumber: string | undefined;
@@ -112,6 +113,7 @@ export interface CarrierLookupResult {
112
113
  MNC?: string | undefined;
113
114
  Carrier?: string | undefined;
114
115
  PhoneNumberType: PhoneNumberType | undefined;
116
+ OriginalPhoneNumber?: string | undefined;
115
117
  }
116
118
  export interface CarrierStatusInformation {
117
119
  CarrierName: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-sms-voice-v2",
3
- "version": "3.1145.0",
3
+ "version": "3.1146.0",
4
4
  "description": "AWS SDK for JavaScript Pinpoint Sms Voice V2 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pinpoint-sms-voice-v2",
6
6
  "license": "Apache-2.0",