@alicloud/aimiaobi20230801 1.35.5 → 1.36.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 +136 -0
- package/dist/client.js +697 -121
- package/dist/client.js.map +1 -1
- package/dist/models/AsyncCreateClipsTaskRequest.d.ts +66 -0
- package/dist/models/AsyncCreateClipsTaskRequest.js +49 -1
- package/dist/models/AsyncCreateClipsTaskRequest.js.map +1 -1
- package/dist/models/AsyncCreateClipsTaskShrinkRequest.d.ts +14 -0
- package/dist/models/AsyncCreateClipsTaskShrinkRequest.js +12 -0
- package/dist/models/AsyncCreateClipsTaskShrinkRequest.js.map +1 -1
- package/dist/models/AsyncUploadVideoRequest.d.ts +57 -0
- package/dist/models/AsyncUploadVideoRequest.js +59 -1
- package/dist/models/AsyncUploadVideoRequest.js.map +1 -1
- package/dist/models/AsyncUploadVideoShrinkRequest.d.ts +12 -0
- package/dist/models/AsyncUploadVideoShrinkRequest.js +8 -0
- package/dist/models/AsyncUploadVideoShrinkRequest.js.map +1 -1
- package/dist/models/CreateGeneralConfigRequest.d.ts +37 -0
- package/dist/models/CreateGeneralConfigRequest.js +62 -0
- package/dist/models/CreateGeneralConfigRequest.js.map +1 -0
- package/dist/models/CreateGeneralConfigResponse.d.ts +19 -0
- package/dist/models/CreateGeneralConfigResponse.js +69 -0
- package/dist/models/CreateGeneralConfigResponse.js.map +1 -0
- package/dist/models/CreateGeneralConfigResponseBody.d.ts +71 -0
- package/dist/models/CreateGeneralConfigResponseBody.js +96 -0
- package/dist/models/CreateGeneralConfigResponseBody.js.map +1 -0
- package/dist/models/DeleteGeneralConfigRequest.d.ts +29 -0
- package/dist/models/DeleteGeneralConfigRequest.js +60 -0
- package/dist/models/DeleteGeneralConfigRequest.js.map +1 -0
- package/dist/models/DeleteGeneralConfigResponse.d.ts +19 -0
- package/dist/models/DeleteGeneralConfigResponse.js +69 -0
- package/dist/models/DeleteGeneralConfigResponse.js.map +1 -0
- package/dist/models/DeleteGeneralConfigResponseBody.d.ts +38 -0
- package/dist/models/DeleteGeneralConfigResponseBody.js +66 -0
- package/dist/models/DeleteGeneralConfigResponseBody.js.map +1 -0
- package/dist/models/GetAutoClipsTaskInfoResponseBody.d.ts +66 -0
- package/dist/models/GetAutoClipsTaskInfoResponseBody.js +49 -1
- package/dist/models/GetAutoClipsTaskInfoResponseBody.js.map +1 -1
- package/dist/models/GetGeneralConfigRequest.d.ts +29 -0
- package/dist/models/GetGeneralConfigRequest.js +60 -0
- package/dist/models/GetGeneralConfigRequest.js.map +1 -0
- package/dist/models/GetGeneralConfigResponse.d.ts +19 -0
- package/dist/models/GetGeneralConfigResponse.js +69 -0
- package/dist/models/GetGeneralConfigResponse.js.map +1 -0
- package/dist/models/GetGeneralConfigResponseBody.d.ts +71 -0
- package/dist/models/GetGeneralConfigResponseBody.js +96 -0
- package/dist/models/GetGeneralConfigResponseBody.js.map +1 -0
- package/dist/models/ListDocumentRetrieveRequest.d.ts +81 -0
- package/dist/models/ListDocumentRetrieveRequest.js +82 -0
- package/dist/models/ListDocumentRetrieveRequest.js.map +1 -0
- package/dist/models/ListDocumentRetrieveResponse.d.ts +19 -0
- package/dist/models/ListDocumentRetrieveResponse.js +69 -0
- package/dist/models/ListDocumentRetrieveResponse.js.map +1 -0
- package/dist/models/ListDocumentRetrieveResponseBody.d.ts +98 -0
- package/dist/models/ListDocumentRetrieveResponseBody.js +104 -0
- package/dist/models/ListDocumentRetrieveResponseBody.js.map +1 -0
- package/dist/models/ListGeneralConfigsRequest.d.ts +31 -0
- package/dist/models/ListGeneralConfigsRequest.js +62 -0
- package/dist/models/ListGeneralConfigsRequest.js.map +1 -0
- package/dist/models/ListGeneralConfigsResponse.d.ts +19 -0
- package/dist/models/ListGeneralConfigsResponse.js +69 -0
- package/dist/models/ListGeneralConfigsResponse.js.map +1 -0
- package/dist/models/ListGeneralConfigsResponseBody.d.ts +86 -0
- package/dist/models/ListGeneralConfigsResponseBody.js +102 -0
- package/dist/models/ListGeneralConfigsResponseBody.js.map +1 -0
- package/dist/models/RunQuickWritingRequest.d.ts +74 -0
- package/dist/models/RunQuickWritingRequest.js +116 -0
- package/dist/models/RunQuickWritingRequest.js.map +1 -0
- package/dist/models/RunQuickWritingResponse.d.ts +19 -0
- package/dist/models/RunQuickWritingResponse.js +69 -0
- package/dist/models/RunQuickWritingResponse.js.map +1 -0
- package/dist/models/RunQuickWritingResponseBody.d.ts +130 -0
- package/dist/models/RunQuickWritingResponseBody.js +170 -0
- package/dist/models/RunQuickWritingResponseBody.js.map +1 -0
- package/dist/models/RunQuickWritingShrinkRequest.d.ts +33 -0
- package/dist/models/RunQuickWritingShrinkRequest.js +66 -0
- package/dist/models/RunQuickWritingShrinkRequest.js.map +1 -0
- package/dist/models/RunTopicSelectionMergeRequest.d.ts +28 -0
- package/dist/models/RunTopicSelectionMergeRequest.js +66 -0
- package/dist/models/RunTopicSelectionMergeRequest.js.map +1 -0
- package/dist/models/RunTopicSelectionMergeResponse.d.ts +19 -0
- package/dist/models/RunTopicSelectionMergeResponse.js +69 -0
- package/dist/models/RunTopicSelectionMergeResponse.js.map +1 -0
- package/dist/models/RunTopicSelectionMergeResponseBody.d.ts +140 -0
- package/dist/models/RunTopicSelectionMergeResponseBody.js +183 -0
- package/dist/models/RunTopicSelectionMergeResponseBody.js.map +1 -0
- package/dist/models/RunTopicSelectionMergeShrinkRequest.d.ts +27 -0
- package/dist/models/RunTopicSelectionMergeShrinkRequest.js +62 -0
- package/dist/models/RunTopicSelectionMergeShrinkRequest.js.map +1 -0
- package/dist/models/UpdateGeneralConfigRequest.d.ts +37 -0
- package/dist/models/UpdateGeneralConfigRequest.js +62 -0
- package/dist/models/UpdateGeneralConfigRequest.js.map +1 -0
- package/dist/models/UpdateGeneralConfigResponse.d.ts +19 -0
- package/dist/models/UpdateGeneralConfigResponse.js +69 -0
- package/dist/models/UpdateGeneralConfigResponse.js.map +1 -0
- package/dist/models/UpdateGeneralConfigResponseBody.d.ts +71 -0
- package/dist/models/UpdateGeneralConfigResponseBody.js +96 -0
- package/dist/models/UpdateGeneralConfigResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +45 -0
- package/dist/models/model.js +124 -34
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +634 -0
- package/src/models/AsyncCreateClipsTaskRequest.ts +105 -0
- package/src/models/AsyncCreateClipsTaskShrinkRequest.ts +26 -0
- package/src/models/AsyncUploadVideoRequest.ts +97 -0
- package/src/models/AsyncUploadVideoShrinkRequest.ts +20 -0
- package/src/models/CreateGeneralConfigRequest.ts +54 -0
- package/src/models/CreateGeneralConfigResponse.ts +40 -0
- package/src/models/CreateGeneralConfigResponseBody.ts +113 -0
- package/src/models/DeleteGeneralConfigRequest.ts +44 -0
- package/src/models/DeleteGeneralConfigResponse.ts +40 -0
- package/src/models/DeleteGeneralConfigResponseBody.ts +59 -0
- package/src/models/GetAutoClipsTaskInfoResponseBody.ts +105 -0
- package/src/models/GetGeneralConfigRequest.ts +44 -0
- package/src/models/GetGeneralConfigResponse.ts +40 -0
- package/src/models/GetGeneralConfigResponseBody.ts +113 -0
- package/src/models/ListDocumentRetrieveRequest.ts +118 -0
- package/src/models/ListDocumentRetrieveResponse.ts +40 -0
- package/src/models/ListDocumentRetrieveResponseBody.ts +148 -0
- package/src/models/ListGeneralConfigsRequest.ts +48 -0
- package/src/models/ListGeneralConfigsResponse.ts +40 -0
- package/src/models/ListGeneralConfigsResponseBody.ts +134 -0
- package/src/models/RunQuickWritingRequest.ts +127 -0
- package/src/models/RunQuickWritingResponse.ts +40 -0
- package/src/models/RunQuickWritingResponseBody.ts +219 -0
- package/src/models/RunQuickWritingShrinkRequest.ts +54 -0
- package/src/models/RunTopicSelectionMergeRequest.ts +48 -0
- package/src/models/RunTopicSelectionMergeResponse.ts +40 -0
- package/src/models/RunTopicSelectionMergeResponseBody.ts +239 -0
- package/src/models/RunTopicSelectionMergeShrinkRequest.ts +44 -0
- package/src/models/UpdateGeneralConfigRequest.ts +54 -0
- package/src/models/UpdateGeneralConfigResponse.ts +40 -0
- package/src/models/UpdateGeneralConfigResponseBody.ts +113 -0
- package/src/models/model.ts +45 -0
package/dist/client.js
CHANGED
|
@@ -207,10 +207,28 @@ class Client extends openapi_core_1.default {
|
|
|
207
207
|
if (!$dara.isNull(tmpReq.colorWords)) {
|
|
208
208
|
request.colorWordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.colorWords, "ColorWords", "json");
|
|
209
209
|
}
|
|
210
|
+
if (!$dara.isNull(tmpReq.stickers)) {
|
|
211
|
+
request.stickersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.stickers, "Stickers", "json");
|
|
212
|
+
}
|
|
210
213
|
let body = {};
|
|
214
|
+
if (!$dara.isNull(request.closeMusic)) {
|
|
215
|
+
body["CloseMusic"] = request.closeMusic;
|
|
216
|
+
}
|
|
217
|
+
if (!$dara.isNull(request.closeSubtitle)) {
|
|
218
|
+
body["CloseSubtitle"] = request.closeSubtitle;
|
|
219
|
+
}
|
|
220
|
+
if (!$dara.isNull(request.closeVoice)) {
|
|
221
|
+
body["CloseVoice"] = request.closeVoice;
|
|
222
|
+
}
|
|
211
223
|
if (!$dara.isNull(request.colorWordsShrink)) {
|
|
212
224
|
body["ColorWords"] = request.colorWordsShrink;
|
|
213
225
|
}
|
|
226
|
+
if (!$dara.isNull(request.customVoiceUrl)) {
|
|
227
|
+
body["CustomVoiceUrl"] = request.customVoiceUrl;
|
|
228
|
+
}
|
|
229
|
+
if (!$dara.isNull(request.customVoiceVolume)) {
|
|
230
|
+
body["CustomVoiceVolume"] = request.customVoiceVolume;
|
|
231
|
+
}
|
|
214
232
|
if (!$dara.isNull(request.height)) {
|
|
215
233
|
body["Height"] = request.height;
|
|
216
234
|
}
|
|
@@ -220,6 +238,9 @@ class Client extends openapi_core_1.default {
|
|
|
220
238
|
if (!$dara.isNull(request.musicVolume)) {
|
|
221
239
|
body["MusicVolume"] = request.musicVolume;
|
|
222
240
|
}
|
|
241
|
+
if (!$dara.isNull(request.stickersShrink)) {
|
|
242
|
+
body["Stickers"] = request.stickersShrink;
|
|
243
|
+
}
|
|
223
244
|
if (!$dara.isNull(request.subtitleFontSize)) {
|
|
224
245
|
body["SubtitleFontSize"] = request.subtitleFontSize;
|
|
225
246
|
}
|
|
@@ -433,19 +454,34 @@ class Client extends openapi_core_1.default {
|
|
|
433
454
|
if (!$dara.isNull(tmpReq.sourceVideos)) {
|
|
434
455
|
request.sourceVideosShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceVideos, "SourceVideos", "json");
|
|
435
456
|
}
|
|
457
|
+
if (!$dara.isNull(tmpReq.videoRoles)) {
|
|
458
|
+
request.videoRolesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.videoRoles, "VideoRoles", "json");
|
|
459
|
+
}
|
|
436
460
|
let body = {};
|
|
437
461
|
if (!$dara.isNull(request.anlysisPrompt)) {
|
|
438
462
|
body["AnlysisPrompt"] = request.anlysisPrompt;
|
|
439
463
|
}
|
|
464
|
+
if (!$dara.isNull(request.faceIdentitySimilarityMinScore)) {
|
|
465
|
+
body["FaceIdentitySimilarityMinScore"] = request.faceIdentitySimilarityMinScore;
|
|
466
|
+
}
|
|
440
467
|
if (!$dara.isNull(request.referenceVideoShrink)) {
|
|
441
468
|
body["ReferenceVideo"] = request.referenceVideoShrink;
|
|
442
469
|
}
|
|
470
|
+
if (!$dara.isNull(request.removeSubtitle)) {
|
|
471
|
+
body["RemoveSubtitle"] = request.removeSubtitle;
|
|
472
|
+
}
|
|
443
473
|
if (!$dara.isNull(request.sourceVideosShrink)) {
|
|
444
474
|
body["SourceVideos"] = request.sourceVideosShrink;
|
|
445
475
|
}
|
|
446
476
|
if (!$dara.isNull(request.splitInterval)) {
|
|
447
477
|
body["SplitInterval"] = request.splitInterval;
|
|
448
478
|
}
|
|
479
|
+
if (!$dara.isNull(request.videoRolesShrink)) {
|
|
480
|
+
body["VideoRoles"] = request.videoRolesShrink;
|
|
481
|
+
}
|
|
482
|
+
if (!$dara.isNull(request.videoShotFaceIdentityCount)) {
|
|
483
|
+
body["VideoShotFaceIdentityCount"] = request.videoShotFaceIdentityCount;
|
|
484
|
+
}
|
|
449
485
|
if (!$dara.isNull(request.workspaceId)) {
|
|
450
486
|
body["WorkspaceId"] = request.workspaceId;
|
|
451
487
|
}
|
|
@@ -803,6 +839,51 @@ class Client extends openapi_core_1.default {
|
|
|
803
839
|
let runtime = new $dara.RuntimeOptions({});
|
|
804
840
|
return await this.createDatasetWithOptions(request, runtime);
|
|
805
841
|
}
|
|
842
|
+
/**
|
|
843
|
+
* 通用配置-创建
|
|
844
|
+
*
|
|
845
|
+
* @param request - CreateGeneralConfigRequest
|
|
846
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
847
|
+
* @returns CreateGeneralConfigResponse
|
|
848
|
+
*/
|
|
849
|
+
async createGeneralConfigWithOptions(request, runtime) {
|
|
850
|
+
request.validate();
|
|
851
|
+
let body = {};
|
|
852
|
+
if (!$dara.isNull(request.configKey)) {
|
|
853
|
+
body["ConfigKey"] = request.configKey;
|
|
854
|
+
}
|
|
855
|
+
if (!$dara.isNull(request.configValue)) {
|
|
856
|
+
body["ConfigValue"] = request.configValue;
|
|
857
|
+
}
|
|
858
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
859
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
860
|
+
}
|
|
861
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
862
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
863
|
+
});
|
|
864
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
865
|
+
action: "CreateGeneralConfig",
|
|
866
|
+
version: "2023-08-01",
|
|
867
|
+
protocol: "HTTPS",
|
|
868
|
+
pathname: "/",
|
|
869
|
+
method: "POST",
|
|
870
|
+
authType: "AK",
|
|
871
|
+
style: "RPC",
|
|
872
|
+
reqBodyType: "formData",
|
|
873
|
+
bodyType: "json",
|
|
874
|
+
});
|
|
875
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateGeneralConfigResponse({}));
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* 通用配置-创建
|
|
879
|
+
*
|
|
880
|
+
* @param request - CreateGeneralConfigRequest
|
|
881
|
+
* @returns CreateGeneralConfigResponse
|
|
882
|
+
*/
|
|
883
|
+
async createGeneralConfig(request) {
|
|
884
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
885
|
+
return await this.createGeneralConfigWithOptions(request, runtime);
|
|
886
|
+
}
|
|
806
887
|
/**
|
|
807
888
|
* 文档管理-创建
|
|
808
889
|
*
|
|
@@ -1318,6 +1399,48 @@ class Client extends openapi_core_1.default {
|
|
|
1318
1399
|
let runtime = new $dara.RuntimeOptions({});
|
|
1319
1400
|
return await this.deleteFactAuditUrlWithOptions(request, runtime);
|
|
1320
1401
|
}
|
|
1402
|
+
/**
|
|
1403
|
+
* 通用配置-删除
|
|
1404
|
+
*
|
|
1405
|
+
* @param request - DeleteGeneralConfigRequest
|
|
1406
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1407
|
+
* @returns DeleteGeneralConfigResponse
|
|
1408
|
+
*/
|
|
1409
|
+
async deleteGeneralConfigWithOptions(request, runtime) {
|
|
1410
|
+
request.validate();
|
|
1411
|
+
let body = {};
|
|
1412
|
+
if (!$dara.isNull(request.configKey)) {
|
|
1413
|
+
body["ConfigKey"] = request.configKey;
|
|
1414
|
+
}
|
|
1415
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
1416
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
1417
|
+
}
|
|
1418
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1419
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1420
|
+
});
|
|
1421
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1422
|
+
action: "DeleteGeneralConfig",
|
|
1423
|
+
version: "2023-08-01",
|
|
1424
|
+
protocol: "HTTPS",
|
|
1425
|
+
pathname: "/",
|
|
1426
|
+
method: "POST",
|
|
1427
|
+
authType: "AK",
|
|
1428
|
+
style: "RPC",
|
|
1429
|
+
reqBodyType: "formData",
|
|
1430
|
+
bodyType: "json",
|
|
1431
|
+
});
|
|
1432
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteGeneralConfigResponse({}));
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* 通用配置-删除
|
|
1436
|
+
*
|
|
1437
|
+
* @param request - DeleteGeneralConfigRequest
|
|
1438
|
+
* @returns DeleteGeneralConfigResponse
|
|
1439
|
+
*/
|
|
1440
|
+
async deleteGeneralConfig(request) {
|
|
1441
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1442
|
+
return await this.deleteGeneralConfigWithOptions(request, runtime);
|
|
1443
|
+
}
|
|
1321
1444
|
/**
|
|
1322
1445
|
* 文档管理-删除。
|
|
1323
1446
|
*
|
|
@@ -3430,6 +3553,48 @@ class Client extends openapi_core_1.default {
|
|
|
3430
3553
|
let runtime = new $dara.RuntimeOptions({});
|
|
3431
3554
|
return await this.getFileContentLengthWithOptions(request, runtime);
|
|
3432
3555
|
}
|
|
3556
|
+
/**
|
|
3557
|
+
* 通用配置-查询
|
|
3558
|
+
*
|
|
3559
|
+
* @param request - GetGeneralConfigRequest
|
|
3560
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3561
|
+
* @returns GetGeneralConfigResponse
|
|
3562
|
+
*/
|
|
3563
|
+
async getGeneralConfigWithOptions(request, runtime) {
|
|
3564
|
+
request.validate();
|
|
3565
|
+
let body = {};
|
|
3566
|
+
if (!$dara.isNull(request.configKey)) {
|
|
3567
|
+
body["ConfigKey"] = request.configKey;
|
|
3568
|
+
}
|
|
3569
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
3570
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
3571
|
+
}
|
|
3572
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3573
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
3574
|
+
});
|
|
3575
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3576
|
+
action: "GetGeneralConfig",
|
|
3577
|
+
version: "2023-08-01",
|
|
3578
|
+
protocol: "HTTPS",
|
|
3579
|
+
pathname: "/",
|
|
3580
|
+
method: "POST",
|
|
3581
|
+
authType: "AK",
|
|
3582
|
+
style: "RPC",
|
|
3583
|
+
reqBodyType: "formData",
|
|
3584
|
+
bodyType: "json",
|
|
3585
|
+
});
|
|
3586
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetGeneralConfigResponse({}));
|
|
3587
|
+
}
|
|
3588
|
+
/**
|
|
3589
|
+
* 通用配置-查询
|
|
3590
|
+
*
|
|
3591
|
+
* @param request - GetGeneralConfigRequest
|
|
3592
|
+
* @returns GetGeneralConfigResponse
|
|
3593
|
+
*/
|
|
3594
|
+
async getGeneralConfig(request) {
|
|
3595
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3596
|
+
return await this.getGeneralConfigWithOptions(request, runtime);
|
|
3597
|
+
}
|
|
3433
3598
|
/**
|
|
3434
3599
|
* 文档管理-查询详情。
|
|
3435
3600
|
*
|
|
@@ -4954,6 +5119,83 @@ class Client extends openapi_core_1.default {
|
|
|
4954
5119
|
let runtime = new $dara.RuntimeOptions({});
|
|
4955
5120
|
return await this.listDocsWithOptions(request, runtime);
|
|
4956
5121
|
}
|
|
5122
|
+
/**
|
|
5123
|
+
* 公文检索
|
|
5124
|
+
*
|
|
5125
|
+
* @param request - ListDocumentRetrieveRequest
|
|
5126
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5127
|
+
* @returns ListDocumentRetrieveResponse
|
|
5128
|
+
*/
|
|
5129
|
+
async listDocumentRetrieveWithOptions(request, runtime) {
|
|
5130
|
+
request.validate();
|
|
5131
|
+
let query = {};
|
|
5132
|
+
if (!$dara.isNull(request.contentType)) {
|
|
5133
|
+
query["ContentType"] = request.contentType;
|
|
5134
|
+
}
|
|
5135
|
+
if (!$dara.isNull(request.elementScope)) {
|
|
5136
|
+
query["ElementScope"] = request.elementScope;
|
|
5137
|
+
}
|
|
5138
|
+
if (!$dara.isNull(request.endDate)) {
|
|
5139
|
+
query["EndDate"] = request.endDate;
|
|
5140
|
+
}
|
|
5141
|
+
if (!$dara.isNull(request.office)) {
|
|
5142
|
+
query["Office"] = request.office;
|
|
5143
|
+
}
|
|
5144
|
+
if (!$dara.isNull(request.region)) {
|
|
5145
|
+
query["Region"] = request.region;
|
|
5146
|
+
}
|
|
5147
|
+
if (!$dara.isNull(request.source)) {
|
|
5148
|
+
query["Source"] = request.source;
|
|
5149
|
+
}
|
|
5150
|
+
if (!$dara.isNull(request.startDate)) {
|
|
5151
|
+
query["StartDate"] = request.startDate;
|
|
5152
|
+
}
|
|
5153
|
+
if (!$dara.isNull(request.subContentType)) {
|
|
5154
|
+
query["SubContentType"] = request.subContentType;
|
|
5155
|
+
}
|
|
5156
|
+
if (!$dara.isNull(request.wordSize)) {
|
|
5157
|
+
query["WordSize"] = request.wordSize;
|
|
5158
|
+
}
|
|
5159
|
+
let body = {};
|
|
5160
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
5161
|
+
body["MaxResults"] = request.maxResults;
|
|
5162
|
+
}
|
|
5163
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
5164
|
+
body["NextToken"] = request.nextToken;
|
|
5165
|
+
}
|
|
5166
|
+
if (!$dara.isNull(request.query)) {
|
|
5167
|
+
body["Query"] = request.query;
|
|
5168
|
+
}
|
|
5169
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
5170
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
5171
|
+
}
|
|
5172
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5173
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5174
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
5175
|
+
});
|
|
5176
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5177
|
+
action: "ListDocumentRetrieve",
|
|
5178
|
+
version: "2023-08-01",
|
|
5179
|
+
protocol: "HTTPS",
|
|
5180
|
+
pathname: "/",
|
|
5181
|
+
method: "POST",
|
|
5182
|
+
authType: "AK",
|
|
5183
|
+
style: "RPC",
|
|
5184
|
+
reqBodyType: "formData",
|
|
5185
|
+
bodyType: "json",
|
|
5186
|
+
});
|
|
5187
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDocumentRetrieveResponse({}));
|
|
5188
|
+
}
|
|
5189
|
+
/**
|
|
5190
|
+
* 公文检索
|
|
5191
|
+
*
|
|
5192
|
+
* @param request - ListDocumentRetrieveRequest
|
|
5193
|
+
* @returns ListDocumentRetrieveResponse
|
|
5194
|
+
*/
|
|
5195
|
+
async listDocumentRetrieve(request) {
|
|
5196
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5197
|
+
return await this.listDocumentRetrieveWithOptions(request, runtime);
|
|
5198
|
+
}
|
|
4957
5199
|
/**
|
|
4958
5200
|
* 新颖视角列表
|
|
4959
5201
|
*
|
|
@@ -5007,6 +5249,51 @@ class Client extends openapi_core_1.default {
|
|
|
5007
5249
|
let runtime = new $dara.RuntimeOptions({});
|
|
5008
5250
|
return await this.listFreshViewPointsWithOptions(request, runtime);
|
|
5009
5251
|
}
|
|
5252
|
+
/**
|
|
5253
|
+
* 通用配置-列表
|
|
5254
|
+
*
|
|
5255
|
+
* @param request - ListGeneralConfigsRequest
|
|
5256
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5257
|
+
* @returns ListGeneralConfigsResponse
|
|
5258
|
+
*/
|
|
5259
|
+
async listGeneralConfigsWithOptions(request, runtime) {
|
|
5260
|
+
request.validate();
|
|
5261
|
+
let body = {};
|
|
5262
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
5263
|
+
body["PageNumber"] = request.pageNumber;
|
|
5264
|
+
}
|
|
5265
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
5266
|
+
body["PageSize"] = request.pageSize;
|
|
5267
|
+
}
|
|
5268
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
5269
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
5270
|
+
}
|
|
5271
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5272
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
5273
|
+
});
|
|
5274
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5275
|
+
action: "ListGeneralConfigs",
|
|
5276
|
+
version: "2023-08-01",
|
|
5277
|
+
protocol: "HTTPS",
|
|
5278
|
+
pathname: "/",
|
|
5279
|
+
method: "POST",
|
|
5280
|
+
authType: "AK",
|
|
5281
|
+
style: "RPC",
|
|
5282
|
+
reqBodyType: "formData",
|
|
5283
|
+
bodyType: "json",
|
|
5284
|
+
});
|
|
5285
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListGeneralConfigsResponse({}));
|
|
5286
|
+
}
|
|
5287
|
+
/**
|
|
5288
|
+
* 通用配置-列表
|
|
5289
|
+
*
|
|
5290
|
+
* @param request - ListGeneralConfigsRequest
|
|
5291
|
+
* @returns ListGeneralConfigsResponse
|
|
5292
|
+
*/
|
|
5293
|
+
async listGeneralConfigs(request) {
|
|
5294
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5295
|
+
return await this.listGeneralConfigsWithOptions(request, runtime);
|
|
5296
|
+
}
|
|
5010
5297
|
/**
|
|
5011
5298
|
* 文档管理-列表。
|
|
5012
5299
|
*
|
|
@@ -8907,43 +9194,34 @@ class Client extends openapi_core_1.default {
|
|
|
8907
9194
|
return await this.runMultiDocIntroductionWithOptions(request, runtime);
|
|
8908
9195
|
}
|
|
8909
9196
|
/**
|
|
8910
|
-
*
|
|
9197
|
+
* 快速写作
|
|
8911
9198
|
*
|
|
8912
|
-
* @param tmpReq -
|
|
9199
|
+
* @param tmpReq - RunQuickWritingRequest
|
|
8913
9200
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
8914
|
-
* @returns
|
|
9201
|
+
* @returns RunQuickWritingResponse
|
|
8915
9202
|
*/
|
|
8916
|
-
|
|
8917
|
-
return __asyncGenerator(this, arguments, function*
|
|
9203
|
+
runQuickWritingWithSSE(tmpReq, runtime) {
|
|
9204
|
+
return __asyncGenerator(this, arguments, function* runQuickWritingWithSSE_1() {
|
|
8918
9205
|
var _a, e_22, _b, _c;
|
|
8919
9206
|
tmpReq.validate();
|
|
8920
|
-
let request = new $_model.
|
|
9207
|
+
let request = new $_model.RunQuickWritingShrinkRequest({});
|
|
8921
9208
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
8922
|
-
if (!$dara.isNull(tmpReq.
|
|
8923
|
-
request.
|
|
9209
|
+
if (!$dara.isNull(tmpReq.articles)) {
|
|
9210
|
+
request.articlesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.articles, "Articles", "json");
|
|
8924
9211
|
}
|
|
8925
|
-
if (!$dara.isNull(tmpReq.
|
|
8926
|
-
request.
|
|
9212
|
+
if (!$dara.isNull(tmpReq.searchSources)) {
|
|
9213
|
+
request.searchSourcesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchSources, "SearchSources", "json");
|
|
8927
9214
|
}
|
|
8928
9215
|
let body = {};
|
|
8929
|
-
if (!$dara.isNull(request.
|
|
8930
|
-
body["
|
|
8931
|
-
}
|
|
8932
|
-
if (!$dara.isNull(request.chatConfigShrink)) {
|
|
8933
|
-
body["ChatConfig"] = request.chatConfigShrink;
|
|
8934
|
-
}
|
|
8935
|
-
if (!$dara.isNull(request.fileUrl)) {
|
|
8936
|
-
body["FileUrl"] = request.fileUrl;
|
|
8937
|
-
}
|
|
8938
|
-
if (!$dara.isNull(request.modelId)) {
|
|
8939
|
-
body["ModelId"] = request.modelId;
|
|
8940
|
-
}
|
|
8941
|
-
if (!$dara.isNull(request.originalSessionId)) {
|
|
8942
|
-
body["OriginalSessionId"] = request.originalSessionId;
|
|
9216
|
+
if (!$dara.isNull(request.articlesShrink)) {
|
|
9217
|
+
body["Articles"] = request.articlesShrink;
|
|
8943
9218
|
}
|
|
8944
9219
|
if (!$dara.isNull(request.prompt)) {
|
|
8945
9220
|
body["Prompt"] = request.prompt;
|
|
8946
9221
|
}
|
|
9222
|
+
if (!$dara.isNull(request.searchSourcesShrink)) {
|
|
9223
|
+
body["SearchSources"] = request.searchSourcesShrink;
|
|
9224
|
+
}
|
|
8947
9225
|
if (!$dara.isNull(request.taskId)) {
|
|
8948
9226
|
body["TaskId"] = request.taskId;
|
|
8949
9227
|
}
|
|
@@ -8954,7 +9232,7 @@ class Client extends openapi_core_1.default {
|
|
|
8954
9232
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
8955
9233
|
});
|
|
8956
9234
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8957
|
-
action: "
|
|
9235
|
+
action: "RunQuickWriting",
|
|
8958
9236
|
version: "2023-08-01",
|
|
8959
9237
|
protocol: "HTTPS",
|
|
8960
9238
|
pathname: "/",
|
|
@@ -8975,7 +9253,7 @@ class Client extends openapi_core_1.default {
|
|
|
8975
9253
|
statusCode: resp.statusCode,
|
|
8976
9254
|
headers: resp.headers,
|
|
8977
9255
|
body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
|
|
8978
|
-
}, new $_model.
|
|
9256
|
+
}, new $_model.RunQuickWritingResponse({})));
|
|
8979
9257
|
}
|
|
8980
9258
|
}
|
|
8981
9259
|
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
|
@@ -8988,41 +9266,32 @@ class Client extends openapi_core_1.default {
|
|
|
8988
9266
|
});
|
|
8989
9267
|
}
|
|
8990
9268
|
/**
|
|
8991
|
-
*
|
|
9269
|
+
* 快速写作
|
|
8992
9270
|
*
|
|
8993
|
-
* @param tmpReq -
|
|
9271
|
+
* @param tmpReq - RunQuickWritingRequest
|
|
8994
9272
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
8995
|
-
* @returns
|
|
9273
|
+
* @returns RunQuickWritingResponse
|
|
8996
9274
|
*/
|
|
8997
|
-
async
|
|
9275
|
+
async runQuickWritingWithOptions(tmpReq, runtime) {
|
|
8998
9276
|
tmpReq.validate();
|
|
8999
|
-
let request = new $_model.
|
|
9277
|
+
let request = new $_model.RunQuickWritingShrinkRequest({});
|
|
9000
9278
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
9001
|
-
if (!$dara.isNull(tmpReq.
|
|
9002
|
-
request.
|
|
9279
|
+
if (!$dara.isNull(tmpReq.articles)) {
|
|
9280
|
+
request.articlesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.articles, "Articles", "json");
|
|
9003
9281
|
}
|
|
9004
|
-
if (!$dara.isNull(tmpReq.
|
|
9005
|
-
request.
|
|
9282
|
+
if (!$dara.isNull(tmpReq.searchSources)) {
|
|
9283
|
+
request.searchSourcesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchSources, "SearchSources", "json");
|
|
9006
9284
|
}
|
|
9007
9285
|
let body = {};
|
|
9008
|
-
if (!$dara.isNull(request.
|
|
9009
|
-
body["
|
|
9010
|
-
}
|
|
9011
|
-
if (!$dara.isNull(request.chatConfigShrink)) {
|
|
9012
|
-
body["ChatConfig"] = request.chatConfigShrink;
|
|
9013
|
-
}
|
|
9014
|
-
if (!$dara.isNull(request.fileUrl)) {
|
|
9015
|
-
body["FileUrl"] = request.fileUrl;
|
|
9016
|
-
}
|
|
9017
|
-
if (!$dara.isNull(request.modelId)) {
|
|
9018
|
-
body["ModelId"] = request.modelId;
|
|
9019
|
-
}
|
|
9020
|
-
if (!$dara.isNull(request.originalSessionId)) {
|
|
9021
|
-
body["OriginalSessionId"] = request.originalSessionId;
|
|
9286
|
+
if (!$dara.isNull(request.articlesShrink)) {
|
|
9287
|
+
body["Articles"] = request.articlesShrink;
|
|
9022
9288
|
}
|
|
9023
9289
|
if (!$dara.isNull(request.prompt)) {
|
|
9024
9290
|
body["Prompt"] = request.prompt;
|
|
9025
9291
|
}
|
|
9292
|
+
if (!$dara.isNull(request.searchSourcesShrink)) {
|
|
9293
|
+
body["SearchSources"] = request.searchSourcesShrink;
|
|
9294
|
+
}
|
|
9026
9295
|
if (!$dara.isNull(request.taskId)) {
|
|
9027
9296
|
body["TaskId"] = request.taskId;
|
|
9028
9297
|
}
|
|
@@ -9033,7 +9302,7 @@ class Client extends openapi_core_1.default {
|
|
|
9033
9302
|
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
9034
9303
|
});
|
|
9035
9304
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9036
|
-
action: "
|
|
9305
|
+
action: "RunQuickWriting",
|
|
9037
9306
|
version: "2023-08-01",
|
|
9038
9307
|
protocol: "HTTPS",
|
|
9039
9308
|
pathname: "/",
|
|
@@ -9043,15 +9312,164 @@ class Client extends openapi_core_1.default {
|
|
|
9043
9312
|
reqBodyType: "formData",
|
|
9044
9313
|
bodyType: "json",
|
|
9045
9314
|
});
|
|
9046
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
9315
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunQuickWritingResponse({}));
|
|
9047
9316
|
}
|
|
9048
9317
|
/**
|
|
9049
|
-
*
|
|
9318
|
+
* 快速写作
|
|
9050
9319
|
*
|
|
9051
|
-
* @param request -
|
|
9052
|
-
* @returns
|
|
9320
|
+
* @param request - RunQuickWritingRequest
|
|
9321
|
+
* @returns RunQuickWritingResponse
|
|
9053
9322
|
*/
|
|
9054
|
-
async
|
|
9323
|
+
async runQuickWriting(request) {
|
|
9324
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
9325
|
+
return await this.runQuickWritingWithOptions(request, runtime);
|
|
9326
|
+
}
|
|
9327
|
+
/**
|
|
9328
|
+
* AI妙搜-智能搜索生成
|
|
9329
|
+
*
|
|
9330
|
+
* @param tmpReq - RunSearchGenerationRequest
|
|
9331
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9332
|
+
* @returns RunSearchGenerationResponse
|
|
9333
|
+
*/
|
|
9334
|
+
runSearchGenerationWithSSE(tmpReq, runtime) {
|
|
9335
|
+
return __asyncGenerator(this, arguments, function* runSearchGenerationWithSSE_1() {
|
|
9336
|
+
var _a, e_23, _b, _c;
|
|
9337
|
+
tmpReq.validate();
|
|
9338
|
+
let request = new $_model.RunSearchGenerationShrinkRequest({});
|
|
9339
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
9340
|
+
if (!$dara.isNull(tmpReq.agentContext)) {
|
|
9341
|
+
request.agentContextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.agentContext, "AgentContext", "json");
|
|
9342
|
+
}
|
|
9343
|
+
if (!$dara.isNull(tmpReq.chatConfig)) {
|
|
9344
|
+
request.chatConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.chatConfig, "ChatConfig", "json");
|
|
9345
|
+
}
|
|
9346
|
+
let body = {};
|
|
9347
|
+
if (!$dara.isNull(request.agentContextShrink)) {
|
|
9348
|
+
body["AgentContext"] = request.agentContextShrink;
|
|
9349
|
+
}
|
|
9350
|
+
if (!$dara.isNull(request.chatConfigShrink)) {
|
|
9351
|
+
body["ChatConfig"] = request.chatConfigShrink;
|
|
9352
|
+
}
|
|
9353
|
+
if (!$dara.isNull(request.fileUrl)) {
|
|
9354
|
+
body["FileUrl"] = request.fileUrl;
|
|
9355
|
+
}
|
|
9356
|
+
if (!$dara.isNull(request.modelId)) {
|
|
9357
|
+
body["ModelId"] = request.modelId;
|
|
9358
|
+
}
|
|
9359
|
+
if (!$dara.isNull(request.originalSessionId)) {
|
|
9360
|
+
body["OriginalSessionId"] = request.originalSessionId;
|
|
9361
|
+
}
|
|
9362
|
+
if (!$dara.isNull(request.prompt)) {
|
|
9363
|
+
body["Prompt"] = request.prompt;
|
|
9364
|
+
}
|
|
9365
|
+
if (!$dara.isNull(request.taskId)) {
|
|
9366
|
+
body["TaskId"] = request.taskId;
|
|
9367
|
+
}
|
|
9368
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
9369
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
9370
|
+
}
|
|
9371
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9372
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
9373
|
+
});
|
|
9374
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9375
|
+
action: "RunSearchGeneration",
|
|
9376
|
+
version: "2023-08-01",
|
|
9377
|
+
protocol: "HTTPS",
|
|
9378
|
+
pathname: "/",
|
|
9379
|
+
method: "POST",
|
|
9380
|
+
authType: "AK",
|
|
9381
|
+
style: "RPC",
|
|
9382
|
+
reqBodyType: "formData",
|
|
9383
|
+
bodyType: "json",
|
|
9384
|
+
});
|
|
9385
|
+
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9386
|
+
try {
|
|
9387
|
+
for (var _d = true, sseResp_23 = __asyncValues(sseResp), sseResp_23_1; sseResp_23_1 = yield __await(sseResp_23.next()), _a = sseResp_23_1.done, !_a; _d = true) {
|
|
9388
|
+
_c = sseResp_23_1.value;
|
|
9389
|
+
_d = false;
|
|
9390
|
+
let resp = _c;
|
|
9391
|
+
let data = JSON.parse(resp.event.data);
|
|
9392
|
+
yield yield __await($dara.cast({
|
|
9393
|
+
statusCode: resp.statusCode,
|
|
9394
|
+
headers: resp.headers,
|
|
9395
|
+
body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
|
|
9396
|
+
}, new $_model.RunSearchGenerationResponse({})));
|
|
9397
|
+
}
|
|
9398
|
+
}
|
|
9399
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
|
9400
|
+
finally {
|
|
9401
|
+
try {
|
|
9402
|
+
if (!_d && !_a && (_b = sseResp_23.return)) yield __await(_b.call(sseResp_23));
|
|
9403
|
+
}
|
|
9404
|
+
finally { if (e_23) throw e_23.error; }
|
|
9405
|
+
}
|
|
9406
|
+
});
|
|
9407
|
+
}
|
|
9408
|
+
/**
|
|
9409
|
+
* AI妙搜-智能搜索生成
|
|
9410
|
+
*
|
|
9411
|
+
* @param tmpReq - RunSearchGenerationRequest
|
|
9412
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9413
|
+
* @returns RunSearchGenerationResponse
|
|
9414
|
+
*/
|
|
9415
|
+
async runSearchGenerationWithOptions(tmpReq, runtime) {
|
|
9416
|
+
tmpReq.validate();
|
|
9417
|
+
let request = new $_model.RunSearchGenerationShrinkRequest({});
|
|
9418
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
9419
|
+
if (!$dara.isNull(tmpReq.agentContext)) {
|
|
9420
|
+
request.agentContextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.agentContext, "AgentContext", "json");
|
|
9421
|
+
}
|
|
9422
|
+
if (!$dara.isNull(tmpReq.chatConfig)) {
|
|
9423
|
+
request.chatConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.chatConfig, "ChatConfig", "json");
|
|
9424
|
+
}
|
|
9425
|
+
let body = {};
|
|
9426
|
+
if (!$dara.isNull(request.agentContextShrink)) {
|
|
9427
|
+
body["AgentContext"] = request.agentContextShrink;
|
|
9428
|
+
}
|
|
9429
|
+
if (!$dara.isNull(request.chatConfigShrink)) {
|
|
9430
|
+
body["ChatConfig"] = request.chatConfigShrink;
|
|
9431
|
+
}
|
|
9432
|
+
if (!$dara.isNull(request.fileUrl)) {
|
|
9433
|
+
body["FileUrl"] = request.fileUrl;
|
|
9434
|
+
}
|
|
9435
|
+
if (!$dara.isNull(request.modelId)) {
|
|
9436
|
+
body["ModelId"] = request.modelId;
|
|
9437
|
+
}
|
|
9438
|
+
if (!$dara.isNull(request.originalSessionId)) {
|
|
9439
|
+
body["OriginalSessionId"] = request.originalSessionId;
|
|
9440
|
+
}
|
|
9441
|
+
if (!$dara.isNull(request.prompt)) {
|
|
9442
|
+
body["Prompt"] = request.prompt;
|
|
9443
|
+
}
|
|
9444
|
+
if (!$dara.isNull(request.taskId)) {
|
|
9445
|
+
body["TaskId"] = request.taskId;
|
|
9446
|
+
}
|
|
9447
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
9448
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
9449
|
+
}
|
|
9450
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9451
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
9452
|
+
});
|
|
9453
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
9454
|
+
action: "RunSearchGeneration",
|
|
9455
|
+
version: "2023-08-01",
|
|
9456
|
+
protocol: "HTTPS",
|
|
9457
|
+
pathname: "/",
|
|
9458
|
+
method: "POST",
|
|
9459
|
+
authType: "AK",
|
|
9460
|
+
style: "RPC",
|
|
9461
|
+
reqBodyType: "formData",
|
|
9462
|
+
bodyType: "json",
|
|
9463
|
+
});
|
|
9464
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunSearchGenerationResponse({}));
|
|
9465
|
+
}
|
|
9466
|
+
/**
|
|
9467
|
+
* AI妙搜-智能搜索生成
|
|
9468
|
+
*
|
|
9469
|
+
* @param request - RunSearchGenerationRequest
|
|
9470
|
+
* @returns RunSearchGenerationResponse
|
|
9471
|
+
*/
|
|
9472
|
+
async runSearchGeneration(request) {
|
|
9055
9473
|
let runtime = new $dara.RuntimeOptions({});
|
|
9056
9474
|
return await this.runSearchGenerationWithOptions(request, runtime);
|
|
9057
9475
|
}
|
|
@@ -9064,7 +9482,7 @@ class Client extends openapi_core_1.default {
|
|
|
9064
9482
|
*/
|
|
9065
9483
|
runSearchSimilarArticlesWithSSE(tmpReq, runtime) {
|
|
9066
9484
|
return __asyncGenerator(this, arguments, function* runSearchSimilarArticlesWithSSE_1() {
|
|
9067
|
-
var _a,
|
|
9485
|
+
var _a, e_24, _b, _c;
|
|
9068
9486
|
tmpReq.validate();
|
|
9069
9487
|
let request = new $_model.RunSearchSimilarArticlesShrinkRequest({});
|
|
9070
9488
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -9103,8 +9521,8 @@ class Client extends openapi_core_1.default {
|
|
|
9103
9521
|
});
|
|
9104
9522
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9105
9523
|
try {
|
|
9106
|
-
for (var _d = true,
|
|
9107
|
-
_c =
|
|
9524
|
+
for (var _d = true, sseResp_24 = __asyncValues(sseResp), sseResp_24_1; sseResp_24_1 = yield __await(sseResp_24.next()), _a = sseResp_24_1.done, !_a; _d = true) {
|
|
9525
|
+
_c = sseResp_24_1.value;
|
|
9108
9526
|
_d = false;
|
|
9109
9527
|
let resp = _c;
|
|
9110
9528
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9115,12 +9533,12 @@ class Client extends openapi_core_1.default {
|
|
|
9115
9533
|
}, new $_model.RunSearchSimilarArticlesResponse({})));
|
|
9116
9534
|
}
|
|
9117
9535
|
}
|
|
9118
|
-
catch (
|
|
9536
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
|
9119
9537
|
finally {
|
|
9120
9538
|
try {
|
|
9121
|
-
if (!_d && !_a && (_b =
|
|
9539
|
+
if (!_d && !_a && (_b = sseResp_24.return)) yield __await(_b.call(sseResp_24));
|
|
9122
9540
|
}
|
|
9123
|
-
finally { if (
|
|
9541
|
+
finally { if (e_24) throw e_24.error; }
|
|
9124
9542
|
}
|
|
9125
9543
|
});
|
|
9126
9544
|
}
|
|
@@ -9189,7 +9607,7 @@ class Client extends openapi_core_1.default {
|
|
|
9189
9607
|
*/
|
|
9190
9608
|
runStepByStepWritingWithSSE(tmpReq, runtime) {
|
|
9191
9609
|
return __asyncGenerator(this, arguments, function* runStepByStepWritingWithSSE_1() {
|
|
9192
|
-
var _a,
|
|
9610
|
+
var _a, e_25, _b, _c;
|
|
9193
9611
|
tmpReq.validate();
|
|
9194
9612
|
let request = new $_model.RunStepByStepWritingShrinkRequest({});
|
|
9195
9613
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -9237,8 +9655,8 @@ class Client extends openapi_core_1.default {
|
|
|
9237
9655
|
});
|
|
9238
9656
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9239
9657
|
try {
|
|
9240
|
-
for (var _d = true,
|
|
9241
|
-
_c =
|
|
9658
|
+
for (var _d = true, sseResp_25 = __asyncValues(sseResp), sseResp_25_1; sseResp_25_1 = yield __await(sseResp_25.next()), _a = sseResp_25_1.done, !_a; _d = true) {
|
|
9659
|
+
_c = sseResp_25_1.value;
|
|
9242
9660
|
_d = false;
|
|
9243
9661
|
let resp = _c;
|
|
9244
9662
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9249,12 +9667,12 @@ class Client extends openapi_core_1.default {
|
|
|
9249
9667
|
}, new $_model.RunStepByStepWritingResponse({})));
|
|
9250
9668
|
}
|
|
9251
9669
|
}
|
|
9252
|
-
catch (
|
|
9670
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
|
9253
9671
|
finally {
|
|
9254
9672
|
try {
|
|
9255
|
-
if (!_d && !_a && (_b =
|
|
9673
|
+
if (!_d && !_a && (_b = sseResp_25.return)) yield __await(_b.call(sseResp_25));
|
|
9256
9674
|
}
|
|
9257
|
-
finally { if (
|
|
9675
|
+
finally { if (e_25) throw e_25.error; }
|
|
9258
9676
|
}
|
|
9259
9677
|
});
|
|
9260
9678
|
}
|
|
@@ -9332,7 +9750,7 @@ class Client extends openapi_core_1.default {
|
|
|
9332
9750
|
*/
|
|
9333
9751
|
runStyleFeatureAnalysisWithSSE(tmpReq, runtime) {
|
|
9334
9752
|
return __asyncGenerator(this, arguments, function* runStyleFeatureAnalysisWithSSE_1() {
|
|
9335
|
-
var _a,
|
|
9753
|
+
var _a, e_26, _b, _c;
|
|
9336
9754
|
tmpReq.validate();
|
|
9337
9755
|
let request = new $_model.RunStyleFeatureAnalysisShrinkRequest({});
|
|
9338
9756
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -9368,8 +9786,8 @@ class Client extends openapi_core_1.default {
|
|
|
9368
9786
|
});
|
|
9369
9787
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9370
9788
|
try {
|
|
9371
|
-
for (var _d = true,
|
|
9372
|
-
_c =
|
|
9789
|
+
for (var _d = true, sseResp_26 = __asyncValues(sseResp), sseResp_26_1; sseResp_26_1 = yield __await(sseResp_26.next()), _a = sseResp_26_1.done, !_a; _d = true) {
|
|
9790
|
+
_c = sseResp_26_1.value;
|
|
9373
9791
|
_d = false;
|
|
9374
9792
|
let resp = _c;
|
|
9375
9793
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9380,12 +9798,12 @@ class Client extends openapi_core_1.default {
|
|
|
9380
9798
|
}, new $_model.RunStyleFeatureAnalysisResponse({})));
|
|
9381
9799
|
}
|
|
9382
9800
|
}
|
|
9383
|
-
catch (
|
|
9801
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
|
9384
9802
|
finally {
|
|
9385
9803
|
try {
|
|
9386
|
-
if (!_d && !_a && (_b =
|
|
9804
|
+
if (!_d && !_a && (_b = sseResp_26.return)) yield __await(_b.call(sseResp_26));
|
|
9387
9805
|
}
|
|
9388
|
-
finally { if (
|
|
9806
|
+
finally { if (e_26) throw e_26.error; }
|
|
9389
9807
|
}
|
|
9390
9808
|
});
|
|
9391
9809
|
}
|
|
@@ -9451,7 +9869,7 @@ class Client extends openapi_core_1.default {
|
|
|
9451
9869
|
*/
|
|
9452
9870
|
runSummaryGenerateWithSSE(request, runtime) {
|
|
9453
9871
|
return __asyncGenerator(this, arguments, function* runSummaryGenerateWithSSE_1() {
|
|
9454
|
-
var _a,
|
|
9872
|
+
var _a, e_27, _b, _c;
|
|
9455
9873
|
request.validate();
|
|
9456
9874
|
let body = {};
|
|
9457
9875
|
if (!$dara.isNull(request.content)) {
|
|
@@ -9479,8 +9897,8 @@ class Client extends openapi_core_1.default {
|
|
|
9479
9897
|
});
|
|
9480
9898
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9481
9899
|
try {
|
|
9482
|
-
for (var _d = true,
|
|
9483
|
-
_c =
|
|
9900
|
+
for (var _d = true, sseResp_27 = __asyncValues(sseResp), sseResp_27_1; sseResp_27_1 = yield __await(sseResp_27.next()), _a = sseResp_27_1.done, !_a; _d = true) {
|
|
9901
|
+
_c = sseResp_27_1.value;
|
|
9484
9902
|
_d = false;
|
|
9485
9903
|
let resp = _c;
|
|
9486
9904
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9491,12 +9909,12 @@ class Client extends openapi_core_1.default {
|
|
|
9491
9909
|
}, new $_model.RunSummaryGenerateResponse({})));
|
|
9492
9910
|
}
|
|
9493
9911
|
}
|
|
9494
|
-
catch (
|
|
9912
|
+
catch (e_27_1) { e_27 = { error: e_27_1 }; }
|
|
9495
9913
|
finally {
|
|
9496
9914
|
try {
|
|
9497
|
-
if (!_d && !_a && (_b =
|
|
9915
|
+
if (!_d && !_a && (_b = sseResp_27.return)) yield __await(_b.call(sseResp_27));
|
|
9498
9916
|
}
|
|
9499
|
-
finally { if (
|
|
9917
|
+
finally { if (e_27) throw e_27.error; }
|
|
9500
9918
|
}
|
|
9501
9919
|
});
|
|
9502
9920
|
}
|
|
@@ -9554,7 +9972,7 @@ class Client extends openapi_core_1.default {
|
|
|
9554
9972
|
*/
|
|
9555
9973
|
runTextPolishingWithSSE(request, runtime) {
|
|
9556
9974
|
return __asyncGenerator(this, arguments, function* runTextPolishingWithSSE_1() {
|
|
9557
|
-
var _a,
|
|
9975
|
+
var _a, e_28, _b, _c;
|
|
9558
9976
|
request.validate();
|
|
9559
9977
|
let body = {};
|
|
9560
9978
|
if (!$dara.isNull(request.content)) {
|
|
@@ -9582,8 +10000,8 @@ class Client extends openapi_core_1.default {
|
|
|
9582
10000
|
});
|
|
9583
10001
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9584
10002
|
try {
|
|
9585
|
-
for (var _d = true,
|
|
9586
|
-
_c =
|
|
10003
|
+
for (var _d = true, sseResp_28 = __asyncValues(sseResp), sseResp_28_1; sseResp_28_1 = yield __await(sseResp_28.next()), _a = sseResp_28_1.done, !_a; _d = true) {
|
|
10004
|
+
_c = sseResp_28_1.value;
|
|
9587
10005
|
_d = false;
|
|
9588
10006
|
let resp = _c;
|
|
9589
10007
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9594,12 +10012,12 @@ class Client extends openapi_core_1.default {
|
|
|
9594
10012
|
}, new $_model.RunTextPolishingResponse({})));
|
|
9595
10013
|
}
|
|
9596
10014
|
}
|
|
9597
|
-
catch (
|
|
10015
|
+
catch (e_28_1) { e_28 = { error: e_28_1 }; }
|
|
9598
10016
|
finally {
|
|
9599
10017
|
try {
|
|
9600
|
-
if (!_d && !_a && (_b =
|
|
10018
|
+
if (!_d && !_a && (_b = sseResp_28.return)) yield __await(_b.call(sseResp_28));
|
|
9601
10019
|
}
|
|
9602
|
-
finally { if (
|
|
10020
|
+
finally { if (e_28) throw e_28.error; }
|
|
9603
10021
|
}
|
|
9604
10022
|
});
|
|
9605
10023
|
}
|
|
@@ -9657,7 +10075,7 @@ class Client extends openapi_core_1.default {
|
|
|
9657
10075
|
*/
|
|
9658
10076
|
runTitleGenerationWithSSE(tmpReq, runtime) {
|
|
9659
10077
|
return __asyncGenerator(this, arguments, function* runTitleGenerationWithSSE_1() {
|
|
9660
|
-
var _a,
|
|
10078
|
+
var _a, e_29, _b, _c;
|
|
9661
10079
|
tmpReq.validate();
|
|
9662
10080
|
let request = new $_model.RunTitleGenerationShrinkRequest({});
|
|
9663
10081
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -9699,8 +10117,8 @@ class Client extends openapi_core_1.default {
|
|
|
9699
10117
|
});
|
|
9700
10118
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9701
10119
|
try {
|
|
9702
|
-
for (var _d = true,
|
|
9703
|
-
_c =
|
|
10120
|
+
for (var _d = true, sseResp_29 = __asyncValues(sseResp), sseResp_29_1; sseResp_29_1 = yield __await(sseResp_29.next()), _a = sseResp_29_1.done, !_a; _d = true) {
|
|
10121
|
+
_c = sseResp_29_1.value;
|
|
9704
10122
|
_d = false;
|
|
9705
10123
|
let resp = _c;
|
|
9706
10124
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9711,12 +10129,12 @@ class Client extends openapi_core_1.default {
|
|
|
9711
10129
|
}, new $_model.RunTitleGenerationResponse({})));
|
|
9712
10130
|
}
|
|
9713
10131
|
}
|
|
9714
|
-
catch (
|
|
10132
|
+
catch (e_29_1) { e_29 = { error: e_29_1 }; }
|
|
9715
10133
|
finally {
|
|
9716
10134
|
try {
|
|
9717
|
-
if (!_d && !_a && (_b =
|
|
10135
|
+
if (!_d && !_a && (_b = sseResp_29.return)) yield __await(_b.call(sseResp_29));
|
|
9718
10136
|
}
|
|
9719
|
-
finally { if (
|
|
10137
|
+
finally { if (e_29) throw e_29.error; }
|
|
9720
10138
|
}
|
|
9721
10139
|
});
|
|
9722
10140
|
}
|
|
@@ -9779,6 +10197,119 @@ class Client extends openapi_core_1.default {
|
|
|
9779
10197
|
let runtime = new $dara.RuntimeOptions({});
|
|
9780
10198
|
return await this.runTitleGenerationWithOptions(request, runtime);
|
|
9781
10199
|
}
|
|
10200
|
+
/**
|
|
10201
|
+
* 妙策选题策划聚合
|
|
10202
|
+
*
|
|
10203
|
+
* @param tmpReq - RunTopicSelectionMergeRequest
|
|
10204
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10205
|
+
* @returns RunTopicSelectionMergeResponse
|
|
10206
|
+
*/
|
|
10207
|
+
runTopicSelectionMergeWithSSE(tmpReq, runtime) {
|
|
10208
|
+
return __asyncGenerator(this, arguments, function* runTopicSelectionMergeWithSSE_1() {
|
|
10209
|
+
var _a, e_30, _b, _c;
|
|
10210
|
+
tmpReq.validate();
|
|
10211
|
+
let request = new $_model.RunTopicSelectionMergeShrinkRequest({});
|
|
10212
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
10213
|
+
if (!$dara.isNull(tmpReq.topics)) {
|
|
10214
|
+
request.topicsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.topics, "Topics", "json");
|
|
10215
|
+
}
|
|
10216
|
+
let body = {};
|
|
10217
|
+
if (!$dara.isNull(request.prompt)) {
|
|
10218
|
+
body["Prompt"] = request.prompt;
|
|
10219
|
+
}
|
|
10220
|
+
if (!$dara.isNull(request.topicsShrink)) {
|
|
10221
|
+
body["Topics"] = request.topicsShrink;
|
|
10222
|
+
}
|
|
10223
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
10224
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
10225
|
+
}
|
|
10226
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10227
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
10228
|
+
});
|
|
10229
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10230
|
+
action: "RunTopicSelectionMerge",
|
|
10231
|
+
version: "2023-08-01",
|
|
10232
|
+
protocol: "HTTPS",
|
|
10233
|
+
pathname: "/",
|
|
10234
|
+
method: "POST",
|
|
10235
|
+
authType: "AK",
|
|
10236
|
+
style: "RPC",
|
|
10237
|
+
reqBodyType: "formData",
|
|
10238
|
+
bodyType: "json",
|
|
10239
|
+
});
|
|
10240
|
+
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
10241
|
+
try {
|
|
10242
|
+
for (var _d = true, sseResp_30 = __asyncValues(sseResp), sseResp_30_1; sseResp_30_1 = yield __await(sseResp_30.next()), _a = sseResp_30_1.done, !_a; _d = true) {
|
|
10243
|
+
_c = sseResp_30_1.value;
|
|
10244
|
+
_d = false;
|
|
10245
|
+
let resp = _c;
|
|
10246
|
+
let data = JSON.parse(resp.event.data);
|
|
10247
|
+
yield yield __await($dara.cast({
|
|
10248
|
+
statusCode: resp.statusCode,
|
|
10249
|
+
headers: resp.headers,
|
|
10250
|
+
body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
|
|
10251
|
+
}, new $_model.RunTopicSelectionMergeResponse({})));
|
|
10252
|
+
}
|
|
10253
|
+
}
|
|
10254
|
+
catch (e_30_1) { e_30 = { error: e_30_1 }; }
|
|
10255
|
+
finally {
|
|
10256
|
+
try {
|
|
10257
|
+
if (!_d && !_a && (_b = sseResp_30.return)) yield __await(_b.call(sseResp_30));
|
|
10258
|
+
}
|
|
10259
|
+
finally { if (e_30) throw e_30.error; }
|
|
10260
|
+
}
|
|
10261
|
+
});
|
|
10262
|
+
}
|
|
10263
|
+
/**
|
|
10264
|
+
* 妙策选题策划聚合
|
|
10265
|
+
*
|
|
10266
|
+
* @param tmpReq - RunTopicSelectionMergeRequest
|
|
10267
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10268
|
+
* @returns RunTopicSelectionMergeResponse
|
|
10269
|
+
*/
|
|
10270
|
+
async runTopicSelectionMergeWithOptions(tmpReq, runtime) {
|
|
10271
|
+
tmpReq.validate();
|
|
10272
|
+
let request = new $_model.RunTopicSelectionMergeShrinkRequest({});
|
|
10273
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
10274
|
+
if (!$dara.isNull(tmpReq.topics)) {
|
|
10275
|
+
request.topicsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.topics, "Topics", "json");
|
|
10276
|
+
}
|
|
10277
|
+
let body = {};
|
|
10278
|
+
if (!$dara.isNull(request.prompt)) {
|
|
10279
|
+
body["Prompt"] = request.prompt;
|
|
10280
|
+
}
|
|
10281
|
+
if (!$dara.isNull(request.topicsShrink)) {
|
|
10282
|
+
body["Topics"] = request.topicsShrink;
|
|
10283
|
+
}
|
|
10284
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
10285
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
10286
|
+
}
|
|
10287
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10288
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
10289
|
+
});
|
|
10290
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10291
|
+
action: "RunTopicSelectionMerge",
|
|
10292
|
+
version: "2023-08-01",
|
|
10293
|
+
protocol: "HTTPS",
|
|
10294
|
+
pathname: "/",
|
|
10295
|
+
method: "POST",
|
|
10296
|
+
authType: "AK",
|
|
10297
|
+
style: "RPC",
|
|
10298
|
+
reqBodyType: "formData",
|
|
10299
|
+
bodyType: "json",
|
|
10300
|
+
});
|
|
10301
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunTopicSelectionMergeResponse({}));
|
|
10302
|
+
}
|
|
10303
|
+
/**
|
|
10304
|
+
* 妙策选题策划聚合
|
|
10305
|
+
*
|
|
10306
|
+
* @param request - RunTopicSelectionMergeRequest
|
|
10307
|
+
* @returns RunTopicSelectionMergeResponse
|
|
10308
|
+
*/
|
|
10309
|
+
async runTopicSelectionMerge(request) {
|
|
10310
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10311
|
+
return await this.runTopicSelectionMergeWithOptions(request, runtime);
|
|
10312
|
+
}
|
|
9782
10313
|
/**
|
|
9783
10314
|
* AI妙笔-创作-中英文翻译
|
|
9784
10315
|
*
|
|
@@ -9788,7 +10319,7 @@ class Client extends openapi_core_1.default {
|
|
|
9788
10319
|
*/
|
|
9789
10320
|
runTranslateGenerationWithSSE(tmpReq, runtime) {
|
|
9790
10321
|
return __asyncGenerator(this, arguments, function* runTranslateGenerationWithSSE_1() {
|
|
9791
|
-
var _a,
|
|
10322
|
+
var _a, e_31, _b, _c;
|
|
9792
10323
|
tmpReq.validate();
|
|
9793
10324
|
let request = new $_model.RunTranslateGenerationShrinkRequest({});
|
|
9794
10325
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -9824,8 +10355,8 @@ class Client extends openapi_core_1.default {
|
|
|
9824
10355
|
});
|
|
9825
10356
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9826
10357
|
try {
|
|
9827
|
-
for (var _d = true,
|
|
9828
|
-
_c =
|
|
10358
|
+
for (var _d = true, sseResp_31 = __asyncValues(sseResp), sseResp_31_1; sseResp_31_1 = yield __await(sseResp_31.next()), _a = sseResp_31_1.done, !_a; _d = true) {
|
|
10359
|
+
_c = sseResp_31_1.value;
|
|
9829
10360
|
_d = false;
|
|
9830
10361
|
let resp = _c;
|
|
9831
10362
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9836,12 +10367,12 @@ class Client extends openapi_core_1.default {
|
|
|
9836
10367
|
}, new $_model.RunTranslateGenerationResponse({})));
|
|
9837
10368
|
}
|
|
9838
10369
|
}
|
|
9839
|
-
catch (
|
|
10370
|
+
catch (e_31_1) { e_31 = { error: e_31_1 }; }
|
|
9840
10371
|
finally {
|
|
9841
10372
|
try {
|
|
9842
|
-
if (!_d && !_a && (_b =
|
|
10373
|
+
if (!_d && !_a && (_b = sseResp_31.return)) yield __await(_b.call(sseResp_31));
|
|
9843
10374
|
}
|
|
9844
|
-
finally { if (
|
|
10375
|
+
finally { if (e_31) throw e_31.error; }
|
|
9845
10376
|
}
|
|
9846
10377
|
});
|
|
9847
10378
|
}
|
|
@@ -9907,7 +10438,7 @@ class Client extends openapi_core_1.default {
|
|
|
9907
10438
|
*/
|
|
9908
10439
|
runVideoScriptGenerateWithSSE(request, runtime) {
|
|
9909
10440
|
return __asyncGenerator(this, arguments, function* runVideoScriptGenerateWithSSE_1() {
|
|
9910
|
-
var _a,
|
|
10441
|
+
var _a, e_32, _b, _c;
|
|
9911
10442
|
request.validate();
|
|
9912
10443
|
let body = {};
|
|
9913
10444
|
if (!$dara.isNull(request.language)) {
|
|
@@ -9944,8 +10475,8 @@ class Client extends openapi_core_1.default {
|
|
|
9944
10475
|
});
|
|
9945
10476
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
9946
10477
|
try {
|
|
9947
|
-
for (var _d = true,
|
|
9948
|
-
_c =
|
|
10478
|
+
for (var _d = true, sseResp_32 = __asyncValues(sseResp), sseResp_32_1; sseResp_32_1 = yield __await(sseResp_32.next()), _a = sseResp_32_1.done, !_a; _d = true) {
|
|
10479
|
+
_c = sseResp_32_1.value;
|
|
9949
10480
|
_d = false;
|
|
9950
10481
|
let resp = _c;
|
|
9951
10482
|
let data = JSON.parse(resp.event.data);
|
|
@@ -9956,12 +10487,12 @@ class Client extends openapi_core_1.default {
|
|
|
9956
10487
|
}, new $_model.RunVideoScriptGenerateResponse({})));
|
|
9957
10488
|
}
|
|
9958
10489
|
}
|
|
9959
|
-
catch (
|
|
10490
|
+
catch (e_32_1) { e_32 = { error: e_32_1 }; }
|
|
9960
10491
|
finally {
|
|
9961
10492
|
try {
|
|
9962
|
-
if (!_d && !_a && (_b =
|
|
10493
|
+
if (!_d && !_a && (_b = sseResp_32.return)) yield __await(_b.call(sseResp_32));
|
|
9963
10494
|
}
|
|
9964
|
-
finally { if (
|
|
10495
|
+
finally { if (e_32) throw e_32.error; }
|
|
9965
10496
|
}
|
|
9966
10497
|
});
|
|
9967
10498
|
}
|
|
@@ -10028,7 +10559,7 @@ class Client extends openapi_core_1.default {
|
|
|
10028
10559
|
*/
|
|
10029
10560
|
runWriteToneGenerationWithSSE(tmpReq, runtime) {
|
|
10030
10561
|
return __asyncGenerator(this, arguments, function* runWriteToneGenerationWithSSE_1() {
|
|
10031
|
-
var _a,
|
|
10562
|
+
var _a, e_33, _b, _c;
|
|
10032
10563
|
tmpReq.validate();
|
|
10033
10564
|
let request = new $_model.RunWriteToneGenerationShrinkRequest({});
|
|
10034
10565
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -10064,8 +10595,8 @@ class Client extends openapi_core_1.default {
|
|
|
10064
10595
|
});
|
|
10065
10596
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
10066
10597
|
try {
|
|
10067
|
-
for (var _d = true,
|
|
10068
|
-
_c =
|
|
10598
|
+
for (var _d = true, sseResp_33 = __asyncValues(sseResp), sseResp_33_1; sseResp_33_1 = yield __await(sseResp_33.next()), _a = sseResp_33_1.done, !_a; _d = true) {
|
|
10599
|
+
_c = sseResp_33_1.value;
|
|
10069
10600
|
_d = false;
|
|
10070
10601
|
let resp = _c;
|
|
10071
10602
|
let data = JSON.parse(resp.event.data);
|
|
@@ -10076,12 +10607,12 @@ class Client extends openapi_core_1.default {
|
|
|
10076
10607
|
}, new $_model.RunWriteToneGenerationResponse({})));
|
|
10077
10608
|
}
|
|
10078
10609
|
}
|
|
10079
|
-
catch (
|
|
10610
|
+
catch (e_33_1) { e_33 = { error: e_33_1 }; }
|
|
10080
10611
|
finally {
|
|
10081
10612
|
try {
|
|
10082
|
-
if (!_d && !_a && (_b =
|
|
10613
|
+
if (!_d && !_a && (_b = sseResp_33.return)) yield __await(_b.call(sseResp_33));
|
|
10083
10614
|
}
|
|
10084
|
-
finally { if (
|
|
10615
|
+
finally { if (e_33) throw e_33.error; }
|
|
10085
10616
|
}
|
|
10086
10617
|
});
|
|
10087
10618
|
}
|
|
@@ -10147,7 +10678,7 @@ class Client extends openapi_core_1.default {
|
|
|
10147
10678
|
*/
|
|
10148
10679
|
runWritingWithSSE(tmpReq, runtime) {
|
|
10149
10680
|
return __asyncGenerator(this, arguments, function* runWritingWithSSE_1() {
|
|
10150
|
-
var _a,
|
|
10681
|
+
var _a, e_34, _b, _c;
|
|
10151
10682
|
tmpReq.validate();
|
|
10152
10683
|
let request = new $_model.RunWritingShrinkRequest({});
|
|
10153
10684
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -10195,8 +10726,8 @@ class Client extends openapi_core_1.default {
|
|
|
10195
10726
|
});
|
|
10196
10727
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
10197
10728
|
try {
|
|
10198
|
-
for (var _d = true,
|
|
10199
|
-
_c =
|
|
10729
|
+
for (var _d = true, sseResp_34 = __asyncValues(sseResp), sseResp_34_1; sseResp_34_1 = yield __await(sseResp_34.next()), _a = sseResp_34_1.done, !_a; _d = true) {
|
|
10730
|
+
_c = sseResp_34_1.value;
|
|
10200
10731
|
_d = false;
|
|
10201
10732
|
let resp = _c;
|
|
10202
10733
|
let data = JSON.parse(resp.event.data);
|
|
@@ -10207,12 +10738,12 @@ class Client extends openapi_core_1.default {
|
|
|
10207
10738
|
}, new $_model.RunWritingResponse({})));
|
|
10208
10739
|
}
|
|
10209
10740
|
}
|
|
10210
|
-
catch (
|
|
10741
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
10211
10742
|
finally {
|
|
10212
10743
|
try {
|
|
10213
|
-
if (!_d && !_a && (_b =
|
|
10744
|
+
if (!_d && !_a && (_b = sseResp_34.return)) yield __await(_b.call(sseResp_34));
|
|
10214
10745
|
}
|
|
10215
|
-
finally { if (
|
|
10746
|
+
finally { if (e_34) throw e_34.error; }
|
|
10216
10747
|
}
|
|
10217
10748
|
});
|
|
10218
10749
|
}
|
|
@@ -10290,7 +10821,7 @@ class Client extends openapi_core_1.default {
|
|
|
10290
10821
|
*/
|
|
10291
10822
|
runWritingV2WithSSE(tmpReq, runtime) {
|
|
10292
10823
|
return __asyncGenerator(this, arguments, function* runWritingV2WithSSE_1() {
|
|
10293
|
-
var _a,
|
|
10824
|
+
var _a, e_35, _b, _c;
|
|
10294
10825
|
tmpReq.validate();
|
|
10295
10826
|
let request = new $_model.RunWritingV2ShrinkRequest({});
|
|
10296
10827
|
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
@@ -10401,8 +10932,8 @@ class Client extends openapi_core_1.default {
|
|
|
10401
10932
|
});
|
|
10402
10933
|
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
10403
10934
|
try {
|
|
10404
|
-
for (var _d = true,
|
|
10405
|
-
_c =
|
|
10935
|
+
for (var _d = true, sseResp_35 = __asyncValues(sseResp), sseResp_35_1; sseResp_35_1 = yield __await(sseResp_35.next()), _a = sseResp_35_1.done, !_a; _d = true) {
|
|
10936
|
+
_c = sseResp_35_1.value;
|
|
10406
10937
|
_d = false;
|
|
10407
10938
|
let resp = _c;
|
|
10408
10939
|
let data = JSON.parse(resp.event.data);
|
|
@@ -10413,12 +10944,12 @@ class Client extends openapi_core_1.default {
|
|
|
10413
10944
|
}, new $_model.RunWritingV2Response({})));
|
|
10414
10945
|
}
|
|
10415
10946
|
}
|
|
10416
|
-
catch (
|
|
10947
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
10417
10948
|
finally {
|
|
10418
10949
|
try {
|
|
10419
|
-
if (!_d && !_a && (_b =
|
|
10950
|
+
if (!_d && !_a && (_b = sseResp_35.return)) yield __await(_b.call(sseResp_35));
|
|
10420
10951
|
}
|
|
10421
|
-
finally { if (
|
|
10952
|
+
finally { if (e_35) throw e_35.error; }
|
|
10422
10953
|
}
|
|
10423
10954
|
});
|
|
10424
10955
|
}
|
|
@@ -11926,6 +12457,51 @@ class Client extends openapi_core_1.default {
|
|
|
11926
12457
|
let runtime = new $dara.RuntimeOptions({});
|
|
11927
12458
|
return await this.updateDatasetDocumentWithOptions(request, runtime);
|
|
11928
12459
|
}
|
|
12460
|
+
/**
|
|
12461
|
+
* 通用配置-更新
|
|
12462
|
+
*
|
|
12463
|
+
* @param request - UpdateGeneralConfigRequest
|
|
12464
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12465
|
+
* @returns UpdateGeneralConfigResponse
|
|
12466
|
+
*/
|
|
12467
|
+
async updateGeneralConfigWithOptions(request, runtime) {
|
|
12468
|
+
request.validate();
|
|
12469
|
+
let body = {};
|
|
12470
|
+
if (!$dara.isNull(request.configKey)) {
|
|
12471
|
+
body["ConfigKey"] = request.configKey;
|
|
12472
|
+
}
|
|
12473
|
+
if (!$dara.isNull(request.configValue)) {
|
|
12474
|
+
body["ConfigValue"] = request.configValue;
|
|
12475
|
+
}
|
|
12476
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
12477
|
+
body["WorkspaceId"] = request.workspaceId;
|
|
12478
|
+
}
|
|
12479
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
12480
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
12481
|
+
});
|
|
12482
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
12483
|
+
action: "UpdateGeneralConfig",
|
|
12484
|
+
version: "2023-08-01",
|
|
12485
|
+
protocol: "HTTPS",
|
|
12486
|
+
pathname: "/",
|
|
12487
|
+
method: "POST",
|
|
12488
|
+
authType: "AK",
|
|
12489
|
+
style: "RPC",
|
|
12490
|
+
reqBodyType: "formData",
|
|
12491
|
+
bodyType: "json",
|
|
12492
|
+
});
|
|
12493
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateGeneralConfigResponse({}));
|
|
12494
|
+
}
|
|
12495
|
+
/**
|
|
12496
|
+
* 通用配置-更新
|
|
12497
|
+
*
|
|
12498
|
+
* @param request - UpdateGeneralConfigRequest
|
|
12499
|
+
* @returns UpdateGeneralConfigResponse
|
|
12500
|
+
*/
|
|
12501
|
+
async updateGeneralConfig(request) {
|
|
12502
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
12503
|
+
return await this.updateGeneralConfigWithOptions(request, runtime);
|
|
12504
|
+
}
|
|
11929
12505
|
/**
|
|
11930
12506
|
* 文档管理-更新。
|
|
11931
12507
|
*
|