alibabacloud-aimiaobi20230801 1.29.0__tar.gz → 1.30.0__tar.gz
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.
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/ChangeLog.md +7 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/PKG-INFO +1 -1
- alibabacloud_aimiaobi20230801-1.30.0/alibabacloud_aimiaobi20230801/__init__.py +1 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801/client.py +572 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801/models.py +1644 -120
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801.egg-info/PKG-INFO +1 -1
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/setup.py +1 -1
- alibabacloud_aimiaobi20230801-1.29.0/alibabacloud_aimiaobi20230801/__init__.py +0 -1
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/LICENSE +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/MANIFEST.in +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/README-CN.md +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/README.md +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801.egg-info/SOURCES.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801.egg-info/dependency_links.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801.egg-info/requires.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/alibabacloud_aimiaobi20230801.egg-info/top_level.txt +0 -0
- {alibabacloud_aimiaobi20230801-1.29.0 → alibabacloud_aimiaobi20230801-1.30.0}/setup.cfg +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
2025-06-16 Version: 1.29.0
|
|
2
|
+
- Support API ExportAuditContentResult.
|
|
3
|
+
- Support API GetSmartAuditResult.
|
|
4
|
+
- Support API ListAuditContentErrorTypes.
|
|
5
|
+
- Support API SubmitSmartAudit.
|
|
6
|
+
|
|
7
|
+
|
|
1
8
|
2025-06-13 Version: 1.28.0
|
|
2
9
|
- Support API FetchExportWordTask.
|
|
3
10
|
- Support API GenerateExportWordTask.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.30.0'
|
|
@@ -157,6 +157,478 @@ class Client(OpenApiClient):
|
|
|
157
157
|
runtime = util_models.RuntimeOptions()
|
|
158
158
|
return await self.add_dataset_document_with_options_async(request, runtime)
|
|
159
159
|
|
|
160
|
+
def async_create_clips_task_with_options(
|
|
161
|
+
self,
|
|
162
|
+
tmp_req: ai_miao_bi_20230801_models.AsyncCreateClipsTaskRequest,
|
|
163
|
+
runtime: util_models.RuntimeOptions,
|
|
164
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTaskResponse:
|
|
165
|
+
"""
|
|
166
|
+
@summary 生成剪辑视频
|
|
167
|
+
|
|
168
|
+
@param tmp_req: AsyncCreateClipsTaskRequest
|
|
169
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
170
|
+
@return: AsyncCreateClipsTaskResponse
|
|
171
|
+
"""
|
|
172
|
+
UtilClient.validate_model(tmp_req)
|
|
173
|
+
request = ai_miao_bi_20230801_models.AsyncCreateClipsTaskShrinkRequest()
|
|
174
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
175
|
+
if not UtilClient.is_unset(tmp_req.color_words):
|
|
176
|
+
request.color_words_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.color_words, 'ColorWords', 'json')
|
|
177
|
+
body = {}
|
|
178
|
+
if not UtilClient.is_unset(request.color_words_shrink):
|
|
179
|
+
body['ColorWords'] = request.color_words_shrink
|
|
180
|
+
if not UtilClient.is_unset(request.height):
|
|
181
|
+
body['Height'] = request.height
|
|
182
|
+
if not UtilClient.is_unset(request.music_url):
|
|
183
|
+
body['MusicUrl'] = request.music_url
|
|
184
|
+
if not UtilClient.is_unset(request.music_volume):
|
|
185
|
+
body['MusicVolume'] = request.music_volume
|
|
186
|
+
if not UtilClient.is_unset(request.subtitle_font_size):
|
|
187
|
+
body['SubtitleFontSize'] = request.subtitle_font_size
|
|
188
|
+
if not UtilClient.is_unset(request.task_id):
|
|
189
|
+
body['TaskId'] = request.task_id
|
|
190
|
+
if not UtilClient.is_unset(request.voice_style):
|
|
191
|
+
body['VoiceStyle'] = request.voice_style
|
|
192
|
+
if not UtilClient.is_unset(request.voice_volume):
|
|
193
|
+
body['VoiceVolume'] = request.voice_volume
|
|
194
|
+
if not UtilClient.is_unset(request.width):
|
|
195
|
+
body['Width'] = request.width
|
|
196
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
197
|
+
body['WorkspaceId'] = request.workspace_id
|
|
198
|
+
req = open_api_models.OpenApiRequest(
|
|
199
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
200
|
+
)
|
|
201
|
+
params = open_api_models.Params(
|
|
202
|
+
action='AsyncCreateClipsTask',
|
|
203
|
+
version='2023-08-01',
|
|
204
|
+
protocol='HTTPS',
|
|
205
|
+
pathname='/',
|
|
206
|
+
method='POST',
|
|
207
|
+
auth_type='AK',
|
|
208
|
+
style='RPC',
|
|
209
|
+
req_body_type='formData',
|
|
210
|
+
body_type='json'
|
|
211
|
+
)
|
|
212
|
+
return TeaCore.from_map(
|
|
213
|
+
ai_miao_bi_20230801_models.AsyncCreateClipsTaskResponse(),
|
|
214
|
+
self.call_api(params, req, runtime)
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
async def async_create_clips_task_with_options_async(
|
|
218
|
+
self,
|
|
219
|
+
tmp_req: ai_miao_bi_20230801_models.AsyncCreateClipsTaskRequest,
|
|
220
|
+
runtime: util_models.RuntimeOptions,
|
|
221
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTaskResponse:
|
|
222
|
+
"""
|
|
223
|
+
@summary 生成剪辑视频
|
|
224
|
+
|
|
225
|
+
@param tmp_req: AsyncCreateClipsTaskRequest
|
|
226
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
227
|
+
@return: AsyncCreateClipsTaskResponse
|
|
228
|
+
"""
|
|
229
|
+
UtilClient.validate_model(tmp_req)
|
|
230
|
+
request = ai_miao_bi_20230801_models.AsyncCreateClipsTaskShrinkRequest()
|
|
231
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
232
|
+
if not UtilClient.is_unset(tmp_req.color_words):
|
|
233
|
+
request.color_words_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.color_words, 'ColorWords', 'json')
|
|
234
|
+
body = {}
|
|
235
|
+
if not UtilClient.is_unset(request.color_words_shrink):
|
|
236
|
+
body['ColorWords'] = request.color_words_shrink
|
|
237
|
+
if not UtilClient.is_unset(request.height):
|
|
238
|
+
body['Height'] = request.height
|
|
239
|
+
if not UtilClient.is_unset(request.music_url):
|
|
240
|
+
body['MusicUrl'] = request.music_url
|
|
241
|
+
if not UtilClient.is_unset(request.music_volume):
|
|
242
|
+
body['MusicVolume'] = request.music_volume
|
|
243
|
+
if not UtilClient.is_unset(request.subtitle_font_size):
|
|
244
|
+
body['SubtitleFontSize'] = request.subtitle_font_size
|
|
245
|
+
if not UtilClient.is_unset(request.task_id):
|
|
246
|
+
body['TaskId'] = request.task_id
|
|
247
|
+
if not UtilClient.is_unset(request.voice_style):
|
|
248
|
+
body['VoiceStyle'] = request.voice_style
|
|
249
|
+
if not UtilClient.is_unset(request.voice_volume):
|
|
250
|
+
body['VoiceVolume'] = request.voice_volume
|
|
251
|
+
if not UtilClient.is_unset(request.width):
|
|
252
|
+
body['Width'] = request.width
|
|
253
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
254
|
+
body['WorkspaceId'] = request.workspace_id
|
|
255
|
+
req = open_api_models.OpenApiRequest(
|
|
256
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
257
|
+
)
|
|
258
|
+
params = open_api_models.Params(
|
|
259
|
+
action='AsyncCreateClipsTask',
|
|
260
|
+
version='2023-08-01',
|
|
261
|
+
protocol='HTTPS',
|
|
262
|
+
pathname='/',
|
|
263
|
+
method='POST',
|
|
264
|
+
auth_type='AK',
|
|
265
|
+
style='RPC',
|
|
266
|
+
req_body_type='formData',
|
|
267
|
+
body_type='json'
|
|
268
|
+
)
|
|
269
|
+
return TeaCore.from_map(
|
|
270
|
+
ai_miao_bi_20230801_models.AsyncCreateClipsTaskResponse(),
|
|
271
|
+
await self.call_api_async(params, req, runtime)
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
def async_create_clips_task(
|
|
275
|
+
self,
|
|
276
|
+
request: ai_miao_bi_20230801_models.AsyncCreateClipsTaskRequest,
|
|
277
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTaskResponse:
|
|
278
|
+
"""
|
|
279
|
+
@summary 生成剪辑视频
|
|
280
|
+
|
|
281
|
+
@param request: AsyncCreateClipsTaskRequest
|
|
282
|
+
@return: AsyncCreateClipsTaskResponse
|
|
283
|
+
"""
|
|
284
|
+
runtime = util_models.RuntimeOptions()
|
|
285
|
+
return self.async_create_clips_task_with_options(request, runtime)
|
|
286
|
+
|
|
287
|
+
async def async_create_clips_task_async(
|
|
288
|
+
self,
|
|
289
|
+
request: ai_miao_bi_20230801_models.AsyncCreateClipsTaskRequest,
|
|
290
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTaskResponse:
|
|
291
|
+
"""
|
|
292
|
+
@summary 生成剪辑视频
|
|
293
|
+
|
|
294
|
+
@param request: AsyncCreateClipsTaskRequest
|
|
295
|
+
@return: AsyncCreateClipsTaskResponse
|
|
296
|
+
"""
|
|
297
|
+
runtime = util_models.RuntimeOptions()
|
|
298
|
+
return await self.async_create_clips_task_with_options_async(request, runtime)
|
|
299
|
+
|
|
300
|
+
def async_create_clips_time_line_with_options(
|
|
301
|
+
self,
|
|
302
|
+
request: ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineRequest,
|
|
303
|
+
runtime: util_models.RuntimeOptions,
|
|
304
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineResponse:
|
|
305
|
+
"""
|
|
306
|
+
@summary 智能剪辑timeline
|
|
307
|
+
|
|
308
|
+
@param request: AsyncCreateClipsTimeLineRequest
|
|
309
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
310
|
+
@return: AsyncCreateClipsTimeLineResponse
|
|
311
|
+
"""
|
|
312
|
+
UtilClient.validate_model(request)
|
|
313
|
+
body = {}
|
|
314
|
+
if not UtilClient.is_unset(request.process_prompt):
|
|
315
|
+
body['ProcessPrompt'] = request.process_prompt
|
|
316
|
+
if not UtilClient.is_unset(request.task_id):
|
|
317
|
+
body['TaskId'] = request.task_id
|
|
318
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
319
|
+
body['WorkspaceId'] = request.workspace_id
|
|
320
|
+
req = open_api_models.OpenApiRequest(
|
|
321
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
322
|
+
)
|
|
323
|
+
params = open_api_models.Params(
|
|
324
|
+
action='AsyncCreateClipsTimeLine',
|
|
325
|
+
version='2023-08-01',
|
|
326
|
+
protocol='HTTPS',
|
|
327
|
+
pathname='/',
|
|
328
|
+
method='POST',
|
|
329
|
+
auth_type='AK',
|
|
330
|
+
style='RPC',
|
|
331
|
+
req_body_type='formData',
|
|
332
|
+
body_type='json'
|
|
333
|
+
)
|
|
334
|
+
return TeaCore.from_map(
|
|
335
|
+
ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineResponse(),
|
|
336
|
+
self.call_api(params, req, runtime)
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
async def async_create_clips_time_line_with_options_async(
|
|
340
|
+
self,
|
|
341
|
+
request: ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineRequest,
|
|
342
|
+
runtime: util_models.RuntimeOptions,
|
|
343
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineResponse:
|
|
344
|
+
"""
|
|
345
|
+
@summary 智能剪辑timeline
|
|
346
|
+
|
|
347
|
+
@param request: AsyncCreateClipsTimeLineRequest
|
|
348
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
349
|
+
@return: AsyncCreateClipsTimeLineResponse
|
|
350
|
+
"""
|
|
351
|
+
UtilClient.validate_model(request)
|
|
352
|
+
body = {}
|
|
353
|
+
if not UtilClient.is_unset(request.process_prompt):
|
|
354
|
+
body['ProcessPrompt'] = request.process_prompt
|
|
355
|
+
if not UtilClient.is_unset(request.task_id):
|
|
356
|
+
body['TaskId'] = request.task_id
|
|
357
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
358
|
+
body['WorkspaceId'] = request.workspace_id
|
|
359
|
+
req = open_api_models.OpenApiRequest(
|
|
360
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
361
|
+
)
|
|
362
|
+
params = open_api_models.Params(
|
|
363
|
+
action='AsyncCreateClipsTimeLine',
|
|
364
|
+
version='2023-08-01',
|
|
365
|
+
protocol='HTTPS',
|
|
366
|
+
pathname='/',
|
|
367
|
+
method='POST',
|
|
368
|
+
auth_type='AK',
|
|
369
|
+
style='RPC',
|
|
370
|
+
req_body_type='formData',
|
|
371
|
+
body_type='json'
|
|
372
|
+
)
|
|
373
|
+
return TeaCore.from_map(
|
|
374
|
+
ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineResponse(),
|
|
375
|
+
await self.call_api_async(params, req, runtime)
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
def async_create_clips_time_line(
|
|
379
|
+
self,
|
|
380
|
+
request: ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineRequest,
|
|
381
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineResponse:
|
|
382
|
+
"""
|
|
383
|
+
@summary 智能剪辑timeline
|
|
384
|
+
|
|
385
|
+
@param request: AsyncCreateClipsTimeLineRequest
|
|
386
|
+
@return: AsyncCreateClipsTimeLineResponse
|
|
387
|
+
"""
|
|
388
|
+
runtime = util_models.RuntimeOptions()
|
|
389
|
+
return self.async_create_clips_time_line_with_options(request, runtime)
|
|
390
|
+
|
|
391
|
+
async def async_create_clips_time_line_async(
|
|
392
|
+
self,
|
|
393
|
+
request: ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineRequest,
|
|
394
|
+
) -> ai_miao_bi_20230801_models.AsyncCreateClipsTimeLineResponse:
|
|
395
|
+
"""
|
|
396
|
+
@summary 智能剪辑timeline
|
|
397
|
+
|
|
398
|
+
@param request: AsyncCreateClipsTimeLineRequest
|
|
399
|
+
@return: AsyncCreateClipsTimeLineResponse
|
|
400
|
+
"""
|
|
401
|
+
runtime = util_models.RuntimeOptions()
|
|
402
|
+
return await self.async_create_clips_time_line_with_options_async(request, runtime)
|
|
403
|
+
|
|
404
|
+
def async_edit_timeline_with_options(
|
|
405
|
+
self,
|
|
406
|
+
tmp_req: ai_miao_bi_20230801_models.AsyncEditTimelineRequest,
|
|
407
|
+
runtime: util_models.RuntimeOptions,
|
|
408
|
+
) -> ai_miao_bi_20230801_models.AsyncEditTimelineResponse:
|
|
409
|
+
"""
|
|
410
|
+
@summary 编辑剪辑任务的timeline
|
|
411
|
+
|
|
412
|
+
@param tmp_req: AsyncEditTimelineRequest
|
|
413
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
414
|
+
@return: AsyncEditTimelineResponse
|
|
415
|
+
"""
|
|
416
|
+
UtilClient.validate_model(tmp_req)
|
|
417
|
+
request = ai_miao_bi_20230801_models.AsyncEditTimelineShrinkRequest()
|
|
418
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
419
|
+
if not UtilClient.is_unset(tmp_req.timelines):
|
|
420
|
+
request.timelines_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.timelines, 'Timelines', 'json')
|
|
421
|
+
body = {}
|
|
422
|
+
if not UtilClient.is_unset(request.auto_clips):
|
|
423
|
+
body['AutoClips'] = request.auto_clips
|
|
424
|
+
if not UtilClient.is_unset(request.task_id):
|
|
425
|
+
body['TaskId'] = request.task_id
|
|
426
|
+
if not UtilClient.is_unset(request.timelines_shrink):
|
|
427
|
+
body['Timelines'] = request.timelines_shrink
|
|
428
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
429
|
+
body['WorkspaceId'] = request.workspace_id
|
|
430
|
+
req = open_api_models.OpenApiRequest(
|
|
431
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
432
|
+
)
|
|
433
|
+
params = open_api_models.Params(
|
|
434
|
+
action='AsyncEditTimeline',
|
|
435
|
+
version='2023-08-01',
|
|
436
|
+
protocol='HTTPS',
|
|
437
|
+
pathname='/',
|
|
438
|
+
method='POST',
|
|
439
|
+
auth_type='AK',
|
|
440
|
+
style='RPC',
|
|
441
|
+
req_body_type='formData',
|
|
442
|
+
body_type='json'
|
|
443
|
+
)
|
|
444
|
+
return TeaCore.from_map(
|
|
445
|
+
ai_miao_bi_20230801_models.AsyncEditTimelineResponse(),
|
|
446
|
+
self.call_api(params, req, runtime)
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
async def async_edit_timeline_with_options_async(
|
|
450
|
+
self,
|
|
451
|
+
tmp_req: ai_miao_bi_20230801_models.AsyncEditTimelineRequest,
|
|
452
|
+
runtime: util_models.RuntimeOptions,
|
|
453
|
+
) -> ai_miao_bi_20230801_models.AsyncEditTimelineResponse:
|
|
454
|
+
"""
|
|
455
|
+
@summary 编辑剪辑任务的timeline
|
|
456
|
+
|
|
457
|
+
@param tmp_req: AsyncEditTimelineRequest
|
|
458
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
459
|
+
@return: AsyncEditTimelineResponse
|
|
460
|
+
"""
|
|
461
|
+
UtilClient.validate_model(tmp_req)
|
|
462
|
+
request = ai_miao_bi_20230801_models.AsyncEditTimelineShrinkRequest()
|
|
463
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
464
|
+
if not UtilClient.is_unset(tmp_req.timelines):
|
|
465
|
+
request.timelines_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.timelines, 'Timelines', 'json')
|
|
466
|
+
body = {}
|
|
467
|
+
if not UtilClient.is_unset(request.auto_clips):
|
|
468
|
+
body['AutoClips'] = request.auto_clips
|
|
469
|
+
if not UtilClient.is_unset(request.task_id):
|
|
470
|
+
body['TaskId'] = request.task_id
|
|
471
|
+
if not UtilClient.is_unset(request.timelines_shrink):
|
|
472
|
+
body['Timelines'] = request.timelines_shrink
|
|
473
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
474
|
+
body['WorkspaceId'] = request.workspace_id
|
|
475
|
+
req = open_api_models.OpenApiRequest(
|
|
476
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
477
|
+
)
|
|
478
|
+
params = open_api_models.Params(
|
|
479
|
+
action='AsyncEditTimeline',
|
|
480
|
+
version='2023-08-01',
|
|
481
|
+
protocol='HTTPS',
|
|
482
|
+
pathname='/',
|
|
483
|
+
method='POST',
|
|
484
|
+
auth_type='AK',
|
|
485
|
+
style='RPC',
|
|
486
|
+
req_body_type='formData',
|
|
487
|
+
body_type='json'
|
|
488
|
+
)
|
|
489
|
+
return TeaCore.from_map(
|
|
490
|
+
ai_miao_bi_20230801_models.AsyncEditTimelineResponse(),
|
|
491
|
+
await self.call_api_async(params, req, runtime)
|
|
492
|
+
)
|
|
493
|
+
|
|
494
|
+
def async_edit_timeline(
|
|
495
|
+
self,
|
|
496
|
+
request: ai_miao_bi_20230801_models.AsyncEditTimelineRequest,
|
|
497
|
+
) -> ai_miao_bi_20230801_models.AsyncEditTimelineResponse:
|
|
498
|
+
"""
|
|
499
|
+
@summary 编辑剪辑任务的timeline
|
|
500
|
+
|
|
501
|
+
@param request: AsyncEditTimelineRequest
|
|
502
|
+
@return: AsyncEditTimelineResponse
|
|
503
|
+
"""
|
|
504
|
+
runtime = util_models.RuntimeOptions()
|
|
505
|
+
return self.async_edit_timeline_with_options(request, runtime)
|
|
506
|
+
|
|
507
|
+
async def async_edit_timeline_async(
|
|
508
|
+
self,
|
|
509
|
+
request: ai_miao_bi_20230801_models.AsyncEditTimelineRequest,
|
|
510
|
+
) -> ai_miao_bi_20230801_models.AsyncEditTimelineResponse:
|
|
511
|
+
"""
|
|
512
|
+
@summary 编辑剪辑任务的timeline
|
|
513
|
+
|
|
514
|
+
@param request: AsyncEditTimelineRequest
|
|
515
|
+
@return: AsyncEditTimelineResponse
|
|
516
|
+
"""
|
|
517
|
+
runtime = util_models.RuntimeOptions()
|
|
518
|
+
return await self.async_edit_timeline_with_options_async(request, runtime)
|
|
519
|
+
|
|
520
|
+
def async_upload_video_with_options(
|
|
521
|
+
self,
|
|
522
|
+
tmp_req: ai_miao_bi_20230801_models.AsyncUploadVideoRequest,
|
|
523
|
+
runtime: util_models.RuntimeOptions,
|
|
524
|
+
) -> ai_miao_bi_20230801_models.AsyncUploadVideoResponse:
|
|
525
|
+
"""
|
|
526
|
+
@summary 上传剪辑素材
|
|
527
|
+
|
|
528
|
+
@param tmp_req: AsyncUploadVideoRequest
|
|
529
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
530
|
+
@return: AsyncUploadVideoResponse
|
|
531
|
+
"""
|
|
532
|
+
UtilClient.validate_model(tmp_req)
|
|
533
|
+
request = ai_miao_bi_20230801_models.AsyncUploadVideoShrinkRequest()
|
|
534
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
535
|
+
if not UtilClient.is_unset(tmp_req.source_videos):
|
|
536
|
+
request.source_videos_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.source_videos, 'SourceVideos', 'json')
|
|
537
|
+
body = {}
|
|
538
|
+
if not UtilClient.is_unset(request.anlysis_prompt):
|
|
539
|
+
body['AnlysisPrompt'] = request.anlysis_prompt
|
|
540
|
+
if not UtilClient.is_unset(request.source_videos_shrink):
|
|
541
|
+
body['SourceVideos'] = request.source_videos_shrink
|
|
542
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
543
|
+
body['WorkspaceId'] = request.workspace_id
|
|
544
|
+
req = open_api_models.OpenApiRequest(
|
|
545
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
546
|
+
)
|
|
547
|
+
params = open_api_models.Params(
|
|
548
|
+
action='AsyncUploadVideo',
|
|
549
|
+
version='2023-08-01',
|
|
550
|
+
protocol='HTTPS',
|
|
551
|
+
pathname='/',
|
|
552
|
+
method='POST',
|
|
553
|
+
auth_type='AK',
|
|
554
|
+
style='RPC',
|
|
555
|
+
req_body_type='formData',
|
|
556
|
+
body_type='json'
|
|
557
|
+
)
|
|
558
|
+
return TeaCore.from_map(
|
|
559
|
+
ai_miao_bi_20230801_models.AsyncUploadVideoResponse(),
|
|
560
|
+
self.call_api(params, req, runtime)
|
|
561
|
+
)
|
|
562
|
+
|
|
563
|
+
async def async_upload_video_with_options_async(
|
|
564
|
+
self,
|
|
565
|
+
tmp_req: ai_miao_bi_20230801_models.AsyncUploadVideoRequest,
|
|
566
|
+
runtime: util_models.RuntimeOptions,
|
|
567
|
+
) -> ai_miao_bi_20230801_models.AsyncUploadVideoResponse:
|
|
568
|
+
"""
|
|
569
|
+
@summary 上传剪辑素材
|
|
570
|
+
|
|
571
|
+
@param tmp_req: AsyncUploadVideoRequest
|
|
572
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
573
|
+
@return: AsyncUploadVideoResponse
|
|
574
|
+
"""
|
|
575
|
+
UtilClient.validate_model(tmp_req)
|
|
576
|
+
request = ai_miao_bi_20230801_models.AsyncUploadVideoShrinkRequest()
|
|
577
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
578
|
+
if not UtilClient.is_unset(tmp_req.source_videos):
|
|
579
|
+
request.source_videos_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.source_videos, 'SourceVideos', 'json')
|
|
580
|
+
body = {}
|
|
581
|
+
if not UtilClient.is_unset(request.anlysis_prompt):
|
|
582
|
+
body['AnlysisPrompt'] = request.anlysis_prompt
|
|
583
|
+
if not UtilClient.is_unset(request.source_videos_shrink):
|
|
584
|
+
body['SourceVideos'] = request.source_videos_shrink
|
|
585
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
586
|
+
body['WorkspaceId'] = request.workspace_id
|
|
587
|
+
req = open_api_models.OpenApiRequest(
|
|
588
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
589
|
+
)
|
|
590
|
+
params = open_api_models.Params(
|
|
591
|
+
action='AsyncUploadVideo',
|
|
592
|
+
version='2023-08-01',
|
|
593
|
+
protocol='HTTPS',
|
|
594
|
+
pathname='/',
|
|
595
|
+
method='POST',
|
|
596
|
+
auth_type='AK',
|
|
597
|
+
style='RPC',
|
|
598
|
+
req_body_type='formData',
|
|
599
|
+
body_type='json'
|
|
600
|
+
)
|
|
601
|
+
return TeaCore.from_map(
|
|
602
|
+
ai_miao_bi_20230801_models.AsyncUploadVideoResponse(),
|
|
603
|
+
await self.call_api_async(params, req, runtime)
|
|
604
|
+
)
|
|
605
|
+
|
|
606
|
+
def async_upload_video(
|
|
607
|
+
self,
|
|
608
|
+
request: ai_miao_bi_20230801_models.AsyncUploadVideoRequest,
|
|
609
|
+
) -> ai_miao_bi_20230801_models.AsyncUploadVideoResponse:
|
|
610
|
+
"""
|
|
611
|
+
@summary 上传剪辑素材
|
|
612
|
+
|
|
613
|
+
@param request: AsyncUploadVideoRequest
|
|
614
|
+
@return: AsyncUploadVideoResponse
|
|
615
|
+
"""
|
|
616
|
+
runtime = util_models.RuntimeOptions()
|
|
617
|
+
return self.async_upload_video_with_options(request, runtime)
|
|
618
|
+
|
|
619
|
+
async def async_upload_video_async(
|
|
620
|
+
self,
|
|
621
|
+
request: ai_miao_bi_20230801_models.AsyncUploadVideoRequest,
|
|
622
|
+
) -> ai_miao_bi_20230801_models.AsyncUploadVideoResponse:
|
|
623
|
+
"""
|
|
624
|
+
@summary 上传剪辑素材
|
|
625
|
+
|
|
626
|
+
@param request: AsyncUploadVideoRequest
|
|
627
|
+
@return: AsyncUploadVideoResponse
|
|
628
|
+
"""
|
|
629
|
+
runtime = util_models.RuntimeOptions()
|
|
630
|
+
return await self.async_upload_video_with_options_async(request, runtime)
|
|
631
|
+
|
|
160
632
|
def cancel_async_task_with_options(
|
|
161
633
|
self,
|
|
162
634
|
request: ai_miao_bi_20230801_models.CancelAsyncTaskRequest,
|
|
@@ -3561,6 +4033,106 @@ class Client(OpenApiClient):
|
|
|
3561
4033
|
runtime = util_models.RuntimeOptions()
|
|
3562
4034
|
return await self.generate_view_point_with_options_async(request, runtime)
|
|
3563
4035
|
|
|
4036
|
+
def get_auto_clips_task_info_with_options(
|
|
4037
|
+
self,
|
|
4038
|
+
request: ai_miao_bi_20230801_models.GetAutoClipsTaskInfoRequest,
|
|
4039
|
+
runtime: util_models.RuntimeOptions,
|
|
4040
|
+
) -> ai_miao_bi_20230801_models.GetAutoClipsTaskInfoResponse:
|
|
4041
|
+
"""
|
|
4042
|
+
@summary 获得剪辑任务状态
|
|
4043
|
+
|
|
4044
|
+
@param request: GetAutoClipsTaskInfoRequest
|
|
4045
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4046
|
+
@return: GetAutoClipsTaskInfoResponse
|
|
4047
|
+
"""
|
|
4048
|
+
UtilClient.validate_model(request)
|
|
4049
|
+
body = {}
|
|
4050
|
+
if not UtilClient.is_unset(request.task_id):
|
|
4051
|
+
body['TaskId'] = request.task_id
|
|
4052
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
4053
|
+
body['WorkspaceId'] = request.workspace_id
|
|
4054
|
+
req = open_api_models.OpenApiRequest(
|
|
4055
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
4056
|
+
)
|
|
4057
|
+
params = open_api_models.Params(
|
|
4058
|
+
action='GetAutoClipsTaskInfo',
|
|
4059
|
+
version='2023-08-01',
|
|
4060
|
+
protocol='HTTPS',
|
|
4061
|
+
pathname='/',
|
|
4062
|
+
method='POST',
|
|
4063
|
+
auth_type='AK',
|
|
4064
|
+
style='RPC',
|
|
4065
|
+
req_body_type='formData',
|
|
4066
|
+
body_type='json'
|
|
4067
|
+
)
|
|
4068
|
+
return TeaCore.from_map(
|
|
4069
|
+
ai_miao_bi_20230801_models.GetAutoClipsTaskInfoResponse(),
|
|
4070
|
+
self.call_api(params, req, runtime)
|
|
4071
|
+
)
|
|
4072
|
+
|
|
4073
|
+
async def get_auto_clips_task_info_with_options_async(
|
|
4074
|
+
self,
|
|
4075
|
+
request: ai_miao_bi_20230801_models.GetAutoClipsTaskInfoRequest,
|
|
4076
|
+
runtime: util_models.RuntimeOptions,
|
|
4077
|
+
) -> ai_miao_bi_20230801_models.GetAutoClipsTaskInfoResponse:
|
|
4078
|
+
"""
|
|
4079
|
+
@summary 获得剪辑任务状态
|
|
4080
|
+
|
|
4081
|
+
@param request: GetAutoClipsTaskInfoRequest
|
|
4082
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4083
|
+
@return: GetAutoClipsTaskInfoResponse
|
|
4084
|
+
"""
|
|
4085
|
+
UtilClient.validate_model(request)
|
|
4086
|
+
body = {}
|
|
4087
|
+
if not UtilClient.is_unset(request.task_id):
|
|
4088
|
+
body['TaskId'] = request.task_id
|
|
4089
|
+
if not UtilClient.is_unset(request.workspace_id):
|
|
4090
|
+
body['WorkspaceId'] = request.workspace_id
|
|
4091
|
+
req = open_api_models.OpenApiRequest(
|
|
4092
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
4093
|
+
)
|
|
4094
|
+
params = open_api_models.Params(
|
|
4095
|
+
action='GetAutoClipsTaskInfo',
|
|
4096
|
+
version='2023-08-01',
|
|
4097
|
+
protocol='HTTPS',
|
|
4098
|
+
pathname='/',
|
|
4099
|
+
method='POST',
|
|
4100
|
+
auth_type='AK',
|
|
4101
|
+
style='RPC',
|
|
4102
|
+
req_body_type='formData',
|
|
4103
|
+
body_type='json'
|
|
4104
|
+
)
|
|
4105
|
+
return TeaCore.from_map(
|
|
4106
|
+
ai_miao_bi_20230801_models.GetAutoClipsTaskInfoResponse(),
|
|
4107
|
+
await self.call_api_async(params, req, runtime)
|
|
4108
|
+
)
|
|
4109
|
+
|
|
4110
|
+
def get_auto_clips_task_info(
|
|
4111
|
+
self,
|
|
4112
|
+
request: ai_miao_bi_20230801_models.GetAutoClipsTaskInfoRequest,
|
|
4113
|
+
) -> ai_miao_bi_20230801_models.GetAutoClipsTaskInfoResponse:
|
|
4114
|
+
"""
|
|
4115
|
+
@summary 获得剪辑任务状态
|
|
4116
|
+
|
|
4117
|
+
@param request: GetAutoClipsTaskInfoRequest
|
|
4118
|
+
@return: GetAutoClipsTaskInfoResponse
|
|
4119
|
+
"""
|
|
4120
|
+
runtime = util_models.RuntimeOptions()
|
|
4121
|
+
return self.get_auto_clips_task_info_with_options(request, runtime)
|
|
4122
|
+
|
|
4123
|
+
async def get_auto_clips_task_info_async(
|
|
4124
|
+
self,
|
|
4125
|
+
request: ai_miao_bi_20230801_models.GetAutoClipsTaskInfoRequest,
|
|
4126
|
+
) -> ai_miao_bi_20230801_models.GetAutoClipsTaskInfoResponse:
|
|
4127
|
+
"""
|
|
4128
|
+
@summary 获得剪辑任务状态
|
|
4129
|
+
|
|
4130
|
+
@param request: GetAutoClipsTaskInfoRequest
|
|
4131
|
+
@return: GetAutoClipsTaskInfoResponse
|
|
4132
|
+
"""
|
|
4133
|
+
runtime = util_models.RuntimeOptions()
|
|
4134
|
+
return await self.get_auto_clips_task_info_with_options_async(request, runtime)
|
|
4135
|
+
|
|
3564
4136
|
def get_categories_by_task_id_with_options(
|
|
3565
4137
|
self,
|
|
3566
4138
|
request: ai_miao_bi_20230801_models.GetCategoriesByTaskIdRequest,
|