tencentcloud-sdk-nodejs 4.0.416 → 4.0.417

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 (61) hide show
  1. package/CHANGELOG.md +324 -0
  2. package/SERVICE_CHANGELOG.md +550 -16
  3. package/package.json +1 -1
  4. package/products.md +18 -18
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ams/v20201229/ams_client.ts +13 -11
  7. package/src/services/ams/v20201229/ams_models.ts +69 -15
  8. package/src/services/billing/v20180709/billing_models.ts +49 -0
  9. package/src/services/cat/v20180409/cat_models.ts +4 -4
  10. package/src/services/cbs/v20170312/cbs_models.ts +5 -5
  11. package/src/services/irp/index.ts +2 -0
  12. package/src/services/irp/v20220805/index.ts +6 -0
  13. package/src/services/irp/v20220805/irp_client.ts +85 -0
  14. package/src/services/irp/v20220805/irp_models.ts +549 -0
  15. package/src/services/lighthouse/v20200324/lighthouse_models.ts +1 -1
  16. package/src/services/mongodb/v20190725/mongodb_client.ts +12 -0
  17. package/src/services/mongodb/v20190725/mongodb_models.ts +20 -0
  18. package/src/services/privatedns/v20201028/privatedns_models.ts +16 -1
  19. package/src/services/pts/v20210728/pts_models.ts +5 -0
  20. package/src/services/tcbr/v20220217/tcbr_models.ts +5 -0
  21. package/src/services/tcr/v20190924/tcr_client.ts +1 -0
  22. package/src/services/tcr/v20190924/tcr_models.ts +44 -1
  23. package/src/services/tcss/v20201101/tcss_models.ts +20 -0
  24. package/src/services/teo/v20220106/teo_client.ts +1 -0
  25. package/src/services/teo/v20220106/teo_models.ts +408 -303
  26. package/src/services/trtc/v20190722/trtc_models.ts +1 -1
  27. package/src/services/tts/v20190823/tts_client.ts +1 -0
  28. package/src/services/tts/v20190823/tts_models.ts +40 -0
  29. package/src/services/wedata/v20210820/wedata_client.ts +105 -68
  30. package/tencentcloud/common/sdk_version.d.ts +1 -1
  31. package/tencentcloud/common/sdk_version.js +1 -1
  32. package/tencentcloud/services/ams/v20201229/ams_client.d.ts +11 -10
  33. package/tencentcloud/services/ams/v20201229/ams_client.js +11 -10
  34. package/tencentcloud/services/ams/v20201229/ams_models.d.ts +58 -12
  35. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +40 -0
  36. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +4 -4
  37. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +4 -4
  38. package/tencentcloud/services/irp/index.d.ts +4 -0
  39. package/tencentcloud/services/irp/index.js +2 -0
  40. package/tencentcloud/services/irp/v20220805/index.d.ts +6 -0
  41. package/tencentcloud/services/irp/v20220805/index.js +9 -0
  42. package/tencentcloud/services/irp/v20220805/irp_client.d.ts +26 -0
  43. package/tencentcloud/services/irp/v20220805/irp_client.js +55 -0
  44. package/tencentcloud/services/irp/v20220805/irp_models.d.ts +442 -0
  45. package/tencentcloud/services/irp/v20220805/irp_models.js +18 -0
  46. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +1 -1
  47. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +5 -1
  48. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +6 -0
  49. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +18 -0
  50. package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +13 -1
  51. package/tencentcloud/services/pts/v20210728/pts_models.d.ts +4 -0
  52. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +4 -0
  53. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +37 -1
  54. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +16 -0
  55. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +353 -259
  56. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
  57. package/tencentcloud/services/tts/v20190823/tts_models.d.ts +33 -0
  58. package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +72 -35
  59. package/tencentcloud/services/wedata/v20210820/wedata_client.js +72 -35
  60. package/test/irp.v20220805.test.js +61 -0
  61. package/test/mongodb.v20190725.test.js +10 -0
