tencentcloud-sdk-nodejs 4.0.723 → 4.0.724

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 (49) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/SERVICE_CHANGELOG.md +201 -47
  3. package/package.json +1 -1
  4. package/products.md +15 -15
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/aiart/v20221229/aiart_models.ts +1 -5
  7. package/src/services/car/v20220110/car_client.ts +1 -1
  8. package/src/services/cls/v20201016/cls_client.ts +15 -3
  9. package/src/services/cls/v20201016/cls_models.ts +54 -18
  10. package/src/services/ess/v20201111/ess_client.ts +16 -3
  11. package/src/services/ess/v20201111/ess_models.ts +307 -178
  12. package/src/services/essbasic/v20210526/essbasic_client.ts +20 -7
  13. package/src/services/essbasic/v20210526/essbasic_models.ts +30 -12
  14. package/src/services/mna/v20210119/mna_client.ts +15 -1
  15. package/src/services/mna/v20210119/mna_models.ts +90 -12
  16. package/src/services/ocr/v20181119/ocr_models.ts +43 -25
  17. package/src/services/tdmq/v20200217/tdmq_models.ts +41 -4
  18. package/src/services/teo/v20220901/teo_client.ts +46 -21
  19. package/src/services/teo/v20220901/teo_models.ts +91 -23
  20. package/src/services/waf/v20180125/waf_client.ts +1 -1
  21. package/src/services/waf/v20180125/waf_models.ts +26 -1
  22. package/tencentcloud/common/sdk_version.d.ts +1 -1
  23. package/tencentcloud/common/sdk_version.js +1 -1
  24. package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +1 -5
  25. package/tencentcloud/services/car/v20220110/car_client.d.ts +1 -1
  26. package/tencentcloud/services/car/v20220110/car_client.js +1 -1
  27. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +5 -1
  28. package/tencentcloud/services/cls/v20201016/cls_client.js +6 -0
  29. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +52 -18
  30. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +5 -1
  31. package/tencentcloud/services/ess/v20201111/ess_client.js +6 -0
  32. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +303 -177
  33. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +19 -6
  34. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +19 -6
  35. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +30 -12
  36. package/tencentcloud/services/mna/v20210119/mna_client.d.ts +5 -1
  37. package/tencentcloud/services/mna/v20210119/mna_client.js +6 -0
  38. package/tencentcloud/services/mna/v20210119/mna_models.d.ts +86 -12
  39. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +43 -25
  40. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +41 -4
  41. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +16 -8
  42. package/tencentcloud/services/teo/v20220901/teo_client.js +22 -10
  43. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +86 -23
  44. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +1 -1
  45. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +26 -1
  46. package/test/cls.v20201016.test.js +10 -0
  47. package/test/ess.v20201111.test.js +10 -0
  48. package/test/mna.v20210119.test.js +10 -0
  49. package/test/teo.v20220901.test.js +26 -6
@@ -40,7 +40,7 @@ class Client extends abstract_client_1.AbstractClient {
40
40
  return this.request("DeleteOriginGroup", req, cb);
41
41
  }
42
42
  /**
43
- * 创建共享 CNAME
43
+ * 用于创建共享 CNAME,该功能白名单内测中。
44
44
  */
