@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/src/client.ts
CHANGED
|
@@ -782,6 +782,441 @@ export class PhoneNumberEncryptResponse extends $tea.Model {
|
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
+
export class PhoneNumberStatusForAccountRequest extends $tea.Model {
|
|
786
|
+
authCode?: string;
|
|
787
|
+
inputNumber?: string;
|
|
788
|
+
mask?: string;
|
|
789
|
+
ownerId?: number;
|
|
790
|
+
resourceOwnerAccount?: string;
|
|
791
|
+
resourceOwnerId?: number;
|
|
792
|
+
static names(): { [key: string]: string } {
|
|
793
|
+
return {
|
|
794
|
+
authCode: 'AuthCode',
|
|
795
|
+
inputNumber: 'InputNumber',
|
|
796
|
+
mask: 'Mask',
|
|
797
|
+
ownerId: 'OwnerId',
|
|
798
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
799
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
static types(): { [key: string]: any } {
|
|
804
|
+
return {
|
|
805
|
+
authCode: 'string',
|
|
806
|
+
inputNumber: 'string',
|
|
807
|
+
mask: 'string',
|
|
808
|
+
ownerId: 'number',
|
|
809
|
+
resourceOwnerAccount: 'string',
|
|
810
|
+
resourceOwnerId: 'number',
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
constructor(map?: { [key: string]: any }) {
|
|
815
|
+
super(map);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
export class PhoneNumberStatusForAccountResponseBody extends $tea.Model {
|
|
820
|
+
code?: string;
|
|
821
|
+
data?: PhoneNumberStatusForAccountResponseBodyData;
|
|
822
|
+
message?: string;
|
|
823
|
+
requestId?: string;
|
|
824
|
+
static names(): { [key: string]: string } {
|
|
825
|
+
return {
|
|
826
|
+
code: 'Code',
|
|
827
|
+
data: 'Data',
|
|
828
|
+
message: 'Message',
|
|
829
|
+
requestId: 'RequestId',
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
static types(): { [key: string]: any } {
|
|
834
|
+
return {
|
|
835
|
+
code: 'string',
|
|
836
|
+
data: PhoneNumberStatusForAccountResponseBodyData,
|
|
837
|
+
message: 'string',
|
|
838
|
+
requestId: 'string',
|
|
839
|
+
};
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
constructor(map?: { [key: string]: any }) {
|
|
843
|
+
super(map);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export class PhoneNumberStatusForAccountResponse extends $tea.Model {
|
|
848
|
+
headers: { [key: string]: string };
|
|
849
|
+
statusCode: number;
|
|
850
|
+
body: PhoneNumberStatusForAccountResponseBody;
|
|
851
|
+
static names(): { [key: string]: string } {
|
|
852
|
+
return {
|
|
853
|
+
headers: 'headers',
|
|
854
|
+
statusCode: 'statusCode',
|
|
855
|
+
body: 'body',
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
static types(): { [key: string]: any } {
|
|
860
|
+
return {
|
|
861
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
862
|
+
statusCode: 'number',
|
|
863
|
+
body: PhoneNumberStatusForAccountResponseBody,
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
constructor(map?: { [key: string]: any }) {
|
|
868
|
+
super(map);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export class PhoneNumberStatusForRealRequest extends $tea.Model {
|
|
873
|
+
authCode?: string;
|
|
874
|
+
inputNumber?: string;
|
|
875
|
+
mask?: string;
|
|
876
|
+
ownerId?: number;
|
|
877
|
+
resourceOwnerAccount?: string;
|
|
878
|
+
resourceOwnerId?: number;
|
|
879
|
+
static names(): { [key: string]: string } {
|
|
880
|
+
return {
|
|
881
|
+
authCode: 'AuthCode',
|
|
882
|
+
inputNumber: 'InputNumber',
|
|
883
|
+
mask: 'Mask',
|
|
884
|
+
ownerId: 'OwnerId',
|
|
885
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
886
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
static types(): { [key: string]: any } {
|
|
891
|
+
return {
|
|
892
|
+
authCode: 'string',
|
|
893
|
+
inputNumber: 'string',
|
|
894
|
+
mask: 'string',
|
|
895
|
+
ownerId: 'number',
|
|
896
|
+
resourceOwnerAccount: 'string',
|
|
897
|
+
resourceOwnerId: 'number',
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
constructor(map?: { [key: string]: any }) {
|
|
902
|
+
super(map);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export class PhoneNumberStatusForRealResponseBody extends $tea.Model {
|
|
907
|
+
code?: string;
|
|
908
|
+
data?: PhoneNumberStatusForRealResponseBodyData;
|
|
909
|
+
message?: string;
|
|
910
|
+
requestId?: string;
|
|
911
|
+
static names(): { [key: string]: string } {
|
|
912
|
+
return {
|
|
913
|
+
code: 'Code',
|
|
914
|
+
data: 'Data',
|
|
915
|
+
message: 'Message',
|
|
916
|
+
requestId: 'RequestId',
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
static types(): { [key: string]: any } {
|
|
921
|
+
return {
|
|
922
|
+
code: 'string',
|
|
923
|
+
data: PhoneNumberStatusForRealResponseBodyData,
|
|
924
|
+
message: 'string',
|
|
925
|
+
requestId: 'string',
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
constructor(map?: { [key: string]: any }) {
|
|
930
|
+
super(map);
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export class PhoneNumberStatusForRealResponse extends $tea.Model {
|
|
935
|
+
headers: { [key: string]: string };
|
|
936
|
+
statusCode: number;
|
|
937
|
+
body: PhoneNumberStatusForRealResponseBody;
|
|
938
|
+
static names(): { [key: string]: string } {
|
|
939
|
+
return {
|
|
940
|
+
headers: 'headers',
|
|
941
|
+
statusCode: 'statusCode',
|
|
942
|
+
body: 'body',
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
static types(): { [key: string]: any } {
|
|
947
|
+
return {
|
|
948
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
949
|
+
statusCode: 'number',
|
|
950
|
+
body: PhoneNumberStatusForRealResponseBody,
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
constructor(map?: { [key: string]: any }) {
|
|
955
|
+
super(map);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export class PhoneNumberStatusForSmsRequest extends $tea.Model {
|
|
960
|
+
authCode?: string;
|
|
961
|
+
inputNumber?: string;
|
|
962
|
+
mask?: string;
|
|
963
|
+
ownerId?: number;
|
|
964
|
+
resourceOwnerAccount?: string;
|
|
965
|
+
resourceOwnerId?: number;
|
|
966
|
+
static names(): { [key: string]: string } {
|
|
967
|
+
return {
|
|
968
|
+
authCode: 'AuthCode',
|
|
969
|
+
inputNumber: 'InputNumber',
|
|
970
|
+
mask: 'Mask',
|
|
971
|
+
ownerId: 'OwnerId',
|
|
972
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
973
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
static types(): { [key: string]: any } {
|
|
978
|
+
return {
|
|
979
|
+
authCode: 'string',
|
|
980
|
+
inputNumber: 'string',
|
|
981
|
+
mask: 'string',
|
|
982
|
+
ownerId: 'number',
|
|
983
|
+
resourceOwnerAccount: 'string',
|
|
984
|
+
resourceOwnerId: 'number',
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
constructor(map?: { [key: string]: any }) {
|
|
989
|
+
super(map);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export class PhoneNumberStatusForSmsResponseBody extends $tea.Model {
|
|
994
|
+
code?: string;
|
|
995
|
+
data?: PhoneNumberStatusForSmsResponseBodyData;
|
|
996
|
+
message?: string;
|
|
997
|
+
requestId?: string;
|
|
998
|
+
static names(): { [key: string]: string } {
|
|
999
|
+
return {
|
|
1000
|
+
code: 'Code',
|
|
1001
|
+
data: 'Data',
|
|
1002
|
+
message: 'Message',
|
|
1003
|
+
requestId: 'RequestId',
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
static types(): { [key: string]: any } {
|
|
1008
|
+
return {
|
|
1009
|
+
code: 'string',
|
|
1010
|
+
data: PhoneNumberStatusForSmsResponseBodyData,
|
|
1011
|
+
message: 'string',
|
|
1012
|
+
requestId: 'string',
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
constructor(map?: { [key: string]: any }) {
|
|
1017
|
+
super(map);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
export class PhoneNumberStatusForSmsResponse extends $tea.Model {
|
|
1022
|
+
headers: { [key: string]: string };
|
|
1023
|
+
statusCode: number;
|
|
1024
|
+
body: PhoneNumberStatusForSmsResponseBody;
|
|
1025
|
+
static names(): { [key: string]: string } {
|
|
1026
|
+
return {
|
|
1027
|
+
headers: 'headers',
|
|
1028
|
+
statusCode: 'statusCode',
|
|
1029
|
+
body: 'body',
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
static types(): { [key: string]: any } {
|
|
1034
|
+
return {
|
|
1035
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1036
|
+
statusCode: 'number',
|
|
1037
|
+
body: PhoneNumberStatusForSmsResponseBody,
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
constructor(map?: { [key: string]: any }) {
|
|
1042
|
+
super(map);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
export class PhoneNumberStatusForVirtualRequest extends $tea.Model {
|
|
1047
|
+
authCode?: string;
|
|
1048
|
+
inputNumber?: string;
|
|
1049
|
+
mask?: string;
|
|
1050
|
+
ownerId?: number;
|
|
1051
|
+
resourceOwnerAccount?: string;
|
|
1052
|
+
resourceOwnerId?: number;
|
|
1053
|
+
static names(): { [key: string]: string } {
|
|
1054
|
+
return {
|
|
1055
|
+
authCode: 'AuthCode',
|
|
1056
|
+
inputNumber: 'InputNumber',
|
|
1057
|
+
mask: 'Mask',
|
|
1058
|
+
ownerId: 'OwnerId',
|
|
1059
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1060
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
static types(): { [key: string]: any } {
|
|
1065
|
+
return {
|
|
1066
|
+
authCode: 'string',
|
|
1067
|
+
inputNumber: 'string',
|
|
1068
|
+
mask: 'string',
|
|
1069
|
+
ownerId: 'number',
|
|
1070
|
+
resourceOwnerAccount: 'string',
|
|
1071
|
+
resourceOwnerId: 'number',
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
constructor(map?: { [key: string]: any }) {
|
|
1076
|
+
super(map);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
export class PhoneNumberStatusForVirtualResponseBody extends $tea.Model {
|
|
1081
|
+
code?: string;
|
|
1082
|
+
data?: PhoneNumberStatusForVirtualResponseBodyData;
|
|
1083
|
+
message?: string;
|
|
1084
|
+
requestId?: string;
|
|
1085
|
+
static names(): { [key: string]: string } {
|
|
1086
|
+
return {
|
|
1087
|
+
code: 'Code',
|
|
1088
|
+
data: 'Data',
|
|
1089
|
+
message: 'Message',
|
|
1090
|
+
requestId: 'RequestId',
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
static types(): { [key: string]: any } {
|
|
1095
|
+
return {
|
|
1096
|
+
code: 'string',
|
|
1097
|
+
data: PhoneNumberStatusForVirtualResponseBodyData,
|
|
1098
|
+
message: 'string',
|
|
1099
|
+
requestId: 'string',
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
constructor(map?: { [key: string]: any }) {
|
|
1104
|
+
super(map);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
export class PhoneNumberStatusForVirtualResponse extends $tea.Model {
|
|
1109
|
+
headers: { [key: string]: string };
|
|
1110
|
+
statusCode: number;
|
|
1111
|
+
body: PhoneNumberStatusForVirtualResponseBody;
|
|
1112
|
+
static names(): { [key: string]: string } {
|
|
1113
|
+
return {
|
|
1114
|
+
headers: 'headers',
|
|
1115
|
+
statusCode: 'statusCode',
|
|
1116
|
+
body: 'body',
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
static types(): { [key: string]: any } {
|
|
1121
|
+
return {
|
|
1122
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1123
|
+
statusCode: 'number',
|
|
1124
|
+
body: PhoneNumberStatusForVirtualResponseBody,
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
constructor(map?: { [key: string]: any }) {
|
|
1129
|
+
super(map);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
export class PhoneNumberStatusForVoiceRequest extends $tea.Model {
|
|
1134
|
+
authCode?: string;
|
|
1135
|
+
inputNumber?: string;
|
|
1136
|
+
mask?: string;
|
|
1137
|
+
ownerId?: number;
|
|
1138
|
+
resourceOwnerAccount?: string;
|
|
1139
|
+
resourceOwnerId?: number;
|
|
1140
|
+
static names(): { [key: string]: string } {
|
|
1141
|
+
return {
|
|
1142
|
+
authCode: 'AuthCode',
|
|
1143
|
+
inputNumber: 'InputNumber',
|
|
1144
|
+
mask: 'Mask',
|
|
1145
|
+
ownerId: 'OwnerId',
|
|
1146
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
1147
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
static types(): { [key: string]: any } {
|
|
1152
|
+
return {
|
|
1153
|
+
authCode: 'string',
|
|
1154
|
+
inputNumber: 'string',
|
|
1155
|
+
mask: 'string',
|
|
1156
|
+
ownerId: 'number',
|
|
1157
|
+
resourceOwnerAccount: 'string',
|
|
1158
|
+
resourceOwnerId: 'number',
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
constructor(map?: { [key: string]: any }) {
|
|
1163
|
+
super(map);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
export class PhoneNumberStatusForVoiceResponseBody extends $tea.Model {
|
|
1168
|
+
code?: string;
|
|
1169
|
+
data?: PhoneNumberStatusForVoiceResponseBodyData;
|
|
1170
|
+
message?: string;
|
|
1171
|
+
requestId?: string;
|
|
1172
|
+
static names(): { [key: string]: string } {
|
|
1173
|
+
return {
|
|
1174
|
+
code: 'Code',
|
|
1175
|
+
data: 'Data',
|
|
1176
|
+
message: 'Message',
|
|
1177
|
+
requestId: 'RequestId',
|
|
1178
|
+
};
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
static types(): { [key: string]: any } {
|
|
1182
|
+
return {
|
|
1183
|
+
code: 'string',
|
|
1184
|
+
data: PhoneNumberStatusForVoiceResponseBodyData,
|
|
1185
|
+
message: 'string',
|
|
1186
|
+
requestId: 'string',
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
constructor(map?: { [key: string]: any }) {
|
|
1191
|
+
super(map);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
export class PhoneNumberStatusForVoiceResponse extends $tea.Model {
|
|
1196
|
+
headers: { [key: string]: string };
|
|
1197
|
+
statusCode: number;
|
|
1198
|
+
body: PhoneNumberStatusForVoiceResponseBody;
|
|
1199
|
+
static names(): { [key: string]: string } {
|
|
1200
|
+
return {
|
|
1201
|
+
headers: 'headers',
|
|
1202
|
+
statusCode: 'statusCode',
|
|
1203
|
+
body: 'body',
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
static types(): { [key: string]: any } {
|
|
1208
|
+
return {
|
|
1209
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1210
|
+
statusCode: 'number',
|
|
1211
|
+
body: PhoneNumberStatusForVoiceResponseBody,
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
constructor(map?: { [key: string]: any }) {
|
|
1216
|
+
super(map);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
|
|
785
1220
|
export class ThreeElementsVerificationRequest extends $tea.Model {
|
|
786
1221
|
authCode?: string;
|
|
787
1222
|
certCode?: string;
|
|
@@ -1109,7 +1544,129 @@ export class DescribePhoneNumberResaleResponseBodyTwiceTelVerify extends $tea.Mo
|
|
|
1109
1544
|
static types(): { [key: string]: any } {
|
|
1110
1545
|
return {
|
|
1111
1546
|
carrier: 'string',
|
|
1112
|
-
verifyResult: 'number',
|
|
1547
|
+
verifyResult: 'number',
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
constructor(map?: { [key: string]: any }) {
|
|
1552
|
+
super(map);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export class DescribePhoneNumberStatusResponseBodyPhoneStatus extends $tea.Model {
|
|
1557
|
+
carrier?: string;
|
|
1558
|
+
serialId?: string;
|
|
1559
|
+
status?: string;
|
|
1560
|
+
static names(): { [key: string]: string } {
|
|
1561
|
+
return {
|
|
1562
|
+
carrier: 'Carrier',
|
|
1563
|
+
serialId: 'SerialId',
|
|
1564
|
+
status: 'Status',
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
static types(): { [key: string]: any } {
|
|
1569
|
+
return {
|
|
1570
|
+
carrier: 'string',
|
|
1571
|
+
serialId: 'string',
|
|
1572
|
+
status: 'string',
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
constructor(map?: { [key: string]: any }) {
|
|
1577
|
+
super(map);
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
export class InvalidPhoneNumberFilterResponseBodyData extends $tea.Model {
|
|
1582
|
+
code?: string;
|
|
1583
|
+
encryptedNumber?: string;
|
|
1584
|
+
expireTime?: string;
|
|
1585
|
+
originalNumber?: string;
|
|
1586
|
+
static names(): { [key: string]: string } {
|
|
1587
|
+
return {
|
|
1588
|
+
code: 'Code',
|
|
1589
|
+
encryptedNumber: 'EncryptedNumber',
|
|
1590
|
+
expireTime: 'ExpireTime',
|
|
1591
|
+
originalNumber: 'OriginalNumber',
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
static types(): { [key: string]: any } {
|
|
1596
|
+
return {
|
|
1597
|
+
code: 'string',
|
|
1598
|
+
encryptedNumber: 'string',
|
|
1599
|
+
expireTime: 'string',
|
|
1600
|
+
originalNumber: 'string',
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
constructor(map?: { [key: string]: any }) {
|
|
1605
|
+
super(map);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
export class PhoneNumberEncryptResponseBodyData extends $tea.Model {
|
|
1610
|
+
encryptedNumber?: string;
|
|
1611
|
+
expireTime?: string;
|
|
1612
|
+
originalNumber?: string;
|
|
1613
|
+
static names(): { [key: string]: string } {
|
|
1614
|
+
return {
|
|
1615
|
+
encryptedNumber: 'EncryptedNumber',
|
|
1616
|
+
expireTime: 'ExpireTime',
|
|
1617
|
+
originalNumber: 'OriginalNumber',
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
static types(): { [key: string]: any } {
|
|
1622
|
+
return {
|
|
1623
|
+
encryptedNumber: 'string',
|
|
1624
|
+
expireTime: 'string',
|
|
1625
|
+
originalNumber: 'string',
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
constructor(map?: { [key: string]: any }) {
|
|
1630
|
+
super(map);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
export class PhoneNumberStatusForAccountResponseBodyData extends $tea.Model {
|
|
1635
|
+
carrier?: string;
|
|
1636
|
+
status?: string;
|
|
1637
|
+
static names(): { [key: string]: string } {
|
|
1638
|
+
return {
|
|
1639
|
+
carrier: 'Carrier',
|
|
1640
|
+
status: 'Status',
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
static types(): { [key: string]: any } {
|
|
1645
|
+
return {
|
|
1646
|
+
carrier: 'string',
|
|
1647
|
+
status: 'string',
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
constructor(map?: { [key: string]: any }) {
|
|
1652
|
+
super(map);
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
export class PhoneNumberStatusForRealResponseBodyData extends $tea.Model {
|
|
1657
|
+
carrier?: string;
|
|
1658
|
+
status?: string;
|
|
1659
|
+
static names(): { [key: string]: string } {
|
|
1660
|
+
return {
|
|
1661
|
+
carrier: 'Carrier',
|
|
1662
|
+
status: 'Status',
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
static types(): { [key: string]: any } {
|
|
1667
|
+
return {
|
|
1668
|
+
carrier: 'string',
|
|
1669
|
+
status: 'string',
|
|
1113
1670
|
};
|
|
1114
1671
|
}
|
|
1115
1672
|
|
|
@@ -1118,14 +1675,12 @@ export class DescribePhoneNumberResaleResponseBodyTwiceTelVerify extends $tea.Mo
|
|
|
1118
1675
|
}
|
|
1119
1676
|
}
|
|
1120
1677
|
|
|
1121
|
-
export class
|
|
1678
|
+
export class PhoneNumberStatusForSmsResponseBodyData extends $tea.Model {
|
|
1122
1679
|
carrier?: string;
|
|
1123
|
-
serialId?: string;
|
|
1124
1680
|
status?: string;
|
|
1125
1681
|
static names(): { [key: string]: string } {
|
|
1126
1682
|
return {
|
|
1127
1683
|
carrier: 'Carrier',
|
|
1128
|
-
serialId: 'SerialId',
|
|
1129
1684
|
status: 'Status',
|
|
1130
1685
|
};
|
|
1131
1686
|
}
|
|
@@ -1133,7 +1688,6 @@ export class DescribePhoneNumberStatusResponseBodyPhoneStatus extends $tea.Model
|
|
|
1133
1688
|
static types(): { [key: string]: any } {
|
|
1134
1689
|
return {
|
|
1135
1690
|
carrier: 'string',
|
|
1136
|
-
serialId: 'string',
|
|
1137
1691
|
status: 'string',
|
|
1138
1692
|
};
|
|
1139
1693
|
}
|
|
@@ -1143,26 +1697,17 @@ export class DescribePhoneNumberStatusResponseBodyPhoneStatus extends $tea.Model
|
|
|
1143
1697
|
}
|
|
1144
1698
|
}
|
|
1145
1699
|
|
|
1146
|
-
export class
|
|
1147
|
-
|
|
1148
|
-
encryptedNumber?: string;
|
|
1149
|
-
expireTime?: string;
|
|
1150
|
-
originalNumber?: string;
|
|
1700
|
+
export class PhoneNumberStatusForVirtualResponseBodyData extends $tea.Model {
|
|
1701
|
+
isPrivacyNumber?: boolean;
|
|
1151
1702
|
static names(): { [key: string]: string } {
|
|
1152
1703
|
return {
|
|
1153
|
-
|
|
1154
|
-
encryptedNumber: 'EncryptedNumber',
|
|
1155
|
-
expireTime: 'ExpireTime',
|
|
1156
|
-
originalNumber: 'OriginalNumber',
|
|
1704
|
+
isPrivacyNumber: 'IsPrivacyNumber',
|
|
1157
1705
|
};
|
|
1158
1706
|
}
|
|
1159
1707
|
|
|
1160
1708
|
static types(): { [key: string]: any } {
|
|
1161
1709
|
return {
|
|
1162
|
-
|
|
1163
|
-
encryptedNumber: 'string',
|
|
1164
|
-
expireTime: 'string',
|
|
1165
|
-
originalNumber: 'string',
|
|
1710
|
+
isPrivacyNumber: 'boolean',
|
|
1166
1711
|
};
|
|
1167
1712
|
}
|
|
1168
1713
|
|
|
@@ -1171,23 +1716,20 @@ export class InvalidPhoneNumberFilterResponseBodyData extends $tea.Model {
|
|
|
1171
1716
|
}
|
|
1172
1717
|
}
|
|
1173
1718
|
|
|
1174
|
-
export class
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
originalNumber?: string;
|
|
1719
|
+
export class PhoneNumberStatusForVoiceResponseBodyData extends $tea.Model {
|
|
1720
|
+
carrier?: string;
|
|
1721
|
+
status?: string;
|
|
1178
1722
|
static names(): { [key: string]: string } {
|
|
1179
1723
|
return {
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
originalNumber: 'OriginalNumber',
|
|
1724
|
+
carrier: 'Carrier',
|
|
1725
|
+
status: 'Status',
|
|
1183
1726
|
};
|
|
1184
1727
|
}
|
|
1185
1728
|
|
|
1186
1729
|
static types(): { [key: string]: any } {
|
|
1187
1730
|
return {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
originalNumber: 'string',
|
|
1731
|
+
carrier: 'string',
|
|
1732
|
+
status: 'string',
|
|
1191
1733
|
};
|
|
1192
1734
|
}
|
|
1193
1735
|
|
|
@@ -1692,6 +2234,251 @@ export default class Client extends OpenApi {
|
|
|
1692
2234
|
return await this.phoneNumberEncryptWithOptions(request, runtime);
|
|
1693
2235
|
}
|
|
1694
2236
|
|
|
2237
|
+
async phoneNumberStatusForAccountWithOptions(request: PhoneNumberStatusForAccountRequest, runtime: $Util.RuntimeOptions): Promise<PhoneNumberStatusForAccountResponse> {
|
|
2238
|
+
Util.validateModel(request);
|
|
2239
|
+
let query = { };
|
|
2240
|
+
if (!Util.isUnset(request.authCode)) {
|
|
2241
|
+
query["AuthCode"] = request.authCode;
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
2245
|
+
query["InputNumber"] = request.inputNumber;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
if (!Util.isUnset(request.mask)) {
|
|
2249
|
+
query["Mask"] = request.mask;
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
2253
|
+
query["OwnerId"] = request.ownerId;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
2257
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
2261
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2265
|
+
query: OpenApiUtil.query(query),
|
|
2266
|
+
});
|
|
2267
|
+
let params = new $OpenApi.Params({
|
|
2268
|
+
action: "PhoneNumberStatusForAccount",
|
|
2269
|
+
version: "2020-02-17",
|
|
2270
|
+
protocol: "HTTPS",
|
|
2271
|
+
pathname: "/",
|
|
2272
|
+
method: "POST",
|
|
2273
|
+
authType: "AK",
|
|
2274
|
+
style: "RPC",
|
|
2275
|
+
reqBodyType: "formData",
|
|
2276
|
+
bodyType: "json",
|
|
2277
|
+
});
|
|
2278
|
+
return $tea.cast<PhoneNumberStatusForAccountResponse>(await this.callApi(params, req, runtime), new PhoneNumberStatusForAccountResponse({}));
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
async phoneNumberStatusForAccount(request: PhoneNumberStatusForAccountRequest): Promise<PhoneNumberStatusForAccountResponse> {
|
|
2282
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2283
|
+
return await this.phoneNumberStatusForAccountWithOptions(request, runtime);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
async phoneNumberStatusForRealWithOptions(request: PhoneNumberStatusForRealRequest, runtime: $Util.RuntimeOptions): Promise<PhoneNumberStatusForRealResponse> {
|
|
2287
|
+
Util.validateModel(request);
|
|
2288
|
+
let query = { };
|
|
2289
|
+
if (!Util.isUnset(request.authCode)) {
|
|
2290
|
+
query["AuthCode"] = request.authCode;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
2294
|
+
query["InputNumber"] = request.inputNumber;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
if (!Util.isUnset(request.mask)) {
|
|
2298
|
+
query["Mask"] = request.mask;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
2302
|
+
query["OwnerId"] = request.ownerId;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
2306
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
2310
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2314
|
+
query: OpenApiUtil.query(query),
|
|
2315
|
+
});
|
|
2316
|
+
let params = new $OpenApi.Params({
|
|
2317
|
+
action: "PhoneNumberStatusForReal",
|
|
2318
|
+
version: "2020-02-17",
|
|
2319
|
+
protocol: "HTTPS",
|
|
2320
|
+
pathname: "/",
|
|
2321
|
+
method: "POST",
|
|
2322
|
+
authType: "AK",
|
|
2323
|
+
style: "RPC",
|
|
2324
|
+
reqBodyType: "formData",
|
|
2325
|
+
bodyType: "json",
|
|
2326
|
+
});
|
|
2327
|
+
return $tea.cast<PhoneNumberStatusForRealResponse>(await this.callApi(params, req, runtime), new PhoneNumberStatusForRealResponse({}));
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
async phoneNumberStatusForReal(request: PhoneNumberStatusForRealRequest): Promise<PhoneNumberStatusForRealResponse> {
|
|
2331
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2332
|
+
return await this.phoneNumberStatusForRealWithOptions(request, runtime);
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
async phoneNumberStatusForSmsWithOptions(request: PhoneNumberStatusForSmsRequest, runtime: $Util.RuntimeOptions): Promise<PhoneNumberStatusForSmsResponse> {
|
|
2336
|
+
Util.validateModel(request);
|
|
2337
|
+
let query = { };
|
|
2338
|
+
if (!Util.isUnset(request.authCode)) {
|
|
2339
|
+
query["AuthCode"] = request.authCode;
|
|
2340
|
+
}
|
|
2341
|
+
|
|
2342
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
2343
|
+
query["InputNumber"] = request.inputNumber;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
if (!Util.isUnset(request.mask)) {
|
|
2347
|
+
query["Mask"] = request.mask;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
2351
|
+
query["OwnerId"] = request.ownerId;
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
2355
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
2359
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2363
|
+
query: OpenApiUtil.query(query),
|
|
2364
|
+
});
|
|
2365
|
+
let params = new $OpenApi.Params({
|
|
2366
|
+
action: "PhoneNumberStatusForSms",
|
|
2367
|
+
version: "2020-02-17",
|
|
2368
|
+
protocol: "HTTPS",
|
|
2369
|
+
pathname: "/",
|
|
2370
|
+
method: "POST",
|
|
2371
|
+
authType: "AK",
|
|
2372
|
+
style: "RPC",
|
|
2373
|
+
reqBodyType: "formData",
|
|
2374
|
+
bodyType: "json",
|
|
2375
|
+
});
|
|
2376
|
+
return $tea.cast<PhoneNumberStatusForSmsResponse>(await this.callApi(params, req, runtime), new PhoneNumberStatusForSmsResponse({}));
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
async phoneNumberStatusForSms(request: PhoneNumberStatusForSmsRequest): Promise<PhoneNumberStatusForSmsResponse> {
|
|
2380
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2381
|
+
return await this.phoneNumberStatusForSmsWithOptions(request, runtime);
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
async phoneNumberStatusForVirtualWithOptions(request: PhoneNumberStatusForVirtualRequest, runtime: $Util.RuntimeOptions): Promise<PhoneNumberStatusForVirtualResponse> {
|
|
2385
|
+
Util.validateModel(request);
|
|
2386
|
+
let query = { };
|
|
2387
|
+
if (!Util.isUnset(request.authCode)) {
|
|
2388
|
+
query["AuthCode"] = request.authCode;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
2392
|
+
query["InputNumber"] = request.inputNumber;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
if (!Util.isUnset(request.mask)) {
|
|
2396
|
+
query["Mask"] = request.mask;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
2400
|
+
query["OwnerId"] = request.ownerId;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
2404
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
2408
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2412
|
+
query: OpenApiUtil.query(query),
|
|
2413
|
+
});
|
|
2414
|
+
let params = new $OpenApi.Params({
|
|
2415
|
+
action: "PhoneNumberStatusForVirtual",
|
|
2416
|
+
version: "2020-02-17",
|
|
2417
|
+
protocol: "HTTPS",
|
|
2418
|
+
pathname: "/",
|
|
2419
|
+
method: "POST",
|
|
2420
|
+
authType: "AK",
|
|
2421
|
+
style: "RPC",
|
|
2422
|
+
reqBodyType: "formData",
|
|
2423
|
+
bodyType: "json",
|
|
2424
|
+
});
|
|
2425
|
+
return $tea.cast<PhoneNumberStatusForVirtualResponse>(await this.callApi(params, req, runtime), new PhoneNumberStatusForVirtualResponse({}));
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
async phoneNumberStatusForVirtual(request: PhoneNumberStatusForVirtualRequest): Promise<PhoneNumberStatusForVirtualResponse> {
|
|
2429
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2430
|
+
return await this.phoneNumberStatusForVirtualWithOptions(request, runtime);
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
async phoneNumberStatusForVoiceWithOptions(request: PhoneNumberStatusForVoiceRequest, runtime: $Util.RuntimeOptions): Promise<PhoneNumberStatusForVoiceResponse> {
|
|
2434
|
+
Util.validateModel(request);
|
|
2435
|
+
let query = { };
|
|
2436
|
+
if (!Util.isUnset(request.authCode)) {
|
|
2437
|
+
query["AuthCode"] = request.authCode;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
2441
|
+
query["InputNumber"] = request.inputNumber;
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
if (!Util.isUnset(request.mask)) {
|
|
2445
|
+
query["Mask"] = request.mask;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
2449
|
+
query["OwnerId"] = request.ownerId;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
2453
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
2457
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2461
|
+
query: OpenApiUtil.query(query),
|
|
2462
|
+
});
|
|
2463
|
+
let params = new $OpenApi.Params({
|
|
2464
|
+
action: "PhoneNumberStatusForVoice",
|
|
2465
|
+
version: "2020-02-17",
|
|
2466
|
+
protocol: "HTTPS",
|
|
2467
|
+
pathname: "/",
|
|
2468
|
+
method: "POST",
|
|
2469
|
+
authType: "AK",
|
|
2470
|
+
style: "RPC",
|
|
2471
|
+
reqBodyType: "formData",
|
|
2472
|
+
bodyType: "json",
|
|
2473
|
+
});
|
|
2474
|
+
return $tea.cast<PhoneNumberStatusForVoiceResponse>(await this.callApi(params, req, runtime), new PhoneNumberStatusForVoiceResponse({}));
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
async phoneNumberStatusForVoice(request: PhoneNumberStatusForVoiceRequest): Promise<PhoneNumberStatusForVoiceResponse> {
|
|
2478
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2479
|
+
return await this.phoneNumberStatusForVoiceWithOptions(request, runtime);
|
|
2480
|
+
}
|
|
2481
|
+
|
|
1695
2482
|
async threeElementsVerificationWithOptions(request: ThreeElementsVerificationRequest, runtime: $Util.RuntimeOptions): Promise<ThreeElementsVerificationResponse> {
|
|
1696
2483
|
Util.validateModel(request);
|
|
1697
2484
|
let query = { };
|