@alicloud/dytnsapi20200217 1.0.7 → 1.0.10
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 +191 -3
- package/dist/client.js +394 -9
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +499 -8
package/src/client.ts
CHANGED
|
@@ -69,10 +69,12 @@ export class DescribeEmptyNumberDetectResponseBody extends $tea.Model {
|
|
|
69
69
|
|
|
70
70
|
export class DescribeEmptyNumberDetectResponse extends $tea.Model {
|
|
71
71
|
headers: { [key: string]: string };
|
|
72
|
+
statusCode: number;
|
|
72
73
|
body: DescribeEmptyNumberDetectResponseBody;
|
|
73
74
|
static names(): { [key: string]: string } {
|
|
74
75
|
return {
|
|
75
76
|
headers: 'headers',
|
|
77
|
+
statusCode: 'statusCode',
|
|
76
78
|
body: 'body',
|
|
77
79
|
};
|
|
78
80
|
}
|
|
@@ -80,6 +82,7 @@ export class DescribeEmptyNumberDetectResponse extends $tea.Model {
|
|
|
80
82
|
static types(): { [key: string]: any } {
|
|
81
83
|
return {
|
|
82
84
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
85
|
+
statusCode: 'number',
|
|
83
86
|
body: DescribeEmptyNumberDetectResponseBody,
|
|
84
87
|
};
|
|
85
88
|
}
|
|
@@ -159,10 +162,12 @@ export class DescribePhoneNumberAnalysisResponseBody extends $tea.Model {
|
|
|
159
162
|
|
|
160
163
|
export class DescribePhoneNumberAnalysisResponse extends $tea.Model {
|
|
161
164
|
headers: { [key: string]: string };
|
|
165
|
+
statusCode: number;
|
|
162
166
|
body: DescribePhoneNumberAnalysisResponseBody;
|
|
163
167
|
static names(): { [key: string]: string } {
|
|
164
168
|
return {
|
|
165
169
|
headers: 'headers',
|
|
170
|
+
statusCode: 'statusCode',
|
|
166
171
|
body: 'body',
|
|
167
172
|
};
|
|
168
173
|
}
|
|
@@ -170,6 +175,7 @@ export class DescribePhoneNumberAnalysisResponse extends $tea.Model {
|
|
|
170
175
|
static types(): { [key: string]: any } {
|
|
171
176
|
return {
|
|
172
177
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
178
|
+
statusCode: 'number',
|
|
173
179
|
body: DescribePhoneNumberAnalysisResponseBody,
|
|
174
180
|
};
|
|
175
181
|
}
|
|
@@ -237,10 +243,12 @@ export class DescribePhoneNumberAttributeResponseBody extends $tea.Model {
|
|
|
237
243
|
|
|
238
244
|
export class DescribePhoneNumberAttributeResponse extends $tea.Model {
|
|
239
245
|
headers: { [key: string]: string };
|
|
246
|
+
statusCode: number;
|
|
240
247
|
body: DescribePhoneNumberAttributeResponseBody;
|
|
241
248
|
static names(): { [key: string]: string } {
|
|
242
249
|
return {
|
|
243
250
|
headers: 'headers',
|
|
251
|
+
statusCode: 'statusCode',
|
|
244
252
|
body: 'body',
|
|
245
253
|
};
|
|
246
254
|
}
|
|
@@ -248,6 +256,7 @@ export class DescribePhoneNumberAttributeResponse extends $tea.Model {
|
|
|
248
256
|
static types(): { [key: string]: any } {
|
|
249
257
|
return {
|
|
250
258
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
259
|
+
statusCode: 'number',
|
|
251
260
|
body: DescribePhoneNumberAttributeResponseBody,
|
|
252
261
|
};
|
|
253
262
|
}
|
|
@@ -324,10 +333,12 @@ export class DescribePhoneNumberOnlineTimeResponseBody extends $tea.Model {
|
|
|
324
333
|
|
|
325
334
|
export class DescribePhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
326
335
|
headers: { [key: string]: string };
|
|
336
|
+
statusCode: number;
|
|
327
337
|
body: DescribePhoneNumberOnlineTimeResponseBody;
|
|
328
338
|
static names(): { [key: string]: string } {
|
|
329
339
|
return {
|
|
330
340
|
headers: 'headers',
|
|
341
|
+
statusCode: 'statusCode',
|
|
331
342
|
body: 'body',
|
|
332
343
|
};
|
|
333
344
|
}
|
|
@@ -335,6 +346,7 @@ export class DescribePhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
|
335
346
|
static types(): { [key: string]: any } {
|
|
336
347
|
return {
|
|
337
348
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
349
|
+
statusCode: 'number',
|
|
338
350
|
body: DescribePhoneNumberOnlineTimeResponseBody,
|
|
339
351
|
};
|
|
340
352
|
}
|
|
@@ -344,6 +356,93 @@ export class DescribePhoneNumberOnlineTimeResponse extends $tea.Model {
|
|
|
344
356
|
}
|
|
345
357
|
}
|
|
346
358
|
|
|
359
|
+
export class DescribePhoneNumberOperatorAttributeRequest extends $tea.Model {
|
|
360
|
+
authCode?: string;
|
|
361
|
+
inputNumber?: string;
|
|
362
|
+
mask?: string;
|
|
363
|
+
ownerId?: number;
|
|
364
|
+
resourceOwnerAccount?: string;
|
|
365
|
+
resourceOwnerId?: number;
|
|
366
|
+
static names(): { [key: string]: string } {
|
|
367
|
+
return {
|
|
368
|
+
authCode: 'AuthCode',
|
|
369
|
+
inputNumber: 'InputNumber',
|
|
370
|
+
mask: 'Mask',
|
|
371
|
+
ownerId: 'OwnerId',
|
|
372
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
373
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
static types(): { [key: string]: any } {
|
|
378
|
+
return {
|
|
379
|
+
authCode: 'string',
|
|
380
|
+
inputNumber: 'string',
|
|
381
|
+
mask: 'string',
|
|
382
|
+
ownerId: 'number',
|
|
383
|
+
resourceOwnerAccount: 'string',
|
|
384
|
+
resourceOwnerId: 'number',
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
constructor(map?: { [key: string]: any }) {
|
|
389
|
+
super(map);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export class DescribePhoneNumberOperatorAttributeResponseBody extends $tea.Model {
|
|
394
|
+
code?: string;
|
|
395
|
+
data?: DescribePhoneNumberOperatorAttributeResponseBodyData;
|
|
396
|
+
message?: string;
|
|
397
|
+
requestId?: string;
|
|
398
|
+
static names(): { [key: string]: string } {
|
|
399
|
+
return {
|
|
400
|
+
code: 'Code',
|
|
401
|
+
data: 'Data',
|
|
402
|
+
message: 'Message',
|
|
403
|
+
requestId: 'RequestId',
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
static types(): { [key: string]: any } {
|
|
408
|
+
return {
|
|
409
|
+
code: 'string',
|
|
410
|
+
data: DescribePhoneNumberOperatorAttributeResponseBodyData,
|
|
411
|
+
message: 'string',
|
|
412
|
+
requestId: 'string',
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
constructor(map?: { [key: string]: any }) {
|
|
417
|
+
super(map);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export class DescribePhoneNumberOperatorAttributeResponse extends $tea.Model {
|
|
422
|
+
headers: { [key: string]: string };
|
|
423
|
+
statusCode: number;
|
|
424
|
+
body: DescribePhoneNumberOperatorAttributeResponseBody;
|
|
425
|
+
static names(): { [key: string]: string } {
|
|
426
|
+
return {
|
|
427
|
+
headers: 'headers',
|
|
428
|
+
statusCode: 'statusCode',
|
|
429
|
+
body: 'body',
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
static types(): { [key: string]: any } {
|
|
434
|
+
return {
|
|
435
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
436
|
+
statusCode: 'number',
|
|
437
|
+
body: DescribePhoneNumberOperatorAttributeResponseBody,
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
constructor(map?: { [key: string]: any }) {
|
|
442
|
+
super(map);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
347
446
|
export class DescribePhoneNumberResaleRequest extends $tea.Model {
|
|
348
447
|
ownerId?: number;
|
|
349
448
|
phoneNumber?: string;
|
|
@@ -405,10 +504,12 @@ export class DescribePhoneNumberResaleResponseBody extends $tea.Model {
|
|
|
405
504
|
|
|
406
505
|
export class DescribePhoneNumberResaleResponse extends $tea.Model {
|
|
407
506
|
headers: { [key: string]: string };
|
|
507
|
+
statusCode: number;
|
|
408
508
|
body: DescribePhoneNumberResaleResponseBody;
|
|
409
509
|
static names(): { [key: string]: string } {
|
|
410
510
|
return {
|
|
411
511
|
headers: 'headers',
|
|
512
|
+
statusCode: 'statusCode',
|
|
412
513
|
body: 'body',
|
|
413
514
|
};
|
|
414
515
|
}
|
|
@@ -416,6 +517,7 @@ export class DescribePhoneNumberResaleResponse extends $tea.Model {
|
|
|
416
517
|
static types(): { [key: string]: any } {
|
|
417
518
|
return {
|
|
418
519
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
520
|
+
statusCode: 'number',
|
|
419
521
|
body: DescribePhoneNumberResaleResponseBody,
|
|
420
522
|
};
|
|
421
523
|
}
|
|
@@ -483,10 +585,12 @@ export class DescribePhoneNumberStatusResponseBody extends $tea.Model {
|
|
|
483
585
|
|
|
484
586
|
export class DescribePhoneNumberStatusResponse extends $tea.Model {
|
|
485
587
|
headers: { [key: string]: string };
|
|
588
|
+
statusCode: number;
|
|
486
589
|
body: DescribePhoneNumberStatusResponseBody;
|
|
487
590
|
static names(): { [key: string]: string } {
|
|
488
591
|
return {
|
|
489
592
|
headers: 'headers',
|
|
593
|
+
statusCode: 'statusCode',
|
|
490
594
|
body: 'body',
|
|
491
595
|
};
|
|
492
596
|
}
|
|
@@ -494,6 +598,7 @@ export class DescribePhoneNumberStatusResponse extends $tea.Model {
|
|
|
494
598
|
static types(): { [key: string]: any } {
|
|
495
599
|
return {
|
|
496
600
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
601
|
+
statusCode: 'number',
|
|
497
602
|
body: DescribePhoneNumberStatusResponseBody,
|
|
498
603
|
};
|
|
499
604
|
}
|
|
@@ -567,10 +672,12 @@ export class InvalidPhoneNumberFilterResponseBody extends $tea.Model {
|
|
|
567
672
|
|
|
568
673
|
export class InvalidPhoneNumberFilterResponse extends $tea.Model {
|
|
569
674
|
headers: { [key: string]: string };
|
|
675
|
+
statusCode: number;
|
|
570
676
|
body: InvalidPhoneNumberFilterResponseBody;
|
|
571
677
|
static names(): { [key: string]: string } {
|
|
572
678
|
return {
|
|
573
679
|
headers: 'headers',
|
|
680
|
+
statusCode: 'statusCode',
|
|
574
681
|
body: 'body',
|
|
575
682
|
};
|
|
576
683
|
}
|
|
@@ -578,6 +685,7 @@ export class InvalidPhoneNumberFilterResponse extends $tea.Model {
|
|
|
578
685
|
static types(): { [key: string]: any } {
|
|
579
686
|
return {
|
|
580
687
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
688
|
+
statusCode: 'number',
|
|
581
689
|
body: InvalidPhoneNumberFilterResponseBody,
|
|
582
690
|
};
|
|
583
691
|
}
|
|
@@ -651,10 +759,12 @@ export class PhoneNumberEncryptResponseBody extends $tea.Model {
|
|
|
651
759
|
|
|
652
760
|
export class PhoneNumberEncryptResponse extends $tea.Model {
|
|
653
761
|
headers: { [key: string]: string };
|
|
762
|
+
statusCode: number;
|
|
654
763
|
body: PhoneNumberEncryptResponseBody;
|
|
655
764
|
static names(): { [key: string]: string } {
|
|
656
765
|
return {
|
|
657
766
|
headers: 'headers',
|
|
767
|
+
statusCode: 'statusCode',
|
|
658
768
|
body: 'body',
|
|
659
769
|
};
|
|
660
770
|
}
|
|
@@ -662,6 +772,7 @@ export class PhoneNumberEncryptResponse extends $tea.Model {
|
|
|
662
772
|
static types(): { [key: string]: any } {
|
|
663
773
|
return {
|
|
664
774
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
775
|
+
statusCode: 'number',
|
|
665
776
|
body: PhoneNumberEncryptResponseBody,
|
|
666
777
|
};
|
|
667
778
|
}
|
|
@@ -671,17 +782,181 @@ export class PhoneNumberEncryptResponse extends $tea.Model {
|
|
|
671
782
|
}
|
|
672
783
|
}
|
|
673
784
|
|
|
674
|
-
export class
|
|
785
|
+
export class ThreeElementsVerificationRequest extends $tea.Model {
|
|
786
|
+
authCode?: string;
|
|
787
|
+
certCode?: string;
|
|
788
|
+
inputNumber?: string;
|
|
789
|
+
mask?: string;
|
|
790
|
+
name?: string;
|
|
791
|
+
ownerId?: number;
|
|
792
|
+
resourceOwnerAccount?: string;
|
|
793
|
+
resourceOwnerId?: number;
|
|
794
|
+
static names(): { [key: string]: string } {
|
|
795
|
+
return {
|
|
796
|
+
authCode: 'AuthCode',
|
|
797
|
+
certCode: 'CertCode',
|
|
798
|
+
inputNumber: 'InputNumber',
|
|
799
|
+
mask: 'Mask',
|
|
800
|
+
name: 'Name',
|
|
801
|
+
ownerId: 'OwnerId',
|
|
802
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
803
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
static types(): { [key: string]: any } {
|
|
808
|
+
return {
|
|
809
|
+
authCode: 'string',
|
|
810
|
+
certCode: 'string',
|
|
811
|
+
inputNumber: 'string',
|
|
812
|
+
mask: 'string',
|
|
813
|
+
name: 'string',
|
|
814
|
+
ownerId: 'number',
|
|
815
|
+
resourceOwnerAccount: 'string',
|
|
816
|
+
resourceOwnerId: 'number',
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
constructor(map?: { [key: string]: any }) {
|
|
821
|
+
super(map);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export class ThreeElementsVerificationResponseBody extends $tea.Model {
|
|
826
|
+
code?: string;
|
|
827
|
+
data?: ThreeElementsVerificationResponseBodyData;
|
|
828
|
+
message?: string;
|
|
829
|
+
requestId?: string;
|
|
830
|
+
static names(): { [key: string]: string } {
|
|
831
|
+
return {
|
|
832
|
+
code: 'Code',
|
|
833
|
+
data: 'Data',
|
|
834
|
+
message: 'Message',
|
|
835
|
+
requestId: 'RequestId',
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
static types(): { [key: string]: any } {
|
|
840
|
+
return {
|
|
841
|
+
code: 'string',
|
|
842
|
+
data: ThreeElementsVerificationResponseBodyData,
|
|
843
|
+
message: 'string',
|
|
844
|
+
requestId: 'string',
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
constructor(map?: { [key: string]: any }) {
|
|
849
|
+
super(map);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export class ThreeElementsVerificationResponse extends $tea.Model {
|
|
854
|
+
headers: { [key: string]: string };
|
|
855
|
+
statusCode: number;
|
|
856
|
+
body: ThreeElementsVerificationResponseBody;
|
|
857
|
+
static names(): { [key: string]: string } {
|
|
858
|
+
return {
|
|
859
|
+
headers: 'headers',
|
|
860
|
+
statusCode: 'statusCode',
|
|
861
|
+
body: 'body',
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
static types(): { [key: string]: any } {
|
|
866
|
+
return {
|
|
867
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
868
|
+
statusCode: 'number',
|
|
869
|
+
body: ThreeElementsVerificationResponseBody,
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
constructor(map?: { [key: string]: any }) {
|
|
874
|
+
super(map);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export class TwoElementsVerificationRequest extends $tea.Model {
|
|
879
|
+
authCode?: string;
|
|
880
|
+
inputNumber?: string;
|
|
881
|
+
mask?: string;
|
|
882
|
+
name?: string;
|
|
883
|
+
ownerId?: number;
|
|
884
|
+
resourceOwnerAccount?: string;
|
|
885
|
+
resourceOwnerId?: number;
|
|
886
|
+
static names(): { [key: string]: string } {
|
|
887
|
+
return {
|
|
888
|
+
authCode: 'AuthCode',
|
|
889
|
+
inputNumber: 'InputNumber',
|
|
890
|
+
mask: 'Mask',
|
|
891
|
+
name: 'Name',
|
|
892
|
+
ownerId: 'OwnerId',
|
|
893
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
894
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
static types(): { [key: string]: any } {
|
|
899
|
+
return {
|
|
900
|
+
authCode: 'string',
|
|
901
|
+
inputNumber: 'string',
|
|
902
|
+
mask: 'string',
|
|
903
|
+
name: 'string',
|
|
904
|
+
ownerId: 'number',
|
|
905
|
+
resourceOwnerAccount: 'string',
|
|
906
|
+
resourceOwnerId: 'number',
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
constructor(map?: { [key: string]: any }) {
|
|
911
|
+
super(map);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
export class TwoElementsVerificationResponseBody extends $tea.Model {
|
|
916
|
+
code?: string;
|
|
917
|
+
data?: TwoElementsVerificationResponseBodyData;
|
|
918
|
+
message?: string;
|
|
919
|
+
requestId?: string;
|
|
920
|
+
static names(): { [key: string]: string } {
|
|
921
|
+
return {
|
|
922
|
+
code: 'Code',
|
|
923
|
+
data: 'Data',
|
|
924
|
+
message: 'Message',
|
|
925
|
+
requestId: 'RequestId',
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
static types(): { [key: string]: any } {
|
|
930
|
+
return {
|
|
931
|
+
code: 'string',
|
|
932
|
+
data: TwoElementsVerificationResponseBodyData,
|
|
933
|
+
message: 'string',
|
|
934
|
+
requestId: 'string',
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
constructor(map?: { [key: string]: any }) {
|
|
939
|
+
super(map);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
export class TwoElementsVerificationResponse extends $tea.Model {
|
|
675
944
|
headers: { [key: string]: string };
|
|
945
|
+
statusCode: number;
|
|
946
|
+
body: TwoElementsVerificationResponseBody;
|
|
676
947
|
static names(): { [key: string]: string } {
|
|
677
948
|
return {
|
|
678
949
|
headers: 'headers',
|
|
950
|
+
statusCode: 'statusCode',
|
|
951
|
+
body: 'body',
|
|
679
952
|
};
|
|
680
953
|
}
|
|
681
954
|
|
|
682
955
|
static types(): { [key: string]: any } {
|
|
683
956
|
return {
|
|
684
957
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
958
|
+
statusCode: 'number',
|
|
959
|
+
body: TwoElementsVerificationResponseBody,
|
|
685
960
|
};
|
|
686
961
|
}
|
|
687
962
|
|
|
@@ -787,6 +1062,40 @@ export class DescribePhoneNumberOnlineTimeResponseBodyData extends $tea.Model {
|
|
|
787
1062
|
}
|
|
788
1063
|
}
|
|
789
1064
|
|
|
1065
|
+
export class DescribePhoneNumberOperatorAttributeResponseBodyData extends $tea.Model {
|
|
1066
|
+
basicCarrier?: string;
|
|
1067
|
+
carrier?: string;
|
|
1068
|
+
city?: string;
|
|
1069
|
+
isNumberPortability?: boolean;
|
|
1070
|
+
numberSegment?: number;
|
|
1071
|
+
province?: string;
|
|
1072
|
+
static names(): { [key: string]: string } {
|
|
1073
|
+
return {
|
|
1074
|
+
basicCarrier: 'BasicCarrier',
|
|
1075
|
+
carrier: 'Carrier',
|
|
1076
|
+
city: 'City',
|
|
1077
|
+
isNumberPortability: 'IsNumberPortability',
|
|
1078
|
+
numberSegment: 'NumberSegment',
|
|
1079
|
+
province: 'Province',
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
static types(): { [key: string]: any } {
|
|
1084
|
+
return {
|
|
1085
|
+
basicCarrier: 'string',
|
|
1086
|
+
carrier: 'string',
|
|
1087
|
+
city: 'string',
|
|
1088
|
+
isNumberPortability: 'boolean',
|
|
1089
|
+
numberSegment: 'number',
|
|
1090
|
+
province: 'string',
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
constructor(map?: { [key: string]: any }) {
|
|
1095
|
+
super(map);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
|
|
790
1099
|
export class DescribePhoneNumberResaleResponseBodyTwiceTelVerify extends $tea.Model {
|
|
791
1100
|
carrier?: string;
|
|
792
1101
|
verifyResult?: number;
|
|
@@ -887,6 +1196,50 @@ export class PhoneNumberEncryptResponseBodyData extends $tea.Model {
|
|
|
887
1196
|
}
|
|
888
1197
|
}
|
|
889
1198
|
|
|
1199
|
+
export class ThreeElementsVerificationResponseBodyData extends $tea.Model {
|
|
1200
|
+
basicCarrier?: string;
|
|
1201
|
+
isConsistent?: number;
|
|
1202
|
+
static names(): { [key: string]: string } {
|
|
1203
|
+
return {
|
|
1204
|
+
basicCarrier: 'BasicCarrier',
|
|
1205
|
+
isConsistent: 'IsConsistent',
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
static types(): { [key: string]: any } {
|
|
1210
|
+
return {
|
|
1211
|
+
basicCarrier: 'string',
|
|
1212
|
+
isConsistent: 'number',
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
constructor(map?: { [key: string]: any }) {
|
|
1217
|
+
super(map);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
export class TwoElementsVerificationResponseBodyData extends $tea.Model {
|
|
1222
|
+
basicCarrier?: string;
|
|
1223
|
+
isConsistent?: number;
|
|
1224
|
+
static names(): { [key: string]: string } {
|
|
1225
|
+
return {
|
|
1226
|
+
basicCarrier: 'BasicCarrier',
|
|
1227
|
+
isConsistent: 'IsConsistent',
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
static types(): { [key: string]: any } {
|
|
1232
|
+
return {
|
|
1233
|
+
basicCarrier: 'string',
|
|
1234
|
+
isConsistent: 'number',
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
constructor(map?: { [key: string]: any }) {
|
|
1239
|
+
super(map);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
|
|
890
1243
|
|
|
891
1244
|
export default class Client extends OpenApi {
|
|
892
1245
|
|
|
@@ -1106,6 +1459,55 @@ export default class Client extends OpenApi {
|
|
|
1106
1459
|
return await this.describePhoneNumberOnlineTimeWithOptions(request, runtime);
|
|
1107
1460
|
}
|
|
1108
1461
|
|
|
1462
|
+
async describePhoneNumberOperatorAttributeWithOptions(request: DescribePhoneNumberOperatorAttributeRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberOperatorAttributeResponse> {
|
|
1463
|
+
Util.validateModel(request);
|
|
1464
|
+
let query = { };
|
|
1465
|
+
if (!Util.isUnset(request.authCode)) {
|
|
1466
|
+
query["AuthCode"] = request.authCode;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
1470
|
+
query["InputNumber"] = request.inputNumber;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
if (!Util.isUnset(request.mask)) {
|
|
1474
|
+
query["Mask"] = request.mask;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1478
|
+
query["OwnerId"] = request.ownerId;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1482
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1486
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1490
|
+
query: OpenApiUtil.query(query),
|
|
1491
|
+
});
|
|
1492
|
+
let params = new $OpenApi.Params({
|
|
1493
|
+
action: "DescribePhoneNumberOperatorAttribute",
|
|
1494
|
+
version: "2020-02-17",
|
|
1495
|
+
protocol: "HTTPS",
|
|
1496
|
+
pathname: "/",
|
|
1497
|
+
method: "POST",
|
|
1498
|
+
authType: "AK",
|
|
1499
|
+
style: "RPC",
|
|
1500
|
+
reqBodyType: "formData",
|
|
1501
|
+
bodyType: "json",
|
|
1502
|
+
});
|
|
1503
|
+
return $tea.cast<DescribePhoneNumberOperatorAttributeResponse>(await this.callApi(params, req, runtime), new DescribePhoneNumberOperatorAttributeResponse({}));
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
async describePhoneNumberOperatorAttribute(request: DescribePhoneNumberOperatorAttributeRequest): Promise<DescribePhoneNumberOperatorAttributeResponse> {
|
|
1507
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1508
|
+
return await this.describePhoneNumberOperatorAttributeWithOptions(request, runtime);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1109
1511
|
async describePhoneNumberResaleWithOptions(request: DescribePhoneNumberResaleRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberResaleResponse> {
|
|
1110
1512
|
Util.validateModel(request);
|
|
1111
1513
|
let query = { };
|
|
@@ -1290,10 +1692,99 @@ export default class Client extends OpenApi {
|
|
|
1290
1692
|
return await this.phoneNumberEncryptWithOptions(request, runtime);
|
|
1291
1693
|
}
|
|
1292
1694
|
|
|
1293
|
-
async
|
|
1294
|
-
|
|
1695
|
+
async threeElementsVerificationWithOptions(request: ThreeElementsVerificationRequest, runtime: $Util.RuntimeOptions): Promise<ThreeElementsVerificationResponse> {
|
|
1696
|
+
Util.validateModel(request);
|
|
1697
|
+
let query = { };
|
|
1698
|
+
if (!Util.isUnset(request.authCode)) {
|
|
1699
|
+
query["AuthCode"] = request.authCode;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
if (!Util.isUnset(request.certCode)) {
|
|
1703
|
+
query["CertCode"] = request.certCode;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
1707
|
+
query["InputNumber"] = request.inputNumber;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
if (!Util.isUnset(request.mask)) {
|
|
1711
|
+
query["Mask"] = request.mask;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
if (!Util.isUnset(request.name)) {
|
|
1715
|
+
query["Name"] = request.name;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1719
|
+
query["OwnerId"] = request.ownerId;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1723
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1727
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1731
|
+
query: OpenApiUtil.query(query),
|
|
1732
|
+
});
|
|
1733
|
+
let params = new $OpenApi.Params({
|
|
1734
|
+
action: "ThreeElementsVerification",
|
|
1735
|
+
version: "2020-02-17",
|
|
1736
|
+
protocol: "HTTPS",
|
|
1737
|
+
pathname: "/",
|
|
1738
|
+
method: "POST",
|
|
1739
|
+
authType: "AK",
|
|
1740
|
+
style: "RPC",
|
|
1741
|
+
reqBodyType: "formData",
|
|
1742
|
+
bodyType: "json",
|
|
1743
|
+
});
|
|
1744
|
+
return $tea.cast<ThreeElementsVerificationResponse>(await this.callApi(params, req, runtime), new ThreeElementsVerificationResponse({}));
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
async threeElementsVerification(request: ThreeElementsVerificationRequest): Promise<ThreeElementsVerificationResponse> {
|
|
1748
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1749
|
+
return await this.threeElementsVerificationWithOptions(request, runtime);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
async twoElementsVerificationWithOptions(request: TwoElementsVerificationRequest, runtime: $Util.RuntimeOptions): Promise<TwoElementsVerificationResponse> {
|
|
1753
|
+
Util.validateModel(request);
|
|
1754
|
+
let query = { };
|
|
1755
|
+
if (!Util.isUnset(request.authCode)) {
|
|
1756
|
+
query["AuthCode"] = request.authCode;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
if (!Util.isUnset(request.inputNumber)) {
|
|
1760
|
+
query["InputNumber"] = request.inputNumber;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
if (!Util.isUnset(request.mask)) {
|
|
1764
|
+
query["Mask"] = request.mask;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
if (!Util.isUnset(request.name)) {
|
|
1768
|
+
query["Name"] = request.name;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
1772
|
+
query["OwnerId"] = request.ownerId;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
1776
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
1780
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
1784
|
+
query: OpenApiUtil.query(query),
|
|
1785
|
+
});
|
|
1295
1786
|
let params = new $OpenApi.Params({
|
|
1296
|
-
action: "
|
|
1787
|
+
action: "TwoElementsVerification",
|
|
1297
1788
|
version: "2020-02-17",
|
|
1298
1789
|
protocol: "HTTPS",
|
|
1299
1790
|
pathname: "/",
|
|
@@ -1301,14 +1792,14 @@ export default class Client extends OpenApi {
|
|
|
1301
1792
|
authType: "AK",
|
|
1302
1793
|
style: "RPC",
|
|
1303
1794
|
reqBodyType: "formData",
|
|
1304
|
-
bodyType: "
|
|
1795
|
+
bodyType: "json",
|
|
1305
1796
|
});
|
|
1306
|
-
return $tea.cast<
|
|
1797
|
+
return $tea.cast<TwoElementsVerificationResponse>(await this.callApi(params, req, runtime), new TwoElementsVerificationResponse({}));
|
|
1307
1798
|
}
|
|
1308
1799
|
|
|
1309
|
-
async
|
|
1800
|
+
async twoElementsVerification(request: TwoElementsVerificationRequest): Promise<TwoElementsVerificationResponse> {
|
|
1310
1801
|
let runtime = new $Util.RuntimeOptions({ });
|
|
1311
|
-
return await this.
|
|
1802
|
+
return await this.twoElementsVerificationWithOptions(request, runtime);
|
|
1312
1803
|
}
|
|
1313
1804
|
|
|
1314
1805
|
}
|