tencentcloud-sdk-nodejs 4.0.324 → 4.0.327

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 (93) hide show
  1. package/CHANGELOG.md +399 -0
  2. package/SERVICE_CHANGELOG.md +395 -133
  3. package/package.json +1 -1
  4. package/products.md +24 -24
  5. package/src/common/abstract_client.ts +9 -6
  6. package/src/common/http/http_connection.ts +7 -3
  7. package/src/common/interface.ts +6 -0
  8. package/src/common/sdk_version.ts +1 -1
  9. package/src/services/af/v20200226/af_models.ts +5 -0
  10. package/src/services/ame/v20190916/ame_client.ts +1 -0
  11. package/src/services/ame/v20190916/ame_models.ts +66 -0
  12. package/src/services/antiddos/v20200309/antiddos_models.ts +55 -45
  13. package/src/services/bmeip/v20180625/bmeip_models.ts +1 -1
  14. package/src/services/bmvpc/v20180625/bmvpc_models.ts +5 -5
  15. package/src/services/ccc/v20200210/ccc_client.ts +12 -0
  16. package/src/services/ccc/v20200210/ccc_models.ts +58 -8
  17. package/src/services/cdb/v20170320/cdb_client.ts +12 -0
  18. package/src/services/cdb/v20170320/cdb_models.ts +124 -19
  19. package/src/services/cdn/v20180606/cdn_client.ts +6 -4
  20. package/src/services/cdn/v20180606/cdn_models.ts +188 -53
  21. package/src/services/ckafka/v20190819/ckafka_models.ts +6 -5
  22. package/src/services/cls/v20201016/cls_client.ts +1 -1
  23. package/src/services/cpdp/v20190820/cpdp_client.ts +136 -38
  24. package/src/services/cpdp/v20190820/cpdp_models.ts +1591 -229
  25. package/src/services/cvm/v20170312/cvm_models.ts +6 -0
  26. package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +13 -1
  27. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +46 -6
  28. package/src/services/ivld/v20210903/ivld_client.ts +3 -3
  29. package/src/services/ses/v20201002/ses_models.ts +5 -5
  30. package/src/services/sms/v20210111/sms_models.ts +1 -1
  31. package/src/services/ssa/v20180608/ssa_client.ts +18 -2
  32. package/src/services/ssa/v20180608/ssa_models.ts +291 -64
  33. package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
  34. package/src/services/thpc/v20211109/thpc_models.ts +2 -2
  35. package/src/services/tiia/v20190529/tiia_client.ts +29 -9
  36. package/src/services/tiia/v20190529/tiia_models.ts +64 -23
  37. package/src/services/vpc/v20170312/vpc_client.ts +1 -0
  38. package/src/services/waf/v20180125/waf_client.ts +271 -80
  39. package/src/services/waf/v20180125/waf_models.ts +973 -103
  40. package/tencentcloud/common/abstract_client.d.ts +3 -3
  41. package/tencentcloud/common/abstract_client.js +5 -3
  42. package/tencentcloud/common/http/http_connection.d.ts +4 -2
  43. package/tencentcloud/common/http/http_connection.js +5 -5
  44. package/tencentcloud/common/interface.d.ts +6 -0
  45. package/tencentcloud/common/sdk_version.d.ts +1 -1
  46. package/tencentcloud/common/sdk_version.js +1 -1
  47. package/tencentcloud/services/af/v20200226/af_models.d.ts +4 -0
  48. package/tencentcloud/services/ame/v20190916/ame_models.d.ts +56 -0
  49. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +52 -44
  50. package/tencentcloud/services/bmeip/v20180625/bmeip_models.d.ts +1 -1
  51. package/tencentcloud/services/bmvpc/v20180625/bmvpc_models.d.ts +5 -5
  52. package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +5 -1
  53. package/tencentcloud/services/ccc/v20200210/ccc_client.js +6 -0
  54. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +50 -8
  55. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +5 -1
  56. package/tencentcloud/services/cdb/v20170320/cdb_client.js +6 -0
  57. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +105 -19
  58. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
  59. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +159 -46
  60. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -4
  61. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  62. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  63. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +39 -11
  64. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +57 -15
  65. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +1328 -174
  66. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +5 -0
  67. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +5 -1
  68. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +6 -0
  69. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +40 -6
  70. package/tencentcloud/services/ivld/v20210903/ivld_client.d.ts +3 -3
  71. package/tencentcloud/services/ivld/v20210903/ivld_client.js +3 -3
  72. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +5 -5
  73. package/tencentcloud/services/sms/v20210111/sms_models.d.ts +1 -1
  74. package/tencentcloud/services/ssa/v20180608/ssa_client.d.ts +6 -2
  75. package/tencentcloud/services/ssa/v20180608/ssa_client.js +6 -0
  76. package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +249 -58
  77. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
  78. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -2
  79. package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +16 -4
  80. package/tencentcloud/services/tiia/v20190529/tiia_client.js +18 -4
  81. package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +57 -21
  82. package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -0
  83. package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -0
  84. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +91 -27
  85. package/tencentcloud/services/waf/v20180125/waf_client.js +133 -39
  86. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +810 -77
  87. package/test/ccc.v20200210.test.js +10 -0
  88. package/test/cdb.v20170320.test.js +10 -0
  89. package/test/cpdp.v20190820.test.js +80 -10
  90. package/test/iotexplorer.v20190423.test.js +10 -0
  91. package/test/ssa.v20180608.test.js +10 -0
  92. package/test/tiia.v20190529.test.js +12 -2
  93. package/test/waf.v20180125.test.js +176 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.0.324",
