tencentcloud-sdk-nodejs 4.0.992 → 4.0.994

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 (60) hide show
  1. package/CHANGELOG.md +323 -0
  2. package/SERVICE_CHANGELOG.md +288 -17
  3. package/package.json +1 -1
  4. package/products.md +21 -21
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cdb/v20170320/cdb_models.ts +4 -2
  7. package/src/services/cwp/v20180228/cwp_client.ts +90 -16
  8. package/src/services/cwp/v20180228/cwp_models.ts +534 -290
  9. package/src/services/essbasic/v20210526/essbasic_models.ts +5 -0
  10. package/src/services/faceid/v20180301/faceid_models.ts +10 -0
  11. package/src/services/hunyuan/v20230901/hunyuan_models.ts +4 -0
  12. package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +44 -4
  13. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +151 -0
  14. package/src/services/iotvideo/v20211125/iotvideo_client.ts +28 -4
  15. package/src/services/iotvideo/v20211125/iotvideo_models.ts +169 -81
  16. package/src/services/ocr/v20181119/ocr_client.ts +4 -2
  17. package/src/services/ocr/v20181119/ocr_models.ts +1 -1
  18. package/src/services/sms/v20210111/sms_models.ts +1 -1
  19. package/src/services/ssl/v20191205/ssl_models.ts +7 -3
  20. package/src/services/tcbr/v20220217/tcbr_models.ts +21 -42
  21. package/src/services/trocket/v20230308/trocket_models.ts +8 -0
  22. package/src/services/tsf/v20180326/tsf_client.ts +2 -2
  23. package/src/services/tsf/v20180326/tsf_models.ts +392 -368
  24. package/src/services/vrs/v20200824/vrs_client.ts +12 -0
  25. package/src/services/vrs/v20200824/vrs_models.ts +34 -2
  26. package/src/services/wedata/v20210820/wedata_client.ts +1 -0
  27. package/src/services/wedata/v20210820/wedata_models.ts +35 -0
  28. package/tencentcloud/common/sdk_version.d.ts +1 -1
  29. package/tencentcloud/common/sdk_version.js +1 -1
  30. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +4 -2
  31. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +27 -3
  32. package/tencentcloud/services/cwp/v20180228/cwp_client.js +39 -3
  33. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +521 -291
  34. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -0
  35. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +10 -0
  36. package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +4 -0
  37. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +19 -3
  38. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +24 -2
  39. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +145 -0
  40. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +9 -1
  41. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +12 -0
  42. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +165 -81
  43. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +2 -0
  44. package/tencentcloud/services/ocr/v20181119/ocr_client.js +2 -0
  45. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +1 -1
  46. package/tencentcloud/services/sms/v20210111/sms_models.d.ts +1 -1
  47. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +7 -3
  48. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +21 -42
  49. package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +8 -0
  50. package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +2 -2
  51. package/tencentcloud/services/tsf/v20180326/tsf_client.js +2 -2
  52. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +392 -368
  53. package/tencentcloud/services/vrs/v20200824/vrs_client.d.ts +5 -1
  54. package/tencentcloud/services/vrs/v20200824/vrs_client.js +6 -0
  55. package/tencentcloud/services/vrs/v20200824/vrs_models.d.ts +32 -2
  56. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +34 -0
  57. package/test/cwp.v20180228.test.js +62 -2
  58. package/test/iotexplorer.v20190423.test.js +30 -0
  59. package/test/iotvideo.v20211125.test.js +20 -0
  60. package/test/vrs.v20200824.test.js +10 -0
@@ -1,12 +1,16 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { CancelVRSTaskRequest, DescribeVRSTaskStatusResponse, GetTrainingTextRequest, DownloadVRSModelRequest, DownloadVRSModelResponse, GetVRSVoiceTypesResponse, CancelVRSTaskResponse, CreateVRSTaskResponse, GetVRSVoiceTypesRequest, GetTrainingTextResponse, DescribeVRSTaskStatusRequest, CreateVRSTaskRequest, DetectEnvAndSoundQualityResponse, DetectEnvAndSoundQualityRequest } from "./vrs_models";
3
+ import { CancelVRSTaskRequest, DescribeVRSTaskStatusResponse, GetTrainingTextRequest, DownloadVRSModelRequest, GetVRSVoiceTypeInfoResponse, DownloadVRSModelResponse, GetVRSVoiceTypesResponse, GetVRSVoiceTypeInfoRequest, CancelVRSTaskResponse, CreateVRSTaskResponse, GetVRSVoiceTypesRequest, GetTrainingTextResponse, DescribeVRSTaskStatusRequest, CreateVRSTaskRequest, DetectEnvAndSoundQualityResponse, DetectEnvAndSoundQualityRequest } from "./vrs_models";
4
4
  /**
5
5
  * vrs client
6
6
  * @class
7
7
  */
