tencentcloud-sdk-nodejs 4.0.626 → 4.0.628

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 (84) hide show
  1. package/CHANGELOG.md +398 -0
  2. package/SERVICE_CHANGELOG.md +466 -118
  3. package/package.json +1 -1
  4. package/products.md +24 -24
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdb/v20170320/cdb_client.ts +18 -6
  7. package/src/services/cdb/v20170320/cdb_models.ts +28 -0
  8. package/src/services/cdn/v20180606/cdn_client.ts +16 -0
  9. package/src/services/cdn/v20180606/cdn_models.ts +28 -0
  10. package/src/services/ckafka/v20190819/ckafka_client.ts +26 -12
  11. package/src/services/ckafka/v20190819/ckafka_models.ts +262 -125
  12. package/src/services/clb/v20180317/clb_models.ts +1 -1
  13. package/src/services/cynosdb/v20190107/cynosdb_client.ts +26 -1
  14. package/src/services/cynosdb/v20190107/cynosdb_models.ts +75 -8
  15. package/src/services/emr/v20190103/emr_models.ts +2 -2
  16. package/src/services/ess/v20201111/ess_models.ts +4 -4
  17. package/src/services/essbasic/v20210526/essbasic_models.ts +4 -36
  18. package/src/services/ocr/v20181119/ocr_models.ts +2 -2
  19. package/src/services/postgres/v20170312/postgres_models.ts +5 -5
  20. package/src/services/sqlserver/v20180328/sqlserver_client.ts +1 -0
  21. package/src/services/sqlserver/v20180328/sqlserver_models.ts +33 -2
  22. package/src/services/tbaas/v20180416/tbaas_client.ts +21 -107
  23. package/src/services/tbaas/v20180416/tbaas_models.ts +192 -516
  24. package/src/services/tbp/v20190311/tbp_models.ts +5 -5
  25. package/src/services/tdid/v20210519/tdid_client.ts +102 -506
  26. package/src/services/tdid/v20210519/tdid_models.ts +419 -1855
  27. package/src/services/tdmq/v20200217/tdmq_models.ts +2 -2
  28. package/src/services/tione/v20211111/tione_models.ts +10 -0
  29. package/src/services/tke/v20180525/tke_client.ts +1 -1
  30. package/src/services/tke/v20180525/tke_models.ts +4 -4
  31. package/src/services/trp/v20210515/trp_client.ts +1 -0
  32. package/src/services/trp/v20210515/trp_models.ts +152 -40
  33. package/src/services/vod/v20180717/vod_client.ts +127 -41
  34. package/src/services/vod/v20180717/vod_models.ts +939 -164
  35. package/src/services/yinsuda/v20220527/yinsuda_client.ts +13 -0
  36. package/src/services/yinsuda/v20220527/yinsuda_models.ts +87 -0
  37. package/tencentcloud/common/sdk_version.d.ts +1 -1
  38. package/tencentcloud/common/sdk_version.js +1 -1
  39. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +7 -3
  40. package/tencentcloud/services/cdb/v20170320/cdb_client.js +9 -3
  41. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +26 -0
  42. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +9 -1
  43. package/tencentcloud/services/cdn/v20180606/cdn_client.js +10 -0
  44. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +26 -0
  45. package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +7 -3
  46. package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +9 -3
  47. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +257 -124
  48. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
  49. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +9 -1
  50. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +12 -0
  51. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +70 -8
  52. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +2 -2
  53. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -4
  54. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +4 -36
  55. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +2 -2
  56. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +5 -5
  57. package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +32 -2
  58. package/tencentcloud/services/tbaas/v20180416/tbaas_client.d.ts +3 -39
  59. package/tencentcloud/services/tbaas/v20180416/tbaas_client.js +3 -51
  60. package/tencentcloud/services/tbaas/v20180416/tbaas_models.d.ts +193 -503
  61. package/tencentcloud/services/tbp/v20190311/tbp_models.d.ts +5 -5
  62. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +25 -195
  63. package/tencentcloud/services/tdid/v20210519/tdid_client.js +36 -262
  64. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +415 -1785
  65. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +2 -2
  66. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +10 -0
  67. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +1 -1
  68. package/tencentcloud/services/tke/v20180525/tke_client.js +1 -1
  69. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +4 -4
  70. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +151 -40
  71. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +33 -13
  72. package/tencentcloud/services/vod/v20180717/vod_client.js +47 -17
  73. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +909 -170
  74. package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.d.ts +5 -1
  75. package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.js +6 -0
  76. package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +84 -0
  77. package/test/cdb.v20170320.test.js +12 -2
  78. package/test/cdn.v20180606.test.js +10 -0
  79. package/test/ckafka.v20190819.test.js +12 -2
  80. package/test/cynosdb.v20190107.test.js +20 -0
  81. package/test/tbaas.v20180416.test.js +2 -62
  82. package/test/tdid.v20210519.test.js +30 -310
  83. package/test/vod.v20180717.test.js +66 -16
  84. package/test/yinsuda.v20220527.test.js +10 -0