45
45
  async CreateSharedCNAME(req, cb) {
46
46
  return this.request("CreateSharedCNAME", req, cb);
@@ -165,12 +165,24 @@ class Client extends abstract_client_1.AbstractClient {
165
165
  async DescribeAvailablePlans(req, cb) {
166
166
  return this.request("DescribeAvailablePlans", req, cb);
167
167
  }
168
+ /**
169
+ * 用于加速域名绑定或解绑共享 CNAME,该功能白名单内测中。
170
+ */
171
+ async BindSharedCNAME(req, cb) {
172
+ return this.request("BindSharedCNAME", req, cb);
173
+ }
168
174
  /**
169
175
  * 用于验证站点所有权。
170
176
  */
171
177
  async IdentifyZone(req, cb) {
172
178
  return this.request("IdentifyZone", req, cb);
173
179
  }
180
+ /**
181
+ * 修改别称域名状态。
182
+ */
183
+ async ModifyAliasDomainStatus(req, cb) {
184
+ return this.request("ModifyAliasDomainStatus", req, cb);
185
+ }
174
186
  /**
175
187
  * 查询源站防护信息
176
188
  */
@@ -270,10 +282,10 @@ class Client extends abstract_client_1.AbstractClient {
270
282
  return this.request("ModifyZoneStatus", req, cb);
271
283
  }
272
284
  /**
273
- * 修改别称域名状态。
285
+ * 获取源站组列表
274
286
  */
275
- async ModifyAliasDomainStatus(req, cb) {
276
- return this.request("ModifyAliasDomainStatus", req, cb);
287
+ async DescribeOriginGroup(req, cb) {
288
+ return this.request("DescribeOriginGroup", req, cb);
277
289
  }
278
290
  /**
279
291
  * 本接口(DownloadL7Logs)下载七层离线日志。
@@ -330,10 +342,10 @@ class Client extends abstract_client_1.AbstractClient {
330
342
  return this.request("DescribeDDoSAttackData", req, cb);
331
343
  }
332
344
  /**
333
- * 本接口(DescribeDDoSAttackEvent)用于查询DDoS攻击事件列表。
345
+ * 用于删除共享 CNAME,该功能白名单内测中。
334
346
  */
335
- async DescribeDDoSAttackEvent(req, cb) {
336
- return this.request("DescribeDDoSAttackEvent", req, cb);
347
+ async DeleteSharedCNAME(req, cb) {
348
+ return this.request("DeleteSharedCNAME", req, cb);
337
349
  }
338
350
  /**
339
351
  * 修改Web&Bot安全配置。
@@ -410,10 +422,10 @@ CNAME 模式接入时,若您未完成站点归属权校验,本接口将为
410
422
  return this.request("CreateApplicationProxy", req, cb);
411
423
  }
412
424
  /**
413
- * 获取源站组列表
425
+ * 本接口(DescribeDDoSAttackEvent)用于查询DDoS攻击事件列表。
414
426
  */
415
- async DescribeOriginGroup(req, cb) {
416
- return this.request("DescribeOriginGroup", req, cb);
427
+ async DescribeDDoSAttackEvent(req, cb) {
428
+ return this.request("DescribeDDoSAttackEvent", req, cb);
417
429
  }
418
430
  /**
419
431
  * 修改应用代理的状态
@@ -972,6 +972,23 @@ export interface DeleteAccelerationDomainsRequest {
972
972
  */
973
973
  Force?: boolean;
974
974
  }
975
+ /**
976
+ * DescribeApplicationProxies返回参数结构体
977
+ */
978
+ export interface DescribeApplicationProxiesResponse {
979
+ /**
980
+ * 应用代理列表。
981
+ */
982
+ ApplicationProxies?: Array<ApplicationProxy>;
983
+ /**
984
+ * 记录总数。
985
+ */
986
+ TotalCount?: number;
987
+ /**
988
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
989
+ */
990
+ RequestId?: string;
991
+ }
975
992
  /**
976
993
  * 例外规则的生效范围。
977
994
  */
@@ -1991,6 +2008,19 @@ export interface RuleExtraParameter {
1991
2008
  */
1992
2009
  Choices: Array<string>;
1993
2010
  }
2011
+ /**
2012
+ * 共享 CNAME 和接入域名的绑定关系
2013
+ */
2014
+ export interface BindSharedCNAMEMap {
2015
+ /**
2016
+ * 需要绑定或解绑的共享 CNAME。
2017
+ */
2018
+ SharedCNAME: string;
2019
+ /**
2020
+ * 加速域名,可传递多个,最多20个。
2021
+ */
2022
+ DomainNames: Array<string>;
2023
+ }
1994
2024
  /**
1995
2025
  * 规则引擎可应用于匹配请求的设置列表及其详细信息
1996
2026
  */
@@ -2184,6 +2214,21 @@ export interface Ipv6 {
2184
2214
  */
2185
2215
  Switch: string;
2186
2216
  }
2217
+ /**
2218
+ * WebSocket配置
2219
+ */
2220
+ export interface WebSocket {
2221
+ /**
2222
+ * WebSocket 超时时间配置开关,取值有:
2223
+ <li>on:使用Timeout作为WebSocket超时时间;</li>
2224
+ <li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>
2225
+ */
2226
+ Switch: string;
2227
+ /**
2228
+ * 超时时间,单位为秒,最大超时时间120秒。
2229
+ */
2230
+ Timeout?: number;
2231
+ }
2187
2232
  /**
2188
2233
  * ModifyAccelerationDomain请求参数结构体
2189
2234
  */
@@ -2720,17 +2765,9 @@ export interface DeleteApplicationProxyRuleRequest {
2720
2765
  RuleId: string;
2721
2766
  }
2722
2767
  /**
2723
- * DescribeApplicationProxies返回参数结构体
2768
+ * BindSharedCNAME返回参数结构体
2724
2769
  */
2725
- export interface DescribeApplicationProxiesResponse {
2726
- /**
2727
- * 应用代理列表。
2728
- */
2729
- ApplicationProxies?: Array<ApplicationProxy>;
2730
- /**
2731
- * 记录总数。
2732
- */
2733
- TotalCount?: number;
2770
+ export interface BindSharedCNAMEResponse {
2734
2771
  /**
2735
2772
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2736
2773
  */
@@ -2846,6 +2883,19 @@ export interface FileAscriptionInfo {
2846
2883
  */
2847
2884
  IdentifyContent: string;
2848
2885
  }
2886
+ /**
2887
+ * DeleteSharedCNAME请求参数结构体
2888
+ */
2889
+ export interface DeleteSharedCNAMERequest {
2890
+ /**
2891
+ * 共享 CNAME 所属站点 ID。
2892
+ */
2893
+ ZoneId: string;
2894
+ /**
2895
+ * 需要删除的共享 CNAME。
2896
+ */
2897
+ SharedCNAME: string;
2898
+ }
2849
2899
  /**
2850
2900
  * DescribeAccelerationDomains返回参数结构体
2851
2901
  */
@@ -3094,19 +3144,13 @@ export interface IdentifyZoneResponse {
3094
3144
  RequestId?: string;
3095
3145
  }
3096
3146
  /**
3097
- * WebSocket配置
3147
+ * DeleteSharedCNAME返回参数结构体
3098
3148
  */
3099
- export interface WebSocket {
3100
- /**
3101
- * WebSocket 超时时间配置开关,取值有:
3102
- <li>on:使用Timeout作为WebSocket超时时间;</li>
3103
- <li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>
3104
- */
3105
- Switch: string;
3149
+ export interface DeleteSharedCNAMEResponse {
3106
3150
  /**
3107
- * 超时时间,单位为秒,最大超时时间120秒。
3151
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3108
3152
  */
3109
- Timeout?: number;
3153
+ RequestId?: string;
3110
3154
  }
3111
3155
  /**
3112
3156
  * DDoS封禁解封信息
@@ -5433,6 +5477,25 @@ export interface DescribeTimingL7CacheDataResponse {
5433
5477
  */
5434
5478
  RequestId?: string;
5435
5479
  }
5480
+ /**
5481
+ * BindSharedCNAME请求参数结构体
5482
+ */
5483
+ export interface BindSharedCNAMERequest {
5484
+ /**
5485
+ * 加速域名所属站点 ID。
5486
+ */
5487
+ ZoneId: string;
5488
+ /**
5489
+ * 绑定类型,取值有:
5490
+ <li>bind:绑定;</li>
5491
+ <li>unbind:解绑。</li>
5492
+ */
5493
+ BindType: string;
5494
+ /**
5495
+ * 接入域名与共享 CNAME 的绑定关系。
5496
+ */
5497
+ BindSharedCNAMEMaps: Array<BindSharedCNAMEMap>;
5498
+ }
5436
5499
  /**
5437
5500
  * 智能客户端过滤
5438
5501
  */
@@ -6618,7 +6681,7 @@ export interface CreateSecurityIPGroupResponse {
6618
6681
  */
6619
6682
  export interface CreateSharedCNAMEResponse {
6620
6683
  /**
6621
- * 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.eo.dnse[0-5].com"
6684
+ * 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.dnse[0-5].com"
6622
6685
  */
6623
6686
  SharedCNAME?: string;
6624
6687
  /**
@@ -6940,9 +7003,9 @@ export interface CreateSharedCNAMERequest {
6940
7003
  /**
6941
7004
  * 共享 CNAME 前缀。请输入合法的域名前缀,例如"test-api"、"test-api.com",限制输入 50 个字符。
6942
7005
 
6943
- 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.eo.dnse[0-5].com"。
7006
+ 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.dnse[0-5].com"。
6944
7007
 
6945
- 例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.eo.dnse2.com
7008
+ 例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.dnse2.com
6946
7009
  */
6947
7010
  SharedCNAMEPrefix: string;
6948
7011
  /**
@@ -513,7 +513,7 @@ Waf CC V2 Query接口
513
513
  /**
514
514
  * 根据多条件查询CC规则
515
515
  */
516
- DescribeCCRuleList(req?: DescribeCCRuleListRequest, cb?: (error: string, rep: DescribeCCRuleListResponse) => void): Promise<DescribeCCRuleListResponse>;
516
+ DescribeCCRuleList(req: DescribeCCRuleListRequest, cb?: (error: string, rep: DescribeCCRuleListResponse) => void): Promise<DescribeCCRuleListResponse>;
517
517
  /**
518
518
  * clb-waf中添加防护域名
519
519
  */
@@ -7441,7 +7441,32 @@ export interface DescribeDomainRulesResponse {
7441
7441
  /**
7442
7442
  * DescribeCCRuleList请求参数结构体
7443
7443
  */
7444
- export declare type DescribeCCRuleListRequest = null;
7444
+ export interface DescribeCCRuleListRequest {
7445
+ /**
7446
+ * 需要查询的API所属的域名
7447
+ */
7448
+ Domain: string;
7449
+ /**
7450
+ * 偏移
7451
+ */
7452
+ Offset: number;
7453
+ /**
7454
+ * 容量
7455
+ */
7456
+ Limit: number;
7457
+ /**
7458
+ * 目前支持根据ts_version排序
7459
+ */
7460
+ By: string;
7461
+ /**
7462
+ * 过滤数组,name可以是如下的值: RuleID,ParamName,Url,Action,Method,Source,Status
7463
+ */
7464
+ Filters?: Array<FiltersItemNew>;
7465
+ /**
7466
+ * asc或者desc
7467
+ */
7468
+ Order?: string;
7469
+ }
7445
7470
  /**
7446
7471
  * DescribeDomainVerifyResult返回参数结构体
7447
7472
  */
@@ -568,6 +568,16 @@ it("cls.v20201016.DeleteConfigExtra", async function () {
568
568
  }
569
569
  })
570
570
 
571
+ it("cls.v20201016.CheckFunction", async function () {
572
+ try {
573
+ const data = await client.CheckFunction({})
574
+ expect(data).to.be.ok
575
+ } catch(error) {
576
+ expect(error.requestId).to.be.ok
577
+ expect(error.code).to.be.ok
578
+ }
579
+ })
580
+
571
581
  it("cls.v20201016.DeleteAlarm", async function () {
572
582
  try {
573
583
  const data = await client.DeleteAlarm({})
@@ -618,6 +618,16 @@ it("ess.v20201111.CancelUserAutoSignEnableUrl", async function () {
618
618
  }
619
619
  })
620
620
 
621
+ it("ess.v20201111.DescribeBillUsageDetail", async function () {
622
+ try {
623
+ const data = await client.DescribeBillUsageDetail({})
624
+ expect(data).to.be.ok
625
+ } catch(error) {
626
+ expect(error.requestId).to.be.ok
627
+ expect(error.code).to.be.ok
628
+ }
629
+ })
630
+
621
631
  it("ess.v20201111.DescribeIntegrationDepartments", async function () {
622
632
  try {
623
633
  const data = await client.DescribeIntegrationDepartments({})
@@ -18,6 +18,16 @@ const client = new tencentcloud.mna.v20210119.Client({
18
18
  })
19
19
  describe("mna.v20210119.test.js", function () {
20
20
 
21
+ it("mna.v20210119.GetNetMonitor", async function () {
22
+ try {
23
+ const data = await client.GetNetMonitor({})
24
+ expect(data).to.be.ok
25
+ } catch(error) {
26
+ expect(error.requestId).to.be.ok
27
+ expect(error.code).to.be.ok
28
+ }
29
+ })
30
+
21
31
  it("mna.v20210119.GetStatisticData", async function () {
22
32
  try {
23
33
  const data = await client.GetStatisticData({})
@@ -238,6 +238,16 @@ it("teo.v20220901.DescribeAvailablePlans", async function () {
238
238
  }
239
239
  })
240
240
 
241
+ it("teo.v20220901.BindSharedCNAME", async function () {
242
+ try {
243
+ const data = await client.BindSharedCNAME({})
244
+ expect(data).to.be.ok
245
+ } catch(error) {
246
+ expect(error.requestId).to.be.ok
247
+ expect(error.code).to.be.ok
248
+ }
249
+ })
250
+
241
251
  it("teo.v20220901.IdentifyZone", async function () {
242
252
  try {
243
253
  const data = await client.IdentifyZone({})
@@ -248,6 +258,16 @@ it("teo.v20220901.IdentifyZone", async function () {
248
258
  }
249
259
  })
250
260
 
261
+ it("teo.v20220901.ModifyAliasDomainStatus", async function () {
262
+ try {
263
+ const data = await client.ModifyAliasDomainStatus({})
264
+ expect(data).to.be.ok
265
+ } catch(error) {
266
+ expect(error.requestId).to.be.ok
267
+ expect(error.code).to.be.ok
268
+ }
269
+ })
270
+
251
271
  it("teo.v20220901.DescribeOriginProtection", async function () {
252
272
  try {
253
273
  const data = await client.DescribeOriginProtection({})
@@ -408,9 +428,9 @@ it("teo.v20220901.ModifyZoneStatus", async function () {
408
428
  }
409
429
  })
410
430
 
411
- it("teo.v20220901.ModifyAliasDomainStatus", async function () {
431
+ it("teo.v20220901.DescribeOriginGroup", async function () {
412
432
  try {
413
- const data = await client.ModifyAliasDomainStatus({})
433
+ const data = await client.DescribeOriginGroup({})
414
434
  expect(data).to.be.ok
415
435
  } catch(error) {
416
436
  expect(error.requestId).to.be.ok
@@ -508,9 +528,9 @@ it("teo.v20220901.DescribeDDoSAttackData", async function () {
508
528
  }
509
529
  })
510
530
 
511
- it("teo.v20220901.DescribeDDoSAttackEvent", async function () {
531
+ it("teo.v20220901.DeleteSharedCNAME", async function () {
512
532
  try {
513
- const data = await client.DescribeDDoSAttackEvent({})
533
+ const data = await client.DeleteSharedCNAME({})
514
534
  expect(data).to.be.ok
515
535
  } catch(error) {
516
536
  expect(error.requestId).to.be.ok
@@ -638,9 +658,9 @@ it("teo.v20220901.CreateApplicationProxy", async function () {
638
658
  }
639
659
  })
640
660
 
641
- it("teo.v20220901.DescribeOriginGroup", async function () {
661
+ it("teo.v20220901.DescribeDDoSAttackEvent", async function () {
642
662
  try {
643
- const data = await client.DescribeOriginGroup({})
663
+ const data = await client.DescribeDDoSAttackEvent({})
644
664
  expect(data).to.be.ok
645
665
  } catch(error) {
646
666
  expect(error.requestId).to.be.ok