@alicloud/dytnsapi20200217 3.1.0 → 3.3.0

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.
Files changed (33) hide show
  1. package/dist/client.d.ts +36 -6
  2. package/dist/client.js +132 -6
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/HistoryThreeElementsVerificationRequest.d.ts +66 -0
  5. package/dist/models/HistoryThreeElementsVerificationRequest.js +70 -0
  6. package/dist/models/HistoryThreeElementsVerificationRequest.js.map +1 -0
  7. package/dist/models/HistoryThreeElementsVerificationResponse.d.ts +19 -0
  8. package/dist/models/HistoryThreeElementsVerificationResponse.js +69 -0
  9. package/dist/models/HistoryThreeElementsVerificationResponse.js.map +1 -0
  10. package/dist/models/HistoryThreeElementsVerificationResponseBody.d.ts +56 -0
  11. package/dist/models/HistoryThreeElementsVerificationResponseBody.js +90 -0
  12. package/dist/models/HistoryThreeElementsVerificationResponseBody.js.map +1 -0
  13. package/dist/models/SaveContactsRequest.d.ts +56 -0
  14. package/dist/models/SaveContactsRequest.js +78 -0
  15. package/dist/models/SaveContactsRequest.js.map +1 -0
  16. package/dist/models/SaveContactsResponse.d.ts +19 -0
  17. package/dist/models/SaveContactsResponse.js +69 -0
  18. package/dist/models/SaveContactsResponse.js.map +1 -0
  19. package/dist/models/SaveContactsResponseBody.d.ts +33 -0
  20. package/dist/models/SaveContactsResponseBody.js +64 -0
  21. package/dist/models/SaveContactsResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +7 -0
  23. package/dist/models/model.js +18 -4
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +154 -6
  27. package/src/models/HistoryThreeElementsVerificationRequest.ts +91 -0
  28. package/src/models/HistoryThreeElementsVerificationResponse.ts +40 -0
  29. package/src/models/HistoryThreeElementsVerificationResponseBody.ts +92 -0
  30. package/src/models/SaveContactsRequest.ts +89 -0
  31. package/src/models/SaveContactsResponse.ts +40 -0
  32. package/src/models/SaveContactsResponseBody.ts +52 -0
  33. package/src/models/model.ts +7 -0