@@ -1,6 +1,6 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { ApplyChorusResponse, DescribeKTVSuggestionsResponse, DestroyKTVRobotResponse, CreateKTVRobotRequest, SyncKTVRobotCommandRequest, DescribeKTVPlaylistDetailRequest, SyncKTVRobotCommandResponse, CreateKTVRobotResponse, DescribeKTVSuggestionsRequest, DescribeKTVMatchMusicsRequest, DescribeKTVPlaylistsResponse, RechargeLiveVipResponse, DescribeKTVPlaylistsRequest, DescribeKTVPlaylistDetailResponse, DescribeLiveVipTradeInfosRequest, DescribeKTVRobotsResponse, BatchDescribeKTVMusicDetailsRequest, DescribeKTVMusicsByTagResponse, DescribeLiveVipTradeInfosResponse, SearchKTVMusicsResponse, DescribeKTVMatchMusicsResponse, DescribeKTVTagsResponse, RechargeLiveVipRequest, ApplyChorusRequest, BatchDescribeKTVMusicDetailsResponse, DescribeKTVMusicsByTagRequest, SearchKTVMusicsRequest, DescribeUserInfoRequest, DestroyKTVRobotRequest, DescribeUserInfoResponse, DescribeKTVRobotsRequest, DescribeKTVTagsRequest } from "./yinsuda_models";
3
+ import { ApplyChorusResponse, DescribeKTVSuggestionsResponse, DestroyKTVRobotResponse, CreateKTVRobotRequest, SyncKTVRobotCommandRequest, DescribeKTVPlaylistDetailRequest, SyncKTVRobotCommandResponse, CreateKTVRobotResponse, DescribeKTVSuggestionsRequest, DescribeKTVMatchMusicsRequest, DescribeKTVPlaylistsResponse, RechargeLiveVipResponse, DescribeKTVPlaylistsRequest, DescribeKTVPlaylistDetailResponse, DescribeLiveVipTradeInfosRequest, DescribeKTVRobotsResponse, DescribeKTVMusicAccompanySegmentUrlRequest, BatchDescribeKTVMusicDetailsRequest, DescribeKTVMusicsByTagResponse, DescribeLiveVipTradeInfosResponse, SearchKTVMusicsResponse, DescribeKTVMatchMusicsResponse, DescribeKTVTagsResponse, RechargeLiveVipRequest, ApplyChorusRequest, BatchDescribeKTVMusicDetailsResponse, DescribeKTVMusicsByTagRequest, SearchKTVMusicsRequest, DescribeKTVMusicAccompanySegmentUrlResponse, DescribeUserInfoRequest, DestroyKTVRobotRequest, DescribeUserInfoResponse, DescribeKTVRobotsRequest, DescribeKTVTagsRequest } from "./yinsuda_models";
4
4
  /**
5
5
  * yinsuda client
6
6
  * @class
@@ -59,6 +59,10 @@ export declare class Client extends AbstractClient {
59
59
  * 获取机器人列表,支持 Id、状态等过滤条件。
60
60
  */
61
61
  DescribeKTVRobots(req: DescribeKTVRobotsRequest, cb?: (error: string, rep: DescribeKTVRobotsResponse) => void): Promise<DescribeKTVRobotsResponse>;
62
+ /**
63
+ * 获取歌曲伴奏片段链接,可用于抢唱
64
+ */
65
+ DescribeKTVMusicAccompanySegmentUrl(req: DescribeKTVMusicAccompanySegmentUrlRequest, cb?: (error: string, rep: DescribeKTVMusicAccompanySegmentUrlResponse) => void): Promise<DescribeKTVMusicAccompanySegmentUrlResponse>;
62
66
  /**
63
67
  * 根据输入的规则匹配曲库中的歌曲。
64
68
  */
