@alicloud/aimiaobi20230801 1.32.2 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/client.d.ts +403 -4
  2. package/dist/client.js +2807 -20
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddAuditTermsRequest.d.ts +1 -0
  5. package/dist/models/AddAuditTermsRequest.js +5 -0
  6. package/dist/models/AddAuditTermsRequest.js.map +1 -1
  7. package/dist/models/AddAuditTermsResponseBody.d.ts +22 -0
  8. package/dist/models/AddAuditTermsResponseBody.js +25 -1
  9. package/dist/models/AddAuditTermsResponseBody.js.map +1 -1
  10. package/dist/models/AddAuditTermsShrinkRequest.d.ts +37 -0
  11. package/dist/models/AddAuditTermsShrinkRequest.js +66 -0
  12. package/dist/models/AddAuditTermsShrinkRequest.js.map +1 -0
  13. package/dist/models/CancelDeepWriteTaskRequest.d.ts +23 -0
  14. package/dist/models/CancelDeepWriteTaskRequest.js +60 -0
  15. package/dist/models/CancelDeepWriteTaskRequest.js.map +1 -0
  16. package/dist/models/CancelDeepWriteTaskResponse.d.ts +19 -0
  17. package/dist/models/CancelDeepWriteTaskResponse.js +69 -0
  18. package/dist/models/CancelDeepWriteTaskResponse.js.map +1 -0
  19. package/dist/models/CancelDeepWriteTaskResponseBody.d.ts +65 -0
  20. package/dist/models/CancelDeepWriteTaskResponseBody.js +94 -0
  21. package/dist/models/CancelDeepWriteTaskResponseBody.js.map +1 -0
  22. package/dist/models/DeleteFactAuditUrlRequest.d.ts +29 -0
  23. package/dist/models/DeleteFactAuditUrlRequest.js +60 -0
  24. package/dist/models/DeleteFactAuditUrlRequest.js.map +1 -0
  25. package/dist/models/DeleteFactAuditUrlResponse.d.ts +19 -0
  26. package/dist/models/DeleteFactAuditUrlResponse.js +69 -0
  27. package/dist/models/DeleteFactAuditUrlResponse.js.map +1 -0
  28. package/dist/models/DeleteFactAuditUrlResponseBody.d.ts +46 -0
  29. package/dist/models/DeleteFactAuditUrlResponseBody.js +68 -0
  30. package/dist/models/DeleteFactAuditUrlResponseBody.js.map +1 -0
  31. package/dist/models/EditAuditTermsRequest.d.ts +1 -0
  32. package/dist/models/EditAuditTermsRequest.js +5 -0
  33. package/dist/models/EditAuditTermsRequest.js.map +1 -1
  34. package/dist/models/EditAuditTermsShrinkRequest.d.ts +42 -0
  35. package/dist/models/EditAuditTermsShrinkRequest.js +68 -0
  36. package/dist/models/EditAuditTermsShrinkRequest.js.map +1 -0
  37. package/dist/models/GetDeepWriteTaskRequest.d.ts +23 -0
  38. package/dist/models/GetDeepWriteTaskRequest.js +60 -0
  39. package/dist/models/GetDeepWriteTaskRequest.js.map +1 -0
  40. package/dist/models/GetDeepWriteTaskResponse.d.ts +19 -0
  41. package/dist/models/GetDeepWriteTaskResponse.js +69 -0
  42. package/dist/models/GetDeepWriteTaskResponse.js.map +1 -0
  43. package/dist/models/GetDeepWriteTaskResponseBody.d.ts +65 -0
  44. package/dist/models/GetDeepWriteTaskResponseBody.js +94 -0
  45. package/dist/models/GetDeepWriteTaskResponseBody.js.map +1 -0
  46. package/dist/models/GetDeepWriteTaskResultRequest.d.ts +23 -0
  47. package/dist/models/GetDeepWriteTaskResultRequest.js +60 -0
  48. package/dist/models/GetDeepWriteTaskResultRequest.js.map +1 -0
  49. package/dist/models/GetDeepWriteTaskResultResponse.d.ts +19 -0
  50. package/dist/models/GetDeepWriteTaskResultResponse.js +69 -0
  51. package/dist/models/GetDeepWriteTaskResultResponse.js.map +1 -0
  52. package/dist/models/GetDeepWriteTaskResultResponseBody.d.ts +60 -0
  53. package/dist/models/GetDeepWriteTaskResultResponseBody.js +92 -0
  54. package/dist/models/GetDeepWriteTaskResultResponseBody.js.map +1 -0
  55. package/dist/models/GetFactAuditUrlRequest.d.ts +21 -0
  56. package/dist/models/GetFactAuditUrlRequest.js +58 -0
  57. package/dist/models/GetFactAuditUrlRequest.js.map +1 -0
  58. package/dist/models/GetFactAuditUrlResponse.d.ts +19 -0
  59. package/dist/models/GetFactAuditUrlResponse.js +69 -0
  60. package/dist/models/GetFactAuditUrlResponse.js.map +1 -0
  61. package/dist/models/GetFactAuditUrlResponseBody.d.ts +46 -0
  62. package/dist/models/GetFactAuditUrlResponseBody.js +71 -0
  63. package/dist/models/GetFactAuditUrlResponseBody.js.map +1 -0
  64. package/dist/models/ListAuditTermsResponseBody.d.ts +1 -0
  65. package/dist/models/ListAuditTermsResponseBody.js +5 -0
  66. package/dist/models/ListAuditTermsResponseBody.js.map +1 -1
  67. package/dist/models/RunDeepWritingRequest.d.ts +31 -0
  68. package/dist/models/RunDeepWritingRequest.js +62 -0
  69. package/dist/models/RunDeepWritingRequest.js.map +1 -0
  70. package/dist/models/RunDeepWritingResponse.d.ts +19 -0
  71. package/dist/models/RunDeepWritingResponse.js +69 -0
  72. package/dist/models/RunDeepWritingResponse.js.map +1 -0
  73. package/dist/models/RunDeepWritingResponseBody.d.ts +201 -0
  74. package/dist/models/RunDeepWritingResponseBody.js +240 -0
  75. package/dist/models/RunDeepWritingResponseBody.js.map +1 -0
  76. package/dist/models/RunVideoScriptGenerateRequest.d.ts +46 -0
  77. package/dist/models/RunVideoScriptGenerateRequest.js +68 -0
  78. package/dist/models/RunVideoScriptGenerateRequest.js.map +1 -0
  79. package/dist/models/RunVideoScriptGenerateResponse.d.ts +19 -0
  80. package/dist/models/RunVideoScriptGenerateResponse.js +69 -0
  81. package/dist/models/RunVideoScriptGenerateResponse.js.map +1 -0
  82. package/dist/models/RunVideoScriptGenerateResponseBody.d.ts +137 -0
  83. package/dist/models/RunVideoScriptGenerateResponseBody.js +176 -0
  84. package/dist/models/RunVideoScriptGenerateResponseBody.js.map +1 -0
  85. package/dist/models/SubmitDeepWriteTaskRequest.d.ts +112 -0
  86. package/dist/models/SubmitDeepWriteTaskRequest.js +188 -0
  87. package/dist/models/SubmitDeepWriteTaskRequest.js.map +1 -0
  88. package/dist/models/SubmitDeepWriteTaskResponse.d.ts +19 -0
  89. package/dist/models/SubmitDeepWriteTaskResponse.js +69 -0
  90. package/dist/models/SubmitDeepWriteTaskResponse.js.map +1 -0
  91. package/dist/models/SubmitDeepWriteTaskResponseBody.d.ts +64 -0
  92. package/dist/models/SubmitDeepWriteTaskResponseBody.js +92 -0
  93. package/dist/models/SubmitDeepWriteTaskResponseBody.js.map +1 -0
  94. package/dist/models/SubmitDeepWriteTaskShrinkRequest.d.ts +29 -0
  95. package/dist/models/SubmitDeepWriteTaskShrinkRequest.js +66 -0
  96. package/dist/models/SubmitDeepWriteTaskShrinkRequest.js.map +1 -0
  97. package/dist/models/SubmitFactAuditUrlRequest.d.ts +29 -0
  98. package/dist/models/SubmitFactAuditUrlRequest.js +60 -0
  99. package/dist/models/SubmitFactAuditUrlRequest.js.map +1 -0
  100. package/dist/models/SubmitFactAuditUrlResponse.d.ts +19 -0
  101. package/dist/models/SubmitFactAuditUrlResponse.js +69 -0
  102. package/dist/models/SubmitFactAuditUrlResponse.js.map +1 -0
  103. package/dist/models/SubmitFactAuditUrlResponseBody.d.ts +46 -0
  104. package/dist/models/SubmitFactAuditUrlResponseBody.js +68 -0
  105. package/dist/models/SubmitFactAuditUrlResponseBody.js.map +1 -0
  106. package/dist/models/model.d.ts +50 -0
  107. package/dist/models/model.js +125 -24
  108. package/dist/models/model.js.map +1 -1
  109. package/package.json +1 -1
  110. package/src/client.ts +3326 -574
  111. package/src/models/AddAuditTermsRequest.ts +6 -0
  112. package/src/models/AddAuditTermsResponseBody.ts +37 -0
  113. package/src/models/AddAuditTermsShrinkRequest.ts +58 -0
  114. package/src/models/CancelDeepWriteTaskRequest.ts +38 -0
  115. package/src/models/CancelDeepWriteTaskResponse.ts +40 -0
  116. package/src/models/CancelDeepWriteTaskResponseBody.ts +105 -0
  117. package/src/models/DeleteFactAuditUrlRequest.ts +44 -0
  118. package/src/models/DeleteFactAuditUrlResponse.ts +40 -0
  119. package/src/models/DeleteFactAuditUrlResponseBody.ts +69 -0
  120. package/src/models/EditAuditTermsRequest.ts +6 -0
  121. package/src/models/EditAuditTermsShrinkRequest.ts +65 -0
  122. package/src/models/GetDeepWriteTaskRequest.ts +38 -0
  123. package/src/models/GetDeepWriteTaskResponse.ts +40 -0
  124. package/src/models/GetDeepWriteTaskResponseBody.ts +105 -0
  125. package/src/models/GetDeepWriteTaskResultRequest.ts +38 -0
  126. package/src/models/GetDeepWriteTaskResultResponse.ts +40 -0
  127. package/src/models/GetDeepWriteTaskResultResponseBody.ts +98 -0
  128. package/src/models/GetFactAuditUrlRequest.ts +34 -0
  129. package/src/models/GetFactAuditUrlResponse.ts +40 -0
  130. package/src/models/GetFactAuditUrlResponseBody.ts +72 -0
  131. package/src/models/ListAuditTermsResponseBody.ts +6 -0
  132. package/src/models/RunDeepWritingRequest.ts +48 -0
  133. package/src/models/RunDeepWritingResponse.ts +40 -0
  134. package/src/models/RunDeepWritingResponseBody.ts +342 -0
  135. package/src/models/RunVideoScriptGenerateRequest.ts +69 -0
  136. package/src/models/RunVideoScriptGenerateResponse.ts +40 -0
  137. package/src/models/RunVideoScriptGenerateResponseBody.ts +232 -0
  138. package/src/models/SubmitDeepWriteTaskRequest.ts +210 -0
  139. package/src/models/SubmitDeepWriteTaskResponse.ts +40 -0
  140. package/src/models/SubmitDeepWriteTaskResponseBody.ts +102 -0
  141. package/src/models/SubmitDeepWriteTaskShrinkRequest.ts +50 -0
  142. package/src/models/SubmitFactAuditUrlRequest.ts +44 -0
  143. package/src/models/SubmitFactAuditUrlResponse.ts +40 -0
  144. package/src/models/SubmitFactAuditUrlResponseBody.ts +69 -0
  145. package/src/models/model.ts +50 -0
package/dist/client.js CHANGED
@@ -35,6 +35,26 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
+ var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
39
+ var __asyncValues = (this && this.__asyncValues) || function (o) {
40
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
41
+ var m = o[Symbol.asyncIterator], i;
42
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
43
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
44
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
45
+ };
46
+ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
47
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
48
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
49
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
50
+ function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
51
+ function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
52
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
53
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
54
+ function fulfill(value) { resume("next", value); }
55
+ function reject(value) { resume("throw", value); }
56
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
57
+ };
38
58
  var __importDefault = (this && this.__importDefault) || function (mod) {
39
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
40
60
  };
@@ -64,13 +84,21 @@ class Client extends openapi_core_1.default {
64
84
  /**
65
85
  * 添加审核自定义词库记录
66
86
  *
67
- * @param request - AddAuditTermsRequest
87
+ * @param tmpReq - AddAuditTermsRequest
68
88
  * @param runtime - runtime options for this request RuntimeOptions
69
89
  * @returns AddAuditTermsResponse
70
90
  */
71
- async addAuditTermsWithOptions(request, runtime) {
72
- request.validate();
91
+ async addAuditTermsWithOptions(tmpReq, runtime) {
92
+ tmpReq.validate();
93
+ let request = new $_model.AddAuditTermsShrinkRequest({});
94
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
95
+ if (!$dara.isNull(tmpReq.exceptionWord)) {
96
+ request.exceptionWordShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.exceptionWord, "ExceptionWord", "json");
97
+ }
73
98
  let body = {};
99
+ if (!$dara.isNull(request.exceptionWordShrink)) {
100
+ body["ExceptionWord"] = request.exceptionWordShrink;
101
+ }
74
102
  if (!$dara.isNull(request.keyword)) {
75
103
  body["Keyword"] = request.keyword;
76
104
  }
@@ -488,6 +516,48 @@ class Client extends openapi_core_1.default {
488
516
  let runtime = new $dara.RuntimeOptions({});
489
517
  return await this.cancelAuditTaskWithOptions(request, runtime);
490
518
  }
519
+ /**
520
+ * 取消深度写作任务
521
+ *
522
+ * @param request - CancelDeepWriteTaskRequest
523
+ * @param runtime - runtime options for this request RuntimeOptions
524
+ * @returns CancelDeepWriteTaskResponse
525
+ */
526
+ async cancelDeepWriteTaskWithOptions(request, runtime) {
527
+ request.validate();
528
+ let body = {};
529
+ if (!$dara.isNull(request.taskId)) {
530
+ body["TaskId"] = request.taskId;
531
+ }
532
+ if (!$dara.isNull(request.workspaceId)) {
533
+ body["WorkspaceId"] = request.workspaceId;
534
+ }
535
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
536
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
537
+ });
538
+ let params = new openapi_core_2.$OpenApiUtil.Params({
539
+ action: "CancelDeepWriteTask",
540
+ version: "2023-08-01",
541
+ protocol: "HTTPS",
542
+ pathname: "/",
543
+ method: "POST",
544
+ authType: "AK",
545
+ style: "RPC",
546
+ reqBodyType: "formData",
547
+ bodyType: "json",
548
+ });
549
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CancelDeepWriteTaskResponse({}));
550
+ }
551
+ /**
552
+ * 取消深度写作任务
553
+ *
554
+ * @param request - CancelDeepWriteTaskRequest
555
+ * @returns CancelDeepWriteTaskResponse
556
+ */
557
+ async cancelDeepWriteTask(request) {
558
+ let runtime = new $dara.RuntimeOptions({});
559
+ return await this.cancelDeepWriteTaskWithOptions(request, runtime);
560
+ }
491
561
  /**
492
562
  * 清除所有干预内容
493
563
  *
@@ -1107,6 +1177,48 @@ class Client extends openapi_core_1.default {
1107
1177
  let runtime = new $dara.RuntimeOptions({});
1108
1178
  return await this.deleteDocsWithOptions(request, runtime);
1109
1179
  }
1180
+ /**
1181
+ * 删除指定的用于事实性审核的 URL。
1182
+ *
1183
+ * @param request - DeleteFactAuditUrlRequest
1184
+ * @param runtime - runtime options for this request RuntimeOptions
1185
+ * @returns DeleteFactAuditUrlResponse
1186
+ */
1187
+ async deleteFactAuditUrlWithOptions(request, runtime) {
1188
+ request.validate();
1189
+ let body = {};
1190
+ if (!$dara.isNull(request.url)) {
1191
+ body["Url"] = request.url;
1192
+ }
1193
+ if (!$dara.isNull(request.workspaceId)) {
1194
+ body["WorkspaceId"] = request.workspaceId;
1195
+ }
1196
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1197
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1198
+ });
1199
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1200
+ action: "DeleteFactAuditUrl",
1201
+ version: "2023-08-01",
1202
+ protocol: "HTTPS",
1203
+ pathname: "/",
1204
+ method: "POST",
1205
+ authType: "AK",
1206
+ style: "RPC",
1207
+ reqBodyType: "formData",
1208
+ bodyType: "json",
1209
+ });
1210
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFactAuditUrlResponse({}));
1211
+ }
1212
+ /**
1213
+ * 删除指定的用于事实性审核的 URL。
1214
+ *
1215
+ * @param request - DeleteFactAuditUrlRequest
1216
+ * @returns DeleteFactAuditUrlResponse
1217
+ */
1218
+ async deleteFactAuditUrl(request) {
1219
+ let runtime = new $dara.RuntimeOptions({});
1220
+ return await this.deleteFactAuditUrlWithOptions(request, runtime);
1221
+ }
1110
1222
  /**
1111
1223
  * 文档管理-删除。
1112
1224
  *
@@ -1380,13 +1492,21 @@ class Client extends openapi_core_1.default {
1380
1492
  /**
1381
1493
  * 编辑审核自定义词库记录
1382
1494
  *
1383
- * @param request - EditAuditTermsRequest
1495
+ * @param tmpReq - EditAuditTermsRequest
1384
1496
  * @param runtime - runtime options for this request RuntimeOptions
1385
1497
  * @returns EditAuditTermsResponse
1386
1498
  */
