tencentcloud-sdk-nodejs 4.0.509 → 4.0.511

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 (51) hide show
  1. package/CHANGELOG.md +210 -0
  2. package/README.md +2 -2
  3. package/SERVICE_CHANGELOG.md +237 -110
  4. package/examples/cvm_role.js +4 -3
  5. package/examples/cvm_role.ts +28 -0
  6. package/package.json +1 -1
  7. package/products.md +15 -15
  8. package/src/common/abstract_client.ts +11 -4
  9. package/src/common/cvm_role_credential.ts +2 -2
  10. package/src/common/http/http_connection.ts +2 -2
  11. package/src/common/sdk_version.ts +1 -1
  12. package/src/services/as/v20180419/as_models.ts +1 -1
  13. package/src/services/cfg/v20210820/cfg_client.ts +1 -0
  14. package/src/services/cfg/v20210820/cfg_models.ts +43 -0
  15. package/src/services/ckafka/v20190819/ckafka_models.ts +1 -1
  16. package/src/services/dbbrain/v20210527/dbbrain_client.ts +19 -6
  17. package/src/services/dbbrain/v20210527/dbbrain_models.ts +60 -0
  18. package/src/services/dts/v20211206/dts_models.ts +2 -2
  19. package/src/services/ecm/v20190719/ecm_models.ts +2 -2
  20. package/src/services/ess/v20201111/ess_models.ts +74 -8
  21. package/src/services/essbasic/v20210526/essbasic_models.ts +75 -9
  22. package/src/services/tdmq/v20200217/tdmq_models.ts +82 -26
  23. package/src/services/teo/v20220901/teo_client.ts +32 -108
  24. package/src/services/teo/v20220901/teo_models.ts +419 -899
  25. package/src/services/trp/v20210515/trp_models.ts +30 -5
  26. package/src/services/yinsuda/v20220527/yinsuda_client.ts +3 -2
  27. package/src/services/yinsuda/v20220527/yinsuda_models.ts +79 -48
  28. package/tencentcloud/common/abstract_client.js +10 -5
  29. package/tencentcloud/common/cvm_role_credential.d.ts +2 -2
  30. package/tencentcloud/common/http/http_connection.js +2 -2
  31. package/tencentcloud/common/sdk_version.d.ts +1 -1
  32. package/tencentcloud/common/sdk_version.js +1 -1
  33. package/tencentcloud/services/as/v20180419/as_models.d.ts +1 -1
  34. package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +36 -0
  35. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +1 -1
  36. package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +7 -3
  37. package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +9 -3
  38. package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +50 -0
  39. package/tencentcloud/services/dts/v20211206/dts_models.d.ts +2 -2
  40. package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +2 -2
  41. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +74 -8
  42. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +75 -9
  43. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +72 -26
  44. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +9 -33
  45. package/tencentcloud/services/teo/v20220901/teo_client.js +12 -48
  46. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +362 -770
  47. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +25 -5
  48. package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.d.ts +1 -1
  49. package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +68 -42
  50. package/test/dbbrain.v20210527.test.js +12 -2
  51. package/test/teo.v20220901.test.js +8 -68
@@ -278,7 +278,7 @@ export interface CodePack {
278
278
  */
279
279
  Amount: number;
280
280
  /**
281
- * 码长度
281
+ * 防伪码长度
282
282
  注意:此字段可能返回 null,表示取不到有效值。
283
283
  */
284
284
  CodeLength: number;
@@ -1201,6 +1201,10 @@ export interface CreateCustomPackRequest {
1201
1201
  * 批次ID,如果传了生码后会同时绑定批次,并激活码
1202
1202
  */
1203
1203
  BatchId?: string;
1204
+ /**
1205
+ * 是否有流水码 0:无 1:有
1206
+ */
1207
+ SerialType?: number;
1204
1208
  }
1205
1209
  /**
1206
1210
  * CreateCodePack请求参数结构体
@@ -1242,6 +1246,10 @@ export interface CreateCodePackRequest {
1242
1246
  * 批次ID,如果传了生码后会同时绑定批次,并激活码
1243
1247
  */
1244
1248
  BatchId?: string;
1249
+ /**
1250
+ * 是否有流水码 0:无 1:有
1251
+ */
1252
+ SerialType?: number;
1245
1253
  }
1246
1254
  /**
1247
1255
  * CreateCodeBatch请求参数结构体
@@ -1264,7 +1272,7 @@ export interface CreateCodeBatchRequest {
1264
1272
  */
