tencentcloud-sdk-nodejs 4.0.354 → 4.0.355

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 (58) hide show
  1. package/CHANGELOG.md +172 -0
  2. package/SERVICE_CHANGELOG.md +269 -33
  3. package/package.json +1 -1
  4. package/products.md +11 -10
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/api/v20201106/api_models.ts +2 -2
  7. package/src/services/cdn/v20180606/cdn_client.ts +27 -15
  8. package/src/services/cdn/v20180606/cdn_models.ts +87 -52
  9. package/src/services/cpdp/v20190820/cpdp_client.ts +237 -48
  10. package/src/services/cpdp/v20190820/cpdp_models.ts +1892 -521
  11. package/src/services/dlc/v20210125/dlc_models.ts +7 -1
  12. package/src/services/ess/v20201111/ess_models.ts +1 -1
  13. package/src/services/index.ts +1 -0
  14. package/src/services/mongodb/v20190725/mongodb_models.ts +5 -0
  15. package/src/services/soe/v20180724/soe_models.ts +2 -2
  16. package/src/services/sqlserver/v20180328/sqlserver_models.ts +11 -1
  17. package/src/services/tan/index.ts +5 -0
  18. package/src/services/tan/v20220420/index.ts +6 -0
  19. package/src/services/tan/v20220420/tan_client.ts +40 -0
  20. package/src/services/tan/v20220420/tan_models.ts +46 -0
  21. package/src/services/trtc/v20190722/trtc_client.ts +91 -61
  22. package/src/services/trtc/v20190722/trtc_models.ts +1145 -994
  23. package/src/services/tts/v20190823/tts_client.ts +11 -0
  24. package/src/services/tts/v20190823/tts_models.ts +2 -2
  25. package/tencentcloud/common/sdk_version.d.ts +1 -1
  26. package/tencentcloud/common/sdk_version.js +1 -1
  27. package/tencentcloud/services/api/v20201106/api_models.d.ts +2 -2
  28. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +9 -5
  29. package/tencentcloud/services/cdn/v20180606/cdn_client.js +12 -6
  30. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +76 -46
  31. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +65 -9
  32. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +96 -12
  33. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +1636 -467
  34. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +6 -1
  35. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
  36. package/tencentcloud/services/index.d.ts +1 -0
  37. package/tencentcloud/services/index.js +2 -0
  38. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +4 -0
  39. package/tencentcloud/services/soe/v20180724/soe_models.d.ts +2 -2
  40. package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +9 -1
  41. package/tencentcloud/services/tan/index.d.ts +6 -0
  42. package/tencentcloud/services/tan/index.js +7 -0
  43. package/tencentcloud/services/tan/v20220420/index.d.ts +6 -0
  44. package/tencentcloud/services/tan/v20220420/index.js +9 -0
  45. package/tencentcloud/services/tan/v20220420/tan_client.d.ts +14 -0
  46. package/tencentcloud/services/tan/v20220420/tan_client.js +37 -0
  47. package/tencentcloud/services/tan/v20220420/tan_models.d.ts +26 -0
  48. package/tencentcloud/services/tan/v20220420/tan_models.js +18 -0
  49. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +17 -5
  50. package/tencentcloud/services/trtc/v20190722/trtc_client.js +22 -6
  51. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +976 -849
  52. package/tencentcloud/services/tts/v20190823/tts_client.d.ts +11 -0
  53. package/tencentcloud/services/tts/v20190823/tts_client.js +11 -0
  54. package/tencentcloud/services/tts/v20190823/tts_models.d.ts +2 -2
  55. package/test/cdn.v20180606.test.js +14 -4
  56. package/test/cpdp.v20190820.test.js +148 -8
  57. package/test/tan.v20220420.test.js +31 -0
  58. package/test/trtc.v20190722.test.js +24 -4
