@aws-sdk/client-pinpoint-sms-voice-v2 3.1127.0 → 3.1129.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +74 -11
  3. package/dist-es/PinpointSMSVoiceV2.js +4 -0
  4. package/dist-es/commands/ListAvailablePhoneNumbersCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +9 -0
  7. package/dist-es/pagination/ListAvailablePhoneNumbersPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/schemas/schemas_0.js +52 -10
  10. package/dist-types/PinpointSMSVoiceV2.d.ts +14 -0
  11. package/dist-types/PinpointSMSVoiceV2Client.d.ts +3 -2
  12. package/dist-types/commands/DescribePhoneNumbersCommand.d.ts +8 -0
  13. package/dist-types/commands/DescribeRcsAgentsCommand.d.ts +8 -0
  14. package/dist-types/commands/DescribeSenderIdsCommand.d.ts +8 -0
  15. package/dist-types/commands/ListAvailablePhoneNumbersCommand.d.ts +147 -0
  16. package/dist-types/commands/RequestPhoneNumberCommand.d.ts +10 -0
  17. package/dist-types/commands/UpdateProtectConfigurationCommand.d.ts +1 -1
  18. package/dist-types/commands/UpdateProtectConfigurationCountryRuleSetCommand.d.ts +1 -1
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/enums.d.ts +25 -0
  21. package/dist-types/models/models_0.d.ts +109 -91
  22. package/dist-types/models/models_1.d.ts +92 -1
  23. package/dist-types/pagination/ListAvailablePhoneNumbersPaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +5 -0
  26. package/dist-types/ts3.4/PinpointSMSVoiceV2.d.ts +24 -0
  27. package/dist-types/ts3.4/PinpointSMSVoiceV2Client.d.ts +6 -0
  28. package/dist-types/ts3.4/commands/ListAvailablePhoneNumbersCommand.d.ts +42 -0
  29. package/dist-types/ts3.4/commands/UpdateProtectConfigurationCommand.d.ts +1 -1
  30. package/dist-types/ts3.4/commands/UpdateProtectConfigurationCountryRuleSetCommand.d.ts +1 -1
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/models/enums.d.ts +11 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +27 -22
  34. package/dist-types/ts3.4/models/models_1.d.ts +24 -1
  35. package/dist-types/ts3.4/pagination/ListAvailablePhoneNumbersPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  38. package/package.json +3 -3
package/README.md CHANGED
@@ -643,6 +643,13 @@ GetResourcePolicy
643
643
  </details>
644
644
  <details>
645
645
  <summary>
646
+ ListAvailablePhoneNumbers
647
+ </summary>
648
+
649
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pinpoint-sms-voice-v2/command/ListAvailablePhoneNumbersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/ListAvailablePhoneNumbersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pinpoint-sms-voice-v2/Interface/ListAvailablePhoneNumbersCommandOutput/)
650
+ </details>
651
+ <details>
652
+ <summary>
646
653
  ListNotifyCountries
647
654
  </summary>
648
655
 
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.1126.0";
72
+ var version = "3.1128.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -279,6 +279,7 @@ const _AOIRs = "AssociateOriginationIdentityResult";
279
279
  const _APC = "AssociateProtectConfiguration";
280
280
  const _APCR = "AssociateProtectConfigurationRequest";
281
281
  const _APCRs = "AssociateProtectConfigurationResult";
282
+ const _APN = "AvailablePhoneNumbers";
282
283
  const _AR = "AwsReview";
283
284
  const _ART = "AwsReviewingTimestamp";
284
285
  const _AS = "AttachmentStatus";
@@ -409,6 +410,7 @@ const _DKRes = "DescribeKeywordsRequest";
409
410
  const _DKResc = "DescribeKeywordsResult";
410
411
  const _DKe = "DescribeKeywords";
411
412
  const _DL = "DocumentationLink";
413
+ const _DMC = "DailyMessageCaps";
412
414
  const _DMFE = "DefaultMessageFeedbackEnabled";
413
415
  const _DMMSLO = "DeleteMediaMessageSpendLimitOverride";
414
416
  const _DMMSLOR = "DeleteMediaMessageSpendLimitOverrideRequest";
@@ -572,6 +574,7 @@ const _FT = "FieldType";
572
574
  const _FU = "FileUrl";
573
575
  const _Fe = "Feedback";
574
576
  const _Fi = "Filters";
577
+ const _Fil = "Filter";
575
578
  const _GPCCRS = "GetProtectConfigurationCountryRuleSet";
576
579
  const _GPCCRSR = "GetProtectConfigurationCountryRuleSetRequest";
577
580
  const _GPCCRSRe = "GetProtectConfigurationCountryRuleSetResult";
@@ -595,6 +598,9 @@ const _KM = "KeywordMessage";
595
598
  const _Ke = "Keywords";
596
599
  const _Key = "Key";
597
600
  const _L = "Latitude";
601
+ const _LAPN = "ListAvailablePhoneNumbers";
602
+ const _LAPNR = "ListAvailablePhoneNumbersRequest";
603
+ const _LAPNRi = "ListAvailablePhoneNumbersResult";
598
604
  const _LC = "LanguageCode";
599
605
  const _LD = "LongDescription";
600
606
  const _LDVN = "LatestDeniedVersionNumber";
@@ -631,6 +637,7 @@ const _ML = "MinLength";
631
637
  const _MLP = "MonthlyLeasingPrice";
632
638
  const _MLa = "MaxLength";
633
639
  const _MLax = "MaxLimit";
640
+ const _MLe = "MessagingLimits";
634
641
  const _MLo = "MonthlyLimit";
635
642
  const _MNC = "MNC";
636
643
  const _MP = "MaxPrice";
@@ -659,6 +666,9 @@ const _NCo = "NotifyCountries";
659
666
  const _NCu = "NumberCapability";
660
667
  const _NCum = "NumberCapabilities";
661
668
  const _NETL = "NonEmptyTagList";
