tencentcloud-sdk-nodejs-vm 4.0.1052 → 4.1.18
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/README.md +27 -5
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/vm/index.js +8 -0
- package/es/services/vm/v20200709/index.js +6 -0
- package/es/services/vm/v20200709/vm_client.js +21 -0
- package/es/services/vm/v20200709/vm_models.js +0 -0
- package/es/services/vm/v20201229/index.js +6 -0
- package/es/services/vm/v20201229/vm_client.js +18 -0
- package/es/services/vm/v20201229/vm_models.js +0 -0
- package/es/services/vm/v20210922/index.js +6 -0
- package/es/services/vm/v20210922/vm_client.js +18 -0
- package/es/services/vm/v20210922/vm_models.js +0 -0
- package/package.json +26 -8
- package/tencentcloud/services/vm/index.d.ts +4 -4
- package/tencentcloud/services/vm/index.js +2 -2
- package/tencentcloud/services/vm/v20200709/index.js +2 -1
- package/tencentcloud/services/vm/v20200709/vm_client.js +2 -1
- package/tencentcloud/services/vm/v20201229/index.js +2 -1
- package/tencentcloud/services/vm/v20201229/vm_client.js +2 -1
- package/tencentcloud/services/vm/v20210922/index.js +2 -1
- package/tencentcloud/services/vm/v20210922/vm_client.js +2 -1
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/vm/index.ts +0 -9
- package/src/services/vm/v20200709/index.ts +0 -6
- package/src/services/vm/v20200709/vm_client.ts +0 -118
- package/src/services/vm/v20200709/vm_models.ts +0 -1005
- package/src/services/vm/v20201229/index.ts +0 -6
- package/src/services/vm/v20201229/vm_client.ts +0 -147
- package/src/services/vm/v20201229/vm_models.ts +0 -1127
- package/src/services/vm/v20210922/index.ts +0 -6
- package/src/services/vm/v20210922/vm_client.ts +0 -149
- package/src/services/vm/v20210922/vm_models.ts +0 -1252
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
|
@@ -1,1005 +0,0 @@
|
|
|
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
|
-
* 图片段信息
|
|
20
|
-
*/
|
|
21
|
-
export interface ImageSegments {
|
|
22
|
-
/**
|
|
23
|
-
* 截帧时间。
|
|
24
|
-
点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
|
|
25
|
-
直播流:该值为时间戳,例如:1594650717
|
|
26
|
-
*/
|
|
27
|
-
OffsetTime: string
|
|
28
|
-
/**
|
|
29
|
-
* 画面截帧结果详情
|
|
30
|
-
*/
|
|
31
|
-
Result: ImageResult
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 图片输出结果的子结果
|
|
36
|
-
*/
|
|
37
|
-
export interface ImageResultResult {
|
|
38
|
-
/**
|
|
39
|
-
* 场景
|
|
40
|
-
Porn 色情
|
|
41
|
-
Sexy 性感
|
|
42
|
-
Polity 政治
|
|
43
|
-
Illegal 违法
|
|
44
|
-
Abuse 谩骂
|
|
45
|
-
Terror 暴恐
|
|
46
|
-
Ad 广告
|
|
47
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
48
|
-
*/
|
|
49
|
-
Scene: string
|
|
50
|
-
/**
|
|
51
|
-
* 是否命中
|
|
52
|
-
0 未命中
|
|
53
|
-
1 命中
|
|
54
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
55
|
-
*/
|
|
56
|
-
HitFlag: number
|
|
57
|
-
/**
|
|
58
|
-
* 审核建议,可选值:
|
|
59
|
-
Pass 通过,
|
|
60
|
-
Review 建议人审,
|
|
61
|
-
Block 确认违规
|
|
62
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
63
|
-
*/
|
|
64
|
-
Suggestion: string
|
|
65
|
-
/**
|
|
66
|
-
* 标签
|
|
67
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
68
|
-
*/
|
|
69
|
-
Label: string
|
|
70
|
-
/**
|
|
71
|
-
* 子标签
|
|
72
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
73
|
-
*/
|
|
74
|
-
SubLabel: string
|
|
75
|
-
/**
|
|
76
|
-
* 分数
|
|
77
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
78
|
-
*/
|
|
79
|
-
Score: number
|
|
80
|
-
/**
|
|
81
|
-
* 如果命中场景为涉政,则该数据为人物姓名列表,否则null
|
|
82
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
83
|
-
*/
|
|
84
|
-
Names: Array<string>
|
|
85
|
-
/**
|
|
86
|
-
* 图片OCR文本
|
|
87
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
88
|
-
*/
|
|
89
|
-
Text: string
|
|
90
|
-
/**
|
|
91
|
-
* 其他详情
|
|
92
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
93
|
-
*/
|
|
94
|
-
Details: Array<ImageResultsResultDetail>
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* 数据存储信息
|
|
99
|
-
*/
|
|
100
|
-
export interface StorageInfo {
|
|
101
|
-
/**
|
|
102
|
-
* 类型 可选:
|
|
103
|
-
URL 资源链接类型
|
|
104
|
-
COS 腾讯云对象存储类型
|
|
105
|
-
*/
|
|
106
|
-
Type?: string
|
|
107
|
-
/**
|
|
108
|
-
* 资源链接
|
|
109
|
-
*/
|
|
110
|
-
Url?: string
|
|
111
|
-
/**
|
|
112
|
-
* 腾讯云存储桶信息
|
|
113
|
-
*/
|
|
114
|
-
BucketInfo?: BucketInfo
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* 文件桶信息
|
|
119
|
-
参考腾讯云存储相关说明 https://cloud.tencent.com/document/product/436/44352
|
|
120
|
-
*/
|
|
121
|
-
export interface BucketInfo {
|
|
122
|
-
/**
|
|
123
|
-
* 腾讯云对象存储,存储桶名称
|
|
124
|
-
*/
|
|
125
|
-
Bucket: string
|
|
126
|
-
/**
|
|
127
|
-
* 地域
|
|
128
|
-
*/
|
|
129
|
-
Region: string
|
|
130
|
-
/**
|
|
131
|
-
* 对象Key
|
|
132
|
-
*/
|
|
133
|
-
Object: string
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* CreateVideoModerationTask返回参数结构体
|
|
138
|
-
*/
|
|
139
|
-
export interface CreateVideoModerationTaskResponse {
|
|
140
|
-
/**
|
|
141
|
-
* 任务创建结果
|
|
142
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
143
|
-
*/
|
|
144
|
-
Results?: Array<TaskResult>
|
|
145
|
-
/**
|
|
146
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
147
|
-
*/
|
|
148
|
-
RequestId?: string
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* 创建任务时的返回结果
|
|
153
|
-
*/
|
|
154
|
-
export interface TaskResult {
|
|
155
|
-
/**
|
|
156
|
-
* 请求时传入的DataId
|
|
157
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
158
|
-
*/
|
|
159
|
-
DataId: string
|
|
160
|
-
/**
|
|
161
|
-
* TaskId,任务ID
|
|
162
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
163
|
-
*/
|
|
164
|
-
TaskId: string
|
|
165
|
-
/**
|
|
166
|
-
* 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
|
|
167
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
168
|
-
*/
|
|
169
|
-
Code: string
|
|
170
|
-
/**
|
|
171
|
-
* 如果错误,该字段表示错误详情
|
|
172
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
173
|
-
*/
|
|
174
|
-
Message: string
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* CancelTask请求参数结构体
|
|
179
|
-
*/
|
|
180
|
-
export interface CancelTaskRequest {
|
|
181
|
-
/**
|
|
182
|
-
* 任务ID
|
|
183
|
-
*/
|
|
184
|
-
TaskId: string
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* DescribeTaskDetail返回参数结构体
|
|
189
|
-
*/
|
|
190
|
-
export interface DescribeTaskDetailResponse {
|
|
191
|
-
/**
|
|
192
|
-
* 任务Id
|
|
193
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
194
|
-
*/
|
|
195
|
-
TaskId?: string
|
|
196
|
-
/**
|
|
197
|
-
* 审核时传入的数据Id
|
|
198
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
199
|
-
*/
|
|
200
|
-
DataId?: string
|
|
201
|
-
/**
|
|
202
|
-
* 业务类型
|
|
203
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
204
|
-
*/
|
|
205
|
-
BizType?: string
|
|
206
|
-
/**
|
|
207
|
-
* 任务名称
|
|
208
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
209
|
-
*/
|
|
210
|
-
Name?: string
|
|
211
|
-
/**
|
|
212
|
-
* 状态,可选值:
|
|
213
|
-
FINISH 已完成
|
|
214
|
-
PENDING 等待中
|
|
215
|
-
RUNNING 进行中
|
|
216
|
-
ERROR 出错
|
|
217
|
-
CANCELLED 已取消
|
|
218
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
219
|
-
*/
|
|
220
|
-
Status?: string
|
|
221
|
-
/**
|
|
222
|
-
* 类型
|
|
223
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
224
|
-
*/
|
|
225
|
-
Type?: string
|
|
226
|
-
/**
|
|
227
|
-
* 审核建议
|
|
228
|
-
可选:
|
|
229
|
-
Pass 通过
|
|
230
|
-
Reveiw 建议复审
|
|
231
|
-
Block 确认违规
|
|
232
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
233
|
-
*/
|
|
234
|
-
Suggestion?: string
|
|
235
|
-
/**
|
|
236
|
-
* 审核结果
|
|
237
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
238
|
-
*/
|
|
239
|
-
Labels?: Array<TaskLabel>
|
|
240
|
-
/**
|
|
241
|
-
* 媒体解码信息
|
|
242
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
243
|
-
*/
|
|
244
|
-
MediaInfo?: MediaInfo
|
|
245
|
-
/**
|
|
246
|
-
* 任务信息
|
|
247
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
248
|
-
*/
|
|
249
|
-
InputInfo?: InputInfo
|
|
250
|
-
/**
|
|
251
|
-
* 创建时间
|
|
252
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
253
|
-
*/
|
|
254
|
-
CreatedAt?: string
|
|
255
|
-
/**
|
|
256
|
-
* 更新时间
|
|
257
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
258
|
-
*/
|
|
259
|
-
UpdatedAt?: string
|
|
260
|
-
/**
|
|
261
|
-
* 在秒后重试
|
|
262
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
263
|
-
*/
|
|
264
|
-
TryInSeconds?: number
|
|
265
|
-
/**
|
|
266
|
-
* 图片结果
|
|
267
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
268
|
-
*/
|
|
269
|
-
ImageSegments?: Array<ImageSegments>
|
|
270
|
-
/**
|
|
271
|
-
* 音频结果
|
|
272
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
273
|
-
*/
|
|
274
|
-
AudioSegments?: Array<AudioSegments>
|
|
275
|
-
/**
|
|
276
|
-
* 如果返回的状态为ERROR,该字段会标记错误类型。
|
|
277
|
-
可选值::
|
|
278
|
-
DECODE_ERROR: 解码失败。(输入资源中可能包含无法解码的视频)
|
|
279
|
-
URL_ERROR:下载地址验证失败。
|
|
280
|
-
TIMEOUT_ERROR:处理超时。
|
|
281
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
282
|
-
*/
|
|
283
|
-
ErrorType?: string
|
|
284
|
-
/**
|
|
285
|
-
* 审核任务错误日志。当Error不为空时,会展示该字段
|
|
286
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
287
|
-
*/
|
|
288
|
-
ErrorDescription?: string
|
|
289
|
-
/**
|
|
290
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
291
|
-
*/
|
|
292
|
-
RequestId?: string
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* DescribeVideoStat返回参数结构体
|
|
297
|
-
*/
|
|
298
|
-
export interface DescribeVideoStatResponse {
|
|
299
|
-
/**
|
|
300
|
-
* 识别结果统计
|
|
301
|
-
*/
|
|
302
|
-
Overview?: Overview
|
|
303
|
-
/**
|
|
304
|
-
* 识别量统计
|
|
305
|
-
*/
|
|
306
|
-
TrendCount?: Array<TrendCount>
|
|
307
|
-
/**
|
|
308
|
-
* 违规数据分布
|
|
309
|
-
*/
|
|
310
|
-
EvilCount?: Array<EvilCount>
|
|
311
|
-
/**
|
|
312
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
313
|
-
*/
|
|
314
|
-
RequestId?: string
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* CreateBizConfig返回参数结构体
|
|
319
|
-
*/
|
|
320
|
-
export interface CreateBizConfigResponse {
|
|
321
|
-
/**
|
|
322
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
323
|
-
*/
|
|
324
|
-
RequestId?: string
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* 音视频任务结构
|
|
329
|
-
*/
|
|
330
|
-
export interface TaskInput {
|
|
331
|
-
/**
|
|
332
|
-
* 数据ID
|
|
333
|
-
*/
|
|
334
|
-
DataId?: string
|
|
335
|
-
/**
|
|
336
|
-
* 任务名
|
|
337
|
-
*/
|
|
338
|
-
Name?: string
|
|
339
|
-
/**
|
|
340
|
-
* 任务输入
|
|
341
|
-
*/
|
|
342
|
-
Input?: StorageInfo
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* DescribeTaskDetail请求参数结构体
|
|
347
|
-
*/
|
|
348
|
-
export interface DescribeTaskDetailRequest {
|
|
349
|
-
/**
|
|
350
|
-
* 任务ID,创建任务后返回的TaskId字段
|
|
351
|
-
*/
|
|
352
|
-
TaskId: string
|
|
353
|
-
/**
|
|
354
|
-
* 是否展示所有分片,默认只展示命中规则的分片
|
|
355
|
-
*/
|
|
356
|
-
ShowAllSegments?: boolean
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* 任务输出标签
|
|
361
|
-
*/
|
|
362
|
-
export interface TaskLabel {
|
|
363
|
-
/**
|
|
364
|
-
* 命中的标签
|
|
365
|
-
Porn 色情
|
|
366
|
-
Sexy 性感
|
|
367
|
-
Polity 政治
|
|
368
|
-
Illegal 违法
|
|
369
|
-
Abuse 谩骂
|
|
370
|
-
Terror 暴恐
|
|
371
|
-
Ad 广告
|
|
372
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
373
|
-
*/
|
|
374
|
-
Label: string
|
|
375
|
-
/**
|
|
376
|
-
* 审核建议,可选值:
|
|
377
|
-
Pass 通过,
|
|
378
|
-
Review 建议人审,
|
|
379
|
-
Block 确认违规
|
|
380
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
381
|
-
*/
|
|
382
|
-
Suggestion: string
|
|
383
|
-
/**
|
|
384
|
-
* 得分,分数是 0 ~ 100
|
|
385
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
386
|
-
*/
|
|
387
|
-
Score: number
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* 具体场景下的图片识别结果
|
|
392
|
-
*/
|
|
393
|
-
export interface ImageResultsResultDetail {
|
|
394
|
-
/**
|
|
395
|
-
* 任务名称
|
|
396
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
397
|
-
*/
|
|
398
|
-
Name: string
|
|
399
|
-
/**
|
|
400
|
-
* OCR识别文本
|
|
401
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
402
|
-
*/
|
|
403
|
-
Text: string
|
|
404
|
-
/**
|
|
405
|
-
* 位置信息
|
|
406
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
407
|
-
*/
|
|
408
|
-
Location: ImageResultsResultDetailLocation
|
|
409
|
-
/**
|
|
410
|
-
* 标签
|
|
411
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
412
|
-
*/
|
|
413
|
-
Label: string
|
|
414
|
-
/**
|
|
415
|
-
* 库ID
|
|
416
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
417
|
-
*/
|
|
418
|
-
LibId: string
|
|
419
|
-
/**
|
|
420
|
-
* 库名称
|
|
421
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
422
|
-
*/
|
|
423
|
-
LibName: string
|
|
424
|
-
/**
|
|
425
|
-
* 命中的关键词
|
|
426
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
427
|
-
*/
|
|
428
|
-
Keywords: Array<string>
|
|
429
|
-
/**
|
|
430
|
-
* 建议
|
|
431
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
432
|
-
*/
|
|
433
|
-
Suggestion: string
|
|
434
|
-
/**
|
|
435
|
-
* 得分
|
|
436
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
437
|
-
*/
|
|
438
|
-
Score: number
|
|
439
|
-
/**
|
|
440
|
-
* 子标签码
|
|
441
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
442
|
-
*/
|
|
443
|
-
SubLabelCode: string
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* DescribeVideoStat请求参数结构体
|
|
448
|
-
*/
|
|
449
|
-
export interface DescribeVideoStatRequest {
|
|
450
|
-
/**
|
|
451
|
-
* 审核类型 1: 机器审核; 2: 人工审核
|
|
452
|
-
*/
|
|
453
|
-
AuditType: number
|
|
454
|
-
/**
|
|
455
|
-
* 查询条件
|
|
456
|
-
*/
|
|
457
|
-
Filters: Array<Filters>
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* 输入信息详情
|
|
462
|
-
*/
|
|
463
|
-
export interface InputInfo {
|
|
464
|
-
/**
|
|
465
|
-
* 传入的类型可选:URL,COS
|
|
466
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
467
|
-
*/
|
|
468
|
-
Type: string
|
|
469
|
-
/**
|
|
470
|
-
* Url地址
|
|
471
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
472
|
-
*/
|
|
473
|
-
Url: string
|
|
474
|
-
/**
|
|
475
|
-
* 桶信息。当输入当时COS时,该字段不为空
|
|
476
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
477
|
-
*/
|
|
478
|
-
BucketInfo: string
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* 违规数据分布
|
|
483
|
-
*/
|
|
484
|
-
export interface EvilCount {
|
|
485
|
-
/**
|
|
486
|
-
* 违规类型:
|
|
487
|
-
Terror 24001
|
|
488
|
-
Porn 20002
|
|
489
|
-
Polity 20001
|
|
490
|
-
Ad 20105
|
|
491
|
-
Abuse 20007
|
|
492
|
-
Illegal 20006
|
|
493
|
-
Spam 25001
|
|
494
|
-
Moan 26001
|
|
495
|
-
*/
|
|
496
|
-
EvilType: string
|
|
497
|
-
/**
|
|
498
|
-
* 分布类型总量
|
|
499
|
-
*/
|
|
500
|
-
Count: number
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* CreateVideoModerationTask请求参数结构体
|
|
505
|
-
*/
|
|
506
|
-
export interface CreateVideoModerationTaskRequest {
|
|
507
|
-
/**
|
|
508
|
-
* 业务类型, 定义 模版策略,输出存储配置。如果没有BizType,可以先参考 【创建业务配置】接口进行创建
|
|
509
|
-
*/
|
|
510
|
-
BizType: string
|
|
511
|
-
/**
|
|
512
|
-
* 任务类型:可选VIDEO(点播视频),LIVE_VIDEO(直播视频)
|
|
513
|
-
*/
|
|
514
|
-
Type: string
|
|
515
|
-
/**
|
|
516
|
-
* 输入的任务信息,最多可以同时创建10个任务
|
|
517
|
-
*/
|
|
518
|
-
Tasks: Array<TaskInput>
|
|
519
|
-
/**
|
|
520
|
-
* 回调签名key,具体可以查看签名文档。
|
|
521
|
-
*/
|
|
522
|
-
Seed?: string
|
|
523
|
-
/**
|
|
524
|
-
* 接收审核信息回调地址,如果设置,则审核过程中产生的违规音频片段和画面截帧发送此接口
|
|
525
|
-
*/
|
|
526
|
-
CallbackUrl?: string
|
|
527
|
-
/**
|
|
528
|
-
* 审核排队优先级。当您有多个视频审核任务排队时,可以根据这个参数控制排队优先级。用于处理插队等逻辑。默认该参数为0
|
|
529
|
-
*/
|
|
530
|
-
Priority?: number
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* 音频小语种检测结果
|
|
535
|
-
*/
|
|
536
|
-
export interface AudioResultDetailLanguageResult {
|
|
537
|
-
/**
|
|
538
|
-
* 语种
|
|
539
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
540
|
-
*/
|
|
541
|
-
Label: string
|
|
542
|
-
/**
|
|
543
|
-
* 得分
|
|
544
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
545
|
-
*/
|
|
546
|
-
Score: number
|
|
547
|
-
/**
|
|
548
|
-
* 开始时间
|
|
549
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
550
|
-
*/
|
|
551
|
-
StartTime: number
|
|
552
|
-
/**
|
|
553
|
-
* 结束时间
|
|
554
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
555
|
-
*/
|
|
556
|
-
EndTime: number
|
|
557
|
-
/**
|
|
558
|
-
* 子标签码
|
|
559
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
560
|
-
*/
|
|
561
|
-
SubLabelCode: string
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Cos FileOutput
|
|
566
|
-
*/
|
|
567
|
-
export interface FileOutput {
|
|
568
|
-
/**
|
|
569
|
-
* 存储的Bucket
|
|
570
|
-
*/
|
|
571
|
-
Bucket: string
|
|
572
|
-
/**
|
|
573
|
-
* Cos Region
|
|
574
|
-
*/
|
|
575
|
-
Region: string
|
|
576
|
-
/**
|
|
577
|
-
* 对象前缀
|
|
578
|
-
*/
|
|
579
|
-
ObjectPrefix: string
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* CancelTask返回参数结构体
|
|
584
|
-
*/
|
|
585
|
-
export interface CancelTaskResponse {
|
|
586
|
-
/**
|
|
587
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
588
|
-
*/
|
|
589
|
-
RequestId?: string
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* 识别量统计
|
|
594
|
-
*/
|
|
595
|
-
export interface TrendCount {
|
|
596
|
-
/**
|
|
597
|
-
* 总调用量
|
|
598
|
-
*/
|
|
599
|
-
TotalCount: number
|
|
600
|
-
/**
|
|
601
|
-
* 总调用时长
|
|
602
|
-
*/
|
|
603
|
-
TotalHour: number
|
|
604
|
-
/**
|
|
605
|
-
* 通过量
|
|
606
|
-
*/
|
|
607
|
-
PassCount: number
|
|
608
|
-
/**
|
|
609
|
-
* 通过时长
|
|
610
|
-
*/
|
|
611
|
-
PassHour: number
|
|
612
|
-
/**
|
|
613
|
-
* 违规量
|
|
614
|
-
*/
|
|
615
|
-
EvilCount: number
|
|
616
|
-
/**
|
|
617
|
-
* 违规时长
|
|
618
|
-
*/
|
|
619
|
-
EvilHour: number
|
|
620
|
-
/**
|
|
621
|
-
* 疑似违规量
|
|
622
|
-
*/
|
|
623
|
-
SuspectCount: number
|
|
624
|
-
/**
|
|
625
|
-
* 疑似违规时长
|
|
626
|
-
*/
|
|
627
|
-
SuspectHour: number
|
|
628
|
-
/**
|
|
629
|
-
* 日期
|
|
630
|
-
*/
|
|
631
|
-
Date: string
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* 音频ASR文本审核结果
|
|
636
|
-
*/
|
|
637
|
-
export interface AudioResultDetailTextResult {
|
|
638
|
-
/**
|
|
639
|
-
* 标签
|
|
640
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
641
|
-
*/
|
|
642
|
-
Label: string
|
|
643
|
-
/**
|
|
644
|
-
* 命中的关键词
|
|
645
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
646
|
-
*/
|
|
647
|
-
Keywords: Array<string>
|
|
648
|
-
/**
|
|
649
|
-
* 命中的LibId
|
|
650
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
651
|
-
*/
|
|
652
|
-
LibId: string
|
|
653
|
-
/**
|
|
654
|
-
* 命中的LibName
|
|
655
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
656
|
-
*/
|
|
657
|
-
LibName: string
|
|
658
|
-
/**
|
|
659
|
-
* 得分
|
|
660
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
661
|
-
*/
|
|
662
|
-
Score: number
|
|
663
|
-
/**
|
|
664
|
-
* 词库类型 1 黑白库 2 自定义库
|
|
665
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
666
|
-
*/
|
|
667
|
-
LibType: number
|
|
668
|
-
/**
|
|
669
|
-
* 审核建议
|
|
670
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
671
|
-
*/
|
|
672
|
-
Suggestion: string
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* 识别结果统计
|
|
677
|
-
*/
|
|
678
|
-
export interface Overview {
|
|
679
|
-
/**
|
|
680
|
-
* 总调用量
|
|
681
|
-
*/
|
|
682
|
-
TotalCount: number
|
|
683
|
-
/**
|
|
684
|
-
* 总调用时长
|
|
685
|
-
*/
|
|
686
|
-
TotalHour: number
|
|
687
|
-
/**
|
|
688
|
-
* 通过量
|
|
689
|
-
*/
|
|
690
|
-
PassCount: number
|
|
691
|
-
/**
|
|
692
|
-
* 通过时长
|
|
693
|
-
*/
|
|
694
|
-
PassHour: number
|
|
695
|
-
/**
|
|
696
|
-
* 违规量
|
|
697
|
-
*/
|
|
698
|
-
EvilCount: number
|
|
699
|
-
/**
|
|
700
|
-
* 违规时长
|
|
701
|
-
*/
|
|
702
|
-
EvilHour: number
|
|
703
|
-
/**
|
|
704
|
-
* 疑似违规量
|
|
705
|
-
*/
|
|
706
|
-
SuspectCount: number
|
|
707
|
-
/**
|
|
708
|
-
* 疑似违规时长
|
|
709
|
-
*/
|
|
710
|
-
SuspectHour: number
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* 音频输出参数
|
|
715
|
-
*/
|
|
716
|
-
export interface AudioResult {
|
|
717
|
-
/**
|
|
718
|
-
* 是否命中
|
|
719
|
-
0 未命中
|
|
720
|
-
1 命中
|
|
721
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
722
|
-
*/
|
|
723
|
-
HitFlag: number
|
|
724
|
-
/**
|
|
725
|
-
* 命中的标签
|
|
726
|
-
Porn 色情
|
|
727
|
-
Polity 政治
|
|
728
|
-
Illegal 违法
|
|
729
|
-
Abuse 谩骂
|
|
730
|
-
Terror 暴恐
|
|
731
|
-
Ad 广告
|
|
732
|
-
Moan 呻吟
|
|
733
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
734
|
-
*/
|
|
735
|
-
Label: string
|
|
736
|
-
/**
|
|
737
|
-
* 审核建议,可选值:
|
|
738
|
-
Pass 通过,
|
|
739
|
-
Review 建议人审,
|
|
740
|
-
Block 确认违规
|
|
741
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
742
|
-
*/
|
|
743
|
-
Suggestion: string
|
|
744
|
-
/**
|
|
745
|
-
* 得分,0-100
|
|
746
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
747
|
-
*/
|
|
748
|
-
Score: number
|
|
749
|
-
/**
|
|
750
|
-
* 音频ASR文本
|
|
751
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
752
|
-
*/
|
|
753
|
-
Text: string
|
|
754
|
-
/**
|
|
755
|
-
* 音频片段存储URL,有效期为1天
|
|
756
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
757
|
-
*/
|
|
758
|
-
Url: string
|
|
759
|
-
/**
|
|
760
|
-
* 音频时长
|
|
761
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
762
|
-
*/
|
|
763
|
-
Duration: string
|
|
764
|
-
/**
|
|
765
|
-
* 拓展字段
|
|
766
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
767
|
-
*/
|
|
768
|
-
Extra: string
|
|
769
|
-
/**
|
|
770
|
-
* 文本审核结果
|
|
771
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
772
|
-
*/
|
|
773
|
-
TextResults: Array<AudioResultDetailTextResult>
|
|
774
|
-
/**
|
|
775
|
-
* 音频呻吟审核结果
|
|
776
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
777
|
-
*/
|
|
778
|
-
MoanResults: Array<AudioResultDetailMoanResult>
|
|
779
|
-
/**
|
|
780
|
-
* 音频语种检测结果
|
|
781
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
782
|
-
*/
|
|
783
|
-
LanguageResults: Array<AudioResultDetailLanguageResult>
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* 音频呻吟审核结果
|
|
788
|
-
*/
|
|
789
|
-
export interface AudioResultDetailMoanResult {
|
|
790
|
-
/**
|
|
791
|
-
* 固定为Moan
|
|
792
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
793
|
-
*/
|
|
794
|
-
Label: string
|
|
795
|
-
/**
|
|
796
|
-
* 分数
|
|
797
|
-
*/
|
|
798
|
-
Score: number
|
|
799
|
-
/**
|
|
800
|
-
* 开始时间
|
|
801
|
-
*/
|
|
802
|
-
StartTime: number
|
|
803
|
-
/**
|
|
804
|
-
* 结束时间
|
|
805
|
-
*/
|
|
806
|
-
EndTime: number
|
|
807
|
-
/**
|
|
808
|
-
* 子标签码
|
|
809
|
-
*/
|
|
810
|
-
SubLabelCode: string
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* CreateBizConfig请求参数结构体
|
|
815
|
-
*/
|
|
816
|
-
export interface CreateBizConfigRequest {
|
|
817
|
-
/**
|
|
818
|
-
* 业务ID,仅限英文字母、数字和下划线(_)组成,长度不超过8位
|
|
819
|
-
*/
|
|
820
|
-
BizType: string
|
|
821
|
-
/**
|
|
822
|
-
* 审核分类信息
|
|
823
|
-
*/
|
|
824
|
-
MediaModeration: MediaModerationConfig
|
|
825
|
-
/**
|
|
826
|
-
* 业务名称,用于标识业务场景,长度不超过32位
|
|
827
|
-
*/
|
|
828
|
-
BizName?: string
|
|
829
|
-
/**
|
|
830
|
-
* 审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告); Custom (自定义);
|
|
831
|
-
*/
|
|
832
|
-
ModerationCategories?: Array<string>
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* 媒体类型
|
|
837
|
-
*/
|
|
838
|
-
export interface MediaInfo {
|
|
839
|
-
/**
|
|
840
|
-
* 编码格式
|
|
841
|
-
*/
|
|
842
|
-
Codecs: string
|
|
843
|
-
/**
|
|
844
|
-
* 流检测时分片时长
|
|
845
|
-
注意:此字段可能返回 0,表示取不到有效值。
|
|
846
|
-
*/
|
|
847
|
-
Duration: number
|
|
848
|
-
/**
|
|
849
|
-
* 宽,单位为像素
|
|
850
|
-
*/
|
|
851
|
-
Width: number
|
|
852
|
-
/**
|
|
853
|
-
* 高,单位为像素
|
|
854
|
-
*/
|
|
855
|
-
Height: number
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* 媒体审核配置
|
|
860
|
-
*/
|
|
861
|
-
export interface MediaModerationConfig {
|
|
862
|
-
/**
|
|
863
|
-
* 是否使用OCR,默认为true
|
|
864
|
-
*/
|
|
865
|
-
UseOCR: boolean
|
|
866
|
-
/**
|
|
867
|
-
* 是否使用音频,默认为true。视频场景下,默认为 false
|
|
868
|
-
*/
|
|
869
|
-
UseAudio: boolean
|
|
870
|
-
/**
|
|
871
|
-
* 图片取帧频率, 单位(秒/帧),默认 5, 可选 1 ~ 300
|
|
872
|
-
*/
|
|
873
|
-
ImageFrequency?: number
|
|
874
|
-
/**
|
|
875
|
-
* 音频片段长度。单位为:秒
|
|
876
|
-
*/
|
|
877
|
-
AudioFrequency?: number
|
|
878
|
-
/**
|
|
879
|
-
* 临时文件存储位置
|
|
880
|
-
*/
|
|
881
|
-
SegmentOutput?: FileOutput
|
|
882
|
-
/**
|
|
883
|
-
* 回调地址
|
|
884
|
-
*/
|
|
885
|
-
CallbackUrl?: string
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* 声音段信息
|
|
890
|
-
*/
|
|
891
|
-
export interface AudioSegments {
|
|
892
|
-
/**
|
|
893
|
-
* 截帧时间。
|
|
894
|
-
点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
|
|
895
|
-
直播流:该值为时间戳,例如:1594650717
|
|
896
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
897
|
-
*/
|
|
898
|
-
OffsetTime: string
|
|
899
|
-
/**
|
|
900
|
-
* 结果集
|
|
901
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
902
|
-
*/
|
|
903
|
-
Result: AudioResult
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* 视频过滤条件
|
|
908
|
-
*/
|
|
909
|
-
export interface Filters {
|
|
910
|
-
/**
|
|
911
|
-
* 查询字段:
|
|
912
|
-
策略BizType
|
|
913
|
-
子账号SubUin
|
|
914
|
-
日期区间DateRange
|
|
915
|
-
*/
|
|
916
|
-
Name: string
|
|
917
|
-
/**
|
|
918
|
-
* 查询值
|
|
919
|
-
*/
|
|
920
|
-
Values: Array<string>
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* 图片详情位置信息
|
|
925
|
-
*/
|
|
926
|
-
export interface ImageResultsResultDetailLocation {
|
|
927
|
-
/**
|
|
928
|
-
* x坐标
|
|
929
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
930
|
-
*/
|
|
931
|
-
X: number
|
|
932
|
-
/**
|
|
933
|
-
* y坐标
|
|
934
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
935
|
-
*/
|
|
936
|
-
Y: number
|
|
937
|
-
/**
|
|
938
|
-
* 宽度
|
|
939
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
940
|
-
*/
|
|
941
|
-
Width: number
|
|
942
|
-
/**
|
|
943
|
-
* 高度
|
|
944
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
945
|
-
*/
|
|
946
|
-
Height: number
|
|
947
|
-
/**
|
|
948
|
-
* 旋转角度
|
|
949
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
950
|
-
*/
|
|
951
|
-
Rotate: number
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
/**
|
|
955
|
-
* Result结果详情
|
|
956
|
-
*/
|
|
957
|
-
export interface ImageResult {
|
|
958
|
-
/**
|
|
959
|
-
* 违规标志
|
|
960
|
-
0 未命中
|
|
961
|
-
1 命中
|
|
962
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
963
|
-
*/
|
|
964
|
-
HitFlag: number
|
|
965
|
-
/**
|
|
966
|
-
* 命中的标签
|
|
967
|
-
Porn 色情
|
|
968
|
-
Sexy 性感
|
|
969
|
-
Polity 政治
|
|
970
|
-
Illegal 违法
|
|
971
|
-
Abuse 谩骂
|
|
972
|
-
Terror 暴恐
|
|
973
|
-
Ad 广告
|
|
974
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
975
|
-
*/
|
|
976
|
-
Label: string
|
|
977
|
-
/**
|
|
978
|
-
* 审核建议,可选值:
|
|
979
|
-
Pass 通过,
|
|
980
|
-
Review 建议人审,
|
|
981
|
-
Block 确认违规
|
|
982
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
983
|
-
*/
|
|
984
|
-
Suggestion: string
|
|
985
|
-
/**
|
|
986
|
-
* 得分
|
|
987
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
988
|
-
*/
|
|
989
|
-
Score: number
|
|
990
|
-
/**
|
|
991
|
-
* 画面截帧图片结果集
|
|
992
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
993
|
-
*/
|
|
994
|
-
Results: Array<ImageResultResult>
|
|
995
|
-
/**
|
|
996
|
-
* 图片URL地址
|
|
997
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
998
|
-
*/
|
|
999
|
-
Url: string
|
|
1000
|
-
/**
|
|
1001
|
-
* 附加字段
|
|
1002
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1003
|
-
*/
|
|
1004
|
-
Extra: string
|
|
1005
|
-
}
|