tencentcloud-sdk-nodejs 4.0.626 → 4.0.627
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.
- package/CHANGELOG.md +144 -0
- package/SERVICE_CHANGELOG.md +192 -170
- package/package.json +1 -1
- package/products.md +9 -9
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_client.ts +18 -6
- package/src/services/cdb/v20170320/cdb_models.ts +28 -0
- package/src/services/clb/v20180317/clb_models.ts +1 -1
- package/src/services/cynosdb/v20190107/cynosdb_client.ts +13 -0
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +33 -0
- package/src/services/emr/v20190103/emr_models.ts +2 -2
- package/src/services/ocr/v20181119/ocr_models.ts +2 -2
- package/src/services/tbp/v20190311/tbp_models.ts +5 -5
- package/src/services/vod/v20180717/vod_client.ts +127 -41
- package/src/services/vod/v20180717/vod_models.ts +939 -164
- package/src/services/yinsuda/v20220527/yinsuda_client.ts +13 -0
- package/src/services/yinsuda/v20220527/yinsuda_models.ts +87 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +7 -3
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +9 -3
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +26 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +5 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +6 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +30 -0
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +2 -2
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +2 -2
- package/tencentcloud/services/tbp/v20190311/tbp_models.d.ts +5 -5
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +33 -13
- package/tencentcloud/services/vod/v20180717/vod_client.js +47 -17
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +909 -170
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.d.ts +5 -1
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.js +6 -0
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +84 -0
- package/test/cdb.v20170320.test.js +12 -2
- package/test/cynosdb.v20190107.test.js +10 -0
- package/test/vod.v20180717.test.js +66 -16
- 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.
|
|
591
|
+
it("cdb.v20170320.CreateDatabase", async function () {
|
|
582
592
|
try {
|
|
583
|
-
const data = await client.
|
|
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
|
|
@@ -158,6 +158,16 @@ it("cynosdb.v20190107.CloseProxy", async function () {
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
|
|
161
|
+
it("cynosdb.v20190107.DescribeProxySpecs", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.DescribeProxySpecs({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
161
171
|
it("cynosdb.v20190107.DescribeClusterDetail", async function () {
|
|
162
172
|
try {
|
|
163
173
|
const data = await client.DescribeClusterDetail({})
|
|
@@ -138,6 +138,16 @@ it("vod.v20180717.ProcessMediaByProcedure", async function () {
|
|
|
138
138
|
}
|
|
139
139
|
})
|
|
140
140
|
|
|
141
|
+
it("vod.v20180717.CreateQualityInspectTemplate", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.CreateQualityInspectTemplate({})
|
|
144
|
+
expect(data).to.be.ok
|
|
145
|
+
} catch(error) {
|
|
146
|
+
expect(error.requestId).to.be.ok
|
|
147
|
+
expect(error.code).to.be.ok
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
|
|
141
151
|
it("vod.v20180717.ModifyRebuildMediaTemplate", async function () {
|
|
142
152
|
try {
|
|
143
153
|
const data = await client.ModifyRebuildMediaTemplate({})
|
|
@@ -308,9 +318,9 @@ it("vod.v20180717.DescribeTasks", async function () {
|
|
|
308
318
|
}
|
|
309
319
|
})
|
|
310
320
|
|
|
311
|
-
it("vod.v20180717.
|
|
321
|
+
it("vod.v20180717.CreateStorageRegion", async function () {
|
|
312
322
|
try {
|
|
313
|
-
const data = await client.
|
|
323
|
+
const data = await client.CreateStorageRegion({})
|
|
314
324
|
expect(data).to.be.ok
|
|
315
325
|
} catch(error) {
|
|
316
326
|
expect(error.requestId).to.be.ok
|
|
@@ -448,6 +458,16 @@ it("vod.v20180717.DescribeTranscodeTemplates", async function () {
|
|
|
448
458
|
}
|
|
449
459
|
})
|
|
450
460
|
|
|
461
|
+
it("vod.v20180717.InspectMediaQuality", async function () {
|
|
462
|
+
try {
|
|
463
|
+
const data = await client.InspectMediaQuality({})
|
|
464
|
+
expect(data).to.be.ok
|
|
465
|
+
} catch(error) {
|
|
466
|
+
expect(error.requestId).to.be.ok
|
|
467
|
+
expect(error.code).to.be.ok
|
|
468
|
+
}
|
|
469
|
+
})
|
|
470
|
+
|
|
451
471
|
it("vod.v20180717.DescribePrepaidProducts", async function () {
|
|
452
472
|
try {
|
|
453
473
|
const data = await client.DescribePrepaidProducts({})
|
|
@@ -698,9 +718,9 @@ it("vod.v20180717.EnhanceMediaByTemplate", async function () {
|
|
|
698
718
|
}
|
|
699
719
|
})
|
|
700
720
|
|
|
701
|
-
it("vod.v20180717.
|
|
721
|
+
it("vod.v20180717.ModifyPersonSample", async function () {
|
|
702
722
|
try {
|
|
703
|
-
const data = await client.
|
|
723
|
+
const data = await client.ModifyPersonSample({})
|
|
704
724
|
expect(data).to.be.ok
|
|
705
725
|
} catch(error) {
|
|
706
726
|
expect(error.requestId).to.be.ok
|
|
@@ -828,6 +848,16 @@ it("vod.v20180717.DescribeEventsState", async function () {
|
|
|
828
848
|
}
|
|
829
849
|
})
|
|
830
850
|
|
|
851
|
+
it("vod.v20180717.ModifyQualityInspectTemplate", async function () {
|
|
852
|
+
try {
|
|
853
|
+
const data = await client.ModifyQualityInspectTemplate({})
|
|
854
|
+
expect(data).to.be.ok
|
|
855
|
+
} catch(error) {
|
|
856
|
+
expect(error.requestId).to.be.ok
|
|
857
|
+
expect(error.code).to.be.ok
|
|
858
|
+
}
|
|
859
|
+
})
|
|
860
|
+
|
|
831
861
|
it("vod.v20180717.CreateSuperPlayerConfig", async function () {
|
|
832
862
|
try {
|
|
833
863
|
const data = await client.CreateSuperPlayerConfig({})
|
|
@@ -858,6 +888,16 @@ it("vod.v20180717.ConfirmEvents", async function () {
|
|
|
858
888
|
}
|
|
859
889
|
})
|
|
860
890
|
|
|
891
|
+
it("vod.v20180717.DescribeRoundPlays", async function () {
|
|
892
|
+
try {
|
|
893
|
+
const data = await client.DescribeRoundPlays({})
|
|
894
|
+
expect(data).to.be.ok
|
|
895
|
+
} catch(error) {
|
|
896
|
+
expect(error.requestId).to.be.ok
|
|
897
|
+
expect(error.code).to.be.ok
|
|
898
|
+
}
|
|
899
|
+
})
|
|
900
|
+
|
|
861
901
|
it("vod.v20180717.ProcessMediaByUrl", async function () {
|
|
862
902
|
try {
|
|
863
903
|
const data = await client.ProcessMediaByUrl({})
|
|
@@ -1008,16 +1048,6 @@ it("vod.v20180717.CreateSubAppId", async function () {
|
|
|
1008
1048
|
}
|
|
1009
1049
|
})
|
|
1010
1050
|
|
|
1011
|
-
it("vod.v20180717.ModifyPersonSample", async function () {
|
|
1012
|
-
try {
|
|
1013
|
-
const data = await client.ModifyPersonSample({})
|
|
1014
|
-
expect(data).to.be.ok
|
|
1015
|
-
} catch(error) {
|
|
1016
|
-
expect(error.requestId).to.be.ok
|
|
1017
|
-
expect(error.code).to.be.ok
|
|
1018
|
-
}
|
|
1019
|
-
})
|
|
1020
|
-
|
|
1021
1051
|
it("vod.v20180717.DescribeAnimatedGraphicsTemplates", async function () {
|
|
1022
1052
|
try {
|
|
1023
1053
|
const data = await client.DescribeAnimatedGraphicsTemplates({})
|
|
@@ -1088,9 +1118,9 @@ it("vod.v20180717.CreateClass", async function () {
|
|
|
1088
1118
|
}
|
|
1089
1119
|
})
|
|
1090
1120
|
|
|
1091
|
-
it("vod.v20180717.
|
|
1121
|
+
it("vod.v20180717.CreateWordSamples", async function () {
|
|
1092
1122
|
try {
|
|
1093
|
-
const data = await client.
|
|
1123
|
+
const data = await client.CreateWordSamples({})
|
|
1094
1124
|
expect(data).to.be.ok
|
|
1095
1125
|
} catch(error) {
|
|
1096
1126
|
expect(error.requestId).to.be.ok
|
|
@@ -1238,6 +1268,26 @@ it("vod.v20180717.DescribeAIRecognitionTemplates", async function () {
|
|
|
1238
1268
|
}
|
|
1239
1269
|
})
|
|
1240
1270
|
|
|
1271
|
+
it("vod.v20180717.DeleteQualityInspectTemplate", async function () {
|
|
1272
|
+
try {
|
|
1273
|
+
const data = await client.DeleteQualityInspectTemplate({})
|
|
1274
|
+
expect(data).to.be.ok
|
|
1275
|
+
} catch(error) {
|
|
1276
|
+
expect(error.requestId).to.be.ok
|
|
1277
|
+
expect(error.code).to.be.ok
|
|
1278
|
+
}
|
|
1279
|
+
})
|
|
1280
|
+
|
|
1281
|
+
it("vod.v20180717.DescribeQualityInspectTemplates", async function () {
|
|
1282
|
+
try {
|
|
1283
|
+
const data = await client.DescribeQualityInspectTemplates({})
|
|
1284
|
+
expect(data).to.be.ok
|
|
1285
|
+
} catch(error) {
|
|
1286
|
+
expect(error.requestId).to.be.ok
|
|
1287
|
+
expect(error.code).to.be.ok
|
|
1288
|
+
}
|
|
1289
|
+
})
|
|
1290
|
+
|
|
1241
1291
|
it("vod.v20180717.DescribeSuperPlayerConfigs", async function () {
|
|
1242
1292
|
try {
|
|
1243
1293
|
const data = await client.DescribeSuperPlayerConfigs({})
|
|
@@ -148,6 +148,16 @@ it("yinsuda.v20220527.DescribeKTVRobots", async function () {
|
|
|
148
148
|
}
|
|
149
149
|
})
|
|
150
150
|
|
|
151
|
+
it("yinsuda.v20220527.DescribeKTVMusicAccompanySegmentUrl", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.DescribeKTVMusicAccompanySegmentUrl({})
|
|
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
|
+
|
|
151
161
|
it("yinsuda.v20220527.DescribeKTVMatchMusics", async function () {
|
|
152
162
|
try {
|
|
153
163
|
const data = await client.DescribeKTVMatchMusics({})
|