tencentcloud-sdk-nodejs 4.0.575 → 4.0.577

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 (128) hide show
  1. package/CHANGELOG.md +577 -0
  2. package/SERVICE_CHANGELOG.md +654 -124
  3. package/package.json +1 -1
  4. package/products.md +34 -32
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/billing/v20180709/billing_models.ts +10 -4
  7. package/src/services/bma/v20210624/bma_client.ts +4 -2
  8. package/src/services/cdb/v20170320/cdb_models.ts +9 -4
  9. package/src/services/cfs/v20190719/cfs_models.ts +2 -2
  10. package/src/services/ckafka/v20190819/ckafka_models.ts +6 -0
  11. package/src/services/clb/v20180317/clb_models.ts +16 -0
  12. package/src/services/cls/v20201016/cls_client.ts +3 -2
  13. package/src/services/cls/v20201016/cls_models.ts +86 -42
  14. package/src/services/cvm/v20170312/cvm_models.ts +2 -2
  15. package/src/services/cwp/v20180228/cwp_client.ts +14 -1
  16. package/src/services/cwp/v20180228/cwp_models.ts +308 -59
  17. package/src/services/dasb/v20191018/dasb_client.ts +124 -6
  18. package/src/services/dasb/v20191018/dasb_models.ts +1218 -104
  19. package/src/services/dbbrain/v20210527/dbbrain_client.ts +25 -0
  20. package/src/services/dbbrain/v20210527/dbbrain_models.ts +178 -2
  21. package/src/services/dlc/v20210125/dlc_models.ts +10 -0
  22. package/src/services/dnspod/v20210323/dnspod_models.ts +6 -0
  23. package/src/services/emr/v20190103/emr_client.ts +28 -1
  24. package/src/services/emr/v20190103/emr_models.ts +134 -5
  25. package/src/services/ess/v20201111/ess_client.ts +7 -5
  26. package/src/services/ess/v20201111/ess_models.ts +5 -5
  27. package/src/services/essbasic/v20210526/essbasic_client.ts +4 -3
  28. package/src/services/gaap/v20180529/gaap_models.ts +1 -1
  29. package/src/services/index.ts +2 -0
  30. package/src/services/lcic/v20220817/lcic_client.ts +14 -1
  31. package/src/services/lcic/v20220817/lcic_models.ts +147 -6
  32. package/src/services/mongodb/v20190725/mongodb_client.ts +21 -9
  33. package/src/services/mongodb/v20190725/mongodb_models.ts +171 -118
  34. package/src/services/monitor/v20180724/monitor_client.ts +1 -0
  35. package/src/services/monitor/v20180724/monitor_models.ts +63 -4
  36. package/src/services/ocr/v20181119/ocr_client.ts +25 -6
  37. package/src/services/ocr/v20181119/ocr_models.ts +282 -159
  38. package/src/services/rum/v20210622/rum_models.ts +10 -5
  39. package/src/services/teo/v20220901/teo_models.ts +18 -10
  40. package/src/services/tiw/v20190919/tiw_client.ts +134 -35
  41. package/src/services/tiw/v20190919/tiw_models.ts +433 -41
  42. package/src/services/tke/v20180525/tke_models.ts +5 -5
  43. package/src/services/tourism/index.ts +5 -0
  44. package/src/services/tourism/v20230215/index.ts +6 -0
  45. package/src/services/tourism/v20230215/tourism_client.ts +44 -0
  46. package/src/services/tourism/v20230215/tourism_models.ts +128 -0
  47. package/src/services/trtc/v20190722/trtc_models.ts +7 -7
  48. package/src/services/vrs/index.ts +5 -0
  49. package/src/services/vrs/v20200824/index.ts +6 -0
  50. package/src/services/vrs/v20200824/vrs_client.ts +99 -0
  51. package/src/services/vrs/v20200824/vrs_models.ts +313 -0
  52. package/tencentcloud/common/sdk_version.d.ts +1 -1
  53. package/tencentcloud/common/sdk_version.js +1 -1
  54. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +9 -4
  55. package/tencentcloud/services/bma/v20210624/bma_client.d.ts +3 -1
  56. package/tencentcloud/services/bma/v20210624/bma_client.js +3 -1
  57. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +8 -4
  58. package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +2 -2
  59. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -0
  60. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +13 -0
  61. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  62. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +72 -35
  63. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +2 -2
  64. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +6 -2
  65. package/tencentcloud/services/cwp/v20180228/cwp_client.js +7 -1
  66. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +263 -59
  67. package/tencentcloud/services/dasb/v20191018/dasb_client.d.ts +37 -1
  68. package/tencentcloud/services/dasb/v20191018/dasb_client.js +54 -0
  69. package/tencentcloud/services/dasb/v20191018/dasb_models.d.ts +1005 -85
  70. package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +9 -1
  71. package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +12 -0
  72. package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +149 -2
  73. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +8 -0
  74. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +5 -0
  75. package/tencentcloud/services/emr/v20190103/emr_client.d.ts +9 -1
  76. package/tencentcloud/services/emr/v20190103/emr_client.js +12 -0
  77. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +117 -4
  78. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +7 -5
  79. package/tencentcloud/services/ess/v20201111/ess_client.js +7 -5
  80. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -5
  81. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +4 -3
  82. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +4 -3
  83. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +1 -1
  84. package/tencentcloud/services/index.d.ts +2 -0
  85. package/tencentcloud/services/index.js +4 -0
  86. package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +5 -1
  87. package/tencentcloud/services/lcic/v20220817/lcic_client.js +6 -0
  88. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +124 -5
  89. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +11 -7
  90. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +12 -6
  91. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +151 -103
  92. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +54 -4
  93. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +7 -1
  94. package/tencentcloud/services/ocr/v20181119/ocr_client.js +8 -0
  95. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +245 -137
  96. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +9 -5
  97. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +18 -10
  98. package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +44 -12
  99. package/tencentcloud/services/tiw/v20190919/tiw_client.js +63 -15
  100. package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +378 -39
  101. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +5 -5
  102. package/tencentcloud/services/tourism/index.d.ts +6 -0
  103. package/tencentcloud/services/tourism/index.js +7 -0
  104. package/tencentcloud/services/tourism/v20230215/index.d.ts +6 -0
  105. package/tencentcloud/services/tourism/v20230215/index.js +9 -0
  106. package/tencentcloud/services/tourism/v20230215/tourism_client.d.ts +14 -0
  107. package/tencentcloud/services/tourism/v20230215/tourism_client.js +37 -0
  108. package/tencentcloud/services/tourism/v20230215/tourism_models.d.ts +95 -0
  109. package/tencentcloud/services/tourism/v20230215/tourism_models.js +18 -0
  110. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +7 -7
  111. package/tencentcloud/services/vrs/index.d.ts +6 -0
  112. package/tencentcloud/services/vrs/index.js +7 -0
  113. package/tencentcloud/services/vrs/v20200824/index.d.ts +6 -0
  114. package/tencentcloud/services/vrs/v20200824/index.js +9 -0
  115. package/tencentcloud/services/vrs/v20200824/vrs_client.d.ts +40 -0
  116. package/tencentcloud/services/vrs/v20200824/vrs_client.js +69 -0
  117. package/tencentcloud/services/vrs/v20200824/vrs_models.d.ts +257 -0
  118. package/tencentcloud/services/vrs/v20200824/vrs_models.js +18 -0
  119. package/test/cwp.v20180228.test.js +10 -0
  120. package/test/dasb.v20191018.test.js +90 -0
  121. package/test/dbbrain.v20210527.test.js +20 -0
  122. package/test/emr.v20190103.test.js +20 -0
  123. package/test/lcic.v20220817.test.js +10 -0
  124. package/test/mongodb.v20190725.test.js +10 -0
  125. package/test/ocr.v20181119.test.js +10 -0
  126. package/test/tiw.v20190919.test.js +88 -8
  127. package/test/tourism.v20230215.test.js +31 -0
  128. package/test/vrs.v20200824.test.js +61 -0
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * tourism client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("tourism.tencentcloudapi.com", "2023-02-15", clientConfig);
29
+ }
30
+ /**
31
+ * 依据客户的Uin查询开通的资源列表
32
+ */
33
+ async DescribeDrawResourceList(req, cb) {
34
+ return this.request("DescribeDrawResourceList", req, cb);
35
+ }
36
+ }
37
+ exports.Client = Client;
@@ -0,0 +1,95 @@
1
+ /**
2
+ * DescribeDrawResourceList返回参数结构体
3
+ */
4
+ export interface DescribeDrawResourceListResponse {
5
+ /**
6
+ * 返回数据条数
7
+ */
8
+ TotalCount?: number;
9
+ /**
10
+ * 返回数据数组
11
+ */
12
+ ResourceDrawList?: Array<ResourceDrawListType>;
13
+ /**
14
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
15
+ */
16
+ RequestId?: string;
17
+ }
18
+ /**
19
+ * 输出用户的资源数据
20
+ */
21
+ export interface ResourceDrawListType {
22
+ /**
23
+ * 记录id
24
+ 注意:此字段可能返回 null,表示取不到有效值。
25
+ */
26
+ Id?: number;
27
+ /**
28
+ * 资源记录id
29
+ 注意:此字段可能返回 null,表示取不到有效值。
30
+ */
31
+ FlowId?: number;
32
+ /**
33
+ * 资源id
34
+ 注意:此字段可能返回 null,表示取不到有效值。
35
+ */
36
+ ResourceId?: string;
37
+ /**
38
+ * 本订单资源序列号
39
+ 注意:此字段可能返回 null,表示取不到有效值。
40
+ */
41
+ IndexId?: string;
42
+ /**
43
+ * 客户的uin
44
+ 注意:此字段可能返回 null,表示取不到有效值。
45
+ */
46
+ Uin?: string;
47
+ /**
48
+ * 大订单号
49
+ 注意:此字段可能返回 null,表示取不到有效值。
50
+ */
51
+ BigDealId?: string;
52
+ /**
53
+ * 小订单号
54
+ 注意:此字段可能返回 null,表示取不到有效值。
55
+ */
56
+ SmallOrderId?: string;
57
+ /**
58
+ * 资源创建时间
59
+ 注意:此字段可能返回 null,表示取不到有效值。
60
+ */
61
+ ResourceNewStartTime?: string;
62
+ /**
63
+ * 资源到期时间
64
+ 注意:此字段可能返回 null,表示取不到有效值。
65
+ */
66
+ ResourceNewEndTime?: string;
67
+ /**
68
+ * 资源状态
69
+ 注意:此字段可能返回 null,表示取不到有效值。
70
+ */
71
+ ResourceStatus?: number;
72
+ /**
73
+ * 本记录状态
74
+ 注意:此字段可能返回 null,表示取不到有效值。
75
+ */
76
+ Status?: number;
77
+ /**
78
+ * 项目类型
79
+ 注意:此字段可能返回 null,表示取不到有效值。
80
+ */
81
+ ResourceType?: number;
82
+ }
83
+ /**
84
+ * DescribeDrawResourceList请求参数结构体
85
+ */
86
+ export interface DescribeDrawResourceListRequest {
87
+ /**
88
+ * PageNumber
89
+ */
90
+ PageNumber: number;
91
+ /**
92
+ * PageSize
93
+ */
94
+ PageSize: number;
95
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -759,11 +759,11 @@ export interface DescribeRoomInfoRequest {
759
759
  */
760
760
  export interface StorageParams {
761
761
  /**
762
- * 第三方云存储的账号信息(CloudStorage参数暂不可用,请使用CloudVod参数存储至云点播)。
762
+ * 第三方云存储的账号信息(特别说明:若您选择存储至对象存储COS将会收取录制文件投递至COS的费用,详见云端录制收费说明,存储至VOD将不收取此项费用。)。
763
763
  */
764
764
  CloudStorage?: CloudStorage;
765
765
  /**
766
- * 【必填】腾讯云云点播的账号信息,目前仅支持存储至腾讯云点播VOD。
766
+ * 腾讯云云点播的账号信息。
767
767
  */
768
768
  CloudVod?: CloudVod;
769
769
  }
@@ -1517,12 +1517,12 @@ export interface DescribeScaleInfoResponse {
1517
1517
  /**
1518
1518
  * 返回的数据条数
1519
1519
  */
1520
- Total: number;
1520
+ Total?: number;
1521
1521
  /**
1522
1522
  * 返回的数据
1523
1523
  注意:此字段可能返回 null,表示取不到有效值。
1524
1524
  */
1525
- ScaleList: Array<ScaleInfomation>;
1525
+ ScaleList?: Array<ScaleInfomation>;
1526
1526
  /**
1527
1527
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1528
1528
  */
@@ -2107,7 +2107,7 @@ export interface StartPublishCdnStreamRequest {
2107
2107
  */
2108
2108
  AgentParams: AgentParams;
2109
2109
  /**
2110
- * 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转吗费用。
2110
+ * 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
2111
2111
  */
2112
2112
  WithTranscoding: number;
2113
2113
  /**
@@ -2131,7 +2131,7 @@ export interface StartPublishCdnStreamRequest {
2131
2131
  */
2132
2132
  SeiParams?: McuSeiParams;
2133
2133
  /**
2134
- * 回推房间信息,和转推CDN参数必须要有一个。
2134
+ * 回推房间信息,和转推CDN参数必须要有一个。注:回推房间需使用特殊的SDK版本,如您有需求,请联系腾讯云技术支持。
2135
2135
  */
2136
2136
  FeedBackRoomParams?: Array<McuFeedBackRoomParams>;
2137
2137
  }
@@ -2366,7 +2366,7 @@ export interface DescribeScaleInfoRequest {
2366
2366
  StartTime: number;
2367
2367
  /**
2368
2368
  * 查询结束时间,本地unix时间戳,单位为秒(如:1590065877),建议与StartTime间隔时间超过24小时。
2369
- 注意:按天统计,结束时间小于前一天,否则查询数据为空(如:需查询20号数据,结束时间需小于20号0点)。
2369
+ 注意:按天统计,结束时间小于前一天,否则查询数据为空(如:需查询20号数据,结束时间需晚于20号0点)。
2370
2370
  */
2371
2371
  EndTime: number;
2372
2372
  }
@@ -0,0 +1,6 @@
1
+ export declare const vrs: {
2
+ v20200824: {
3
+ Client: typeof import("./v20200824/vrs_client").Client;
4
+ Models: typeof import("./v20200824/vrs_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vrs = void 0;
4
+ const v20200824_1 = require("./v20200824");
5
+ exports.vrs = {
6
+ v20200824: v20200824_1.v20200824,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./vrs_models";
2
+ import { Client } from "./vrs_client";
3
+ export declare const v20200824: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20200824 = void 0;
4
+ const Models = require("./vrs_models");
5
+ const vrs_client_1 = require("./vrs_client");
6
+ exports.v20200824 = {
7
+ Client: vrs_client_1.Client,
8
+ Models: Models
9
+ };
@@ -0,0 +1,40 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { DescribeVRSTaskStatusResponse, CreateVRSTaskResponse, GetTrainingTextResponse, DescribeVRSTaskStatusRequest, DetectEnvAndSoundQualityRequest, DetectEnvAndSoundQualityResponse, GetTrainingTextRequest, CreateVRSTaskRequest } from "./vrs_models";
4
+ /**
5
+ * vrs client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 本接口服务对提交音频进行声音复刻任务创建接口,异步返回复刻结果。
12
+ • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
13
+ • 签名方法参考 公共参数 中签名方法v3。
14
+ • 默认接口请求频率限制:30次/秒,
15
+ */
16
+ CreateVRSTask(req: CreateVRSTaskRequest, cb?: (error: string, rep: CreateVRSTaskResponse) => void): Promise<CreateVRSTaskResponse>;
17
+ /**
18
+ * 本接口用于获取声音复刻训练文本信息。
19
+ 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
20
+ • 签名方法参考 公共参数 中签名方法v3。
21
+ • 默认接口请求频率限制:20次/秒。
22
+ */
23
+ GetTrainingText(req?: GetTrainingTextRequest, cb?: (error: string, rep: GetTrainingTextResponse) => void): Promise<GetTrainingTextResponse>;
24
+ /**
25
+ * 本接口用于检测音频的环境和音频质量。
26
+ • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
27
+ • 签名方法参考 公共参数 中签名方法v3。
28
+ • 默认接口请求频率限制:20次/秒。
29
+ */
30
+ DetectEnvAndSoundQuality(req: DetectEnvAndSoundQualityRequest, cb?: (error: string, rep: DetectEnvAndSoundQualityResponse) => void): Promise<DetectEnvAndSoundQualityResponse>;
31
+ /**
32
+ * 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。
33
+ • 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。
34
+ • 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。
35
+ • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
36
+ • 签名方法参考 公共参数 中签名方法v3。
37
+ • 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提工单进行咨询。
38
+ */
39
+ DescribeVRSTaskStatus(req: DescribeVRSTaskStatusRequest, cb?: (error: string, rep: DescribeVRSTaskStatusResponse) => void): Promise<DescribeVRSTaskStatusResponse>;
40
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * vrs client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("vrs.tencentcloudapi.com", "2020-08-24", clientConfig);
29
+ }
30
+ /**
31
+ * 本接口服务对提交音频进行声音复刻任务创建接口,异步返回复刻结果。
32
+ • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
33
+ • 签名方法参考 公共参数 中签名方法v3。
34
+ • 默认接口请求频率限制:30次/秒,
35
+ */
36
+ async CreateVRSTask(req, cb) {
37
+ return this.request("CreateVRSTask", req, cb);
38
+ }
39
+ /**
40
+ * 本接口用于获取声音复刻训练文本信息。
41
+ 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
42
+ • 签名方法参考 公共参数 中签名方法v3。
43
+ • 默认接口请求频率限制:20次/秒。
44
+ */
45
+ async GetTrainingText(req, cb) {
46
+ return this.request("GetTrainingText", req, cb);
47
+ }
48
+ /**
49
+ * 本接口用于检测音频的环境和音频质量。
50
+ • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
51
+ • 签名方法参考 公共参数 中签名方法v3。
52
+ • 默认接口请求频率限制:20次/秒。
53
+ */
54
+ async DetectEnvAndSoundQuality(req, cb) {
55
+ return this.request("DetectEnvAndSoundQuality", req, cb);
56
+ }
57
+ /**
58
+ * 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。
59
+ • 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。
60
+ • 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。
61
+ • 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
62
+ • 签名方法参考 公共参数 中签名方法v3。
63
+ • 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提工单进行咨询。
64
+ */
65
+ async DescribeVRSTaskStatus(req, cb) {
66
+ return this.request("DescribeVRSTaskStatus", req, cb);
67
+ }
68
+ }
69
+ exports.Client = Client;
@@ -0,0 +1,257 @@
1
+ /**
2
+ * DescribeVRSTaskStatus返回参数结构体
3
+ */
4
+ export interface DescribeVRSTaskStatusResponse {
5
+ /**
6
+ * 声音复刻任务结果
7
+ */
8
+ Data?: DescribeVRSTaskStatusRespData;
9
+ /**
10
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11
+ */
12
+ RequestId?: string;
13
+ }
14
+ /**
15
+ * CreateVRSTask返回参数结构体
16
+ */
17
+ export interface CreateVRSTaskResponse {
18
+ /**
19
+ * 创建任务结果
20
+ */
21
+ Data?: CreateVRSTaskRespData;
22
+ /**
23
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
24
+ */
25
+ RequestId?: string;
26
+ }
27
+ /**
28
+ * 声音复刻任务创建响应
29
+ */
30
+ export interface CreateVRSTaskRespData {
31
+ /**
32
+ * 任务ID
33
+ 注意:此字段可能返回 null,表示取不到有效值。
34
+ */
35
+ TaskId?: string;
36
+ }
37
+ /**
38
+ * 环境检测和音频检测响应
39
+ */
40
+ export interface DetectionEnvAndSoundQualityRespData {
41
+ /**
42
+ * 音频ID (用于创建任务接口AudioIds),环境检测该值为空,仅在音质检测情况下返回
43
+ 注意:此字段可能返回 null,表示取不到有效值。
44
+ */
45
+ AudioId?: string;
46
+ /**
47
+ * 检测code
48
+
49
+ 0 表示当前语音通过
50
+ -1 表示检测失败,需要重试
51
+ -2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)
52
+ -3 表示语音中噪声较大,不通过
53
+ 注意:此字段可能返回 null,表示取不到有效值。
54
+ */
55
+ DetectionCode?: number;
56
+ /**
57
+ * 检测提示信息
58
+ 注意:此字段可能返回 null,表示取不到有效值。
59
+ */
60
+ DetectionMsg?: string;
61
+ /**
62
+ * 检测提示信息
63
+ 注意:此字段可能返回 null,表示取不到有效值。
64
+ */
65
+ DetectionTip?: Array<Words>;
66
+ }
67
+ /**
68
+ * GetTrainingText返回参数结构体
69
+ */
70
+ export interface GetTrainingTextResponse {
71
+ /**
72
+ * 文本列表
73
+ */
74
+ Data?: TrainingTexts;
75
+ /**
76
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
77
+ */
78
+ RequestId?: string;
79
+ }
80
+ /**
81
+ * DescribeVRSTaskStatus请求参数结构体
82
+ */
83
+ export interface DescribeVRSTaskStatusRequest {
84
+ /**
85
+ * 任务ID
86
+ */
87
+ TaskId: string;
88
+ }
89
+ /**
90
+ * DetectEnvAndSoundQuality请求参数结构体
91
+ */
92
+ export interface DetectEnvAndSoundQualityRequest {
93
+ /**
94
+ * 标注文本信息 ID
95
+ */
96
+ TextId: string;
97
+ /**
98
+ * 语音数据 要使用base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。
99
+ */
100
+ AudioData: string;
101
+ /**
102
+ * 音频格式,音频类型(wav,mp3,aac,m4a)
103
+ */
104
+ Codec: string;
105
+ /**
106
+ * 1:环境检测 2:音质检测
107
+ */
108
+ TypeId: number;
109
+ /**
110
+ * 音频采样率:
111
+
112
+ 16000:16k(默认)
113
+ */
114
+ SampleRate?: number;
115
+ }
116
+ /**
117
+ * 任务结果
118
+ */
119
+ export interface DescribeVRSTaskStatusRespData {
120
+ /**
121
+ * 任务ID
122
+ 注意:此字段可能返回 null,表示取不到有效值。
123
+ */
124
+ TaskId?: string;
125
+ /**
126
+ * 任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
127
+ 注意:此字段可能返回 null,表示取不到有效值。
128
+ */
129
+ Status?: number;
130
+ /**
131
+ * 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
132
+ 注意:此字段可能返回 null,表示取不到有效值。
133
+ */
134
+ StatusStr?: string;
135
+ /**
136
+ * 音色id
137
+ 注意:此字段可能返回 null,表示取不到有效值。
138
+ */
139
+ VoiceType?: number;
140
+ /**
141
+ * 失败原因说明。
142
+ 注意:此字段可能返回 null,表示取不到有效值。
143
+ */
144
+ ErrorMsg?: string;
145
+ }
146
+ /**
147
+ * 训练文本
148
+ */
149
+ export interface TrainingText {
150
+ /**
151
+ * 文本ID
152
+ 注意:此字段可能返回 null,表示取不到有效值。
153
+ */
154
+ TextId?: string;
155
+ /**
156
+ * 文本
157
+ 注意:此字段可能返回 null,表示取不到有效值。
158
+ */
159
+ Text?: string;
160
+ }
161
+ /**
162
+ * Words
163
+ */
164
+ export interface Words {
165
+ /**
166
+ * 准确度
167
+ 注意:此字段可能返回 null,表示取不到有效值。
168
+ */
169
+ PronAccuracy?: number;
170
+ /**
171
+ * 流畅度
172
+ 注意:此字段可能返回 null,表示取不到有效值。
173
+ */
174
+ PronFluency?: number;
175
+ /**
176
+ * tag: 0: match, 1: insert, 2: delete, 3: replace, 4: oov, 5: unknown
177
+ 注意:此字段可能返回 null,表示取不到有效值。
178
+ */
179
+ Tag?: number;
180
+ /**
181
+ * 字
182
+ 注意:此字段可能返回 null,表示取不到有效值。
183
+ */
184
+ Word?: string;
185
+ }
186
+ /**
187
+ * 训练文本列表
188
+ */
189
+ export interface TrainingTexts {
190
+ /**
191
+ * 训练文本列表
192
+ 注意:此字段可能返回 null,表示取不到有效值。
193
+ */
194
+ TrainingTextList?: Array<TrainingText>;
195
+ }
196
+ /**
197
+ * DetectEnvAndSoundQuality返回参数结构体
198
+ */
199
+ export interface DetectEnvAndSoundQualityResponse {
200
+ /**
201
+ * 检测结果
202
+ */
203
+ Data?: DetectionEnvAndSoundQualityRespData;
204
+ /**
205
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
206
+ */
207
+ RequestId?: string;
208
+ }
209
+ /**
210
+ * GetTrainingText请求参数结构体
211
+ */
212
+ export declare type GetTrainingTextRequest = null;
213
+ /**
214
+ * CreateVRSTask请求参数结构体
215
+ */
216
+ export interface CreateVRSTaskRequest {
217
+ /**
218
+ * 唯一请求 ID
219
+ */
220
+ SessionId: string;
221
+ /**
222
+ * 音色名称
223
+ */
224
+ VoiceName: string;
225
+ /**
226
+ * 音频采样率:
227
+
228
+ 16000:16k(默认)
229
+ */
230
+ SampleRate: number;
231
+ /**
232
+ * 音色性别:
233
+
234
+ 1-male
235
+
236
+ 2-female
237
+ */
238
+ VoiceGender: number;
239
+ /**
240
+ * 语言类型:
241
+
242
+ 1-中文(默认)
243
+ */
244
+ VoiceLanguage: number;
245
+ /**
246
+ * 音频格式,音频类型(wav,mp3,aac,m4a)
247
+ */
248
+ Codec: string;
249
+ /**
250
+ * 音频ID集合
251
+ */
252
+ AudioIdList: Array<string>;
253
+ /**
254
+ * 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。
255
+ */
256
+ CallbackUrl?: string;
257
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1628,6 +1628,16 @@ it("cwp.v20180228.DescribeBashEventsNew", async function () {
1628
1628
  }
1629
1629
  })
1630
1630
 
1631
+ it("cwp.v20180228.DescribeFileTamperEvents", async function () {
1632
+ try {
1633
+ const data = await client.DescribeFileTamperEvents({})
1634
+ expect(data).to.be.ok
1635
+ } catch(error) {
1636
+ expect(error.requestId).to.be.ok
1637
+ expect(error.code).to.be.ok
1638
+ }
1639
+ })
1640
+
1631
1641
  it("cwp.v20180228.ExportNonlocalLoginPlaces", async function () {
1632
1642
  try {
1633
1643
  const data = await client.ExportNonlocalLoginPlaces({})