@@ -78,21 +78,29 @@ export interface DescribeTasksRequest {
78
78
  EndTime?: string;
79
79
  }
80
80
  /**
81
- * 用于表示数据存储的相关信息
81
+ * 音频说话人声纹识别返回结果
82
82
  */
83
- export interface StorageInfo {
83
+ export interface AudioResultDetailSpeakerResult {
84
84
  /**
85
- * 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
85
+ * 该字段用于返回检测结果需要检测的内容类型。
86
+ 注意:此字段可能返回 null,表示取不到有效值。
86
87
  */
87
- Type?: string;
88
+ Label: string;
88
89
  /**
89
- * 该字段表示文件访问的链接地址,格式为标准URL格式。<br> 备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一
90
+ * 该字段用于返回呻吟检测的置信度,取值范围:0(置信度最低)-100(置信度最高),越高代表音频越有可能属于说话人声纹。
91
+ 注意:此字段可能返回 null,表示取不到有效值。
90
92
  */
91
- Url?: string;
93
+ Score: number;
92
94
  /**
93
- * 该字段表示文件访问的腾讯云存储桶信息。<br> 备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。
95
+ * 该字段用于返回对应说话人的片段在音频文件内的开始时间,单位为毫秒。
96
+ 注意:此字段可能返回 null,表示取不到有效值。
94
97
  */
95
- BucketInfo?: BucketInfo;
98
+ StartTime: number;
99
+ /**
100
+ * 该字段用于返回对应说话人的片段在音频文件内的结束时间,单位为毫秒。
101
+ 注意:此字段可能返回 null,表示取不到有效值。
102
+ */
103
+ EndTime: number;
96
104
  }
97
105
  /**
98
106
  * CreateAudioModerationSyncTask请求参数结构体
@@ -107,7 +115,7 @@ export interface CreateAudioModerationSyncTaskRequest {
107
115
  */
108
116
  DataId: string;
109
117
  /**
110
- * 音频文件资源格式,当前为mp3,wav,请按照实际文件格式填入
118
+ * 音频文件资源格式,当前支持格式:wav、mp3、m4a,请按照实际文件格式填入。
111
119
  */
112
120
  FileFormat: string;
113
121
  /**
@@ -116,13 +124,13 @@ export interface CreateAudioModerationSyncTaskRequest {
116
124
  Name?: string;
117
125
  /**
118
126
  * 数据Base64编码,短音频同步接口仅传入可音频内容;
119
- 支持范围:文件大小不能超过5M,时长不可超过60s,码率范围为8-16Kbps
120
- 支持格式:wav、mp3
127
+ 支持范围:文件大小不能超过5M,时长不可超过60s;
128
+ 支持格式:wav (PCM编码)、mp3、m4a (采样率:16kHz~48kHz,位深:16bit 小端,声道数:单声道/双声道,建议格式:16kHz/16bit/单声道)。
121
129
  */
122
130
  FileContent?: string;
123
131
  /**
124
132
  * 音频资源访问链接,与FileContent参数必须二选一输入;
125
- 支持范围:同FileContent;
133
+ 支持范围及格式:同FileContent;
126
134
  */
127
135
  FileUrl?: string;
128
136
  }
@@ -324,6 +332,23 @@ export interface TaskInput {
324
332
  */
325
333
  Input?: StorageInfo;
326
334
  }