1265
1273
  BatchType?: number;
1266
1274
  /**
1267
- * 批次ID,系统自动生成
1275
+ * 批次ID,留空时系统自动生成
1268
1276
  */
1269
1277
  BatchId?: string;
1270
1278
  /**
@@ -1279,6 +1287,10 @@ export interface CreateCodeBatchRequest {
1279
1287
  * 克隆批次ID,同时会复制溯源信息
1280
1288
  */
1281
1289
  CloneId?: string;
1290
+ /**
1291
+ * 批次编号,业务字段不判断唯一性
1292
+ */
1293
+ BatchCode?: string;
1282
1294
  }
1283
1295
  /**
1284
1296
  * 溯源数据项
@@ -1761,6 +1773,10 @@ export interface ModifyCodeBatchRequest {
1761
1773
  * 备注
1762
1774
  */
1763
1775
  Remark?: string;
1776
+ /**
1777
+ * 批次编码,业务字段不判断唯一性
1778
+ */
1779
+ BatchCode?: string;
1764
1780
  }
1765
1781
  /**
1766
1782
  * DescribeProductById请求参数结构体
@@ -2102,12 +2118,12 @@ export interface Quota {
2102
2118
  */
2103
2119
  Services?: Array<string>;
2104
2120
  /**
2105
- * 工厂配额
2121
+ * 商户配额
2106
2122
  注意:此字段可能返回 null,表示取不到有效值。
2107
2123
  */
2108
2124
  FactoryQuota?: number;
2109
2125
  /**
2110
- * 产品配额
2126
+ * 商品配额
2111
2127
  注意:此字段可能返回 null,表示取不到有效值。
2112
2128
  */
2113
2129
  ItemQuota?: number;
