tencentcloud-sdk-nodejs 4.0.857 → 4.0.858
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 +100 -0
- package/SERVICE_CHANGELOG.md +145 -13
- package/package.json +1 -1
- package/products.md +10 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdn/v20180606/cdn_models.ts +14 -0
- package/src/services/dsgc/v20190723/dsgc_models.ts +4 -9
- package/src/services/gme/v20180711/gme_models.ts +7 -7
- package/src/services/mps/v20190612/mps_models.ts +13 -13
- package/src/services/ocr/v20181119/ocr_models.ts +20 -0
- package/src/services/sms/v20210111/sms_models.ts +4 -2
- package/src/services/tmt/v20180321/tmt_client.ts +0 -1
- package/src/services/tmt/v20180321/tmt_models.ts +10 -8
- package/src/services/trtc/v20190722/trtc_client.ts +56 -6
- package/src/services/trtc/v20190722/trtc_models.ts +166 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +14 -0
- package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +4 -9
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +7 -7
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +13 -13
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +20 -0
- package/tencentcloud/services/sms/v20210111/sms_models.d.ts +4 -2
- package/tencentcloud/services/tmt/v20180321/tmt_client.d.ts +0 -1
- package/tencentcloud/services/tmt/v20180321/tmt_client.js +0 -1
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +10 -8
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +19 -3
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +27 -3
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +156 -0
- package/test/trtc.v20190722.test.js +42 -2
|
@@ -117,35 +117,35 @@ export interface SpeechTranslateResponse {
|
|
|
117
117
|
/**
|
|
118
118
|
* 请求的SessionUuid直接返回
|
|
119
119
|
*/
|
|
120
|
-
SessionUuid
|
|
120
|
+
SessionUuid?: string
|
|
121
121
|
/**
|
|
122
122
|
* 语音识别状态 1-进行中 0-完成
|
|
123
123
|
*/
|
|
124
|
-
RecognizeStatus
|
|
124
|
+
RecognizeStatus?: number
|
|
125
125
|
/**
|
|
126
126
|
* 识别出的原文
|
|
127
127
|
*/
|
|
128
|
-
SourceText
|
|
128
|
+
SourceText?: string
|
|
129
129
|
/**
|
|
130
130
|
* 翻译出的译文
|
|
131
131
|
*/
|
|
132
|
-
TargetText
|
|
132
|
+
TargetText?: string
|
|
133
133
|
/**
|
|
134
134
|
* 第几个语音分片
|
|
135
135
|
*/
|
|
136
|
-
Seq
|
|
136
|
+
Seq?: number
|
|
137
137
|
/**
|
|
138
138
|
* 原语言
|
|
139
139
|
*/
|
|
140
|
-
Source
|
|
140
|
+
Source?: string
|
|
141
141
|
/**
|
|
142
142
|
* 目标语言
|
|
143
143
|
*/
|
|
144
|
-
Target
|
|
144
|
+
Target?: string
|
|
145
145
|
/**
|
|
146
146
|
* 当请求的Mode参数填写bvad是,启动VadSeq。此时Seq会被设置为后台vad(静音检测)后的新序号,而VadSeq代表客户端原始Seq值
|
|
147
147
|
*/
|
|
148
|
-
VadSeq
|
|
148
|
+
VadSeq?: number
|
|
149
149
|
/**
|
|
150
150
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
151
151
|
*/
|
|
@@ -361,10 +361,12 @@ export interface SpeechTranslateRequest {
|
|
|
361
361
|
ProjectId?: number
|
|
362
362
|
/**
|
|
363
363
|
* 识别模式,该参数已废弃
|
|
364
|
+
* @deprecated
|
|
364
365
|
*/
|
|
365
366
|
Mode?: string
|
|
366
367
|
/**
|
|
367
368
|
* 该参数已废弃
|
|
369
|
+
* @deprecated
|
|
368
370
|
*/
|
|
369
371
|
TransType?: number
|
|
370
372
|
}
|
|
@@ -80,6 +80,7 @@ import {
|
|
|
80
80
|
DescribeRoomInfoResponse,
|
|
81
81
|
DismissRoomRequest,
|
|
82
82
|
DescribeTRTCRealTimeQualityMetricDataRequest,
|
|
83
|
+
DescribeAITranscriptionRequest,
|
|
83
84
|
SdkAppIdTrtcMcuTranscodeTimeUsage,
|
|
84
85
|
McuLayout,
|
|
85
86
|
DescribeUserInfoResponse,
|
|
@@ -121,6 +122,7 @@ import {
|
|
|
121
122
|
OutputParams,
|
|
122
123
|
DeleteCloudRecordingResponse,
|
|
123
124
|
StopMCUMixTranscodeByStrRoomIdRequest,
|
|
125
|
+
RecognizeConfig,
|
|
124
126
|
QualityData,
|
|
125
127
|
StopPublishCdnStreamRequest,
|
|
126
128
|
DeletePictureResponse,
|
|
@@ -146,20 +148,25 @@ import {
|
|
|
146
148
|
ModifyCloudRecordingResponse,
|
|
147
149
|
StartMCUMixTranscodeByStrRoomIdRequest,
|
|
148
150
|
DescribeCloudRecordingResponse,
|
|
151
|
+
StartAITranscriptionRequest,
|
|
149
152
|
DismissRoomResponse,
|
|
150
153
|
StopStreamIngestResponse,
|
|
151
154
|
MixUserInfo,
|
|
152
155
|
EventMessage,
|
|
153
156
|
DescribeTRTCMarketQualityDataRequest,
|
|
157
|
+
SummarizeTranscriptionRequest,
|
|
154
158
|
UpdatePublishCdnStreamRequest,
|
|
155
159
|
StartWebRecordRequest,
|
|
156
160
|
MaxVideoUser,
|
|
157
161
|
AgentParams,
|
|
158
162
|
StopWebRecordResponse,
|
|
163
|
+
SummarizeTranscriptionResponse,
|
|
159
164
|
DeletePictureRequest,
|
|
160
165
|
McuSeiParams,
|
|
166
|
+
StopAITranscriptionRequest,
|
|
161
167
|
UpdatePublishCdnStreamResponse,
|
|
162
168
|
McuWaterMarkText,
|
|
169
|
+
TranscriptionParams,
|
|
163
170
|
SeriesInfos,
|
|
164
171
|
RemoveUserByStrRoomIdRequest,
|
|
165
172
|
RecordParams,
|
|
@@ -169,14 +176,17 @@ import {
|
|
|
169
176
|
PresetLayoutConfig,
|
|
170
177
|
McuPublishCdnParam,
|
|
171
178
|
AudioParams,
|
|
179
|
+
StopAITranscriptionResponse,
|
|
172
180
|
SeriesInfo,
|
|
173
181
|
WaterMarkTimestamp,
|
|
174
182
|
SingleSubscribeParams,
|
|
175
183
|
PublishCdnParams,
|
|
184
|
+
DescribeAITranscriptionResponse,
|
|
176
185
|
McuWaterMarkParams,
|
|
177
186
|
AbnormalExperience,
|
|
178
187
|
RoomState,
|
|
179
188
|
CreatePictureResponse,
|
|
189
|
+
StartAITranscriptionResponse,
|
|
180
190
|
RemoveUserResponse,
|
|
181
191
|
} from "./trtc_models"
|
|
182
192
|
|
|
@@ -578,6 +588,16 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
578
588
|
return this.request("StartMCUMixTranscode", req, cb)
|
|
579
589
|
}
|
|
580
590
|
|
|
591
|
+
/**
|
|
592
|
+
* 这个接口调用后,后台会启动机器人,实时进行语音识别并下发字幕和会议记录。
|
|
593
|
+
*/
|
|
594
|
+
async StartAITranscription(
|
|
595
|
+
req: StartAITranscriptionRequest,
|
|
596
|
+
cb?: (error: string, rep: StartAITranscriptionResponse) => void
|
|
597
|
+
): Promise<StartAITranscriptionResponse> {
|
|
598
|
+
return this.request("StartAITranscription", req, cb)
|
|
599
|
+
}
|
|
600
|
+
|
|
581
601
|
/**
|
|
582
602
|
* 查询TRTC监控仪表盘-数据大盘规模指标(会返回通话人数,通话房间数,峰值同时在线人数,峰值同时在线频道数)
|
|
583
603
|
userCount:通话人数,
|
|
@@ -605,6 +625,16 @@ peakCurrentUsers:峰值同时在线人数。
|
|
|
605
625
|
return this.request("StopWebRecord", req, cb)
|
|
606
626
|
}
|
|
607
627
|
|
|
628
|
+
/**
|
|
629
|
+
* 停止转推任务。
|
|
630
|
+
*/
|
|
631
|
+
async StopPublishCdnStream(
|
|
632
|
+
req: StopPublishCdnStreamRequest,
|
|
633
|
+
cb?: (error: string, rep: StopPublishCdnStreamResponse) => void
|
|
634
|
+
): Promise<StopPublishCdnStreamResponse> {
|
|
635
|
+
return this.request("StopPublishCdnStream", req, cb)
|
|
636
|
+
}
|
|
637
|
+
|
|
608
638
|
/**
|
|
609
639
|
* 接口说明:
|
|
610
640
|
启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制又或者多路视频画面合流混成一路。
|
|
@@ -686,6 +716,16 @@ peakCurrentUsers:峰值同时在线人数。
|
|
|
686
716
|
return this.request("StopMCUMixTranscodeByStrRoomId", req, cb)
|
|
687
717
|
}
|
|
688
718
|
|
|
719
|
+
/**
|
|
720
|
+
* 对转录的文本进行总结
|
|
721
|
+
*/
|
|
722
|
+
async SummarizeTranscription(
|
|
723
|
+
req?: SummarizeTranscriptionRequest,
|
|
724
|
+
cb?: (error: string, rep: SummarizeTranscriptionResponse) => void
|
|
725
|
+
): Promise<SummarizeTranscriptionResponse> {
|
|
726
|
+
return this.request("SummarizeTranscription", req, cb)
|
|
727
|
+
}
|
|
728
|
+
|
|
689
729
|
/**
|
|
690
730
|
* 获取TRTC录制的用量明细。
|
|
691
731
|
- 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
|
|
@@ -800,6 +840,16 @@ peakCurrentUsers:峰值同时在线人数。
|
|
|
800
840
|
return this.request("ModifyPicture", req, cb)
|
|
801
841
|
}
|
|
802
842
|
|
|
843
|
+
/**
|
|
844
|
+
* 查询AI转录状态
|
|
845
|
+
*/
|
|
846
|
+
async DescribeAITranscription(
|
|
847
|
+
req: DescribeAITranscriptionRequest,
|
|
848
|
+
cb?: (error: string, rep: DescribeAITranscriptionResponse) => void
|
|
849
|
+
): Promise<DescribeAITranscriptionResponse> {
|
|
850
|
+
return this.request("DescribeAITranscription", req, cb)
|
|
851
|
+
}
|
|
852
|
+
|
|
803
853
|
/**
|
|
804
854
|
* 更新转推任务。
|
|
805
855
|
注:请参见启动转推任务的接口说明和使用说明。
|
|
@@ -865,13 +915,13 @@ networkDelay :网络延迟率。
|
|
|
865
915
|
}
|
|
866
916
|
|
|
867
917
|
/**
|
|
868
|
-
*
|
|
918
|
+
* 停止AI转录
|
|
869
919
|
*/
|
|
870
|
-
async
|
|
871
|
-
req:
|
|
872
|
-
cb?: (error: string, rep:
|
|
873
|
-
): Promise<
|
|
874
|
-
return this.request("
|
|
920
|
+
async StopAITranscription(
|
|
921
|
+
req: StopAITranscriptionRequest,
|
|
922
|
+
cb?: (error: string, rep: StopAITranscriptionResponse) => void
|
|
923
|
+
): Promise<StopAITranscriptionResponse> {
|
|
924
|
+
return this.request("StopAITranscription", req, cb)
|
|
875
925
|
}
|
|
876
926
|
|
|
877
927
|
/**
|
|
@@ -1422,6 +1422,16 @@ export interface DescribeTRTCRealTimeQualityMetricDataRequest {
|
|
|
1422
1422
|
RoomId?: string
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
|
+
/**
|
|
1426
|
+
* DescribeAITranscription请求参数结构体
|
|
1427
|
+
*/
|
|
1428
|
+
export interface DescribeAITranscriptionRequest {
|
|
1429
|
+
/**
|
|
1430
|
+
* 唯一标识AI转录任务。
|
|
1431
|
+
*/
|
|
1432
|
+
TaskId: string
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1425
1435
|
/**
|
|
1426
1436
|
* 查询旁路转码计费时长。
|
|
1427
1437
|
查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
|
|
@@ -2447,6 +2457,34 @@ export interface StopMCUMixTranscodeByStrRoomIdRequest {
|
|
|
2447
2457
|
StrRoomId: string
|
|
2448
2458
|
}
|
|
2449
2459
|
|
|
2460
|
+
/**
|
|
2461
|
+
* 语音识别使用的配置
|
|
2462
|
+
*/
|
|
2463
|
+
export interface RecognizeConfig {
|
|
2464
|
+
/**
|
|
2465
|
+
* 支持的语言,目前支持语言如下:
|
|
2466
|
+
Chinese = "zh"
|
|
2467
|
+
Chinese_TW = "zh-TW"
|
|
2468
|
+
English = "en"
|
|
2469
|
+
Vietnamese = "vi"
|
|
2470
|
+
Japanese = "ja"
|
|
2471
|
+
Korean = "ko"
|
|
2472
|
+
Indonesia = "id"
|
|
2473
|
+
Thai = "th"
|
|
2474
|
+
Portuguese = "pt"
|
|
2475
|
+
Turkish = "tr"
|
|
2476
|
+
Arabic = "ar"
|
|
2477
|
+
Spanish = "es"
|
|
2478
|
+
Hindi = "hi"
|
|
2479
|
+
French = "fr"
|
|
2480
|
+
*/
|
|
2481
|
+
Language?: string
|
|
2482
|
+
/**
|
|
2483
|
+
* 选填,如果填写,则会启用翻译,不填则忽略。支持语言同Language字段。
|
|
2484
|
+
*/
|
|
2485
|
+
TranslationLanguage?: string
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2450
2488
|
/**
|
|
2451
2489
|
* Es返回的质量数据
|
|
2452
2490
|
*/
|
|
@@ -2942,6 +2980,32 @@ Exited:表示当前录制任务正在退出的过程中。
|
|
|
2942
2980
|
RequestId?: string
|
|
2943
2981
|
}
|
|
2944
2982
|
|
|
2983
|
+
/**
|
|
2984
|
+
* StartAITranscription请求参数结构体
|
|
2985
|
+
*/
|
|
2986
|
+
export interface StartAITranscriptionRequest {
|
|
2987
|
+
/**
|
|
2988
|
+
* TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),使用该sdkappid开启任务。
|
|
2989
|
+
*/
|
|
2990
|
+
SdkAppId: number
|
|
2991
|
+
/**
|
|
2992
|
+
* TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),使用该roomid开启任务。
|
|
2993
|
+
*/
|
|
2994
|
+
RoomId: string
|
|
2995
|
+
/**
|
|
2996
|
+
* 启动转录机器人和鉴权的参数。
|
|
2997
|
+
*/
|
|
2998
|
+
TranscriptionParams: TranscriptionParams
|
|
2999
|
+
/**
|
|
3000
|
+
* TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
|
3001
|
+
*/
|
|
3002
|
+
RoomIdType?: number
|
|
3003
|
+
/**
|
|
3004
|
+
* 语音识别配置
|
|
3005
|
+
*/
|
|
3006
|
+
RecognizeConfig?: RecognizeConfig
|
|
3007
|
+
}
|
|
3008
|
+
|
|
2945
3009
|
/**
|
|
2946
3010
|
* DismissRoom返回参数结构体
|
|
2947
3011
|
*/
|
|
@@ -3034,6 +3098,11 @@ h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数
|
|
|
3034
3098
|
Period: string
|
|
3035
3099
|
}
|
|
3036
3100
|
|
|
3101
|
+
/**
|
|
3102
|
+
* SummarizeTranscription请求参数结构体
|
|
3103
|
+
*/
|
|
3104
|
+
export type SummarizeTranscriptionRequest = null
|
|
3105
|
+
|
|
3037
3106
|
/**
|
|
3038
3107
|
* UpdatePublishCdnStream请求参数结构体
|
|
3039
3108
|
*/
|
|
@@ -3155,6 +3224,16 @@ export interface StopWebRecordResponse {
|
|
|
3155
3224
|
RequestId?: string
|
|
3156
3225
|
}
|
|
3157
3226
|
|
|
3227
|
+
/**
|
|
3228
|
+
* SummarizeTranscription返回参数结构体
|
|
3229
|
+
*/
|
|
3230
|
+
export interface SummarizeTranscriptionResponse {
|
|
3231
|
+
/**
|
|
3232
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3233
|
+
*/
|
|
3234
|
+
RequestId?: string
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3158
3237
|
/**
|
|
3159
3238
|
* DeletePicture请求参数结构体
|
|
3160
3239
|
*/
|
|
@@ -3183,6 +3262,16 @@ export interface McuSeiParams {
|
|
|
3183
3262
|
PassThrough?: McuPassThrough
|
|
3184
3263
|
}
|
|
3185
3264
|
|
|
3265
|
+
/**
|
|
3266
|
+
* StopAITranscription请求参数结构体
|
|
3267
|
+
*/
|
|
3268
|
+
export interface StopAITranscriptionRequest {
|
|
3269
|
+
/**
|
|
3270
|
+
* 唯一标识转录任务。
|
|
3271
|
+
*/
|
|
3272
|
+
TaskId: string
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3186
3275
|
/**
|
|
3187
3276
|
* UpdatePublishCdnStream返回参数结构体
|
|
3188
3277
|
*/
|
|
@@ -3247,6 +3336,41 @@ export interface McuWaterMarkText {
|
|
|
3247
3336
|
Font?: string
|
|
3248
3337
|
}
|
|
3249
3338
|
|
|
3339
|
+
/**
|
|
3340
|
+
* AI转录参数
|
|
3341
|
+
*/
|
|
3342
|
+
export interface TranscriptionParams {
|
|
3343
|
+
/**
|
|
3344
|
+
* 转录机器人的UserId,用于进房发起转录任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个转录任务时,机器人的userid也不能相互重复,否则会中断前一个任务。需要保证转录机器人UserId在房间内唯一。
|
|
3345
|
+
*/
|
|
3346
|
+
UserId: string
|
|
3347
|
+
/**
|
|
3348
|
+
* 转录机器人UserId对应的校验签名,即UserId和UserSig相当于转录机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
3349
|
+
*/
|
|
3350
|
+
UserSig: string
|
|
3351
|
+
/**
|
|
3352
|
+
* IM[管理员账户](
|
|
3353
|
+
https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.91.98),如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。
|
|
3354
|
+
*/
|
|
3355
|
+
IMAdminUserId?: string
|
|
3356
|
+
/**
|
|
3357
|
+
* IM管理员账户生成的签名,用于向特定群组发送消息。如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。必须和IM管理员的UserId一起填写。
|
|
3358
|
+
*/
|
|
3359
|
+
IMAdminUserSig?: string
|
|
3360
|
+
/**
|
|
3361
|
+
* 房间内推流用户全部退出后超过MaxIdleTime秒,后台自动关闭转录任务,默认值是60s。
|
|
3362
|
+
*/
|
|
3363
|
+
MaxIdleTime?: number
|
|
3364
|
+
/**
|
|
3365
|
+
* 1表示机器人只订阅单个人的流,0表示机器人订阅整个房间的流,如果不填默认订阅整个房间的流。
|
|
3366
|
+
*/
|
|
3367
|
+
TranscriptionMode?: number
|
|
3368
|
+
/**
|
|
3369
|
+
* TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
|
|
3370
|
+
*/
|
|
3371
|
+
TargetUserId?: string
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3250
3374
|
/**
|
|
3251
3375
|
* SeriesInfos类型
|
|
3252
3376
|
*/
|
|
@@ -3464,6 +3588,16 @@ export interface AudioParams {
|
|
|
3464
3588
|
BitRate: number
|
|
3465
3589
|
}
|
|
3466
3590
|
|
|
3591
|
+
/**
|
|
3592
|
+
* StopAITranscription返回参数结构体
|
|
3593
|
+
*/
|
|
3594
|
+
export interface StopAITranscriptionResponse {
|
|
3595
|
+
/**
|
|
3596
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3597
|
+
*/
|
|
3598
|
+
RequestId?: string
|
|
3599
|
+
}
|
|
3600
|
+
|
|
3467
3601
|
/**
|
|
3468
3602
|
* SeriesInfo类型
|
|
3469
3603
|
*/
|
|
@@ -3524,6 +3658,24 @@ export interface PublishCdnParams {
|
|
|
3524
3658
|
PublishCdnUrls: Array<string>
|
|
3525
3659
|
}
|
|
3526
3660
|
|
|
3661
|
+
/**
|
|
3662
|
+
* DescribeAITranscription返回参数结构体
|
|
3663
|
+
*/
|
|
3664
|
+
export interface DescribeAITranscriptionResponse {
|
|
3665
|
+
/**
|
|
3666
|
+
* 起始时间。
|
|
3667
|
+
*/
|
|
3668
|
+
StartTime?: string
|
|
3669
|
+
/**
|
|
3670
|
+
* 转录任务状态。
|
|
3671
|
+
*/
|
|
3672
|
+
Status?: string
|
|
3673
|
+
/**
|
|
3674
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3675
|
+
*/
|
|
3676
|
+
RequestId?: string
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3527
3679
|
/**
|
|
3528
3680
|
* 水印参数。
|
|
3529
3681
|
*/
|
|
@@ -3612,6 +3764,20 @@ export interface CreatePictureResponse {
|
|
|
3612
3764
|
RequestId?: string
|
|
3613
3765
|
}
|
|
3614
3766
|
|
|
3767
|
+
/**
|
|
3768
|
+
* StartAITranscription返回参数结构体
|
|
3769
|
+
*/
|
|
3770
|
+
export interface StartAITranscriptionResponse {
|
|
3771
|
+
/**
|
|
3772
|
+
* 用于唯一标识转录任务。
|
|
3773
|
+
*/
|
|
3774
|
+
TaskId?: string
|
|
3775
|
+
/**
|
|
3776
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3777
|
+
*/
|
|
3778
|
+
RequestId?: string
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3615
3781
|
/**
|
|
3616
3782
|
* RemoveUser返回参数结构体
|
|
3617
3783
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.858";
|
|
@@ -2491,6 +2491,20 @@ export interface AvifAdapter {
|
|
|
2491
2491
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2492
2492
|
*/
|
|
2493
2493
|
Switch?: string;
|
|
2494
|
+
/**
|
|
2495
|
+
* 当原图是 avif 且客户端 Accept 头包含 image/avif 时,直接返回原图。
|
|
2496
|
+
当原图是 avif 且客户端 Accept 头不包含 image/avif 时但包含 image/webp,将 avif 转 webp 格式返回。如果 Accept 头不包含 image/webp, 则转 jpeg 返回。
|
|
2497
|
+
|
|
2498
|
+
可用的枚举值:
|
|
2499
|
+
- []
|
|
2500
|
+
- ["webp"]
|
|
2501
|
+
- ["jpeg"]
|
|
2502
|
+
- ["webp", "jpeg"]
|
|
2503
|
+
|
|
2504
|
+
"webp":是否开启 avif 转 webp,"jpeg": 是否开启 avif 转 jpeg。如果 webp 和 jpeg 都开启的情况下,webp 必须在 jpeg 前面。
|
|
2505
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2506
|
+
*/
|
|
2507
|
+
FallbackFormats?: Array<string>;
|
|
2494
2508
|
}
|
|
2495
2509
|
/**
|
|
2496
2510
|
* 远程鉴权规则。
|
|
@@ -481,7 +481,7 @@ export interface DSPACosMetaDataInfo {
|
|
|
481
481
|
Storage?: number;
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
|
-
* DSPA
|
|
484
|
+
* DSPA评估模板
|
|
485
485
|
*/
|
|
486
486
|
export interface AssessmentTemplate {
|
|
487
487
|
/**
|
|
@@ -1999,12 +1999,7 @@ export interface DescribeDSPAAssessmentTemplatesRequest {
|
|
|
1999
1999
|
*/
|
|
2000
2000
|
Limit?: number;
|
|
2001
2001
|
/**
|
|
2002
|
-
*
|
|
2003
|
-
支持模糊搜索:(TemplateId,TemplateName)
|
|
2004
|
-
支持过滤:
|
|
2005
|
-
Source:模版来源,system / user
|
|
2006
|
-
UseType:模版类型,auto,semi-auto,law等
|
|
2007
|
-
Status:模版启用状态,draft / launched
|
|
2002
|
+
* 过滤项。支持模糊搜索:(TemplateId,TemplateName)支持过滤:Source:模板来源,system / userUseType:模板类型,auto,semi-auto,law等Status:模板启用状态,draft / launched
|
|
2008
2003
|
*/
|
|
2009
2004
|
Filters?: Array<DspaAssessmentFilter>;
|
|
2010
2005
|
}
|
|
@@ -5492,7 +5487,7 @@ export interface CreateDSPAAssessmentRiskTemplateRequest {
|
|
|
5492
5487
|
*/
|
|
5493
5488
|
DspaId: string;
|
|
5494
5489
|
/**
|
|
5495
|
-
*
|
|
5490
|
+
* 模板名称
|
|
5496
5491
|
*/
|
|
5497
5492
|
TemplateName: string;
|
|
5498
5493
|
/**
|
|
@@ -5504,7 +5499,7 @@ export interface CreateDSPAAssessmentRiskTemplateRequest {
|
|
|
5504
5499
|
*/
|
|
5505
5500
|
RiskIdList: Array<number | bigint>;
|
|
5506
5501
|
/**
|
|
5507
|
-
*
|
|
5502
|
+
* 模板描述
|
|
5508
5503
|
*/
|
|
5509
5504
|
TemplateDescription?: string;
|
|
5510
5505
|
}
|
|
@@ -5,31 +5,31 @@ export interface ApplicationList {
|
|
|
5
5
|
/**
|
|
6
6
|
* 服务开关状态
|
|
7
7
|
*/
|
|
8
|
-
ServiceConf
|
|
8
|
+
ServiceConf?: ServiceStatus;
|
|
9
9
|
/**
|
|
10
10
|
* 应用ID(AppID)
|
|
11
11
|
*/
|
|
12
|
-
BizId
|
|
12
|
+
BizId?: number;
|
|
13
13
|
/**
|
|
14
14
|
* 应用名称
|
|
15
15
|
*/
|
|
16
|
-
AppName
|
|
16
|
+
AppName?: string;
|
|
17
17
|
/**
|
|
18
18
|
* 项目ID,默认为0
|
|
19
19
|
*/
|
|
20
|
-
ProjectId
|
|
20
|
+
ProjectId?: number;
|
|
21
21
|
/**
|
|
22
22
|
* 应用状态,返回0表示正常,1表示关闭,2表示欠费停服,3表示欠费回收
|
|
23
23
|
*/
|
|
24
|
-
AppStatus
|
|
24
|
+
AppStatus?: number;
|
|
25
25
|
/**
|
|
26
26
|
* 创建时间,Unix时间戳格式
|
|
27
27
|
*/
|
|
28
|
-
CreateTime
|
|
28
|
+
CreateTime?: number;
|
|
29
29
|
/**
|
|
30
30
|
* 应用类型,无需关注此数值
|
|
31
31
|
*/
|
|
32
|
-
AppType
|
|
32
|
+
AppType?: number;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* ModifyAppStatus请求参数结构体
|
|
@@ -5463,13 +5463,13 @@ export interface AiAnalysisTaskTagResult {
|
|
|
5463
5463
|
Output?: AiAnalysisTaskTagOutput;
|
|
5464
5464
|
}
|
|
5465
5465
|
/**
|
|
5466
|
-
*
|
|
5466
|
+
* 智能擦除任务输入类型
|
|
5467
5467
|
*/
|
|
5468
5468
|
export interface AiAnalysisTaskDelLogoInput {
|
|
5469
5469
|
/**
|
|
5470
|
-
*
|
|
5470
|
+
* 视频智能擦除模板 ID。
|
|
5471
5471
|
*/
|
|
5472
|
-
Definition
|
|
5472
|
+
Definition?: number;
|
|
5473
5473
|
}
|
|
5474
5474
|
/**
|
|
5475
5475
|
* BatchStopStreamLinkFlow请求参数结构体
|
|
@@ -7445,7 +7445,7 @@ export interface AiAnalysisResult {
|
|
|
7445
7445
|
<li>Tag:智能标签</li>
|
|
7446
7446
|
<li>FrameTag:智能按帧标签</li>
|
|
7447
7447
|
<li>Highlight:智能精彩集锦</li>
|
|
7448
|
-
<li>DeLogo
|
|
7448
|
+
<li>DeLogo:智能擦除</li>
|
|
7449
7449
|
<li>Description:大模型摘要</li>
|
|
7450
7450
|
*/
|
|
7451
7451
|
Type?: string;
|
|
@@ -7475,7 +7475,7 @@ export interface AiAnalysisResult {
|
|
|
7475
7475
|
*/
|
|
7476
7476
|
HighlightTask?: AiAnalysisTaskHighlightResult;
|
|
7477
7477
|
/**
|
|
7478
|
-
*
|
|
7478
|
+
* 视频内容分析智能擦除任务的查询结果,当任务类型为 DeLogo 时有效。
|
|
7479
7479
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7480
7480
|
*/
|
|
7481
7481
|
DeLogoTask?: AiAnalysisTaskDelLogoResult;
|
|
@@ -8724,17 +8724,17 @@ export interface DescribeStreamLinkFlowRealtimeStatusRequest {
|
|
|
8724
8724
|
OutputIds?: Array<string>;
|
|
8725
8725
|
}
|
|
8726
8726
|
/**
|
|
8727
|
-
*
|
|
8727
|
+
* 智能擦除结果信息
|
|
8728
8728
|
*/
|
|
8729
8729
|
export interface AiAnalysisTaskDelLogoOutput {
|
|
8730
8730
|
/**
|
|
8731
|
-
*
|
|
8731
|
+
* 擦除后文件的路径。
|
|
8732
8732
|
*/
|
|
8733
|
-
Path
|
|
8733
|
+
Path?: string;
|
|
8734
8734
|
/**
|
|
8735
|
-
*
|
|
8735
|
+
* 擦除后文件的存储位置。
|
|
8736
8736
|
*/
|
|
8737
|
-
OutputStorage
|
|
8737
|
+
OutputStorage?: TaskOutputStorage;
|
|
8738
8738
|
}
|
|
8739
8739
|
/**
|
|
8740
8740
|
* Asr 文字涉违禁信息
|
|
@@ -13460,7 +13460,7 @@ export interface LiveActivityResItem {
|
|
|
13460
13460
|
LiveRecordTask?: LiveScheduleLiveRecordTaskResult;
|
|
13461
13461
|
}
|
|
13462
13462
|
/**
|
|
13463
|
-
*
|
|
13463
|
+
* 智能擦除结果类型
|
|
13464
13464
|
*/
|
|
13465
13465
|
export interface AiAnalysisTaskDelLogoResult {
|
|
13466
13466
|
/**
|
|
@@ -13476,11 +13476,11 @@ export interface AiAnalysisTaskDelLogoResult {
|
|
|
13476
13476
|
*/
|
|
13477
13477
|
Message?: string;
|
|
13478
13478
|
/**
|
|
13479
|
-
*
|
|
13479
|
+
* 智能擦除任务输入。
|
|
13480
13480
|
*/
|
|
13481
13481
|
Input?: AiAnalysisTaskDelLogoInput;
|
|
13482
13482
|
/**
|
|
13483
|
-
*
|
|
13483
|
+
* 智能擦除任务输出。
|
|
13484
13484
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
13485
13485
|
*/
|
|
13486
13486
|
Output?: AiAnalysisTaskDelLogoOutput;
|
|
@@ -3195,10 +3195,30 @@ export interface RecognizeThaiIDCardOCRResponse {
|
|
|
3195
3195
|
* 泰文到期日期
|
|
3196
3196
|
*/
|
|
3197
3197
|
ExpirationDate?: string;
|
|
3198
|
+
/**
|
|
3199
|
+
* 英文签发日期
|
|
3200
|
+
*/
|
|
3201
|
+
EnIssueDate?: string;
|
|
3202
|
+
/**
|
|
3203
|
+
* 英文到期日期
|
|
3204
|
+
*/
|
|
3205
|
+
EnExpirationDate?: string;
|
|
3198
3206
|
/**
|
|
3199
3207
|
* 泰文出生日期
|
|
3200
3208
|
*/
|
|
3201
3209
|
Birthday?: string;
|
|
3210
|
+
/**
|
|
3211
|
+
* 英文出生日期
|
|
3212
|
+
*/
|
|
3213
|
+
EnBirthday?: string;
|
|
3214
|
+
/**
|
|
3215
|
+
* 宗教信仰
|
|
3216
|
+
*/
|
|
3217
|
+
Religion?: string;
|
|
3218
|
+
/**
|
|
3219
|
+
* 序列号
|
|
3220
|
+
*/
|
|
3221
|
+
SerialNumber?: string;
|
|
3202
3222
|
/**
|
|
3203
3223
|
* 地址
|
|
3204
3224
|
*/
|
|
@@ -292,7 +292,8 @@ export interface AddSmsTemplateRequest {
|
|
|
292
292
|
*/
|
|
293
293
|
TemplateContent: string;
|
|
294
294
|
/**
|
|
295
|
-
* 短信类型,
|
|
295
|
+
* 短信类型,1表示营销短信,2表示通知短信,3表示验证码短信。
|
|
296
|
+
注:原“普通短信”类型模板目前仍支持提交申请,但为进一步提升短信发送质量、提高短信模板审核通过率,建议按“通知短信”类型或“验证码短信”类型申请新增模板,可参考[关于腾讯云短信模板类型优化公告](https://cloud.tencent.com/document/product/382/106171)。
|
|
296
297
|
*/
|
|
297
298
|
SmsType: number;
|
|
298
299
|
/**
|
|
@@ -323,7 +324,8 @@ export interface ModifySmsTemplateRequest {
|
|
|
323
324
|
*/
|
|
324
325
|
TemplateContent: string;
|
|
325
326
|
/**
|
|
326
|
-
* 短信类型,
|
|
327
|
+
* 短信类型,1表示营销短信,2表示通知短信,3表示验证码短信。
|
|
328
|
+
注:原“普通短信”类型模板目前仍支持提交申请,为进一步提升短信发送质量、提高短信模板审核通过率,建议按“通知短信”类型或“验证码短信”类型申请新增模板,可参考[关于腾讯云短信模板类型优化公告](https://cloud.tencent.com/document/product/382/106171)。
|
|
327
329
|
*/
|
|
328
330
|
SmsType: number;
|
|
329
331
|
/**
|
|
@@ -41,7 +41,6 @@ export declare class Client extends AbstractClient {
|
|
|
41
41
|
待识别和翻译的音频文件可以是 pcm、mp3和speex 格式,pcm采样率要求16kHz、位深16bit、单声道,音频内语音清晰。<br/>
|
|
42
42
|
如果采用流式传输的方式,要求每个分片时长200ms~500ms;如果采用非流式的传输方式,要求音频时长不超过8s。注意最后一个分片的IsEnd参数设置为1。<br />
|
|
43
43
|
提示:对于一般开发者,我们建议优先使用SDK接入简化开发。SDK使用介绍请直接查看 5. 开发者资源部分。
|
|
44
|
-
|
|
45
44
|
*/
|
|
46
45
|
SpeechTranslate(req: SpeechTranslateRequest, cb?: (error: string, rep: SpeechTranslateResponse) => void): Promise<SpeechTranslateResponse>;
|
|
47
46
|
}
|