1387
- async editAuditTermsWithOptions(request, runtime) {
1388
- request.validate();
1499
+ async editAuditTermsWithOptions(tmpReq, runtime) {
1500
+ tmpReq.validate();
1501
+ let request = new $_model.EditAuditTermsShrinkRequest({});
1502
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1503
+ if (!$dara.isNull(tmpReq.exceptionWord)) {
1504
+ request.exceptionWordShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.exceptionWord, "ExceptionWord", "json");
1505
+ }
1389
1506
  let body = {};
1507
+ if (!$dara.isNull(request.exceptionWordShrink)) {
1508
+ body["ExceptionWord"] = request.exceptionWordShrink;
1509
+ }
1390
1510
  if (!$dara.isNull(request.id)) {
1391
1511
  body["Id"] = request.id;
1392
1512
  }
@@ -2729,6 +2849,90 @@ class Client extends openapi_core_1.default {
2729
2849
  let runtime = new $dara.RuntimeOptions({});
2730
2850
  return await this.getDatasetDocumentWithOptions(request, runtime);
2731
2851
  }
2852
+ /**
2853
+ * 查询深度写作任务
2854
+ *
2855
+ * @param request - GetDeepWriteTaskRequest
2856
+ * @param runtime - runtime options for this request RuntimeOptions
2857
+ * @returns GetDeepWriteTaskResponse
2858
+ */
2859
+ async getDeepWriteTaskWithOptions(request, runtime) {
2860
+ request.validate();
2861
+ let body = {};
2862
+ if (!$dara.isNull(request.taskId)) {
2863
+ body["TaskId"] = request.taskId;
2864
+ }
2865
+ if (!$dara.isNull(request.workspaceId)) {
2866
+ body["WorkspaceId"] = request.workspaceId;
2867
+ }
2868
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2869
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2870
+ });
2871
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2872
+ action: "GetDeepWriteTask",
2873
+ version: "2023-08-01",
2874
+ protocol: "HTTPS",
2875
+ pathname: "/",
2876
+ method: "POST",
2877
+ authType: "AK",
2878
+ style: "RPC",
2879
+ reqBodyType: "formData",
2880
+ bodyType: "json",
2881
+ });
2882
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetDeepWriteTaskResponse({}));
2883
+ }
2884
+ /**
2885
+ * 查询深度写作任务
2886
+ *
2887
+ * @param request - GetDeepWriteTaskRequest
2888
+ * @returns GetDeepWriteTaskResponse
2889
+ */
2890
+ async getDeepWriteTask(request) {
2891
+ let runtime = new $dara.RuntimeOptions({});
2892
+ return await this.getDeepWriteTaskWithOptions(request, runtime);
2893
+ }
2894
+ /**
2895
+ * 查询深度写作任务的结果
2896
+ *
2897
+ * @param request - GetDeepWriteTaskResultRequest
2898
+ * @param runtime - runtime options for this request RuntimeOptions
2899
+ * @returns GetDeepWriteTaskResultResponse
2900
+ */
2901
+ async getDeepWriteTaskResultWithOptions(request, runtime) {
2902
+ request.validate();
2903
+ let body = {};
2904
+ if (!$dara.isNull(request.taskId)) {
2905
+ body["TaskId"] = request.taskId;
2906
+ }
2907
+ if (!$dara.isNull(request.workspaceId)) {
2908
+ body["WorkspaceId"] = request.workspaceId;
2909
+ }
2910
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2911
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2912
+ });
2913
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2914
+ action: "GetDeepWriteTaskResult",
2915
+ version: "2023-08-01",
2916
+ protocol: "HTTPS",
2917
+ pathname: "/",
2918
+ method: "POST",
2919
+ authType: "AK",
2920
+ style: "RPC",
2921
+ reqBodyType: "formData",
2922
+ bodyType: "json",
2923
+ });
2924
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetDeepWriteTaskResultResponse({}));
2925
+ }
2926
+ /**
2927
+ * 查询深度写作任务的结果
2928
+ *
2929
+ * @param request - GetDeepWriteTaskResultRequest
2930
+ * @returns GetDeepWriteTaskResultResponse
2931
+ */
2932
+ async getDeepWriteTaskResult(request) {
2933
+ let runtime = new $dara.RuntimeOptions({});
2934
+ return await this.getDeepWriteTaskResultWithOptions(request, runtime);
2935
+ }
2732
2936
  /**
2733
2937
  * 获取文档聚合任务结果
2734
2938
  *
@@ -2860,6 +3064,45 @@ class Client extends openapi_core_1.default {
2860
3064
  let runtime = new $dara.RuntimeOptions({});
2861
3065
  return await this.getEnterpriseVocAnalysisTaskWithOptions(request, runtime);
2862
3066
  }
3067
+ /**
3068
+ * 获取当前正用于事实性审核的信源 URL。
3069
+ *
3070
+ * @param request - GetFactAuditUrlRequest
3071
+ * @param runtime - runtime options for this request RuntimeOptions
3072
+ * @returns GetFactAuditUrlResponse
3073
+ */
3074
+ async getFactAuditUrlWithOptions(request, runtime) {
3075
+ request.validate();
3076
+ let body = {};
3077
+ if (!$dara.isNull(request.workspaceId)) {
3078
+ body["WorkspaceId"] = request.workspaceId;
3079
+ }
3080
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3081
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
3082
+ });
3083
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3084
+ action: "GetFactAuditUrl",
3085
+ version: "2023-08-01",
3086
+ protocol: "HTTPS",
3087
+ pathname: "/",
3088
+ method: "POST",
3089
+ authType: "AK",
3090
+ style: "RPC",
3091
+ reqBodyType: "formData",
3092
+ bodyType: "json",
3093
+ });
3094
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetFactAuditUrlResponse({}));
3095
+ }
3096
+ /**
3097
+ * 获取当前正用于事实性审核的信源 URL。
3098
+ *
3099
+ * @param request - GetFactAuditUrlRequest
3100
+ * @returns GetFactAuditUrlResponse
3101
+ */
3102
+ async getFactAuditUrl(request) {
3103
+ let runtime = new $dara.RuntimeOptions({});
3104
+ return await this.getFactAuditUrlWithOptions(request, runtime);
3105
+ }
2863
3106
  /**
2864
3107
  * 妙读获得文档字数
2865
3108
  *
@@ -5677,6 +5920,64 @@ class Client extends openapi_core_1.default {
5677
5920
  let runtime = new $dara.RuntimeOptions({});
5678
5921
  return await this.queryAuditTaskWithOptions(request, runtime);
5679
5922
  }
5923
+ /**
5924
+ * 内容缩写
5925
+ *
5926
+ * @param request - RunAbbreviationContentRequest
5927
+ * @param runtime - runtime options for this request RuntimeOptions
5928
+ * @returns RunAbbreviationContentResponse
5929
+ */
5930
+ runAbbreviationContentWithSSE(request, runtime) {
5931
+ return __asyncGenerator(this, arguments, function* runAbbreviationContentWithSSE_1() {
5932
+ var _a, e_1, _b, _c;
5933
+ request.validate();
5934
+ let body = {};
5935
+ if (!$dara.isNull(request.content)) {
5936
+ body["Content"] = request.content;
5937
+ }
5938
+ if (!$dara.isNull(request.prompt)) {
5939
+ body["Prompt"] = request.prompt;
5940
+ }
5941
+ if (!$dara.isNull(request.workspaceId)) {
5942
+ body["WorkspaceId"] = request.workspaceId;
5943
+ }
5944
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5945
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
5946
+ });
5947
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5948
+ action: "RunAbbreviationContent",
5949
+ version: "2023-08-01",
5950
+ protocol: "HTTPS",
5951
+ pathname: "/",
5952
+ method: "POST",
5953
+ authType: "AK",
5954
+ style: "RPC",
5955
+ reqBodyType: "formData",
5956
+ bodyType: "json",
5957
+ });
5958
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
5959
+ try {
5960
+ for (var _d = true, sseResp_1 = __asyncValues(sseResp), sseResp_1_1; sseResp_1_1 = yield __await(sseResp_1.next()), _a = sseResp_1_1.done, !_a; _d = true) {
5961
+ _c = sseResp_1_1.value;
5962
+ _d = false;
5963
+ let resp = _c;
5964
+ let data = JSON.parse(resp.event.data);
5965
+ yield yield __await($dara.cast({
5966
+ statusCode: resp.statusCode,
5967
+ headers: resp.headers,
5968
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
5969
+ }, new $_model.RunAbbreviationContentResponse({})));
5970
+ }
5971
+ }
5972
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5973
+ finally {
5974
+ try {
5975
+ if (!_d && !_a && (_b = sseResp_1.return)) yield __await(_b.call(sseResp_1));
5976
+ }
5977
+ finally { if (e_1) throw e_1.error; }
5978
+ }
5979
+ });
5980
+ }
5680
5981
  /**
5681
5982
  * 内容缩写
5682
5983
  *
@@ -5722,6 +6023,76 @@ class Client extends openapi_core_1.default {
5722
6023
  let runtime = new $dara.RuntimeOptions({});
5723
6024
  return await this.runAbbreviationContentWithOptions(request, runtime);
5724
6025
  }
6026
+ /**
6027
+ * 妙读生成书籍脑图
6028
+ *
6029
+ * @param request - RunBookBrainmapRequest
6030
+ * @param runtime - runtime options for this request RuntimeOptions
6031
+ * @returns RunBookBrainmapResponse
6032
+ */
6033
+ runBookBrainmapWithSSE(request, runtime) {
6034
+ return __asyncGenerator(this, arguments, function* runBookBrainmapWithSSE_1() {
6035
+ var _a, e_2, _b, _c;
6036
+ request.validate();
6037
+ let body = {};
6038
+ if (!$dara.isNull(request.cleanCache)) {
6039
+ body["CleanCache"] = request.cleanCache;
6040
+ }
6041
+ if (!$dara.isNull(request.docId)) {
6042
+ body["DocId"] = request.docId;
6043
+ }
6044
+ if (!$dara.isNull(request.nodeNumber)) {
6045
+ body["NodeNumber"] = request.nodeNumber;
6046
+ }
6047
+ if (!$dara.isNull(request.prompt)) {
6048
+ body["Prompt"] = request.prompt;
6049
+ }
6050
+ if (!$dara.isNull(request.sessionId)) {
6051
+ body["SessionId"] = request.sessionId;
6052
+ }
6053
+ if (!$dara.isNull(request.wordNumber)) {
6054
+ body["WordNumber"] = request.wordNumber;
6055
+ }
6056
+ if (!$dara.isNull(request.workspaceId)) {
6057
+ body["WorkspaceId"] = request.workspaceId;
6058
+ }
6059
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6060
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6061
+ });
6062
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6063
+ action: "RunBookBrainmap",
6064
+ version: "2023-08-01",
6065
+ protocol: "HTTPS",
6066
+ pathname: "/",
6067
+ method: "POST",
6068
+ authType: "AK",
6069
+ style: "RPC",
6070
+ reqBodyType: "formData",
6071
+ bodyType: "json",
6072
+ });
6073
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6074
+ try {
6075
+ for (var _d = true, sseResp_2 = __asyncValues(sseResp), sseResp_2_1; sseResp_2_1 = yield __await(sseResp_2.next()), _a = sseResp_2_1.done, !_a; _d = true) {
6076
+ _c = sseResp_2_1.value;
6077
+ _d = false;
6078
+ let resp = _c;
6079
+ let data = JSON.parse(resp.event.data);
6080
+ yield yield __await($dara.cast({
6081
+ statusCode: resp.statusCode,
6082
+ headers: resp.headers,
6083
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6084
+ }, new $_model.RunBookBrainmapResponse({})));
6085
+ }
6086
+ }
6087
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
6088
+ finally {
6089
+ try {
6090
+ if (!_d && !_a && (_b = sseResp_2.return)) yield __await(_b.call(sseResp_2));
6091
+ }
6092
+ finally { if (e_2) throw e_2.error; }
6093
+ }
6094
+ });
6095
+ }
5725
6096
  /**
5726
6097
  * 妙读生成书籍脑图
5727
6098
  *
@@ -5779,6 +6150,70 @@ class Client extends openapi_core_1.default {
5779
6150
  let runtime = new $dara.RuntimeOptions({});
5780
6151
  return await this.runBookBrainmapWithOptions(request, runtime);
5781
6152
  }
6153
+ /**
6154
+ * 书籍导读接口
6155
+ *
6156
+ * @param request - RunBookIntroductionRequest
6157
+ * @param runtime - runtime options for this request RuntimeOptions
6158
+ * @returns RunBookIntroductionResponse
6159
+ */
6160
+ runBookIntroductionWithSSE(request, runtime) {
6161
+ return __asyncGenerator(this, arguments, function* runBookIntroductionWithSSE_1() {
6162
+ var _a, e_3, _b, _c;
6163
+ request.validate();
6164
+ let body = {};
6165
+ if (!$dara.isNull(request.docId)) {
6166
+ body["DocId"] = request.docId;
6167
+ }
6168
+ if (!$dara.isNull(request.keyPointPrompt)) {
6169
+ body["KeyPointPrompt"] = request.keyPointPrompt;
6170
+ }
6171
+ if (!$dara.isNull(request.sessionId)) {
6172
+ body["SessionId"] = request.sessionId;
6173
+ }
6174
+ if (!$dara.isNull(request.summaryPrompt)) {
6175
+ body["SummaryPrompt"] = request.summaryPrompt;
6176
+ }
6177
+ if (!$dara.isNull(request.workspaceId)) {
6178
+ body["WorkspaceId"] = request.workspaceId;
6179
+ }
6180
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6181
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6182
+ });
6183
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6184
+ action: "RunBookIntroduction",
6185
+ version: "2023-08-01",
6186
+ protocol: "HTTPS",
6187
+ pathname: "/",
6188
+ method: "POST",
6189
+ authType: "AK",
6190
+ style: "RPC",
6191
+ reqBodyType: "formData",
6192
+ bodyType: "json",
6193
+ });
6194
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6195
+ try {
6196
+ for (var _d = true, sseResp_3 = __asyncValues(sseResp), sseResp_3_1; sseResp_3_1 = yield __await(sseResp_3.next()), _a = sseResp_3_1.done, !_a; _d = true) {
6197
+ _c = sseResp_3_1.value;
6198
+ _d = false;
6199
+ let resp = _c;
6200
+ let data = JSON.parse(resp.event.data);
6201
+ yield yield __await($dara.cast({
6202
+ statusCode: resp.statusCode,
6203
+ headers: resp.headers,
6204
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6205
+ }, new $_model.RunBookIntroductionResponse({})));
6206
+ }
6207
+ }
6208
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
6209
+ finally {
6210
+ try {
6211
+ if (!_d && !_a && (_b = sseResp_3.return)) yield __await(_b.call(sseResp_3));
6212
+ }
6213
+ finally { if (e_3) throw e_3.error; }
6214
+ }
6215
+ });
6216
+ }
5782
6217
  /**
5783
6218
  * 书籍导读接口
5784
6219
  *
@@ -5830,6 +6265,64 @@ class Client extends openapi_core_1.default {
5830
6265
  let runtime = new $dara.RuntimeOptions({});
5831
6266
  return await this.runBookIntroductionWithOptions(request, runtime);
5832
6267
  }
6268
+ /**
6269
+ * 书籍智能卡片接口
6270
+ *
6271
+ * @param request - RunBookSmartCardRequest
6272
+ * @param runtime - runtime options for this request RuntimeOptions
6273
+ * @returns RunBookSmartCardResponse
6274
+ */
6275
+ runBookSmartCardWithSSE(request, runtime) {
6276
+ return __asyncGenerator(this, arguments, function* runBookSmartCardWithSSE_1() {
6277
+ var _a, e_4, _b, _c;
6278
+ request.validate();
6279
+ let body = {};
6280
+ if (!$dara.isNull(request.docId)) {
6281
+ body["DocId"] = request.docId;
6282
+ }
6283
+ if (!$dara.isNull(request.sessionId)) {
6284
+ body["SessionId"] = request.sessionId;
6285
+ }
6286
+ if (!$dara.isNull(request.workspaceId)) {
6287
+ body["WorkspaceId"] = request.workspaceId;
6288
+ }
6289
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6290
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6291
+ });
6292
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6293
+ action: "RunBookSmartCard",
6294
+ version: "2023-08-01",
6295
+ protocol: "HTTPS",
6296
+ pathname: "/",
6297
+ method: "POST",
6298
+ authType: "AK",
6299
+ style: "RPC",
6300
+ reqBodyType: "formData",
6301
+ bodyType: "json",
6302
+ });
6303
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6304
+ try {
6305
+ for (var _d = true, sseResp_4 = __asyncValues(sseResp), sseResp_4_1; sseResp_4_1 = yield __await(sseResp_4.next()), _a = sseResp_4_1.done, !_a; _d = true) {
6306
+ _c = sseResp_4_1.value;
6307
+ _d = false;
6308
+ let resp = _c;
6309
+ let data = JSON.parse(resp.event.data);
6310
+ yield yield __await($dara.cast({
6311
+ statusCode: resp.statusCode,
6312
+ headers: resp.headers,
6313
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6314
+ }, new $_model.RunBookSmartCardResponse({})));
6315
+ }
6316
+ }
6317
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
6318
+ finally {
6319
+ try {
6320
+ if (!_d && !_a && (_b = sseResp_4.return)) yield __await(_b.call(sseResp_4));
6321
+ }
6322
+ finally { if (e_4) throw e_4.error; }
6323
+ }
6324
+ });
6325
+ }
5833
6326
  /**
5834
6327
  * 书籍智能卡片接口
5835
6328
  *
@@ -5875,6 +6368,102 @@ class Client extends openapi_core_1.default {
5875
6368
  let runtime = new $dara.RuntimeOptions({});
5876
6369
  return await this.runBookSmartCardWithOptions(request, runtime);
5877
6370
  }
6371
+ /**
6372
+ * 客户之声预测
6373
+ *
6374
+ * @param tmpReq - RunCommentGenerationRequest
6375
+ * @param runtime - runtime options for this request RuntimeOptions
6376
+ * @returns RunCommentGenerationResponse
6377
+ */
6378
+ runCommentGenerationWithSSE(tmpReq, runtime) {
6379
+ return __asyncGenerator(this, arguments, function* runCommentGenerationWithSSE_1() {
6380
+ var _a, e_5, _b, _c;
6381
+ tmpReq.validate();
6382
+ let request = new $_model.RunCommentGenerationShrinkRequest({});
6383
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
6384
+ if (!$dara.isNull(tmpReq.lengthRange)) {
6385
+ request.lengthRangeShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.lengthRange, "LengthRange", "json");
6386
+ }
6387
+ if (!$dara.isNull(tmpReq.sentiment)) {
6388
+ request.sentimentShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sentiment, "Sentiment", "json");
6389
+ }
6390
+ if (!$dara.isNull(tmpReq.type)) {
6391
+ request.typeShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.type, "Type", "json");
6392
+ }
6393
+ let body = {};
6394
+ if (!$dara.isNull(request.allowEmoji)) {
6395
+ body["AllowEmoji"] = request.allowEmoji;
6396
+ }
6397
+ if (!$dara.isNull(request.extraInfo)) {
6398
+ body["ExtraInfo"] = request.extraInfo;
6399
+ }
6400
+ if (!$dara.isNull(request.length)) {
6401
+ body["Length"] = request.length;
6402
+ }
6403
+ if (!$dara.isNull(request.lengthRangeShrink)) {
6404
+ body["LengthRange"] = request.lengthRangeShrink;
6405
+ }
6406
+ if (!$dara.isNull(request.modelId)) {
6407
+ body["ModelId"] = request.modelId;
6408
+ }
6409
+ if (!$dara.isNull(request.numComments)) {
6410
+ body["NumComments"] = request.numComments;
6411
+ }
6412
+ if (!$dara.isNull(request.sentimentShrink)) {
6413
+ body["Sentiment"] = request.sentimentShrink;
6414
+ }
6415
+ if (!$dara.isNull(request.sessionId)) {
6416
+ body["SessionId"] = request.sessionId;
6417
+ }
6418
+ if (!$dara.isNull(request.sourceMaterial)) {
6419
+ body["SourceMaterial"] = request.sourceMaterial;
6420
+ }
6421
+ if (!$dara.isNull(request.style)) {
6422
+ body["Style"] = request.style;
6423
+ }
6424
+ if (!$dara.isNull(request.typeShrink)) {
6425
+ body["Type"] = request.typeShrink;
6426
+ }
6427
+ if (!$dara.isNull(request.workspaceId)) {
6428
+ body["WorkspaceId"] = request.workspaceId;
6429
+ }
6430
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6431
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6432
+ });
6433
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6434
+ action: "RunCommentGeneration",
6435
+ version: "2023-08-01",
6436
+ protocol: "HTTPS",
6437
+ pathname: "/",
6438
+ method: "POST",
6439
+ authType: "AK",
6440
+ style: "RPC",
6441
+ reqBodyType: "formData",
6442
+ bodyType: "json",
6443
+ });
6444
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6445
+ try {
6446
+ for (var _d = true, sseResp_5 = __asyncValues(sseResp), sseResp_5_1; sseResp_5_1 = yield __await(sseResp_5.next()), _a = sseResp_5_1.done, !_a; _d = true) {
6447
+ _c = sseResp_5_1.value;
6448
+ _d = false;
6449
+ let resp = _c;
6450
+ let data = JSON.parse(resp.event.data);
6451
+ yield yield __await($dara.cast({
6452
+ statusCode: resp.statusCode,
6453
+ headers: resp.headers,
6454
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6455
+ }, new $_model.RunCommentGenerationResponse({})));
6456
+ }
6457
+ }
6458
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
6459
+ finally {
6460
+ try {
6461
+ if (!_d && !_a && (_b = sseResp_5.return)) yield __await(_b.call(sseResp_5));
6462
+ }
6463
+ finally { if (e_5) throw e_5.error; }
6464
+ }
6465
+ });
6466
+ }
5878
6467
  /**
5879
6468
  * 客户之声预测
5880
6469
  *
@@ -5958,6 +6547,61 @@ class Client extends openapi_core_1.default {
5958
6547
  let runtime = new $dara.RuntimeOptions({});
5959
6548
  return await this.runCommentGenerationWithOptions(request, runtime);
5960
6549
  }
6550
+ /**
6551
+ * 内容续写
6552
+ *
6553
+ * @param request - RunContinueContentRequest
6554
+ * @param runtime - runtime options for this request RuntimeOptions
6555
+ * @returns RunContinueContentResponse
6556
+ */
6557
+ runContinueContentWithSSE(request, runtime) {
6558
+ return __asyncGenerator(this, arguments, function* runContinueContentWithSSE_1() {
6559
+ var _a, e_6, _b, _c;
6560
+ request.validate();
6561
+ let body = {};
6562
+ if (!$dara.isNull(request.content)) {
6563
+ body["Content"] = request.content;
6564
+ }
6565
+ if (!$dara.isNull(request.workspaceId)) {
6566
+ body["WorkspaceId"] = request.workspaceId;
6567
+ }
6568
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6569
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6570
+ });
6571
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6572
+ action: "RunContinueContent",
6573
+ version: "2023-08-01",
6574
+ protocol: "HTTPS",
6575
+ pathname: "/",
6576
+ method: "POST",
6577
+ authType: "AK",
6578
+ style: "RPC",
6579
+ reqBodyType: "formData",
6580
+ bodyType: "json",
6581
+ });
6582
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6583
+ try {
6584
+ for (var _d = true, sseResp_6 = __asyncValues(sseResp), sseResp_6_1; sseResp_6_1 = yield __await(sseResp_6.next()), _a = sseResp_6_1.done, !_a; _d = true) {
6585
+ _c = sseResp_6_1.value;
6586
+ _d = false;
6587
+ let resp = _c;
6588
+ let data = JSON.parse(resp.event.data);
6589
+ yield yield __await($dara.cast({
6590
+ statusCode: resp.statusCode,
6591
+ headers: resp.headers,
6592
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6593
+ }, new $_model.RunContinueContentResponse({})));
6594
+ }
6595
+ }
6596
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
6597
+ finally {
6598
+ try {
6599
+ if (!_d && !_a && (_b = sseResp_6.return)) yield __await(_b.call(sseResp_6));
6600
+ }
6601
+ finally { if (e_6) throw e_6.error; }
6602
+ }
6603
+ });
6604
+ }
5961
6605
  /**
5962
6606
  * 内容续写
5963
6607
  *
@@ -6000,6 +6644,76 @@ class Client extends openapi_core_1.default {
6000
6644
  let runtime = new $dara.RuntimeOptions({});
6001
6645
  return await this.runContinueContentWithOptions(request, runtime);
6002
6646
  }
6647
+ /**
6648
+ * 自定义热点话题分析
6649
+ *
6650
+ * @param request - RunCustomHotTopicAnalysisRequest
6651
+ * @param runtime - runtime options for this request RuntimeOptions
6652
+ * @returns RunCustomHotTopicAnalysisResponse
6653
+ */
6654
+ runCustomHotTopicAnalysisWithSSE(request, runtime) {
6655
+ return __asyncGenerator(this, arguments, function* runCustomHotTopicAnalysisWithSSE_1() {
6656
+ var _a, e_7, _b, _c;
6657
+ request.validate();
6658
+ let body = {};
6659
+ if (!$dara.isNull(request.askUser)) {
6660
+ body["AskUser"] = request.askUser;
6661
+ }
6662
+ if (!$dara.isNull(request.forceAnalysisExistsTopic)) {
6663
+ body["ForceAnalysisExistsTopic"] = request.forceAnalysisExistsTopic;
6664
+ }
6665
+ if (!$dara.isNull(request.prompt)) {
6666
+ body["Prompt"] = request.prompt;
6667
+ }
6668
+ if (!$dara.isNull(request.sessionId)) {
6669
+ body["SessionId"] = request.sessionId;
6670
+ }
6671
+ if (!$dara.isNull(request.taskId)) {
6672
+ body["TaskId"] = request.taskId;
6673
+ }
6674
+ if (!$dara.isNull(request.userBack)) {
6675
+ body["UserBack"] = request.userBack;
6676
+ }
6677
+ if (!$dara.isNull(request.workspaceId)) {
6678
+ body["WorkspaceId"] = request.workspaceId;
6679
+ }
6680
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6681
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6682
+ });
6683
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6684
+ action: "RunCustomHotTopicAnalysis",
6685
+ version: "2023-08-01",
6686
+ protocol: "HTTPS",
6687
+ pathname: "/",
6688
+ method: "POST",
6689
+ authType: "AK",
6690
+ style: "RPC",
6691
+ reqBodyType: "formData",
6692
+ bodyType: "json",
6693
+ });
6694
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6695
+ try {
6696
+ for (var _d = true, sseResp_7 = __asyncValues(sseResp), sseResp_7_1; sseResp_7_1 = yield __await(sseResp_7.next()), _a = sseResp_7_1.done, !_a; _d = true) {
6697
+ _c = sseResp_7_1.value;
6698
+ _d = false;
6699
+ let resp = _c;
6700
+ let data = JSON.parse(resp.event.data);
6701
+ yield yield __await($dara.cast({
6702
+ statusCode: resp.statusCode,
6703
+ headers: resp.headers,
6704
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6705
+ }, new $_model.RunCustomHotTopicAnalysisResponse({})));
6706
+ }
6707
+ }
6708
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
6709
+ finally {
6710
+ try {
6711
+ if (!_d && !_a && (_b = sseResp_7.return)) yield __await(_b.call(sseResp_7));
6712
+ }
6713
+ finally { if (e_7) throw e_7.error; }
6714
+ }
6715
+ });
6716
+ }
6003
6717
  /**
6004
6718
  * 自定义热点话题分析
6005
6719
  *
@@ -6057,6 +6771,85 @@ class Client extends openapi_core_1.default {
6057
6771
  let runtime = new $dara.RuntimeOptions({});
6058
6772
  return await this.runCustomHotTopicAnalysisWithOptions(request, runtime);
6059
6773
  }
6774
+ /**
6775
+ * 自定义选题视角分析
6776
+ *
6777
+ * @param request - RunCustomHotTopicViewPointAnalysisRequest
6778
+ * @param runtime - runtime options for this request RuntimeOptions
6779
+ * @returns RunCustomHotTopicViewPointAnalysisResponse
6780
+ */
6781
+ runCustomHotTopicViewPointAnalysisWithSSE(request, runtime) {
6782
+ return __asyncGenerator(this, arguments, function* runCustomHotTopicViewPointAnalysisWithSSE_1() {
6783
+ var _a, e_8, _b, _c;
6784
+ request.validate();
6785
+ let body = {};
6786
+ if (!$dara.isNull(request.askUser)) {
6787
+ body["AskUser"] = request.askUser;
6788
+ }
6789
+ if (!$dara.isNull(request.prompt)) {
6790
+ body["Prompt"] = request.prompt;
6791
+ }
6792
+ if (!$dara.isNull(request.searchQuery)) {
6793
+ body["SearchQuery"] = request.searchQuery;
6794
+ }
6795
+ if (!$dara.isNull(request.skipAskUser)) {
6796
+ body["SkipAskUser"] = request.skipAskUser;
6797
+ }
6798
+ if (!$dara.isNull(request.topic)) {
6799
+ body["Topic"] = request.topic;
6800
+ }
6801
+ if (!$dara.isNull(request.topicId)) {
6802
+ body["TopicId"] = request.topicId;
6803
+ }
6804
+ if (!$dara.isNull(request.topicSource)) {
6805
+ body["TopicSource"] = request.topicSource;
6806
+ }
6807
+ if (!$dara.isNull(request.topicVersion)) {
6808
+ body["TopicVersion"] = request.topicVersion;
6809
+ }
6810
+ if (!$dara.isNull(request.userBack)) {
6811
+ body["UserBack"] = request.userBack;
6812
+ }
6813
+ if (!$dara.isNull(request.workspaceId)) {
6814
+ body["WorkspaceId"] = request.workspaceId;
6815
+ }
6816
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6817
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6818
+ });
6819
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6820
+ action: "RunCustomHotTopicViewPointAnalysis",
6821
+ version: "2023-08-01",
6822
+ protocol: "HTTPS",
6823
+ pathname: "/",
6824
+ method: "POST",
6825
+ authType: "AK",
6826
+ style: "RPC",
6827
+ reqBodyType: "formData",
6828
+ bodyType: "json",
6829
+ });
6830
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6831
+ try {
6832
+ for (var _d = true, sseResp_8 = __asyncValues(sseResp), sseResp_8_1; sseResp_8_1 = yield __await(sseResp_8.next()), _a = sseResp_8_1.done, !_a; _d = true) {
6833
+ _c = sseResp_8_1.value;
6834
+ _d = false;
6835
+ let resp = _c;
6836
+ let data = JSON.parse(resp.event.data);
6837
+ yield yield __await($dara.cast({
6838
+ statusCode: resp.statusCode,
6839
+ headers: resp.headers,
6840
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6841
+ }, new $_model.RunCustomHotTopicViewPointAnalysisResponse({})));
6842
+ }
6843
+ }
6844
+ catch (e_8_1) { e_8 = { error: e_8_1 }; }
6845
+ finally {
6846
+ try {
6847
+ if (!_d && !_a && (_b = sseResp_8.return)) yield __await(_b.call(sseResp_8));
6848
+ }
6849
+ finally { if (e_8) throw e_8.error; }
6850
+ }
6851
+ });
6852
+ }
6060
6853
  /**
6061
6854
  * 自定义选题视角分析
6062
6855
  *
@@ -6124,25 +6917,204 @@ class Client extends openapi_core_1.default {
6124
6917
  return await this.runCustomHotTopicViewPointAnalysisWithOptions(request, runtime);
6125
6918
  }
6126
6919
  /**
6127
- * 妙读脑图生成接口
6128
- *
6129
- * @param request - RunDocBrainmapRequest
6130
- * @param runtime - runtime options for this request RuntimeOptions
6131
- * @returns RunDocBrainmapResponse
6132
- */
6133
- async runDocBrainmapWithOptions(request, runtime) {
6920
+ * 流式输出深度写作事件
6921
+ *
6922
+ * @param request - RunDeepWritingRequest
6923
+ * @param runtime - runtime options for this request RuntimeOptions
6924
+ * @returns RunDeepWritingResponse
6925
+ */
6926
+ runDeepWritingWithSSE(request, runtime) {
6927
+ return __asyncGenerator(this, arguments, function* runDeepWritingWithSSE_1() {
6928
+ var _a, e_9, _b, _c;
6929
+ request.validate();
6930
+ let body = {};
6931
+ if (!$dara.isNull(request.cursor)) {
6932
+ body["Cursor"] = request.cursor;
6933
+ }
6934
+ if (!$dara.isNull(request.taskId)) {
6935
+ body["TaskId"] = request.taskId;
6936
+ }
6937
+ if (!$dara.isNull(request.workspaceId)) {
6938
+ body["WorkspaceId"] = request.workspaceId;
6939
+ }
6940
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6941
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6942
+ });
6943
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6944
+ action: "RunDeepWriting",
6945
+ version: "2023-08-01",
6946
+ protocol: "HTTPS",
6947
+ pathname: "/",
6948
+ method: "POST",
6949
+ authType: "AK",
6950
+ style: "RPC",
6951
+ reqBodyType: "formData",
6952
+ bodyType: "json",
6953
+ });
6954
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
6955
+ try {
6956
+ for (var _d = true, sseResp_9 = __asyncValues(sseResp), sseResp_9_1; sseResp_9_1 = yield __await(sseResp_9.next()), _a = sseResp_9_1.done, !_a; _d = true) {
6957
+ _c = sseResp_9_1.value;
6958
+ _d = false;
6959
+ let resp = _c;
6960
+ let data = JSON.parse(resp.event.data);
6961
+ yield yield __await($dara.cast({
6962
+ statusCode: resp.statusCode,
6963
+ headers: resp.headers,
6964
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
6965
+ }, new $_model.RunDeepWritingResponse({})));
6966
+ }
6967
+ }
6968
+ catch (e_9_1) { e_9 = { error: e_9_1 }; }
6969
+ finally {
6970
+ try {
6971
+ if (!_d && !_a && (_b = sseResp_9.return)) yield __await(_b.call(sseResp_9));
6972
+ }
6973
+ finally { if (e_9) throw e_9.error; }
6974
+ }
6975
+ });
6976
+ }
6977
+ /**
6978
+ * 流式输出深度写作事件
6979
+ *
6980
+ * @param request - RunDeepWritingRequest
6981
+ * @param runtime - runtime options for this request RuntimeOptions
6982
+ * @returns RunDeepWritingResponse
6983
+ */
6984
+ async runDeepWritingWithOptions(request, runtime) {
6134
6985
  request.validate();
6135
6986
  let body = {};
6136
- if (!$dara.isNull(request.cleanCache)) {
6137
- body["CleanCache"] = request.cleanCache;
6987
+ if (!$dara.isNull(request.cursor)) {
6988
+ body["Cursor"] = request.cursor;
6138
6989
  }
6139
- if (!$dara.isNull(request.docId)) {
6140
- body["DocId"] = request.docId;
6990
+ if (!$dara.isNull(request.taskId)) {
6991
+ body["TaskId"] = request.taskId;
6141
6992
  }
6142
- if (!$dara.isNull(request.modelName)) {
6143
- body["ModelName"] = request.modelName;
6993
+ if (!$dara.isNull(request.workspaceId)) {
6994
+ body["WorkspaceId"] = request.workspaceId;
6144
6995
  }
6145
- if (!$dara.isNull(request.nodeNumber)) {
6996
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6997
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6998
+ });
6999
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7000
+ action: "RunDeepWriting",
7001
+ version: "2023-08-01",
7002
+ protocol: "HTTPS",
7003
+ pathname: "/",
7004
+ method: "POST",
7005
+ authType: "AK",
7006
+ style: "RPC",
7007
+ reqBodyType: "formData",
7008
+ bodyType: "json",
7009
+ });
7010
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunDeepWritingResponse({}));
7011
+ }
7012
+ /**
7013
+ * 流式输出深度写作事件
7014
+ *
7015
+ * @param request - RunDeepWritingRequest
7016
+ * @returns RunDeepWritingResponse
7017
+ */
7018
+ async runDeepWriting(request) {
7019
+ let runtime = new $dara.RuntimeOptions({});
7020
+ return await this.runDeepWritingWithOptions(request, runtime);
7021
+ }
7022
+ /**
7023
+ * 妙读脑图生成接口
7024
+ *
7025
+ * @param request - RunDocBrainmapRequest
7026
+ * @param runtime - runtime options for this request RuntimeOptions
7027
+ * @returns RunDocBrainmapResponse
7028
+ */
7029
+ runDocBrainmapWithSSE(request, runtime) {
7030
+ return __asyncGenerator(this, arguments, function* runDocBrainmapWithSSE_1() {
7031
+ var _a, e_10, _b, _c;
7032
+ request.validate();
7033
+ let body = {};
7034
+ if (!$dara.isNull(request.cleanCache)) {
7035
+ body["CleanCache"] = request.cleanCache;
7036
+ }
7037
+ if (!$dara.isNull(request.docId)) {
7038
+ body["DocId"] = request.docId;
7039
+ }
7040
+ if (!$dara.isNull(request.modelName)) {
7041
+ body["ModelName"] = request.modelName;
7042
+ }
7043
+ if (!$dara.isNull(request.nodeNumber)) {
7044
+ body["NodeNumber"] = request.nodeNumber;
7045
+ }
7046
+ if (!$dara.isNull(request.prompt)) {
7047
+ body["Prompt"] = request.prompt;
7048
+ }
7049
+ if (!$dara.isNull(request.sessionId)) {
7050
+ body["SessionId"] = request.sessionId;
7051
+ }
7052
+ if (!$dara.isNull(request.wordNumber)) {
7053
+ body["WordNumber"] = request.wordNumber;
7054
+ }
7055
+ if (!$dara.isNull(request.workspaceId)) {
7056
+ body["WorkspaceId"] = request.workspaceId;
7057
+ }
7058
+ if (!$dara.isNull(request.referenceContent)) {
7059
+ body["referenceContent"] = request.referenceContent;
7060
+ }
7061
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7062
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7063
+ });
7064
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7065
+ action: "RunDocBrainmap",
7066
+ version: "2023-08-01",
7067
+ protocol: "HTTPS",
7068
+ pathname: "/",
7069
+ method: "POST",
7070
+ authType: "AK",
7071
+ style: "RPC",
7072
+ reqBodyType: "formData",
7073
+ bodyType: "json",
7074
+ });
7075
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7076
+ try {
7077
+ for (var _d = true, sseResp_10 = __asyncValues(sseResp), sseResp_10_1; sseResp_10_1 = yield __await(sseResp_10.next()), _a = sseResp_10_1.done, !_a; _d = true) {
7078
+ _c = sseResp_10_1.value;
7079
+ _d = false;
7080
+ let resp = _c;
7081
+ let data = JSON.parse(resp.event.data);
7082
+ yield yield __await($dara.cast({
7083
+ statusCode: resp.statusCode,
7084
+ headers: resp.headers,
7085
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7086
+ }, new $_model.RunDocBrainmapResponse({})));
7087
+ }
7088
+ }
7089
+ catch (e_10_1) { e_10 = { error: e_10_1 }; }
7090
+ finally {
7091
+ try {
7092
+ if (!_d && !_a && (_b = sseResp_10.return)) yield __await(_b.call(sseResp_10));
7093
+ }
7094
+ finally { if (e_10) throw e_10.error; }
7095
+ }
7096
+ });
7097
+ }
7098
+ /**
7099
+ * 妙读脑图生成接口
7100
+ *
7101
+ * @param request - RunDocBrainmapRequest
7102
+ * @param runtime - runtime options for this request RuntimeOptions
7103
+ * @returns RunDocBrainmapResponse
7104
+ */
7105
+ async runDocBrainmapWithOptions(request, runtime) {
7106
+ request.validate();
7107
+ let body = {};
7108
+ if (!$dara.isNull(request.cleanCache)) {
7109
+ body["CleanCache"] = request.cleanCache;
7110
+ }
7111
+ if (!$dara.isNull(request.docId)) {
7112
+ body["DocId"] = request.docId;
7113
+ }
7114
+ if (!$dara.isNull(request.modelName)) {
7115
+ body["ModelName"] = request.modelName;
7116
+ }
7117
+ if (!$dara.isNull(request.nodeNumber)) {
6146
7118
  body["NodeNumber"] = request.nodeNumber;
6147
7119
  }
6148
7120
  if (!$dara.isNull(request.prompt)) {
@@ -6186,6 +7158,82 @@ class Client extends openapi_core_1.default {
6186
7158
  let runtime = new $dara.RuntimeOptions({});
6187
7159
  return await this.runDocBrainmapWithOptions(request, runtime);
6188
7160
  }
7161
+ /**
7162
+ * 妙读文档导读接口
7163
+ *
7164
+ * @param request - RunDocIntroductionRequest
7165
+ * @param runtime - runtime options for this request RuntimeOptions
7166
+ * @returns RunDocIntroductionResponse
7167
+ */
7168
+ runDocIntroductionWithSSE(request, runtime) {
7169
+ return __asyncGenerator(this, arguments, function* runDocIntroductionWithSSE_1() {
7170
+ var _a, e_11, _b, _c;
7171
+ request.validate();
7172
+ let body = {};
7173
+ if (!$dara.isNull(request.cleanCache)) {
7174
+ body["CleanCache"] = request.cleanCache;
7175
+ }
7176
+ if (!$dara.isNull(request.docId)) {
7177
+ body["DocId"] = request.docId;
7178
+ }
7179
+ if (!$dara.isNull(request.introductionPrompt)) {
7180
+ body["IntroductionPrompt"] = request.introductionPrompt;
7181
+ }
7182
+ if (!$dara.isNull(request.keyPointPrompt)) {
7183
+ body["KeyPointPrompt"] = request.keyPointPrompt;
7184
+ }
7185
+ if (!$dara.isNull(request.modelName)) {
7186
+ body["ModelName"] = request.modelName;
7187
+ }
7188
+ if (!$dara.isNull(request.sessionId)) {
7189
+ body["SessionId"] = request.sessionId;
7190
+ }
7191
+ if (!$dara.isNull(request.summaryPrompt)) {
7192
+ body["SummaryPrompt"] = request.summaryPrompt;
7193
+ }
7194
+ if (!$dara.isNull(request.workspaceId)) {
7195
+ body["WorkspaceId"] = request.workspaceId;
7196
+ }
7197
+ if (!$dara.isNull(request.referenceContent)) {
7198
+ body["referenceContent"] = request.referenceContent;
7199
+ }
7200
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7201
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7202
+ });
7203
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7204
+ action: "RunDocIntroduction",
7205
+ version: "2023-08-01",
7206
+ protocol: "HTTPS",
7207
+ pathname: "/",
7208
+ method: "POST",
7209
+ authType: "AK",
7210
+ style: "RPC",
7211
+ reqBodyType: "formData",
7212
+ bodyType: "json",
7213
+ });
7214
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7215
+ try {
7216
+ for (var _d = true, sseResp_11 = __asyncValues(sseResp), sseResp_11_1; sseResp_11_1 = yield __await(sseResp_11.next()), _a = sseResp_11_1.done, !_a; _d = true) {
7217
+ _c = sseResp_11_1.value;
7218
+ _d = false;
7219
+ let resp = _c;
7220
+ let data = JSON.parse(resp.event.data);
7221
+ yield yield __await($dara.cast({
7222
+ statusCode: resp.statusCode,
7223
+ headers: resp.headers,
7224
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7225
+ }, new $_model.RunDocIntroductionResponse({})));
7226
+ }
7227
+ }
7228
+ catch (e_11_1) { e_11 = { error: e_11_1 }; }
7229
+ finally {
7230
+ try {
7231
+ if (!_d && !_a && (_b = sseResp_11.return)) yield __await(_b.call(sseResp_11));
7232
+ }
7233
+ finally { if (e_11) throw e_11.error; }
7234
+ }
7235
+ });
7236
+ }
6189
7237
  /**
6190
7238
  * 妙读文档导读接口
6191
7239
  *
@@ -6249,6 +7297,93 @@ class Client extends openapi_core_1.default {
6249
7297
  let runtime = new $dara.RuntimeOptions({});
6250
7298
  return await this.runDocIntroductionWithOptions(request, runtime);
6251
7299
  }
7300
+ /**
7301
+ * 妙读问答接口
7302
+ *
7303
+ * @param tmpReq - RunDocQaRequest
7304
+ * @param runtime - runtime options for this request RuntimeOptions
7305
+ * @returns RunDocQaResponse
7306
+ */
7307
+ runDocQaWithSSE(tmpReq, runtime) {
7308
+ return __asyncGenerator(this, arguments, function* runDocQaWithSSE_1() {
7309
+ var _a, e_12, _b, _c;
7310
+ tmpReq.validate();
7311
+ let request = new $_model.RunDocQaShrinkRequest({});
7312
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
7313
+ if (!$dara.isNull(tmpReq.categoryIds)) {
7314
+ request.categoryIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.categoryIds, "CategoryIds", "json");
7315
+ }
7316
+ if (!$dara.isNull(tmpReq.conversationContexts)) {
7317
+ request.conversationContextsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.conversationContexts, "ConversationContexts", "json");
7318
+ }
7319
+ if (!$dara.isNull(tmpReq.docIds)) {
7320
+ request.docIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.docIds, "DocIds", "json");
7321
+ }
7322
+ let body = {};
7323
+ if (!$dara.isNull(request.categoryIdsShrink)) {
7324
+ body["CategoryIds"] = request.categoryIdsShrink;
7325
+ }
7326
+ if (!$dara.isNull(request.conversationContextsShrink)) {
7327
+ body["ConversationContexts"] = request.conversationContextsShrink;
7328
+ }
7329
+ if (!$dara.isNull(request.docIdsShrink)) {
7330
+ body["DocIds"] = request.docIdsShrink;
7331
+ }
7332
+ if (!$dara.isNull(request.modelName)) {
7333
+ body["ModelName"] = request.modelName;
7334
+ }
7335
+ if (!$dara.isNull(request.query)) {
7336
+ body["Query"] = request.query;
7337
+ }
7338
+ if (!$dara.isNull(request.referenceContent)) {
7339
+ body["ReferenceContent"] = request.referenceContent;
7340
+ }
7341
+ if (!$dara.isNull(request.searchSource)) {
7342
+ body["SearchSource"] = request.searchSource;
7343
+ }
7344
+ if (!$dara.isNull(request.sessionId)) {
7345
+ body["SessionId"] = request.sessionId;
7346
+ }
7347
+ if (!$dara.isNull(request.workspaceId)) {
7348
+ body["WorkspaceId"] = request.workspaceId;
7349
+ }
7350
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7351
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7352
+ });
7353
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7354
+ action: "RunDocQa",
7355
+ version: "2023-08-01",
7356
+ protocol: "HTTPS",
7357
+ pathname: "/",
7358
+ method: "POST",
7359
+ authType: "AK",
7360
+ style: "RPC",
7361
+ reqBodyType: "formData",
7362
+ bodyType: "json",
7363
+ });
7364
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7365
+ try {
7366
+ for (var _d = true, sseResp_12 = __asyncValues(sseResp), sseResp_12_1; sseResp_12_1 = yield __await(sseResp_12.next()), _a = sseResp_12_1.done, !_a; _d = true) {
7367
+ _c = sseResp_12_1.value;
7368
+ _d = false;
7369
+ let resp = _c;
7370
+ let data = JSON.parse(resp.event.data);
7371
+ yield yield __await($dara.cast({
7372
+ statusCode: resp.statusCode,
7373
+ headers: resp.headers,
7374
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7375
+ }, new $_model.RunDocQaResponse({})));
7376
+ }
7377
+ }
7378
+ catch (e_12_1) { e_12 = { error: e_12_1 }; }
7379
+ finally {
7380
+ try {
7381
+ if (!_d && !_a && (_b = sseResp_12.return)) yield __await(_b.call(sseResp_12));
7382
+ }
7383
+ finally { if (e_12) throw e_12.error; }
7384
+ }
7385
+ });
7386
+ }
6252
7387
  /**
6253
7388
  * 妙读问答接口
6254
7389
  *
@@ -6323,6 +7458,70 @@ class Client extends openapi_core_1.default {
6323
7458
  let runtime = new $dara.RuntimeOptions({});
6324
7459
  return await this.runDocQaWithOptions(request, runtime);
6325
7460
  }
7461
+ /**
7462
+ * 文档智能卡片接口
7463
+ *
7464
+ * @param request - RunDocSmartCardRequest
7465
+ * @param runtime - runtime options for this request RuntimeOptions
7466
+ * @returns RunDocSmartCardResponse
7467
+ */
7468
+ runDocSmartCardWithSSE(request, runtime) {
7469
+ return __asyncGenerator(this, arguments, function* runDocSmartCardWithSSE_1() {
7470
+ var _a, e_13, _b, _c;
7471
+ request.validate();
7472
+ let body = {};
7473
+ if (!$dara.isNull(request.docId)) {
7474
+ body["DocId"] = request.docId;
7475
+ }
7476
+ if (!$dara.isNull(request.modelName)) {
7477
+ body["ModelName"] = request.modelName;
7478
+ }
7479
+ if (!$dara.isNull(request.prompt)) {
7480
+ body["Prompt"] = request.prompt;
7481
+ }
7482
+ if (!$dara.isNull(request.sessionId)) {
7483
+ body["SessionId"] = request.sessionId;
7484
+ }
7485
+ if (!$dara.isNull(request.workspaceId)) {
7486
+ body["WorkspaceId"] = request.workspaceId;
7487
+ }
7488
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7489
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7490
+ });
7491
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7492
+ action: "RunDocSmartCard",
7493
+ version: "2023-08-01",
7494
+ protocol: "HTTPS",
7495
+ pathname: "/",
7496
+ method: "POST",
7497
+ authType: "AK",
7498
+ style: "RPC",
7499
+ reqBodyType: "formData",
7500
+ bodyType: "json",
7501
+ });
7502
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7503
+ try {
7504
+ for (var _d = true, sseResp_13 = __asyncValues(sseResp), sseResp_13_1; sseResp_13_1 = yield __await(sseResp_13.next()), _a = sseResp_13_1.done, !_a; _d = true) {
7505
+ _c = sseResp_13_1.value;
7506
+ _d = false;
7507
+ let resp = _c;
7508
+ let data = JSON.parse(resp.event.data);
7509
+ yield yield __await($dara.cast({
7510
+ statusCode: resp.statusCode,
7511
+ headers: resp.headers,
7512
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7513
+ }, new $_model.RunDocSmartCardResponse({})));
7514
+ }
7515
+ }
7516
+ catch (e_13_1) { e_13 = { error: e_13_1 }; }
7517
+ finally {
7518
+ try {
7519
+ if (!_d && !_a && (_b = sseResp_13.return)) yield __await(_b.call(sseResp_13));
7520
+ }
7521
+ finally { if (e_13) throw e_13.error; }
7522
+ }
7523
+ });
7524
+ }
6326
7525
  /**
6327
7526
  * 文档智能卡片接口
6328
7527
  *
@@ -6374,6 +7573,76 @@ class Client extends openapi_core_1.default {
6374
7573
  let runtime = new $dara.RuntimeOptions({});
6375
7574
  return await this.runDocSmartCardWithOptions(request, runtime);
6376
7575
  }
7576
+ /**
7577
+ * 妙读文档总结摘要接口
7578
+ *
7579
+ * @param request - RunDocSummaryRequest
7580
+ * @param runtime - runtime options for this request RuntimeOptions
7581
+ * @returns RunDocSummaryResponse
7582
+ */
7583
+ runDocSummaryWithSSE(request, runtime) {
7584
+ return __asyncGenerator(this, arguments, function* runDocSummaryWithSSE_1() {
7585
+ var _a, e_14, _b, _c;
7586
+ request.validate();
7587
+ let body = {};
7588
+ if (!$dara.isNull(request.cleanCache)) {
7589
+ body["CleanCache"] = request.cleanCache;
7590
+ }
7591
+ if (!$dara.isNull(request.docId)) {
7592
+ body["DocId"] = request.docId;
7593
+ }
7594
+ if (!$dara.isNull(request.modelName)) {
7595
+ body["ModelName"] = request.modelName;
7596
+ }
7597
+ if (!$dara.isNull(request.query)) {
7598
+ body["Query"] = request.query;
7599
+ }
7600
+ if (!$dara.isNull(request.recommendContent)) {
7601
+ body["RecommendContent"] = request.recommendContent;
7602
+ }
7603
+ if (!$dara.isNull(request.sessionId)) {
7604
+ body["SessionId"] = request.sessionId;
7605
+ }
7606
+ if (!$dara.isNull(request.workspaceId)) {
7607
+ body["WorkspaceId"] = request.workspaceId;
7608
+ }
7609
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7610
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7611
+ });
7612
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7613
+ action: "RunDocSummary",
7614
+ version: "2023-08-01",
7615
+ protocol: "HTTPS",
7616
+ pathname: "/",
7617
+ method: "POST",
7618
+ authType: "AK",
7619
+ style: "RPC",
7620
+ reqBodyType: "formData",
7621
+ bodyType: "json",
7622
+ });
7623
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7624
+ try {
7625
+ for (var _d = true, sseResp_14 = __asyncValues(sseResp), sseResp_14_1; sseResp_14_1 = yield __await(sseResp_14.next()), _a = sseResp_14_1.done, !_a; _d = true) {
7626
+ _c = sseResp_14_1.value;
7627
+ _d = false;
7628
+ let resp = _c;
7629
+ let data = JSON.parse(resp.event.data);
7630
+ yield yield __await($dara.cast({
7631
+ statusCode: resp.statusCode,
7632
+ headers: resp.headers,
7633
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7634
+ }, new $_model.RunDocSummaryResponse({})));
7635
+ }
7636
+ }
7637
+ catch (e_14_1) { e_14 = { error: e_14_1 }; }
7638
+ finally {
7639
+ try {
7640
+ if (!_d && !_a && (_b = sseResp_14.return)) yield __await(_b.call(sseResp_14));
7641
+ }
7642
+ finally { if (e_14) throw e_14.error; }
7643
+ }
7644
+ });
7645
+ }
6377
7646
  /**
6378
7647
  * 妙读文档总结摘要接口
6379
7648
  *
@@ -6431,6 +7700,76 @@ class Client extends openapi_core_1.default {
6431
7700
  let runtime = new $dara.RuntimeOptions({});
6432
7701
  return await this.runDocSummaryWithOptions(request, runtime);
6433
7702
  }
7703
+ /**
7704
+ * 妙读文档翻译接口
7705
+ *
7706
+ * @param request - RunDocTranslationRequest
7707
+ * @param runtime - runtime options for this request RuntimeOptions
7708
+ * @returns RunDocTranslationResponse
7709
+ */
7710
+ runDocTranslationWithSSE(request, runtime) {
7711
+ return __asyncGenerator(this, arguments, function* runDocTranslationWithSSE_1() {
7712
+ var _a, e_15, _b, _c;
7713
+ request.validate();
7714
+ let body = {};
7715
+ if (!$dara.isNull(request.cleanCache)) {
7716
+ body["CleanCache"] = request.cleanCache;
7717
+ }
7718
+ if (!$dara.isNull(request.docId)) {
7719
+ body["DocId"] = request.docId;
7720
+ }
7721
+ if (!$dara.isNull(request.modelName)) {
7722
+ body["ModelName"] = request.modelName;
7723
+ }
7724
+ if (!$dara.isNull(request.recommendContent)) {
7725
+ body["RecommendContent"] = request.recommendContent;
7726
+ }
7727
+ if (!$dara.isNull(request.sessionId)) {
7728
+ body["SessionId"] = request.sessionId;
7729
+ }
7730
+ if (!$dara.isNull(request.transType)) {
7731
+ body["TransType"] = request.transType;
7732
+ }
7733
+ if (!$dara.isNull(request.workspaceId)) {
7734
+ body["WorkspaceId"] = request.workspaceId;
7735
+ }
7736
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7737
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7738
+ });
7739
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7740
+ action: "RunDocTranslation",
7741
+ version: "2023-08-01",
7742
+ protocol: "HTTPS",
7743
+ pathname: "/",
7744
+ method: "POST",
7745
+ authType: "AK",
7746
+ style: "RPC",
7747
+ reqBodyType: "formData",
7748
+ bodyType: "json",
7749
+ });
7750
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7751
+ try {
7752
+ for (var _d = true, sseResp_15 = __asyncValues(sseResp), sseResp_15_1; sseResp_15_1 = yield __await(sseResp_15.next()), _a = sseResp_15_1.done, !_a; _d = true) {
7753
+ _c = sseResp_15_1.value;
7754
+ _d = false;
7755
+ let resp = _c;
7756
+ let data = JSON.parse(resp.event.data);
7757
+ yield yield __await($dara.cast({
7758
+ statusCode: resp.statusCode,
7759
+ headers: resp.headers,
7760
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7761
+ }, new $_model.RunDocTranslationResponse({})));
7762
+ }
7763
+ }
7764
+ catch (e_15_1) { e_15 = { error: e_15_1 }; }
7765
+ finally {
7766
+ try {
7767
+ if (!_d && !_a && (_b = sseResp_15.return)) yield __await(_b.call(sseResp_15));
7768
+ }
7769
+ finally { if (e_15) throw e_15.error; }
7770
+ }
7771
+ });
7772
+ }
6434
7773
  /**
6435
7774
  * 妙读文档翻译接口
6436
7775
  *
@@ -6488,6 +7827,82 @@ class Client extends openapi_core_1.default {
6488
7827
  let runtime = new $dara.RuntimeOptions({});
6489
7828
  return await this.runDocTranslationWithOptions(request, runtime);
6490
7829
  }
7830
+ /**
7831
+ * 文档改写
7832
+ *
7833
+ * @param request - RunDocWashingRequest
7834
+ * @param runtime - runtime options for this request RuntimeOptions
7835
+ * @returns RunDocWashingResponse
7836
+ */
7837
+ runDocWashingWithSSE(request, runtime) {
7838
+ return __asyncGenerator(this, arguments, function* runDocWashingWithSSE_1() {
7839
+ var _a, e_16, _b, _c;
7840
+ request.validate();
7841
+ let body = {};
7842
+ if (!$dara.isNull(request.modelId)) {
7843
+ body["ModelId"] = request.modelId;
7844
+ }
7845
+ if (!$dara.isNull(request.prompt)) {
7846
+ body["Prompt"] = request.prompt;
7847
+ }
7848
+ if (!$dara.isNull(request.referenceContent)) {
7849
+ body["ReferenceContent"] = request.referenceContent;
7850
+ }
7851
+ if (!$dara.isNull(request.sessionId)) {
7852
+ body["SessionId"] = request.sessionId;
7853
+ }
7854
+ if (!$dara.isNull(request.topic)) {
7855
+ body["Topic"] = request.topic;
7856
+ }
7857
+ if (!$dara.isNull(request.wordNumber)) {
7858
+ body["WordNumber"] = request.wordNumber;
7859
+ }
7860
+ if (!$dara.isNull(request.workspaceId)) {
7861
+ body["WorkspaceId"] = request.workspaceId;
7862
+ }
7863
+ if (!$dara.isNull(request.writingTypeName)) {
7864
+ body["WritingTypeName"] = request.writingTypeName;
7865
+ }
7866
+ if (!$dara.isNull(request.writingTypeRefDoc)) {
7867
+ body["WritingTypeRefDoc"] = request.writingTypeRefDoc;
7868
+ }
7869
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7870
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7871
+ });
7872
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7873
+ action: "RunDocWashing",
7874
+ version: "2023-08-01",
7875
+ protocol: "HTTPS",
7876
+ pathname: "/",
7877
+ method: "POST",
7878
+ authType: "AK",
7879
+ style: "RPC",
7880
+ reqBodyType: "formData",
7881
+ bodyType: "json",
7882
+ });
7883
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
7884
+ try {
7885
+ for (var _d = true, sseResp_16 = __asyncValues(sseResp), sseResp_16_1; sseResp_16_1 = yield __await(sseResp_16.next()), _a = sseResp_16_1.done, !_a; _d = true) {
7886
+ _c = sseResp_16_1.value;
7887
+ _d = false;
7888
+ let resp = _c;
7889
+ let data = JSON.parse(resp.event.data);
7890
+ yield yield __await($dara.cast({
7891
+ statusCode: resp.statusCode,
7892
+ headers: resp.headers,
7893
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
7894
+ }, new $_model.RunDocWashingResponse({})));
7895
+ }
7896
+ }
7897
+ catch (e_16_1) { e_16 = { error: e_16_1 }; }
7898
+ finally {
7899
+ try {
7900
+ if (!_d && !_a && (_b = sseResp_16.return)) yield __await(_b.call(sseResp_16));
7901
+ }
7902
+ finally { if (e_16) throw e_16.error; }
7903
+ }
7904
+ });
7905
+ }
6491
7906
  /**
6492
7907
  * 文档改写
6493
7908
  *
@@ -6551,6 +7966,64 @@ class Client extends openapi_core_1.default {
6551
7966
  let runtime = new $dara.RuntimeOptions({});
6552
7967
  return await this.runDocWashingWithOptions(request, runtime);
6553
7968
  }
7969
+ /**
7970
+ * 内容扩写
7971
+ *
7972
+ * @param request - RunExpandContentRequest
7973
+ * @param runtime - runtime options for this request RuntimeOptions
7974
+ * @returns RunExpandContentResponse
7975
+ */
7976
+ runExpandContentWithSSE(request, runtime) {
7977
+ return __asyncGenerator(this, arguments, function* runExpandContentWithSSE_1() {
7978
+ var _a, e_17, _b, _c;
7979
+ request.validate();
7980
+ let body = {};
7981
+ if (!$dara.isNull(request.content)) {
7982
+ body["Content"] = request.content;
7983
+ }
7984
+ if (!$dara.isNull(request.prompt)) {
7985
+ body["Prompt"] = request.prompt;
7986
+ }
7987
+ if (!$dara.isNull(request.workspaceId)) {
7988
+ body["WorkspaceId"] = request.workspaceId;
7989
+ }
7990
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
7991
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
7992
+ });
7993
+ let params = new openapi_core_2.$OpenApiUtil.Params({
7994
+ action: "RunExpandContent",
7995
+ version: "2023-08-01",
7996
+ protocol: "HTTPS",
7997
+ pathname: "/",
7998
+ method: "POST",
7999
+ authType: "AK",
8000
+ style: "RPC",
8001
+ reqBodyType: "formData",
8002
+ bodyType: "json",
8003
+ });
8004
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8005
+ try {
8006
+ for (var _d = true, sseResp_17 = __asyncValues(sseResp), sseResp_17_1; sseResp_17_1 = yield __await(sseResp_17.next()), _a = sseResp_17_1.done, !_a; _d = true) {
8007
+ _c = sseResp_17_1.value;
8008
+ _d = false;
8009
+ let resp = _c;
8010
+ let data = JSON.parse(resp.event.data);
8011
+ yield yield __await($dara.cast({
8012
+ statusCode: resp.statusCode,
8013
+ headers: resp.headers,
8014
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8015
+ }, new $_model.RunExpandContentResponse({})));
8016
+ }
8017
+ }
8018
+ catch (e_17_1) { e_17 = { error: e_17_1 }; }
8019
+ finally {
8020
+ try {
8021
+ if (!_d && !_a && (_b = sseResp_17.return)) yield __await(_b.call(sseResp_17));
8022
+ }
8023
+ finally { if (e_17) throw e_17.error; }
8024
+ }
8025
+ });
8026
+ }
6554
8027
  /**
6555
8028
  * 内容扩写
6556
8029
  *
@@ -6596,6 +8069,70 @@ class Client extends openapi_core_1.default {
6596
8069
  let runtime = new $dara.RuntimeOptions({});
6597
8070
  return await this.runExpandContentWithOptions(request, runtime);
6598
8071
  }
8072
+ /**
8073
+ * 妙读猜你想问接口
8074
+ *
8075
+ * @param request - RunGenerateQuestionsRequest
8076
+ * @param runtime - runtime options for this request RuntimeOptions
8077
+ * @returns RunGenerateQuestionsResponse
8078
+ */
8079
+ runGenerateQuestionsWithSSE(request, runtime) {
8080
+ return __asyncGenerator(this, arguments, function* runGenerateQuestionsWithSSE_1() {
8081
+ var _a, e_18, _b, _c;
8082
+ request.validate();
8083
+ let body = {};
8084
+ if (!$dara.isNull(request.docId)) {
8085
+ body["DocId"] = request.docId;
8086
+ }
8087
+ if (!$dara.isNull(request.modelName)) {
8088
+ body["ModelName"] = request.modelName;
8089
+ }
8090
+ if (!$dara.isNull(request.referenceContent)) {
8091
+ body["ReferenceContent"] = request.referenceContent;
8092
+ }
8093
+ if (!$dara.isNull(request.sessionId)) {
8094
+ body["SessionId"] = request.sessionId;
8095
+ }
8096
+ if (!$dara.isNull(request.workspaceId)) {
8097
+ body["WorkspaceId"] = request.workspaceId;
8098
+ }
8099
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8100
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8101
+ });
8102
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8103
+ action: "RunGenerateQuestions",
8104
+ version: "2023-08-01",
8105
+ protocol: "HTTPS",
8106
+ pathname: "/",
8107
+ method: "POST",
8108
+ authType: "AK",
8109
+ style: "RPC",
8110
+ reqBodyType: "formData",
8111
+ bodyType: "json",
8112
+ });
8113
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8114
+ try {
8115
+ for (var _d = true, sseResp_18 = __asyncValues(sseResp), sseResp_18_1; sseResp_18_1 = yield __await(sseResp_18.next()), _a = sseResp_18_1.done, !_a; _d = true) {
8116
+ _c = sseResp_18_1.value;
8117
+ _d = false;
8118
+ let resp = _c;
8119
+ let data = JSON.parse(resp.event.data);
8120
+ yield yield __await($dara.cast({
8121
+ statusCode: resp.statusCode,
8122
+ headers: resp.headers,
8123
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8124
+ }, new $_model.RunGenerateQuestionsResponse({})));
8125
+ }
8126
+ }
8127
+ catch (e_18_1) { e_18 = { error: e_18_1 }; }
8128
+ finally {
8129
+ try {
8130
+ if (!_d && !_a && (_b = sseResp_18.return)) yield __await(_b.call(sseResp_18));
8131
+ }
8132
+ finally { if (e_18) throw e_18.error; }
8133
+ }
8134
+ });
8135
+ }
6599
8136
  /**
6600
8137
  * 妙读猜你想问接口
6601
8138
  *
@@ -6647,6 +8184,73 @@ class Client extends openapi_core_1.default {
6647
8184
  let runtime = new $dara.RuntimeOptions({});
6648
8185
  return await this.runGenerateQuestionsWithOptions(request, runtime);
6649
8186
  }
8187
+ /**
8188
+ * 妙读文档关键词抽取接口
8189
+ *
8190
+ * @param request - RunHotwordRequest
8191
+ * @param runtime - runtime options for this request RuntimeOptions
8192
+ * @returns RunHotwordResponse
8193
+ */
8194
+ runHotwordWithSSE(request, runtime) {
8195
+ return __asyncGenerator(this, arguments, function* runHotwordWithSSE_1() {
8196
+ var _a, e_19, _b, _c;
8197
+ request.validate();
8198
+ let body = {};
8199
+ if (!$dara.isNull(request.docId)) {
8200
+ body["DocId"] = request.docId;
8201
+ }
8202
+ if (!$dara.isNull(request.modelName)) {
8203
+ body["ModelName"] = request.modelName;
8204
+ }
8205
+ if (!$dara.isNull(request.prompt)) {
8206
+ body["Prompt"] = request.prompt;
8207
+ }
8208
+ if (!$dara.isNull(request.referenceContent)) {
8209
+ body["ReferenceContent"] = request.referenceContent;
8210
+ }
8211
+ if (!$dara.isNull(request.sessionId)) {
8212
+ body["SessionId"] = request.sessionId;
8213
+ }
8214
+ if (!$dara.isNull(request.workspaceId)) {
8215
+ body["WorkspaceId"] = request.workspaceId;
8216
+ }
8217
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8218
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8219
+ });
8220
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8221
+ action: "RunHotword",
8222
+ version: "2023-08-01",
8223
+ protocol: "HTTPS",
8224
+ pathname: "/",
8225
+ method: "POST",
8226
+ authType: "AK",
8227
+ style: "RPC",
8228
+ reqBodyType: "formData",
8229
+ bodyType: "json",
8230
+ });
8231
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8232
+ try {
8233
+ for (var _d = true, sseResp_19 = __asyncValues(sseResp), sseResp_19_1; sseResp_19_1 = yield __await(sseResp_19.next()), _a = sseResp_19_1.done, !_a; _d = true) {
8234
+ _c = sseResp_19_1.value;
8235
+ _d = false;
8236
+ let resp = _c;
8237
+ let data = JSON.parse(resp.event.data);
8238
+ yield yield __await($dara.cast({
8239
+ statusCode: resp.statusCode,
8240
+ headers: resp.headers,
8241
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8242
+ }, new $_model.RunHotwordResponse({})));
8243
+ }
8244
+ }
8245
+ catch (e_19_1) { e_19 = { error: e_19_1 }; }
8246
+ finally {
8247
+ try {
8248
+ if (!_d && !_a && (_b = sseResp_19.return)) yield __await(_b.call(sseResp_19));
8249
+ }
8250
+ finally { if (e_19) throw e_19.error; }
8251
+ }
8252
+ });
8253
+ }
6650
8254
  /**
6651
8255
  * 妙读文档关键词抽取接口
6652
8256
  *
@@ -6701,6 +8305,72 @@ class Client extends openapi_core_1.default {
6701
8305
  let runtime = new $dara.RuntimeOptions({});
6702
8306
  return await this.runHotwordWithOptions(request, runtime);
6703
8307
  }
8308
+ /**
8309
+ * AI妙笔-创作-抽取关键词
8310
+ *
8311
+ * @param tmpReq - RunKeywordsExtractionGenerationRequest
8312
+ * @param runtime - runtime options for this request RuntimeOptions
8313
+ * @returns RunKeywordsExtractionGenerationResponse
8314
+ */
8315
+ runKeywordsExtractionGenerationWithSSE(tmpReq, runtime) {
8316
+ return __asyncGenerator(this, arguments, function* runKeywordsExtractionGenerationWithSSE_1() {
8317
+ var _a, e_20, _b, _c;
8318
+ tmpReq.validate();
8319
+ let request = new $_model.RunKeywordsExtractionGenerationShrinkRequest({});
8320
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8321
+ if (!$dara.isNull(tmpReq.referenceData)) {
8322
+ request.referenceDataShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
8323
+ }
8324
+ let body = {};
8325
+ if (!$dara.isNull(request.prompt)) {
8326
+ body["Prompt"] = request.prompt;
8327
+ }
8328
+ if (!$dara.isNull(request.referenceDataShrink)) {
8329
+ body["ReferenceData"] = request.referenceDataShrink;
8330
+ }
8331
+ if (!$dara.isNull(request.taskId)) {
8332
+ body["TaskId"] = request.taskId;
8333
+ }
8334
+ if (!$dara.isNull(request.workspaceId)) {
8335
+ body["WorkspaceId"] = request.workspaceId;
8336
+ }
8337
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8338
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8339
+ });
8340
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8341
+ action: "RunKeywordsExtractionGeneration",
8342
+ version: "2023-08-01",
8343
+ protocol: "HTTPS",
8344
+ pathname: "/",
8345
+ method: "POST",
8346
+ authType: "AK",
8347
+ style: "RPC",
8348
+ reqBodyType: "formData",
8349
+ bodyType: "json",
8350
+ });
8351
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8352
+ try {
8353
+ for (var _d = true, sseResp_20 = __asyncValues(sseResp), sseResp_20_1; sseResp_20_1 = yield __await(sseResp_20.next()), _a = sseResp_20_1.done, !_a; _d = true) {
8354
+ _c = sseResp_20_1.value;
8355
+ _d = false;
8356
+ let resp = _c;
8357
+ let data = JSON.parse(resp.event.data);
8358
+ yield yield __await($dara.cast({
8359
+ statusCode: resp.statusCode,
8360
+ headers: resp.headers,
8361
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8362
+ }, new $_model.RunKeywordsExtractionGenerationResponse({})));
8363
+ }
8364
+ }
8365
+ catch (e_20_1) { e_20 = { error: e_20_1 }; }
8366
+ finally {
8367
+ try {
8368
+ if (!_d && !_a && (_b = sseResp_20.return)) yield __await(_b.call(sseResp_20));
8369
+ }
8370
+ finally { if (e_20) throw e_20.error; }
8371
+ }
8372
+ });
8373
+ }
6704
8374
  /**
6705
8375
  * AI妙笔-创作-抽取关键词
6706
8376
  *
@@ -6754,6 +8424,78 @@ class Client extends openapi_core_1.default {
6754
8424
  let runtime = new $dara.RuntimeOptions({});
6755
8425
  return await this.runKeywordsExtractionGenerationWithOptions(request, runtime);
6756
8426
  }
8427
+ /**
8428
+ * 文档批量导读
8429
+ *
8430
+ * @param tmpReq - RunMultiDocIntroductionRequest
8431
+ * @param runtime - runtime options for this request RuntimeOptions
8432
+ * @returns RunMultiDocIntroductionResponse
8433
+ */
8434
+ runMultiDocIntroductionWithSSE(tmpReq, runtime) {
8435
+ return __asyncGenerator(this, arguments, function* runMultiDocIntroductionWithSSE_1() {
8436
+ var _a, e_21, _b, _c;
8437
+ tmpReq.validate();
8438
+ let request = new $_model.RunMultiDocIntroductionShrinkRequest({});
8439
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8440
+ if (!$dara.isNull(tmpReq.docIds)) {
8441
+ request.docIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.docIds, "DocIds", "json");
8442
+ }
8443
+ let body = {};
8444
+ if (!$dara.isNull(request.docIdsShrink)) {
8445
+ body["DocIds"] = request.docIdsShrink;
8446
+ }
8447
+ if (!$dara.isNull(request.keyPointPrompt)) {
8448
+ body["KeyPointPrompt"] = request.keyPointPrompt;
8449
+ }
8450
+ if (!$dara.isNull(request.modelName)) {
8451
+ body["ModelName"] = request.modelName;
8452
+ }
8453
+ if (!$dara.isNull(request.sessionId)) {
8454
+ body["SessionId"] = request.sessionId;
8455
+ }
8456
+ if (!$dara.isNull(request.summaryPrompt)) {
8457
+ body["SummaryPrompt"] = request.summaryPrompt;
8458
+ }
8459
+ if (!$dara.isNull(request.workspaceId)) {
8460
+ body["WorkspaceId"] = request.workspaceId;
8461
+ }
8462
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8463
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8464
+ });
8465
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8466
+ action: "RunMultiDocIntroduction",
8467
+ version: "2023-08-01",
8468
+ protocol: "HTTPS",
8469
+ pathname: "/",
8470
+ method: "POST",
8471
+ authType: "AK",
8472
+ style: "RPC",
8473
+ reqBodyType: "formData",
8474
+ bodyType: "json",
8475
+ });
8476
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8477
+ try {
8478
+ for (var _d = true, sseResp_21 = __asyncValues(sseResp), sseResp_21_1; sseResp_21_1 = yield __await(sseResp_21.next()), _a = sseResp_21_1.done, !_a; _d = true) {
8479
+ _c = sseResp_21_1.value;
8480
+ _d = false;
8481
+ let resp = _c;
8482
+ let data = JSON.parse(resp.event.data);
8483
+ yield yield __await($dara.cast({
8484
+ statusCode: resp.statusCode,
8485
+ headers: resp.headers,
8486
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8487
+ }, new $_model.RunMultiDocIntroductionResponse({})));
8488
+ }
8489
+ }
8490
+ catch (e_21_1) { e_21 = { error: e_21_1 }; }
8491
+ finally {
8492
+ try {
8493
+ if (!_d && !_a && (_b = sseResp_21.return)) yield __await(_b.call(sseResp_21));
8494
+ }
8495
+ finally { if (e_21) throw e_21.error; }
8496
+ }
8497
+ });
8498
+ }
6757
8499
  /**
6758
8500
  * 文档批量导读
6759
8501
  *
@@ -6813,6 +8555,84 @@ class Client extends openapi_core_1.default {
6813
8555
  let runtime = new $dara.RuntimeOptions({});
6814
8556
  return await this.runMultiDocIntroductionWithOptions(request, runtime);
6815
8557
  }
8558
+ /**
8559
+ * AI妙搜-智能搜索生成
8560
+ *
8561
+ * @param tmpReq - RunSearchGenerationRequest
8562
+ * @param runtime - runtime options for this request RuntimeOptions
8563
+ * @returns RunSearchGenerationResponse
8564
+ */
8565
+ runSearchGenerationWithSSE(tmpReq, runtime) {
8566
+ return __asyncGenerator(this, arguments, function* runSearchGenerationWithSSE_1() {
8567
+ var _a, e_22, _b, _c;
8568
+ tmpReq.validate();
8569
+ let request = new $_model.RunSearchGenerationShrinkRequest({});
8570
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8571
+ if (!$dara.isNull(tmpReq.agentContext)) {
8572
+ request.agentContextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.agentContext, "AgentContext", "json");
8573
+ }
8574
+ if (!$dara.isNull(tmpReq.chatConfig)) {
8575
+ request.chatConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.chatConfig, "ChatConfig", "json");
8576
+ }
8577
+ let body = {};
8578
+ if (!$dara.isNull(request.agentContextShrink)) {
8579
+ body["AgentContext"] = request.agentContextShrink;
8580
+ }
8581
+ if (!$dara.isNull(request.chatConfigShrink)) {
8582
+ body["ChatConfig"] = request.chatConfigShrink;
8583
+ }
8584
+ if (!$dara.isNull(request.modelId)) {
8585
+ body["ModelId"] = request.modelId;
8586
+ }
8587
+ if (!$dara.isNull(request.originalSessionId)) {
8588
+ body["OriginalSessionId"] = request.originalSessionId;
8589
+ }
8590
+ if (!$dara.isNull(request.prompt)) {
8591
+ body["Prompt"] = request.prompt;
8592
+ }
8593
+ if (!$dara.isNull(request.taskId)) {
8594
+ body["TaskId"] = request.taskId;
8595
+ }
8596
+ if (!$dara.isNull(request.workspaceId)) {
8597
+ body["WorkspaceId"] = request.workspaceId;
8598
+ }
8599
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8600
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8601
+ });
8602
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8603
+ action: "RunSearchGeneration",
8604
+ version: "2023-08-01",
8605
+ protocol: "HTTPS",
8606
+ pathname: "/",
8607
+ method: "POST",
8608
+ authType: "AK",
8609
+ style: "RPC",
8610
+ reqBodyType: "formData",
8611
+ bodyType: "json",
8612
+ });
8613
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8614
+ try {
8615
+ for (var _d = true, sseResp_22 = __asyncValues(sseResp), sseResp_22_1; sseResp_22_1 = yield __await(sseResp_22.next()), _a = sseResp_22_1.done, !_a; _d = true) {
8616
+ _c = sseResp_22_1.value;
8617
+ _d = false;
8618
+ let resp = _c;
8619
+ let data = JSON.parse(resp.event.data);
8620
+ yield yield __await($dara.cast({
8621
+ statusCode: resp.statusCode,
8622
+ headers: resp.headers,
8623
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8624
+ }, new $_model.RunSearchGenerationResponse({})));
8625
+ }
8626
+ }
8627
+ catch (e_22_1) { e_22 = { error: e_22_1 }; }
8628
+ finally {
8629
+ try {
8630
+ if (!_d && !_a && (_b = sseResp_22.return)) yield __await(_b.call(sseResp_22));
8631
+ }
8632
+ finally { if (e_22) throw e_22.error; }
8633
+ }
8634
+ });
8635
+ }
6816
8636
  /**
6817
8637
  * AI妙搜-智能搜索生成
6818
8638
  *
@@ -6878,6 +8698,75 @@ class Client extends openapi_core_1.default {
6878
8698
  let runtime = new $dara.RuntimeOptions({});
6879
8699
  return await this.runSearchGenerationWithOptions(request, runtime);
6880
8700
  }
8701
+ /**
8702
+ * 妙搜-文搜文
8703
+ *
8704
+ * @param tmpReq - RunSearchSimilarArticlesRequest
8705
+ * @param runtime - runtime options for this request RuntimeOptions
8706
+ * @returns RunSearchSimilarArticlesResponse
8707
+ */
8708
+ runSearchSimilarArticlesWithSSE(tmpReq, runtime) {
8709
+ return __asyncGenerator(this, arguments, function* runSearchSimilarArticlesWithSSE_1() {
8710
+ var _a, e_23, _b, _c;
8711
+ tmpReq.validate();
8712
+ let request = new $_model.RunSearchSimilarArticlesShrinkRequest({});
8713
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8714
+ if (!$dara.isNull(tmpReq.chatConfig)) {
8715
+ request.chatConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.chatConfig, "ChatConfig", "json");
8716
+ }
8717
+ let body = {};
8718
+ if (!$dara.isNull(request.chatConfigShrink)) {
8719
+ body["ChatConfig"] = request.chatConfigShrink;
8720
+ }
8721
+ if (!$dara.isNull(request.docType)) {
8722
+ body["DocType"] = request.docType;
8723
+ }
8724
+ if (!$dara.isNull(request.title)) {
8725
+ body["Title"] = request.title;
8726
+ }
8727
+ if (!$dara.isNull(request.url)) {
8728
+ body["Url"] = request.url;
8729
+ }
8730
+ if (!$dara.isNull(request.workspaceId)) {
8731
+ body["WorkspaceId"] = request.workspaceId;
8732
+ }
8733
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8734
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8735
+ });
8736
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8737
+ action: "RunSearchSimilarArticles",
8738
+ version: "2023-08-01",
8739
+ protocol: "HTTPS",
8740
+ pathname: "/",
8741
+ method: "POST",
8742
+ authType: "AK",
8743
+ style: "RPC",
8744
+ reqBodyType: "formData",
8745
+ bodyType: "json",
8746
+ });
8747
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8748
+ try {
8749
+ 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) {
8750
+ _c = sseResp_23_1.value;
8751
+ _d = false;
8752
+ let resp = _c;
8753
+ let data = JSON.parse(resp.event.data);
8754
+ yield yield __await($dara.cast({
8755
+ statusCode: resp.statusCode,
8756
+ headers: resp.headers,
8757
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8758
+ }, new $_model.RunSearchSimilarArticlesResponse({})));
8759
+ }
8760
+ }
8761
+ catch (e_23_1) { e_23 = { error: e_23_1 }; }
8762
+ finally {
8763
+ try {
8764
+ if (!_d && !_a && (_b = sseResp_23.return)) yield __await(_b.call(sseResp_23));
8765
+ }
8766
+ finally { if (e_23) throw e_23.error; }
8767
+ }
8768
+ });
8769
+ }
6881
8770
  /**
6882
8771
  * 妙搜-文搜文
6883
8772
  *
@@ -6934,6 +8823,84 @@ class Client extends openapi_core_1.default {
6934
8823
  let runtime = new $dara.RuntimeOptions({});
6935
8824
  return await this.runSearchSimilarArticlesWithOptions(request, runtime);
6936
8825
  }
8826
+ /**
8827
+ * 创作-分步骤写作
8828
+ *
8829
+ * @param tmpReq - RunStepByStepWritingRequest
8830
+ * @param runtime - runtime options for this request RuntimeOptions
8831
+ * @returns RunStepByStepWritingResponse
8832
+ */
8833
+ runStepByStepWritingWithSSE(tmpReq, runtime) {
8834
+ return __asyncGenerator(this, arguments, function* runStepByStepWritingWithSSE_1() {
8835
+ var _a, e_24, _b, _c;
8836
+ tmpReq.validate();
8837
+ let request = new $_model.RunStepByStepWritingShrinkRequest({});
8838
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8839
+ if (!$dara.isNull(tmpReq.referenceData)) {
8840
+ request.referenceDataShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
8841
+ }
8842
+ if (!$dara.isNull(tmpReq.writingConfig)) {
8843
+ request.writingConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.writingConfig, "WritingConfig", "json");
8844
+ }
8845
+ let body = {};
8846
+ if (!$dara.isNull(request.originSessionId)) {
8847
+ body["OriginSessionId"] = request.originSessionId;
8848
+ }
8849
+ if (!$dara.isNull(request.prompt)) {
8850
+ body["Prompt"] = request.prompt;
8851
+ }
8852
+ if (!$dara.isNull(request.referenceDataShrink)) {
8853
+ body["ReferenceData"] = request.referenceDataShrink;
8854
+ }
8855
+ if (!$dara.isNull(request.sessionId)) {
8856
+ body["SessionId"] = request.sessionId;
8857
+ }
8858
+ if (!$dara.isNull(request.taskId)) {
8859
+ body["TaskId"] = request.taskId;
8860
+ }
8861
+ if (!$dara.isNull(request.workspaceId)) {
8862
+ body["WorkspaceId"] = request.workspaceId;
8863
+ }
8864
+ if (!$dara.isNull(request.writingConfigShrink)) {
8865
+ body["WritingConfig"] = request.writingConfigShrink;
8866
+ }
8867
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8868
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
8869
+ });
8870
+ let params = new openapi_core_2.$OpenApiUtil.Params({
8871
+ action: "RunStepByStepWriting",
8872
+ version: "2023-08-01",
8873
+ protocol: "HTTPS",
8874
+ pathname: "/",
8875
+ method: "POST",
8876
+ authType: "AK",
8877
+ style: "RPC",
8878
+ reqBodyType: "formData",
8879
+ bodyType: "json",
8880
+ });
8881
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
8882
+ try {
8883
+ 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) {
8884
+ _c = sseResp_24_1.value;
8885
+ _d = false;
8886
+ let resp = _c;
8887
+ let data = JSON.parse(resp.event.data);
8888
+ yield yield __await($dara.cast({
8889
+ statusCode: resp.statusCode,
8890
+ headers: resp.headers,
8891
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
8892
+ }, new $_model.RunStepByStepWritingResponse({})));
8893
+ }
8894
+ }
8895
+ catch (e_24_1) { e_24 = { error: e_24_1 }; }
8896
+ finally {
8897
+ try {
8898
+ if (!_d && !_a && (_b = sseResp_24.return)) yield __await(_b.call(sseResp_24));
8899
+ }
8900
+ finally { if (e_24) throw e_24.error; }
8901
+ }
8902
+ });
8903
+ }
6937
8904
  /**
6938
8905
  * 创作-分步骤写作
6939
8906
  *
@@ -6999,6 +8966,72 @@ class Client extends openapi_core_1.default {
6999
8966
  let runtime = new $dara.RuntimeOptions({});
7000
8967
  return await this.runStepByStepWritingWithOptions(request, runtime);
7001
8968
  }
8969
+ /**
8970
+ * 内容特点分析
8971
+ *
8972
+ * @param tmpReq - RunStyleFeatureAnalysisRequest
8973
+ * @param runtime - runtime options for this request RuntimeOptions
8974
+ * @returns RunStyleFeatureAnalysisResponse
8975
+ */
8976
+ runStyleFeatureAnalysisWithSSE(tmpReq, runtime) {
8977
+ return __asyncGenerator(this, arguments, function* runStyleFeatureAnalysisWithSSE_1() {
8978
+ var _a, e_25, _b, _c;
8979
+ tmpReq.validate();
8980
+ let request = new $_model.RunStyleFeatureAnalysisShrinkRequest({});
8981
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
8982
+ if (!$dara.isNull(tmpReq.contents)) {
8983
+ request.contentsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contents, "Contents", "json");
8984
+ }
8985
+ if (!$dara.isNull(tmpReq.materialIds)) {
8986
+ request.materialIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.materialIds, "MaterialIds", "json");
8987
+ }
8988
+ let body = {};
8989
+ if (!$dara.isNull(request.contentsShrink)) {
8990
+ body["Contents"] = request.contentsShrink;
8991
+ }
8992
+ if (!$dara.isNull(request.materialIdsShrink)) {
8993
+ body["MaterialIds"] = request.materialIdsShrink;
8994
+ }
8995
+ if (!$dara.isNull(request.workspaceId)) {
8996
+ body["WorkspaceId"] = request.workspaceId;
8997
+ }
8998
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
8999
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9000
+ });
9001
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9002
+ action: "RunStyleFeatureAnalysis",
9003
+ version: "2023-08-01",
9004
+ protocol: "HTTPS",
9005
+ pathname: "/",
9006
+ method: "POST",
9007
+ authType: "AK",
9008
+ style: "RPC",
9009
+ reqBodyType: "formData",
9010
+ bodyType: "json",
9011
+ });
9012
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9013
+ try {
9014
+ 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) {
9015
+ _c = sseResp_25_1.value;
9016
+ _d = false;
9017
+ let resp = _c;
9018
+ let data = JSON.parse(resp.event.data);
9019
+ yield yield __await($dara.cast({
9020
+ statusCode: resp.statusCode,
9021
+ headers: resp.headers,
9022
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9023
+ }, new $_model.RunStyleFeatureAnalysisResponse({})));
9024
+ }
9025
+ }
9026
+ catch (e_25_1) { e_25 = { error: e_25_1 }; }
9027
+ finally {
9028
+ try {
9029
+ if (!_d && !_a && (_b = sseResp_25.return)) yield __await(_b.call(sseResp_25));
9030
+ }
9031
+ finally { if (e_25) throw e_25.error; }
9032
+ }
9033
+ });
9034
+ }
7002
9035
  /**
7003
9036
  * 内容特点分析
7004
9037
  *
@@ -7052,6 +9085,64 @@ class Client extends openapi_core_1.default {
7052
9085
  let runtime = new $dara.RuntimeOptions({});
7053
9086
  return await this.runStyleFeatureAnalysisWithOptions(request, runtime);
7054
9087
  }
9088
+ /**
9089
+ * 内容摘要生成
9090
+ *
9091
+ * @param request - RunSummaryGenerateRequest
9092
+ * @param runtime - runtime options for this request RuntimeOptions
9093
+ * @returns RunSummaryGenerateResponse
9094
+ */
9095
+ runSummaryGenerateWithSSE(request, runtime) {
9096
+ return __asyncGenerator(this, arguments, function* runSummaryGenerateWithSSE_1() {
9097
+ var _a, e_26, _b, _c;
9098
+ request.validate();
9099
+ let body = {};
9100
+ if (!$dara.isNull(request.content)) {
9101
+ body["Content"] = request.content;
9102
+ }
9103
+ if (!$dara.isNull(request.prompt)) {
9104
+ body["Prompt"] = request.prompt;
9105
+ }
9106
+ if (!$dara.isNull(request.workspaceId)) {
9107
+ body["WorkspaceId"] = request.workspaceId;
9108
+ }
9109
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9110
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9111
+ });
9112
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9113
+ action: "RunSummaryGenerate",
9114
+ version: "2023-08-01",
9115
+ protocol: "HTTPS",
9116
+ pathname: "/",
9117
+ method: "POST",
9118
+ authType: "AK",
9119
+ style: "RPC",
9120
+ reqBodyType: "formData",
9121
+ bodyType: "json",
9122
+ });
9123
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9124
+ try {
9125
+ 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) {
9126
+ _c = sseResp_26_1.value;
9127
+ _d = false;
9128
+ let resp = _c;
9129
+ let data = JSON.parse(resp.event.data);
9130
+ yield yield __await($dara.cast({
9131
+ statusCode: resp.statusCode,
9132
+ headers: resp.headers,
9133
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9134
+ }, new $_model.RunSummaryGenerateResponse({})));
9135
+ }
9136
+ }
9137
+ catch (e_26_1) { e_26 = { error: e_26_1 }; }
9138
+ finally {
9139
+ try {
9140
+ if (!_d && !_a && (_b = sseResp_26.return)) yield __await(_b.call(sseResp_26));
9141
+ }
9142
+ finally { if (e_26) throw e_26.error; }
9143
+ }
9144
+ });
9145
+ }
7055
9146
  /**
7056
9147
  * 内容摘要生成
7057
9148
  *
@@ -7097,6 +9188,64 @@ class Client extends openapi_core_1.default {
7097
9188
  let runtime = new $dara.RuntimeOptions({});
7098
9189
  return await this.runSummaryGenerateWithOptions(request, runtime);
7099
9190
  }
9191
+ /**
9192
+ * 创作-文本润色
9193
+ *
9194
+ * @param request - RunTextPolishingRequest
9195
+ * @param runtime - runtime options for this request RuntimeOptions
9196
+ * @returns RunTextPolishingResponse
9197
+ */
9198
+ runTextPolishingWithSSE(request, runtime) {
9199
+ return __asyncGenerator(this, arguments, function* runTextPolishingWithSSE_1() {
9200
+ var _a, e_27, _b, _c;
9201
+ request.validate();
9202
+ let body = {};
9203
+ if (!$dara.isNull(request.content)) {
9204
+ body["Content"] = request.content;
9205
+ }
9206
+ if (!$dara.isNull(request.prompt)) {
9207
+ body["Prompt"] = request.prompt;
9208
+ }
9209
+ if (!$dara.isNull(request.workspaceId)) {
9210
+ body["WorkspaceId"] = request.workspaceId;
9211
+ }
9212
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9213
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9214
+ });
9215
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9216
+ action: "RunTextPolishing",
9217
+ version: "2023-08-01",
9218
+ protocol: "HTTPS",
9219
+ pathname: "/",
9220
+ method: "POST",
9221
+ authType: "AK",
9222
+ style: "RPC",
9223
+ reqBodyType: "formData",
9224
+ bodyType: "json",
9225
+ });
9226
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9227
+ try {
9228
+ 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) {
9229
+ _c = sseResp_27_1.value;
9230
+ _d = false;
9231
+ let resp = _c;
9232
+ let data = JSON.parse(resp.event.data);
9233
+ yield yield __await($dara.cast({
9234
+ statusCode: resp.statusCode,
9235
+ headers: resp.headers,
9236
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9237
+ }, new $_model.RunTextPolishingResponse({})));
9238
+ }
9239
+ }
9240
+ catch (e_27_1) { e_27 = { error: e_27_1 }; }
9241
+ finally {
9242
+ try {
9243
+ if (!_d && !_a && (_b = sseResp_27.return)) yield __await(_b.call(sseResp_27));
9244
+ }
9245
+ finally { if (e_27) throw e_27.error; }
9246
+ }
9247
+ });
9248
+ }
7100
9249
  /**
7101
9250
  * 创作-文本润色
7102
9251
  *
@@ -7142,6 +9291,78 @@ class Client extends openapi_core_1.default {
7142
9291
  let runtime = new $dara.RuntimeOptions({});
7143
9292
  return await this.runTextPolishingWithOptions(request, runtime);
7144
9293
  }
9294
+ /**
9295
+ * 妙笔:标题生成
9296
+ *
9297
+ * @param tmpReq - RunTitleGenerationRequest
9298
+ * @param runtime - runtime options for this request RuntimeOptions
9299
+ * @returns RunTitleGenerationResponse
9300
+ */
9301
+ runTitleGenerationWithSSE(tmpReq, runtime) {
9302
+ return __asyncGenerator(this, arguments, function* runTitleGenerationWithSSE_1() {
9303
+ var _a, e_28, _b, _c;
9304
+ tmpReq.validate();
9305
+ let request = new $_model.RunTitleGenerationShrinkRequest({});
9306
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
9307
+ if (!$dara.isNull(tmpReq.deduplicatedTitles)) {
9308
+ request.deduplicatedTitlesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.deduplicatedTitles, "DeduplicatedTitles", "json");
9309
+ }
9310
+ if (!$dara.isNull(tmpReq.referenceData)) {
9311
+ request.referenceDataShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
9312
+ }
9313
+ let body = {};
9314
+ if (!$dara.isNull(request.deduplicatedTitlesShrink)) {
9315
+ body["DeduplicatedTitles"] = request.deduplicatedTitlesShrink;
9316
+ }
9317
+ if (!$dara.isNull(request.referenceDataShrink)) {
9318
+ body["ReferenceData"] = request.referenceDataShrink;
9319
+ }
9320
+ if (!$dara.isNull(request.taskId)) {
9321
+ body["TaskId"] = request.taskId;
9322
+ }
9323
+ if (!$dara.isNull(request.titleCount)) {
9324
+ body["TitleCount"] = request.titleCount;
9325
+ }
9326
+ if (!$dara.isNull(request.workspaceId)) {
9327
+ body["WorkspaceId"] = request.workspaceId;
9328
+ }
9329
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9330
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9331
+ });
9332
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9333
+ action: "RunTitleGeneration",
9334
+ version: "2023-08-01",
9335
+ protocol: "HTTPS",
9336
+ pathname: "/",
9337
+ method: "POST",
9338
+ authType: "AK",
9339
+ style: "RPC",
9340
+ reqBodyType: "formData",
9341
+ bodyType: "json",
9342
+ });
9343
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9344
+ try {
9345
+ 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) {
9346
+ _c = sseResp_28_1.value;
9347
+ _d = false;
9348
+ let resp = _c;
9349
+ let data = JSON.parse(resp.event.data);
9350
+ yield yield __await($dara.cast({
9351
+ statusCode: resp.statusCode,
9352
+ headers: resp.headers,
9353
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9354
+ }, new $_model.RunTitleGenerationResponse({})));
9355
+ }
9356
+ }
9357
+ catch (e_28_1) { e_28 = { error: e_28_1 }; }
9358
+ finally {
9359
+ try {
9360
+ if (!_d && !_a && (_b = sseResp_28.return)) yield __await(_b.call(sseResp_28));
9361
+ }
9362
+ finally { if (e_28) throw e_28.error; }
9363
+ }
9364
+ });
9365
+ }
7145
9366
  /**
7146
9367
  * 妙笔:标题生成
7147
9368
  *
@@ -7201,6 +9422,72 @@ class Client extends openapi_core_1.default {
7201
9422
  let runtime = new $dara.RuntimeOptions({});
7202
9423
  return await this.runTitleGenerationWithOptions(request, runtime);
7203
9424
  }
9425
+ /**
9426
+ * AI妙笔-创作-中英文翻译
9427
+ *
9428
+ * @param tmpReq - RunTranslateGenerationRequest
9429
+ * @param runtime - runtime options for this request RuntimeOptions
9430
+ * @returns RunTranslateGenerationResponse
9431
+ */
9432
+ runTranslateGenerationWithSSE(tmpReq, runtime) {
9433
+ return __asyncGenerator(this, arguments, function* runTranslateGenerationWithSSE_1() {
9434
+ var _a, e_29, _b, _c;
9435
+ tmpReq.validate();
9436
+ let request = new $_model.RunTranslateGenerationShrinkRequest({});
9437
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
9438
+ if (!$dara.isNull(tmpReq.referenceData)) {
9439
+ request.referenceDataShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
9440
+ }
9441
+ let body = {};
9442
+ if (!$dara.isNull(request.prompt)) {
9443
+ body["Prompt"] = request.prompt;
9444
+ }
9445
+ if (!$dara.isNull(request.referenceDataShrink)) {
9446
+ body["ReferenceData"] = request.referenceDataShrink;
9447
+ }
9448
+ if (!$dara.isNull(request.taskId)) {
9449
+ body["TaskId"] = request.taskId;
9450
+ }
9451
+ if (!$dara.isNull(request.workspaceId)) {
9452
+ body["WorkspaceId"] = request.workspaceId;
9453
+ }
9454
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9455
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9456
+ });
9457
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9458
+ action: "RunTranslateGeneration",
9459
+ version: "2023-08-01",
9460
+ protocol: "HTTPS",
9461
+ pathname: "/",
9462
+ method: "POST",
9463
+ authType: "AK",
9464
+ style: "RPC",
9465
+ reqBodyType: "formData",
9466
+ bodyType: "json",
9467
+ });
9468
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9469
+ try {
9470
+ 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) {
9471
+ _c = sseResp_29_1.value;
9472
+ _d = false;
9473
+ let resp = _c;
9474
+ let data = JSON.parse(resp.event.data);
9475
+ yield yield __await($dara.cast({
9476
+ statusCode: resp.statusCode,
9477
+ headers: resp.headers,
9478
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9479
+ }, new $_model.RunTranslateGenerationResponse({})));
9480
+ }
9481
+ }
9482
+ catch (e_29_1) { e_29 = { error: e_29_1 }; }
9483
+ finally {
9484
+ try {
9485
+ if (!_d && !_a && (_b = sseResp_29.return)) yield __await(_b.call(sseResp_29));
9486
+ }
9487
+ finally { if (e_29) throw e_29.error; }
9488
+ }
9489
+ });
9490
+ }
7204
9491
  /**
7205
9492
  * AI妙笔-创作-中英文翻译
7206
9493
  *
@@ -7254,6 +9541,193 @@ class Client extends openapi_core_1.default {
7254
9541
  let runtime = new $dara.RuntimeOptions({});
7255
9542
  return await this.runTranslateGenerationWithOptions(request, runtime);
7256
9543
  }
9544
+ /**
9545
+ * AI生成视频剪辑脚本
9546
+ *
9547
+ * @param request - RunVideoScriptGenerateRequest
9548
+ * @param runtime - runtime options for this request RuntimeOptions
9549
+ * @returns RunVideoScriptGenerateResponse
9550
+ */
9551
+ runVideoScriptGenerateWithSSE(request, runtime) {
9552
+ return __asyncGenerator(this, arguments, function* runVideoScriptGenerateWithSSE_1() {
9553
+ var _a, e_30, _b, _c;
9554
+ request.validate();
9555
+ let body = {};
9556
+ if (!$dara.isNull(request.language)) {
9557
+ body["Language"] = request.language;
9558
+ }
9559
+ if (!$dara.isNull(request.prompt)) {
9560
+ body["Prompt"] = request.prompt;
9561
+ }
9562
+ if (!$dara.isNull(request.scriptLength)) {
9563
+ body["ScriptLength"] = request.scriptLength;
9564
+ }
9565
+ if (!$dara.isNull(request.scriptNumber)) {
9566
+ body["ScriptNumber"] = request.scriptNumber;
9567
+ }
9568
+ if (!$dara.isNull(request.useSearch)) {
9569
+ body["UseSearch"] = request.useSearch;
9570
+ }
9571
+ if (!$dara.isNull(request.workspaceId)) {
9572
+ body["WorkspaceId"] = request.workspaceId;
9573
+ }
9574
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9575
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9576
+ });
9577
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9578
+ action: "RunVideoScriptGenerate",
9579
+ version: "2023-08-01",
9580
+ protocol: "HTTPS",
9581
+ pathname: "/",
9582
+ method: "POST",
9583
+ authType: "AK",
9584
+ style: "RPC",
9585
+ reqBodyType: "formData",
9586
+ bodyType: "json",
9587
+ });
9588
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9589
+ try {
9590
+ 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) {
9591
+ _c = sseResp_30_1.value;
9592
+ _d = false;
9593
+ let resp = _c;
9594
+ let data = JSON.parse(resp.event.data);
9595
+ yield yield __await($dara.cast({
9596
+ statusCode: resp.statusCode,
9597
+ headers: resp.headers,
9598
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9599
+ }, new $_model.RunVideoScriptGenerateResponse({})));
9600
+ }
9601
+ }
9602
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
9603
+ finally {
9604
+ try {
9605
+ if (!_d && !_a && (_b = sseResp_30.return)) yield __await(_b.call(sseResp_30));
9606
+ }
9607
+ finally { if (e_30) throw e_30.error; }
9608
+ }
9609
+ });
9610
+ }
9611
+ /**
9612
+ * AI生成视频剪辑脚本
9613
+ *
9614
+ * @param request - RunVideoScriptGenerateRequest
9615
+ * @param runtime - runtime options for this request RuntimeOptions
9616
+ * @returns RunVideoScriptGenerateResponse
9617
+ */
9618
+ async runVideoScriptGenerateWithOptions(request, runtime) {
9619
+ request.validate();
9620
+ let body = {};
9621
+ if (!$dara.isNull(request.language)) {
9622
+ body["Language"] = request.language;
9623
+ }
9624
+ if (!$dara.isNull(request.prompt)) {
9625
+ body["Prompt"] = request.prompt;
9626
+ }
9627
+ if (!$dara.isNull(request.scriptLength)) {
9628
+ body["ScriptLength"] = request.scriptLength;
9629
+ }
9630
+ if (!$dara.isNull(request.scriptNumber)) {
9631
+ body["ScriptNumber"] = request.scriptNumber;
9632
+ }
9633
+ if (!$dara.isNull(request.useSearch)) {
9634
+ body["UseSearch"] = request.useSearch;
9635
+ }
9636
+ if (!$dara.isNull(request.workspaceId)) {
9637
+ body["WorkspaceId"] = request.workspaceId;
9638
+ }
9639
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9640
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9641
+ });
9642
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9643
+ action: "RunVideoScriptGenerate",
9644
+ version: "2023-08-01",
9645
+ protocol: "HTTPS",
9646
+ pathname: "/",
9647
+ method: "POST",
9648
+ authType: "AK",
9649
+ style: "RPC",
9650
+ reqBodyType: "formData",
9651
+ bodyType: "json",
9652
+ });
9653
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunVideoScriptGenerateResponse({}));
9654
+ }
9655
+ /**
9656
+ * AI生成视频剪辑脚本
9657
+ *
9658
+ * @param request - RunVideoScriptGenerateRequest
9659
+ * @returns RunVideoScriptGenerateResponse
9660
+ */
9661
+ async runVideoScriptGenerate(request) {
9662
+ let runtime = new $dara.RuntimeOptions({});
9663
+ return await this.runVideoScriptGenerateWithOptions(request, runtime);
9664
+ }
9665
+ /**
9666
+ * AI妙笔-创作-文风改写
9667
+ *
9668
+ * @param tmpReq - RunWriteToneGenerationRequest
9669
+ * @param runtime - runtime options for this request RuntimeOptions
9670
+ * @returns RunWriteToneGenerationResponse
9671
+ */
9672
+ runWriteToneGenerationWithSSE(tmpReq, runtime) {
9673
+ return __asyncGenerator(this, arguments, function* runWriteToneGenerationWithSSE_1() {
9674
+ var _a, e_31, _b, _c;
9675
+ tmpReq.validate();
9676
+ let request = new $_model.RunWriteToneGenerationShrinkRequest({});
9677
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
9678
+ if (!$dara.isNull(tmpReq.referenceData)) {
9679
+ request.referenceDataShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
9680
+ }
9681
+ let body = {};
9682
+ if (!$dara.isNull(request.prompt)) {
9683
+ body["Prompt"] = request.prompt;
9684
+ }
9685
+ if (!$dara.isNull(request.referenceDataShrink)) {
9686
+ body["ReferenceData"] = request.referenceDataShrink;
9687
+ }
9688
+ if (!$dara.isNull(request.taskId)) {
9689
+ body["TaskId"] = request.taskId;
9690
+ }
9691
+ if (!$dara.isNull(request.workspaceId)) {
9692
+ body["WorkspaceId"] = request.workspaceId;
9693
+ }
9694
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9695
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9696
+ });
9697
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9698
+ action: "RunWriteToneGeneration",
9699
+ version: "2023-08-01",
9700
+ protocol: "HTTPS",
9701
+ pathname: "/",
9702
+ method: "POST",
9703
+ authType: "AK",
9704
+ style: "RPC",
9705
+ reqBodyType: "formData",
9706
+ bodyType: "json",
9707
+ });
9708
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9709
+ try {
9710
+ 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) {
9711
+ _c = sseResp_31_1.value;
9712
+ _d = false;
9713
+ let resp = _c;
9714
+ let data = JSON.parse(resp.event.data);
9715
+ yield yield __await($dara.cast({
9716
+ statusCode: resp.statusCode,
9717
+ headers: resp.headers,
9718
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9719
+ }, new $_model.RunWriteToneGenerationResponse({})));
9720
+ }
9721
+ }
9722
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
9723
+ finally {
9724
+ try {
9725
+ if (!_d && !_a && (_b = sseResp_31.return)) yield __await(_b.call(sseResp_31));
9726
+ }
9727
+ finally { if (e_31) throw e_31.error; }
9728
+ }
9729
+ });
9730
+ }
7257
9731
  /**
7258
9732
  * AI妙笔-创作-文风改写
7259
9733
  *
@@ -7307,6 +9781,84 @@ class Client extends openapi_core_1.default {
7307
9781
  let runtime = new $dara.RuntimeOptions({});
7308
9782
  return await this.runWriteToneGenerationWithOptions(request, runtime);
7309
9783
  }
9784
+ /**
9785
+ * 直接写作
9786
+ *
9787
+ * @param tmpReq - RunWritingRequest
9788
+ * @param runtime - runtime options for this request RuntimeOptions
9789
+ * @returns RunWritingResponse
9790
+ */
9791
+ runWritingWithSSE(tmpReq, runtime) {
9792
+ return __asyncGenerator(this, arguments, function* runWritingWithSSE_1() {
9793
+ var _a, e_32, _b, _c;
9794
+ tmpReq.validate();
9795
+ let request = new $_model.RunWritingShrinkRequest({});
9796
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
9797
+ if (!$dara.isNull(tmpReq.referenceData)) {
9798
+ request.referenceDataShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
9799
+ }
9800
+ if (!$dara.isNull(tmpReq.writingConfig)) {
9801
+ request.writingConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.writingConfig, "WritingConfig", "json");
9802
+ }
9803
+ let body = {};
9804
+ if (!$dara.isNull(request.originSessionId)) {
9805
+ body["OriginSessionId"] = request.originSessionId;
9806
+ }
9807
+ if (!$dara.isNull(request.prompt)) {
9808
+ body["Prompt"] = request.prompt;
9809
+ }
9810
+ if (!$dara.isNull(request.referenceDataShrink)) {
9811
+ body["ReferenceData"] = request.referenceDataShrink;
9812
+ }
9813
+ if (!$dara.isNull(request.sessionId)) {
9814
+ body["SessionId"] = request.sessionId;
9815
+ }
9816
+ if (!$dara.isNull(request.taskId)) {
9817
+ body["TaskId"] = request.taskId;
9818
+ }
9819
+ if (!$dara.isNull(request.workspaceId)) {
9820
+ body["WorkspaceId"] = request.workspaceId;
9821
+ }
9822
+ if (!$dara.isNull(request.writingConfigShrink)) {
9823
+ body["WritingConfig"] = request.writingConfigShrink;
9824
+ }
9825
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9826
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
9827
+ });
9828
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9829
+ action: "RunWriting",
9830
+ version: "2023-08-01",
9831
+ protocol: "HTTPS",
9832
+ pathname: "/",
9833
+ method: "POST",
9834
+ authType: "AK",
9835
+ style: "RPC",
9836
+ reqBodyType: "formData",
9837
+ bodyType: "json",
9838
+ });
9839
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
9840
+ try {
9841
+ 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) {
9842
+ _c = sseResp_32_1.value;
9843
+ _d = false;
9844
+ let resp = _c;
9845
+ let data = JSON.parse(resp.event.data);
9846
+ yield yield __await($dara.cast({
9847
+ statusCode: resp.statusCode,
9848
+ headers: resp.headers,
9849
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
9850
+ }, new $_model.RunWritingResponse({})));
9851
+ }
9852
+ }
9853
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
9854
+ finally {
9855
+ try {
9856
+ if (!_d && !_a && (_b = sseResp_32.return)) yield __await(_b.call(sseResp_32));
9857
+ }
9858
+ finally { if (e_32) throw e_32.error; }
9859
+ }
9860
+ });
9861
+ }
7310
9862
  /**
7311
9863
  * 直接写作
7312
9864
  *
@@ -7372,6 +9924,138 @@ class Client extends openapi_core_1.default {
7372
9924
  let runtime = new $dara.RuntimeOptions({});
7373
9925
  return await this.runWritingWithOptions(request, runtime);
7374
9926
  }
9927
+ /**
9928
+ * 直接写作
9929
+ *
9930
+ * @param tmpReq - RunWritingV2Request
9931
+ * @param runtime - runtime options for this request RuntimeOptions
9932
+ * @returns RunWritingV2Response
9933
+ */
9934
+ runWritingV2WithSSE(tmpReq, runtime) {
9935
+ return __asyncGenerator(this, arguments, function* runWritingV2WithSSE_1() {
9936
+ var _a, e_33, _b, _c;
9937
+ tmpReq.validate();
9938
+ let request = new $_model.RunWritingV2ShrinkRequest({});
9939
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
9940
+ if (!$dara.isNull(tmpReq.articles)) {
9941
+ request.articlesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.articles, "Articles", "json");
9942
+ }
9943
+ if (!$dara.isNull(tmpReq.keywords)) {
9944
+ request.keywordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keywords, "Keywords", "json");
9945
+ }
9946
+ if (!$dara.isNull(tmpReq.miniDocs)) {
9947
+ request.miniDocsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.miniDocs, "MiniDocs", "json");
9948
+ }
9949
+ if (!$dara.isNull(tmpReq.outlines)) {
9950
+ request.outlinesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.outlines, "Outlines", "json");
9951
+ }
9952
+ if (!$dara.isNull(tmpReq.searchSources)) {
9953
+ request.searchSourcesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.searchSources, "SearchSources", "json");
9954
+ }
9955
+ if (!$dara.isNull(tmpReq.summarization)) {
9956
+ request.summarizationShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.summarization, "Summarization", "json");
9957
+ }
9958
+ if (!$dara.isNull(tmpReq.writingParams)) {
9959
+ request.writingParamsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.writingParams, "WritingParams", "json");
9960
+ }
9961
+ let body = {};
9962
+ if (!$dara.isNull(request.articlesShrink)) {
9963
+ body["Articles"] = request.articlesShrink;
9964
+ }
9965
+ if (!$dara.isNull(request.distributeWriting)) {
9966
+ body["DistributeWriting"] = request.distributeWriting;
9967
+ }
9968
+ if (!$dara.isNull(request.gcNumberSize)) {
9969
+ body["GcNumberSize"] = request.gcNumberSize;
9970
+ }
9971
+ if (!$dara.isNull(request.gcNumberSizeTag)) {
9972
+ body["GcNumberSizeTag"] = request.gcNumberSizeTag;
9973
+ }
9974
+ if (!$dara.isNull(request.keywordsShrink)) {
9975
+ body["Keywords"] = request.keywordsShrink;
9976
+ }
9977
+ if (!$dara.isNull(request.language)) {
9978
+ body["Language"] = request.language;
9979
+ }
9980
+ if (!$dara.isNull(request.miniDocsShrink)) {
9981
+ body["MiniDocs"] = request.miniDocsShrink;
9982
+ }
9983
+ if (!$dara.isNull(request.outlinesShrink)) {
9984
+ body["Outlines"] = request.outlinesShrink;
9985
+ }
9986
+ if (!$dara.isNull(request.prompt)) {
9987
+ body["Prompt"] = request.prompt;
9988
+ }
9989
+ if (!$dara.isNull(request.promptMode)) {
9990
+ body["PromptMode"] = request.promptMode;
9991
+ }
9992
+ if (!$dara.isNull(request.searchSourcesShrink)) {
9993
+ body["SearchSources"] = request.searchSourcesShrink;
9994
+ }
9995
+ if (!$dara.isNull(request.sessionId)) {
9996
+ body["SessionId"] = request.sessionId;
9997
+ }
9998
+ if (!$dara.isNull(request.step)) {
9999
+ body["Step"] = request.step;
10000
+ }
10001
+ if (!$dara.isNull(request.summarizationShrink)) {
10002
+ body["Summarization"] = request.summarizationShrink;
10003
+ }
10004
+ if (!$dara.isNull(request.taskId)) {
10005
+ body["TaskId"] = request.taskId;
10006
+ }
10007
+ if (!$dara.isNull(request.useSearch)) {
10008
+ body["UseSearch"] = request.useSearch;
10009
+ }
10010
+ if (!$dara.isNull(request.workspaceId)) {
10011
+ body["WorkspaceId"] = request.workspaceId;
10012
+ }
10013
+ if (!$dara.isNull(request.writingParamsShrink)) {
10014
+ body["WritingParams"] = request.writingParamsShrink;
10015
+ }
10016
+ if (!$dara.isNull(request.writingScene)) {
10017
+ body["WritingScene"] = request.writingScene;
10018
+ }
10019
+ if (!$dara.isNull(request.writingStyle)) {
10020
+ body["WritingStyle"] = request.writingStyle;
10021
+ }
10022
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
10023
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
10024
+ });
10025
+ let params = new openapi_core_2.$OpenApiUtil.Params({
10026
+ action: "RunWritingV2",
10027
+ version: "2023-08-01",
10028
+ protocol: "HTTPS",
10029
+ pathname: "/",
10030
+ method: "POST",
10031
+ authType: "AK",
10032
+ style: "RPC",
10033
+ reqBodyType: "formData",
10034
+ bodyType: "json",
10035
+ });
10036
+ let sseResp = yield __await(this.callSSEApi(params, req, runtime));
10037
+ try {
10038
+ 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) {
10039
+ _c = sseResp_33_1.value;
10040
+ _d = false;
10041
+ let resp = _c;
10042
+ let data = JSON.parse(resp.event.data);
10043
+ yield yield __await($dara.cast({
10044
+ statusCode: resp.statusCode,
10045
+ headers: resp.headers,
10046
+ body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
10047
+ }, new $_model.RunWritingV2Response({})));
10048
+ }
10049
+ }
10050
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
10051
+ finally {
10052
+ try {
10053
+ if (!_d && !_a && (_b = sseResp_33.return)) yield __await(_b.call(sseResp_33));
10054
+ }
10055
+ finally { if (e_33) throw e_33.error; }
10056
+ }
10057
+ });
10058
+ }
7375
10059
  /**
7376
10060
  * 直接写作
7377
10061
  *
@@ -8186,6 +10870,67 @@ class Client extends openapi_core_1.default {
8186
10870
  let runtime = new $dara.RuntimeOptions({});
8187
10871
  return await this.submitCustomTopicSelectionPerspectiveAnalysisTaskWithOptions(request, runtime);
8188
10872
  }
10873
+ /**
10874
+ * 提交深度写作任务
10875
+ *
10876
+ * @param tmpReq - SubmitDeepWriteTaskRequest
10877
+ * @param runtime - runtime options for this request RuntimeOptions
10878
+ * @returns SubmitDeepWriteTaskResponse
10879
+ */
10880
+ async submitDeepWriteTaskWithOptions(tmpReq, runtime) {
10881
+ tmpReq.validate();
10882
+ let request = new $_model.SubmitDeepWriteTaskShrinkRequest({});
10883
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
10884
+ if (!$dara.isNull(tmpReq.agentOrchestration)) {
10885
+ request.agentOrchestrationShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.agentOrchestration, "AgentOrchestration", "json");
10886
+ }
10887
+ if (!$dara.isNull(tmpReq.files)) {
10888
+ request.filesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.files, "Files", "json");
10889
+ }
10890
+ let query = {};
10891
+ if (!$dara.isNull(request.agentOrchestrationShrink)) {
10892
+ query["AgentOrchestration"] = request.agentOrchestrationShrink;
10893
+ }
10894
+ let body = {};
10895
+ if (!$dara.isNull(request.filesShrink)) {
10896
+ body["Files"] = request.filesShrink;
10897
+ }
10898
+ if (!$dara.isNull(request.input)) {
10899
+ body["Input"] = request.input;
10900
+ }
10901
+ if (!$dara.isNull(request.instructions)) {
10902
+ body["Instructions"] = request.instructions;
10903
+ }
10904
+ if (!$dara.isNull(request.workspaceId)) {
10905
+ body["WorkspaceId"] = request.workspaceId;
10906
+ }
10907
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
10908
+ query: openapi_core_2.OpenApiUtil.query(query),
10909
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
10910
+ });
10911
+ let params = new openapi_core_2.$OpenApiUtil.Params({
10912
+ action: "SubmitDeepWriteTask",
10913
+ version: "2023-08-01",
10914
+ protocol: "HTTPS",
10915
+ pathname: "/",
10916
+ method: "POST",
10917
+ authType: "AK",
10918
+ style: "RPC",
10919
+ reqBodyType: "formData",
10920
+ bodyType: "json",
10921
+ });
10922
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitDeepWriteTaskResponse({}));
10923
+ }
10924
+ /**
10925
+ * 提交深度写作任务
10926
+ *
10927
+ * @param request - SubmitDeepWriteTaskRequest
10928
+ * @returns SubmitDeepWriteTaskResponse
10929
+ */
10930
+ async submitDeepWriteTask(request) {
10931
+ let runtime = new $dara.RuntimeOptions({});
10932
+ return await this.submitDeepWriteTaskWithOptions(request, runtime);
10933
+ }
8189
10934
  /**
8190
10935
  * 提交文档聚合任务
8191
10936
  *
@@ -8363,6 +11108,48 @@ class Client extends openapi_core_1.default {
8363
11108
  let runtime = new $dara.RuntimeOptions({});
8364
11109
  return await this.submitExportTermsTaskWithOptions(request, runtime);
8365
11110
  }
11111
+ /**
11112
+ * 妙笔为您提供了新的事实性审核能力,在联网搜索并判断正误的前提下,还支持用户自定义配置搜索来源 URL。
11113
+ *
11114
+ * @param request - SubmitFactAuditUrlRequest
11115
+ * @param runtime - runtime options for this request RuntimeOptions
11116
+ * @returns SubmitFactAuditUrlResponse
11117
+ */
11118
+ async submitFactAuditUrlWithOptions(request, runtime) {
11119
+ request.validate();
11120
+ let body = {};
11121
+ if (!$dara.isNull(request.url)) {
11122
+ body["Url"] = request.url;
11123
+ }
11124
+ if (!$dara.isNull(request.workspaceId)) {
11125
+ body["WorkspaceId"] = request.workspaceId;
11126
+ }
11127
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
11128
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
11129
+ });
11130
+ let params = new openapi_core_2.$OpenApiUtil.Params({
11131
+ action: "SubmitFactAuditUrl",
11132
+ version: "2023-08-01",
11133
+ protocol: "HTTPS",
11134
+ pathname: "/",
11135
+ method: "POST",
11136
+ authType: "AK",
11137
+ style: "RPC",
11138
+ reqBodyType: "formData",
11139
+ bodyType: "json",
11140
+ });
11141
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitFactAuditUrlResponse({}));
11142
+ }
11143
+ /**
11144
+ * 妙笔为您提供了新的事实性审核能力,在联网搜索并判断正误的前提下,还支持用户自定义配置搜索来源 URL。
11145
+ *
11146
+ * @param request - SubmitFactAuditUrlRequest
11147
+ * @returns SubmitFactAuditUrlResponse
11148
+ */
11149
+ async submitFactAuditUrl(request) {
11150
+ let runtime = new $dara.RuntimeOptions({});
11151
+ return await this.submitFactAuditUrlWithOptions(request, runtime);
11152
+ }
8366
11153
  /**
8367
11154
  * 提交导入自定义词库任务
8368
11155
  *