@alicloud/dytnsapi20200217 1.0.10 → 1.0.13
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/client.d.ts +314 -0
- package/dist/client.js +633 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +815 -28
package/dist/client.js
CHANGED
|
@@ -625,6 +625,346 @@ class PhoneNumberEncryptResponse extends $tea.Model {
|
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
exports.PhoneNumberEncryptResponse = PhoneNumberEncryptResponse;
|
|
628
|
+
class PhoneNumberStatusForAccountRequest extends $tea.Model {
|
|
629
|
+
constructor(map) {
|
|
630
|
+
super(map);
|
|
631
|
+
}
|
|
632
|
+
static names() {
|
|
633
|
+
return {
|
|
634
|
+
authCode: 'AuthCode',
|
|
635
|
+
inputNumber: 'InputNumber',
|
|
636
|
+
mask: 'Mask',
|
|
637
|
+
ownerId: 'OwnerId',
|
|
638
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
639
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
static types() {
|
|
643
|
+
return {
|
|
644
|
+
authCode: 'string',
|
|
645
|
+
inputNumber: 'string',
|
|
646
|
+
mask: 'string',
|
|
647
|
+
ownerId: 'number',
|
|
648
|
+
resourceOwnerAccount: 'string',
|
|
649
|
+
resourceOwnerId: 'number',
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
exports.PhoneNumberStatusForAccountRequest = PhoneNumberStatusForAccountRequest;
|
|
654
|
+
class PhoneNumberStatusForAccountResponseBody extends $tea.Model {
|
|
655
|
+
constructor(map) {
|
|
656
|
+
super(map);
|
|
657
|
+
}
|
|
658
|
+
static names() {
|
|
659
|
+
return {
|
|
660
|
+
code: 'Code',
|
|
661
|
+
data: 'Data',
|
|
662
|
+
message: 'Message',
|
|
663
|
+
requestId: 'RequestId',
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
static types() {
|
|
667
|
+
return {
|
|
668
|
+
code: 'string',
|
|
669
|
+
data: PhoneNumberStatusForAccountResponseBodyData,
|
|
670
|
+
message: 'string',
|
|
671
|
+
requestId: 'string',
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
exports.PhoneNumberStatusForAccountResponseBody = PhoneNumberStatusForAccountResponseBody;
|
|
676
|
+
class PhoneNumberStatusForAccountResponse extends $tea.Model {
|
|
677
|
+
constructor(map) {
|
|
678
|
+
super(map);
|
|
679
|
+
}
|
|
680
|
+
static names() {
|
|
681
|
+
return {
|
|
682
|
+
headers: 'headers',
|
|
683
|
+
statusCode: 'statusCode',
|
|
684
|
+
body: 'body',
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
static types() {
|
|
688
|
+
return {
|
|
689
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
690
|
+
statusCode: 'number',
|
|
691
|
+
body: PhoneNumberStatusForAccountResponseBody,
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
exports.PhoneNumberStatusForAccountResponse = PhoneNumberStatusForAccountResponse;
|
|
696
|
+
class PhoneNumberStatusForRealRequest extends $tea.Model {
|
|
697
|
+
constructor(map) {
|
|
698
|
+
super(map);
|
|
699
|
+
}
|
|
700
|
+
static names() {
|
|
701
|
+
return {
|
|
702
|
+
authCode: 'AuthCode',
|
|
703
|
+
inputNumber: 'InputNumber',
|
|
704
|
+
mask: 'Mask',
|
|
705
|
+
ownerId: 'OwnerId',
|
|
706
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
707
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
static types() {
|
|
711
|
+
return {
|
|
712
|
+
authCode: 'string',
|
|
713
|
+
inputNumber: 'string',
|
|
714
|
+
mask: 'string',
|
|
715
|
+
ownerId: 'number',
|
|
716
|
+
resourceOwnerAccount: 'string',
|
|
717
|
+
resourceOwnerId: 'number',
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
exports.PhoneNumberStatusForRealRequest = PhoneNumberStatusForRealRequest;
|
|
722
|
+
class PhoneNumberStatusForRealResponseBody extends $tea.Model {
|
|
723
|
+
constructor(map) {
|
|
724
|
+
super(map);
|
|
725
|
+
}
|
|
726
|
+
static names() {
|
|
727
|
+
return {
|
|
728
|
+
code: 'Code',
|
|
729
|
+
data: 'Data',
|
|
730
|
+
message: 'Message',
|
|
731
|
+
requestId: 'RequestId',
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
static types() {
|
|
735
|
+
return {
|
|
736
|
+
code: 'string',
|
|
737
|
+
data: PhoneNumberStatusForRealResponseBodyData,
|
|
738
|
+
message: 'string',
|
|
739
|
+
requestId: 'string',
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
exports.PhoneNumberStatusForRealResponseBody = PhoneNumberStatusForRealResponseBody;
|
|
744
|
+
class PhoneNumberStatusForRealResponse extends $tea.Model {
|
|
745
|
+
constructor(map) {
|
|
746
|
+
super(map);
|
|
747
|
+
}
|
|
748
|
+
static names() {
|
|
749
|
+
return {
|
|
750
|
+
headers: 'headers',
|
|
751
|
+
statusCode: 'statusCode',
|
|
752
|
+
body: 'body',
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
static types() {
|
|
756
|
+
return {
|
|
757
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
758
|
+
statusCode: 'number',
|
|
759
|
+
body: PhoneNumberStatusForRealResponseBody,
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
exports.PhoneNumberStatusForRealResponse = PhoneNumberStatusForRealResponse;
|
|
764
|
+
class PhoneNumberStatusForSmsRequest extends $tea.Model {
|
|
765
|
+
constructor(map) {
|
|
766
|
+
super(map);
|
|
767
|
+
}
|
|
768
|
+
static names() {
|
|
769
|
+
return {
|
|
770
|
+
authCode: 'AuthCode',
|
|
771
|
+
inputNumber: 'InputNumber',
|
|
772
|
+
mask: 'Mask',
|
|
773
|
+
ownerId: 'OwnerId',
|
|
774
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
775
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
static types() {
|
|
779
|
+
return {
|
|
780
|
+
authCode: 'string',
|
|
781
|
+
inputNumber: 'string',
|
|
782
|
+
mask: 'string',
|
|
783
|
+
ownerId: 'number',
|
|
784
|
+
resourceOwnerAccount: 'string',
|
|
785
|
+
resourceOwnerId: 'number',
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
exports.PhoneNumberStatusForSmsRequest = PhoneNumberStatusForSmsRequest;
|
|
790
|
+
class PhoneNumberStatusForSmsResponseBody extends $tea.Model {
|
|
791
|
+
constructor(map) {
|
|
792
|
+
super(map);
|
|
793
|
+
}
|
|
794
|
+
static names() {
|
|
795
|
+
return {
|
|
796
|
+
code: 'Code',
|
|
797
|
+
data: 'Data',
|
|
798
|
+
message: 'Message',
|
|
799
|
+
requestId: 'RequestId',
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
static types() {
|
|
803
|
+
return {
|
|
804
|
+
code: 'string',
|
|
805
|
+
data: PhoneNumberStatusForSmsResponseBodyData,
|
|
806
|
+
message: 'string',
|
|
807
|
+
requestId: 'string',
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
exports.PhoneNumberStatusForSmsResponseBody = PhoneNumberStatusForSmsResponseBody;
|
|
812
|
+
class PhoneNumberStatusForSmsResponse extends $tea.Model {
|
|
813
|
+
constructor(map) {
|
|
814
|
+
super(map);
|
|
815
|
+
}
|
|
816
|
+
static names() {
|
|
817
|
+
return {
|
|
818
|
+
headers: 'headers',
|
|
819
|
+
statusCode: 'statusCode',
|
|
820
|
+
body: 'body',
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
static types() {
|
|
824
|
+
return {
|
|
825
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
826
|
+
statusCode: 'number',
|
|
827
|
+
body: PhoneNumberStatusForSmsResponseBody,
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
exports.PhoneNumberStatusForSmsResponse = PhoneNumberStatusForSmsResponse;
|
|
832
|
+
class PhoneNumberStatusForVirtualRequest extends $tea.Model {
|
|
833
|
+
constructor(map) {
|
|
834
|
+
super(map);
|
|
835
|
+
}
|
|
836
|
+
static names() {
|
|
837
|
+
return {
|
|
838
|
+
authCode: 'AuthCode',
|
|
839
|
+
inputNumber: 'InputNumber',
|
|
840
|
+
mask: 'Mask',
|
|
841
|
+
ownerId: 'OwnerId',
|
|
842
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
843
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
static types() {
|
|
847
|
+
return {
|
|
848
|
+
authCode: 'string',
|
|
849
|
+
inputNumber: 'string',
|
|
850
|
+
mask: 'string',
|
|
851
|
+
ownerId: 'number',
|
|
852
|
+
resourceOwnerAccount: 'string',
|
|
853
|
+
resourceOwnerId: 'number',
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
exports.PhoneNumberStatusForVirtualRequest = PhoneNumberStatusForVirtualRequest;
|
|
858
|
+
class PhoneNumberStatusForVirtualResponseBody extends $tea.Model {
|
|
859
|
+
constructor(map) {
|
|
860
|
+
super(map);
|
|
861
|
+
}
|
|
862
|
+
static names() {
|
|
863
|
+
return {
|
|
864
|
+
code: 'Code',
|
|
865
|
+
data: 'Data',
|
|
866
|
+
message: 'Message',
|
|
867
|
+
requestId: 'RequestId',
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
static types() {
|
|
871
|
+
return {
|
|
872
|
+
code: 'string',
|
|
873
|
+
data: PhoneNumberStatusForVirtualResponseBodyData,
|
|
874
|
+
message: 'string',
|
|
875
|
+
requestId: 'string',
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
exports.PhoneNumberStatusForVirtualResponseBody = PhoneNumberStatusForVirtualResponseBody;
|
|
880
|
+
class PhoneNumberStatusForVirtualResponse extends $tea.Model {
|
|
881
|
+
constructor(map) {
|
|
882
|
+
super(map);
|
|
883
|
+
}
|
|
884
|
+
static names() {
|
|
885
|
+
return {
|
|
886
|
+
headers: 'headers',
|
|
887
|
+
statusCode: 'statusCode',
|
|
888
|
+
body: 'body',
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
static types() {
|
|
892
|
+
return {
|
|
893
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
894
|
+
statusCode: 'number',
|
|
895
|
+
body: PhoneNumberStatusForVirtualResponseBody,
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
exports.PhoneNumberStatusForVirtualResponse = PhoneNumberStatusForVirtualResponse;
|
|
900
|
+
class PhoneNumberStatusForVoiceRequest extends $tea.Model {
|
|
901
|
+
constructor(map) {
|
|
902
|
+
super(map);
|
|
903
|
+
}
|
|
904
|
+
static names() {
|
|
905
|
+
return {
|
|
906
|
+
authCode: 'AuthCode',
|
|
907
|
+
inputNumber: 'InputNumber',
|
|
908
|
+
mask: 'Mask',
|
|
909
|
+
ownerId: 'OwnerId',
|
|
910
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
911
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
static types() {
|
|
915
|
+
return {
|
|
916
|
+
authCode: 'string',
|
|
917
|
+
inputNumber: 'string',
|
|
918
|
+
mask: 'string',
|
|
919
|
+
ownerId: 'number',
|
|
920
|
+
resourceOwnerAccount: 'string',
|
|
921
|
+
resourceOwnerId: 'number',
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
exports.PhoneNumberStatusForVoiceRequest = PhoneNumberStatusForVoiceRequest;
|
|
926
|
+
class PhoneNumberStatusForVoiceResponseBody extends $tea.Model {
|
|
927
|
+
constructor(map) {
|
|
928
|
+
super(map);
|
|
929
|
+
}
|
|
930
|
+
static names() {
|
|
931
|
+
return {
|
|
932
|
+
code: 'Code',
|
|
933
|
+
data: 'Data',
|
|
934
|
+
message: 'Message',
|
|
935
|
+
requestId: 'RequestId',
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
static types() {
|
|
939
|
+
return {
|
|
940
|
+
code: 'string',
|
|
941
|
+
data: PhoneNumberStatusForVoiceResponseBodyData,
|
|
942
|
+
message: 'string',
|
|
943
|
+
requestId: 'string',
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
exports.PhoneNumberStatusForVoiceResponseBody = PhoneNumberStatusForVoiceResponseBody;
|
|
948
|
+
class PhoneNumberStatusForVoiceResponse extends $tea.Model {
|
|
949
|
+
constructor(map) {
|
|
950
|
+
super(map);
|
|
951
|
+
}
|
|
952
|
+
static names() {
|
|
953
|
+
return {
|
|
954
|
+
headers: 'headers',
|
|
955
|
+
statusCode: 'statusCode',
|
|
956
|
+
body: 'body',
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
static types() {
|
|
960
|
+
return {
|
|
961
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
962
|
+
statusCode: 'number',
|
|
963
|
+
body: PhoneNumberStatusForVoiceResponseBody,
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
exports.PhoneNumberStatusForVoiceResponse = PhoneNumberStatusForVoiceResponse;
|
|
628
968
|
class ThreeElementsVerificationRequest extends $tea.Model {
|
|
629
969
|
constructor(map) {
|
|
630
970
|
super(map);
|
|
@@ -951,6 +1291,94 @@ class PhoneNumberEncryptResponseBodyData extends $tea.Model {
|
|
|
951
1291
|
}
|
|
952
1292
|
}
|
|
953
1293
|
exports.PhoneNumberEncryptResponseBodyData = PhoneNumberEncryptResponseBodyData;
|
|
1294
|
+
class PhoneNumberStatusForAccountResponseBodyData extends $tea.Model {
|
|
1295
|
+
constructor(map) {
|
|
1296
|
+
super(map);
|
|
1297
|
+
}
|
|
1298
|
+
static names() {
|
|
1299
|
+
return {
|
|
1300
|
+
carrier: 'Carrier',
|
|
1301
|
+
status: 'Status',
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
static types() {
|
|
1305
|
+
return {
|
|
1306
|
+
carrier: 'string',
|
|
1307
|
+
status: 'string',
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
exports.PhoneNumberStatusForAccountResponseBodyData = PhoneNumberStatusForAccountResponseBodyData;
|
|
1312
|
+
class PhoneNumberStatusForRealResponseBodyData extends $tea.Model {
|
|
1313
|
+
constructor(map) {
|
|
1314
|
+
super(map);
|
|
1315
|
+
}
|
|
1316
|
+
static names() {
|
|
1317
|
+
return {
|
|
1318
|
+
carrier: 'Carrier',
|
|
1319
|
+
status: 'Status',
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
static types() {
|
|
1323
|
+
return {
|
|
1324
|
+
carrier: 'string',
|
|
1325
|
+
status: 'string',
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
exports.PhoneNumberStatusForRealResponseBodyData = PhoneNumberStatusForRealResponseBodyData;
|
|
1330
|
+
class PhoneNumberStatusForSmsResponseBodyData extends $tea.Model {
|
|
1331
|
+
constructor(map) {
|
|
1332
|
+
super(map);
|
|
1333
|
+
}
|
|
1334
|
+
static names() {
|
|
1335
|
+
return {
|
|
1336
|
+
carrier: 'Carrier',
|
|
1337
|
+
status: 'Status',
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
static types() {
|
|
1341
|
+
return {
|
|
1342
|
+
carrier: 'string',
|
|
1343
|
+
status: 'string',
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
exports.PhoneNumberStatusForSmsResponseBodyData = PhoneNumberStatusForSmsResponseBodyData;
|
|
1348
|
+
class PhoneNumberStatusForVirtualResponseBodyData extends $tea.Model {
|
|
1349
|
+
constructor(map) {
|
|
1350
|
+
super(map);
|
|
1351
|
+
}
|
|
1352
|
+
static names() {
|
|
1353
|
+
return {
|
|
1354
|
+
isPrivacyNumber: 'IsPrivacyNumber',
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
static types() {
|
|
1358
|
+
return {
|
|
1359
|
+
isPrivacyNumber: 'boolean',
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
exports.PhoneNumberStatusForVirtualResponseBodyData = PhoneNumberStatusForVirtualResponseBodyData;
|
|
1364
|
+
class PhoneNumberStatusForVoiceResponseBodyData extends $tea.Model {
|
|
1365
|
+
constructor(map) {
|
|
1366
|
+
super(map);
|
|
1367
|
+
}
|
|
1368
|
+
static names() {
|
|
1369
|
+
return {
|
|
1370
|
+
carrier: 'Carrier',
|
|
1371
|
+
status: 'Status',
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
static types() {
|
|
1375
|
+
return {
|
|
1376
|
+
carrier: 'string',
|
|
1377
|
+
status: 'string',
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
exports.PhoneNumberStatusForVoiceResponseBodyData = PhoneNumberStatusForVoiceResponseBodyData;
|
|
954
1382
|
class ThreeElementsVerificationResponseBodyData extends $tea.Model {
|
|
955
1383
|
constructor(map) {
|
|
956
1384
|
super(map);
|
|
@@ -1363,6 +1791,211 @@ class Client extends openapi_client_1.default {
|
|
|
1363
1791
|
let runtime = new $Util.RuntimeOptions({});
|
|
1364
1792
|
return await this.phoneNumberEncryptWithOptions(request, runtime);
|
|
1365
1793
|
}
|
|
1794
|
+
async phoneNumberStatusForAccountWithOptions(request, runtime) {
|
|
1795
|
+
tea_util_1.default.validateModel(request);
|
|
1796
|
+
let query = {};
|
|
1797
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1798
|
+
query["AuthCode"] = request.authCode;
|
|
1799
|
+
}
|
|
1800
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1801
|
+
query["InputNumber"] = request.inputNumber;
|
|
1802
|
+
}
|
|
1803
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1804
|
+
query["Mask"] = request.mask;
|
|
1805
|
+
}
|
|
1806
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1807
|
+
query["OwnerId"] = request.ownerId;
|
|
1808
|
+
}
|
|
1809
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1810
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1811
|
+
}
|
|
1812
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1813
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1814
|
+
}
|
|
1815
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1816
|
+
query: openapi_util_1.default.query(query),
|
|
1817
|
+
});
|
|
1818
|
+
let params = new $OpenApi.Params({
|
|
1819
|
+
action: "PhoneNumberStatusForAccount",
|
|
1820
|
+
version: "2020-02-17",
|
|
1821
|
+
protocol: "HTTPS",
|
|
1822
|
+
pathname: "/",
|
|
1823
|
+
method: "POST",
|
|
1824
|
+
authType: "AK",
|
|
1825
|
+
style: "RPC",
|
|
1826
|
+
reqBodyType: "formData",
|
|
1827
|
+
bodyType: "json",
|
|
1828
|
+
});
|
|
1829
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PhoneNumberStatusForAccountResponse({}));
|
|
1830
|
+
}
|
|
1831
|
+
async phoneNumberStatusForAccount(request) {
|
|
1832
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1833
|
+
return await this.phoneNumberStatusForAccountWithOptions(request, runtime);
|
|
1834
|
+
}
|
|
1835
|
+
async phoneNumberStatusForRealWithOptions(request, runtime) {
|
|
1836
|
+
tea_util_1.default.validateModel(request);
|
|
1837
|
+
let query = {};
|
|
1838
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1839
|
+
query["AuthCode"] = request.authCode;
|
|
1840
|
+
}
|
|
1841
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1842
|
+
query["InputNumber"] = request.inputNumber;
|
|
1843
|
+
}
|
|
1844
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1845
|
+
query["Mask"] = request.mask;
|
|
1846
|
+
}
|
|
1847
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1848
|
+
query["OwnerId"] = request.ownerId;
|
|
1849
|
+
}
|
|
1850
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1851
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1852
|
+
}
|
|
1853
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1854
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1855
|
+
}
|
|
1856
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1857
|
+
query: openapi_util_1.default.query(query),
|
|
1858
|
+
});
|
|
1859
|
+
let params = new $OpenApi.Params({
|
|
1860
|
+
action: "PhoneNumberStatusForReal",
|
|
1861
|
+
version: "2020-02-17",
|
|
1862
|
+
protocol: "HTTPS",
|
|
1863
|
+
pathname: "/",
|
|
1864
|
+
method: "POST",
|
|
1865
|
+
authType: "AK",
|
|
1866
|
+
style: "RPC",
|
|
1867
|
+
reqBodyType: "formData",
|
|
1868
|
+
bodyType: "json",
|
|
1869
|
+
});
|
|
1870
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PhoneNumberStatusForRealResponse({}));
|
|
1871
|
+
}
|
|
1872
|
+
async phoneNumberStatusForReal(request) {
|
|
1873
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1874
|
+
return await this.phoneNumberStatusForRealWithOptions(request, runtime);
|
|
1875
|
+
}
|
|
1876
|
+
async phoneNumberStatusForSmsWithOptions(request, runtime) {
|
|
1877
|
+
tea_util_1.default.validateModel(request);
|
|
1878
|
+
let query = {};
|
|
1879
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1880
|
+
query["AuthCode"] = request.authCode;
|
|
1881
|
+
}
|
|
1882
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1883
|
+
query["InputNumber"] = request.inputNumber;
|
|
1884
|
+
}
|
|
1885
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1886
|
+
query["Mask"] = request.mask;
|
|
1887
|
+
}
|
|
1888
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1889
|
+
query["OwnerId"] = request.ownerId;
|
|
1890
|
+
}
|
|
1891
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1892
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1893
|
+
}
|
|
1894
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1895
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1896
|
+
}
|
|
1897
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1898
|
+
query: openapi_util_1.default.query(query),
|
|
1899
|
+
});
|
|
1900
|
+
let params = new $OpenApi.Params({
|
|
1901
|
+
action: "PhoneNumberStatusForSms",
|
|
1902
|
+
version: "2020-02-17",
|
|
1903
|
+
protocol: "HTTPS",
|
|
1904
|
+
pathname: "/",
|
|
1905
|
+
method: "POST",
|
|
1906
|
+
authType: "AK",
|
|
1907
|
+
style: "RPC",
|
|
1908
|
+
reqBodyType: "formData",
|
|
1909
|
+
bodyType: "json",
|
|
1910
|
+
});
|
|
1911
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PhoneNumberStatusForSmsResponse({}));
|
|
1912
|
+
}
|
|
1913
|
+
async phoneNumberStatusForSms(request) {
|
|
1914
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1915
|
+
return await this.phoneNumberStatusForSmsWithOptions(request, runtime);
|
|
1916
|
+
}
|
|
1917
|
+
async phoneNumberStatusForVirtualWithOptions(request, runtime) {
|
|
1918
|
+
tea_util_1.default.validateModel(request);
|
|
1919
|
+
let query = {};
|
|
1920
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1921
|
+
query["AuthCode"] = request.authCode;
|
|
1922
|
+
}
|
|
1923
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1924
|
+
query["InputNumber"] = request.inputNumber;
|
|
1925
|
+
}
|
|
1926
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1927
|
+
query["Mask"] = request.mask;
|
|
1928
|
+
}
|
|
1929
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1930
|
+
query["OwnerId"] = request.ownerId;
|
|
1931
|
+
}
|
|
1932
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1933
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1934
|
+
}
|
|
1935
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1936
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1937
|
+
}
|
|
1938
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1939
|
+
query: openapi_util_1.default.query(query),
|
|
1940
|
+
});
|
|
1941
|
+
let params = new $OpenApi.Params({
|
|
1942
|
+
action: "PhoneNumberStatusForVirtual",
|
|
1943
|
+
version: "2020-02-17",
|
|
1944
|
+
protocol: "HTTPS",
|
|
1945
|
+
pathname: "/",
|
|
1946
|
+
method: "POST",
|
|
1947
|
+
authType: "AK",
|
|
1948
|
+
style: "RPC",
|
|
1949
|
+
reqBodyType: "formData",
|
|
1950
|
+
bodyType: "json",
|
|
1951
|
+
});
|
|
1952
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PhoneNumberStatusForVirtualResponse({}));
|
|
1953
|
+
}
|
|
1954
|
+
async phoneNumberStatusForVirtual(request) {
|
|
1955
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1956
|
+
return await this.phoneNumberStatusForVirtualWithOptions(request, runtime);
|
|
1957
|
+
}
|
|
1958
|
+
async phoneNumberStatusForVoiceWithOptions(request, runtime) {
|
|
1959
|
+
tea_util_1.default.validateModel(request);
|
|
1960
|
+
let query = {};
|
|
1961
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1962
|
+
query["AuthCode"] = request.authCode;
|
|
1963
|
+
}
|
|
1964
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1965
|
+
query["InputNumber"] = request.inputNumber;
|
|
1966
|
+
}
|
|
1967
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1968
|
+
query["Mask"] = request.mask;
|
|
1969
|
+
}
|
|
1970
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1971
|
+
query["OwnerId"] = request.ownerId;
|
|
1972
|
+
}
|
|
1973
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1974
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1975
|
+
}
|
|
1976
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1977
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1978
|
+
}
|
|
1979
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1980
|
+
query: openapi_util_1.default.query(query),
|
|
1981
|
+
});
|
|
1982
|
+
let params = new $OpenApi.Params({
|
|
1983
|
+
action: "PhoneNumberStatusForVoice",
|
|
1984
|
+
version: "2020-02-17",
|
|
1985
|
+
protocol: "HTTPS",
|
|
1986
|
+
pathname: "/",
|
|
1987
|
+
method: "POST",
|
|
1988
|
+
authType: "AK",
|
|
1989
|
+
style: "RPC",
|
|
1990
|
+
reqBodyType: "formData",
|
|
1991
|
+
bodyType: "json",
|
|
1992
|
+
});
|
|
1993
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PhoneNumberStatusForVoiceResponse({}));
|
|
1994
|
+
}
|
|
1995
|
+
async phoneNumberStatusForVoice(request) {
|
|
1996
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1997
|
+
return await this.phoneNumberStatusForVoiceWithOptions(request, runtime);
|
|
1998
|
+
}
|
|
1366
1999
|
async threeElementsVerificationWithOptions(request, runtime) {
|
|
1367
2000
|
tea_util_1.default.validateModel(request);
|
|
1368
2001
|
let query = {};
|