335
+ /**
336
+ * 用于表示数据存储的相关信息
337
+ */
338
+ export interface StorageInfo {
339
+ /**
340
+ * 该字段表示文件访问类型,取值为**URL**(资源链接)和**COS** (腾讯云对象存储);该字段应当与传入的访问类型相对应,可用于强校验并方便系统快速识别访问地址;若不传入此参数,则默认值为URL,此时系统将自动判定访问地址类型。
341
+ */
342
+ Type?: string;
343
+ /**
344
+ * 该字段表示文件访问的链接地址,格式为标准URL格式。<br> 备注:当Type为URL时此字段不为空,该参数与BucketInfo参数须传入其中之一
345
+ */
346
+ Url?: string;
347
+ /**
348
+ * 该字段表示文件访问的腾讯云存储桶信息。<br> 备注:当Type为COS时此字段不为空,该参数与Url参数须传入其中之一。
349
+ */
350
+ BucketInfo?: BucketInfo;
351
+ }
327
352
  /**
328
353
  * DescribeTaskDetail请求参数结构体
329
354
  */
@@ -384,6 +409,27 @@ Block 建议屏蔽;
384
409
  注意:此字段可能返回 null,表示取不到有效值。
385
410
  */
386
411
  MoanResults: Array<MoanResult>;
412
+ /**
413
+ * 该字段用于返回当前标签(Lable)下的二级标签。
414
+ 注意:此字段可能返回null,表示取不到有效值。
415
+ 注意:此字段可能返回 null,表示取不到有效值。
416
+ */
417
+ SubLabel: string;
418
+ /**
419
+ * 该字段用于返回音频小语种检测的详细审核结果。具体结果内容请参见AudioResultDetailLanguageResult数据结构的细节描述。
420
+ 注意:此字段可能返回 null,表示取不到有效值。
421
+ */
422
+ LanguageResults: Array<AudioResultDetailLanguageResult>;
423
+ /**
424
+ * 音频中说话人识别返回结果;
425
+ 注意:此字段可能返回 null,表示取不到有效值。
426
+ */
427
+ SpeakerResults: Array<AudioResultDetailSpeakerResult>;
428
+ /**
429
+ * 识别类标签结果信息列表
430
+ 注意:此字段可能返回 null,表示取不到有效值。
431
+ */
432
+ RecognitionResults: Array<RecognitionResult>;
387
433
  /**
388
434
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
389
435
  */
@@ -251,6 +251,10 @@ export interface ProjectSummaryOverviewItem {
251
251
  * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
252
252
  */
253
253
  TotalCost: string;
254
+ /**
255
+ * 分成金金额
256
+ */
257
+ TransferPayAmount: string;
254
258
  }
255
259
  /**
256
260
  * 地域过滤条件
@@ -1037,6 +1041,10 @@ export interface RegionSummaryOverviewItem {
1037
1041
  * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
1038
1042
  */
1039
1043
  TotalCost: string;
1044
+ /**
1045
+ * 分成金金额
1046
+ */
1047
+ TransferPayAmount: string;
1040
1048
  }
1041
1049
  /**
1042
1050
  * DescribeCostSummaryByProduct返回参数结构体
@@ -1295,6 +1303,10 @@ export interface BusinessSummaryOverviewItem {
1295
1303
  * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
1296
1304
  */
1297
1305
  TotalCost: string;
1306
+ /**
1307
+ * 分成金金额
1308
+ */
1309
+ TransferPayAmount: string;
1298
1310
  }
1299
1311
  /**
1300
1312
  * 账单明细组件对象
@@ -2118,6 +2130,26 @@ export interface TagSummaryOverviewItem {
2118
2130
  注意:此字段可能返回 null,表示取不到有效值。
2119
2131
  */
2120
2132
  TotalCost: string;
2133
+ /**
2134
+ * 现金金额
2135
+ 注意:此字段可能返回 null,表示取不到有效值。
2136
+ */
2137
+ CashPayAmount: string;
2138
+ /**
2139
+ * 赠送金金额
2140
+ 注意:此字段可能返回 null,表示取不到有效值。
2141
+ */
2142
+ IncentivePayAmount: string;
2143
+ /**
2144
+ * 代金券金额
2145
+ 注意:此字段可能返回 null,表示取不到有效值。
2146
+ */
2147
+ VoucherPayAmount: string;
2148
+ /**
2149
+ * 分成金金额
2150
+ 注意:此字段可能返回 null,表示取不到有效值。
2151
+ */
2152
+ TransferPayAmount: string;
2121
2153
  }