3
+ "version": "4.0.327",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -3,11 +3,11 @@
3
3
  | aa | [活动防刷](https://cloud.tencent.com/document/product/1189) | 2022-04-04 06:03:06 |
4
4
  | aai | [](https://cloud.tencent.com/document/product) | 2019-08-08 23:15:13 |
5
5
  | advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2022-04-04 06:03:08 |
6
- | af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2022-04-04 06:03:10 |
6
+ | af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2022-04-15 06:01:22 |
7
7
  | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2022-04-04 06:03:11 |
8
- | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2022-04-04 06:03:13 |
8
+ | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2022-04-15 06:01:25 |
9
9
  | ams | [音频内容检测](https://cloud.tencent.com/document/product/1219) | 2022-04-04 06:03:33 |
10
- | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-04-08 06:01:17 |
10
+ | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-04-18 06:05:37 |
11
11
  | apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
12
12
  | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
13
13
  | api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-04-08 06:01:32 |
@@ -22,20 +22,20 @@
22
22
  | billing | [计费相关](https://cloud.tencent.com/document/product/555) | 2022-04-04 06:09:17 |
23
23
  | bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
24
24
  | bm | [黑石物理服务器1.0](https://cloud.tencent.com/document/product/386) | 2021-11-10 08:02:45 |
25
- | bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2022-04-04 06:09:29 |
25
+ | bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2022-04-15 06:02:26 |
26
26
  | bmlb | [黑石负载均衡](https://cloud.tencent.com/document/product/1027) | 2022-04-04 06:09:37 |
27
- | bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2022-04-08 06:02:22 |
27
+ | bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2022-04-15 06:02:36 |
28
28
  | bri | [业务风险情报](https://cloud.tencent.com/document/product/1064) | 2021-01-07 08:02:40 |
29
29
  | bsca | [二进制软件成分分析](https://cloud.tencent.com/document/product/1483) | 2022-04-07 06:10:43 |
30
30
  | btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2022-04-04 06:10:17 |
31
- | cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2022-04-04 06:10:24 |
31
+ | cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2022-04-15 06:02:47 |
32
32
  | captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2022-04-12 06:07:13 |
33
33
  | casb | [云数据加密代理网关](https://cloud.tencent.com/document/product/1303) | 2022-04-04 06:11:55 |
34
34
  | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-04-04 06:11:56 |
35
35
  | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-04-13 06:12:00 |
36
- | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-04-13 06:12:26 |
37
- | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-04-13 06:12:40 |
38
- | cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-04-11 06:08:14 |
36
+ | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-04-15 06:03:13 |
37
+ | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-04-18 06:07:35 |
38
+ | cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-04-18 06:07:58 |
39
39
  | cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-04-04 06:17:07 |
40
40
  | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-04-04 06:17:11 |
41
41
  | cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-04-04 06:17:16 |
@@ -44,17 +44,17 @@
44
44
  | cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-04-04 06:18:39 |
45
45
  | cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
46
46
  | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
47
- | ckafka | [消息队列 Ckafka](https://cloud.tencent.com/document/product/597) | 2022-04-13 06:18:36 |
47
+ | ckafka | [消息队列 Ckafka](https://cloud.tencent.com/document/product/597) | 2022-04-18 06:08:40 |
48
48
  | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-04-08 06:04:17 |
49
49
  | cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2022-04-04 06:21:08 |
50
50
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2022-04-04 06:21:17 |
51
- | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-04-12 06:09:41 |
51
+ | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-04-18 06:09:09 |
52
52
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-04-04 06:22:26 |
53
53
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-04-04 06:23:04 |
54
54
  | cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
55
- | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-04-04 06:23:11 |
55
+ | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-04-15 06:04:58 |
56
56
  | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
57
- | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-04-11 06:09:58 |
57
+ | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-04-15 06:05:33 |
58
58
  | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-04-04 06:27:42 |
59
59
  | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
60
60
  | cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-04-04 06:33:13 |
@@ -99,11 +99,11 @@
99
99
  | ims | [图片内容检测](https://cloud.tencent.com/document/product/1125) | 2022-04-04 06:48:07 |
100
100
  | iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2022-04-04 06:48:08 |
101
101
  | iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2022-04-01 15:20:13 |
102
- | iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-04-13 06:48:26 |
102
+ | iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-04-18 06:13:51 |
103
103
  | iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
104
104
  | iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-04-04 06:49:51 |
105
105
  | iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-04-04 06:51:27 |
106
- | ivld | [视频智能标签](https://cloud.tencent.com/document/product/1509) | 2022-04-04 06:53:04 |
106
+ | ivld | [视频智能标签](https://cloud.tencent.com/document/product/1509) | 2022-04-15 06:09:32 |
107
107
  | kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2022-04-04 06:53:19 |
108
108
  | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-04-11 06:14:18 |
109
109
  | live | [云直播](https://cloud.tencent.com/document/product/267) | 2022-04-08 06:09:47 |
@@ -135,15 +135,15 @@
135
135
  | rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-04-04 07:04:04 |
136
136
  | rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
137
137
  | rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2022-04-04 07:04:08 |
138
- | scf | [云函数](https://cloud.tencent.com/document/product/583) | 2022-04-07 07:04:48 |
139
- | ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2022-04-04 07:05:20 |
138
+ | scf | [云函数](https://cloud.tencent.com/document/product/583) | 2022-04-14 06:16:14 |
139
+ | ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2022-04-15 06:11:52 |
140
140
  | smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2022-04-04 07:05:35 |
141
141
  | smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2022-04-04 07:05:41 |
142
- | sms | [短信](https://cloud.tencent.com/document/product/382) | 2022-04-04 07:05:44 |
142
+ | sms | [短信](https://cloud.tencent.com/document/product/382) | 2022-04-14 06:16:29 |
143
143
  | soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2022-04-04 07:05:55 |
144
144
  | solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
145
145
  | sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2022-04-04 07:05:59 |
146
- | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-04-13 07:07:25 |
146
+ | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-04-18 06:17:42 |
147
147
  | ssl | [证书](https://cloud.tencent.com/document/product/400) | 2022-04-04 07:07:38 |
148
148
  | sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2022-04-04 07:07:55 |
149
149
  | ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-04-04 07:08:00 |
@@ -152,7 +152,7 @@
152
152
  | tag | [标签](https://cloud.tencent.com/document/product/651) | 2022-04-08 06:12:35 |
153
153
  | tat | [腾讯云自动化助手](https://cloud.tencent.com/document/product/1340) | 2022-04-08 06:12:44 |
154
154
  | tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
155
- | tbaas | [TBaaS](https://cloud.tencent.com/document/product/663) | 2022-04-04 07:08:42 |
155
+ | tbaas | [TBaaS](https://cloud.tencent.com/document/product/663) | 2022-04-15 06:12:40 |
156
156
  | tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
157
157
  | tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2022-04-04 07:09:07 |
158
158
  | tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2022-04-08 06:12:54 |
@@ -164,7 +164,7 @@
164
164
  | tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-04-12 06:21:48 |
165
165
  | tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-04-04 07:15:36 |
166
166
  | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-04-04 07:15:50 |
167
- | tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-04-13 07:16:01 |
167
+ | tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-04-14 06:18:12 |
168
168
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2022-04-04 07:16:34 |
169
169
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-04-04 11:19:56 |
170
170
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
@@ -172,7 +172,7 @@
172
172
  | ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
173
173
  | tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2022-04-04 07:16:59 |
174
174
  | tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-04-04 07:17:01 |
175
- | tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-04-04 07:17:16 |
175
+ | tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-04-18 06:19:48 |
176
176
  | tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-04-04 07:17:26 |
177
177
  | tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-04-04 07:17:39 |
178
178
  | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-04-08 06:14:29 |
@@ -188,8 +188,8 @@
188
188
  | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-04-04 07:22:51 |
189
189
  | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
190
190
  | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-04-13 07:24:51 |
191
- | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-04-08 06:15:46 |
192
- | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-04-08 06:16:21 |
191
+ | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-04-14 06:20:04 |
192
+ | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-04-18 06:22:13 |
193
193
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-04-04 07:39:05 |
194
194
  | wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
195
195
  | youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
@@ -5,10 +5,11 @@ import { HttpConnection } from "./http/http_connection"
5
5
  import TencentCloudSDKHttpException from "./exception/tencent_cloud_sdk_exception"
6
6
  import { Response } from "node-fetch"
7
7
 
8
- type ResponseCallback = (error: string, rep: any) => void
9
- interface RequestOptions {
10
- multipart: boolean
8
+ export type ResponseCallback<TReuslt = any> = (error: string, rep: TReuslt) => void
9
+ export interface RequestOptions extends Pick<ClientProfile["httpProfile"], "headers"> {
10
+ multipart?: boolean
11
11
  }
12
+
12
13
  interface RequestData {
13
14
  Action: string
14
15
  RequestClient: string
@@ -109,7 +110,7 @@ export class AbstractClient {
109
110
  options = {} as RequestOptions
110
111
  }
111
112
  try {
112
- const result = await this.doRequest(action, req, options as RequestOptions)
113
+ const result = await this.doRequest(action, req ?? {}, options as RequestOptions)
113
114
  cb && cb(null, result)
114
115
  return result
115
116
  } catch (e) {
@@ -124,7 +125,7 @@ export class AbstractClient {
124
125
  private async doRequest(
125
126
  action: string,
126
127
  req: any,
127
- options?: RequestOptions
128
+ options: RequestOptions = {}
128
129
  ): Promise<ResponseData> {
129
130
  if (this.profile.signMethod === "TC3-HMAC-SHA256") {
130
131
  return this.doRequestWithSign3(action, req, options)
@@ -138,6 +139,7 @@ export class AbstractClient {
138
139
  url: this.profile.httpProfile.protocol + this.endpoint + this.path,
139
140
  data: params,
140
141
  timeout: this.profile.httpProfile.reqTimeout * 1000,
142
+ headers: Object.assign({}, this.profile.httpProfile.headers, options.headers),
141
143
  })
142
144
  } catch (error) {
143
145
  throw new TencentCloudSDKHttpException(error.message)
@@ -151,7 +153,7 @@ export class AbstractClient {
151
153
  private async doRequestWithSign3(
152
154
  action: string,
153
155
  params: any,
154
- options?: RequestOptions
156
+ options: RequestOptions = {}
155
157
  ): Promise<ResponseData> {
156
158
  let res
157
159
  try {
@@ -170,6 +172,7 @@ export class AbstractClient {
170
172
  token: this.credential.token,
171
173
  requestClient: this.sdkVersion,
172
174
  language: this.profile.language,
175
+ headers: Object.assign({}, this.profile.httpProfile.headers, options.headers),
173
176
  })
174
177
  } catch (e) {
175
178
  throw new TencentCloudSDKHttpException(e.message)
@@ -16,11 +16,13 @@ export class HttpConnection {
16
16
  url,
17
17
  data,
18
18
  timeout,
19
+ headers = {},
19
20
  }: {
20
21
  method: string
21
22
  url: string
22
23
  data: any
23
24
  timeout: number
25
+ headers?: Record<string, string>
24
26
  }): Promise<Response> {
25
27
  const config: {
26
28
  method: string
@@ -31,7 +33,7 @@ export class HttpConnection {
31
33
  body?: string
32
34
  } = {
33
35
  method: method,
34
- headers: {},
36
+ headers: Object.assign({}, headers),
35
37
  timeout,
36
38
  }
37
39
  if (method === "GET") {
@@ -58,6 +60,7 @@ export class HttpConnection {
58
60
  token,
59
61
  requestClient,
60
62
  language,
63
+ headers = {},
61
64
  }: {
62
65
  method: string
63
66
  url: string
@@ -73,6 +76,7 @@ export class HttpConnection {
73
76
  token: string
74
77
  requestClient: string
75
78
  language: string
79
+ headers?: Record<string, string>
76
80
  }): Promise<Response> {
77
81
  // data 中可能带有 readStream,由于需要计算整个 body 的 hash,
78
82
  // 所以这里把 readStream 转为 Buffer
@@ -104,7 +108,7 @@ export class HttpConnection {
104
108
  } = {
105
109
  method,
106
110
  timeout,
107
- headers: {
111
+ headers: Object.assign({}, headers, {
108
112
  Host: new URL(url).host,
109
113
  "X-TC-Action": action,
110
114
  "X-TC-Region": region,
@@ -112,7 +116,7 @@ export class HttpConnection {
112
116
  "X-TC-Version": version,
113
117
  "X-TC-Token": token,
114
118
  "X-TC-RequestClient": requestClient,
115
- },
119
+ }),
116
120
  }
117
121
 
118
122
  if (token === null) {
@@ -59,6 +59,12 @@ export interface ClientProfile {
59
59
  * 非必选
60
60
  */
61
61
  reqTimeout?: number
62
+ /**
63
+ * 自定义请求头,例如 { "X-TC-TraceId": "ffe0c072-8a5d-4e17-8887-a8a60252abca" }
64
+ * @type {Record<string, string>}
65
+ * 非必选
66
+ */
67
+ headers?: Record<string, string>
62
68
  }
63
69
  /**
64
70
  * api请求时附带的 language 字段
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.324"
1
+ export const sdkVersion = "4.0.327"
@@ -284,6 +284,11 @@ appid,用来唯一标识网站或应用
284
284
  1:md5
285
285
  */
286
286
  NameCryptoType?: string
287
+
288
+ /**
289
+ * 是否使用旧回包
290
+ */
291
+ OldResponseType?: string
287
292
  }
288
293
 
289
294
  /**
@@ -57,6 +57,7 @@ import {
57
57
  SearchKTVMusicsResponse,
58
58
  DescribeItemByIdRequest,
59
59
  PutMusicOnTheShelvesResponse,
60
+ SyncRobotCommand,
60
61
  DescribeKTVSingerMusicsResponse,
61
62
  DescribeItemsResponse,
62
63
  DescribePkgOfflineMusicResponse,
@@ -784,6 +784,67 @@ export interface PutMusicOnTheShelvesResponse {
784
784
  RequestId?: string
785
785
  }
786
786
 
787
+ /**
788
+ * KTV 机器人初始化参数,在创建后自动完成相关初始化工作。
789
+ */
790
+ export interface SyncRobotCommand {
791
+ /**
792
+ * 可同时传入多个指令,顺序执行。取值有:
793
+ <li>Play:播放</li>
794
+ <li>Pause:暂停</li>
795
+ <li>SwitchPrevious:上一首</li>
796
+ <li>SwitchNext:下一首</li>
797
+ <li>SetPlayMode:设置播放模式</li>
798
+ <li>Seek:调整播放进度</li>
799
+ <li>SetPlaylist:歌单变更</li>
800
+ <li>SetAudioParam:音频参数变更</li>
801
+ <li>SendMessage:发送自定义消息</li>
802
+ <li>SetDestroyMode:设置销毁模式</li>
803
+ <li>SetVolume:设置音量</li>
804
+ */
805
+ Command: string
806
+
807
+ /**
808
+ * 播放参数。
809
+ */
810
+ PlayCommandInput?: PlayCommandInput
811
+
812
+ /**
813
+ * 播放列表变更信息,当Command取SetPlaylist时,必填。
814
+ */
815
+ SetPlaylistCommandInput?: SetPlaylistCommandInput
816
+
817
+ /**
818
+ * 播放进度,当Command取Seek时,必填。
819
+ */
820
+ SeekCommandInput?: SeekCommandInput
821
+
822
+ /**
823
+ * 音频参数,当Command取SetAudioParam时,必填。
824
+ */
825
+ SetAudioParamCommandInput?: SetAudioParamCommandInput
826
+
827
+ /**
828
+ * 自定义消息,当Command取SendMessage时,必填。
829
+ */
830
+ SendMessageCommandInput?: SendMessageCommandInput
831
+
832
+ /**
833
+ * 播放模式,当Command取SetPlayMode时,必填。
834
+ */
835
+ SetPlayModeCommandInput?: SetPlayModeCommandInput
836
+
837
+ /**
838
+ * 销毁模式,当Command取SetDestroyMode时,必填。
839
+ */
840
+ SetDestroyModeCommandInput?: SetDestroyModeCommandInput
841
+
842
+ /**
843
+ * 音量,当Command取SetVolume时,必填。
844
+ */
845
+ SetVolumeCommandInput?: SetVolumeCommandInput
846
+ }
847
+
787
848
  /**
788
849
  * DescribeKTVSingerMusics返回参数结构体
789
850
  */
@@ -1088,6 +1149,11 @@ export interface CreateKTVRobotRequest {
1088
1149
  * license基础信息
1089
1150
  */
1090
1151
  ApplicationLicenseInput?: ApplicationLicenseInput
1152
+
1153
+ /**
1154
+ * 创建机器人时初始化参数。
1155
+ */
1156
+ SyncRobotCommands?: Array<SyncRobotCommand>
1091
1157
  }
1092
1158
 
1093
1159
  /**
@@ -3948,19 +3948,19 @@ export interface DescribeBizTrendResponse {
3948
3948
  */
3949
3949
  export interface NewL7RuleEntry {
3950
3950
  /**
3951
- * 会话保持时间,单位秒
3951
+ * 转发协议,取值[http, https]
3952
3952
  */
3953
- KeepTime: number
3953
+ Protocol: string
3954
3954
 
3955
3955
  /**
3956
- * 负载均衡方式,取值[1(加权轮询)]
3956
+ * 转发域名
3957
3957
  */
3958
- LbType: number
3958
+ Domain: string
3959
3959
 
3960
3960
  /**
3961
- * 回源列表
3961
+ * 负载均衡方式,取值[1(加权轮询)]
3962
3962
  */
3963
- SourceList: Array<L4RuleSource>
3963
+ LbType: number
3964
3964
 
3965
3965
  /**
3966
3966
  * 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]
@@ -3968,54 +3968,54 @@ export interface NewL7RuleEntry {
3968
3968
  KeepEnable: number
3969
3969
 
3970
3970
  /**
3971
- * 转发域名
3971
+ * 会话保持时间,单位秒
3972
3972
  */
3973
- Domain: string
3973
+ KeepTime: number
3974
3974
 
3975
3975
  /**
3976
- * 转发协议,取值[http, https]
3976
+ * 回源方式,取值[1(域名回源),2(IP回源)]
3977
3977
  */
3978
- Protocol: string
3978
+ SourceType: number
3979
3979
 
3980
3980
  /**
3981
- * 回源方式,取值[1(域名回源),2(IP回源)]
3981
+ * 回源列表
3982
3982
  */
3983
- SourceType: number
3983
+ SourceList: Array<L4RuleSource>
3984
3984
 
3985
3985
  /**
3986
- * 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
3986
+ * 区域码
3987
3987
  */
3988
- HttpsToHttpEnable?: number
3988
+ Region?: number
3989
3989
 
3990
3990
  /**
3991
- * 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
3991
+ * 资源Id
3992
3992
  */
3993
- Status?: number
3993
+ Id?: string
3994
3994
 
3995
3995
  /**
3996
- * HTTPS协议的CC防护等级
3996
+ * 资源Ip
3997
3997
  */
3998
- CCLevel?: string
3998
+ Ip?: string
3999
3999
 
4000
4000
  /**
4001
- * HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
4001
+ * 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
4002
4002
  */
4003
- CCEnable?: number
4003
+ RuleId?: string
4004
4004
 
4005
4005
  /**
4006
- * HTTPS协议的CC防护阈值
4006
+ * 规则描述
4007
4007
  */
4008
- CCThreshold?: number
4008
+ RuleName?: string
4009
4009
 
4010
4010
  /**
4011
- * 区域码
4011
+ * 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
4012
4012
  */
4013
- Region?: number
4013
+ CertType?: number
4014
4014
 
4015
4015
  /**
4016
- * 规则描述
4016
+ * 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
4017
4017
  */
4018
- RuleName?: string
4018
+ SSLId?: string
4019
4019
 
4020
4020
  /**
4021
4021
  * 当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
@@ -4023,29 +4023,44 @@ export interface NewL7RuleEntry {
4023
4023
  Cert?: string
4024
4024
 
4025
4025
  /**
4026
- * 修改时间
4026
+ * 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
4027
4027
  */
4028
- ModifyTime?: string
4028
+ PrivateKey?: string
4029
4029
 
4030
4030
  /**
4031
- * 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
4031
+ * 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
4032
4032
  */
4033
- RuleId?: string
4033
+ Status?: number
4034
4034
 
4035
4035
  /**
4036
- * 资源Ip
4036
+ * cc防护状态,取值[0(关闭), 1(开启)]
4037
4037
  */
4038
- Ip?: string
4038
+ CCStatus?: number
4039
4039
 
4040
4040
  /**
4041
- * 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
4041
+ * HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
4042
4042
  */
4043
- PrivateKey?: string
4043
+ CCEnable?: number
4044
4044
 
4045
4045
  /**
4046
- * 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
4046
+ * HTTPS协议的CC防护阈值
4047
4047
  */
4048
- CertType?: number
4048
+ CCThreshold?: number
4049
+
4050
+ /**
4051
+ * HTTPS协议的CC防护等级
4052
+ */
4053
+ CCLevel?: string
4054
+
4055
+ /**
4056
+ * 修改时间
4057
+ */
4058
+ ModifyTime?: string
4059
+
4060
+ /**
4061
+ * 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
4062
+ */
4063
+ HttpsToHttpEnable?: number
4049
4064
 
4050
4065
  /**
4051
4066
  * 接入端口值
@@ -4054,19 +4069,14 @@ export interface NewL7RuleEntry {
4054
4069
  VirtualPort?: number
4055
4070
 
4056
4071
  /**
4057
- * cc防护状态,取值[0(关闭), 1(开启)]
4058
- */
4059
- CCStatus?: number
4060
-
4061
- /**
4062
- * 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
4072
+ * http强制跳转https,1表示打开,0表示关闭
4063
4073
  */
4064
- SSLId?: string
4074
+ RewriteHttps?: number
4065
4075
 
4066
4076
  /**
4067
- * 资源Id
4077
+ * 规则配置失败时的详细错误原因(仅当Status=2时有效),1001证书不存在,1002证书获取失败,1003证书上传失败,1004证书已过期
4068
4078
  */
4069
- Id?: string
4079
+ ErrCode?: number
4070
4080
  }
4071
4081
 
4072
4082
  /**
@@ -657,7 +657,7 @@ export interface DeleteEipResponse {
657
657
  /**
658
658
  * 任务Id
659
659
  */
660
- TaskId?: number
660
+ TaskId: number
661
661
 
662
662
  /**
663
663
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -823,12 +823,12 @@ export interface DescribeRoutePoliciesResponse {
823
823
  /**
824
824
  * 路由策略数
825
825
  */
826
- TotalCount?: number
826
+ TotalCount: number
827
827
 
828
828
  /**
829
829
  * 路由策略列表
830
830
  */
831
- RoutePolicySet?: Array<RoutePolicy>
831
+ RoutePolicySet: Array<RoutePolicy>
832
832
 
833
833
  /**
834
834
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -2987,7 +2987,7 @@ export interface ModifyRoutePolicyResponse {
2987
2987
  /**
2988
2988
  * 异步任务ID
2989
2989
  */
2990
- TaskId?: number
2990
+ TaskId: number
2991
2991
 
2992
2992
  /**
2993
2993
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -3062,7 +3062,7 @@ export interface CreateNatGatewayResponse {
3062
3062
  /**
3063
3063
  * 任务ID
3064
3064
  */
3065
- TaskId?: number
3065
+ TaskId: number
3066
3066
 
3067
3067
  /**
3068
3068
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -3360,7 +3360,7 @@ export interface DeleteNatGatewayResponse {
3360
3360
  /**
3361
3361
  * 任务ID
3362
3362
  */
3363
- TaskId?: number
3363
+ TaskId: number
3364
3364
 
3365
3365
  /**
3366
3366
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -55,6 +55,7 @@ import {
55
55
  CreateCallOutSessionResponse,
56
56
  IMCdrInfo,
57
57
  StaffBuyInfo,
58
+ DescribeProtectedTelCdrResponse,
58
59
  DescribeAutoCalloutTasksRequest,
59
60
  DescribeChatMessagesRequest,
60
61
  PSTNSession,
@@ -77,6 +78,7 @@ import {
77
78
  DescribeAutoCalloutTasksResponse,
78
79
  PackageBuyInfo,
79
80
  DescribeTelCdrRequest,
81
+ DescribeProtectedTelCdrRequest,
80
82
  MessageBody,
81
83
  CreateSDKLoginTokenRequest,
82
84
  DescribeTelCallInfoRequest,
@@ -299,6 +301,16 @@ export class Client extends AbstractClient {
299
301
  return this.request("CreateUserSig", req, cb)
300
302
  }
301
303
 
304
+ /**
305
+ * 获取主被叫受保护的电话服务记录与录音
306
+ */
307
+ async DescribeProtectedTelCdr(
308
+ req: DescribeProtectedTelCdrRequest,
309
+ cb?: (error: string, rep: DescribeProtectedTelCdrResponse) => void
310
+ ): Promise<DescribeProtectedTelCdrResponse> {
311
+ return this.request("DescribeProtectedTelCdr", req, cb)
312
+ }
313
+
302
314
  /**
303
315
  * 获取呼入实时数据统计指标
304
316
  */