tencentcloud-sdk-nodejs-vod 4.1.171 → 4.1.172
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/package.json
CHANGED
|
@@ -6873,6 +6873,23 @@ export interface ContentReviewResult {
|
|
|
6873
6873
|
*/
|
|
6874
6874
|
PoliticalOcrResult?: ContentReviewOcrResult;
|
|
6875
6875
|
}
|
|
6876
|
+
/**
|
|
6877
|
+
* 场景化 AIGC 生视频任务信息
|
|
6878
|
+
*/
|
|
6879
|
+
export interface SceneAigcVideoTaskInput {
|
|
6880
|
+
/**
|
|
6881
|
+
* 场景化生图参数配置。
|
|
6882
|
+
*/
|
|
6883
|
+
SceneInfo?: AigcVideoSceneInfo;
|
|
6884
|
+
/**
|
|
6885
|
+
* 输入图片列表。
|
|
6886
|
+
*/
|
|
6887
|
+
FileInfos?: Array<SceneAigcVideoTaskInputFileInfo>;
|
|
6888
|
+
/**
|
|
6889
|
+
* 场景化生图任务的输出媒体文件配置。
|
|
6890
|
+
*/
|
|
6891
|
+
OutputConfig?: SceneAigcVideoOutputConfig;
|
|
6892
|
+
}
|
|
6876
6893
|
/**
|
|
6877
6894
|
* 对视频截雪碧图任务结果类型
|
|
6878
6895
|
*/
|
|
@@ -7539,6 +7556,12 @@ export interface AigcVideoTaskInputFileInfo {
|
|
|
7539
7556
|
* 输入的视频文件类型。取值有: <li>File:点播媒体文件;</li> <li>Url:可访问的 URL;</li>
|
|
7540
7557
|
*/
|
|
7541
7558
|
Type?: string;
|
|
7559
|
+
/**
|
|
7560
|
+
* 文件分类。取值为:
|
|
7561
|
+
<li>Image: 图片;</li>
|
|
7562
|
+
<li>Video: 视频。</li>
|
|
7563
|
+
*/
|
|
7564
|
+
Category?: string;
|
|
7542
7565
|
/**
|
|
7543
7566
|
* 媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。当 Type 取值为 File 时,本参数有效。说明:
|
|
7544
7567
|
1. 推荐使用小于10M的图片;
|
|
@@ -8399,6 +8422,15 @@ export interface DescribeCDNUsageDataResponse {
|
|
|
8399
8422
|
*/
|
|
8400
8423
|
RequestId?: string;
|
|
8401
8424
|
}
|
|
8425
|
+
/**
|
|
8426
|
+
* 场景化 AIGC 生成视频任务的输出。
|
|
8427
|
+
*/
|
|
8428
|
+
export interface SceneAigcVideoTaskOutput {
|
|
8429
|
+
/**
|
|
8430
|
+
* AIGC 生视频任务的输出文件信息。
|
|
8431
|
+
*/
|
|
8432
|
+
FileInfos?: Array<SceneAigcImageTaskOutputFileInfo>;
|
|
8433
|
+
}
|
|
8402
8434
|
/**
|
|
8403
8435
|
* ModifyWordSample请求参数结构体
|
|
8404
8436
|
*/
|
|
@@ -9348,13 +9380,13 @@ export interface CreateAigcVideoTaskRequest {
|
|
|
9348
9380
|
*/
|
|
9349
9381
|
ModelVersion: string;
|
|
9350
9382
|
/**
|
|
9351
|
-
*
|
|
9383
|
+
* 最多包含三张素材资源文件的列表,用于描述模型在生成视频时要使用的资源文件。
|
|
9352
9384
|
|
|
9353
|
-
首尾帧视频生成:用FileInfos第一张表示首帧(此时FileInfos最多包含一张图片),LastFrameFileId或者LastFrameUrl表示尾帧。
|
|
9385
|
+
首尾帧视频生成:用 FileInfos 第一张表示首帧(此时 FileInfos 最多包含一张图片),LastFrameFileId 或者 LastFrameUrl 表示尾帧。
|
|
9354
9386
|
|
|
9355
9387
|
支持多图输入的模型:
|
|
9356
|
-
1. GV,使用多图输入时,不可使用LastFrameFileId和LastFrameUrl。
|
|
9357
|
-
2. Vidu,支持多图参考生视频。q2模型1-7张图片,可通过FileInfos里面的ObjectId作为主体id来传入。
|
|
9388
|
+
1. GV,使用多图输入时,不可使用 LastFrameFileId 和 LastFrameUrl。
|
|
9389
|
+
2. Vidu,支持多图参考生视频。q2 模型1-7张图片,可通过 FileInfos 里面的 ObjectId 作为主体 id 来传入。
|
|
9358
9390
|
|
|
9359
9391
|
注意:
|
|
9360
9392
|
1. 图片大小不超过10M。
|
|
@@ -9392,6 +9424,16 @@ export interface CreateAigcVideoTaskRequest {
|
|
|
9392
9424
|
* 生视频任务的输出媒体文件配置。
|
|
9393
9425
|
*/
|
|
9394
9426
|
OutputConfig?: AigcVideoOutputConfig;
|
|
9427
|
+
/**
|
|
9428
|
+
* 输入文件的区域信息。当文件url是国外地址时候,可选Oversea。默认Mainland。
|
|
9429
|
+
*/
|
|
9430
|
+
InputRegion?: string;
|
|
9431
|
+
/**
|
|
9432
|
+
* 场景类型。取值如下:
|
|
9433
|
+
<li>当 ModelName 为 Kling 时,取值 motion_control 表示动作控制;</li>
|
|
9434
|
+
<li>其他 ModelName 暂不支持。</li>
|
|
9435
|
+
*/
|
|
9436
|
+
SceneType?: string;
|
|
9395
9437
|
/**
|
|
9396
9438
|
* 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
|
9397
9439
|
*/
|
|
@@ -9408,10 +9450,6 @@ export interface CreateAigcVideoTaskRequest {
|
|
|
9408
9450
|
* 保留字段,特殊用途时使用。
|
|
9409
9451
|
*/
|
|
9410
9452
|
ExtInfo?: string;
|
|
9411
|
-
/**
|
|
9412
|
-
* 输入图片的区域信息。当图片url是国外地址时候,可选Oversea。默认Mainland。
|
|
9413
|
-
*/
|
|
9414
|
-
InputRegion?: string;
|
|
9415
9453
|
}
|
|
9416
9454
|
/**
|
|
9417
9455
|
* 自适应码流任务多语言音频流输入参数。
|
|
@@ -12708,7 +12746,25 @@ export interface MPSAiMediaTask {
|
|
|
12708
12746
|
*/
|
|
12709
12747
|
OutputFile?: Array<MPSOutputFileInfo>;
|
|
12710
12748
|
/**
|
|
12711
|
-
* MPS
|
|
12749
|
+
* MPS智能任务返回的结果,该字段对应 MPS 任务返回中的Output结果,以 JSON 格式返回
|
|
12750
|
+
不同MPS任务输出结果结构不同,具体返回内容参考MPS任务输出结构体
|
|
12751
|
+
[智能分类结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskClassificationOutput)
|
|
12752
|
+
[智能封面结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskCoverOutput)
|
|
12753
|
+
[智能标签结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskTagOutput)
|
|
12754
|
+
[智能按帧标签分类结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskFrameTagOutput)
|
|
12755
|
+
[智能高光结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskHighlightOutput)
|
|
12756
|
+
[智能拆条结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskSegmentOutput)
|
|
12757
|
+
[智能片头片尾结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskHeadTailOutput)
|
|
12758
|
+
[智能摘要结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskDescriptionOutput)
|
|
12759
|
+
[智能横转竖结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskHorizontalToVerticalOutput)
|
|
12760
|
+
[智能译制结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskDubbingOutput)
|
|
12761
|
+
[智能视频理解结果](https://cloud.tencent.com/document/product/862/37615#AiAnalysisTaskVideoComprehensionOutput)
|
|
12762
|
+
[智能字幕语音全文识别结果](https://cloud.tencent.com/document/product/862/37615#SmartSubtitleTaskAsrFullTextResultOutput)
|
|
12763
|
+
[智能字幕翻译结果](https://cloud.tencent.com/document/product/862/37615#SmartSubtitleTaskTransTextResultOutput)
|
|
12764
|
+
[智能字幕纯字幕文件翻译结果](https://cloud.tencent.com/document/product/862/37615#PureSubtitleTransResultOutput)
|
|
12765
|
+
[智能字幕文字提取字幕结果](https://cloud.tencent.com/document/product/862/37615#SmartSubtitleTaskTextResultOutput)
|
|
12766
|
+
|
|
12767
|
+
|
|
12712
12768
|
*/
|
|
12713
12769
|
OutputText?: string;
|
|
12714
12770
|
}
|
|
@@ -15980,6 +16036,47 @@ export interface SDMCDrmKeyProviderInfo {
|
|
|
15980
16036
|
*/
|
|
15981
16037
|
FairPlayCertificateUrl: string;
|
|
15982
16038
|
}
|
|
16039
|
+
/**
|
|
16040
|
+
* 场景化 AIGC 生视频任务信息
|
|
16041
|
+
*/
|
|
16042
|
+
export interface SceneAigcVideoTask {
|
|
16043
|
+
/**
|
|
16044
|
+
* 任务 ID。
|
|
16045
|
+
*/
|
|
16046
|
+
TaskId?: string;
|
|
16047
|
+
/**
|
|
16048
|
+
* 任务状态,取值:<li>PROCESSING:处理中;</li><li>FINISH:已完成。</li>
|
|
16049
|
+
*/
|
|
16050
|
+
Status?: string;
|
|
16051
|
+
/**
|
|
16052
|
+
* 错误码。源异常时返回非0错误码,返回0时请使用各个具体任务的 ErrCode。
|
|
16053
|
+
*/
|
|
16054
|
+
ErrCode?: number;
|
|
16055
|
+
/**
|
|
16056
|
+
* 错误信息。
|
|
16057
|
+
*/
|
|
16058
|
+
Message?: string;
|
|
16059
|
+
/**
|
|
16060
|
+
* 任务进度,取值范围 [0-100] 。
|
|
16061
|
+
*/
|
|
16062
|
+
Progress?: number;
|
|
16063
|
+
/**
|
|
16064
|
+
* AIGC 生视频任务的输入信息。
|
|
16065
|
+
*/
|
|
16066
|
+
Input?: SceneAigcVideoTaskInput;
|
|
16067
|
+
/**
|
|
16068
|
+
* AIGC 生视频任务的输出信息。
|
|
16069
|
+
*/
|
|
16070
|
+
Output?: SceneAigcVideoTaskOutput;
|
|
16071
|
+
/**
|
|
16072
|
+
* 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
|
16073
|
+
*/
|
|
16074
|
+
SessionId?: string;
|
|
16075
|
+
/**
|
|
16076
|
+
* 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
|
16077
|
+
*/
|
|
16078
|
+
SessionContext?: string;
|
|
16079
|
+
}
|
|
15983
16080
|
/**
|
|
15984
16081
|
* CreateSceneAigcVideoTask返回参数结构体
|
|
15985
16082
|
*/
|
|
@@ -17176,7 +17273,7 @@ export interface AiRecognitionTaskAsrFullTextResultOutputSubtitleItem {
|
|
|
17176
17273
|
*/
|
|
17177
17274
|
export interface DescribeTaskDetailResponse {
|
|
17178
17275
|
/**
|
|
17179
|
-
* 任务类型,取值:<li>Procedure:视频处理任务;</li><li>EditMedia:视频编辑任务;</li><li>SplitMedia:视频拆条任务;</li><li>ComposeMedia:制作媒体文件任务;</li><li>WechatPublish:微信发布任务;</li><li>WechatMiniProgramPublish:微信小程序视频发布任务;</li><li>PullUpload:拉取上传媒体文件任务;</li><li>FastClipMedia:快速剪辑任务;</li><li>RemoveWatermarkTask:智能去除水印任务;</li><li>DescribeFileAttributesTask:获取文件属性任务;</li><li>RebuildMedia:音画质重生任务(不推荐使用);</li><li>ReviewAudioVideo:音视频审核任务;</li><li>ExtractTraceWatermark:提取溯源水印任务;</li><li>ExtractCopyRightWatermark:提取版权水印任务;</li><li>QualityInspect:音画质检测任务;</li><li>QualityEnhance:音画质重生任务;</li><li>ComplexAdaptiveDynamicStreaming:复杂自适应码流任务;</li><li>ProcessMediaByMPS:MPS 视频处理任务;</li><li>AigcImageTask:AIGC 生图任务;</li><li>SceneAigcImageTask:场景化 AIGC 生图任务;</li><li>AigcVideoTask:AIGC 生视频任务;</li><li>ImportMediaKnowledge:导入媒体知识任务。</li>
|
|
17276
|
+
* 任务类型,取值:<li>Procedure:视频处理任务;</li><li>EditMedia:视频编辑任务;</li><li>SplitMedia:视频拆条任务;</li><li>ComposeMedia:制作媒体文件任务;</li><li>WechatPublish:微信发布任务;</li><li>WechatMiniProgramPublish:微信小程序视频发布任务;</li><li>PullUpload:拉取上传媒体文件任务;</li><li>FastClipMedia:快速剪辑任务;</li><li>RemoveWatermarkTask:智能去除水印任务;</li><li>DescribeFileAttributesTask:获取文件属性任务;</li><li>RebuildMedia:音画质重生任务(不推荐使用);</li><li>ReviewAudioVideo:音视频审核任务;</li><li>ExtractTraceWatermark:提取溯源水印任务;</li><li>ExtractCopyRightWatermark:提取版权水印任务;</li><li>QualityInspect:音画质检测任务;</li><li>QualityEnhance:音画质重生任务;</li><li>ComplexAdaptiveDynamicStreaming:复杂自适应码流任务;</li><li>ProcessMediaByMPS:MPS 视频处理任务;</li><li>AigcImageTask:AIGC 生图任务;</li><li>SceneAigcImageTask:场景化 AIGC 生图任务;</li><li>AigcVideoTask:AIGC 生视频任务;</li><li>ImportMediaKnowledge:导入媒体知识任务。</li><li>SceneAigcVideoTask:场景化 AIGC 生视频任务;</li>
|
|
17180
17277
|
*/
|
|
17181
17278
|
TaskType?: string;
|
|
17182
17279
|
/**
|
|
@@ -17329,6 +17426,10 @@ export interface DescribeTaskDetailResponse {
|
|
|
17329
17426
|
* 场景化 AIGC 生图任务信息,仅当 TaskType 为 SceneAigcImageTask,该字段有值。
|
|
17330
17427
|
*/
|
|
17331
17428
|
SceneAigcImageTask?: SceneAigcImageTask;
|
|
17429
|
+
/**
|
|
17430
|
+
* 场景化 AIGC 生视频任务信息,仅当 TaskType 为 SceneAigcVideoTask,该字段有值。
|
|
17431
|
+
*/
|
|
17432
|
+
SceneAigcVideoTask?: SceneAigcVideoTask;
|
|
17332
17433
|
/**
|
|
17333
17434
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
17334
17435
|
*/
|
|
@@ -19222,11 +19323,27 @@ export interface TerrorismImgReviewTemplateInfo {
|
|
|
19222
19323
|
*/
|
|
19223
19324
|
export interface MPSAiMediaItem {
|
|
19224
19325
|
/**
|
|
19225
|
-
* MPS
|
|
19326
|
+
* MPS智能处理任务类型,可取值:
|
|
19327
|
+
<li>AiAnalysis.ClassificationTask:智能分类任务。</li>
|
|
19328
|
+
<li>AiAnalysis.CoverTask:智能封面任务。</li>
|
|
19329
|
+
<li>AiAnalysis.TagTask:智能标签任务。</li>
|
|
19330
|
+
<li>AiAnalysis.FrameTagTask:智能按帧标签任务。</li>
|
|
19331
|
+
<li>AiAnalysis.HighlightTask:智能高光任务。</li>
|
|
19332
|
+
<li>AiAnalysis.SegmentTask:智能拆条任务。</li>
|
|
19333
|
+
<li>AiAnalysis.HeadTailTask:智能片头片尾任务。</li>
|
|
19334
|
+
<li>AiAnalysis.DescriptionTask:智能摘要任务。</li>
|
|
19335
|
+
<li>AiAnalysis.HorizontalToVerticalTask:智能横转竖任务。</li>
|
|
19336
|
+
<li>AiAnalysis.DubbingTask:智能译制任务。</li>
|
|
19337
|
+
<li>AiAnalysis.VideoRemakeTask:智能去重任务。</li>
|
|
19338
|
+
<li>AiAnalysis.VideoComprehensionTask:视频理解任务。</li>
|
|
19339
|
+
<li>SmartSubtitle.AsrFullTextTask:智能语音全文识别任务。</li>
|
|
19340
|
+
<li>SmartSubtitle.TransTextTask: 翻译结果。</li>
|
|
19341
|
+
<li>SmartSubtitle.PureSubtitleTransTask:返回纯字幕文件翻译结果。</li>
|
|
19342
|
+
<li>SmartSubtitle.OcrFullTextTask:智能文字提取字幕任务。</li>
|
|
19226
19343
|
*/
|
|
19227
19344
|
TaskType?: string;
|
|
19228
19345
|
/**
|
|
19229
|
-
* MPS
|
|
19346
|
+
* MPS 智能处理任务结果集合
|
|
19230
19347
|
*/
|
|
19231
19348
|
AiMediaTasks?: Array<MPSAiMediaTask>;
|
|
19232
19349
|
}
|
|
@@ -21954,6 +22071,13 @@ export interface AigcVideoTaskInput {
|
|
|
21954
22071
|
* 用于作为尾帧画面来生成视频的媒体文件 ID。该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。
|
|
21955
22072
|
*/
|
|
21956
22073
|
LastFrameFileId?: string;
|
|
22074
|
+
/**
|
|
22075
|
+
* 用于作为尾帧画面来生成视频的媒体文件 URL。说明:
|
|
22076
|
+
1. 只支持模型 GV 、Kling、Vidu,其他模型暂不支持。当 ModelName 为 GV 时,如果指定该参数,则需同时指定 FileInfos 作为待生成视频的首帧。当 ModelName 为 Kling 、ModelVersion 为 2.1 并且指定输出分辨率 Resolution 为 1080P 时,才能指定该参数。当 ModelName 为 Vidu、ModelVersion 为 q2-pro、q2-turbo 时,才能指定该参数。
|
|
22077
|
+
2. 图片大小需小于5M。
|
|
22078
|
+
3. 3. 图片格式的取值为:jpeg,jpg, png, webp。
|
|
22079
|
+
*/
|
|
22080
|
+
LastFrameUrl?: string;
|
|
21957
22081
|
/**
|
|
21958
22082
|
* 生成视频的提示词。最大支持1000字符,当 FileInfos 为空时,此参数必填。
|
|
21959
22083
|
*/
|
|
@@ -21974,6 +22098,14 @@ export interface AigcVideoTaskInput {
|
|
|
21974
22098
|
* AIGC 生图输出结果文件输出。
|
|
21975
22099
|
*/
|
|
21976
22100
|
OutputConfig?: AigcVideoOutputConfig;
|
|
22101
|
+
/**
|
|
22102
|
+
* 输入文件的区域信息。当文件url是国外地址时候,可选Oversea。默认Mainland。
|
|
22103
|
+
*/
|
|
22104
|
+
InputRegion?: string;
|
|
22105
|
+
/**
|
|
22106
|
+
* 场景类型。取值如下:<li>当 ModelName 为 Kling 时,取值 motion_control 表示动作控制;</li><li>其他 ModelName 暂不支持。</li>
|
|
22107
|
+
*/
|
|
22108
|
+
SceneType?: string;
|
|
21977
22109
|
}
|
|
21978
22110
|
/**
|
|
21979
22111
|
* 视频片头片尾识别结果。
|
|
@@ -22474,6 +22606,10 @@ export interface CreateSceneAigcVideoTaskRequest {
|
|
|
22474
22606
|
* 保留字段,特殊用途时使用。
|
|
22475
22607
|
*/
|
|
22476
22608
|
ExtInfo?: string;
|
|
22609
|
+
/**
|
|
22610
|
+
* 用户自定义prompt
|
|
22611
|
+
*/
|
|
22612
|
+
Prompt?: string;
|
|
22477
22613
|
}
|
|
22478
22614
|
/**
|
|
22479
22615
|
* DeleteWatermarkTemplate返回参数结构体
|