2122
2154
  /**
2123
2155
  * DescribeCostSummaryByResource返回参数结构体
@@ -2620,6 +2652,10 @@ export interface PayModeSummaryOverviewItem {
2620
2652
  * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
2621
2653
  */
2622
2654
  TotalCost: string;
2655
+ /**
2656
+ * 分成金金额
2657
+ */
2658
+ TransferPayAmount: string;
2623
2659
  }
2624
2660
  /**
2625
2661
  * 按产品汇总总费用
@@ -2645,6 +2681,10 @@ export interface BusinessSummaryTotal {
2645
2681
  * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
2646
2682
  */
2647
2683
  TotalCost: string;
2684
+ /**
2685
+ * 分成金金额
2686
+ */
2687
+ TransferPayAmount: string;
2648
2688
  }
2649
2689
  /**
2650
2690
  * DescribeCostSummaryByRegion返回参数结构体
@@ -13,7 +13,7 @@ export interface DescribeNodesRequest {
13
13
  * 节点区域
14
14
  <li> 1 = 中国大陆 </li>
15
15
  <li> 2 = 港澳台 </li>
16
- <li> 3 = 海外 </li>
16
+ <li> 3 = 境外</li>
17
17
  */
18
18
  Location?: number;
19
19
  /**
@@ -219,9 +219,9 @@ AnalyzeTaskType_MediaStream:音视频体验
219
219
 
220
220
  这里实际按拨测结果中的地区来填写即可
221
221
 
222
- 国内一般是省级单位,如广东、广西、香港特区、新疆;直辖市则填北京、上海
222
+ 国内一般是省级单位,如广东、广西、中国香港、新疆;直辖市则填北京、上海
223
223
 
224
- 海外一般是国家名,如澳大利亚、新加坡
224
+ 境外一般是国家名,如澳大利亚、新加坡
225
225
  */
226
226
  Districts?: Array<string>;
227
227
  /**
@@ -683,7 +683,7 @@ export interface NodeDefineExt {
683
683
  * 区域
684
684
  <li> 1 = 中国大陆 </li>
685
685
  <li> 2 = 港澳台 </li>
686
- <li> 3 = 国外 </li>
686
+ <li> 3 = 境外 </li>
687
687
  注意:此字段可能返回 null,表示取不到有效值。
688
688
  */
689
689
  Location: number;