669
+ const _NP = "NumberPreference";
670
+ const _NPI = "NumberPreferenceItem";
671
+ const _NPL = "NumberPreferenceList";
662
672
  const _NT = "NextToken";
663
673
  const _NTF = "NotifyTemplateFilter";
664
674
  const _NTFL = "NotifyTemplateFilterList";
@@ -743,6 +753,7 @@ const _PRP = "PutResourcePolicy";
743
753
  const _PRPR = "PutResourcePolicyRequest";
744
754
  const _PRPRu = "PutResourcePolicyResult";
745
755
  const _PS = "ProtectStatus";
756
+ const _PT = "PreferenceType";
746
757
  const _Po = "Policy";
747
758
  const _Poo = "Pools";
748
759
  const _R = "Reason";
@@ -801,7 +812,8 @@ const _RIe = "RequestId";
801
812
  const _RIeg = "RegistrationId";
802
813
  const _RIegi = "RegistrationIds";
803
814
  const _RIegis = "RegistrationInformation";
804
- const _RL = "RequestLocation";
815
+ const _RL = "RateLimits";
816
+ const _RLe = "RequestLocation";
805
817
  const _RMB = "ResolvedMessageBody";
806
818
  const _RMC = "RcsMessageContent";
807
819
  const _RNFE = "ResourceNotFoundException";
@@ -1834,6 +1846,16 @@ var KinesisFirehoseDestination$ = [3, n0, _KFD,
1834
1846
  [_IRA, _DSA],
1835
1847
  [0, 0], 2
1836
1848
  ];
