@alicloud/quanmiaolightapp20240801 2.3.0 → 2.4.0
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/dist/client.d.ts +271 -0
- package/dist/client.js +310 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +487 -0
package/dist/client.d.ts
CHANGED
|
@@ -1397,6 +1397,128 @@ export declare class RunMarketingInformationWritingResponseBodyPayload extends $
|
|
|
1397
1397
|
[key: string]: any;
|
|
1398
1398
|
});
|
|
1399
1399
|
}
|
|
1400
|
+
export declare class RunNetworkContentAuditRequestTags extends $dara.Model {
|
|
1401
|
+
/**
|
|
1402
|
+
* @example
|
|
1403
|
+
* xxxx
|
|
1404
|
+
*/
|
|
1405
|
+
tagDefinePrompt?: string;
|
|
1406
|
+
/**
|
|
1407
|
+
* @example
|
|
1408
|
+
* xxxx
|
|
1409
|
+
*/
|
|
1410
|
+
tagName?: string;
|
|
1411
|
+
static names(): {
|
|
1412
|
+
[key: string]: string;
|
|
1413
|
+
};
|
|
1414
|
+
static types(): {
|
|
1415
|
+
[key: string]: any;
|
|
1416
|
+
};
|
|
1417
|
+
validate(): void;
|
|
1418
|
+
constructor(map?: {
|
|
1419
|
+
[key: string]: any;
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
export declare class RunNetworkContentAuditResponseBodyHeader extends $dara.Model {
|
|
1423
|
+
/**
|
|
1424
|
+
* @example
|
|
1425
|
+
* AccessForbidden
|
|
1426
|
+
*/
|
|
1427
|
+
errorCode?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* @example
|
|
1430
|
+
* 错误信息
|
|
1431
|
+
*/
|
|
1432
|
+
errorMessage?: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* @example
|
|
1435
|
+
* task-finished
|
|
1436
|
+
*/
|
|
1437
|
+
event?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* @example
|
|
1440
|
+
* xxxx
|
|
1441
|
+
*/
|
|
1442
|
+
sessionId?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* @example
|
|
1445
|
+
* xxxx
|
|
1446
|
+
*/
|
|
1447
|
+
taskId?: string;
|
|
1448
|
+
/**
|
|
1449
|
+
* @example
|
|
1450
|
+
* xxxxx
|
|
1451
|
+
*/
|
|
1452
|
+
traceId?: string;
|
|
1453
|
+
static names(): {
|
|
1454
|
+
[key: string]: string;
|
|
1455
|
+
};
|
|
1456
|
+
static types(): {
|
|
1457
|
+
[key: string]: any;
|
|
1458
|
+
};
|
|
1459
|
+
validate(): void;
|
|
1460
|
+
constructor(map?: {
|
|
1461
|
+
[key: string]: any;
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
export declare class RunNetworkContentAuditResponseBodyPayloadOutput extends $dara.Model {
|
|
1465
|
+
/**
|
|
1466
|
+
* @example
|
|
1467
|
+
* xxxx
|
|
1468
|
+
*/
|
|
1469
|
+
text?: string;
|
|
1470
|
+
static names(): {
|
|
1471
|
+
[key: string]: string;
|
|
1472
|
+
};
|
|
1473
|
+
static types(): {
|
|
1474
|
+
[key: string]: any;
|
|
1475
|
+
};
|
|
1476
|
+
validate(): void;
|
|
1477
|
+
constructor(map?: {
|
|
1478
|
+
[key: string]: any;
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
export declare class RunNetworkContentAuditResponseBodyPayloadUsage extends $dara.Model {
|
|
1482
|
+
/**
|
|
1483
|
+
* @example
|
|
1484
|
+
* 100
|
|
1485
|
+
*/
|
|
1486
|
+
inputTokens?: number;
|
|
1487
|
+
/**
|
|
1488
|
+
* @example
|
|
1489
|
+
* 100
|
|
1490
|
+
*/
|
|
1491
|
+
outputTokens?: number;
|
|
1492
|
+
/**
|
|
1493
|
+
* @example
|
|
1494
|
+
* 200
|
|
1495
|
+
*/
|
|
1496
|
+
totalTokens?: number;
|
|
1497
|
+
static names(): {
|
|
1498
|
+
[key: string]: string;
|
|
1499
|
+
};
|
|
1500
|
+
static types(): {
|
|
1501
|
+
[key: string]: any;
|
|
1502
|
+
};
|
|
1503
|
+
validate(): void;
|
|
1504
|
+
constructor(map?: {
|
|
1505
|
+
[key: string]: any;
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
export declare class RunNetworkContentAuditResponseBodyPayload extends $dara.Model {
|
|
1509
|
+
output?: RunNetworkContentAuditResponseBodyPayloadOutput;
|
|
1510
|
+
usage?: RunNetworkContentAuditResponseBodyPayloadUsage;
|
|
1511
|
+
static names(): {
|
|
1512
|
+
[key: string]: string;
|
|
1513
|
+
};
|
|
1514
|
+
static types(): {
|
|
1515
|
+
[key: string]: any;
|
|
1516
|
+
};
|
|
1517
|
+
validate(): void;
|
|
1518
|
+
constructor(map?: {
|
|
1519
|
+
[key: string]: any;
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1400
1522
|
export declare class RunScriptChatResponseBodyHeader extends $dara.Model {
|
|
1401
1523
|
/**
|
|
1402
1524
|
* @example
|
|
@@ -3437,6 +3559,137 @@ export declare class RunMarketingInformationWritingResponse extends $dara.Model
|
|
|
3437
3559
|
[key: string]: any;
|
|
3438
3560
|
});
|
|
3439
3561
|
}
|
|
3562
|
+
export declare class RunNetworkContentAuditRequest extends $dara.Model {
|
|
3563
|
+
/**
|
|
3564
|
+
* @example
|
|
3565
|
+
* clueMining
|
|
3566
|
+
*/
|
|
3567
|
+
businessType?: string;
|
|
3568
|
+
/**
|
|
3569
|
+
* @remarks
|
|
3570
|
+
* This parameter is required.
|
|
3571
|
+
*
|
|
3572
|
+
* @example
|
|
3573
|
+
* 待分析文本
|
|
3574
|
+
*/
|
|
3575
|
+
content?: string;
|
|
3576
|
+
/**
|
|
3577
|
+
* @example
|
|
3578
|
+
* 额外信息
|
|
3579
|
+
*/
|
|
3580
|
+
extraInfo?: string;
|
|
3581
|
+
/**
|
|
3582
|
+
* @example
|
|
3583
|
+
* qwen-max
|
|
3584
|
+
*/
|
|
3585
|
+
modelId?: string;
|
|
3586
|
+
/**
|
|
3587
|
+
* @example
|
|
3588
|
+
* 请返回如下JSON格式,{"key1":"","key2":""}
|
|
3589
|
+
*/
|
|
3590
|
+
outputFormat?: string;
|
|
3591
|
+
tags?: RunNetworkContentAuditRequestTags[];
|
|
3592
|
+
/**
|
|
3593
|
+
* @example
|
|
3594
|
+
* 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
|
|
3595
|
+
*/
|
|
3596
|
+
taskDescription?: string;
|
|
3597
|
+
static names(): {
|
|
3598
|
+
[key: string]: string;
|
|
3599
|
+
};
|
|
3600
|
+
static types(): {
|
|
3601
|
+
[key: string]: any;
|
|
3602
|
+
};
|
|
3603
|
+
validate(): void;
|
|
3604
|
+
constructor(map?: {
|
|
3605
|
+
[key: string]: any;
|
|
3606
|
+
});
|
|
3607
|
+
}
|
|
3608
|
+
export declare class RunNetworkContentAuditShrinkRequest extends $dara.Model {
|
|
3609
|
+
/**
|
|
3610
|
+
* @example
|
|
3611
|
+
* clueMining
|
|
3612
|
+
*/
|
|
3613
|
+
businessType?: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* @remarks
|
|
3616
|
+
* This parameter is required.
|
|
3617
|
+
*
|
|
3618
|
+
* @example
|
|
3619
|
+
* 待分析文本
|
|
3620
|
+
*/
|
|
3621
|
+
content?: string;
|
|
3622
|
+
/**
|
|
3623
|
+
* @example
|
|
3624
|
+
* 额外信息
|
|
3625
|
+
*/
|
|
3626
|
+
extraInfo?: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* @example
|
|
3629
|
+
* qwen-max
|
|
3630
|
+
*/
|
|
3631
|
+
modelId?: string;
|
|
3632
|
+
/**
|
|
3633
|
+
* @example
|
|
3634
|
+
* 请返回如下JSON格式,{"key1":"","key2":""}
|
|
3635
|
+
*/
|
|
3636
|
+
outputFormat?: string;
|
|
3637
|
+
tagsShrink?: string;
|
|
3638
|
+
/**
|
|
3639
|
+
* @example
|
|
3640
|
+
* 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
|
|
3641
|
+
*/
|
|
3642
|
+
taskDescription?: string;
|
|
3643
|
+
static names(): {
|
|
3644
|
+
[key: string]: string;
|
|
3645
|
+
};
|
|
3646
|
+
static types(): {
|
|
3647
|
+
[key: string]: any;
|
|
3648
|
+
};
|
|
3649
|
+
validate(): void;
|
|
3650
|
+
constructor(map?: {
|
|
3651
|
+
[key: string]: any;
|
|
3652
|
+
});
|
|
3653
|
+
}
|
|
3654
|
+
export declare class RunNetworkContentAuditResponseBody extends $dara.Model {
|
|
3655
|
+
header?: RunNetworkContentAuditResponseBodyHeader;
|
|
3656
|
+
payload?: RunNetworkContentAuditResponseBodyPayload;
|
|
3657
|
+
/**
|
|
3658
|
+
* @remarks
|
|
3659
|
+
* Id of the request
|
|
3660
|
+
*
|
|
3661
|
+
* @example
|
|
3662
|
+
* 5D0E915E-655D-59A8-894F-93873F73AAE5
|
|
3663
|
+
*/
|
|
3664
|
+
requestId?: string;
|
|
3665
|
+
static names(): {
|
|
3666
|
+
[key: string]: string;
|
|
3667
|
+
};
|
|
3668
|
+
static types(): {
|
|
3669
|
+
[key: string]: any;
|
|
3670
|
+
};
|
|
3671
|
+
validate(): void;
|
|
3672
|
+
constructor(map?: {
|
|
3673
|
+
[key: string]: any;
|
|
3674
|
+
});
|
|
3675
|
+
}
|
|
3676
|
+
export declare class RunNetworkContentAuditResponse extends $dara.Model {
|
|
3677
|
+
headers?: {
|
|
3678
|
+
[key: string]: string;
|
|
3679
|
+
};
|
|
3680
|
+
statusCode?: number;
|
|
3681
|
+
body?: RunNetworkContentAuditResponseBody;
|
|
3682
|
+
static names(): {
|
|
3683
|
+
[key: string]: string;
|
|
3684
|
+
};
|
|
3685
|
+
static types(): {
|
|
3686
|
+
[key: string]: any;
|
|
3687
|
+
};
|
|
3688
|
+
validate(): void;
|
|
3689
|
+
constructor(map?: {
|
|
3690
|
+
[key: string]: any;
|
|
3691
|
+
});
|
|
3692
|
+
}
|
|
3440
3693
|
export declare class RunScriptChatRequest extends $dara.Model {
|
|
3441
3694
|
/**
|
|
3442
3695
|
* @remarks
|
|
@@ -4449,6 +4702,24 @@ export default class Client extends OpenApi {
|
|
|
4449
4702
|
* @returns RunMarketingInformationWritingResponse
|
|
4450
4703
|
*/
|
|
4451
4704
|
runMarketingInformationWriting(workspaceId: string, request: RunMarketingInformationWritingRequest): Promise<RunMarketingInformationWritingResponse>;
|
|
4705
|
+
/**
|
|
4706
|
+
* 轻应用-网络内容审核
|
|
4707
|
+
*
|
|
4708
|
+
* @param tmpReq - RunNetworkContentAuditRequest
|
|
4709
|
+
* @param headers - map
|
|
4710
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4711
|
+
* @returns RunNetworkContentAuditResponse
|
|
4712
|
+
*/
|
|
4713
|
+
runNetworkContentAuditWithOptions(workspaceId: string, tmpReq: RunNetworkContentAuditRequest, headers: {
|
|
4714
|
+
[key: string]: string;
|
|
4715
|
+
}, runtime: $dara.RuntimeOptions): Promise<RunNetworkContentAuditResponse>;
|
|
4716
|
+
/**
|
|
4717
|
+
* 轻应用-网络内容审核
|
|
4718
|
+
*
|
|
4719
|
+
* @param request - RunNetworkContentAuditRequest
|
|
4720
|
+
* @returns RunNetworkContentAuditResponse
|
|
4721
|
+
*/
|
|
4722
|
+
runNetworkContentAudit(workspaceId: string, request: RunNetworkContentAuditRequest): Promise<RunNetworkContentAuditResponse>;
|
|
4452
4723
|
/**
|
|
4453
4724
|
* 长剧本创作
|
|
4454
4725
|
*
|
package/dist/client.js
CHANGED
|
@@ -37,9 +37,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.RunMarketingInformationExtractResponseBodyHeader = exports.RunHotTopicSummaryResponseBodyPayload = exports.RunHotTopicSummaryResponseBodyPayloadUsage = exports.RunHotTopicSummaryResponseBodyPayloadOutput = exports.RunHotTopicSummaryResponseBodyHeader = exports.RunHotTopicSummaryRequestStepForCustomSummaryStyleConfig = exports.RunHotTopicChatResponseBodyPayload = exports.RunHotTopicChatResponseBodyPayloadUsage = exports.RunHotTopicChatResponseBodyPayloadOutput = exports.RunHotTopicChatResponseBodyPayloadOutputMultimodalMedias = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummaries = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesNews = exports.RunHotTopicChatResponseBodyPayloadOutputHotTopicSummariesImages = exports.RunHotTopicChatResponseBodyPayloadOutputArticles = exports.RunHotTopicChatResponseBodyHeader = exports.RunHotTopicChatRequestStepForBroadcastContentConfig = exports.RunHotTopicChatRequestStepForBroadcastContentConfigCustomHotValueWeights = exports.RunHotTopicChatRequestMessages = exports.ListHotTopicSummariesResponseBodyData = exports.ListHotTopicSummariesResponseBodyDataSummary = exports.ListHotTopicSummariesResponseBodyDataSummarySummaries = exports.ListHotTopicSummariesResponseBodyDataNews = exports.ListHotTopicSummariesResponseBodyDataNewsComments = exports.GetVideoAnalysisTaskResponseBodyData = exports.GetVideoAnalysisTaskResponseBodyDataTaskRunInfo = exports.GetVideoAnalysisTaskResponseBodyDataPayload = exports.GetVideoAnalysisTaskResponseBodyDataPayloadUsage = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutput = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoTitleGenerateResult = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoTitleGenerateResultUsage = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoMindMappingGenerateResult = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoMindMappingGenerateResultVideoMindMappings = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodes = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodesChildNodes = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoMindMappingGenerateResultUsage = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoGenerateResult = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoGenerateResultUsage = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResult = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResultVideoCaptions = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoAnalysisResult = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoAnalysisResultVideoShotAnalysisResults = exports.GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoAnalysisResultUsage = exports.GetVideoAnalysisTaskResponseBodyDataHeader = exports.GetVideoAnalysisConfigResponseBodyData = exports.GenerateOutputFormatResponseBodyData = exports.GenerateOutputFormatRequestTags = exports.GenerateBroadcastNewsResponseBodyData = exports.GenerateBroadcastNewsResponseBodyDataUsage = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummaries = exports.GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages = void 0;
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.UpdateVideoAnalysisConfigResponse = exports.UpdateVideoAnalysisConfigResponseBody = exports.UpdateVideoAnalysisConfigRequest = exports.SubmitVideoAnalysisTaskResponse = exports.SubmitVideoAnalysisTaskResponseBody = exports.SubmitVideoAnalysisTaskShrinkRequest = exports.SubmitVideoAnalysisTaskRequest = exports.RunVideoAnalysisResponse = exports.RunVideoAnalysisResponseBody = exports.RunVideoAnalysisShrinkRequest = exports.RunVideoAnalysisRequest = exports.RunTagMiningAnalysisResponse = exports.RunTagMiningAnalysisResponseBody = exports.RunTagMiningAnalysisShrinkRequest = exports.RunTagMiningAnalysisRequest = exports.RunStyleWritingResponse = exports.RunStyleWritingResponseBody = exports.RunStyleWritingShrinkRequest = exports.RunStyleWritingRequest = void 0;
|
|
40
|
+
exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappingsChildNodesChildNodes = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResultVideoCaptions = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultVideoShotAnalysisResults = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResultUsage = exports.RunVideoAnalysisResponseBodyHeader = exports.RunVideoAnalysisRequestVideoRoles = exports.RunVideoAnalysisRequestFrameSampleMethod = exports.RunTagMiningAnalysisResponseBodyPayload = exports.RunTagMiningAnalysisResponseBodyPayloadUsage = exports.RunTagMiningAnalysisResponseBodyPayloadOutput = exports.RunTagMiningAnalysisResponseBodyHeader = exports.RunTagMiningAnalysisRequestTags = exports.RunStyleWritingResponseBodyPayload = exports.RunStyleWritingResponseBodyPayloadUsage = exports.RunStyleWritingResponseBodyPayloadOutput = exports.RunStyleWritingResponseBodyHeader = exports.RunScriptRefineResponseBodyPayload = exports.RunScriptRefineResponseBodyPayloadUsage = exports.RunScriptRefineResponseBodyPayloadOutput = exports.RunScriptRefineResponseBodyHeader = exports.RunScriptPlanningResponseBodyPayload = exports.RunScriptPlanningResponseBodyPayloadUsage = exports.RunScriptPlanningResponseBodyPayloadOutput = exports.RunScriptPlanningResponseBodyHeader = exports.RunScriptContinueResponseBodyPayload = exports.RunScriptContinueResponseBodyPayloadUsage = exports.RunScriptContinueResponseBodyPayloadOutput = exports.RunScriptContinueResponseBodyHeader = exports.RunScriptChatResponseBodyPayload = exports.RunScriptChatResponseBodyPayloadUsage = exports.RunScriptChatResponseBodyPayloadOutput = exports.RunScriptChatResponseBodyHeader = exports.RunNetworkContentAuditResponseBodyPayload = exports.RunNetworkContentAuditResponseBodyPayloadUsage = exports.RunNetworkContentAuditResponseBodyPayloadOutput = exports.RunNetworkContentAuditResponseBodyHeader = exports.RunNetworkContentAuditRequestTags = exports.RunMarketingInformationWritingResponseBodyPayload = exports.RunMarketingInformationWritingResponseBodyPayloadUsage = exports.RunMarketingInformationWritingResponseBodyPayloadOutput = exports.RunMarketingInformationWritingResponseBodyHeader = exports.RunMarketingInformationExtractResponseBodyPayload = exports.RunMarketingInformationExtractResponseBodyPayloadUsage = exports.RunMarketingInformationExtractResponseBodyPayloadOutput = void 0;
|
|
41
|
+
exports.RunScriptChatResponse = exports.RunScriptChatResponseBody = exports.RunScriptChatRequest = exports.RunNetworkContentAuditResponse = exports.RunNetworkContentAuditResponseBody = exports.RunNetworkContentAuditShrinkRequest = exports.RunNetworkContentAuditRequest = exports.RunMarketingInformationWritingResponse = exports.RunMarketingInformationWritingResponseBody = exports.RunMarketingInformationWritingRequest = exports.RunMarketingInformationExtractResponse = exports.RunMarketingInformationExtractResponseBody = exports.RunMarketingInformationExtractShrinkRequest = exports.RunMarketingInformationExtractRequest = exports.RunHotTopicSummaryResponse = exports.RunHotTopicSummaryResponseBody = exports.RunHotTopicSummaryShrinkRequest = exports.RunHotTopicSummaryRequest = exports.RunHotTopicChatResponse = exports.RunHotTopicChatResponseBody = exports.RunHotTopicChatShrinkRequest = exports.RunHotTopicChatRequest = exports.ListHotTopicSummariesResponse = exports.ListHotTopicSummariesResponseBody = exports.ListHotTopicSummariesRequest = exports.GetVideoAnalysisTaskResponse = exports.GetVideoAnalysisTaskResponseBody = exports.GetVideoAnalysisTaskRequest = exports.GetVideoAnalysisConfigResponse = exports.GetVideoAnalysisConfigResponseBody = exports.GenerateOutputFormatResponse = exports.GenerateOutputFormatResponseBody = exports.GenerateOutputFormatShrinkRequest = exports.GenerateOutputFormatRequest = exports.GenerateBroadcastNewsResponse = exports.GenerateBroadcastNewsResponseBody = exports.GenerateBroadcastNewsRequest = exports.SubmitVideoAnalysisTaskResponseBodyData = exports.SubmitVideoAnalysisTaskRequestVideoRoles = exports.SubmitVideoAnalysisTaskRequestFrameSampleMethod = exports.RunVideoAnalysisResponseBodyPayload = exports.RunVideoAnalysisResponseBodyPayloadUsage = exports.RunVideoAnalysisResponseBodyPayloadOutput = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResultUsage = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoShotSnapshotResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoShotSnapshotResultVideoShots = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoShotSnapshotResultVideoShotsVideoSnapshots = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResult = exports.RunVideoAnalysisResponseBodyPayloadOutputVideoMindMappingGenerateResultVideoMindMappings = void 0;
|
|
42
|
+
exports.UpdateVideoAnalysisConfigResponse = exports.UpdateVideoAnalysisConfigResponseBody = exports.UpdateVideoAnalysisConfigRequest = exports.SubmitVideoAnalysisTaskResponse = exports.SubmitVideoAnalysisTaskResponseBody = exports.SubmitVideoAnalysisTaskShrinkRequest = exports.SubmitVideoAnalysisTaskRequest = exports.RunVideoAnalysisResponse = exports.RunVideoAnalysisResponseBody = exports.RunVideoAnalysisShrinkRequest = exports.RunVideoAnalysisRequest = exports.RunTagMiningAnalysisResponse = exports.RunTagMiningAnalysisResponseBody = exports.RunTagMiningAnalysisShrinkRequest = exports.RunTagMiningAnalysisRequest = exports.RunStyleWritingResponse = exports.RunStyleWritingResponseBody = exports.RunStyleWritingShrinkRequest = exports.RunStyleWritingRequest = exports.RunScriptRefineResponse = exports.RunScriptRefineResponseBody = exports.RunScriptRefineRequest = exports.RunScriptPlanningResponse = exports.RunScriptPlanningResponseBody = exports.RunScriptPlanningRequest = exports.RunScriptContinueResponse = exports.RunScriptContinueResponseBody = exports.RunScriptContinueRequest = void 0;
|
|
43
43
|
// This file is auto-generated, don't edit it
|
|
44
44
|
/**
|
|
45
45
|
*/
|
|
@@ -1525,6 +1525,125 @@ class RunMarketingInformationWritingResponseBodyPayload extends $dara.Model {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
exports.RunMarketingInformationWritingResponseBodyPayload = RunMarketingInformationWritingResponseBodyPayload;
|
|
1528
|
+
class RunNetworkContentAuditRequestTags extends $dara.Model {
|
|
1529
|
+
static names() {
|
|
1530
|
+
return {
|
|
1531
|
+
tagDefinePrompt: 'tagDefinePrompt',
|
|
1532
|
+
tagName: 'tagName',
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
static types() {
|
|
1536
|
+
return {
|
|
1537
|
+
tagDefinePrompt: 'string',
|
|
1538
|
+
tagName: 'string',
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
validate() {
|
|
1542
|
+
super.validate();
|
|
1543
|
+
}
|
|
1544
|
+
constructor(map) {
|
|
1545
|
+
super(map);
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
exports.RunNetworkContentAuditRequestTags = RunNetworkContentAuditRequestTags;
|
|
1549
|
+
class RunNetworkContentAuditResponseBodyHeader extends $dara.Model {
|
|
1550
|
+
static names() {
|
|
1551
|
+
return {
|
|
1552
|
+
errorCode: 'errorCode',
|
|
1553
|
+
errorMessage: 'errorMessage',
|
|
1554
|
+
event: 'event',
|
|
1555
|
+
sessionId: 'sessionId',
|
|
1556
|
+
taskId: 'taskId',
|
|
1557
|
+
traceId: 'traceId',
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
static types() {
|
|
1561
|
+
return {
|
|
1562
|
+
errorCode: 'string',
|
|
1563
|
+
errorMessage: 'string',
|
|
1564
|
+
event: 'string',
|
|
1565
|
+
sessionId: 'string',
|
|
1566
|
+
taskId: 'string',
|
|
1567
|
+
traceId: 'string',
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
validate() {
|
|
1571
|
+
super.validate();
|
|
1572
|
+
}
|
|
1573
|
+
constructor(map) {
|
|
1574
|
+
super(map);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
exports.RunNetworkContentAuditResponseBodyHeader = RunNetworkContentAuditResponseBodyHeader;
|
|
1578
|
+
class RunNetworkContentAuditResponseBodyPayloadOutput extends $dara.Model {
|
|
1579
|
+
static names() {
|
|
1580
|
+
return {
|
|
1581
|
+
text: 'text',
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
static types() {
|
|
1585
|
+
return {
|
|
1586
|
+
text: 'string',
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1589
|
+
validate() {
|
|
1590
|
+
super.validate();
|
|
1591
|
+
}
|
|
1592
|
+
constructor(map) {
|
|
1593
|
+
super(map);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
exports.RunNetworkContentAuditResponseBodyPayloadOutput = RunNetworkContentAuditResponseBodyPayloadOutput;
|
|
1597
|
+
class RunNetworkContentAuditResponseBodyPayloadUsage extends $dara.Model {
|
|
1598
|
+
static names() {
|
|
1599
|
+
return {
|
|
1600
|
+
inputTokens: 'inputTokens',
|
|
1601
|
+
outputTokens: 'outputTokens',
|
|
1602
|
+
totalTokens: 'totalTokens',
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
static types() {
|
|
1606
|
+
return {
|
|
1607
|
+
inputTokens: 'number',
|
|
1608
|
+
outputTokens: 'number',
|
|
1609
|
+
totalTokens: 'number',
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
validate() {
|
|
1613
|
+
super.validate();
|
|
1614
|
+
}
|
|
1615
|
+
constructor(map) {
|
|
1616
|
+
super(map);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
exports.RunNetworkContentAuditResponseBodyPayloadUsage = RunNetworkContentAuditResponseBodyPayloadUsage;
|
|
1620
|
+
class RunNetworkContentAuditResponseBodyPayload extends $dara.Model {
|
|
1621
|
+
static names() {
|
|
1622
|
+
return {
|
|
1623
|
+
output: 'output',
|
|
1624
|
+
usage: 'usage',
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
static types() {
|
|
1628
|
+
return {
|
|
1629
|
+
output: RunNetworkContentAuditResponseBodyPayloadOutput,
|
|
1630
|
+
usage: RunNetworkContentAuditResponseBodyPayloadUsage,
|
|
1631
|
+
};
|
|
1632
|
+
}
|
|
1633
|
+
validate() {
|
|
1634
|
+
if (this.output && typeof this.output.validate === 'function') {
|
|
1635
|
+
this.output.validate();
|
|
1636
|
+
}
|
|
1637
|
+
if (this.usage && typeof this.usage.validate === 'function') {
|
|
1638
|
+
this.usage.validate();
|
|
1639
|
+
}
|
|
1640
|
+
super.validate();
|
|
1641
|
+
}
|
|
1642
|
+
constructor(map) {
|
|
1643
|
+
super(map);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
exports.RunNetworkContentAuditResponseBodyPayload = RunNetworkContentAuditResponseBodyPayload;
|
|
1528
1647
|
class RunScriptChatResponseBodyHeader extends $dara.Model {
|
|
1529
1648
|
static names() {
|
|
1530
1649
|
return {
|
|
@@ -3741,6 +3860,129 @@ class RunMarketingInformationWritingResponse extends $dara.Model {
|
|
|
3741
3860
|
}
|
|
3742
3861
|
}
|
|
3743
3862
|
exports.RunMarketingInformationWritingResponse = RunMarketingInformationWritingResponse;
|
|
3863
|
+
class RunNetworkContentAuditRequest extends $dara.Model {
|
|
3864
|
+
static names() {
|
|
3865
|
+
return {
|
|
3866
|
+
businessType: 'businessType',
|
|
3867
|
+
content: 'content',
|
|
3868
|
+
extraInfo: 'extraInfo',
|
|
3869
|
+
modelId: 'modelId',
|
|
3870
|
+
outputFormat: 'outputFormat',
|
|
3871
|
+
tags: 'tags',
|
|
3872
|
+
taskDescription: 'taskDescription',
|
|
3873
|
+
};
|
|
3874
|
+
}
|
|
3875
|
+
static types() {
|
|
3876
|
+
return {
|
|
3877
|
+
businessType: 'string',
|
|
3878
|
+
content: 'string',
|
|
3879
|
+
extraInfo: 'string',
|
|
3880
|
+
modelId: 'string',
|
|
3881
|
+
outputFormat: 'string',
|
|
3882
|
+
tags: { 'type': 'array', 'itemType': RunNetworkContentAuditRequestTags },
|
|
3883
|
+
taskDescription: 'string',
|
|
3884
|
+
};
|
|
3885
|
+
}
|
|
3886
|
+
validate() {
|
|
3887
|
+
if (Array.isArray(this.tags)) {
|
|
3888
|
+
$dara.Model.validateArray(this.tags);
|
|
3889
|
+
}
|
|
3890
|
+
super.validate();
|
|
3891
|
+
}
|
|
3892
|
+
constructor(map) {
|
|
3893
|
+
super(map);
|
|
3894
|
+
}
|
|
3895
|
+
}
|
|
3896
|
+
exports.RunNetworkContentAuditRequest = RunNetworkContentAuditRequest;
|
|
3897
|
+
class RunNetworkContentAuditShrinkRequest extends $dara.Model {
|
|
3898
|
+
static names() {
|
|
3899
|
+
return {
|
|
3900
|
+
businessType: 'businessType',
|
|
3901
|
+
content: 'content',
|
|
3902
|
+
extraInfo: 'extraInfo',
|
|
3903
|
+
modelId: 'modelId',
|
|
3904
|
+
outputFormat: 'outputFormat',
|
|
3905
|
+
tagsShrink: 'tags',
|
|
3906
|
+
taskDescription: 'taskDescription',
|
|
3907
|
+
};
|
|
3908
|
+
}
|
|
3909
|
+
static types() {
|
|
3910
|
+
return {
|
|
3911
|
+
businessType: 'string',
|
|
3912
|
+
content: 'string',
|
|
3913
|
+
extraInfo: 'string',
|
|
3914
|
+
modelId: 'string',
|
|
3915
|
+
outputFormat: 'string',
|
|
3916
|
+
tagsShrink: 'string',
|
|
3917
|
+
taskDescription: 'string',
|
|
3918
|
+
};
|
|
3919
|
+
}
|
|
3920
|
+
validate() {
|
|
3921
|
+
super.validate();
|
|
3922
|
+
}
|
|
3923
|
+
constructor(map) {
|
|
3924
|
+
super(map);
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
exports.RunNetworkContentAuditShrinkRequest = RunNetworkContentAuditShrinkRequest;
|
|
3928
|
+
class RunNetworkContentAuditResponseBody extends $dara.Model {
|
|
3929
|
+
static names() {
|
|
3930
|
+
return {
|
|
3931
|
+
header: 'header',
|
|
3932
|
+
payload: 'payload',
|
|
3933
|
+
requestId: 'requestId',
|
|
3934
|
+
};
|
|
3935
|
+
}
|
|
3936
|
+
static types() {
|
|
3937
|
+
return {
|
|
3938
|
+
header: RunNetworkContentAuditResponseBodyHeader,
|
|
3939
|
+
payload: RunNetworkContentAuditResponseBodyPayload,
|
|
3940
|
+
requestId: 'string',
|
|
3941
|
+
};
|
|
3942
|
+
}
|
|
3943
|
+
validate() {
|
|
3944
|
+
if (this.header && typeof this.header.validate === 'function') {
|
|
3945
|
+
this.header.validate();
|
|
3946
|
+
}
|
|
3947
|
+
if (this.payload && typeof this.payload.validate === 'function') {
|
|
3948
|
+
this.payload.validate();
|
|
3949
|
+
}
|
|
3950
|
+
super.validate();
|
|
3951
|
+
}
|
|
3952
|
+
constructor(map) {
|
|
3953
|
+
super(map);
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
exports.RunNetworkContentAuditResponseBody = RunNetworkContentAuditResponseBody;
|
|
3957
|
+
class RunNetworkContentAuditResponse extends $dara.Model {
|
|
3958
|
+
static names() {
|
|
3959
|
+
return {
|
|
3960
|
+
headers: 'headers',
|
|
3961
|
+
statusCode: 'statusCode',
|
|
3962
|
+
body: 'body',
|
|
3963
|
+
};
|
|
3964
|
+
}
|
|
3965
|
+
static types() {
|
|
3966
|
+
return {
|
|
3967
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3968
|
+
statusCode: 'number',
|
|
3969
|
+
body: RunNetworkContentAuditResponseBody,
|
|
3970
|
+
};
|
|
3971
|
+
}
|
|
3972
|
+
validate() {
|
|
3973
|
+
if (this.headers) {
|
|
3974
|
+
$dara.Model.validateMap(this.headers);
|
|
3975
|
+
}
|
|
3976
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
3977
|
+
this.body.validate();
|
|
3978
|
+
}
|
|
3979
|
+
super.validate();
|
|
3980
|
+
}
|
|
3981
|
+
constructor(map) {
|
|
3982
|
+
super(map);
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
exports.RunNetworkContentAuditResponse = RunNetworkContentAuditResponse;
|
|
3744
3986
|
class RunScriptChatRequest extends $dara.Model {
|
|
3745
3987
|
static names() {
|
|
3746
3988
|
return {
|
|
@@ -5195,6 +5437,71 @@ class Client extends openapi_core_1.default {
|
|
|
5195
5437
|
let headers = {};
|
|
5196
5438
|
return await this.runMarketingInformationWritingWithOptions(workspaceId, request, headers, runtime);
|
|
5197
5439
|
}
|
|
5440
|
+
/**
|
|
5441
|
+
* 轻应用-网络内容审核
|
|
5442
|
+
*
|
|
5443
|
+
* @param tmpReq - RunNetworkContentAuditRequest
|
|
5444
|
+
* @param headers - map
|
|
5445
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5446
|
+
* @returns RunNetworkContentAuditResponse
|
|
5447
|
+
*/
|
|
5448
|
+
async runNetworkContentAuditWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
5449
|
+
tmpReq.validate();
|
|
5450
|
+
let request = new RunNetworkContentAuditShrinkRequest({});
|
|
5451
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
5452
|
+
if (!$dara.isNull(tmpReq.tags)) {
|
|
5453
|
+
request.tagsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
|
|
5454
|
+
}
|
|
5455
|
+
let body = {};
|
|
5456
|
+
if (!$dara.isNull(request.businessType)) {
|
|
5457
|
+
body["businessType"] = request.businessType;
|
|
5458
|
+
}
|
|
5459
|
+
if (!$dara.isNull(request.content)) {
|
|
5460
|
+
body["content"] = request.content;
|
|
5461
|
+
}
|
|
5462
|
+
if (!$dara.isNull(request.extraInfo)) {
|
|
5463
|
+
body["extraInfo"] = request.extraInfo;
|
|
5464
|
+
}
|
|
5465
|
+
if (!$dara.isNull(request.modelId)) {
|
|
5466
|
+
body["modelId"] = request.modelId;
|
|
5467
|
+
}
|
|
5468
|
+
if (!$dara.isNull(request.outputFormat)) {
|
|
5469
|
+
body["outputFormat"] = request.outputFormat;
|
|
5470
|
+
}
|
|
5471
|
+
if (!$dara.isNull(request.tagsShrink)) {
|
|
5472
|
+
body["tags"] = request.tagsShrink;
|
|
5473
|
+
}
|
|
5474
|
+
if (!$dara.isNull(request.taskDescription)) {
|
|
5475
|
+
body["taskDescription"] = request.taskDescription;
|
|
5476
|
+
}
|
|
5477
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5478
|
+
headers: headers,
|
|
5479
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
5480
|
+
});
|
|
5481
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5482
|
+
action: "RunNetworkContentAudit",
|
|
5483
|
+
version: "2024-08-01",
|
|
5484
|
+
protocol: "HTTPS",
|
|
5485
|
+
pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/runNetworkContentAudit`,
|
|
5486
|
+
method: "POST",
|
|
5487
|
+
authType: "AK",
|
|
5488
|
+
style: "ROA",
|
|
5489
|
+
reqBodyType: "formData",
|
|
5490
|
+
bodyType: "json",
|
|
5491
|
+
});
|
|
5492
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RunNetworkContentAuditResponse({}));
|
|
5493
|
+
}
|
|
5494
|
+
/**
|
|
5495
|
+
* 轻应用-网络内容审核
|
|
5496
|
+
*
|
|
5497
|
+
* @param request - RunNetworkContentAuditRequest
|
|
5498
|
+
* @returns RunNetworkContentAuditResponse
|
|
5499
|
+
*/
|
|
5500
|
+
async runNetworkContentAudit(workspaceId, request) {
|
|
5501
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5502
|
+
let headers = {};
|
|
5503
|
+
return await this.runNetworkContentAuditWithOptions(workspaceId, request, headers, runtime);
|
|
5504
|
+
}
|
|
5198
5505
|
/**
|
|
5199
5506
|
* 长剧本创作
|
|
5200
5507
|
*
|