@@ -2137,7 +2153,7 @@ export interface Quota {
2137
2153
  */
2138
2154
  TrackType?: number;
2139
2155
  /**
2140
- * 开通版本 basic standard enterprise
2156
+ * 开通版本 lite:轻量版, basic:基础版, standard:标准版
2141
2157
  注意:此字段可能返回 null,表示取不到有效值。
2142
2158
  */
2143
2159
  Version?: string;
@@ -2295,6 +2311,10 @@ export interface DescribeCodePacksRequest {
2295
2311
  * 企业ID
2296
2312
  */
2297
2313
  CorpId?: number;
2314
+ /**
2315
+ * 是否有流水码 0:无 1:有
2316
+ */
2317
+ SerialType?: number;
2298
2318
  }
2299
2319
  /**
2300
2320
  * DescribeJobFileUrl返回参数结构体
@@ -1,6 +1,6 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { DescribeKTVSuggestionsResponse, DestroyKTVRobotResponse, CreateKTVRobotRequest, SyncKTVRobotCommandRequest, DescribeKTVPlaylistDetailRequest, CreateKTVRobotResponse, DescribeKTVSuggestionsRequest, DescribeKTVMatchMusicsRequest, DescribeKTVPlaylistsResponse, DescribeKTVPlaylistsRequest, DescribeKTVPlaylistDetailResponse, DescribeKTVRobotsResponse, BatchDescribeKTVMusicDetailsRequest, DescribeKTVMusicsByTagResponse, SearchKTVMusicsResponse, DescribeKTVMatchMusicsResponse, DescribeKTVTagsResponse, SyncKTVRobotCommandResponse, BatchDescribeKTVMusicDetailsResponse, DescribeKTVMusicsByTagRequest, SearchKTVMusicsRequest, DestroyKTVRobotRequest, DescribeKTVRobotsRequest, DescribeKTVTagsRequest } from "./yinsuda_models";
3
+ import { DescribeKTVSuggestionsResponse, DestroyKTVRobotResponse, SyncKTVRobotCommandRequest, DescribeKTVPlaylistDetailRequest, CreateKTVRobotResponse, DescribeKTVSuggestionsRequest, DescribeKTVMatchMusicsRequest, DescribeKTVPlaylistsResponse, DescribeKTVPlaylistsRequest, DescribeKTVPlaylistDetailResponse, DescribeKTVRobotsResponse, BatchDescribeKTVMusicDetailsRequest, CreateKTVRobotRequest, DescribeKTVMusicsByTagResponse, SearchKTVMusicsResponse, DescribeKTVMatchMusicsResponse, DescribeKTVTagsResponse, SyncKTVRobotCommandResponse, BatchDescribeKTVMusicDetailsResponse, DescribeKTVMusicsByTagRequest, SearchKTVMusicsRequest, DestroyKTVRobotRequest, DescribeKTVRobotsRequest, DescribeKTVTagsRequest } from "./yinsuda_models";
4
4
  /**
5
5
  * yinsuda client
6
6
  * @class
@@ -76,30 +76,21 @@ export interface MusicAlbumCoverInfo {
76
76
  Url: string;
77
77
  }
78
78
  /**
79
- * CreateKTVRobot请求参数结构体
79
+ * AME 曲库歌曲基础信息。
80
80
  */
81
- export interface CreateKTVRobotRequest {
81
+ export interface AMEMusicBaseInfo {
82
82
  /**
83
- * 应用名称。
84
- */
85
- AppName: string;
86
- /**
87
- * 用户标识。
83
+ * 歌曲 Id。
88
84
  */
89
- UserId: string;
90
- /**
91
- * RTC厂商类型,取值有:
92
- <li>TRTC</li>
93
- */
94
- RTCSystem: string;
85
+ MusicId: string;
95
86
  /**
96
- * 进房参数。
87
+ * 歌曲名称。
97
88
  */
98
- JoinRoomInput: JoinRoomInput;
89
+ Name: string;
99
90
  /**
100
- * 创建机器人时初始化参数。
91
+ * 歌手列表。
101
92
  */
102
- SyncRobotCommands?: Array<SyncRobotCommand>;
93
+ SingerSet: Array<string>;
103
94
  }
104
95
  /**
105
96
  * 联想词信息。
@@ -162,6 +153,44 @@ export interface DescribeKTVPlaylistDetailRequest {
162
153
  */
163
154
  RightFilters?: Array<string>;
164
155
  }
156
+ /**
157
+ * 歌曲详细信息。
158
+ */
159
+ export interface KTVMusicDetailInfo {
160
+ /**
161
+ * 歌曲基础信息。
162
+ */
163
+ KTVMusicBaseInfo: KTVMusicBaseInfo;
164
+ /**
165
+ * 播放凭证。
166
+ */
167
+ PlayToken: string;
168
+ /**
169
+ * 歌词下载链接。
170
+ */
171
+ LyricsUrl: string;
172
+ /**
173
+ * 音高数据下载链接。
174
+ */
175
+ MidiUrl: string;
176
+ /**
177
+ * 副歌片段信息。
178
+ */
179
+ ChorusClipSet: Array<ChorusClip>;
180
+ /**
181
+ * 前奏间隔。
182
+ */
183
+ PreludeInterval: number;
184
+ /**
185
+ * 歌曲流派列表。
186
+ */
187
+ GenreSet: Array<string>;
188
+ /**
189
+ * 节拍信息。
190
+ 注意:此字段可能返回 null,表示取不到有效值。
191
+ */
192
+ BPMInfo: KTVBPMInfo;
193
+ }
165
194
  /**
166
195
  * CreateKTVRobot返回参数结构体
167
196
  */
@@ -310,6 +339,11 @@ export interface KTVMatchMusic {
310
339
  * 命中规则。
311
340
  */
312
341
  MatchRule: KTVMatchRule;
342
+ /**
343
+ * AME 歌曲基础信息,仅在使用音速达歌曲 Id 匹配 AME 曲库时有效。
344
+ 注意:此字段可能返回 null,表示取不到有效值。
345
+ */
346
+ AMEMusicBaseInfo: AMEMusicBaseInfo;
313
347
  }
314
348
  /**
315
349
  * TRTC推流进房信息
@@ -384,42 +418,30 @@ export interface BatchDescribeKTVMusicDetailsRequest {
384
418
  MusicIds: Array<string>;
385
419
  }
386
420
  /**
387
- * 歌曲详细信息。
421
+ * CreateKTVRobot请求参数结构体
388
422
  */
389
- export interface KTVMusicDetailInfo {
390
- /**
391
- * 歌曲基础信息。
392
- */
393
- KTVMusicBaseInfo: KTVMusicBaseInfo;
394
- /**
395
- * 播放凭证。
396
- */
397
- PlayToken: string;
398
- /**
399
- * 歌词下载链接。
400
- */
401
- LyricsUrl: string;
423
+ export interface CreateKTVRobotRequest {
402
424
  /**
403
- * 音高数据下载链接。
425
+ * 应用名称。
404
426
  */
405
- MidiUrl: string;
427
+ AppName: string;
406
428
  /**
407
- * 副歌片段信息。
429
+ * 用户标识。
408
430
  */
409
- ChorusClipSet: Array<ChorusClip>;
431
+ UserId: string;
410
432
  /**
411
- * 前奏间隔。
433
+ * RTC厂商类型,取值有:
434
+ <li>TRTC</li>
412
435
  */
413
- PreludeInterval: number;
436
+ RTCSystem: string;
414
437
  /**
415
- * 歌曲流派列表。
438
+ * 进房参数。
416
439
  */
417
- GenreSet: Array<string>;
440
+ JoinRoomInput: JoinRoomInput;
418
441
  /**
419
- * 节拍信息。
420
- 注意:此字段可能返回 null,表示取不到有效值。
442
+ * 创建机器人时初始化参数。
421
443
  */
422
- BPMInfo: KTVBPMInfo;
444
+ SyncRobotCommands?: Array<SyncRobotCommand>;
423
445
  }
424
446
  /**
425
447
  * DescribeKTVMusicsByTag返回参数结构体
@@ -700,6 +722,10 @@ export interface KTVMatchRule {
700
722
  注意:此字段可能返回 null,表示取不到有效值。
701
723
  */
702
724
  MusicInfo?: KTVMatchRuleMusicInfo;
725
+ /**
726
+ * 音速达歌曲 Id,用于匹配 AME 曲库歌曲。
727
+ */
728
+ MusicIdToMatchAME?: string;
703
729
  }
704
730
  /**
705
731
  * 歌曲基础信息。
@@ -268,6 +268,16 @@ it("dbbrain.v20210527.DescribeAllUserContact", async function () {
268
268
  }
269
269
  })
270
270
 
271
+ it("dbbrain.v20210527.DescribeRedisTopKeyPrefixList", async function () {
272
+ try {
273
+ const data = await client.DescribeRedisTopKeyPrefixList({})
274
+ expect(data).to.be.ok
275
+ } catch(error) {
276
+ expect(error.requestId).to.be.ok
277
+ expect(error.code).to.be.ok
278
+ }
279
+ })
280
+
271
281
  it("dbbrain.v20210527.DescribeDBDiagEvent", async function () {
272
282
  try {
273
283
  const data = await client.DescribeDBDiagEvent({})
@@ -288,9 +298,9 @@ it("dbbrain.v20210527.DescribeDBDiagHistory", async function () {
288
298
  }
289
299
  })
290
300
 
291
- it("dbbrain.v20210527.DescribeRedisTopKeyPrefixList", async function () {
301
+ it("dbbrain.v20210527.DescribeProxyProcessStatistics", async function () {
292
302
  try {
293
- const data = await client.DescribeRedisTopKeyPrefixList({})
303
+ const data = await client.DescribeProxyProcessStatistics({})
294
304
  expect(data).to.be.ok
295
305
  } catch(error) {
296
306
  expect(error.requestId).to.be.ok
@@ -18,16 +18,6 @@ const client = new tencentcloud.teo.v20220901.Client({
18
18
  })
19
19
  describe("teo.v20220901.test.js", function () {
20
20
 
21
- it("teo.v20220901.CreateDnsRecord", async function () {
22
- try {
23
- const data = await client.CreateDnsRecord({})
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
-
31
21
  it("teo.v20220901.CreatePurgeTask", async function () {
32
22
  try {
33
23
  const data = await client.CreatePurgeTask({})
@@ -108,9 +98,9 @@ it("teo.v20220901.ModifyZone", async function () {
108
98
  }
109
99
  })
110
100
 
111
- it("teo.v20220901.CreateLoadBalancing", async function () {
101
+ it("teo.v20220901.ModifyDDoSPolicyHost", async function () {
112
102
  try {
113
- const data = await client.CreateLoadBalancing({})
103
+ const data = await client.ModifyDDoSPolicyHost({})
114
104
  expect(data).to.be.ok
115
105
  } catch(error) {
116
106
  expect(error.requestId).to.be.ok
@@ -118,9 +108,9 @@ it("teo.v20220901.CreateLoadBalancing", async function () {
118
108
  }
119
109
  })
120
110
 
121
- it("teo.v20220901.ModifyDDoSPolicyHost", async function () {
111
+ it("teo.v20220901.DescribeTimingL4AccessData", async function () {
122
112
  try {
123
- const data = await client.ModifyDDoSPolicyHost({})
113
+ const data = await client.DescribeTimingL4AccessData({})
124
114
  expect(data).to.be.ok
125
115
  } catch(error) {
126
116
  expect(error.requestId).to.be.ok
@@ -508,26 +498,6 @@ it("teo.v20220901.DescribeTimingL7CacheData", async function () {
508
498
  }
509
499
  })
510
500
 
511
- it("teo.v20220901.DescribeLoadBalancing", async function () {
512
- try {
513
- const data = await client.DescribeLoadBalancing({})
514
- expect(data).to.be.ok
515
- } catch(error) {
516
- expect(error.requestId).to.be.ok
517
- expect(error.code).to.be.ok
518
- }
519
- })
520
-
521
- it("teo.v20220901.DeleteLoadBalancing", async function () {
522
- try {
523
- const data = await client.DeleteLoadBalancing({})
524
- expect(data).to.be.ok
525
- } catch(error) {
526
- expect(error.requestId).to.be.ok
527
- expect(error.code).to.be.ok
528
- }
529
- })
530
-
531
501
  it("teo.v20220901.DescribeBotData", async function () {
532
502
  try {
533
503
  const data = await client.DescribeBotData({})
@@ -608,16 +578,6 @@ it("teo.v20220901.DescribeTopL7AnalysisData", async function () {
608
578
  }
609
579
  })
610
580
 
611
- it("teo.v20220901.DeleteDnsRecords", async function () {
612
- try {
613
- const data = await client.DeleteDnsRecords({})
614
- expect(data).to.be.ok
615
- } catch(error) {
616
- expect(error.requestId).to.be.ok
617
- expect(error.code).to.be.ok
618
- }
619
- })
620
-
621
581
  it("teo.v20220901.ModifySecurityPolicy", async function () {
622
582
  try {
623
583
  const data = await client.ModifySecurityPolicy({})
@@ -788,9 +748,9 @@ it("teo.v20220901.DescribeZoneDDoSPolicy", async function () {
788
748
  }
789
749
  })
790
750
 
791
- it("teo.v20220901.ModifyLoadBalancing", async function () {
751
+ it("teo.v20220901.ModifySecurityWafGroupPolicy", async function () {
792
752
  try {
793
- const data = await client.ModifyLoadBalancing({})
753
+ const data = await client.ModifySecurityWafGroupPolicy({})
794
754
  expect(data).to.be.ok
795
755
  } catch(error) {
796
756
  expect(error.requestId).to.be.ok
@@ -798,9 +758,9 @@ it("teo.v20220901.ModifyLoadBalancing", async function () {
798
758
  }
799
759
  })
800
760
 
801
- it("teo.v20220901.ModifySecurityWafGroupPolicy", async function () {
761
+ it("teo.v20220901.DescribeDistributionL4AccessData", async function () {
802
762
  try {
803
- const data = await client.ModifySecurityWafGroupPolicy({})
763
+ const data = await client.DescribeDistributionL4AccessData({})
804
764
  expect(data).to.be.ok
805
765
  } catch(error) {
806
766
  expect(error.requestId).to.be.ok
@@ -1078,16 +1038,6 @@ it("teo.v20220901.ModifyZoneCnameSpeedUp", async function () {
1078
1038
  }
1079
1039
  })
1080
1040
 
1081
- it("teo.v20220901.ModifyDnsRecord", async function () {
1082
- try {
1083
- const data = await client.ModifyDnsRecord({})
1084
- expect(data).to.be.ok
1085
- } catch(error) {
1086
- expect(error.requestId).to.be.ok
1087
- expect(error.code).to.be.ok
1088
- }
1089
- })
1090
-
1091
1041
  it("teo.v20220901.DescribeHostsSetting", async function () {
1092
1042
  try {
1093
1043
  const data = await client.DescribeHostsSetting({})
@@ -1188,16 +1138,6 @@ it("teo.v20220901.DescribeRateLimitIntelligenceRule", async function () {
1188
1138
  }
1189
1139
  })
1190
1140
 
1191
- it("teo.v20220901.DescribeDnsRecords", async function () {
1192
- try {
1193
- const data = await client.DescribeDnsRecords({})
1194
- expect(data).to.be.ok
1195
- } catch(error) {
1196
- expect(error.requestId).to.be.ok
1197
- expect(error.code).to.be.ok
1198
- }
1199
- })
1200
-
1201
1141
  it("teo.v20220901.DescribeBotLog", async function () {
1202
1142
  try {
1203
1143
  const data = await client.DescribeBotLog({})