@@ -431,7 +431,7 @@ export interface DetachUserPolicyRequest {
431
431
  */
432
432
  export interface DescribeSparkAppTasksResponse {
433
433
  /**
434
- * 任务列表
434
+ * 任务结果(该字段已废弃)
435
435
  注意:此字段可能返回 null,表示取不到有效值。
436
436
  */
437
437
  Tasks: TaskResponseInfo
@@ -441,6 +441,12 @@ export interface DescribeSparkAppTasksResponse {
441
441
  */
442
442
  TotalCount: number
443
443
 
444
+ /**
445
+ * 任务结果列表
446
+ 注意:此字段可能返回 null,表示取不到有效值。
447
+ */
448
+ SparkAppTasks: Array<TaskResponseInfo>
449
+
444
450
  /**
445
451
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
446
452
  */
@@ -1183,7 +1183,7 @@ export interface DescribeFlowTemplatesRequest {
1183
1183
  GenerateSource?: number
1184
1184
 
1185
1185
  /**
1186
- * 查询内容:0-模版列表及详情(默认),1-仅模版列表
1186
+ * 查询内容:0-模板列表及详情(默认),1-仅模板列表
1187
1187
  */
1188
1188
  ContentType?: number
1189
1189
  }
@@ -153,6 +153,7 @@ export { ssm } from "./ssm"
153
153
  export { sts } from "./sts"
154
154
  export { taf } from "./taf"
155
155
  export { tag } from "./tag"
156
+ export { tan } from "./tan"
156
157
  export { tat } from "./tat"
157
158
  export { tav } from "./tav"
158
159
  export { tbaas } from "./tbaas"
@@ -2105,6 +2105,11 @@ export interface SpecificationInfo {
2105
2105
  * 售卖规格信息
2106
2106
  */
2107
2107
  SpecItems: Array<SpecItem>
2108
+
2109
+ /**
2110
+ * 是否支持跨可用区部署 1-支持,0-不支持
2111
+ */
2112
+ SupportMultiAZ: number
2108
2113
  }
2109
2114
 
2110
2115
  /**
@@ -336,7 +336,7 @@ export interface TransmitOralProcessResponse {
336
336
  Status: string
337
337
 
338
338
  /**
339
- * 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracyfloat)× 完整度(PronCompletionfloat)×(2 - 完整度(PronCompletionfloat)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
339
+ * 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracy)× 完整度(PronCompletion)×(2 - 完整度(PronCompletion)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
340
340
  */
341
341
  SuggestedScore: number
342
342
 
@@ -507,7 +507,7 @@ export interface KeywordScore {
507
507
  Words: Array<WordRsp>
508
508
 
509
509
  /**
510
- * 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracyfloat)× 完整度(PronCompletionfloat)×(2 - 完整度(PronCompletionfloat)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
510
+ * 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracy)× 完整度(PronCompletion)×(2 - 完整度(PronCompletion)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
511
511
  */
512
512
  SuggestedScore: number
513
513
  }
@@ -1851,7 +1851,17 @@ export interface RemoveBackupsRequest {
1851
1851
  /**
1852
1852
  * 待删除的备份名称,备份名称可通过DescribeBackups接口的FileName字段获得。单次请求批量删除备份数不能超过10个。
1853
1853
  */
1854
- BackupNames: Array<string>
1854
+ BackupNames?: Array<string>
1855
+
1856
+ /**
1857
+ * 批量删除手动备份起始时间
1858
+ */
1859
+ StartTime?: string
1860
+
1861
+ /**
1862
+ * 批量删除手动备份截止时间
1863
+ */
1864
+ EndTime?: string
1855
1865
  }
1856
1866
 
1857
1867
  /**
@@ -0,0 +1,5 @@
1
+ import { v20220420 } from "./v20220420"
2
+
3
+ export const tan = {
4
+ v20220420: v20220420,
5
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./tan_models"
2
+ import { Client } from "./tan_client"
3
+ export const v20220420 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,40 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
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
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import { CreateBlockNodeRecordsRequest, CreateBlockNodeRecordsResponse } from "./tan_models"
21
+
22
+ /**
23
+ * tan client
24
+ * @class
25
+ */
26
+ export class Client extends AbstractClient {
27
+ constructor(clientConfig: ClientConfig) {
28
+ super("tan.tencentcloudapi.com", "2022-04-20", clientConfig)
29
+ }
30
+
31
+ /**
32
+ * 创建节点记录
33
+ */
34
+ async CreateBlockNodeRecords(
35
+ req: CreateBlockNodeRecordsRequest,
36
+ cb?: (error: string, rep: CreateBlockNodeRecordsResponse) => void
37
+ ): Promise<CreateBlockNodeRecordsResponse> {
38
+ return this.request("CreateBlockNodeRecords", req, cb)
39
+ }
40
+ }
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * CreateBlockNodeRecords请求参数结构体
20
+ */
21
+ export interface CreateBlockNodeRecordsRequest {
22
+ /**
23
+ * 盘查实例id
24
+ */
25
+ GroupId: string
26
+
27
+ /**
28
+ * 节点id
29
+ */
30
+ NodeId: string
31
+
32
+ /**
33
+ * 节点记录-json
34
+ */
35
+ Records: string
36
+ }
37
+
38
+ /**
39
+ * CreateBlockNodeRecords返回参数结构体
40
+ */
41
+ export interface CreateBlockNodeRecordsResponse {
42
+ /**
43
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
44
+ */
45
+ RequestId?: string
46
+ }
@@ -18,91 +18,97 @@
18
18
  import { AbstractClient } from "../../../common/abstract_client"
19
19
  import { ClientConfig } from "../../../common/interface"
20
20
  import {
21
- DismissRoomByStrRoomIdRequest,
22
21
  DescribeAbnormalEventResponse,
23
- CloudStorage,
24
22
  DescribeAbnormalEventRequest,
25
- SdkAppIdTrtcMcuTranscodeTimeUsage,
26
- ModifyPictureResponse,
27
- RemoveUserRequest,
28
- DescribeCloudRecordingResponse,
29
- TimeValue,
30
- StartMCUMixTranscodeByStrRoomIdRequest,
31
23
  CreatePictureRequest,
32
- DescribeTrtcMcuTranscodeTimeRequest,
33
- StopMCUMixTranscodeResponse,
34
- RemoveUserByStrRoomIdRequest,
35
- SubscribeStreamUserIds,
36
- MixLayoutParams,
37
- DismissRoomResponse,
38
- EventMessage,
39
- DescribeRecordStatisticRequest,
40
- DescribeUserInformationRequest,
24
+ MixLayout,
25
+ DescribeHistoryScaleRequest,
41
26
  DescribeCallDetailRequest,
27
+ RemoveUserByStrRoomIdResponse,
28
+ StartMCUMixTranscodeRequest,
29
+ StartMCUMixTranscodeByStrRoomIdRequest,
42
30
  ScaleInfomation,
31
+ CreateTroubleInfoRequest,
32
+ DescribeDetailEventResponse,
33
+ StopMCUMixTranscodeByStrRoomIdResponse,
34
+ PictureInfo,
35
+ MixTranscodeParams,
36
+ DescribeRoomInformationRequest,
37
+ WaterMarkParams,
38
+ DescribeRecordStatisticResponse,
39
+ StartMCUMixTranscodeByStrRoomIdResponse,
40
+ CloudStorage,
41
+ TimeValue,
42
+ DismissRoomByStrRoomIdRequest,
43
+ EventMessage,
44
+ DescribeRecordStatisticRequest,
43
45
  StorageParams,
44
46
  CloudVod,
45
47
  EncodeParams,
48
+ MeasureTrtcMcuExternalResponse,
49
+ DescribeUserInformationRequest,
50
+ TrtcTimeNewUsage,
46
51
  ModifyPictureRequest,
47
- StartMCUMixTranscodeRequest,
52
+ SmallVideoLayoutParams,
53
+ SubscribeStreamUserIds,
54
+ MeasureTrtcMcuExternalRequest,
55
+ EventList,
56
+ WaterMarkImage,
57
+ SdkAppIdTrtcMcuTranscodeTimeUsage,
58
+ ModifyPictureResponse,
59
+ StorageFile,
60
+ WaterMark,
61
+ MixLayoutParams,
62
+ StopMCUMixTranscodeResponse,
63
+ SdkAppIdNewTrtcTimeUsage,
64
+ RemoveUserRequest,
65
+ DismissRoomRequest,
48
66
  DescribeCloudRecordingRequest,
49
67
  TencentVod,
50
- RecordParams,
51
68
  StopMCUMixTranscodeRequest,
52
- UserInformation,
53
- MixLayout,
54
- DescribeHistoryScaleRequest,
55
- DeletePictureRequest,
56
69
  LayoutParams,
57
- DescribeRoomInformationResponse,
58
70
  RecordUsage,
59
71
  CreateCloudRecordingRequest,
60
72
  OutputParams,
61
- WaterMark,
62
73
  DeleteCloudRecordingResponse,
63
- MixTranscodeParams,
64
74
  CreateTroubleInfoResponse,
65
75
  StopMCUMixTranscodeByStrRoomIdRequest,
66
76
  QualityData,
67
- AbnormalEvent,
68
- RemoveUserByStrRoomIdResponse,
69
- StopMCUMixTranscodeByStrRoomIdResponse,
70
77
  DeletePictureResponse,
71
78
  ModifyCloudRecordingRequest,
72
- CreateTroubleInfoRequest,
73
- EventList,
74
- StorageFile,
75
- PictureInfo,
76
- DescribeUserInformationResponse,
77
- DescribeDetailEventResponse,
78
- CreateCloudRecordingResponse,
79
- DescribeCallDetailResponse,
79
+ VideoParams,
80
80
  OneSdkAppIdTranscodeTimeUsagesInfo,
81
+ CreateCloudRecordingResponse,
82
+ StartMCUMixTranscodeResponse,
81
83
  DescribeTrtcMcuTranscodeTimeResponse,
82
84
  DeleteCloudRecordingRequest,
83
85
  DescribePictureRequest,
86
+ DescribeExternalTrtcMeasureResponse,
87
+ DescribePictureResponse,
88
+ DescribeTrtcMcuTranscodeTimeRequest,
89
+ DescribeDetailEventRequest,
90
+ UserInformation,
91
+ DismissRoomByStrRoomIdResponse,
92
+ ModifyCloudRecordingResponse,
93
+ AbnormalEvent,
94
+ DescribeCloudRecordingResponse,
95
+ DismissRoomResponse,
96
+ DescribeUserInformationResponse,
97
+ DescribeCallDetailResponse,
98
+ DeletePictureRequest,
99
+ DescribeRoomInformationResponse,
100
+ DescribeExternalTrtcMeasureRequest,
101
+ RemoveUserByStrRoomIdRequest,
102
+ RecordParams,
84
103
  SdkAppIdRecordUsage,
85
- SmallVideoLayoutParams,
86
- RemoveUserResponse,
87
104
  PresetLayoutConfig,
88
- VideoParams,
89
105
  AudioParams,
90
- DescribePictureResponse,
91
- WaterMarkImage,
92
- DismissRoomRequest,
93
106
  PublishCdnParams,
94
- DescribeRoomInformationRequest,
95
- DescribeDetailEventRequest,
96
107
  AbnormalExperience,
97
- StartMCUMixTranscodeResponse,
98
108
  RoomState,
99
109
  CreatePictureResponse,
100
- WaterMarkParams,
101
- DescribeRecordStatisticResponse,
102
- DismissRoomByStrRoomIdResponse,
110
+ RemoveUserResponse,
103
111
  DescribeHistoryScaleResponse,
104
- StartMCUMixTranscodeByStrRoomIdResponse,
105
- ModifyCloudRecordingResponse,
106
112
  } from "./trtc_models"
107
113
 
108
114
  /**
@@ -215,16 +221,6 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
215
221
  return this.request("RemoveUser", req, cb)
216
222
  }
217
223
 
218
- /**
219
- * 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
220
- */
221
- async ModifyCloudRecording(
222
- req: ModifyCloudRecordingRequest,
223
- cb?: (error: string, rep: ModifyCloudRecordingResponse) => void
224
- ): Promise<ModifyCloudRecordingResponse> {
225
- return this.request("ModifyCloudRecording", req, cb)
226
- }
227
-
228
224
  /**
229
225
  * 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType,UserIds为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。
230
226
  **注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
@@ -236,6 +232,20 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
236
232
  return this.request("DescribeCallDetail", req, cb)
237
233
  }
238
234
 
235
+ /**
236
+ * 查询旁路转码计费时长。
237
+ - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
238
+ - 单次查询统计区间最多不能超过2天。
239
+ - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
240
+ - 日结后付费将于次日上午推送账单,建议次日上午9点以后再来查询前一天的用量。
241
+ */
242
+ async MeasureTrtcMcuExternal(
243
+ req: MeasureTrtcMcuExternalRequest,
244
+ cb?: (error: string, rep: MeasureTrtcMcuExternalResponse) => void
245
+ ): Promise<MeasureTrtcMcuExternalResponse> {
246
+ return this.request("MeasureTrtcMcuExternal", req, cb)
247
+ }
248
+
239
249
  /**
240
250
  * ###接口说明:
241
251
  启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制有或者多路视频画面混流一路。
@@ -257,6 +267,16 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
257
267
  return this.request("CreateCloudRecording", req, cb)
258
268
  }
259
269
 
270
+ /**
271
+ * 获取Trtc的用量统计数据。走计费渠道二期 只允许查两天的数据
272
+ */
273
+ async DescribeExternalTrtcMeasure(
274
+ req: DescribeExternalTrtcMeasureRequest,
275
+ cb?: (error: string, rep: DescribeExternalTrtcMeasureResponse) => void
276
+ ): Promise<DescribeExternalTrtcMeasureResponse> {
277
+ return this.request("DescribeExternalTrtcMeasure", req, cb)
278
+ }
279
+
260
280
  /**
261
281
  * 接口说明:结束云端混流
262
282
  */
@@ -267,6 +287,16 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
267
287
  return this.request("StopMCUMixTranscodeByStrRoomId", req, cb)
268
288
  }
269
289
 
290
+ /**
291
+ * 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
292
+ */
293
+ async ModifyCloudRecording(
294
+ req: ModifyCloudRecordingRequest,
295
+ cb?: (error: string, rep: ModifyCloudRecordingResponse) => void
296
+ ): Promise<ModifyCloudRecordingResponse> {
297
+ return this.request("ModifyCloudRecording", req, cb)
298
+ }
299
+
270
300
  /**
271
301
  * 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁修改自定义背景图或水印素材,可通过此接口修改已上传的图片。无需频繁修改图片素材的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
272
302
  */