@@ -105,6 +105,12 @@ class Client extends abstract_client_1.AbstractClient {
105
105
  async DescribeKTVRobots(req, cb) {
106
106
  return this.request("DescribeKTVRobots", req, cb);
107
107
  }
108
+ /**
109
+ * 获取歌曲伴奏片段链接,可用于抢唱
110
+ */
111
+ async DescribeKTVMusicAccompanySegmentUrl(req, cb) {
112
+ return this.request("DescribeKTVMusicAccompanySegmentUrl", req, cb);
113
+ }
108
114
  /**
109
115
  * 根据输入的规则匹配曲库中的歌曲。
110
116
  */
@@ -487,6 +487,21 @@ export interface TRTCJoinRoomInput {
487
487
  */
488
488
  UserId: string;
489
489
  }
490
+ /**
491
+ * 其它片段时间(可用于抢唱)
492
+ */
493
+ export interface KTVOtherSegments {
494
+ /**
495
+ * 片段开始时间
496
+ 注意:此字段可能返回 null,表示取不到有效值。
497
+ */
498
+ SegmentBegin?: number;
499
+ /**
500
+ * 片段结束时间
501
+ 注意:此字段可能返回 null,表示取不到有效值。
502
+ */
503
+ SegmentEnd?: number;
504
+ }
490
505
  /**
491
506
  * DescribeKTVRobots返回参数结构体
492
507
  */
@@ -504,6 +519,32 @@ export interface DescribeKTVRobotsResponse {
504
519
  */
505
520
  RequestId?: string;
506
521
  }
522
+ /**
523
+ * DescribeKTVMusicAccompanySegmentUrl请求参数结构体
524
+ */
525
+ export interface DescribeKTVMusicAccompanySegmentUrlRequest {
526
+ /**
527
+ * 应用名称。
528
+ */
529
+ AppName: string;
530
+ /**
531
+ * 用户标识。
532
+ */
533
+ UserId: string;
534
+ /**
535
+ * 歌曲 Id 。
536
+ */
537
+ MusicId: string;
538
+ /**
539
+ * 播放场景。默认为Chat
540
+ <li>Live:直播</li><li>Chat:语聊</li>
541
+ */
542
+ PlayScene?: string;
543
+ /**
544
+ * 房间Id
545
+ */
546
+ RoomId?: string;
547
+ }
507
548
  /**
508
549
  * 标签分组信息。
509
550
  */
@@ -1060,6 +1101,49 @@ export interface TimeRange {
1060
1101
  */
1061
1102
  After?: string;
1062
1103
  }
1104
+ /**
1105
+ * DescribeKTVMusicAccompanySegmentUrl返回参数结构体
1106
+ */
1107
+ export interface DescribeKTVMusicAccompanySegmentUrlResponse {
1108
+ /**
1109
+ * 歌曲状态。
1110
+ 0:可用
1111
+ 1:下线
1112
+ 2:没权限
1113
+ 3:没伴奏
1114
+ 当返回2时,其他参数有可能全部为空
1115
+ */
1116
+ Status?: number;
1117
+ /**
1118
+ * 伴奏链接
1119
+ */
1120
+ Url?: string;
1121
+ /**
1122
+ * 伴奏类型,如mkv,mp3等
1123
+ */
1124
+ ExtName?: string;
1125
+ /**
1126
+ * 高潮开始时间
1127
+ */
1128
+ SegmentBegin?: number;
1129
+ /**
1130
+ * 高潮结束时间
1131
+ */
1132
+ SegmentEnd?: number;
1133
+ /**
1134
+ * 链接文件大小 单位 字节
1135
+ */
1136
+ FileSize?: number;
1137
+ /**
1138
+ * 其它片段时间(可用于抢唱)
1139
+ 注意:此字段可能返回 null,表示取不到有效值。
1140
+ */
1141
+ OtherSegments?: Array<KTVOtherSegments>;
1142
+ /**
1143
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1144
+ */
1145
+ RequestId?: string;
1146
+ }
1063
1147
  /**
1064
1148
  * 歌单基础信息。
1065
1149
  */
@@ -358,6 +358,16 @@ it("cdb.v20170320.SwitchDBInstanceMasterSlave", async function () {
358
358
  }
359
359
  })
360
360
 