8
8
  export declare class Client extends AbstractClient {
9
9
  constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 该接口用于查询复刻音色详细信息。
12
+ */
13
+ GetVRSVoiceTypeInfo(req: GetVRSVoiceTypeInfoRequest, cb?: (error: string, rep: GetVRSVoiceTypeInfoResponse) => void): Promise<GetVRSVoiceTypeInfoResponse>;
10
14
  /**
11
15
  * 下载声音复刻离线模型
12
16
  */
@@ -27,6 +27,12 @@ class Client extends abstract_client_1.AbstractClient {
27
27
  constructor(clientConfig) {
28
28
  super("vrs.tencentcloudapi.com", "2020-08-24", clientConfig);
29
29
  }
30
+ /**
31
+ * 该接口用于查询复刻音色详细信息。
32
+ */
33
+ async GetVRSVoiceTypeInfo(req, cb) {
34
+ return this.request("GetVRSVoiceTypeInfo", req, cb);
35
+ }
30
36
  /**
31
37
  * 下载声音复刻离线模型
32
38
  */
@@ -53,6 +53,19 @@ export interface DownloadVRSModelRequest {
53
53
  */
54
54
  TaskId: string;
55
55
  }
56
+ /**
57
+ * GetVRSVoiceTypeInfo返回参数结构体
58
+ */
59
+ export interface GetVRSVoiceTypeInfoResponse {
60
+ /**
61
+ * 音色信息
62
+ */
63
+ Data?: VoiceTypeInfo;
64
+ /**
65
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
66
+ */
67
+ RequestId?: string;
68
+ }
56
69
  /**
57
70
  * DownloadVRSModel返回参数结构体
58
71
  */
@@ -79,6 +92,23 @@ export interface GetVRSVoiceTypesResponse {
79
92
  */
80
93
  RequestId?: string;
81
94
  }
95
+ /**
96
+ * GetVRSVoiceTypeInfo请求参数结构体
97
+ */
98
+ export interface GetVRSVoiceTypeInfoRequest {
99
+ /**
100
+ * 音色id。
101
+ */
102
+ VoiceType: number;
103
+ /**
104
+ * 0 - 除快速声音复刻外其他复刻类型(默认); 5 - 快速声音复刻。 默认为0。
105
+ */
106
+ TaskType?: number;
107
+ /**
108
+ * 快速复刻音色id。
109
+ */
110
+ FastVoiceType?: string;
111
+ }
82
112
  /**
83
113
  * CancelVRSTask返回参数结构体
84
114
  */
@@ -173,12 +203,12 @@ export interface VoiceTypeListData {
173
203
  */
174
204
  export interface Words {
175
205
  /**
176
- * 准确度 (<75则认为不合格)
206
+ * 准确度 (小于75则认为不合格)
177
207
  注意:此字段可能返回 null,表示取不到有效值。
178
208
  */
179
209
  PronAccuracy?: number;
180
210
  /**
181
- * 流畅度 (<0.95则认为不合格)
211
+ * 流畅度 (小于0.95则认为不合格)
182
212
  注意:此字段可能返回 null,表示取不到有效值。
183
213
  */
184
214
  PronFluency?: number;
@@ -7033,6 +7033,11 @@ export interface DataSourceInfo {
7033
7033
  注意:此字段可能返回 null,表示取不到有效值。
7034
7034
  */
7035
7035
  DevelopmentParams?: string;
7036
+ /**
7037
+ * 数据源连接状态
7038
+ 注意:此字段可能返回 null,表示取不到有效值。
7039
+ */
7040
+ ConnectStatus?: DataSourceConnectStatus;
7036
7041
  }
7037
7042
  /**
7038
7043
  * FindAllFolder返回参数结构体
@@ -12773,6 +12778,35 @@ export interface DescribeTemplateDimCountResponse {
12773
12778
  */
12774
12779
  RequestId?: string;
12775
12780
  }
12781
+ /**
12782
+ * 数据源云梯连接状态
12783
+ */
12784
+ export interface DataSourceConnectStatus {
12785
+ /**
12786
+ * id
12787
+ */
12788
+ Id?: number;
12789
+ /**
12790
+ * 项目id
12791
+ */
12792
+ ProjectId?: string;
12793
+ /**
12794
+ * 数据源id
12795
+ */
12796
+ DatasourceId?: string;
12797
+ /**
12798
+ * 连接结果
12799
+ */
12800
+ ConnectResult?: number;
12801
+ /**
12802
+ * 错误信息
12803
+ */
12804
+ ConnectError?: string;
12805
+ /**
12806
+ * 时间戳
12807
+ */
12808
+ Timestamp?: number;
12809
+ }
12776
12810
  /**
12777
12811
  * DescribeFunctionTypes请求参数结构体
12778
12812
  */
@@ -478,6 +478,16 @@ it("cwp.v20180228.DescribeBaselineRuleDetectList", async function () {
478
478
  }
479
479
  })
480
480
 
481
+ it("cwp.v20180228.ModifyRaspMaxCpu", async function () {
482
+ try {
483
+ const data = await client.ModifyRaspMaxCpu({})
484
+ expect(data).to.be.ok
485
+ } catch(error) {
486
+ expect(error.requestId).to.be.ok
487
+ expect(error.code).to.be.ok
488
+ }
489
+ })
490
+
481
491
  it("cwp.v20180228.DeleteLicenseRecordAll", async function () {
482
492
  try {
483
493
  const data = await client.DeleteLicenseRecordAll({})
@@ -1108,6 +1118,16 @@ it("cwp.v20180228.DescribeAssetTypeTop", async function () {
1108
1118
  }
1109
1119
  })
1110
1120
 
1121
+ it("cwp.v20180228.DescribeRaspRuleVuls", async function () {
1122
+ try {
1123
+ const data = await client.DescribeRaspRuleVuls({})
1124
+ expect(data).to.be.ok
1125
+ } catch(error) {
1126
+ expect(error.requestId).to.be.ok
1127
+ expect(error.code).to.be.ok
1128
+ }
1129
+ })
1130
+
1111
1131
  it("cwp.v20180228.ExportRansomDefenseStrategyMachines", async function () {
1112
1132
  try {
1113
1133
  const data = await client.ExportRansomDefenseStrategyMachines({})
@@ -2238,6 +2258,16 @@ it("cwp.v20180228.EditTags", async function () {
2238
2258
  }
2239
2259
  })
2240
2260
 
2261
+ it("cwp.v20180228.DescribeRaspRules", async function () {
2262
+ try {
2263
+ const data = await client.DescribeRaspRules({})
2264
+ expect(data).to.be.ok
2265
+ } catch(error) {
2266
+ expect(error.requestId).to.be.ok
2267
+ expect(error.code).to.be.ok
2268
+ }
2269
+ })
2270
+
2241
2271
  it("cwp.v20180228.CreateLogExport", async function () {
2242
2272
  try {
2243
2273
  const data = await client.CreateLogExport({})
@@ -3188,6 +3218,16 @@ it("cwp.v20180228.DescribeAssetDatabaseCount", async function () {
3188
3218
  }
3189
3219
  })
3190
3220
 
3221
+ it("cwp.v20180228.DescribeLoginWhiteList", async function () {
3222
+ try {
3223
+ const data = await client.DescribeLoginWhiteList({})
3224
+ expect(data).to.be.ok
3225
+ } catch(error) {
3226
+ expect(error.requestId).to.be.ok
3227
+ expect(error.code).to.be.ok
3228
+ }
3229
+ })
3230
+
3191
3231
  it("cwp.v20180228.DescribeLogHistogram", async function () {
3192
3232
  try {
3193
3233
  const data = await client.DescribeLogHistogram({})
@@ -3488,6 +3528,16 @@ it("cwp.v20180228.DeleteBashRules", async function () {
3488
3528
  }
3489
3529
  })
3490
3530
 
3531
+ it("cwp.v20180228.ModifyRaspRules", async function () {
3532
+ try {
3533
+ const data = await client.ModifyRaspRules({})
3534
+ expect(data).to.be.ok
3535
+ } catch(error) {
3536
+ expect(error.requestId).to.be.ok
3537
+ expect(error.code).to.be.ok
3538
+ }
3539
+ })
3540
+
3491
3541
  it("cwp.v20180228.RetryCreateSnapshot", async function () {
3492
3542
  try {
3493
3543
  const data = await client.RetryCreateSnapshot({})
@@ -4378,6 +4428,16 @@ it("cwp.v20180228.DescribeAssetUserInfo", async function () {
4378
4428
  }
4379
4429
  })
4380
4430
 
4431
+ it("cwp.v20180228.DeleteRaspRules", async function () {
4432
+ try {
4433
+ const data = await client.DeleteRaspRules({})
4434
+ expect(data).to.be.ok
4435
+ } catch(error) {
4436
+ expect(error.requestId).to.be.ok
4437
+ expect(error.code).to.be.ok
4438
+ }
4439
+ })
4440
+
4381
4441
  it("cwp.v20180228.DeleteMalwares", async function () {
4382
4442
  try {
4383
4443
  const data = await client.DeleteMalwares({})
@@ -4818,9 +4878,9 @@ it("cwp.v20180228.DescribeAttackVulTypeList", async function () {
4818
4878
  }
4819
4879
  })
4820
4880
 
4821
- it("cwp.v20180228.DescribeLoginWhiteList", async function () {
4881
+ it("cwp.v20180228.DescribeRaspMaxCpu", async function () {
4822
4882
  try {
4823
- const data = await client.DescribeLoginWhiteList({})
4883
+ const data = await client.DescribeRaspMaxCpu({})
4824
4884
  expect(data).to.be.ok
4825
4885
  } catch(error) {
4826
4886
  expect(error.requestId).to.be.ok
@@ -848,6 +848,16 @@ it("iotexplorer.v20190423.InvokeCloudStorageAIServiceTask", async function () {
848
848
  }
849
849
  })
850
850
 
851
+ it("iotexplorer.v20190423.CreateFreeCloudStorage", async function () {
852
+ try {
853
+ const data = await client.CreateFreeCloudStorage({})
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
+
851
861
  it("iotexplorer.v20190423.GetTWeCallPkgList", async function () {
852
862
  try {
853
863
  const data = await client.GetTWeCallPkgList({})
@@ -1018,6 +1028,16 @@ it("iotexplorer.v20190423.CreateBatchProduction", async function () {
1018
1028
  }
1019
1029
  })
1020
1030
 
1031
+ it("iotexplorer.v20190423.CreateCloudStorageAIServiceTask", async function () {
1032
+ try {
1033
+ const data = await client.CreateCloudStorageAIServiceTask({})
1034
+ expect(data).to.be.ok
1035
+ } catch(error) {
1036
+ expect(error.requestId).to.be.ok
1037
+ expect(error.code).to.be.ok
1038
+ }
1039
+ })
1040
+
1021
1041
  it("iotexplorer.v20190423.DisableTopicRule", async function () {
1022
1042
  try {
1023
1043
  const data = await client.DisableTopicRule({})
@@ -1138,6 +1158,16 @@ it("iotexplorer.v20190423.DeleteDevices", async function () {
1138
1158
  }
1139
1159
  })
1140
1160
 
1161
+ it("iotexplorer.v20190423.CreateDeviceChannel", async function () {
1162
+ try {
1163
+ const data = await client.CreateDeviceChannel({})
1164
+ expect(data).to.be.ok
1165
+ } catch(error) {
1166
+ expect(error.requestId).to.be.ok
1167
+ expect(error.code).to.be.ok
1168
+ }
1169
+ })
1170
+
1141
1171
  it("iotexplorer.v20190423.CheckFirmwareUpdate", async function () {
1142
1172
  try {
1143
1173
  const data = await client.CheckFirmwareUpdate({})
@@ -668,6 +668,16 @@ it("iotvideo.v20211125.CreateCOSCredentials", async function () {
668
668
  }
669
669
  })
670
670
 
671
+ it("iotvideo.v20211125.CreateFreeCloudStorage", async function () {
672
+ try {
673
+ const data = await client.CreateFreeCloudStorage({})
674
+ expect(data).to.be.ok
675
+ } catch(error) {
676
+ expect(error.requestId).to.be.ok
677
+ expect(error.code).to.be.ok
678
+ }
679
+ })
680
+
671
681
  it("iotvideo.v20211125.CreateBatch", async function () {
672
682
  try {
673
683
  const data = await client.CreateBatch({})
@@ -818,6 +828,16 @@ it("iotvideo.v20211125.DeleteCloudStorageEvent", async function () {
818
828
  }
819
829
  })
820
830
 
831
+ it("iotvideo.v20211125.CreateDeviceChannel", async function () {
832
+ try {
833
+ const data = await client.CreateDeviceChannel({})
834
+ expect(data).to.be.ok
835
+ } catch(error) {
836
+ expect(error.requestId).to.be.ok
837
+ expect(error.code).to.be.ok
838
+ }
839
+ })
840
+
821
841
  it("iotvideo.v20211125.DescribeP2PInfo", async function () {
822
842
  try {
823
843
  const data = await client.DescribeP2PInfo({})
@@ -18,6 +18,16 @@ const client = new tencentcloud.vrs.v20200824.Client({
18
18
  })
19
19
  describe("vrs.v20200824.test.js", function () {
20
20
 
21
+ it("vrs.v20200824.GetVRSVoiceTypeInfo", async function () {
22
+ try {
23
+ const data = await client.GetVRSVoiceTypeInfo({})
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("vrs.v20200824.DownloadVRSModel", async function () {
22
32
  try {
23
33
  const data = await client.DownloadVRSModel({})