@alicloud/dytnsapi20200217 1.0.5 → 1.0.8
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 +251 -3
- package/dist/client.js +515 -9
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +648 -8
package/dist/client.js
CHANGED
|
@@ -72,12 +72,14 @@ class DescribeEmptyNumberDetectResponse extends $tea.Model {
|
|
|
72
72
|
static names() {
|
|
73
73
|
return {
|
|
74
74
|
headers: 'headers',
|
|
75
|
+
statusCode: 'statusCode',
|
|
75
76
|
body: 'body',
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
static types() {
|
|
79
80
|
return {
|
|
80
81
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
82
|
+
statusCode: 'number',
|
|
81
83
|
body: DescribeEmptyNumberDetectResponseBody,
|
|
82
84
|
};
|
|
83
85
|
}
|
|
@@ -142,12 +144,14 @@ class DescribePhoneNumberAnalysisResponse extends $tea.Model {
|
|
|
142
144
|
static names() {
|
|
143
145
|
return {
|
|
144
146
|
headers: 'headers',
|
|
147
|
+
statusCode: 'statusCode',
|
|
145
148
|
body: 'body',
|
|
146
149
|
};
|
|
147
150
|
}
|
|
148
151
|
static types() {
|
|
149
152
|
return {
|
|
150
153
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
154
|
+
statusCode: 'number',
|
|
151
155
|
body: DescribePhoneNumberAnalysisResponseBody,
|
|
152
156
|
};
|
|
153
157
|
}
|
|
@@ -204,12 +208,14 @@ class DescribePhoneNumberAttributeResponse extends $tea.Model {
|
|
|
204
208
|
static names() {
|
|
205
209
|
return {
|
|
206
210
|
headers: 'headers',
|
|
211
|
+
statusCode: 'statusCode',
|
|
207
212
|
body: 'body',
|
|
208
213
|
};
|
|
209
214
|
}
|
|
210
215
|
static types() {
|
|
211
216
|
return {
|
|
212
217
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
218
|
+
statusCode: 'number',
|
|
213
219
|
body: DescribePhoneNumberAttributeResponseBody,
|
|
214
220
|
};
|
|
215
221
|
}
|
|
@@ -272,12 +278,14 @@ class DescribePhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
|
272
278
|
static names() {
|
|
273
279
|
return {
|
|
274
280
|
headers: 'headers',
|
|
281
|
+
statusCode: 'statusCode',
|
|
275
282
|
body: 'body',
|
|
276
283
|
};
|
|
277
284
|
}
|
|
278
285
|
static types() {
|
|
279
286
|
return {
|
|
280
287
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
288
|
+
statusCode: 'number',
|
|
281
289
|
body: DescribePhoneNumberOnlineTimeResponseBody,
|
|
282
290
|
};
|
|
283
291
|
}
|
|
@@ -336,12 +344,14 @@ class DescribePhoneNumberResaleResponse extends $tea.Model {
|
|
|
336
344
|
static names() {
|
|
337
345
|
return {
|
|
338
346
|
headers: 'headers',
|
|
347
|
+
statusCode: 'statusCode',
|
|
339
348
|
body: 'body',
|
|
340
349
|
};
|
|
341
350
|
}
|
|
342
351
|
static types() {
|
|
343
352
|
return {
|
|
344
353
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
354
|
+
statusCode: 'number',
|
|
345
355
|
body: DescribePhoneNumberResaleResponseBody,
|
|
346
356
|
};
|
|
347
357
|
}
|
|
@@ -398,33 +408,297 @@ class DescribePhoneNumberStatusResponse extends $tea.Model {
|
|
|
398
408
|
static names() {
|
|
399
409
|
return {
|
|
400
410
|
headers: 'headers',
|
|
411
|
+
statusCode: 'statusCode',
|
|
401
412
|
body: 'body',
|
|
402
413
|
};
|
|
403
414
|
}
|
|
404
415
|
static types() {
|
|
405
416
|
return {
|
|
406
417
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
418
|
+
statusCode: 'number',
|
|
407
419
|
body: DescribePhoneNumberStatusResponseBody,
|
|
408
420
|
};
|
|
409
421
|
}
|
|
410
422
|
}
|
|
411
423
|
exports.DescribePhoneNumberStatusResponse = DescribePhoneNumberStatusResponse;
|
|
412
|
-
class
|
|
424
|
+
class InvalidPhoneNumberFilterRequest extends $tea.Model {
|
|
425
|
+
constructor(map) {
|
|
426
|
+
super(map);
|
|
427
|
+
}
|
|
428
|
+
static names() {
|
|
429
|
+
return {
|
|
430
|
+
authCode: 'AuthCode',
|
|
431
|
+
inputNumber: 'InputNumber',
|
|
432
|
+
mask: 'Mask',
|
|
433
|
+
ownerId: 'OwnerId',
|
|
434
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
435
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
static types() {
|
|
439
|
+
return {
|
|
440
|
+
authCode: 'string',
|
|
441
|
+
inputNumber: 'string',
|
|
442
|
+
mask: 'string',
|
|
443
|
+
ownerId: 'number',
|
|
444
|
+
resourceOwnerAccount: 'string',
|
|
445
|
+
resourceOwnerId: 'number',
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
exports.InvalidPhoneNumberFilterRequest = InvalidPhoneNumberFilterRequest;
|
|
450
|
+
class InvalidPhoneNumberFilterResponseBody extends $tea.Model {
|
|
451
|
+
constructor(map) {
|
|
452
|
+
super(map);
|
|
453
|
+
}
|
|
454
|
+
static names() {
|
|
455
|
+
return {
|
|
456
|
+
code: 'Code',
|
|
457
|
+
data: 'Data',
|
|
458
|
+
message: 'Message',
|
|
459
|
+
requestId: 'RequestId',
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
static types() {
|
|
463
|
+
return {
|
|
464
|
+
code: 'string',
|
|
465
|
+
data: { 'type': 'array', 'itemType': InvalidPhoneNumberFilterResponseBodyData },
|
|
466
|
+
message: 'string',
|
|
467
|
+
requestId: 'string',
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
exports.InvalidPhoneNumberFilterResponseBody = InvalidPhoneNumberFilterResponseBody;
|
|
472
|
+
class InvalidPhoneNumberFilterResponse extends $tea.Model {
|
|
473
|
+
constructor(map) {
|
|
474
|
+
super(map);
|
|
475
|
+
}
|
|
476
|
+
static names() {
|
|
477
|
+
return {
|
|
478
|
+
headers: 'headers',
|
|
479
|
+
statusCode: 'statusCode',
|
|
480
|
+
body: 'body',
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
static types() {
|
|
484
|
+
return {
|
|
485
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
486
|
+
statusCode: 'number',
|
|
487
|
+
body: InvalidPhoneNumberFilterResponseBody,
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
exports.InvalidPhoneNumberFilterResponse = InvalidPhoneNumberFilterResponse;
|
|
492
|
+
class PhoneNumberEncryptRequest extends $tea.Model {
|
|
493
|
+
constructor(map) {
|
|
494
|
+
super(map);
|
|
495
|
+
}
|
|
496
|
+
static names() {
|
|
497
|
+
return {
|
|
498
|
+
authCode: 'AuthCode',
|
|
499
|
+
inputNumber: 'InputNumber',
|
|
500
|
+
mask: 'Mask',
|
|
501
|
+
ownerId: 'OwnerId',
|
|
502
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
503
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
static types() {
|
|
507
|
+
return {
|
|
508
|
+
authCode: 'string',
|
|
509
|
+
inputNumber: 'string',
|
|
510
|
+
mask: 'string',
|
|
511
|
+
ownerId: 'number',
|
|
512
|
+
resourceOwnerAccount: 'string',
|
|
513
|
+
resourceOwnerId: 'number',
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
exports.PhoneNumberEncryptRequest = PhoneNumberEncryptRequest;
|
|
518
|
+
class PhoneNumberEncryptResponseBody extends $tea.Model {
|
|
519
|
+
constructor(map) {
|
|
520
|
+
super(map);
|
|
521
|
+
}
|
|
522
|
+
static names() {
|
|
523
|
+
return {
|
|
524
|
+
code: 'Code',
|
|
525
|
+
data: 'Data',
|
|
526
|
+
message: 'Message',
|
|
527
|
+
requestId: 'RequestId',
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
static types() {
|
|
531
|
+
return {
|
|
532
|
+
code: 'string',
|
|
533
|
+
data: { 'type': 'array', 'itemType': PhoneNumberEncryptResponseBodyData },
|
|
534
|
+
message: 'string',
|
|
535
|
+
requestId: 'string',
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
exports.PhoneNumberEncryptResponseBody = PhoneNumberEncryptResponseBody;
|
|
540
|
+
class PhoneNumberEncryptResponse extends $tea.Model {
|
|
541
|
+
constructor(map) {
|
|
542
|
+
super(map);
|
|
543
|
+
}
|
|
544
|
+
static names() {
|
|
545
|
+
return {
|
|
546
|
+
headers: 'headers',
|
|
547
|
+
statusCode: 'statusCode',
|
|
548
|
+
body: 'body',
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
static types() {
|
|
552
|
+
return {
|
|
553
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
554
|
+
statusCode: 'number',
|
|
555
|
+
body: PhoneNumberEncryptResponseBody,
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
exports.PhoneNumberEncryptResponse = PhoneNumberEncryptResponse;
|
|
560
|
+
class ThreeElementsVerificationRequest extends $tea.Model {
|
|
561
|
+
constructor(map) {
|
|
562
|
+
super(map);
|
|
563
|
+
}
|
|
564
|
+
static names() {
|
|
565
|
+
return {
|
|
566
|
+
authCode: 'AuthCode',
|
|
567
|
+
certCode: 'CertCode',
|
|
568
|
+
inputNumber: 'InputNumber',
|
|
569
|
+
mask: 'Mask',
|
|
570
|
+
name: 'Name',
|
|
571
|
+
ownerId: 'OwnerId',
|
|
572
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
573
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
static types() {
|
|
577
|
+
return {
|
|
578
|
+
authCode: 'string',
|
|
579
|
+
certCode: 'string',
|
|
580
|
+
inputNumber: 'string',
|
|
581
|
+
mask: 'string',
|
|
582
|
+
name: 'string',
|
|
583
|
+
ownerId: 'number',
|
|
584
|
+
resourceOwnerAccount: 'string',
|
|
585
|
+
resourceOwnerId: 'number',
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
exports.ThreeElementsVerificationRequest = ThreeElementsVerificationRequest;
|
|
590
|
+
class ThreeElementsVerificationResponseBody extends $tea.Model {
|
|
591
|
+
constructor(map) {
|
|
592
|
+
super(map);
|
|
593
|
+
}
|
|
594
|
+
static names() {
|
|
595
|
+
return {
|
|
596
|
+
code: 'Code',
|
|
597
|
+
data: 'Data',
|
|
598
|
+
message: 'Message',
|
|
599
|
+
requestId: 'RequestId',
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
static types() {
|
|
603
|
+
return {
|
|
604
|
+
code: 'string',
|
|
605
|
+
data: { 'type': 'array', 'itemType': ThreeElementsVerificationResponseBodyData },
|
|
606
|
+
message: 'string',
|
|
607
|
+
requestId: 'string',
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
exports.ThreeElementsVerificationResponseBody = ThreeElementsVerificationResponseBody;
|
|
612
|
+
class ThreeElementsVerificationResponse extends $tea.Model {
|
|
413
613
|
constructor(map) {
|
|
414
614
|
super(map);
|
|
415
615
|
}
|
|
416
616
|
static names() {
|
|
417
617
|
return {
|
|
418
618
|
headers: 'headers',
|
|
619
|
+
statusCode: 'statusCode',
|
|
620
|
+
body: 'body',
|
|
419
621
|
};
|
|
420
622
|
}
|
|
421
623
|
static types() {
|
|
422
624
|
return {
|
|
423
625
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
626
|
+
statusCode: 'number',
|
|
627
|
+
body: ThreeElementsVerificationResponseBody,
|
|
424
628
|
};
|
|
425
629
|
}
|
|
426
630
|
}
|
|
427
|
-
exports.
|
|
631
|
+
exports.ThreeElementsVerificationResponse = ThreeElementsVerificationResponse;
|
|
632
|
+
class TwoElementsVerificationRequest extends $tea.Model {
|
|
633
|
+
constructor(map) {
|
|
634
|
+
super(map);
|
|
635
|
+
}
|
|
636
|
+
static names() {
|
|
637
|
+
return {
|
|
638
|
+
authCode: 'AuthCode',
|
|
639
|
+
inputNumber: 'InputNumber',
|
|
640
|
+
mask: 'Mask',
|
|
641
|
+
name: 'Name',
|
|
642
|
+
ownerId: 'OwnerId',
|
|
643
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
644
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
static types() {
|
|
648
|
+
return {
|
|
649
|
+
authCode: 'string',
|
|
650
|
+
inputNumber: 'string',
|
|
651
|
+
mask: 'string',
|
|
652
|
+
name: 'string',
|
|
653
|
+
ownerId: 'number',
|
|
654
|
+
resourceOwnerAccount: 'string',
|
|
655
|
+
resourceOwnerId: 'number',
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
exports.TwoElementsVerificationRequest = TwoElementsVerificationRequest;
|
|
660
|
+
class TwoElementsVerificationResponseBody extends $tea.Model {
|
|
661
|
+
constructor(map) {
|
|
662
|
+
super(map);
|
|
663
|
+
}
|
|
664
|
+
static names() {
|
|
665
|
+
return {
|
|
666
|
+
code: 'Code',
|
|
667
|
+
data: 'Data',
|
|
668
|
+
message: 'Message',
|
|
669
|
+
requestId: 'RequestId',
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
static types() {
|
|
673
|
+
return {
|
|
674
|
+
code: 'string',
|
|
675
|
+
data: { 'type': 'array', 'itemType': TwoElementsVerificationResponseBodyData },
|
|
676
|
+
message: 'string',
|
|
677
|
+
requestId: 'string',
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
exports.TwoElementsVerificationResponseBody = TwoElementsVerificationResponseBody;
|
|
682
|
+
class TwoElementsVerificationResponse extends $tea.Model {
|
|
683
|
+
constructor(map) {
|
|
684
|
+
super(map);
|
|
685
|
+
}
|
|
686
|
+
static names() {
|
|
687
|
+
return {
|
|
688
|
+
headers: 'headers',
|
|
689
|
+
statusCode: 'statusCode',
|
|
690
|
+
body: 'body',
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
static types() {
|
|
694
|
+
return {
|
|
695
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
696
|
+
statusCode: 'number',
|
|
697
|
+
body: TwoElementsVerificationResponseBody,
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
exports.TwoElementsVerificationResponse = TwoElementsVerificationResponse;
|
|
428
702
|
class DescribeEmptyNumberDetectResponseBodyData extends $tea.Model {
|
|
429
703
|
constructor(map) {
|
|
430
704
|
super(map);
|
|
@@ -541,6 +815,84 @@ class DescribePhoneNumberStatusResponseBodyPhoneStatus extends $tea.Model {
|
|
|
541
815
|
}
|
|
542
816
|
}
|
|
543
817
|
exports.DescribePhoneNumberStatusResponseBodyPhoneStatus = DescribePhoneNumberStatusResponseBodyPhoneStatus;
|
|
818
|
+
class InvalidPhoneNumberFilterResponseBodyData extends $tea.Model {
|
|
819
|
+
constructor(map) {
|
|
820
|
+
super(map);
|
|
821
|
+
}
|
|
822
|
+
static names() {
|
|
823
|
+
return {
|
|
824
|
+
code: 'Code',
|
|
825
|
+
encryptedNumber: 'EncryptedNumber',
|
|
826
|
+
expireTime: 'ExpireTime',
|
|
827
|
+
originalNumber: 'OriginalNumber',
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
static types() {
|
|
831
|
+
return {
|
|
832
|
+
code: 'string',
|
|
833
|
+
encryptedNumber: 'string',
|
|
834
|
+
expireTime: 'string',
|
|
835
|
+
originalNumber: 'string',
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
exports.InvalidPhoneNumberFilterResponseBodyData = InvalidPhoneNumberFilterResponseBodyData;
|
|
840
|
+
class PhoneNumberEncryptResponseBodyData extends $tea.Model {
|
|
841
|
+
constructor(map) {
|
|
842
|
+
super(map);
|
|
843
|
+
}
|
|
844
|
+
static names() {
|
|
845
|
+
return {
|
|
846
|
+
encryptedNumber: 'EncryptedNumber',
|
|
847
|
+
expireTime: 'ExpireTime',
|
|
848
|
+
originalNumber: 'OriginalNumber',
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
static types() {
|
|
852
|
+
return {
|
|
853
|
+
encryptedNumber: 'string',
|
|
854
|
+
expireTime: 'string',
|
|
855
|
+
originalNumber: 'string',
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
exports.PhoneNumberEncryptResponseBodyData = PhoneNumberEncryptResponseBodyData;
|
|
860
|
+
class ThreeElementsVerificationResponseBodyData extends $tea.Model {
|
|
861
|
+
constructor(map) {
|
|
862
|
+
super(map);
|
|
863
|
+
}
|
|
864
|
+
static names() {
|
|
865
|
+
return {
|
|
866
|
+
basicCarrier: 'BasicCarrier',
|
|
867
|
+
isConsistent: 'IsConsistent',
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
static types() {
|
|
871
|
+
return {
|
|
872
|
+
basicCarrier: 'string',
|
|
873
|
+
isConsistent: 'number',
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
exports.ThreeElementsVerificationResponseBodyData = ThreeElementsVerificationResponseBodyData;
|
|
878
|
+
class TwoElementsVerificationResponseBodyData extends $tea.Model {
|
|
879
|
+
constructor(map) {
|
|
880
|
+
super(map);
|
|
881
|
+
}
|
|
882
|
+
static names() {
|
|
883
|
+
return {
|
|
884
|
+
basicCarrier: 'BasicCarrier',
|
|
885
|
+
isConsistent: 'IsConsistent',
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
static types() {
|
|
889
|
+
return {
|
|
890
|
+
basicCarrier: 'string',
|
|
891
|
+
isConsistent: 'number',
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
exports.TwoElementsVerificationResponseBodyData = TwoElementsVerificationResponseBodyData;
|
|
544
896
|
class Client extends openapi_client_1.default {
|
|
545
897
|
constructor(config) {
|
|
546
898
|
super(config);
|
|
@@ -794,10 +1146,32 @@ class Client extends openapi_client_1.default {
|
|
|
794
1146
|
let runtime = new $Util.RuntimeOptions({});
|
|
795
1147
|
return await this.describePhoneNumberStatusWithOptions(request, runtime);
|
|
796
1148
|
}
|
|
797
|
-
async
|
|
798
|
-
|
|
1149
|
+
async invalidPhoneNumberFilterWithOptions(request, runtime) {
|
|
1150
|
+
tea_util_1.default.validateModel(request);
|
|
1151
|
+
let query = {};
|
|
1152
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1153
|
+
query["AuthCode"] = request.authCode;
|
|
1154
|
+
}
|
|
1155
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1156
|
+
query["InputNumber"] = request.inputNumber;
|
|
1157
|
+
}
|
|
1158
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1159
|
+
query["Mask"] = request.mask;
|
|
1160
|
+
}
|
|
1161
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1162
|
+
query["OwnerId"] = request.ownerId;
|
|
1163
|
+
}
|
|
1164
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1165
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1166
|
+
}
|
|
1167
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1168
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1169
|
+
}
|
|
1170
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1171
|
+
query: openapi_util_1.default.query(query),
|
|
1172
|
+
});
|
|
799
1173
|
let params = new $OpenApi.Params({
|
|
800
|
-
action: "
|
|
1174
|
+
action: "InvalidPhoneNumberFilter",
|
|
801
1175
|
version: "2020-02-17",
|
|
802
1176
|
protocol: "HTTPS",
|
|
803
1177
|
pathname: "/",
|
|
@@ -805,13 +1179,145 @@ class Client extends openapi_client_1.default {
|
|
|
805
1179
|
authType: "AK",
|
|
806
1180
|
style: "RPC",
|
|
807
1181
|
reqBodyType: "formData",
|
|
808
|
-
bodyType: "
|
|
1182
|
+
bodyType: "json",
|
|
1183
|
+
});
|
|
1184
|
+
return $tea.cast(await this.callApi(params, req, runtime), new InvalidPhoneNumberFilterResponse({}));
|
|
1185
|
+
}
|
|
1186
|
+
async invalidPhoneNumberFilter(request) {
|
|
1187
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1188
|
+
return await this.invalidPhoneNumberFilterWithOptions(request, runtime);
|
|
1189
|
+
}
|
|
1190
|
+
async phoneNumberEncryptWithOptions(request, runtime) {
|
|
1191
|
+
tea_util_1.default.validateModel(request);
|
|
1192
|
+
let query = {};
|
|
1193
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1194
|
+
query["AuthCode"] = request.authCode;
|
|
1195
|
+
}
|
|
1196
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1197
|
+
query["InputNumber"] = request.inputNumber;
|
|
1198
|
+
}
|
|
1199
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1200
|
+
query["Mask"] = request.mask;
|
|
1201
|
+
}
|
|
1202
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1203
|
+
query["OwnerId"] = request.ownerId;
|
|
1204
|
+
}
|
|
1205
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1206
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1207
|
+
}
|
|
1208
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1209
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1210
|
+
}
|
|
1211
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1212
|
+
query: openapi_util_1.default.query(query),
|
|
1213
|
+
});
|
|
1214
|
+
let params = new $OpenApi.Params({
|
|
1215
|
+
action: "PhoneNumberEncrypt",
|
|
1216
|
+
version: "2020-02-17",
|
|
1217
|
+
protocol: "HTTPS",
|
|
1218
|
+
pathname: "/",
|
|
1219
|
+
method: "POST",
|
|
1220
|
+
authType: "AK",
|
|
1221
|
+
style: "RPC",
|
|
1222
|
+
reqBodyType: "formData",
|
|
1223
|
+
bodyType: "json",
|
|
1224
|
+
});
|
|
1225
|
+
return $tea.cast(await this.callApi(params, req, runtime), new PhoneNumberEncryptResponse({}));
|
|
1226
|
+
}
|
|
1227
|
+
async phoneNumberEncrypt(request) {
|
|
1228
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1229
|
+
return await this.phoneNumberEncryptWithOptions(request, runtime);
|
|
1230
|
+
}
|
|
1231
|
+
async threeElementsVerificationWithOptions(request, runtime) {
|
|
1232
|
+
tea_util_1.default.validateModel(request);
|
|
1233
|
+
let query = {};
|
|
1234
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1235
|
+
query["AuthCode"] = request.authCode;
|
|
1236
|
+
}
|
|
1237
|
+
if (!tea_util_1.default.isUnset(request.certCode)) {
|
|
1238
|
+
query["CertCode"] = request.certCode;
|
|
1239
|
+
}
|
|
1240
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1241
|
+
query["InputNumber"] = request.inputNumber;
|
|
1242
|
+
}
|
|
1243
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1244
|
+
query["Mask"] = request.mask;
|
|
1245
|
+
}
|
|
1246
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
1247
|
+
query["Name"] = request.name;
|
|
1248
|
+
}
|
|
1249
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1250
|
+
query["OwnerId"] = request.ownerId;
|
|
1251
|
+
}
|
|
1252
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1253
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1254
|
+
}
|
|
1255
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1256
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1257
|
+
}
|
|
1258
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1259
|
+
query: openapi_util_1.default.query(query),
|
|
1260
|
+
});
|
|
1261
|
+
let params = new $OpenApi.Params({
|
|
1262
|
+
action: "ThreeElementsVerification",
|
|
1263
|
+
version: "2020-02-17",
|
|
1264
|
+
protocol: "HTTPS",
|
|
1265
|
+
pathname: "/",
|
|
1266
|
+
method: "POST",
|
|
1267
|
+
authType: "AK",
|
|
1268
|
+
style: "RPC",
|
|
1269
|
+
reqBodyType: "formData",
|
|
1270
|
+
bodyType: "json",
|
|
1271
|
+
});
|
|
1272
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ThreeElementsVerificationResponse({}));
|
|
1273
|
+
}
|
|
1274
|
+
async threeElementsVerification(request) {
|
|
1275
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1276
|
+
return await this.threeElementsVerificationWithOptions(request, runtime);
|
|
1277
|
+
}
|
|
1278
|
+
async twoElementsVerificationWithOptions(request, runtime) {
|
|
1279
|
+
tea_util_1.default.validateModel(request);
|
|
1280
|
+
let query = {};
|
|
1281
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
1282
|
+
query["AuthCode"] = request.authCode;
|
|
1283
|
+
}
|
|
1284
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
1285
|
+
query["InputNumber"] = request.inputNumber;
|
|
1286
|
+
}
|
|
1287
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
1288
|
+
query["Mask"] = request.mask;
|
|
1289
|
+
}
|
|
1290
|
+
if (!tea_util_1.default.isUnset(request.name)) {
|
|
1291
|
+
query["Name"] = request.name;
|
|
1292
|
+
}
|
|
1293
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
1294
|
+
query["OwnerId"] = request.ownerId;
|
|
1295
|
+
}
|
|
1296
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
1297
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1298
|
+
}
|
|
1299
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
1300
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1301
|
+
}
|
|
1302
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1303
|
+
query: openapi_util_1.default.query(query),
|
|
1304
|
+
});
|
|
1305
|
+
let params = new $OpenApi.Params({
|
|
1306
|
+
action: "TwoElementsVerification",
|
|
1307
|
+
version: "2020-02-17",
|
|
1308
|
+
protocol: "HTTPS",
|
|
1309
|
+
pathname: "/",
|
|
1310
|
+
method: "POST",
|
|
1311
|
+
authType: "AK",
|
|
1312
|
+
style: "RPC",
|
|
1313
|
+
reqBodyType: "formData",
|
|
1314
|
+
bodyType: "json",
|
|
809
1315
|
});
|
|
810
|
-
return $tea.cast(await this.callApi(params, req, runtime), new
|
|
1316
|
+
return $tea.cast(await this.callApi(params, req, runtime), new TwoElementsVerificationResponse({}));
|
|
811
1317
|
}
|
|
812
|
-
async
|
|
1318
|
+
async twoElementsVerification(request) {
|
|
813
1319
|
let runtime = new $Util.RuntimeOptions({});
|
|
814
|
-
return await this.
|
|
1320
|
+
return await this.twoElementsVerificationWithOptions(request, runtime);
|
|
815
1321
|
}
|
|
816
1322
|
}
|
|
817
1323
|
exports.default = Client;
|