package/dist/client.d.ts CHANGED
@@ -179,7 +179,7 @@ export default class Client extends OpenApi {
179
179
  */
180
180
  describeMobileOperatorAttribute(request: $_model.DescribeMobileOperatorAttributeRequest): Promise<$_model.DescribeMobileOperatorAttributeResponse>;
181
181
  /**
182
- * 号码分析实时查询蚂蚁
182
+ * Obtains the analysis results of a number.
183
183
  *
184
184
  * @param request - DescribePhoneNumberAnalysisRequest
185
185
  * @param runtime - runtime options for this request RuntimeOptions
@@ -187,7 +187,7 @@ export default class Client extends OpenApi {
187
187
  */
188
188
  describePhoneNumberAnalysisWithOptions(request: $_model.DescribePhoneNumberAnalysisRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePhoneNumberAnalysisResponse>;
189
189
  /**
190
- * 号码分析实时查询蚂蚁
190
+ * Obtains the analysis results of a number.
191
191
  *
192
192
  * @param request - DescribePhoneNumberAnalysisRequest
193
193
  * @returns DescribePhoneNumberAnalysisResponse
@@ -408,7 +408,7 @@ export default class Client extends OpenApi {
408
408
  */
409
409
  describePhoneTwiceTelVerify(request: $_model.DescribePhoneTwiceTelVerifyRequest): Promise<$_model.DescribePhoneTwiceTelVerifyResponse>;
410
410
  /**
411
- * 获取UAID申请Token所需的签名字段
411
+ * Obtains the signature of an authorization token when China Mobile, China Unicom, or China Telecom provides the Uniform Anonymous Identifier (UAID) capability.
412
412
  *
413
413
  * @param request - GetUAIDApplyTokenSignRequest
414
414
  * @param runtime - runtime options for this request RuntimeOptions
@@ -416,7 +416,7 @@ export default class Client extends OpenApi {
416
416
  */
417
417
  getUAIDApplyTokenSignWithOptions(request: $_model.GetUAIDApplyTokenSignRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetUAIDApplyTokenSignResponse>;
418
418
  /**
419
- * 获取UAID申请Token所需的签名字段
419
+ * Obtains the signature of an authorization token when China Mobile, China Unicom, or China Telecom provides the Uniform Anonymous Identifier (UAID) capability.
420
420
  *
421
421
  * @param request - GetUAIDApplyTokenSignRequest
422
422
  * @returns GetUAIDApplyTokenSignResponse
@@ -437,6 +437,21 @@ export default class Client extends OpenApi {
437
437
  * @returns GetUAIDConversionSignResponse
438
438
  */
439
439
  getUAIDConversionSign(request: $_model.GetUAIDConversionSignRequest): Promise<$_model.GetUAIDConversionSignResponse>;
440
+ /**
441
+ * 历史三要素
442
+ *
443
+ * @param request - HistoryThreeElementsVerificationRequest
444
+ * @param runtime - runtime options for this request RuntimeOptions
445
+ * @returns HistoryThreeElementsVerificationResponse
446
+ */
447
+ historyThreeElementsVerificationWithOptions(request: $_model.HistoryThreeElementsVerificationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.HistoryThreeElementsVerificationResponse>;
448
+ /**
449
+ * 历史三要素
450
+ *
451
+ * @param request - HistoryThreeElementsVerificationRequest
452
+ * @returns HistoryThreeElementsVerificationResponse
453
+ */
454
+ historyThreeElementsVerification(request: $_model.HistoryThreeElementsVerificationRequest): Promise<$_model.HistoryThreeElementsVerificationResponse>;
440
455
  /**
441
456
  * Filters invalid phone numbers.
442
457
  *
@@ -793,6 +808,21 @@ export default class Client extends OpenApi {
793
808
  * @returns QueryUsageStatisticsByTagIdResponse
794
809
  */
795
810
  queryUsageStatisticsByTagId(request: $_model.QueryUsageStatisticsByTagIdRequest): Promise<$_model.QueryUsageStatisticsByTagIdResponse>;
811
+ /**
812
+ * 预警联系人保存
813
+ *
814
+ * @param request - SaveContactsRequest
815
+ * @param runtime - runtime options for this request RuntimeOptions
816
+ * @returns SaveContactsResponse
817
+ */
818
+ saveContactsWithOptions(request: $_model.SaveContactsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SaveContactsResponse>;
819
+ /**
820
+ * 预警联系人保存
821
+ *
822
+ * @param request - SaveContactsRequest
823
+ * @returns SaveContactsResponse
824
+ */
825
+ saveContacts(request: $_model.SaveContactsRequest): Promise<$_model.SaveContactsResponse>;
796
826
  /**
797
827
  * Verifies whether the name, phone number, and ID card number entered by a user belong to the same user.
798
828
  *
@@ -882,7 +912,7 @@ export default class Client extends OpenApi {
882
912
  */
883
913
  uAIDConversion(request: $_model.UAIDConversionRequest): Promise<$_model.UAIDConversionResponse>;
884
914
  /**
885
- * 获取UAID
915
+ * Obtains a Uniform Anonymous Identifier (UAID) based on the authorization token of a carrier. For more information about how to obtain the authorization token and its signature value, see the GetUAIDApplyTokenSign documentation.
886
916
  *
887
917
  * @param request - UAIDVerificationRequest
888
918
  * @param runtime - runtime options for this request RuntimeOptions
@@ -890,7 +920,7 @@ export default class Client extends OpenApi {
890
920
  */
891
921
  uAIDVerificationWithOptions(request: $_model.UAIDVerificationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UAIDVerificationResponse>;
892
922
  /**
893
- * 获取UAID
923
+ * Obtains a Uniform Anonymous Identifier (UAID) based on the authorization token of a carrier. For more information about how to obtain the authorization token and its signature value, see the GetUAIDApplyTokenSign documentation.
894
924
  *
895
925
  * @param request - UAIDVerificationRequest
896
926
  * @returns UAIDVerificationResponse
package/dist/client.js CHANGED
@@ -553,7 +553,7 @@ class Client extends openapi_core_1.default {
553
553
  return await this.describeMobileOperatorAttributeWithOptions(request, runtime);
554
554
  }
555
555
  /**
556
- * 号码分析实时查询蚂蚁
556
+ * Obtains the analysis results of a number.
557
557
  *
558
558
  * @param request - DescribePhoneNumberAnalysisRequest
559
559
  * @param runtime - runtime options for this request RuntimeOptions
@@ -603,7 +603,7 @@ class Client extends openapi_core_1.default {
603
603
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePhoneNumberAnalysisResponse({}));
604
604
  }
605
605
  /**
606
- * 号码分析实时查询蚂蚁
606
+ * Obtains the analysis results of a number.
607
607
  *
608
608
  * @param request - DescribePhoneNumberAnalysisRequest
609
609
  * @returns DescribePhoneNumberAnalysisResponse
@@ -1215,7 +1215,7 @@ class Client extends openapi_core_1.default {
1215
1215
  return await this.describePhoneTwiceTelVerifyWithOptions(request, runtime);
1216
1216
  }
1217
1217
  /**
1218
- * 获取UAID申请Token所需的签名字段
1218
+ * Obtains the signature of an authorization token when China Mobile, China Unicom, or China Telecom provides the Uniform Anonymous Identifier (UAID) capability.
1219
1219
  *
1220
1220
  * @param request - GetUAIDApplyTokenSignRequest
1221
1221
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1274,7 +1274,7 @@ class Client extends openapi_core_1.default {
1274
1274
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUAIDApplyTokenSignResponse({}));
1275
1275
  }
1276
1276
  /**
1277
- * 获取UAID申请Token所需的签名字段
1277
+ * Obtains the signature of an authorization token when China Mobile, China Unicom, or China Telecom provides the Uniform Anonymous Identifier (UAID) capability.
1278
1278
  *
1279
1279
  * @param request - GetUAIDApplyTokenSignRequest
1280
1280
  * @returns GetUAIDApplyTokenSignResponse
@@ -1352,6 +1352,63 @@ class Client extends openapi_core_1.default {
1352
1352
  let runtime = new $dara.RuntimeOptions({});
1353
1353
  return await this.getUAIDConversionSignWithOptions(request, runtime);
1354
1354
  }
1355
+ /**
1356
+ * 历史三要素
1357
+ *
1358
+ * @param request - HistoryThreeElementsVerificationRequest
1359
+ * @param runtime - runtime options for this request RuntimeOptions
1360
+ * @returns HistoryThreeElementsVerificationResponse
1361
+ */
1362
+ async historyThreeElementsVerificationWithOptions(request, runtime) {
1363
+ request.validate();
1364
+ let query = {};
1365
+ if (!$dara.isNull(request.authCode)) {
1366
+ query["AuthCode"] = request.authCode;
1367
+ }
1368
+ if (!$dara.isNull(request.carrier)) {
1369
+ query["Carrier"] = request.carrier;
1370
+ }
1371
+ if (!$dara.isNull(request.certCode)) {
1372
+ query["CertCode"] = request.certCode;
1373
+ }
1374
+ if (!$dara.isNull(request.inputNumber)) {
1375
+ query["InputNumber"] = request.inputNumber;
1376
+ }
1377
+ if (!$dara.isNull(request.mask)) {
1378
+ query["Mask"] = request.mask;
1379
+ }
1380
+ if (!$dara.isNull(request.name)) {
1381
+ query["Name"] = request.name;
1382
+ }
1383
+ if (!$dara.isNull(request.verificationTime)) {
1384
+ query["VerificationTime"] = request.verificationTime;
1385
+ }
1386
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1387
+ query: openapi_core_2.OpenApiUtil.query(query),
1388
+ });
1389
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1390
+ action: "HistoryThreeElementsVerification",
1391
+ version: "2020-02-17",
1392
+ protocol: "HTTPS",
1393
+ pathname: "/",
1394
+ method: "POST",
1395
+ authType: "AK",
1396
+ style: "RPC",
1397
+ reqBodyType: "formData",
1398
+ bodyType: "json",
1399
+ });
1400
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.HistoryThreeElementsVerificationResponse({}));
1401
+ }
1402
+ /**
1403
+ * 历史三要素
1404
+ *
1405
+ * @param request - HistoryThreeElementsVerificationRequest
1406
+ * @returns HistoryThreeElementsVerificationResponse
1407
+ */
1408
+ async historyThreeElementsVerification(request) {
1409
+ let runtime = new $dara.RuntimeOptions({});
1410
+ return await this.historyThreeElementsVerificationWithOptions(request, runtime);
1411
+ }
1355
1412
  /**
1356
1413
  * Filters invalid phone numbers.
1357
1414
  *
@@ -2418,6 +2475,75 @@ class Client extends openapi_core_1.default {
2418
2475
  let runtime = new $dara.RuntimeOptions({});
2419
2476
  return await this.queryUsageStatisticsByTagIdWithOptions(request, runtime);
2420
2477
  }
2478
+ /**
2479
+ * 预警联系人保存
2480
+ *
2481
+ * @param request - SaveContactsRequest
2482
+ * @param runtime - runtime options for this request RuntimeOptions
2483
+ * @returns SaveContactsResponse
2484
+ */
2485
+ async saveContactsWithOptions(request, runtime) {
2486
+ request.validate();
2487
+ let query = {};
2488
+ if (!$dara.isNull(request.bizType)) {
2489
+ query["BizType"] = request.bizType;
2490
+ }
2491
+ if (!$dara.isNull(request.contactEmail)) {
2492
+ query["ContactEmail"] = request.contactEmail;
2493
+ }
2494
+ if (!$dara.isNull(request.contactName)) {
2495
+ query["ContactName"] = request.contactName;
2496
+ }
2497
+ if (!$dara.isNull(request.contactPhone)) {
2498
+ query["ContactPhone"] = request.contactPhone;
2499
+ }
2500
+ if (!$dara.isNull(request.mailStatus)) {
2501
+ query["MailStatus"] = request.mailStatus;
2502
+ }
2503
+ if (!$dara.isNull(request.openStatusWarning)) {
2504
+ query["OpenStatusWarning"] = request.openStatusWarning;
2505
+ }
2506
+ if (!$dara.isNull(request.opentAttributionWarning)) {
2507
+ query["OpentAttributionWarning"] = request.opentAttributionWarning;
2508
+ }
2509
+ if (!$dara.isNull(request.ownerId)) {
2510
+ query["OwnerId"] = request.ownerId;
2511
+ }
2512
+ if (!$dara.isNull(request.phoneStatus)) {
2513
+ query["PhoneStatus"] = request.phoneStatus;
2514
+ }
2515
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2516
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2517
+ }
2518
+ if (!$dara.isNull(request.resourceOwnerId)) {
2519
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2520
+ }
2521
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2522
+ query: openapi_core_2.OpenApiUtil.query(query),
2523
+ });
2524
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2525
+ action: "SaveContacts",
2526
+ version: "2020-02-17",
2527
+ protocol: "HTTPS",
2528
+ pathname: "/",
2529
+ method: "POST",
2530
+ authType: "AK",
2531
+ style: "RPC",
2532
+ reqBodyType: "formData",
2533
+ bodyType: "json",
2534
+ });
2535
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SaveContactsResponse({}));
2536
+ }
2537
+ /**
2538
+ * 预警联系人保存
2539
+ *
2540
+ * @param request - SaveContactsRequest
2541
+ * @returns SaveContactsResponse
2542
+ */
2543
+ async saveContacts(request) {
2544
+ let runtime = new $dara.RuntimeOptions({});
2545
+ return await this.saveContactsWithOptions(request, runtime);
2546
+ }
2421
2547
  /**
2422
2548
  * Verifies whether the name, phone number, and ID card number entered by a user belong to the same user.
2423
2549
  *
@@ -2687,7 +2813,7 @@ class Client extends openapi_core_1.default {
2687
2813
  return await this.uAIDConversionWithOptions(request, runtime);
2688
2814
  }
2689
2815
  /**
2690
- * 获取UAID
2816
+ * Obtains a Uniform Anonymous Identifier (UAID) based on the authorization token of a carrier. For more information about how to obtain the authorization token and its signature value, see the GetUAIDApplyTokenSign documentation.
2691
2817
  *
2692
2818
  * @param request - UAIDVerificationRequest
2693
2819
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2743,7 +2869,7 @@ class Client extends openapi_core_1.default {
2743
2869
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UAIDVerificationResponse({}));
2744
2870
  }
2745
2871
  /**
2746
- * 获取UAID
2872
+ * Obtains a Uniform Anonymous Identifier (UAID) based on the authorization token of a carrier. For more information about how to obtain the authorization token and its signature value, see the GetUAIDApplyTokenSign documentation.
2747
2873
  *
2748
2874
  * @param request - UAIDVerificationRequest
2749
2875
  * @returns UAIDVerificationResponse