361
+ it("cdb.v20170320.DeleteAuditPolicy", async function () {
362
+ try {
363
+ const data = await client.DeleteAuditPolicy({})
364
+ expect(data).to.be.ok
365
+ } catch(error) {
366
+ expect(error.requestId).to.be.ok
367
+ expect(error.code).to.be.ok
368
+ }
369
+ })
370
+
361
371
  it("cdb.v20170320.DisassociateSecurityGroups", async function () {
362
372
  try {
363
373
  const data = await client.DisassociateSecurityGroups({})
@@ -578,9 +588,9 @@ it("cdb.v20170320.CreateCdbProxyAddress", async function () {
578
588
  }
579
589
  })
580
590
 
581
- it("cdb.v20170320.DeleteAuditPolicy", async function () {
591
+ it("cdb.v20170320.CreateDatabase", async function () {
582
592
  try {
583
- const data = await client.DeleteAuditPolicy({})
593
+ const data = await client.CreateDatabase({})
584
594
  expect(data).to.be.ok
585
595
  } catch(error) {
586
596
  expect(error.requestId).to.be.ok
@@ -28,6 +28,16 @@ it("cdn.v20180606.AddCLSTopicDomains", async function () {
28
28
  }
29
29
  })
30
30
 
31
+ it("cdn.v20180606.ModifyDomainConfig", async function () {
32
+ try {
33
+ const data = await client.ModifyDomainConfig({})
34
+ expect(data).to.be.ok
35
+ } catch(error) {
36
+ expect(error.requestId).to.be.ok
37
+ expect(error.code).to.be.ok
38
+ }
39
+ })
40
+
31
41
  it("cdn.v20180606.DescribeIpStatus", async function () {
32
42
  try {
33
43
  const data = await client.DescribeIpStatus({})
@@ -228,6 +228,16 @@ it("ckafka.v20190819.DescribeInstances", async function () {
228
228
  }
229
229
  })
230
230
 
231
+ it("ckafka.v20190819.DescribeTopicSyncReplica", async function () {
232
+ try {
233
+ const data = await client.DescribeTopicSyncReplica({})
234
+ expect(data).to.be.ok
235
+ } catch(error) {
236
+ expect(error.requestId).to.be.ok
237
+ expect(error.code).to.be.ok
238
+ }
239
+ })
240
+
231
241
  it("ckafka.v20190819.CreateRoute", async function () {
232
242
  try {
233
243
  const data = await client.CreateRoute({})
@@ -638,9 +648,9 @@ it("ckafka.v20190819.BatchModifyGroupOffsets", async function () {
638
648
  }
639
649
  })
640
650
 
641
- it("ckafka.v20190819.DescribeTopicSyncReplica", async function () {
651
+ it("ckafka.v20190819.CreatePostPaidInstance", async function () {
642
652
  try {
643
- const data = await client.DescribeTopicSyncReplica({})
653
+ const data = await client.CreatePostPaidInstance({})
644
654
  expect(data).to.be.ok
645
655
  } catch(error) {
646
656
  expect(error.requestId).to.be.ok
@@ -128,6 +128,16 @@ it("cynosdb.v20190107.CloseAuditService", async function () {
128
128
  }
129
129
  })
130
130
 
131
+ it("cynosdb.v20190107.DescribeSupportProxyVersion", async function () {
132
+ try {
133
+ const data = await client.DescribeSupportProxyVersion({})
134
+ expect(data).to.be.ok
135
+ } catch(error) {
136
+ expect(error.requestId).to.be.ok
137
+ expect(error.code).to.be.ok
138
+ }
139
+ })
140
+
131
141
  it("cynosdb.v20190107.CreateAuditLogFile", async function () {
132
142
  try {
133
143
  const data = await client.CreateAuditLogFile({})
@@ -158,6 +168,16 @@ it("cynosdb.v20190107.CloseProxy", async function () {
158
168
  }
159
169
  })
160
170
 
171
+ it("cynosdb.v20190107.DescribeProxySpecs", async function () {
172
+ try {
173
+ const data = await client.DescribeProxySpecs({})
174
+ expect(data).to.be.ok
175
+ } catch(error) {
176
+ expect(error.requestId).to.be.ok
177
+ expect(error.code).to.be.ok
178
+ }
179
+ })
180
+
161
181
  it("cynosdb.v20190107.DescribeClusterDetail", async function () {
162
182
  try {
163
183
  const data = await client.DescribeClusterDetail({})
@@ -18,16 +18,6 @@ const client = new tencentcloud.tbaas.v20180416.Client({
18
18
  })
19
19
  describe("tbaas.v20180416.test.js", function () {
20
20
 
21
- it("tbaas.v20180416.InvokeBcosTrans", async function () {
22
- try {
23
- const data = await client.InvokeBcosTrans({})
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("tbaas.v20180416.QueryChainMakerTransaction", async function () {
32
22
  try {
33
23
  const data = await client.QueryChainMakerTransaction({})
@@ -38,16 +28,6 @@ it("tbaas.v20180416.QueryChainMakerTransaction", async function () {
38
28
  }
39
29
  })
40
30
 
41
- it("tbaas.v20180416.GetBcosBlockByNumber", async function () {
42
- try {
43
- const data = await client.GetBcosBlockByNumber({})
44
- expect(data).to.be.ok
45
- } catch(error) {
46
- expect(error.requestId).to.be.ok
47
- expect(error.code).to.be.ok
48
- }
49
- })
50
-
51
31
  it("tbaas.v20180416.ApplyChainMakerBatchUserCert", async function () {
52
32
  try {
53
33
  const data = await client.ApplyChainMakerBatchUserCert({})
@@ -68,9 +48,9 @@ it("tbaas.v20180416.GetChaincodeLogForUser", async function () {
68
48
  }
69
49
  })
70
50
 
71
- it("tbaas.v20180416.GetBcosTransByHash", async function () {
51
+ it("tbaas.v20180416.QueryChainMakerDemoTransaction", async function () {
72
52
  try {
73
- const data = await client.GetBcosTransByHash({})
53
+ const data = await client.QueryChainMakerDemoTransaction({})
74
54
  expect(data).to.be.ok
75
55
  } catch(error) {
76
56
  expect(error.requestId).to.be.ok
@@ -88,16 +68,6 @@ it("tbaas.v20180416.GetClusterListForUser", async function () {
88
68
  }
89
69
  })
90
70
 
91
- it("tbaas.v20180416.GetBcosBlockList", async function () {
92
- try {
93
- const data = await client.GetBcosBlockList({})
94
- expect(data).to.be.ok
95
- } catch(error) {
96
- expect(error.requestId).to.be.ok
97
- expect(error.code).to.be.ok
98
- }
99
- })
100
-
101
71
  it("tbaas.v20180416.QueryChainMakerContract", async function () {
102
72
  try {
103
73
  const data = await client.QueryChainMakerContract({})
@@ -148,16 +118,6 @@ it("tbaas.v20180416.GetPeerLogForUser", async function () {
148
118
  }
149
119
  })
150
120
 
151
- it("tbaas.v20180416.DeployDynamicBcosContract", async function () {
152
- try {
153
- const data = await client.DeployDynamicBcosContract({})
154
- expect(data).to.be.ok
155
- } catch(error) {
156
- expect(error.requestId).to.be.ok
157
- expect(error.code).to.be.ok
158
- }
159
- })
160
-
161
121
  it("tbaas.v20180416.GetLatestTransactionList", async function () {
162
122
  try {
163
123
  const data = await client.GetLatestTransactionList({})
@@ -188,16 +148,6 @@ it("tbaas.v20180416.CreateChaincodeAndInstallForUser", async function () {
188
148
  }
189
149
  })
190
150
 
191
- it("tbaas.v20180416.QueryChainMakerDemoTransaction", async function () {
192
- try {
193
- const data = await client.QueryChainMakerDemoTransaction({})
194
- expect(data).to.be.ok
195
- } catch(error) {
196
- expect(error.requestId).to.be.ok
197
- expect(error.code).to.be.ok
198
- }
199
- })
200
-
201
151
  it("tbaas.v20180416.GetLatesdTransactionList", async function () {
202
152
  try {
203
153
  const data = await client.GetLatesdTransactionList({})
@@ -308,16 +258,6 @@ it("tbaas.v20180416.SrvInvoke", async function () {
308
258
  }
309
259
  })
310
260
 
311
- it("tbaas.v20180416.GetBcosTransList", async function () {
312
- try {
313
- const data = await client.GetBcosTransList({})
314
- expect(data).to.be.ok
315
- } catch(error) {
316
- expect(error.requestId).to.be.ok
317
- expect(error.code).to.be.ok
318
- }
319
- })
320
-
321
261
  it("tbaas.v20180416.InvokeChainMakerDemoContract", async function () {
322
262
  try {
323
263
  const data = await client.InvokeChainMakerDemoContract({})