@alicloud/dytnsapi20200217 1.0.4 → 1.0.7
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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +189 -0
- package/dist/client.js +462 -26
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +582 -26
package/src/client.ts
CHANGED
|
@@ -257,6 +257,93 @@ export class DescribePhoneNumberAttributeResponse extends $tea.Model {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
export class DescribePhoneNumberOnlineTimeRequest extends $tea.Model {
|
|
261
|
+
authCode?: string;
|
|
262
|
+
carrier?: string;
|
|
263
|
+
inputNumber?: string;
|
|
264
|
+
mask?: string;
|
|
265
|
+
ownerId?: number;
|
|
266
|
+
resourceOwnerAccount?: string;
|
|
267
|
+
resourceOwnerId?: number;
|
|
268
|
+
static names(): { [key: string]: string } {
|
|
269
|
+
return {
|
|
270
|
+
authCode: 'AuthCode',
|
|
271
|
+
carrier: 'Carrier',
|
|
272
|
+
inputNumber: 'InputNumber',
|
|
273
|
+
mask: 'Mask',
|
|
274
|
+
ownerId: 'OwnerId',
|
|
275
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
276
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
static types(): { [key: string]: any } {
|
|
281
|
+
return {
|
|
282
|
+
authCode: 'string',
|
|
283
|
+
carrier: 'string',
|
|
284
|
+
inputNumber: 'string',
|
|
285
|
+
mask: 'string',
|
|
286
|
+
ownerId: 'number',
|
|
287
|
+
resourceOwnerAccount: 'string',
|
|
288
|
+
resourceOwnerId: 'number',
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
constructor(map?: { [key: string]: any }) {
|
|
293
|
+
super(map);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export class DescribePhoneNumberOnlineTimeResponseBody extends $tea.Model {
|
|
298
|
+
code?: string;
|
|
299
|
+
data?: DescribePhoneNumberOnlineTimeResponseBodyData;
|
|
300
|
+
message?: string;
|
|
301
|
+
requestId?: string;
|
|
302
|
+
static names(): { [key: string]: string } {
|
|
303
|
+
return {
|
|
304
|
+
code: 'Code',
|
|
305
|
+
data: 'Data',
|
|
306
|
+
message: 'Message',
|
|
307
|
+
requestId: 'RequestId',
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
static types(): { [key: string]: any } {
|
|
312
|
+
return {
|
|
313
|
+
code: 'string',
|
|
314
|
+
data: DescribePhoneNumberOnlineTimeResponseBodyData,
|
|
315
|
+
message: 'string',
|
|
316
|
+
requestId: 'string',
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
constructor(map?: { [key: string]: any }) {
|
|
321
|
+
super(map);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export class DescribePhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
326
|
+
headers: { [key: string]: string };
|
|
327
|
+
body: DescribePhoneNumberOnlineTimeResponseBody;
|
|
328
|
+
static names(): { [key: string]: string } {
|
|
329
|
+
return {
|
|
330
|
+
headers: 'headers',
|
|
331
|
+
body: 'body',
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
static types(): { [key: string]: any } {
|
|
336
|
+
return {
|
|
337
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
338
|
+
body: DescribePhoneNumberOnlineTimeResponseBody,
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
constructor(map?: { [key: string]: any }) {
|
|
343
|
+
super(map);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
260
347
|
export class DescribePhoneNumberResaleRequest extends $tea.Model {
|
|
261
348
|
ownerId?: number;
|
|
262
349
|
phoneNumber?: string;
|
|
@@ -416,6 +503,174 @@ export class DescribePhoneNumberStatusResponse extends $tea.Model {
|
|
|
416
503
|
}
|
|
417
504
|
}
|
|
418
505
|
|
|
506
|
+
export class InvalidPhoneNumberFilterRequest extends $tea.Model {
|
|
507
|
+
authCode?: string;
|
|
508
|
+
inputNumber?: string;
|
|
509
|
+
mask?: string;
|
|
510
|
+
ownerId?: number;
|
|
511
|
+
resourceOwnerAccount?: string;
|
|
512
|
+
resourceOwnerId?: number;
|
|
513
|
+
static names(): { [key: string]: string } {
|
|
514
|
+
return {
|
|
515
|
+
authCode: 'AuthCode',
|
|
516
|
+
inputNumber: 'InputNumber',
|
|
517
|
+
mask: 'Mask',
|
|
518
|
+
ownerId: 'OwnerId',
|
|
519
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
520
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
static types(): { [key: string]: any } {
|
|
525
|
+
return {
|
|
526
|
+
authCode: 'string',
|
|
527
|
+
inputNumber: 'string',
|
|
528
|
+
mask: 'string',
|
|
529
|
+
ownerId: 'number',
|
|
530
|
+
resourceOwnerAccount: 'string',
|
|
531
|
+
resourceOwnerId: 'number',
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
constructor(map?: { [key: string]: any }) {
|
|
536
|
+
super(map);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export class InvalidPhoneNumberFilterResponseBody extends $tea.Model {
|
|
541
|
+
code?: string;
|
|
542
|
+
data?: InvalidPhoneNumberFilterResponseBodyData[];
|
|
543
|
+
message?: string;
|
|
544
|
+
requestId?: string;
|
|
545
|
+
static names(): { [key: string]: string } {
|
|
546
|
+
return {
|
|
547
|
+
code: 'Code',
|
|
548
|
+
data: 'Data',
|
|
549
|
+
message: 'Message',
|
|
550
|
+
requestId: 'RequestId',
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
static types(): { [key: string]: any } {
|
|
555
|
+
return {
|
|
556
|
+
code: 'string',
|
|
557
|
+
data: { 'type': 'array', 'itemType': InvalidPhoneNumberFilterResponseBodyData },
|
|
558
|
+
message: 'string',
|
|
559
|
+
requestId: 'string',
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
constructor(map?: { [key: string]: any }) {
|
|
564
|
+
super(map);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export class InvalidPhoneNumberFilterResponse extends $tea.Model {
|
|
569
|
+
headers: { [key: string]: string };
|
|
570
|
+
body: InvalidPhoneNumberFilterResponseBody;
|
|
571
|
+
static names(): { [key: string]: string } {
|
|
572
|
+
return {
|
|
573
|
+
headers: 'headers',
|
|
574
|
+
body: 'body',
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
static types(): { [key: string]: any } {
|
|
579
|
+
return {
|
|
580
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
581
|
+
body: InvalidPhoneNumberFilterResponseBody,
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
constructor(map?: { [key: string]: any }) {
|
|
586
|
+
super(map);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export class PhoneNumberEncryptRequest extends $tea.Model {
|
|
591
|
+
authCode?: string;
|
|
592
|
+
inputNumber?: string;
|
|
593
|
+
mask?: string;
|
|
594
|
+
ownerId?: number;
|
|
595
|
+
resourceOwnerAccount?: string;
|
|
596
|
+
resourceOwnerId?: number;
|
|
597
|
+
static names(): { [key: string]: string } {
|
|
598
|
+
return {
|
|
599
|
+
authCode: 'AuthCode',
|
|
600
|
+
inputNumber: 'InputNumber',
|
|
601
|
+
mask: 'Mask',
|
|
602
|
+
ownerId: 'OwnerId',
|
|
603
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
604
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
static types(): { [key: string]: any } {
|
|
609
|
+
return {
|
|
610
|
+
authCode: 'string',
|
|
611
|
+
inputNumber: 'string',
|
|
612
|
+
mask: 'string',
|
|
613
|
+
ownerId: 'number',
|
|
614
|
+
resourceOwnerAccount: 'string',
|
|
615
|
+
resourceOwnerId: 'number',
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
constructor(map?: { [key: string]: any }) {
|
|
620
|
+
super(map);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export class PhoneNumberEncryptResponseBody extends $tea.Model {
|
|
625
|
+
code?: string;
|
|
626
|
+
data?: PhoneNumberEncryptResponseBodyData[];
|
|
627
|
+
message?: string;
|
|
628
|
+
requestId?: string;
|
|
629
|
+
static names(): { [key: string]: string } {
|
|
630
|
+
return {
|
|
631
|
+
code: 'Code',
|
|
632
|
+
data: 'Data',
|
|
633
|
+
message: 'Message',
|
|
634
|
+
requestId: 'RequestId',
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
static types(): { [key: string]: any } {
|
|
639
|
+
return {
|
|
640
|
+
code: 'string',
|
|
641
|
+
data: { 'type': 'array', 'itemType': PhoneNumberEncryptResponseBodyData },
|
|
642
|
+
message: 'string',
|
|
643
|
+
requestId: 'string',
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
constructor(map?: { [key: string]: any }) {
|
|
648
|
+
super(map);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export class PhoneNumberEncryptResponse extends $tea.Model {
|
|
653
|
+
headers: { [key: string]: string };
|
|
654
|
+
body: PhoneNumberEncryptResponseBody;
|
|
655
|
+
static names(): { [key: string]: string } {
|
|
656
|
+
return {
|
|
657
|
+
headers: 'headers',
|
|
658
|
+
body: 'body',
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
static types(): { [key: string]: any } {
|
|
663
|
+
return {
|
|
664
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
665
|
+
body: PhoneNumberEncryptResponseBody,
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
constructor(map?: { [key: string]: any }) {
|
|
670
|
+
super(map);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
419
674
|
export class PvrCallbackFCUResponse extends $tea.Model {
|
|
420
675
|
headers: { [key: string]: string };
|
|
421
676
|
static names(): { [key: string]: string } {
|
|
@@ -513,6 +768,25 @@ export class DescribePhoneNumberAttributeResponseBodyPhoneNumberAttribute extend
|
|
|
513
768
|
}
|
|
514
769
|
}
|
|
515
770
|
|
|
771
|
+
export class DescribePhoneNumberOnlineTimeResponseBodyData extends $tea.Model {
|
|
772
|
+
verifyResult?: string;
|
|
773
|
+
static names(): { [key: string]: string } {
|
|
774
|
+
return {
|
|
775
|
+
verifyResult: 'VerifyResult',
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
static types(): { [key: string]: any } {
|
|
780
|
+
return {
|
|
781
|
+
verifyResult: 'string',
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
constructor(map?: { [key: string]: any }) {
|
|
786
|
+
super(map);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
516
790
|
export class DescribePhoneNumberResaleResponseBodyTwiceTelVerify extends $tea.Model {
|
|
517
791
|
carrier?: string;
|
|
518
792
|
verifyResult?: number;
|
|
@@ -560,6 +834,59 @@ export class DescribePhoneNumberStatusResponseBodyPhoneStatus extends $tea.Model
|
|
|
560
834
|
}
|
|
561
835
|
}
|
|
562
836
|
|
|
837
|
+
export class InvalidPhoneNumberFilterResponseBodyData extends $tea.Model {
|
|
838
|
+
code?: string;
|
|
839
|
+
encryptedNumber?: string;
|
|
840
|
+
expireTime?: string;
|
|
841
|
+
originalNumber?: string;
|
|
842
|
+
static names(): { [key: string]: string } {
|
|
843
|
+
return {
|
|
844
|
+
code: 'Code',
|
|
845
|
+
encryptedNumber: 'EncryptedNumber',
|
|
846
|
+
expireTime: 'ExpireTime',
|
|
847
|
+
originalNumber: 'OriginalNumber',
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
static types(): { [key: string]: any } {
|
|
852
|
+
return {
|
|
853
|
+
code: 'string',
|
|
854
|
+
encryptedNumber: 'string',
|
|
855
|
+
expireTime: 'string',
|
|
856
|
+
originalNumber: 'string',
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
constructor(map?: { [key: string]: any }) {
|
|
861
|
+
super(map);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export class PhoneNumberEncryptResponseBodyData extends $tea.Model {
|
|
866
|
+
encryptedNumber?: string;
|
|
867
|
+
expireTime?: string;
|
|
868
|
+
originalNumber?: string;
|
|
869
|
+
static names(): { [key: string]: string } {
|
|
870
|
+
return {
|
|
871
|
+
encryptedNumber: 'EncryptedNumber',
|
|
872
|
+
expireTime: 'ExpireTime',
|
|
873
|
+
originalNumber: 'OriginalNumber',
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
static types(): { [key: string]: any } {
|
|
878
|
+
return {
|
|
879
|
+
encryptedNumber: 'string',
|
|
880
|
+
expireTime: 'string',
|
|
881
|
+
originalNumber: 'string',
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
constructor(map?: { [key: string]: any }) {
|
|
886
|
+
super(map);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
|
|
563
890
|
|
|
564
891
|
export default class Client extends OpenApi {
|
|
565
892
|
|
|
@@ -586,11 +913,26 @@ export default class Client extends OpenApi {
|
|
|
586
913
|
async describeEmptyNumberDetectWithOptions(request: DescribeEmptyNumberDetectRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEmptyNumberDetectResponse> {
|
|
587
914
|
Util.validateModel(request);
|
|
588
915
|
let query = { };
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
916
|
+
if (!Util.isUnset(request.encryptType)) {
|
|
917
|
+
query["EncryptType"] = request.encryptType;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
921
|
+
query["OwnerId"] = request.ownerId;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
if (!Util.isUnset(request.phone)) {
|
|
925
|
+
query["Phone"] = request.phone;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
929
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
933
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
934
|
+
}
|
|
935
|
+
|
|
594
936
|
let req = new $OpenApi.OpenApiRequest({
|
|
595
937
|
query: OpenApiUtil.query(query),
|
|
596
938
|
});
|
|
@@ -616,14 +958,38 @@ export default class Client extends OpenApi {
|
|
|
616
958
|
async describePhoneNumberAnalysisWithOptions(request: DescribePhoneNumberAnalysisRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberAnalysisResponse> {
|
|
617
959
|
Util.validateModel(request);
|
|
618
960
|
let query = { };
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
961
|
+
if (!Util.isUnset(request.authCode)) {
|
|
962
|
+
query["AuthCode"] = request.authCode;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
966
|
+
query["InputNumber"] = request.inputNumber;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
if (!Util.isUnset(request.mask)) {
|
|
970
|
+
query["Mask"] = request.mask;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
if (!Util.isUnset(request.numberType)) {
|
|
974
|
+
query["NumberType"] = request.numberType;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
978
|
+
query["OwnerId"] = request.ownerId;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
if (!Util.isUnset(request.rate)) {
|
|
982
|
+
query["Rate"] = request.rate;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
986
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
990
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
991
|
+
}
|
|
992
|
+
|
|
627
993
|
let req = new $OpenApi.OpenApiRequest({
|
|
628
994
|
query: OpenApiUtil.query(query),
|
|
629
995
|
});
|
|
@@ -649,10 +1015,22 @@ export default class Client extends OpenApi {
|
|
|
649
1015
|
async describePhoneNumberAttributeWithOptions(request: DescribePhoneNumberAttributeRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberAttributeResponse> {
|
|
650
1016
|
Util.validateModel(request);
|
|
651
1017
|
let query = { };
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
1018
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1019
|
+
query["OwnerId"] = request.ownerId;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
if (!Util.isUnset(request.phoneNumber)) {
|
|
1023
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1027
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1031
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
656
1034
|
let req = new $OpenApi.OpenApiRequest({
|
|
657
1035
|
query: OpenApiUtil.query(query),
|
|
658
1036
|
});
|
|
@@ -675,14 +1053,82 @@ export default class Client extends OpenApi {
|
|
|
675
1053
|
return await this.describePhoneNumberAttributeWithOptions(request, runtime);
|
|
676
1054
|
}
|
|
677
1055
|
|
|
1056
|
+
async describePhoneNumberOnlineTimeWithOptions(request: DescribePhoneNumberOnlineTimeRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberOnlineTimeResponse> {
|
|
1057
|
+
Util.validateModel(request);
|
|
1058
|
+
let query = { };
|
|
1059
|
+
if (!Util.isUnset(request.authCode)) {
|
|
1060
|
+
query["AuthCode"] = request.authCode;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
if (!Util.isUnset(request.carrier)) {
|
|
1064
|
+
query["Carrier"] = request.carrier;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
1068
|
+
query["InputNumber"] = request.inputNumber;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
if (!Util.isUnset(request.mask)) {
|
|
1072
|
+
query["Mask"] = request.mask;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1076
|
+
query["OwnerId"] = request.ownerId;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1080
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1084
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1088
|
+
query: OpenApiUtil.query(query),
|
|
1089
|
+
});
|
|
1090
|
+
let params = new $OpenApi.Params({
|
|
1091
|
+
action: "DescribePhoneNumberOnlineTime",
|
|
1092
|
+
version: "2020-02-17",
|
|
1093
|
+
protocol: "HTTPS",
|
|
1094
|
+
pathname: "/",
|
|
1095
|
+
method: "POST",
|
|
1096
|
+
authType: "AK",
|
|
1097
|
+
style: "RPC",
|
|
1098
|
+
reqBodyType: "formData",
|
|
1099
|
+
bodyType: "json",
|
|
1100
|
+
});
|
|
1101
|
+
return $tea.cast<DescribePhoneNumberOnlineTimeResponse>(await this.callApi(params, req, runtime), new DescribePhoneNumberOnlineTimeResponse({}));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
async describePhoneNumberOnlineTime(request: DescribePhoneNumberOnlineTimeRequest): Promise<DescribePhoneNumberOnlineTimeResponse> {
|
|
1105
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1106
|
+
return await this.describePhoneNumberOnlineTimeWithOptions(request, runtime);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
678
1109
|
async describePhoneNumberResaleWithOptions(request: DescribePhoneNumberResaleRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberResaleResponse> {
|
|
679
1110
|
Util.validateModel(request);
|
|
680
1111
|
let query = { };
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
1112
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1113
|
+
query["OwnerId"] = request.ownerId;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (!Util.isUnset(request.phoneNumber)) {
|
|
1117
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1121
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1125
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (!Util.isUnset(request.since)) {
|
|
1129
|
+
query["Since"] = request.since;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
686
1132
|
let req = new $OpenApi.OpenApiRequest({
|
|
687
1133
|
query: OpenApiUtil.query(query),
|
|
688
1134
|
});
|
|
@@ -708,10 +1154,22 @@ export default class Client extends OpenApi {
|
|
|
708
1154
|
async describePhoneNumberStatusWithOptions(request: DescribePhoneNumberStatusRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberStatusResponse> {
|
|
709
1155
|
Util.validateModel(request);
|
|
710
1156
|
let query = { };
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
1157
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1158
|
+
query["OwnerId"] = request.ownerId;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
if (!Util.isUnset(request.phoneNumber)) {
|
|
1162
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1166
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1170
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
715
1173
|
let req = new $OpenApi.OpenApiRequest({
|
|
716
1174
|
query: OpenApiUtil.query(query),
|
|
717
1175
|
});
|
|
@@ -734,6 +1192,104 @@ export default class Client extends OpenApi {
|
|
|
734
1192
|
return await this.describePhoneNumberStatusWithOptions(request, runtime);
|
|
735
1193
|
}
|
|
736
1194
|
|
|
1195
|
+
async invalidPhoneNumberFilterWithOptions(request: InvalidPhoneNumberFilterRequest, runtime: $Util.RuntimeOptions): Promise<InvalidPhoneNumberFilterResponse> {
|
|
1196
|
+
Util.validateModel(request);
|
|
1197
|
+
let query = { };
|
|
1198
|
+
if (!Util.isUnset(request.authCode)) {
|
|
1199
|
+
query["AuthCode"] = request.authCode;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
1203
|
+
query["InputNumber"] = request.inputNumber;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
if (!Util.isUnset(request.mask)) {
|
|
1207
|
+
query["Mask"] = request.mask;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1211
|
+
query["OwnerId"] = request.ownerId;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1215
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1219
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1223
|
+
query: OpenApiUtil.query(query),
|
|
1224
|
+
});
|
|
1225
|
+
let params = new $OpenApi.Params({
|
|
1226
|
+
action: "InvalidPhoneNumberFilter",
|
|
1227
|
+
version: "2020-02-17",
|
|
1228
|
+
protocol: "HTTPS",
|
|
1229
|
+
pathname: "/",
|
|
1230
|
+
method: "POST",
|
|
1231
|
+
authType: "AK",
|
|
1232
|
+
style: "RPC",
|
|
1233
|
+
reqBodyType: "formData",
|
|
1234
|
+
bodyType: "json",
|
|
1235
|
+
});
|
|
1236
|
+
return $tea.cast<InvalidPhoneNumberFilterResponse>(await this.callApi(params, req, runtime), new InvalidPhoneNumberFilterResponse({}));
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
async invalidPhoneNumberFilter(request: InvalidPhoneNumberFilterRequest): Promise<InvalidPhoneNumberFilterResponse> {
|
|
1240
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1241
|
+
return await this.invalidPhoneNumberFilterWithOptions(request, runtime);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
async phoneNumberEncryptWithOptions(request: PhoneNumberEncryptRequest, runtime: $Util.RuntimeOptions): Promise<PhoneNumberEncryptResponse> {
|
|
1245
|
+
Util.validateModel(request);
|
|
1246
|
+
let query = { };
|
|
1247
|
+
if (!Util.isUnset(request.authCode)) {
|
|
1248
|
+
query["AuthCode"] = request.authCode;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
1252
|
+
query["InputNumber"] = request.inputNumber;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
if (!Util.isUnset(request.mask)) {
|
|
1256
|
+
query["Mask"] = request.mask;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1260
|
+
query["OwnerId"] = request.ownerId;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1264
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1268
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1272
|
+
query: OpenApiUtil.query(query),
|
|
1273
|
+
});
|
|
1274
|
+
let params = new $OpenApi.Params({
|
|
1275
|
+
action: "PhoneNumberEncrypt",
|
|
1276
|
+
version: "2020-02-17",
|
|
1277
|
+
protocol: "HTTPS",
|
|
1278
|
+
pathname: "/",
|
|
1279
|
+
method: "POST",
|
|
1280
|
+
authType: "AK",
|
|
1281
|
+
style: "RPC",
|
|
1282
|
+
reqBodyType: "formData",
|
|
1283
|
+
bodyType: "json",
|
|
1284
|
+
});
|
|
1285
|
+
return $tea.cast<PhoneNumberEncryptResponse>(await this.callApi(params, req, runtime), new PhoneNumberEncryptResponse({}));
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
async phoneNumberEncrypt(request: PhoneNumberEncryptRequest): Promise<PhoneNumberEncryptResponse> {
|
|
1289
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1290
|
+
return await this.phoneNumberEncryptWithOptions(request, runtime);
|
|
1291
|
+
}
|
|
1292
|
+
|
|
737
1293
|
async pvrCallbackFCUWithOptions(runtime: $Util.RuntimeOptions): Promise<PvrCallbackFCUResponse> {
|
|
738
1294
|
let req = new $OpenApi.OpenApiRequest({ });
|
|
739
1295
|
let params = new $OpenApi.Params({
|