1849
+ var ListAvailablePhoneNumbersRequest$ = [3, n0, _LAPNR,
1850
+ 0,
1851
+ [_ICC, _NCum, _NTu, _RIeg, _NP, _NT, _MR],
1852
+ [0, 64 | 0, 0, 0, () => NumberPreferenceList, 0, 1], 3
1853
+ ];
1854
+ var ListAvailablePhoneNumbersResult$ = [3, n0, _LAPNRi,
1855
+ 0,
1856
+ [_APN, _NT],
1857
+ [64 | 0, 0], 1
1858
+ ];
1837
1859
  var ListNotifyCountriesRequest$ = [3, n0, _LNCR,
1838
1860
  0,
1839
1861
  [_Ch, _UCs, _Ti, _NT, _MR],
@@ -1884,6 +1906,11 @@ var ListTagsForResourceResult$ = [3, n0, _LTFRRi,
1884
1906
  [_RAe, _T],
1885
1907
  [0, () => TagList]
1886
1908
  ];
1909
+ var MessagingLimits$ = [3, n0, _MLe,
1910
+ 0,
1911
+ [_RL, _DMC],
1912
+ [128 | 1, 128 | 1]
1913
+ ];
1887
1914
  var NotifyConfigurationFilter$ = [3, n0, _NCF,
1888
1915
  0,
1889
1916
  [_N, _Va],
@@ -1909,6 +1936,11 @@ var NotifyTemplateInformation$ = [3, n0, _NTI,
1909
1936
  [_TIe, _Ve, _TT, _Ch, _CTr, _TA, _S, _SCup, _LC, _Con, _Var, _SVI],
1910
1937
  [0, 1, 0, 64 | 0, 4, 64 | 0, 0, 64 | 0, 0, 0, () => TemplateVariablesMap, 64 | 0], 5
1911
1938
  ];
1939
+ var NumberPreferenceItem$ = [3, n0, _NPI,
1940
+ 0,
1941
+ [_PT, _Fil],
1942
+ [64 | 0, 64 | 0], 2
1943
+ ];
1912
1944
  var OptedOutFilter$ = [3, n0, _OOF,
1913
1945
  0,
1914
1946
  [_N, _Va],
@@ -1936,8 +1968,8 @@ var PhoneNumberFilter$ = [3, n0, _PNF,
1936
1968
  ];
1937
1969
  var PhoneNumberInformation$ = [3, n0, _PNIh,
1938
1970
  0,
1939
- [_PNA, _PN, _S, _ICC, _MT, _NCum, _NTu, _MLP, _TWE, _SMOOE, _OOLN, _DPE, _CTr, _PNIho, _TWCA, _TWCR, _ISEn, _PI, _RIeg],
1940
- [0, 0, 0, 0, 0, 64 | 0, 0, 0, 2, 2, 0, 2, 4, 0, 0, 0, 2, 0, 0], 13
1971
+ [_PNA, _PN, _S, _ICC, _MT, _NCum, _NTu, _MLP, _TWE, _SMOOE, _OOLN, _DPE, _CTr, _PNIho, _TWCA, _TWCR, _ISEn, _PI, _RIeg, _MLe],
1972
+ [0, 0, 0, 0, 0, 64 | 0, 0, 0, 2, 2, 0, 2, 4, 0, 0, 0, 2, 0, 0, () => MessagingLimits$], 13
1941
1973
  ];
1942
1974
  var PoolFilter$ = [3, n0, _PF,
1943
1975
  0,
@@ -2046,8 +2078,8 @@ var RcsAgentFilter$ = [3, n0, _RAF,
2046
2078
  ];
2047
2079
  var RcsAgentInformation$ = [3, n0, _RAIcs,
2048
2080
  0,
2049
- [_RAA, _RAI, _S, _CTr, _DPE, _SMOOE, _TWE, _OOLN, _TWCA, _TWCR, _PI, _TWMSBN, _TWMSKP, _TWMSR, _TWREE, _TAe],
2050
- [0, 0, 0, 4, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 64 | 0, () => TestingAgentInformation$], 7
2081
+ [_RAA, _RAI, _S, _CTr, _DPE, _SMOOE, _TWE, _OOLN, _TWCA, _TWCR, _PI, _TWMSBN, _TWMSKP, _TWMSR, _TWREE, _TAe, _MLe],
2082
+ [0, 0, 0, 4, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 64 | 0, () => TestingAgentInformation$, () => MessagingLimits$], 7
2051
2083
  ];
2052
2084
  var RcsCardContent$ = [3, n0, _RCC,
2053
2085
  0,
@@ -2241,8 +2273,8 @@ var ReleaseSenderIdResult$ = [3, n0, _RSIRe,
2241
2273
  ];
2242
2274
  var RequestPhoneNumberRequest$ = [3, n0, _RPNReq,
2243
2275
  0,
2244
- [_ICC, _MT, _NCum, _NTu, _OOLN, _PI, _RIeg, _ISEn, _DPE, _T, _CT],
2245
- [0, 0, 64 | 0, 0, 0, 0, 0, 2, 2, () => TagList, [0, 4]], 4
2276
+ [_ICC, _MT, _NCum, _NTu, _OOLN, _PI, _RIeg, _NP, _ISEn, _DPE, _T, _CT],
2277
+ [0, 0, 64 | 0, 0, 0, 0, 0, () => NumberPreferenceList, 2, 2, () => TagList, [0, 4]], 4
2246
2278
  ];
2247
2279
  var RequestPhoneNumberResult$ = [3, n0, _RPNRequ,
2248
2280
  0,
@@ -2291,8 +2323,8 @@ var SenderIdFilter$ = [3, n0, _SIF,
2291
2323
  ];
2292
2324
  var SenderIdInformation$ = [3, n0, _SII,
2293
2325
  0,
2294
- [_SIA, _SI, _ICC, _MTe, _MLP, _DPE, _Reg, _RIeg],
2295
- [0, 0, 0, 64 | 0, 0, 2, 2, 0], 7
2326
+ [_SIA, _SI, _ICC, _MTe, _MLP, _DPE, _Reg, _RIeg, _MLe],
2327
+ [0, 0, 0, 64 | 0, 0, 2, 2, 0, () => MessagingLimits$], 7
2296
2328
  ];
2297
2329
  var SendMediaMessageRequest$ = [3, n0, _SMMR,
2298
2330
  0,
@@ -2671,6 +2703,9 @@ var NotifyTemplateFilterList = [1, n0, _NTFL,
2671
2703
  var NotifyTemplateInformationList = [1, n0, _NTIL,
2672
2704
  0, () => NotifyTemplateInformation$
2673
2705
  ];
2706
+ var NumberPreferenceList = [1, n0, _NPL,
2707
+ 0, () => NumberPreferenceItem$
2708
+ ];
2674
2709
  var OptedOutFilterList = [1, n0, _OOFL,
2675
2710
  0, () => OptedOutFilter$
2676
2711
  ];
@@ -2807,7 +2842,7 @@ var RcsContent$ = [4, n0, _RCc,
2807
2842
  ];
2808
2843
  var RcsSuggestedAction$ = [4, n0, _RSA,
2809
2844
  0,
2810
- [_Rep, _OU, _DP, _SLh, _RL, _CCE],
2845
+ [_Rep, _OU, _DP, _SLh, _RLe, _CCE],
2811
2846
  [() => RcsReplyAction$, () => RcsOpenUrlAction$, () => RcsDialPhoneAction$, () => RcsShowLocationAction$, () => RcsRequestLocationAction$, () => RcsCreateCalendarEventAction$]
2812
2847
  ];
2813
2848
  var AssociateOriginationIdentity$ = [9, n0, _AOI,
@@ -3008,6 +3043,9 @@ var GetProtectConfigurationCountryRuleSet$ = [9, n0, _GPCCRS,
3008
3043
  var GetResourcePolicy$ = [9, n0, _GRP,
3009
3044
  0, () => GetResourcePolicyRequest$, () => GetResourcePolicyResult$
3010
3045
  ];
3046
+ var ListAvailablePhoneNumbers$ = [9, n0, _LAPN,
3047
+ 0, () => ListAvailablePhoneNumbersRequest$, () => ListAvailablePhoneNumbersResult$
3048
+ ];
3011
3049
  var ListNotifyCountries$ = [9, n0, _LNC,
3012
3050
  0, () => ListNotifyCountriesRequest$, () => ListNotifyCountriesResult$
3013
3051
  ];
@@ -3486,6 +3524,9 @@ class GetProtectConfigurationCountryRuleSetCommand extends command(_ep0, _mw0, "
3486
3524
  class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
3487
3525
  }
3488
3526
 
3527
+ class ListAvailablePhoneNumbersCommand extends command(_ep0, _mw0, "ListAvailablePhoneNumbers", ListAvailablePhoneNumbers$) {
3528
+ }
3529
+
3489
3530
  class ListNotifyCountriesCommand extends command(_ep0, _mw0, "ListNotifyCountries", ListNotifyCountries$) {
3490
3531
  }
3491
3532
 
@@ -3661,6 +3702,8 @@ const paginateDescribeSpendLimits = createPaginator(PinpointSMSVoiceV2Client, De
3661
3702
 
3662
3703
  const paginateDescribeVerifiedDestinationNumbers = createPaginator(PinpointSMSVoiceV2Client, DescribeVerifiedDestinationNumbersCommand, "NextToken", "NextToken", "MaxResults");
3663
3704
 
3705
+ const paginateListAvailablePhoneNumbers = createPaginator(PinpointSMSVoiceV2Client, ListAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
3706
+
3664
3707
  const paginateListNotifyCountries = createPaginator(PinpointSMSVoiceV2Client, ListNotifyCountriesCommand, "NextToken", "NextToken", "MaxResults");
3665
3708
 
3666
3709
  const paginateListPoolOriginationIdentities = createPaginator(PinpointSMSVoiceV2Client, ListPoolOriginationIdentitiesCommand, "NextToken", "NextToken", "MaxResults");
@@ -3736,6 +3779,7 @@ const commands = {
3736
3779
  DiscardRegistrationVersionCommand,
3737
3780
  GetProtectConfigurationCountryRuleSetCommand,
3738
3781
  GetResourcePolicyCommand,
3782
+ ListAvailablePhoneNumbersCommand,
3739
3783
  ListNotifyCountriesCommand,
3740
3784
  ListPoolOriginationIdentitiesCommand,
3741
3785
  ListProtectConfigurationRuleSetNumberOverridesCommand,
@@ -3804,6 +3848,7 @@ const paginators = {
3804
3848
  paginateDescribeSenderIds,
3805
3849
  paginateDescribeSpendLimits,
3806
3850
  paginateDescribeVerifiedDestinationNumbers,
3851
+ paginateListAvailablePhoneNumbers,
3807
3852
  paginateListNotifyCountries,
3808
3853
  paginateListPoolOriginationIdentities,
3809
3854
  paginateListProtectConfigurationRuleSetNumberOverrides,
@@ -4379,6 +4424,15 @@ const LanguageCode = {
4379
4424
  ZH_CN: "ZH_CN",
4380
4425
  ZH_TW: "ZH_TW",
4381
4426
  };
4427
+ const PreferenceType = {
4428
+ CONTAINS: "Contains",
4429
+ ENDS_WITH: "EndsWith",
4430
+ EXACT_MATCH: "ExactMatch",
4431
+ STARTS_WITH: "StartsWith",
4432
+ };
4433
+ const SearchableNumberType = {
4434
+ TEN_DLC: "TEN_DLC",
4435
+ };
4382
4436
  const PoolOriginationIdentitiesFilterName = {
4383
4437
  ISO_COUNTRY_CODE: "iso-country-code",
4384
4438
  NUMBER_CAPABILITY: "number-capability",
@@ -4722,6 +4776,10 @@ exports.KeywordFilterName = KeywordFilterName;
4722
4776
  exports.KeywordInformation$ = KeywordInformation$;
4723
4777
  exports.KinesisFirehoseDestination$ = KinesisFirehoseDestination$;
4724
4778
  exports.LanguageCode = LanguageCode;
4779
+ exports.ListAvailablePhoneNumbers$ = ListAvailablePhoneNumbers$;
4780
+ exports.ListAvailablePhoneNumbersCommand = ListAvailablePhoneNumbersCommand;
4781
+ exports.ListAvailablePhoneNumbersRequest$ = ListAvailablePhoneNumbersRequest$;
4782
+ exports.ListAvailablePhoneNumbersResult$ = ListAvailablePhoneNumbersResult$;
4725
4783
  exports.ListNotifyCountries$ = ListNotifyCountries$;
4726
4784
  exports.ListNotifyCountriesCommand = ListNotifyCountriesCommand;
4727
4785
  exports.ListNotifyCountriesRequest$ = ListNotifyCountriesRequest$;
@@ -4744,6 +4802,7 @@ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
4744
4802
  exports.ListTagsForResourceResult$ = ListTagsForResourceResult$;
4745
4803
  exports.MessageFeedbackStatus = MessageFeedbackStatus;
4746
4804
  exports.MessageType = MessageType;
4805
+ exports.MessagingLimits$ = MessagingLimits$;
4747
4806
  exports.NotifyConfigurationFilter$ = NotifyConfigurationFilter$;
4748
4807
  exports.NotifyConfigurationFilterName = NotifyConfigurationFilterName;
4749
4808
  exports.NotifyConfigurationInformation$ = NotifyConfigurationInformation$;
@@ -4757,6 +4816,7 @@ exports.NotifyTemplateInformation$ = NotifyTemplateInformation$;
4757
4816
  exports.NotifyTemplateStatus = NotifyTemplateStatus;
4758
4817
  exports.NotifyTemplateType = NotifyTemplateType;
4759
4818
  exports.NumberCapability = NumberCapability;
4819
+ exports.NumberPreferenceItem$ = NumberPreferenceItem$;
4760
4820
  exports.NumberStatus = NumberStatus;
4761
4821
  exports.NumberType = NumberType;
4762
4822
  exports.OptOutListInformation$ = OptOutListInformation$;
@@ -4779,6 +4839,7 @@ exports.PoolInformation$ = PoolInformation$;
4779
4839
  exports.PoolOriginationIdentitiesFilter$ = PoolOriginationIdentitiesFilter$;
4780
4840
  exports.PoolOriginationIdentitiesFilterName = PoolOriginationIdentitiesFilterName;
4781
4841
  exports.PoolStatus = PoolStatus;
4842
+ exports.PreferenceType = PreferenceType;
4782
4843
  exports.ProtectConfigurationCountryRuleSetInformation$ = ProtectConfigurationCountryRuleSetInformation$;
4783
4844
  exports.ProtectConfigurationFilter$ = ProtectConfigurationFilter$;
4784
4845
  exports.ProtectConfigurationFilterName = ProtectConfigurationFilterName;
@@ -4882,6 +4943,7 @@ exports.RequestableNumberType = RequestableNumberType;
4882
4943
  exports.ResourceNotFoundException = ResourceNotFoundException;
4883
4944
  exports.ResourceNotFoundException$ = ResourceNotFoundException$;
4884
4945
  exports.ResourceType = ResourceType;
4946
+ exports.SearchableNumberType = SearchableNumberType;
4885
4947
  exports.SelectOptionDescription$ = SelectOptionDescription$;
4886
4948
  exports.SelectValidation$ = SelectValidation$;
4887
4949
  exports.SendDestinationNumberVerificationCode$ = SendDestinationNumberVerificationCode$;
@@ -5052,6 +5114,7 @@ exports.paginateDescribeRegistrations = paginateDescribeRegistrations;
5052
5114
  exports.paginateDescribeSenderIds = paginateDescribeSenderIds;
5053
5115
  exports.paginateDescribeSpendLimits = paginateDescribeSpendLimits;
5054
5116
  exports.paginateDescribeVerifiedDestinationNumbers = paginateDescribeVerifiedDestinationNumbers;
5117
+ exports.paginateListAvailablePhoneNumbers = paginateListAvailablePhoneNumbers;
5055
5118
  exports.paginateListNotifyCountries = paginateListNotifyCountries;
5056
5119
  exports.paginateListPoolOriginationIdentities = paginateListPoolOriginationIdentities;
5057
5120
  exports.paginateListProtectConfigurationRuleSetNumberOverrides = paginateListProtectConfigurationRuleSetNumberOverrides;
@@ -65,6 +65,7 @@ import { DisassociateProtectConfigurationCommand, } from "./commands/Disassociat
65
65
  import { DiscardRegistrationVersionCommand, } from "./commands/DiscardRegistrationVersionCommand";
66
66
  import { GetProtectConfigurationCountryRuleSetCommand, } from "./commands/GetProtectConfigurationCountryRuleSetCommand";
67
67
  import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
68
+ import { ListAvailablePhoneNumbersCommand, } from "./commands/ListAvailablePhoneNumbersCommand";
68
69
  import { ListNotifyCountriesCommand, } from "./commands/ListNotifyCountriesCommand";
69
70
  import { ListPoolOriginationIdentitiesCommand, } from "./commands/ListPoolOriginationIdentitiesCommand";
70
71
  import { ListProtectConfigurationRuleSetNumberOverridesCommand, } from "./commands/ListProtectConfigurationRuleSetNumberOverridesCommand";
@@ -131,6 +132,7 @@ import { paginateDescribeRegistrationVersions } from "./pagination/DescribeRegis
131
132
  import { paginateDescribeSenderIds } from "./pagination/DescribeSenderIdsPaginator";
132
133
  import { paginateDescribeSpendLimits } from "./pagination/DescribeSpendLimitsPaginator";
133
134
  import { paginateDescribeVerifiedDestinationNumbers } from "./pagination/DescribeVerifiedDestinationNumbersPaginator";
135
+ import { paginateListAvailablePhoneNumbers } from "./pagination/ListAvailablePhoneNumbersPaginator";
134
136
  import { paginateListNotifyCountries } from "./pagination/ListNotifyCountriesPaginator";
135
137
  import { paginateListPoolOriginationIdentities } from "./pagination/ListPoolOriginationIdentitiesPaginator";
136
138
  import { paginateListProtectConfigurationRuleSetNumberOverrides, } from "./pagination/ListProtectConfigurationRuleSetNumberOverridesPaginator";
@@ -203,6 +205,7 @@ const commands = {
203
205
  DiscardRegistrationVersionCommand,
204
206
  GetProtectConfigurationCountryRuleSetCommand,
205
207
  GetResourcePolicyCommand,
208
+ ListAvailablePhoneNumbersCommand,
206
209
  ListNotifyCountriesCommand,
207
210
  ListPoolOriginationIdentitiesCommand,
208
211
  ListProtectConfigurationRuleSetNumberOverridesCommand,
@@ -271,6 +274,7 @@ const paginators = {
271
274
  paginateDescribeSenderIds,
272
275
  paginateDescribeSpendLimits,
273
276
  paginateDescribeVerifiedDestinationNumbers,
277
+ paginateListAvailablePhoneNumbers,
274
278
  paginateListNotifyCountries,
275
279
  paginateListPoolOriginationIdentities,
276
280
  paginateListProtectConfigurationRuleSetNumberOverrides,
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListAvailablePhoneNumbers$ } from "../schemas/schemas_0";
3
+ export class ListAvailablePhoneNumbersCommand extends command(_ep0, _mw0, "ListAvailablePhoneNumbers", ListAvailablePhoneNumbers$) {
4
+ }
@@ -64,6 +64,7 @@ export * from "./DisassociateProtectConfigurationCommand";
64
64
  export * from "./DiscardRegistrationVersionCommand";
65
65
  export * from "./GetProtectConfigurationCountryRuleSetCommand";
66
66
  export * from "./GetResourcePolicyCommand";
67
+ export * from "./ListAvailablePhoneNumbersCommand";
67
68
  export * from "./ListNotifyCountriesCommand";
68
69
  export * from "./ListPoolOriginationIdentitiesCommand";
69
70
  export * from "./ListProtectConfigurationRuleSetNumberOverridesCommand";
@@ -564,6 +564,15 @@ export const LanguageCode = {
564
564
  ZH_CN: "ZH_CN",
565
565
  ZH_TW: "ZH_TW",
566
566
  };
567
+ export const PreferenceType = {
568
+ CONTAINS: "Contains",
569
+ ENDS_WITH: "EndsWith",
570
+ EXACT_MATCH: "ExactMatch",
571
+ STARTS_WITH: "StartsWith",
572
+ };
573
+ export const SearchableNumberType = {
574
+ TEN_DLC: "TEN_DLC",
575
+ };
567
576
  export const PoolOriginationIdentitiesFilterName = {
568
577
  ISO_COUNTRY_CODE: "iso-country-code",
569
578
  NUMBER_CAPABILITY: "number-capability",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAvailablePhoneNumbersCommand, } from "../commands/ListAvailablePhoneNumbersCommand";
3
+ import { PinpointSMSVoiceV2Client } from "../PinpointSMSVoiceV2Client";
4
+ export const paginateListAvailablePhoneNumbers = createPaginator(PinpointSMSVoiceV2Client, ListAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
@@ -22,6 +22,7 @@ export * from "./DescribeRegistrationVersionsPaginator";
22
22
  export * from "./DescribeSenderIdsPaginator";
23
23
  export * from "./DescribeSpendLimitsPaginator";
24
24
  export * from "./DescribeVerifiedDestinationNumbersPaginator";
25
+ export * from "./ListAvailablePhoneNumbersPaginator";
25
26
  export * from "./ListNotifyCountriesPaginator";
26
27
  export * from "./ListPoolOriginationIdentitiesPaginator";
27
28
  export * from "./ListProtectConfigurationRuleSetNumberOverridesPaginator";
@@ -16,6 +16,7 @@ const _AOIRs = "AssociateOriginationIdentityResult";
16
16
  const _APC = "AssociateProtectConfiguration";
17
17
  const _APCR = "AssociateProtectConfigurationRequest";
18
18
  const _APCRs = "AssociateProtectConfigurationResult";
19
+ const _APN = "AvailablePhoneNumbers";
19
20
  const _AR = "AwsReview";
20
21
  const _ART = "AwsReviewingTimestamp";
21
22
  const _AS = "AttachmentStatus";
@@ -146,6 +147,7 @@ const _DKRes = "DescribeKeywordsRequest";
146
147
  const _DKResc = "DescribeKeywordsResult";
147
148
  const _DKe = "DescribeKeywords";
148
149
  const _DL = "DocumentationLink";
150
+ const _DMC = "DailyMessageCaps";
149
151
  const _DMFE = "DefaultMessageFeedbackEnabled";
150
152
  const _DMMSLO = "DeleteMediaMessageSpendLimitOverride";
151
153
  const _DMMSLOR = "DeleteMediaMessageSpendLimitOverrideRequest";
@@ -309,6 +311,7 @@ const _FT = "FieldType";
309
311
  const _FU = "FileUrl";
310
312
  const _Fe = "Feedback";
311
313
  const _Fi = "Filters";
314
+ const _Fil = "Filter";
312
315
  const _GPCCRS = "GetProtectConfigurationCountryRuleSet";
313
316
  const _GPCCRSR = "GetProtectConfigurationCountryRuleSetRequest";
314
317
  const _GPCCRSRe = "GetProtectConfigurationCountryRuleSetResult";
@@ -332,6 +335,9 @@ const _KM = "KeywordMessage";
332
335
  const _Ke = "Keywords";
333
336
  const _Key = "Key";
334
337
  const _L = "Latitude";
338
+ const _LAPN = "ListAvailablePhoneNumbers";
339
+ const _LAPNR = "ListAvailablePhoneNumbersRequest";
340
+ const _LAPNRi = "ListAvailablePhoneNumbersResult";
335
341
  const _LC = "LanguageCode";
336
342
  const _LD = "LongDescription";
337
343
  const _LDVN = "LatestDeniedVersionNumber";
@@ -368,6 +374,7 @@ const _ML = "MinLength";
368
374
  const _MLP = "MonthlyLeasingPrice";
369
375
  const _MLa = "MaxLength";
370
376
  const _MLax = "MaxLimit";
377
+ const _MLe = "MessagingLimits";
371
378
  const _MLo = "MonthlyLimit";
372
379
  const _MNC = "MNC";
373
380
  const _MP = "MaxPrice";
@@ -396,6 +403,9 @@ const _NCo = "NotifyCountries";
396
403
  const _NCu = "NumberCapability";
397
404
  const _NCum = "NumberCapabilities";
398
405
  const _NETL = "NonEmptyTagList";
406
+ const _NP = "NumberPreference";
407
+ const _NPI = "NumberPreferenceItem";
408
+ const _NPL = "NumberPreferenceList";
399
409
  const _NT = "NextToken";
400
410
  const _NTF = "NotifyTemplateFilter";
401
411
  const _NTFL = "NotifyTemplateFilterList";
@@ -480,6 +490,7 @@ const _PRP = "PutResourcePolicy";
480
490
  const _PRPR = "PutResourcePolicyRequest";
481
491
  const _PRPRu = "PutResourcePolicyResult";
482
492
  const _PS = "ProtectStatus";
493
+ const _PT = "PreferenceType";
483
494
  const _Po = "Policy";
484
495
  const _Poo = "Pools";
485
496
  const _R = "Reason";
@@ -538,7 +549,8 @@ const _RIe = "RequestId";
538
549
  const _RIeg = "RegistrationId";
539
550
  const _RIegi = "RegistrationIds";
540
551
  const _RIegis = "RegistrationInformation";
541
- const _RL = "RequestLocation";
552
+ const _RL = "RateLimits";
553
+ const _RLe = "RequestLocation";
542
554
  const _RMB = "ResolvedMessageBody";
543
555
  const _RMC = "RcsMessageContent";
544
556
  const _RNFE = "ResourceNotFoundException";
@@ -1574,6 +1586,16 @@ export var KinesisFirehoseDestination$ = [3, n0, _KFD,
1574
1586
  [_IRA, _DSA],
1575
1587
  [0, 0], 2
1576
1588
  ];
1589
+ export var ListAvailablePhoneNumbersRequest$ = [3, n0, _LAPNR,
1590
+ 0,
1591
+ [_ICC, _NCum, _NTu, _RIeg, _NP, _NT, _MR],
1592
+ [0, 64 | 0, 0, 0, () => NumberPreferenceList, 0, 1], 3
1593
+ ];
1594
+ export var ListAvailablePhoneNumbersResult$ = [3, n0, _LAPNRi,
1595
+ 0,
1596
+ [_APN, _NT],
1597
+ [64 | 0, 0], 1
1598
+ ];
1577
1599
  export var ListNotifyCountriesRequest$ = [3, n0, _LNCR,
1578
1600
  0,
1579
1601
  [_Ch, _UCs, _Ti, _NT, _MR],
@@ -1624,6 +1646,11 @@ export var ListTagsForResourceResult$ = [3, n0, _LTFRRi,
1624
1646
  [_RAe, _T],
1625
1647
  [0, () => TagList]
1626
1648
  ];
1649
+ export var MessagingLimits$ = [3, n0, _MLe,
1650
+ 0,
1651
+ [_RL, _DMC],
1652
+ [128 | 1, 128 | 1]
1653
+ ];
1627
1654
  export var NotifyConfigurationFilter$ = [3, n0, _NCF,
1628
1655
  0,
1629
1656
  [_N, _Va],
@@ -1649,6 +1676,11 @@ export var NotifyTemplateInformation$ = [3, n0, _NTI,
1649
1676
  [_TIe, _Ve, _TT, _Ch, _CTr, _TA, _S, _SCup, _LC, _Con, _Var, _SVI],
1650
1677
  [0, 1, 0, 64 | 0, 4, 64 | 0, 0, 64 | 0, 0, 0, () => TemplateVariablesMap, 64 | 0], 5
1651
1678
  ];
1679
+ export var NumberPreferenceItem$ = [3, n0, _NPI,
1680
+ 0,
1681
+ [_PT, _Fil],
1682
+ [64 | 0, 64 | 0], 2
1683
+ ];
1652
1684
  export var OptedOutFilter$ = [3, n0, _OOF,
1653
1685
  0,
1654
1686
  [_N, _Va],
@@ -1676,8 +1708,8 @@ export var PhoneNumberFilter$ = [3, n0, _PNF,
1676
1708
  ];
1677
1709
  export var PhoneNumberInformation$ = [3, n0, _PNIh,
1678
1710
  0,
1679
- [_PNA, _PN, _S, _ICC, _MT, _NCum, _NTu, _MLP, _TWE, _SMOOE, _OOLN, _DPE, _CTr, _PNIho, _TWCA, _TWCR, _ISEn, _PI, _RIeg],
1680
- [0, 0, 0, 0, 0, 64 | 0, 0, 0, 2, 2, 0, 2, 4, 0, 0, 0, 2, 0, 0], 13
1711
+ [_PNA, _PN, _S, _ICC, _MT, _NCum, _NTu, _MLP, _TWE, _SMOOE, _OOLN, _DPE, _CTr, _PNIho, _TWCA, _TWCR, _ISEn, _PI, _RIeg, _MLe],
1712
+ [0, 0, 0, 0, 0, 64 | 0, 0, 0, 2, 2, 0, 2, 4, 0, 0, 0, 2, 0, 0, () => MessagingLimits$], 13
1681
1713
  ];
1682
1714
  export var PoolFilter$ = [3, n0, _PF,
1683
1715
  0,
@@ -1786,8 +1818,8 @@ export var RcsAgentFilter$ = [3, n0, _RAF,
1786
1818
  ];
1787
1819
  export var RcsAgentInformation$ = [3, n0, _RAIcs,
1788
1820
  0,
1789
- [_RAA, _RAI, _S, _CTr, _DPE, _SMOOE, _TWE, _OOLN, _TWCA, _TWCR, _PI, _TWMSBN, _TWMSKP, _TWMSR, _TWREE, _TAe],
1790
- [0, 0, 0, 4, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 64 | 0, () => TestingAgentInformation$], 7
1821
+ [_RAA, _RAI, _S, _CTr, _DPE, _SMOOE, _TWE, _OOLN, _TWCA, _TWCR, _PI, _TWMSBN, _TWMSKP, _TWMSR, _TWREE, _TAe, _MLe],
1822
+ [0, 0, 0, 4, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 64 | 0, () => TestingAgentInformation$, () => MessagingLimits$], 7
1791
1823
  ];
1792
1824
  export var RcsCardContent$ = [3, n0, _RCC,
1793
1825
  0,
@@ -1981,8 +2013,8 @@ export var ReleaseSenderIdResult$ = [3, n0, _RSIRe,
1981
2013
  ];
1982
2014
  export var RequestPhoneNumberRequest$ = [3, n0, _RPNReq,
1983
2015
  0,
1984
- [_ICC, _MT, _NCum, _NTu, _OOLN, _PI, _RIeg, _ISEn, _DPE, _T, _CT],
1985
- [0, 0, 64 | 0, 0, 0, 0, 0, 2, 2, () => TagList, [0, 4]], 4
2016
+ [_ICC, _MT, _NCum, _NTu, _OOLN, _PI, _RIeg, _NP, _ISEn, _DPE, _T, _CT],
2017
+ [0, 0, 64 | 0, 0, 0, 0, 0, () => NumberPreferenceList, 2, 2, () => TagList, [0, 4]], 4
1986
2018
  ];
1987
2019
  export var RequestPhoneNumberResult$ = [3, n0, _RPNRequ,
1988
2020
  0,
@@ -2031,8 +2063,8 @@ export var SenderIdFilter$ = [3, n0, _SIF,
2031
2063
  ];
2032
2064
  export var SenderIdInformation$ = [3, n0, _SII,
2033
2065
  0,
2034
- [_SIA, _SI, _ICC, _MTe, _MLP, _DPE, _Reg, _RIeg],
2035
- [0, 0, 0, 64 | 0, 0, 2, 2, 0], 7
2066
+ [_SIA, _SI, _ICC, _MTe, _MLP, _DPE, _Reg, _RIeg, _MLe],
2067
+ [0, 0, 0, 64 | 0, 0, 2, 2, 0, () => MessagingLimits$], 7
2036
2068
  ];
2037
2069
  export var SendMediaMessageRequest$ = [3, n0, _SMMR,
2038
2070
  0,
@@ -2360,6 +2392,7 @@ var AccountAttributeList = [1, n0, _AAL,
2360
2392
  var AccountLimitList = [1, n0, _ALL,
2361
2393
  0, () => AccountLimit$
2362
2394
  ];
2395
+ var AvailablePhoneNumberList = 64 | 0;
2363
2396
  var CarrierStatusInformationList = [1, n0, _CSIL,
2364
2397
  0, () => CarrierStatusInformation$
2365
2398
  ];
@@ -2428,6 +2461,10 @@ var NotifyTemplateInformationList = [1, n0, _NTIL,
2428
2461
  var NotifyTierList = 64 | 0;
2429
2462
  var NotifyUseCaseList = 64 | 0;
2430
2463
  var NumberCapabilityList = 64 | 0;
2464
+ var NumberFilterList = 64 | 0;
2465
+ var NumberPreferenceList = [1, n0, _NPL,
2466
+ 0, () => NumberPreferenceItem$
2467
+ ];
2431
2468
  var OptedOutFilterList = [1, n0, _OOFL,
2432
2469
  0, () => OptedOutFilter$
2433
2470
  ];
@@ -2459,6 +2496,7 @@ var PoolInformationList = [1, n0, _PIL,
2459
2496
  var PoolOriginationIdentitiesFilterList = [1, n0, _POIFL,
2460
2497
  0, () => PoolOriginationIdentitiesFilter$
2461
2498
  ];
2499
+ var PreferenceTypeList = 64 | 0;
2462
2500
  var ProtectConfigurationFilterList = [1, n0, _PCFL,
2463
2501
  0, () => ProtectConfigurationFilter$
2464
2502
  ];
@@ -2570,6 +2608,7 @@ var VerifiedDestinationNumberInformationList = [1, n0, _VDNIL,
2570
2608
  var VoiceIdList = 64 | 0;
2571
2609
  var ContextMap = 128 | 0;
2572
2610
  var DestinationCountryParameters = 128 | 0;
2611
+ var LongMap = 128 | 1;
2573
2612
  var ProtectConfigurationCountryRuleSet = [2, n0, _PCCRS,
2574
2613
  0, 0, () => ProtectConfigurationCountryRuleSetInformation$
2575
2614
  ];
@@ -2585,7 +2624,7 @@ export var RcsContent$ = [4, n0, _RCc,
2585
2624
  ];
2586
2625
  export var RcsSuggestedAction$ = [4, n0, _RSA,
2587
2626
  0,
2588
- [_Rep, _OU, _DP, _SLh, _RL, _CCE],
2627
+ [_Rep, _OU, _DP, _SLh, _RLe, _CCE],
2589
2628
  [() => RcsReplyAction$, () => RcsOpenUrlAction$, () => RcsDialPhoneAction$, () => RcsShowLocationAction$, () => RcsRequestLocationAction$, () => RcsCreateCalendarEventAction$]
2590
2629
  ];
2591
2630
  export var AssociateOriginationIdentity$ = [9, n0, _AOI,
@@ -2786,6 +2825,9 @@ export var GetProtectConfigurationCountryRuleSet$ = [9, n0, _GPCCRS,
2786
2825
  export var GetResourcePolicy$ = [9, n0, _GRP,
2787
2826
  0, () => GetResourcePolicyRequest$, () => GetResourcePolicyResult$
2788
2827
  ];
2828
+ export var ListAvailablePhoneNumbers$ = [9, n0, _LAPN,
2829
+ 0, () => ListAvailablePhoneNumbersRequest$, () => ListAvailablePhoneNumbersResult$
2830
+ ];
2789
2831
  export var ListNotifyCountries$ = [9, n0, _LNC,
2790
2832
  0, () => ListNotifyCountriesRequest$, () => ListNotifyCountriesResult$
2791
2833
  ];
@@ -65,6 +65,7 @@ import { type DisassociateProtectConfigurationCommandInput, type DisassociatePro
65
65
  import { type DiscardRegistrationVersionCommandInput, type DiscardRegistrationVersionCommandOutput } from "./commands/DiscardRegistrationVersionCommand";
66
66
  import { type GetProtectConfigurationCountryRuleSetCommandInput, type GetProtectConfigurationCountryRuleSetCommandOutput } from "./commands/GetProtectConfigurationCountryRuleSetCommand";
67
67
  import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
68
+ import { type ListAvailablePhoneNumbersCommandInput, type ListAvailablePhoneNumbersCommandOutput } from "./commands/ListAvailablePhoneNumbersCommand";
68
69
  import { type ListNotifyCountriesCommandInput, type ListNotifyCountriesCommandOutput } from "./commands/ListNotifyCountriesCommand";
69
70
  import { type ListPoolOriginationIdentitiesCommandInput, type ListPoolOriginationIdentitiesCommandOutput } from "./commands/ListPoolOriginationIdentitiesCommand";
70
71
  import { type ListProtectConfigurationRuleSetNumberOverridesCommandInput, type ListProtectConfigurationRuleSetNumberOverridesCommandOutput } from "./commands/ListProtectConfigurationRuleSetNumberOverridesCommand";
@@ -531,6 +532,12 @@ export interface PinpointSMSVoiceV2 {
531
532
  getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
532
533
  getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
533
534
  getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
535
+ /**
536
+ * @see {@link ListAvailablePhoneNumbersCommand}
537
+ */
538
+ listAvailablePhoneNumbers(args: ListAvailablePhoneNumbersCommandInput, options?: __HttpHandlerOptions): Promise<ListAvailablePhoneNumbersCommandOutput>;
539
+ listAvailablePhoneNumbers(args: ListAvailablePhoneNumbersCommandInput, cb: (err: any, data?: ListAvailablePhoneNumbersCommandOutput) => void): void;
540
+ listAvailablePhoneNumbers(args: ListAvailablePhoneNumbersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAvailablePhoneNumbersCommandOutput) => void): void;
534
541
  /**
535
542
  * @see {@link ListNotifyCountriesCommand}
536
543
  */
@@ -951,6 +958,13 @@ export interface PinpointSMSVoiceV2 {
951
958
  * @returns AsyncIterable of {@link DescribeVerifiedDestinationNumbersCommandOutput}.
952
959
  */
953
960
  paginateDescribeVerifiedDestinationNumbers(args?: DescribeVerifiedDestinationNumbersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeVerifiedDestinationNumbersCommandOutput>;
961
+ /**
962
+ * @see {@link ListAvailablePhoneNumbersCommand}
963
+ * @param args - command input.
964
+ * @param paginationConfig - optional pagination config.
965
+ * @returns AsyncIterable of {@link ListAvailablePhoneNumbersCommandOutput}.
966
+ */
967
+ paginateListAvailablePhoneNumbers(args: ListAvailablePhoneNumbersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAvailablePhoneNumbersCommandOutput>;
954
968
  /**
955
969
  * @see {@link ListNotifyCountriesCommand}
956
970
  * @param args - command input.