@@ -948,10 +948,6 @@ export interface ModifyDiskAttributesRequest {
948
948
  * 一个或多个待操作的云硬盘ID。如果传入多个云盘ID,仅支持所有云盘修改为同一属性。
949
949
  */
950
950
  DiskIds: Array<string>;
951
- /**
952
- * 新的云硬盘项目ID,只支持修改弹性云盘的项目ID。通过[DescribeProject](/document/api/378/4400)接口查询可用项目及其ID。
953
- */
954
- ProjectId?: number;
955
951
  /**
956
952
  * 新的云硬盘名称。
957
953
  */
@@ -960,6 +956,10 @@ export interface ModifyDiskAttributesRequest {
960
956
  * 是否为弹性云盘,FALSE表示非弹性云盘,TRUE表示弹性云盘。仅支持非弹性云盘修改为弹性云盘。
961
957
  */
962
958
  Portable?: boolean;
959
+ /**
960
+ * 新的云硬盘项目ID,只支持修改弹性云盘的项目ID。通过[DescribeProject](/document/api/378/4400)接口查询可用项目及其ID。
961
+ */
962
+ ProjectId?: number;
963
963
  /**
964
964
  * 成功挂载到云主机后该云硬盘是否随云主机销毁,TRUE表示随云主机销毁,FALSE表示不随云主机销毁。仅支持按量计费云硬盘数据盘。
965
965
  */
@@ -3,4 +3,8 @@ export declare const irp: {
3
3
  Client: typeof import("./v20220324/irp_client").Client;
4
4
  Models: typeof import("./v20220324/irp_models");
5
5
  };
6
+ v20220805: {
7
+ Client: typeof import("./v20220805/irp_client").Client;
8
+ Models: typeof import("./v20220805/irp_models");
9
+ };
6
10
  };
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.irp = void 0;
4
4
  const v20220324_1 = require("./v20220324");
5
+ const v20220805_1 = require("./v20220805");
5
6
  exports.irp = {
6
7
  v20220324: v20220324_1.v20220324,
8
+ v20220805: v20220805_1.v20220805,
7
9
  };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./irp_models";
2
+ import { Client } from "./irp_client";
3
+ export declare const v20220805: {
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.v20220805 = void 0;
4
+ const Models = require("./irp_models");
5
+ const irp_client_1 = require("./irp_client");
6
+ exports.v20220805 = {
7
+ Client: irp_client_1.Client,
8
+ Models: Models
9
+ };
@@ -0,0 +1,26 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { ReportFeedItemResponse, ReportFeedUserRequest, FeedRecommendResponse, ReportFeedBehaviorResponse, ReportFeedItemRequest, ReportFeedBehaviorRequest, ReportFeedUserResponse, FeedRecommendRequest } from "./irp_models";
4
+ /**
5
+ * irp client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 上报用户信息,请务必确认用户的唯一性,并在请求推荐结果时指定用户的唯一标识信息(UserId),否则将无法进行千人千面的推荐
12
+ */
13
+ ReportFeedUser(req: ReportFeedUserRequest, cb?: (error: string, rep: ReportFeedUserResponse) => void): Promise<ReportFeedUserResponse>;
14
+ /**
15
+ * 上报被用于推荐的信息流内容
16
+ */
17
+ ReportFeedItem(req: ReportFeedItemRequest, cb?: (error: string, rep: ReportFeedItemResponse) => void): Promise<ReportFeedItemResponse>;
18
+ /**
19
+ * 上报场景内的行为数据,随着数据的积累,模型的效果会逐渐稳定。
20
+ */
21
+ ReportFeedBehavior(req: ReportFeedBehaviorRequest, cb?: (error: string, rep: ReportFeedBehaviorResponse) => void): Promise<ReportFeedBehaviorResponse>;
22
+ /**
23
+ * 获取信息流推荐结果
24
+ */
25
+ FeedRecommend(req: FeedRecommendRequest, cb?: (error: string, rep: FeedRecommendResponse) => void): Promise<FeedRecommendResponse>;
26
+ }
@@ -0,0 +1,55 @@
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
+ * irp client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("irp.tencentcloudapi.com", "2022-08-05", clientConfig);
29
+ }
30
+ /**
31
+ * 上报用户信息,请务必确认用户的唯一性,并在请求推荐结果时指定用户的唯一标识信息(UserId),否则将无法进行千人千面的推荐
32
+ */
33
+ async ReportFeedUser(req, cb) {
34
+ return this.request("ReportFeedUser", req, cb);
35
+ }
36
+ /**
37
+ * 上报被用于推荐的信息流内容
38
+ */
39
+ async ReportFeedItem(req, cb) {
40
+ return this.request("ReportFeedItem", req, cb);
41
+ }
42
+ /**
43
+ * 上报场景内的行为数据,随着数据的积累,模型的效果会逐渐稳定。
44
+ */
45
+ async ReportFeedBehavior(req, cb) {
46
+ return this.request("ReportFeedBehavior", req, cb);
47
+ }
48
+ /**
49
+ * 获取信息流推荐结果
50
+ */
51
+ async FeedRecommend(req, cb) {
52
+ return this.request("FeedRecommend", req, cb);
53
+ }
54
+ }
55
+ exports.Client = Client;