@alicloud/aimiaobi20230801 1.33.0 → 1.34.1
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 +106 -0
- package/dist/client.js +549 -138
- package/dist/client.js.map +1 -1
- package/dist/models/AddAuditTermsResponseBody.d.ts +22 -0
- package/dist/models/AddAuditTermsResponseBody.js +25 -1
- package/dist/models/AddAuditTermsResponseBody.js.map +1 -1
- package/dist/models/CancelDeepWriteTaskRequest.d.ts +23 -0
- package/dist/models/CancelDeepWriteTaskRequest.js +60 -0
- package/dist/models/CancelDeepWriteTaskRequest.js.map +1 -0
- package/dist/models/CancelDeepWriteTaskResponse.d.ts +19 -0
- package/dist/models/CancelDeepWriteTaskResponse.js +69 -0
- package/dist/models/CancelDeepWriteTaskResponse.js.map +1 -0
- package/dist/models/CancelDeepWriteTaskResponseBody.d.ts +65 -0
- package/dist/models/CancelDeepWriteTaskResponseBody.js +94 -0
- package/dist/models/CancelDeepWriteTaskResponseBody.js.map +1 -0
- package/dist/models/GenerateUploadConfigResponseBody.d.ts +1 -1
- package/dist/models/GenerateUploadConfigResponseBody.js +1 -1
- package/dist/models/GenerateUploadConfigResponseBody.js.map +1 -1
- package/dist/models/GetDeepWriteTaskRequest.d.ts +23 -0
- package/dist/models/GetDeepWriteTaskRequest.js +60 -0
- package/dist/models/GetDeepWriteTaskRequest.js.map +1 -0
- package/dist/models/GetDeepWriteTaskResponse.d.ts +19 -0
- package/dist/models/GetDeepWriteTaskResponse.js +69 -0
- package/dist/models/GetDeepWriteTaskResponse.js.map +1 -0
- package/dist/models/GetDeepWriteTaskResponseBody.d.ts +65 -0
- package/dist/models/GetDeepWriteTaskResponseBody.js +94 -0
- package/dist/models/GetDeepWriteTaskResponseBody.js.map +1 -0
- package/dist/models/GetDeepWriteTaskResultRequest.d.ts +23 -0
- package/dist/models/GetDeepWriteTaskResultRequest.js +60 -0
- package/dist/models/GetDeepWriteTaskResultRequest.js.map +1 -0
- package/dist/models/GetDeepWriteTaskResultResponse.d.ts +19 -0
- package/dist/models/GetDeepWriteTaskResultResponse.js +69 -0
- package/dist/models/GetDeepWriteTaskResultResponse.js.map +1 -0
- package/dist/models/GetDeepWriteTaskResultResponseBody.d.ts +60 -0
- package/dist/models/GetDeepWriteTaskResultResponseBody.js +92 -0
- package/dist/models/GetDeepWriteTaskResultResponseBody.js.map +1 -0
- package/dist/models/RunDeepWritingRequest.d.ts +31 -0
- package/dist/models/RunDeepWritingRequest.js +62 -0
- package/dist/models/RunDeepWritingRequest.js.map +1 -0
- package/dist/models/RunDeepWritingResponse.d.ts +19 -0
- package/dist/models/RunDeepWritingResponse.js +69 -0
- package/dist/models/RunDeepWritingResponse.js.map +1 -0
- package/dist/models/RunDeepWritingResponseBody.d.ts +201 -0
- package/dist/models/RunDeepWritingResponseBody.js +240 -0
- package/dist/models/RunDeepWritingResponseBody.js.map +1 -0
- package/dist/models/RunVideoScriptGenerateRequest.d.ts +46 -0
- package/dist/models/RunVideoScriptGenerateRequest.js +68 -0
- package/dist/models/RunVideoScriptGenerateRequest.js.map +1 -0
- package/dist/models/RunVideoScriptGenerateResponse.d.ts +19 -0
- package/dist/models/RunVideoScriptGenerateResponse.js +69 -0
- package/dist/models/RunVideoScriptGenerateResponse.js.map +1 -0
- package/dist/models/RunVideoScriptGenerateResponseBody.d.ts +137 -0
- package/dist/models/RunVideoScriptGenerateResponseBody.js +176 -0
- package/dist/models/RunVideoScriptGenerateResponseBody.js.map +1 -0
- package/dist/models/SubmitDeepWriteTaskRequest.d.ts +112 -0
- package/dist/models/SubmitDeepWriteTaskRequest.js +188 -0
- package/dist/models/SubmitDeepWriteTaskRequest.js.map +1 -0
- package/dist/models/SubmitDeepWriteTaskResponse.d.ts +19 -0
- package/dist/models/SubmitDeepWriteTaskResponse.js +69 -0
- package/dist/models/SubmitDeepWriteTaskResponse.js.map +1 -0
- package/dist/models/SubmitDeepWriteTaskResponseBody.d.ts +64 -0
- package/dist/models/SubmitDeepWriteTaskResponseBody.js +92 -0
- package/dist/models/SubmitDeepWriteTaskResponseBody.js.map +1 -0
- package/dist/models/SubmitDeepWriteTaskShrinkRequest.d.ts +29 -0
- package/dist/models/SubmitDeepWriteTaskShrinkRequest.js +66 -0
- package/dist/models/SubmitDeepWriteTaskShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +39 -0
- package/dist/models/model.js +104 -25
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +436 -0
- package/src/models/AddAuditTermsResponseBody.ts +37 -0
- package/src/models/CancelDeepWriteTaskRequest.ts +38 -0
- package/src/models/CancelDeepWriteTaskResponse.ts +40 -0
- package/src/models/CancelDeepWriteTaskResponseBody.ts +105 -0
- package/src/models/GenerateUploadConfigResponseBody.ts +2 -2
- package/src/models/GetDeepWriteTaskRequest.ts +38 -0
- package/src/models/GetDeepWriteTaskResponse.ts +40 -0
- package/src/models/GetDeepWriteTaskResponseBody.ts +105 -0
- package/src/models/GetDeepWriteTaskResultRequest.ts +38 -0
- package/src/models/GetDeepWriteTaskResultResponse.ts +40 -0
- package/src/models/GetDeepWriteTaskResultResponseBody.ts +98 -0
- package/src/models/RunDeepWritingRequest.ts +48 -0
- package/src/models/RunDeepWritingResponse.ts +40 -0
- package/src/models/RunDeepWritingResponseBody.ts +342 -0
- package/src/models/RunVideoScriptGenerateRequest.ts +69 -0
- package/src/models/RunVideoScriptGenerateResponse.ts +40 -0
- package/src/models/RunVideoScriptGenerateResponseBody.ts +232 -0
- package/src/models/SubmitDeepWriteTaskRequest.ts +210 -0
- package/src/models/SubmitDeepWriteTaskResponse.ts +40 -0
- package/src/models/SubmitDeepWriteTaskResponseBody.ts +102 -0
- package/src/models/SubmitDeepWriteTaskShrinkRequest.ts +50 -0
- package/src/models/model.ts +39 -0
package/src/client.ts
CHANGED
|
@@ -525,6 +525,52 @@ export default class Client extends OpenApi {
|
|
|
525
525
|
return await this.cancelAuditTaskWithOptions(request, runtime);
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
+
/**
|
|
529
|
+
* 取消深度写作任务
|
|
530
|
+
*
|
|
531
|
+
* @param request - CancelDeepWriteTaskRequest
|
|
532
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
533
|
+
* @returns CancelDeepWriteTaskResponse
|
|
534
|
+
*/
|
|
535
|
+
async cancelDeepWriteTaskWithOptions(request: $_model.CancelDeepWriteTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CancelDeepWriteTaskResponse> {
|
|
536
|
+
request.validate();
|
|
537
|
+
let body : {[key: string ]: any} = { };
|
|
538
|
+
if (!$dara.isNull(request.taskId)) {
|
|
539
|
+
body["TaskId"] = request.taskId;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
543
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
547
|
+
body: OpenApiUtil.parseToMap(body),
|
|
548
|
+
});
|
|
549
|
+
let params = new $OpenApiUtil.Params({
|
|
550
|
+
action: "CancelDeepWriteTask",
|
|
551
|
+
version: "2023-08-01",
|
|
552
|
+
protocol: "HTTPS",
|
|
553
|
+
pathname: "/",
|
|
554
|
+
method: "POST",
|
|
555
|
+
authType: "AK",
|
|
556
|
+
style: "RPC",
|
|
557
|
+
reqBodyType: "formData",
|
|
558
|
+
bodyType: "json",
|
|
559
|
+
});
|
|
560
|
+
return $dara.cast<$_model.CancelDeepWriteTaskResponse>(await this.callApi(params, req, runtime), new $_model.CancelDeepWriteTaskResponse({}));
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* 取消深度写作任务
|
|
565
|
+
*
|
|
566
|
+
* @param request - CancelDeepWriteTaskRequest
|
|
567
|
+
* @returns CancelDeepWriteTaskResponse
|
|
568
|
+
*/
|
|
569
|
+
async cancelDeepWriteTask(request: $_model.CancelDeepWriteTaskRequest): Promise<$_model.CancelDeepWriteTaskResponse> {
|
|
570
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
571
|
+
return await this.cancelDeepWriteTaskWithOptions(request, runtime);
|
|
572
|
+
}
|
|
573
|
+
|
|
528
574
|
/**
|
|
529
575
|
* 清除所有干预内容
|
|
530
576
|
*
|
|
@@ -3067,6 +3113,98 @@ export default class Client extends OpenApi {
|
|
|
3067
3113
|
return await this.getDatasetDocumentWithOptions(request, runtime);
|
|
3068
3114
|
}
|
|
3069
3115
|
|
|
3116
|
+
/**
|
|
3117
|
+
* 查询深度写作任务
|
|
3118
|
+
*
|
|
3119
|
+
* @param request - GetDeepWriteTaskRequest
|
|
3120
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3121
|
+
* @returns GetDeepWriteTaskResponse
|
|
3122
|
+
*/
|
|
3123
|
+
async getDeepWriteTaskWithOptions(request: $_model.GetDeepWriteTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDeepWriteTaskResponse> {
|
|
3124
|
+
request.validate();
|
|
3125
|
+
let body : {[key: string ]: any} = { };
|
|
3126
|
+
if (!$dara.isNull(request.taskId)) {
|
|
3127
|
+
body["TaskId"] = request.taskId;
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
3131
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3135
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3136
|
+
});
|
|
3137
|
+
let params = new $OpenApiUtil.Params({
|
|
3138
|
+
action: "GetDeepWriteTask",
|
|
3139
|
+
version: "2023-08-01",
|
|
3140
|
+
protocol: "HTTPS",
|
|
3141
|
+
pathname: "/",
|
|
3142
|
+
method: "POST",
|
|
3143
|
+
authType: "AK",
|
|
3144
|
+
style: "RPC",
|
|
3145
|
+
reqBodyType: "formData",
|
|
3146
|
+
bodyType: "json",
|
|
3147
|
+
});
|
|
3148
|
+
return $dara.cast<$_model.GetDeepWriteTaskResponse>(await this.callApi(params, req, runtime), new $_model.GetDeepWriteTaskResponse({}));
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
/**
|
|
3152
|
+
* 查询深度写作任务
|
|
3153
|
+
*
|
|
3154
|
+
* @param request - GetDeepWriteTaskRequest
|
|
3155
|
+
* @returns GetDeepWriteTaskResponse
|
|
3156
|
+
*/
|
|
3157
|
+
async getDeepWriteTask(request: $_model.GetDeepWriteTaskRequest): Promise<$_model.GetDeepWriteTaskResponse> {
|
|
3158
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3159
|
+
return await this.getDeepWriteTaskWithOptions(request, runtime);
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* 查询深度写作任务的结果
|
|
3164
|
+
*
|
|
3165
|
+
* @param request - GetDeepWriteTaskResultRequest
|
|
3166
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3167
|
+
* @returns GetDeepWriteTaskResultResponse
|
|
3168
|
+
*/
|
|
3169
|
+
async getDeepWriteTaskResultWithOptions(request: $_model.GetDeepWriteTaskResultRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetDeepWriteTaskResultResponse> {
|
|
3170
|
+
request.validate();
|
|
3171
|
+
let body : {[key: string ]: any} = { };
|
|
3172
|
+
if (!$dara.isNull(request.taskId)) {
|
|
3173
|
+
body["TaskId"] = request.taskId;
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
3177
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3181
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3182
|
+
});
|
|
3183
|
+
let params = new $OpenApiUtil.Params({
|
|
3184
|
+
action: "GetDeepWriteTaskResult",
|
|
3185
|
+
version: "2023-08-01",
|
|
3186
|
+
protocol: "HTTPS",
|
|
3187
|
+
pathname: "/",
|
|
3188
|
+
method: "POST",
|
|
3189
|
+
authType: "AK",
|
|
3190
|
+
style: "RPC",
|
|
3191
|
+
reqBodyType: "formData",
|
|
3192
|
+
bodyType: "json",
|
|
3193
|
+
});
|
|
3194
|
+
return $dara.cast<$_model.GetDeepWriteTaskResultResponse>(await this.callApi(params, req, runtime), new $_model.GetDeepWriteTaskResultResponse({}));
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
/**
|
|
3198
|
+
* 查询深度写作任务的结果
|
|
3199
|
+
*
|
|
3200
|
+
* @param request - GetDeepWriteTaskResultRequest
|
|
3201
|
+
* @returns GetDeepWriteTaskResultResponse
|
|
3202
|
+
*/
|
|
3203
|
+
async getDeepWriteTaskResult(request: $_model.GetDeepWriteTaskResultRequest): Promise<$_model.GetDeepWriteTaskResultResponse> {
|
|
3204
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3205
|
+
return await this.getDeepWriteTaskResultWithOptions(request, runtime);
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3070
3208
|
/**
|
|
3071
3209
|
* 获取文档聚合任务结果
|
|
3072
3210
|
*
|
|
@@ -7491,6 +7629,108 @@ export default class Client extends OpenApi {
|
|
|
7491
7629
|
return await this.runCustomHotTopicViewPointAnalysisWithOptions(request, runtime);
|
|
7492
7630
|
}
|
|
7493
7631
|
|
|
7632
|
+
/**
|
|
7633
|
+
* 流式输出深度写作事件
|
|
7634
|
+
*
|
|
7635
|
+
* @param request - RunDeepWritingRequest
|
|
7636
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7637
|
+
* @returns RunDeepWritingResponse
|
|
7638
|
+
*/
|
|
7639
|
+
async *runDeepWritingWithSSE(request: $_model.RunDeepWritingRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.RunDeepWritingResponse, any, unknown> {
|
|
7640
|
+
request.validate();
|
|
7641
|
+
let body : {[key: string ]: any} = { };
|
|
7642
|
+
if (!$dara.isNull(request.cursor)) {
|
|
7643
|
+
body["Cursor"] = request.cursor;
|
|
7644
|
+
}
|
|
7645
|
+
|
|
7646
|
+
if (!$dara.isNull(request.taskId)) {
|
|
7647
|
+
body["TaskId"] = request.taskId;
|
|
7648
|
+
}
|
|
7649
|
+
|
|
7650
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
7651
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
7652
|
+
}
|
|
7653
|
+
|
|
7654
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
7655
|
+
body: OpenApiUtil.parseToMap(body),
|
|
7656
|
+
});
|
|
7657
|
+
let params = new $OpenApiUtil.Params({
|
|
7658
|
+
action: "RunDeepWriting",
|
|
7659
|
+
version: "2023-08-01",
|
|
7660
|
+
protocol: "HTTPS",
|
|
7661
|
+
pathname: "/",
|
|
7662
|
+
method: "POST",
|
|
7663
|
+
authType: "AK",
|
|
7664
|
+
style: "RPC",
|
|
7665
|
+
reqBodyType: "formData",
|
|
7666
|
+
bodyType: "json",
|
|
7667
|
+
});
|
|
7668
|
+
let sseResp = await this.callSSEApi(params, req, runtime);
|
|
7669
|
+
|
|
7670
|
+
for await (let resp of sseResp) {
|
|
7671
|
+
let data = JSON.parse(resp.event.data);
|
|
7672
|
+
yield $dara.cast<$_model.RunDeepWritingResponse>({
|
|
7673
|
+
statusCode: resp.statusCode,
|
|
7674
|
+
headers: resp.headers,
|
|
7675
|
+
body: {
|
|
7676
|
+
...data,
|
|
7677
|
+
RequestId: resp.event.id,
|
|
7678
|
+
Message: resp.event.event,
|
|
7679
|
+
},
|
|
7680
|
+
}, new $_model.RunDeepWritingResponse({}));
|
|
7681
|
+
}
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7684
|
+
/**
|
|
7685
|
+
* 流式输出深度写作事件
|
|
7686
|
+
*
|
|
7687
|
+
* @param request - RunDeepWritingRequest
|
|
7688
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7689
|
+
* @returns RunDeepWritingResponse
|
|
7690
|
+
*/
|
|
7691
|
+
async runDeepWritingWithOptions(request: $_model.RunDeepWritingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RunDeepWritingResponse> {
|
|
7692
|
+
request.validate();
|
|
7693
|
+
let body : {[key: string ]: any} = { };
|
|
7694
|
+
if (!$dara.isNull(request.cursor)) {
|
|
7695
|
+
body["Cursor"] = request.cursor;
|
|
7696
|
+
}
|
|
7697
|
+
|
|
7698
|
+
if (!$dara.isNull(request.taskId)) {
|
|
7699
|
+
body["TaskId"] = request.taskId;
|
|
7700
|
+
}
|
|
7701
|
+
|
|
7702
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
7703
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7706
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
7707
|
+
body: OpenApiUtil.parseToMap(body),
|
|
7708
|
+
});
|
|
7709
|
+
let params = new $OpenApiUtil.Params({
|
|
7710
|
+
action: "RunDeepWriting",
|
|
7711
|
+
version: "2023-08-01",
|
|
7712
|
+
protocol: "HTTPS",
|
|
7713
|
+
pathname: "/",
|
|
7714
|
+
method: "POST",
|
|
7715
|
+
authType: "AK",
|
|
7716
|
+
style: "RPC",
|
|
7717
|
+
reqBodyType: "formData",
|
|
7718
|
+
bodyType: "json",
|
|
7719
|
+
});
|
|
7720
|
+
return $dara.cast<$_model.RunDeepWritingResponse>(await this.callApi(params, req, runtime), new $_model.RunDeepWritingResponse({}));
|
|
7721
|
+
}
|
|
7722
|
+
|
|
7723
|
+
/**
|
|
7724
|
+
* 流式输出深度写作事件
|
|
7725
|
+
*
|
|
7726
|
+
* @param request - RunDeepWritingRequest
|
|
7727
|
+
* @returns RunDeepWritingResponse
|
|
7728
|
+
*/
|
|
7729
|
+
async runDeepWriting(request: $_model.RunDeepWritingRequest): Promise<$_model.RunDeepWritingResponse> {
|
|
7730
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
7731
|
+
return await this.runDeepWritingWithOptions(request, runtime);
|
|
7732
|
+
}
|
|
7733
|
+
|
|
7494
7734
|
/**
|
|
7495
7735
|
* 妙读脑图生成接口
|
|
7496
7736
|
*
|
|
@@ -10135,6 +10375,132 @@ export default class Client extends OpenApi {
|
|
|
10135
10375
|
return await this.runTranslateGenerationWithOptions(request, runtime);
|
|
10136
10376
|
}
|
|
10137
10377
|
|
|
10378
|
+
/**
|
|
10379
|
+
* AI生成视频剪辑脚本
|
|
10380
|
+
*
|
|
10381
|
+
* @param request - RunVideoScriptGenerateRequest
|
|
10382
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10383
|
+
* @returns RunVideoScriptGenerateResponse
|
|
10384
|
+
*/
|
|
10385
|
+
async *runVideoScriptGenerateWithSSE(request: $_model.RunVideoScriptGenerateRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.RunVideoScriptGenerateResponse, any, unknown> {
|
|
10386
|
+
request.validate();
|
|
10387
|
+
let body : {[key: string ]: any} = { };
|
|
10388
|
+
if (!$dara.isNull(request.language)) {
|
|
10389
|
+
body["Language"] = request.language;
|
|
10390
|
+
}
|
|
10391
|
+
|
|
10392
|
+
if (!$dara.isNull(request.prompt)) {
|
|
10393
|
+
body["Prompt"] = request.prompt;
|
|
10394
|
+
}
|
|
10395
|
+
|
|
10396
|
+
if (!$dara.isNull(request.scriptLength)) {
|
|
10397
|
+
body["ScriptLength"] = request.scriptLength;
|
|
10398
|
+
}
|
|
10399
|
+
|
|
10400
|
+
if (!$dara.isNull(request.scriptNumber)) {
|
|
10401
|
+
body["ScriptNumber"] = request.scriptNumber;
|
|
10402
|
+
}
|
|
10403
|
+
|
|
10404
|
+
if (!$dara.isNull(request.useSearch)) {
|
|
10405
|
+
body["UseSearch"] = request.useSearch;
|
|
10406
|
+
}
|
|
10407
|
+
|
|
10408
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
10409
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
10410
|
+
}
|
|
10411
|
+
|
|
10412
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10413
|
+
body: OpenApiUtil.parseToMap(body),
|
|
10414
|
+
});
|
|
10415
|
+
let params = new $OpenApiUtil.Params({
|
|
10416
|
+
action: "RunVideoScriptGenerate",
|
|
10417
|
+
version: "2023-08-01",
|
|
10418
|
+
protocol: "HTTPS",
|
|
10419
|
+
pathname: "/",
|
|
10420
|
+
method: "POST",
|
|
10421
|
+
authType: "AK",
|
|
10422
|
+
style: "RPC",
|
|
10423
|
+
reqBodyType: "formData",
|
|
10424
|
+
bodyType: "json",
|
|
10425
|
+
});
|
|
10426
|
+
let sseResp = await this.callSSEApi(params, req, runtime);
|
|
10427
|
+
|
|
10428
|
+
for await (let resp of sseResp) {
|
|
10429
|
+
let data = JSON.parse(resp.event.data);
|
|
10430
|
+
yield $dara.cast<$_model.RunVideoScriptGenerateResponse>({
|
|
10431
|
+
statusCode: resp.statusCode,
|
|
10432
|
+
headers: resp.headers,
|
|
10433
|
+
body: {
|
|
10434
|
+
...data,
|
|
10435
|
+
RequestId: resp.event.id,
|
|
10436
|
+
Message: resp.event.event,
|
|
10437
|
+
},
|
|
10438
|
+
}, new $_model.RunVideoScriptGenerateResponse({}));
|
|
10439
|
+
}
|
|
10440
|
+
}
|
|
10441
|
+
|
|
10442
|
+
/**
|
|
10443
|
+
* AI生成视频剪辑脚本
|
|
10444
|
+
*
|
|
10445
|
+
* @param request - RunVideoScriptGenerateRequest
|
|
10446
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10447
|
+
* @returns RunVideoScriptGenerateResponse
|
|
10448
|
+
*/
|
|
10449
|
+
async runVideoScriptGenerateWithOptions(request: $_model.RunVideoScriptGenerateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RunVideoScriptGenerateResponse> {
|
|
10450
|
+
request.validate();
|
|
10451
|
+
let body : {[key: string ]: any} = { };
|
|
10452
|
+
if (!$dara.isNull(request.language)) {
|
|
10453
|
+
body["Language"] = request.language;
|
|
10454
|
+
}
|
|
10455
|
+
|
|
10456
|
+
if (!$dara.isNull(request.prompt)) {
|
|
10457
|
+
body["Prompt"] = request.prompt;
|
|
10458
|
+
}
|
|
10459
|
+
|
|
10460
|
+
if (!$dara.isNull(request.scriptLength)) {
|
|
10461
|
+
body["ScriptLength"] = request.scriptLength;
|
|
10462
|
+
}
|
|
10463
|
+
|
|
10464
|
+
if (!$dara.isNull(request.scriptNumber)) {
|
|
10465
|
+
body["ScriptNumber"] = request.scriptNumber;
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
if (!$dara.isNull(request.useSearch)) {
|
|
10469
|
+
body["UseSearch"] = request.useSearch;
|
|
10470
|
+
}
|
|
10471
|
+
|
|
10472
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
10473
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
10474
|
+
}
|
|
10475
|
+
|
|
10476
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10477
|
+
body: OpenApiUtil.parseToMap(body),
|
|
10478
|
+
});
|
|
10479
|
+
let params = new $OpenApiUtil.Params({
|
|
10480
|
+
action: "RunVideoScriptGenerate",
|
|
10481
|
+
version: "2023-08-01",
|
|
10482
|
+
protocol: "HTTPS",
|
|
10483
|
+
pathname: "/",
|
|
10484
|
+
method: "POST",
|
|
10485
|
+
authType: "AK",
|
|
10486
|
+
style: "RPC",
|
|
10487
|
+
reqBodyType: "formData",
|
|
10488
|
+
bodyType: "json",
|
|
10489
|
+
});
|
|
10490
|
+
return $dara.cast<$_model.RunVideoScriptGenerateResponse>(await this.callApi(params, req, runtime), new $_model.RunVideoScriptGenerateResponse({}));
|
|
10491
|
+
}
|
|
10492
|
+
|
|
10493
|
+
/**
|
|
10494
|
+
* AI生成视频剪辑脚本
|
|
10495
|
+
*
|
|
10496
|
+
* @param request - RunVideoScriptGenerateRequest
|
|
10497
|
+
* @returns RunVideoScriptGenerateResponse
|
|
10498
|
+
*/
|
|
10499
|
+
async runVideoScriptGenerate(request: $_model.RunVideoScriptGenerateRequest): Promise<$_model.RunVideoScriptGenerateResponse> {
|
|
10500
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10501
|
+
return await this.runVideoScriptGenerateWithOptions(request, runtime);
|
|
10502
|
+
}
|
|
10503
|
+
|
|
10138
10504
|
/**
|
|
10139
10505
|
* AI妙笔-创作-文风改写
|
|
10140
10506
|
*
|
|
@@ -11507,6 +11873,76 @@ export default class Client extends OpenApi {
|
|
|
11507
11873
|
return await this.submitCustomTopicSelectionPerspectiveAnalysisTaskWithOptions(request, runtime);
|
|
11508
11874
|
}
|
|
11509
11875
|
|
|
11876
|
+
/**
|
|
11877
|
+
* 提交深度写作任务
|
|
11878
|
+
*
|
|
11879
|
+
* @param tmpReq - SubmitDeepWriteTaskRequest
|
|
11880
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11881
|
+
* @returns SubmitDeepWriteTaskResponse
|
|
11882
|
+
*/
|
|
11883
|
+
async submitDeepWriteTaskWithOptions(tmpReq: $_model.SubmitDeepWriteTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SubmitDeepWriteTaskResponse> {
|
|
11884
|
+
tmpReq.validate();
|
|
11885
|
+
let request = new $_model.SubmitDeepWriteTaskShrinkRequest({ });
|
|
11886
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
11887
|
+
if (!$dara.isNull(tmpReq.agentOrchestration)) {
|
|
11888
|
+
request.agentOrchestrationShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.agentOrchestration, "AgentOrchestration", "json");
|
|
11889
|
+
}
|
|
11890
|
+
|
|
11891
|
+
if (!$dara.isNull(tmpReq.files)) {
|
|
11892
|
+
request.filesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.files, "Files", "json");
|
|
11893
|
+
}
|
|
11894
|
+
|
|
11895
|
+
let query = { };
|
|
11896
|
+
if (!$dara.isNull(request.agentOrchestrationShrink)) {
|
|
11897
|
+
query["AgentOrchestration"] = request.agentOrchestrationShrink;
|
|
11898
|
+
}
|
|
11899
|
+
|
|
11900
|
+
let body : {[key: string ]: any} = { };
|
|
11901
|
+
if (!$dara.isNull(request.filesShrink)) {
|
|
11902
|
+
body["Files"] = request.filesShrink;
|
|
11903
|
+
}
|
|
11904
|
+
|
|
11905
|
+
if (!$dara.isNull(request.input)) {
|
|
11906
|
+
body["Input"] = request.input;
|
|
11907
|
+
}
|
|
11908
|
+
|
|
11909
|
+
if (!$dara.isNull(request.instructions)) {
|
|
11910
|
+
body["Instructions"] = request.instructions;
|
|
11911
|
+
}
|
|
11912
|
+
|
|
11913
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
11914
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
11915
|
+
}
|
|
11916
|
+
|
|
11917
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
11918
|
+
query: OpenApiUtil.query(query),
|
|
11919
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11920
|
+
});
|
|
11921
|
+
let params = new $OpenApiUtil.Params({
|
|
11922
|
+
action: "SubmitDeepWriteTask",
|
|
11923
|
+
version: "2023-08-01",
|
|
11924
|
+
protocol: "HTTPS",
|
|
11925
|
+
pathname: "/",
|
|
11926
|
+
method: "POST",
|
|
11927
|
+
authType: "AK",
|
|
11928
|
+
style: "RPC",
|
|
11929
|
+
reqBodyType: "formData",
|
|
11930
|
+
bodyType: "json",
|
|
11931
|
+
});
|
|
11932
|
+
return $dara.cast<$_model.SubmitDeepWriteTaskResponse>(await this.callApi(params, req, runtime), new $_model.SubmitDeepWriteTaskResponse({}));
|
|
11933
|
+
}
|
|
11934
|
+
|
|
11935
|
+
/**
|
|
11936
|
+
* 提交深度写作任务
|
|
11937
|
+
*
|
|
11938
|
+
* @param request - SubmitDeepWriteTaskRequest
|
|
11939
|
+
* @returns SubmitDeepWriteTaskResponse
|
|
11940
|
+
*/
|
|
11941
|
+
async submitDeepWriteTask(request: $_model.SubmitDeepWriteTaskRequest): Promise<$_model.SubmitDeepWriteTaskResponse> {
|
|
11942
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
11943
|
+
return await this.submitDeepWriteTaskWithOptions(request, runtime);
|
|
11944
|
+
}
|
|
11945
|
+
|
|
11510
11946
|
/**
|
|
11511
11947
|
* 提交文档聚合任务
|
|
11512
11948
|
*
|
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class AddAuditTermsResponseBodyDataV1 extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 562fe4163a59d7bcb44bfdde4e3d5046
|
|
9
|
+
*/
|
|
10
|
+
id?: number;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
id: 'Id',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
id: 'number',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
5
32
|
export class AddAuditTermsResponseBody extends $dara.Model {
|
|
6
33
|
/**
|
|
7
34
|
* @example
|
|
@@ -13,6 +40,11 @@ export class AddAuditTermsResponseBody extends $dara.Model {
|
|
|
13
40
|
* true
|
|
14
41
|
*/
|
|
15
42
|
data?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* 返回添加的实体信息
|
|
46
|
+
*/
|
|
47
|
+
dataV1?: AddAuditTermsResponseBodyDataV1;
|
|
16
48
|
/**
|
|
17
49
|
* @example
|
|
18
50
|
* 200
|
|
@@ -40,6 +72,7 @@ export class AddAuditTermsResponseBody extends $dara.Model {
|
|
|
40
72
|
return {
|
|
41
73
|
code: 'Code',
|
|
42
74
|
data: 'Data',
|
|
75
|
+
dataV1: 'DataV1',
|
|
43
76
|
httpStatusCode: 'HttpStatusCode',
|
|
44
77
|
message: 'Message',
|
|
45
78
|
requestId: 'RequestId',
|
|
@@ -51,6 +84,7 @@ export class AddAuditTermsResponseBody extends $dara.Model {
|
|
|
51
84
|
return {
|
|
52
85
|
code: 'string',
|
|
53
86
|
data: 'boolean',
|
|
87
|
+
dataV1: AddAuditTermsResponseBodyDataV1,
|
|
54
88
|
httpStatusCode: 'number',
|
|
55
89
|
message: 'string',
|
|
56
90
|
requestId: 'string',
|
|
@@ -59,6 +93,9 @@ export class AddAuditTermsResponseBody extends $dara.Model {
|
|
|
59
93
|
}
|
|
60
94
|
|
|
61
95
|
validate() {
|
|
96
|
+
if(this.dataV1 && typeof (this.dataV1 as any).validate === 'function') {
|
|
97
|
+
(this.dataV1 as any).validate();
|
|
98
|
+
}
|
|
62
99
|
super.validate();
|
|
63
100
|
}
|
|
64
101
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CancelDeepWriteTaskRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* xbabac91-fdad-44d6-95ce-******
|
|
9
|
+
*/
|
|
10
|
+
taskId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* llm-xxxxx
|
|
14
|
+
*/
|
|
15
|
+
workspaceId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
taskId: 'TaskId',
|
|
19
|
+
workspaceId: 'WorkspaceId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
taskId: 'string',
|
|
26
|
+
workspaceId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CancelDeepWriteTaskResponseBody } from "./CancelDeepWriteTaskResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CancelDeepWriteTaskResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CancelDeepWriteTaskResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CancelDeepWriteTaskResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|