@alicloud/dianjin20240628 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1063 -101
- package/dist/client.js +865 -7
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1637 -110
package/dist/client.js
CHANGED
|
@@ -26,10 +26,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.RunLibraryChatGenerationRequestVectorSearchParameter = exports.RunLibraryChatGenerationRequestTextSearchParameter = exports.RunLibraryChatGenerationRequestQueryCriteria = void 0;
|
|
29
|
+
exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = exports.GetLibraryResponse = exports.GetLibraryResponseBody = exports.GetLibraryRequest = exports.GetHistoryListByBizTypeResponse = exports.GetHistoryListByBizTypeResponseBody = exports.GetHistoryListByBizTypeRequest = exports.GetFilterDocumentListResponse = exports.GetFilterDocumentListResponseBody = exports.GetFilterDocumentListRequest = exports.GetDocumentUrlResponse = exports.GetDocumentUrlResponseBody = exports.GetDocumentUrlRequest = exports.GetDocumentListResponse = exports.GetDocumentListResponseBody = exports.GetDocumentListRequest = exports.GetDocumentChunkListResponse = exports.GetDocumentChunkListResponseBody = exports.GetDocumentChunkListRequest = exports.GetAppConfigResponse = exports.GetAppConfigResponseBody = exports.EvictTaskResponse = exports.EvictTaskResponseBody = exports.EvictTaskRequest = exports.DeleteLibraryResponse = exports.DeleteLibraryResponseBody = exports.DeleteLibraryRequest = exports.DeleteDocumentResponse = exports.DeleteDocumentResponseBody = exports.DeleteDocumentRequest = exports.CreateQualityCheckTaskResponse = exports.CreateQualityCheckTaskResponseBody = exports.CreateQualityCheckTaskRequest = exports.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreatePdfTranslateTaskResponse = exports.CreatePdfTranslateTaskResponseBody = exports.CreatePdfTranslateTaskRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = exports.CreateFinReportSummaryTaskResponse = exports.CreateFinReportSummaryTaskResponseBody = exports.CreateFinReportSummaryTaskRequest = exports.CreateDocsSummaryTaskResponse = exports.CreateDocsSummaryTaskResponseBody = exports.CreateDocsSummaryTaskRequest = void 0;
|
|
30
|
+
exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = exports.CreateDocsSummaryTaskRequestDocInfos = exports.UploadDocumentResponse = exports.UploadDocumentResponseBody = exports.UploadDocumentAdvanceRequest = exports.UploadDocumentRequest = exports.UpdateLibraryResponse = exports.UpdateLibraryResponseBody = exports.UpdateLibraryRequest = exports.UpdateDocumentResponse = exports.UpdateDocumentResponseBody = exports.UpdateDocumentRequest = exports.RunLibraryChatGenerationResponse = exports.RunLibraryChatGenerationResponseBody = exports.RunLibraryChatGenerationRequest = exports.RunChatResultGenerationResponse = exports.RunChatResultGenerationResponseBody = exports.RunChatResultGenerationRequest = exports.RecognizeIntentionResponse = exports.RecognizeIntentionResponseBody = exports.RecognizeIntentionRequest = exports.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.ReIndexResponse = exports.ReIndexResponseBody = exports.ReIndexRequest = exports.PreviewDocumentResponse = exports.PreviewDocumentResponseBody = exports.PreviewDocumentRequest = exports.InvokePluginResponse = exports.InvokePluginResponseBody = exports.InvokePluginRequest = exports.GetTaskStatusResponse = exports.GetTaskStatusResponseBody = exports.GetTaskStatusRequest = exports.GetTaskResultResponse = exports.GetTaskResultResponseBody = exports.GetTaskResultRequest = exports.GetSummaryTaskResultResponse = exports.GetSummaryTaskResultResponseBody = exports.GetSummaryTaskResultRequest = exports.GetQualityCheckTaskResultResponse = exports.GetQualityCheckTaskResultResponseBody = exports.GetQualityCheckTaskResultRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = void 0;
|
|
31
|
+
exports.RecallDocumentRequestFiltersOr = exports.RecallDocumentRequestFiltersAnd = exports.PreviewDocumentResponseBodyData = exports.GetSummaryTaskResultResponseBodyData = exports.GetSummaryTaskResultResponseBodyDataUsage = exports.GetSummaryTaskResultResponseBodyDataChoices = exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = exports.GetQualityCheckTaskResultResponseBodyData = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckList = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue = exports.GetQualityCheckTaskResultResponseBodyDataConversationList = exports.GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList = exports.GetParseResultResponseBodyData = exports.GetLibraryListResponseBodyData = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy = exports.GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer = exports.GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig = exports.GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy = exports.GetLibraryResponseBodyData = exports.GetLibraryResponseBodyDataIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingVectorIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingTextIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingRecallStrategy = exports.GetLibraryResponseBodyDataIndexSettingQueryEnhancer = exports.GetLibraryResponseBodyDataIndexSettingModelConfig = exports.GetLibraryResponseBodyDataIndexSettingChunkStrategy = exports.GetHistoryListByBizTypeResponseBodyData = exports.GetHistoryListByBizTypeResponseBodyDataRecords = exports.GetFilterDocumentListResponseBodyData = exports.GetFilterDocumentListResponseBodyDataRecords = exports.GetFilterDocumentListRequestOr = exports.GetFilterDocumentListRequestAnd = exports.GetDocumentListResponseBodyData = exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetAppConfigResponseBodyData = exports.CreateQualityCheckTaskResponseBodyData = exports.CreateQualityCheckTaskRequestConversationList = exports.CreateQualityCheckTaskRequestConversationListDialogueList = exports.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = void 0;
|
|
32
|
+
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.RunLibraryChatGenerationRequestVectorSearchParameter = exports.RunLibraryChatGenerationRequestTextSearchParameter = exports.RunLibraryChatGenerationRequestQueryCriteria = exports.RunLibraryChatGenerationRequestQueryCriteriaOr = exports.RunLibraryChatGenerationRequestQueryCriteriaAnd = exports.RunChatResultGenerationResponseBodyUsage = exports.RunChatResultGenerationResponseBodyChoices = exports.RunChatResultGenerationResponseBodyChoicesMessage = exports.RunChatResultGenerationRequestTools = exports.RunChatResultGenerationRequestToolsFunction = exports.RunChatResultGenerationRequestToolsFunctionParameters = exports.RunChatResultGenerationRequestMessages = exports.RecognizeIntentionResponseBodyData = exports.RecognizeIntentionRequestIntentionList = exports.RecognizeIntentionRequestHierarchicalIntentionList = exports.RecognizeIntentionRequestGlobalIntentionList = exports.RecallDocumentResponseBodyData = exports.RecallDocumentResponseBodyDataVectorChunkList = exports.RecallDocumentResponseBodyDataVectorChunkListPos = exports.RecallDocumentResponseBodyDataTextChunkList = exports.RecallDocumentResponseBodyDataTextChunkListPos = exports.RecallDocumentResponseBodyDataDocuments = exports.RecallDocumentResponseBodyDataChunkPartList = exports.RecallDocumentResponseBodyDataChunkPartListPos = exports.RecallDocumentResponseBodyDataChunkList = exports.RecallDocumentResponseBodyDataChunkListPos = exports.RecallDocumentRequestFilters = void 0;
|
|
33
33
|
// This file is auto-generated, don't edit it
|
|
34
34
|
/**
|
|
35
35
|
*/
|
|
@@ -42,6 +42,78 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
42
42
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
43
43
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
44
44
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
45
|
+
class CreateDocsSummaryTaskRequest extends $tea.Model {
|
|
46
|
+
static names() {
|
|
47
|
+
return {
|
|
48
|
+
docInfos: 'docInfos',
|
|
49
|
+
enableTable: 'enableTable',
|
|
50
|
+
instruction: 'instruction',
|
|
51
|
+
modelId: 'modelId',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static types() {
|
|
55
|
+
return {
|
|
56
|
+
docInfos: { 'type': 'array', 'itemType': CreateDocsSummaryTaskRequestDocInfos },
|
|
57
|
+
enableTable: 'boolean',
|
|
58
|
+
instruction: 'string',
|
|
59
|
+
modelId: 'string',
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
constructor(map) {
|
|
63
|
+
super(map);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.CreateDocsSummaryTaskRequest = CreateDocsSummaryTaskRequest;
|
|
67
|
+
class CreateDocsSummaryTaskResponseBody extends $tea.Model {
|
|
68
|
+
static names() {
|
|
69
|
+
return {
|
|
70
|
+
cost: 'cost',
|
|
71
|
+
data: 'data',
|
|
72
|
+
dataType: 'dataType',
|
|
73
|
+
errCode: 'errCode',
|
|
74
|
+
message: 'message',
|
|
75
|
+
requestId: 'requestId',
|
|
76
|
+
success: 'success',
|
|
77
|
+
time: 'time',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
static types() {
|
|
81
|
+
return {
|
|
82
|
+
cost: 'number',
|
|
83
|
+
data: 'string',
|
|
84
|
+
dataType: 'string',
|
|
85
|
+
errCode: 'string',
|
|
86
|
+
message: 'string',
|
|
87
|
+
requestId: 'string',
|
|
88
|
+
success: 'boolean',
|
|
89
|
+
time: 'string',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
constructor(map) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.CreateDocsSummaryTaskResponseBody = CreateDocsSummaryTaskResponseBody;
|
|
97
|
+
class CreateDocsSummaryTaskResponse extends $tea.Model {
|
|
98
|
+
static names() {
|
|
99
|
+
return {
|
|
100
|
+
headers: 'headers',
|
|
101
|
+
statusCode: 'statusCode',
|
|
102
|
+
body: 'body',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static types() {
|
|
106
|
+
return {
|
|
107
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
108
|
+
statusCode: 'number',
|
|
109
|
+
body: CreateDocsSummaryTaskResponseBody,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
constructor(map) {
|
|
113
|
+
super(map);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.CreateDocsSummaryTaskResponse = CreateDocsSummaryTaskResponse;
|
|
45
117
|
class CreateFinReportSummaryTaskRequest extends $tea.Model {
|
|
46
118
|
static names() {
|
|
47
119
|
return {
|
|
@@ -192,6 +264,80 @@ class CreateLibraryResponse extends $tea.Model {
|
|
|
192
264
|
}
|
|
193
265
|
}
|
|
194
266
|
exports.CreateLibraryResponse = CreateLibraryResponse;
|
|
267
|
+
class CreatePdfTranslateTaskRequest extends $tea.Model {
|
|
268
|
+
static names() {
|
|
269
|
+
return {
|
|
270
|
+
docId: 'docId',
|
|
271
|
+
knowledge: 'knowledge',
|
|
272
|
+
libraryId: 'libraryId',
|
|
273
|
+
modelId: 'modelId',
|
|
274
|
+
translateTo: 'translateTo',
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
static types() {
|
|
278
|
+
return {
|
|
279
|
+
docId: 'string',
|
|
280
|
+
knowledge: 'string',
|
|
281
|
+
libraryId: 'string',
|
|
282
|
+
modelId: 'string',
|
|
283
|
+
translateTo: 'string',
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
constructor(map) {
|
|
287
|
+
super(map);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
exports.CreatePdfTranslateTaskRequest = CreatePdfTranslateTaskRequest;
|
|
291
|
+
class CreatePdfTranslateTaskResponseBody extends $tea.Model {
|
|
292
|
+
static names() {
|
|
293
|
+
return {
|
|
294
|
+
cost: 'cost',
|
|
295
|
+
data: 'data',
|
|
296
|
+
dataType: 'dataType',
|
|
297
|
+
errCode: 'errCode',
|
|
298
|
+
message: 'message',
|
|
299
|
+
requestId: 'requestId',
|
|
300
|
+
success: 'success',
|
|
301
|
+
time: 'time',
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
static types() {
|
|
305
|
+
return {
|
|
306
|
+
cost: 'number',
|
|
307
|
+
data: 'string',
|
|
308
|
+
dataType: 'string',
|
|
309
|
+
errCode: 'string',
|
|
310
|
+
message: 'string',
|
|
311
|
+
requestId: 'string',
|
|
312
|
+
success: 'boolean',
|
|
313
|
+
time: 'string',
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
constructor(map) {
|
|
317
|
+
super(map);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
exports.CreatePdfTranslateTaskResponseBody = CreatePdfTranslateTaskResponseBody;
|
|
321
|
+
class CreatePdfTranslateTaskResponse extends $tea.Model {
|
|
322
|
+
static names() {
|
|
323
|
+
return {
|
|
324
|
+
headers: 'headers',
|
|
325
|
+
statusCode: 'statusCode',
|
|
326
|
+
body: 'body',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
static types() {
|
|
330
|
+
return {
|
|
331
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
332
|
+
statusCode: 'number',
|
|
333
|
+
body: CreatePdfTranslateTaskResponseBody,
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
constructor(map) {
|
|
337
|
+
super(map);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
exports.CreatePdfTranslateTaskResponse = CreatePdfTranslateTaskResponse;
|
|
195
341
|
class CreatePredefinedDocumentRequest extends $tea.Model {
|
|
196
342
|
static names() {
|
|
197
343
|
return {
|
|
@@ -264,6 +410,82 @@ class CreatePredefinedDocumentResponse extends $tea.Model {
|
|
|
264
410
|
}
|
|
265
411
|
}
|
|
266
412
|
exports.CreatePredefinedDocumentResponse = CreatePredefinedDocumentResponse;
|
|
413
|
+
class CreateQualityCheckTaskRequest extends $tea.Model {
|
|
414
|
+
static names() {
|
|
415
|
+
return {
|
|
416
|
+
conversationList: 'conversationList',
|
|
417
|
+
gmtService: 'gmtService',
|
|
418
|
+
metaData: 'metaData',
|
|
419
|
+
qualityGroup: 'qualityGroup',
|
|
420
|
+
requestId: 'requestId',
|
|
421
|
+
type: 'type',
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
static types() {
|
|
425
|
+
return {
|
|
426
|
+
conversationList: CreateQualityCheckTaskRequestConversationList,
|
|
427
|
+
gmtService: 'string',
|
|
428
|
+
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
429
|
+
qualityGroup: { 'type': 'array', 'itemType': 'string' },
|
|
430
|
+
requestId: 'string',
|
|
431
|
+
type: 'string',
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
constructor(map) {
|
|
435
|
+
super(map);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
exports.CreateQualityCheckTaskRequest = CreateQualityCheckTaskRequest;
|
|
439
|
+
class CreateQualityCheckTaskResponseBody extends $tea.Model {
|
|
440
|
+
static names() {
|
|
441
|
+
return {
|
|
442
|
+
cost: 'cost',
|
|
443
|
+
data: 'data',
|
|
444
|
+
dataType: 'dataType',
|
|
445
|
+
errCode: 'errCode',
|
|
446
|
+
message: 'message',
|
|
447
|
+
requestId: 'requestId',
|
|
448
|
+
success: 'success',
|
|
449
|
+
time: 'time',
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
static types() {
|
|
453
|
+
return {
|
|
454
|
+
cost: 'number',
|
|
455
|
+
data: CreateQualityCheckTaskResponseBodyData,
|
|
456
|
+
dataType: 'string',
|
|
457
|
+
errCode: 'string',
|
|
458
|
+
message: 'string',
|
|
459
|
+
requestId: 'string',
|
|
460
|
+
success: 'boolean',
|
|
461
|
+
time: 'string',
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
constructor(map) {
|
|
465
|
+
super(map);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
exports.CreateQualityCheckTaskResponseBody = CreateQualityCheckTaskResponseBody;
|
|
469
|
+
class CreateQualityCheckTaskResponse extends $tea.Model {
|
|
470
|
+
static names() {
|
|
471
|
+
return {
|
|
472
|
+
headers: 'headers',
|
|
473
|
+
statusCode: 'statusCode',
|
|
474
|
+
body: 'body',
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
static types() {
|
|
478
|
+
return {
|
|
479
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
480
|
+
statusCode: 'number',
|
|
481
|
+
body: CreateQualityCheckTaskResponseBody,
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
constructor(map) {
|
|
485
|
+
super(map);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
exports.CreateQualityCheckTaskResponse = CreateQualityCheckTaskResponse;
|
|
267
489
|
class DeleteDocumentRequest extends $tea.Model {
|
|
268
490
|
static names() {
|
|
269
491
|
return {
|
|
@@ -1078,6 +1300,72 @@ class GetParseResultResponse extends $tea.Model {
|
|
|
1078
1300
|
}
|
|
1079
1301
|
}
|
|
1080
1302
|
exports.GetParseResultResponse = GetParseResultResponse;
|
|
1303
|
+
class GetQualityCheckTaskResultRequest extends $tea.Model {
|
|
1304
|
+
static names() {
|
|
1305
|
+
return {
|
|
1306
|
+
taskId: 'taskId',
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
static types() {
|
|
1310
|
+
return {
|
|
1311
|
+
taskId: 'string',
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
constructor(map) {
|
|
1315
|
+
super(map);
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
exports.GetQualityCheckTaskResultRequest = GetQualityCheckTaskResultRequest;
|
|
1319
|
+
class GetQualityCheckTaskResultResponseBody extends $tea.Model {
|
|
1320
|
+
static names() {
|
|
1321
|
+
return {
|
|
1322
|
+
cost: 'cost',
|
|
1323
|
+
data: 'data',
|
|
1324
|
+
dataType: 'dataType',
|
|
1325
|
+
errCode: 'errCode',
|
|
1326
|
+
message: 'message',
|
|
1327
|
+
requestId: 'requestId',
|
|
1328
|
+
success: 'success',
|
|
1329
|
+
time: 'time',
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
static types() {
|
|
1333
|
+
return {
|
|
1334
|
+
cost: 'number',
|
|
1335
|
+
data: GetQualityCheckTaskResultResponseBodyData,
|
|
1336
|
+
dataType: 'string',
|
|
1337
|
+
errCode: 'string',
|
|
1338
|
+
message: 'string',
|
|
1339
|
+
requestId: 'string',
|
|
1340
|
+
success: 'boolean',
|
|
1341
|
+
time: 'string',
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
constructor(map) {
|
|
1345
|
+
super(map);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
exports.GetQualityCheckTaskResultResponseBody = GetQualityCheckTaskResultResponseBody;
|
|
1349
|
+
class GetQualityCheckTaskResultResponse extends $tea.Model {
|
|
1350
|
+
static names() {
|
|
1351
|
+
return {
|
|
1352
|
+
headers: 'headers',
|
|
1353
|
+
statusCode: 'statusCode',
|
|
1354
|
+
body: 'body',
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
static types() {
|
|
1358
|
+
return {
|
|
1359
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1360
|
+
statusCode: 'number',
|
|
1361
|
+
body: GetQualityCheckTaskResultResponseBody,
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
constructor(map) {
|
|
1365
|
+
super(map);
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
exports.GetQualityCheckTaskResultResponse = GetQualityCheckTaskResultResponse;
|
|
1081
1369
|
class GetSummaryTaskResultRequest extends $tea.Model {
|
|
1082
1370
|
static names() {
|
|
1083
1371
|
return {
|
|
@@ -1144,6 +1432,72 @@ class GetSummaryTaskResultResponse extends $tea.Model {
|
|
|
1144
1432
|
}
|
|
1145
1433
|
}
|
|
1146
1434
|
exports.GetSummaryTaskResultResponse = GetSummaryTaskResultResponse;
|
|
1435
|
+
class GetTaskResultRequest extends $tea.Model {
|
|
1436
|
+
static names() {
|
|
1437
|
+
return {
|
|
1438
|
+
taskId: 'taskId',
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
static types() {
|
|
1442
|
+
return {
|
|
1443
|
+
taskId: 'string',
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
constructor(map) {
|
|
1447
|
+
super(map);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
exports.GetTaskResultRequest = GetTaskResultRequest;
|
|
1451
|
+
class GetTaskResultResponseBody extends $tea.Model {
|
|
1452
|
+
static names() {
|
|
1453
|
+
return {
|
|
1454
|
+
cost: 'cost',
|
|
1455
|
+
data: 'data',
|
|
1456
|
+
dataType: 'dataType',
|
|
1457
|
+
errCode: 'errCode',
|
|
1458
|
+
message: 'message',
|
|
1459
|
+
requestId: 'requestId',
|
|
1460
|
+
success: 'success',
|
|
1461
|
+
time: 'time',
|
|
1462
|
+
};
|
|
1463
|
+
}
|
|
1464
|
+
static types() {
|
|
1465
|
+
return {
|
|
1466
|
+
cost: 'number',
|
|
1467
|
+
data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1468
|
+
dataType: 'string',
|
|
1469
|
+
errCode: 'string',
|
|
1470
|
+
message: 'string',
|
|
1471
|
+
requestId: 'string',
|
|
1472
|
+
success: 'boolean',
|
|
1473
|
+
time: 'string',
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
constructor(map) {
|
|
1477
|
+
super(map);
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
exports.GetTaskResultResponseBody = GetTaskResultResponseBody;
|
|
1481
|
+
class GetTaskResultResponse extends $tea.Model {
|
|
1482
|
+
static names() {
|
|
1483
|
+
return {
|
|
1484
|
+
headers: 'headers',
|
|
1485
|
+
statusCode: 'statusCode',
|
|
1486
|
+
body: 'body',
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
static types() {
|
|
1490
|
+
return {
|
|
1491
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1492
|
+
statusCode: 'number',
|
|
1493
|
+
body: GetTaskResultResponseBody,
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
constructor(map) {
|
|
1497
|
+
super(map);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
exports.GetTaskResultResponse = GetTaskResultResponse;
|
|
1147
1501
|
class GetTaskStatusRequest extends $tea.Model {
|
|
1148
1502
|
static names() {
|
|
1149
1503
|
return {
|
|
@@ -1976,6 +2330,28 @@ class UploadDocumentResponse extends $tea.Model {
|
|
|
1976
2330
|
}
|
|
1977
2331
|
}
|
|
1978
2332
|
exports.UploadDocumentResponse = UploadDocumentResponse;
|
|
2333
|
+
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2334
|
+
static names() {
|
|
2335
|
+
return {
|
|
2336
|
+
docId: 'docId',
|
|
2337
|
+
endPage: 'endPage',
|
|
2338
|
+
libraryId: 'libraryId',
|
|
2339
|
+
startPage: 'startPage',
|
|
2340
|
+
};
|
|
2341
|
+
}
|
|
2342
|
+
static types() {
|
|
2343
|
+
return {
|
|
2344
|
+
docId: 'string',
|
|
2345
|
+
endPage: 'number',
|
|
2346
|
+
libraryId: 'string',
|
|
2347
|
+
startPage: 'number',
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
constructor(map) {
|
|
2351
|
+
super(map);
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
exports.CreateDocsSummaryTaskRequestDocInfos = CreateDocsSummaryTaskRequestDocInfos;
|
|
1979
2355
|
class CreateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
1980
2356
|
static names() {
|
|
1981
2357
|
return {
|
|
@@ -2171,7 +2547,83 @@ class CreatePredefinedDocumentRequestChunks extends $tea.Model {
|
|
|
2171
2547
|
super(map);
|
|
2172
2548
|
}
|
|
2173
2549
|
}
|
|
2174
|
-
exports.CreatePredefinedDocumentRequestChunks = CreatePredefinedDocumentRequestChunks;
|
|
2550
|
+
exports.CreatePredefinedDocumentRequestChunks = CreatePredefinedDocumentRequestChunks;
|
|
2551
|
+
class CreateQualityCheckTaskRequestConversationListDialogueList extends $tea.Model {
|
|
2552
|
+
static names() {
|
|
2553
|
+
return {
|
|
2554
|
+
begin: 'begin',
|
|
2555
|
+
beginTime: 'beginTime',
|
|
2556
|
+
content: 'content',
|
|
2557
|
+
customerId: 'customerId',
|
|
2558
|
+
customerServiceId: 'customerServiceId',
|
|
2559
|
+
customerServiceType: 'customerServiceType',
|
|
2560
|
+
end: 'end',
|
|
2561
|
+
role: 'role',
|
|
2562
|
+
type: 'type',
|
|
2563
|
+
};
|
|
2564
|
+
}
|
|
2565
|
+
static types() {
|
|
2566
|
+
return {
|
|
2567
|
+
begin: 'number',
|
|
2568
|
+
beginTime: 'string',
|
|
2569
|
+
content: 'string',
|
|
2570
|
+
customerId: 'string',
|
|
2571
|
+
customerServiceId: 'string',
|
|
2572
|
+
customerServiceType: 'string',
|
|
2573
|
+
end: 'number',
|
|
2574
|
+
role: 'string',
|
|
2575
|
+
type: 'string',
|
|
2576
|
+
};
|
|
2577
|
+
}
|
|
2578
|
+
constructor(map) {
|
|
2579
|
+
super(map);
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
exports.CreateQualityCheckTaskRequestConversationListDialogueList = CreateQualityCheckTaskRequestConversationListDialogueList;
|
|
2583
|
+
class CreateQualityCheckTaskRequestConversationList extends $tea.Model {
|
|
2584
|
+
static names() {
|
|
2585
|
+
return {
|
|
2586
|
+
callType: 'callType',
|
|
2587
|
+
customerId: 'customerId',
|
|
2588
|
+
customerName: 'customerName',
|
|
2589
|
+
customerServiceId: 'customerServiceId',
|
|
2590
|
+
customerServiceName: 'customerServiceName',
|
|
2591
|
+
dialogueList: 'dialogueList',
|
|
2592
|
+
gmtService: 'gmtService',
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
static types() {
|
|
2596
|
+
return {
|
|
2597
|
+
callType: 'string',
|
|
2598
|
+
customerId: 'string',
|
|
2599
|
+
customerName: 'string',
|
|
2600
|
+
customerServiceId: 'string',
|
|
2601
|
+
customerServiceName: 'string',
|
|
2602
|
+
dialogueList: { 'type': 'array', 'itemType': CreateQualityCheckTaskRequestConversationListDialogueList },
|
|
2603
|
+
gmtService: 'string',
|
|
2604
|
+
};
|
|
2605
|
+
}
|
|
2606
|
+
constructor(map) {
|
|
2607
|
+
super(map);
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
exports.CreateQualityCheckTaskRequestConversationList = CreateQualityCheckTaskRequestConversationList;
|
|
2611
|
+
class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
|
|
2612
|
+
static names() {
|
|
2613
|
+
return {
|
|
2614
|
+
taskId: 'taskId',
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
static types() {
|
|
2618
|
+
return {
|
|
2619
|
+
taskId: 'string',
|
|
2620
|
+
};
|
|
2621
|
+
}
|
|
2622
|
+
constructor(map) {
|
|
2623
|
+
super(map);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
exports.CreateQualityCheckTaskResponseBodyData = CreateQualityCheckTaskResponseBodyData;
|
|
2175
2627
|
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
2176
2628
|
static names() {
|
|
2177
2629
|
return {
|
|
@@ -2952,6 +3404,166 @@ class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
2952
3404
|
}
|
|
2953
3405
|
}
|
|
2954
3406
|
exports.GetParseResultResponseBodyData = GetParseResultResponseBodyData;
|
|
3407
|
+
class GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList extends $tea.Model {
|
|
3408
|
+
static names() {
|
|
3409
|
+
return {
|
|
3410
|
+
begin: 'begin',
|
|
3411
|
+
beginTime: 'beginTime',
|
|
3412
|
+
content: 'content',
|
|
3413
|
+
customerId: 'customerId',
|
|
3414
|
+
customerServiceId: 'customerServiceId',
|
|
3415
|
+
customerServiceType: 'customerServiceType',
|
|
3416
|
+
end: 'end',
|
|
3417
|
+
id: 'id',
|
|
3418
|
+
role: 'role',
|
|
3419
|
+
type: 'type',
|
|
3420
|
+
};
|
|
3421
|
+
}
|
|
3422
|
+
static types() {
|
|
3423
|
+
return {
|
|
3424
|
+
begin: 'number',
|
|
3425
|
+
beginTime: 'string',
|
|
3426
|
+
content: 'string',
|
|
3427
|
+
customerId: 'string',
|
|
3428
|
+
customerServiceId: 'string',
|
|
3429
|
+
customerServiceType: 'string',
|
|
3430
|
+
end: 'number',
|
|
3431
|
+
id: 'number',
|
|
3432
|
+
role: 'string',
|
|
3433
|
+
type: 'string',
|
|
3434
|
+
};
|
|
3435
|
+
}
|
|
3436
|
+
constructor(map) {
|
|
3437
|
+
super(map);
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
exports.GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList = GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList;
|
|
3441
|
+
class GetQualityCheckTaskResultResponseBodyDataConversationList extends $tea.Model {
|
|
3442
|
+
static names() {
|
|
3443
|
+
return {
|
|
3444
|
+
callType: 'callType',
|
|
3445
|
+
customerId: 'customerId',
|
|
3446
|
+
customerName: 'customerName',
|
|
3447
|
+
customerServiceId: 'customerServiceId',
|
|
3448
|
+
customerServiceName: 'customerServiceName',
|
|
3449
|
+
dialogueList: 'dialogueList',
|
|
3450
|
+
gmtService: 'gmtService',
|
|
3451
|
+
};
|
|
3452
|
+
}
|
|
3453
|
+
static types() {
|
|
3454
|
+
return {
|
|
3455
|
+
callType: 'string',
|
|
3456
|
+
customerId: 'string',
|
|
3457
|
+
customerName: 'string',
|
|
3458
|
+
customerServiceId: 'string',
|
|
3459
|
+
customerServiceName: 'string',
|
|
3460
|
+
dialogueList: { 'type': 'array', 'itemType': GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList },
|
|
3461
|
+
gmtService: 'string',
|
|
3462
|
+
};
|
|
3463
|
+
}
|
|
3464
|
+
constructor(map) {
|
|
3465
|
+
super(map);
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
exports.GetQualityCheckTaskResultResponseBodyDataConversationList = GetQualityCheckTaskResultResponseBodyDataConversationList;
|
|
3469
|
+
class GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue extends $tea.Model {
|
|
3470
|
+
static names() {
|
|
3471
|
+
return {
|
|
3472
|
+
begin: 'begin',
|
|
3473
|
+
beginTime: 'beginTime',
|
|
3474
|
+
content: 'content',
|
|
3475
|
+
customerId: 'customerId',
|
|
3476
|
+
customerServiceId: 'customerServiceId',
|
|
3477
|
+
customerServiceType: 'customerServiceType',
|
|
3478
|
+
end: 'end',
|
|
3479
|
+
id: 'id',
|
|
3480
|
+
role: 'role',
|
|
3481
|
+
type: 'type',
|
|
3482
|
+
};
|
|
3483
|
+
}
|
|
3484
|
+
static types() {
|
|
3485
|
+
return {
|
|
3486
|
+
begin: 'number',
|
|
3487
|
+
beginTime: 'string',
|
|
3488
|
+
content: 'string',
|
|
3489
|
+
customerId: 'string',
|
|
3490
|
+
customerServiceId: 'string',
|
|
3491
|
+
customerServiceType: 'string',
|
|
3492
|
+
end: 'number',
|
|
3493
|
+
id: 'number',
|
|
3494
|
+
role: 'string',
|
|
3495
|
+
type: 'string',
|
|
3496
|
+
};
|
|
3497
|
+
}
|
|
3498
|
+
constructor(map) {
|
|
3499
|
+
super(map);
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue = GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue;
|
|
3503
|
+
class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $tea.Model {
|
|
3504
|
+
static names() {
|
|
3505
|
+
return {
|
|
3506
|
+
checkExplanation: 'checkExplanation',
|
|
3507
|
+
checkPassed: 'checkPassed',
|
|
3508
|
+
checkProcess: 'checkProcess',
|
|
3509
|
+
checked: 'checked',
|
|
3510
|
+
gmtEnd: 'gmtEnd',
|
|
3511
|
+
gmtStart: 'gmtStart',
|
|
3512
|
+
mode: 'mode',
|
|
3513
|
+
originDialogue: 'originDialogue',
|
|
3514
|
+
qualityGroupId: 'qualityGroupId',
|
|
3515
|
+
ruleDescription: 'ruleDescription',
|
|
3516
|
+
ruleId: 'ruleId',
|
|
3517
|
+
};
|
|
3518
|
+
}
|
|
3519
|
+
static types() {
|
|
3520
|
+
return {
|
|
3521
|
+
checkExplanation: 'string',
|
|
3522
|
+
checkPassed: 'string',
|
|
3523
|
+
checkProcess: 'string',
|
|
3524
|
+
checked: 'string',
|
|
3525
|
+
gmtEnd: 'string',
|
|
3526
|
+
gmtStart: 'string',
|
|
3527
|
+
mode: 'string',
|
|
3528
|
+
originDialogue: { 'type': 'array', 'itemType': GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue },
|
|
3529
|
+
qualityGroupId: 'string',
|
|
3530
|
+
ruleDescription: 'string',
|
|
3531
|
+
ruleId: 'string',
|
|
3532
|
+
};
|
|
3533
|
+
}
|
|
3534
|
+
constructor(map) {
|
|
3535
|
+
super(map);
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckList = GetQualityCheckTaskResultResponseBodyDataQualityCheckList;
|
|
3539
|
+
class GetQualityCheckTaskResultResponseBodyData extends $tea.Model {
|
|
3540
|
+
static names() {
|
|
3541
|
+
return {
|
|
3542
|
+
conversationList: 'conversationList',
|
|
3543
|
+
gmtCreate: 'gmtCreate',
|
|
3544
|
+
gmtEnd: 'gmtEnd',
|
|
3545
|
+
gmtStart: 'gmtStart',
|
|
3546
|
+
qualityCheckList: 'qualityCheckList',
|
|
3547
|
+
status: 'status',
|
|
3548
|
+
taskId: 'taskId',
|
|
3549
|
+
};
|
|
3550
|
+
}
|
|
3551
|
+
static types() {
|
|
3552
|
+
return {
|
|
3553
|
+
conversationList: GetQualityCheckTaskResultResponseBodyDataConversationList,
|
|
3554
|
+
gmtCreate: 'string',
|
|
3555
|
+
gmtEnd: 'string',
|
|
3556
|
+
gmtStart: 'string',
|
|
3557
|
+
qualityCheckList: { 'type': 'array', 'itemType': GetQualityCheckTaskResultResponseBodyDataQualityCheckList },
|
|
3558
|
+
status: 'string',
|
|
3559
|
+
taskId: 'string',
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
constructor(map) {
|
|
3563
|
+
super(map);
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
exports.GetQualityCheckTaskResultResponseBodyData = GetQualityCheckTaskResultResponseBodyData;
|
|
2955
3567
|
class GetSummaryTaskResultResponseBodyDataChoicesMessage extends $tea.Model {
|
|
2956
3568
|
static names() {
|
|
2957
3569
|
return {
|
|
@@ -3958,6 +4570,57 @@ class Client extends openapi_client_1.default {
|
|
|
3958
4570
|
}
|
|
3959
4571
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
3960
4572
|
}
|
|
4573
|
+
/**
|
|
4574
|
+
* 创建财报总结任务
|
|
4575
|
+
*
|
|
4576
|
+
* @param request - CreateDocsSummaryTaskRequest
|
|
4577
|
+
* @param headers - map
|
|
4578
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4579
|
+
* @returns CreateDocsSummaryTaskResponse
|
|
4580
|
+
*/
|
|
4581
|
+
async createDocsSummaryTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4582
|
+
tea_util_1.default.validateModel(request);
|
|
4583
|
+
let body = {};
|
|
4584
|
+
if (!tea_util_1.default.isUnset(request.docInfos)) {
|
|
4585
|
+
body["docInfos"] = request.docInfos;
|
|
4586
|
+
}
|
|
4587
|
+
if (!tea_util_1.default.isUnset(request.enableTable)) {
|
|
4588
|
+
body["enableTable"] = request.enableTable;
|
|
4589
|
+
}
|
|
4590
|
+
if (!tea_util_1.default.isUnset(request.instruction)) {
|
|
4591
|
+
body["instruction"] = request.instruction;
|
|
4592
|
+
}
|
|
4593
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4594
|
+
body["modelId"] = request.modelId;
|
|
4595
|
+
}
|
|
4596
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4597
|
+
headers: headers,
|
|
4598
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4599
|
+
});
|
|
4600
|
+
let params = new $OpenApi.Params({
|
|
4601
|
+
action: "CreateDocsSummaryTask",
|
|
4602
|
+
version: "2024-06-28",
|
|
4603
|
+
protocol: "HTTPS",
|
|
4604
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary/docs`,
|
|
4605
|
+
method: "POST",
|
|
4606
|
+
authType: "AK",
|
|
4607
|
+
style: "ROA",
|
|
4608
|
+
reqBodyType: "json",
|
|
4609
|
+
bodyType: "json",
|
|
4610
|
+
});
|
|
4611
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4612
|
+
}
|
|
4613
|
+
/**
|
|
4614
|
+
* 创建财报总结任务
|
|
4615
|
+
*
|
|
4616
|
+
* @param request - CreateDocsSummaryTaskRequest
|
|
4617
|
+
* @returns CreateDocsSummaryTaskResponse
|
|
4618
|
+
*/
|
|
4619
|
+
async createDocsSummaryTask(workspaceId, request) {
|
|
4620
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4621
|
+
let headers = {};
|
|
4622
|
+
return await this.createDocsSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4623
|
+
}
|
|
3961
4624
|
/**
|
|
3962
4625
|
* 创建财报总结任务
|
|
3963
4626
|
*
|
|
@@ -4069,6 +4732,60 @@ class Client extends openapi_client_1.default {
|
|
|
4069
4732
|
let headers = {};
|
|
4070
4733
|
return await this.createLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
4071
4734
|
}
|
|
4735
|
+
/**
|
|
4736
|
+
* 创建PDF翻译任务
|
|
4737
|
+
*
|
|
4738
|
+
* @param request - CreatePdfTranslateTaskRequest
|
|
4739
|
+
* @param headers - map
|
|
4740
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4741
|
+
* @returns CreatePdfTranslateTaskResponse
|
|
4742
|
+
*/
|
|
4743
|
+
async createPdfTranslateTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4744
|
+
tea_util_1.default.validateModel(request);
|
|
4745
|
+
let body = {};
|
|
4746
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
4747
|
+
body["docId"] = request.docId;
|
|
4748
|
+
}
|
|
4749
|
+
if (!tea_util_1.default.isUnset(request.knowledge)) {
|
|
4750
|
+
body["knowledge"] = request.knowledge;
|
|
4751
|
+
}
|
|
4752
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
4753
|
+
body["libraryId"] = request.libraryId;
|
|
4754
|
+
}
|
|
4755
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4756
|
+
body["modelId"] = request.modelId;
|
|
4757
|
+
}
|
|
4758
|
+
if (!tea_util_1.default.isUnset(request.translateTo)) {
|
|
4759
|
+
body["translateTo"] = request.translateTo;
|
|
4760
|
+
}
|
|
4761
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4762
|
+
headers: headers,
|
|
4763
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4764
|
+
});
|
|
4765
|
+
let params = new $OpenApi.Params({
|
|
4766
|
+
action: "CreatePdfTranslateTask",
|
|
4767
|
+
version: "2024-06-28",
|
|
4768
|
+
protocol: "HTTPS",
|
|
4769
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/pdfTranslate`,
|
|
4770
|
+
method: "POST",
|
|
4771
|
+
authType: "AK",
|
|
4772
|
+
style: "ROA",
|
|
4773
|
+
reqBodyType: "json",
|
|
4774
|
+
bodyType: "json",
|
|
4775
|
+
});
|
|
4776
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
4777
|
+
}
|
|
4778
|
+
/**
|
|
4779
|
+
* 创建PDF翻译任务
|
|
4780
|
+
*
|
|
4781
|
+
* @param request - CreatePdfTranslateTaskRequest
|
|
4782
|
+
* @returns CreatePdfTranslateTaskResponse
|
|
4783
|
+
*/
|
|
4784
|
+
async createPdfTranslateTask(workspaceId, request) {
|
|
4785
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4786
|
+
let headers = {};
|
|
4787
|
+
return await this.createPdfTranslateTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4788
|
+
}
|
|
4072
4789
|
/**
|
|
4073
4790
|
* 创建预定义文档
|
|
4074
4791
|
*
|
|
@@ -4120,6 +4837,63 @@ class Client extends openapi_client_1.default {
|
|
|
4120
4837
|
let headers = {};
|
|
4121
4838
|
return await this.createPredefinedDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
4122
4839
|
}
|
|
4840
|
+
/**
|
|
4841
|
+
* 创建财报总结的任务
|
|
4842
|
+
*
|
|
4843
|
+
* @param request - CreateQualityCheckTaskRequest
|
|
4844
|
+
* @param headers - map
|
|
4845
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4846
|
+
* @returns CreateQualityCheckTaskResponse
|
|
4847
|
+
*/
|
|
4848
|
+
async createQualityCheckTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4849
|
+
tea_util_1.default.validateModel(request);
|
|
4850
|
+
let body = {};
|
|
4851
|
+
if (!tea_util_1.default.isUnset(request.conversationList)) {
|
|
4852
|
+
body["conversationList"] = request.conversationList;
|
|
4853
|
+
}
|
|
4854
|
+
if (!tea_util_1.default.isUnset(request.gmtService)) {
|
|
4855
|
+
body["gmtService"] = request.gmtService;
|
|
4856
|
+
}
|
|
4857
|
+
if (!tea_util_1.default.isUnset(request.metaData)) {
|
|
4858
|
+
body["metaData"] = request.metaData;
|
|
4859
|
+
}
|
|
4860
|
+
if (!tea_util_1.default.isUnset(request.qualityGroup)) {
|
|
4861
|
+
body["qualityGroup"] = request.qualityGroup;
|
|
4862
|
+
}
|
|
4863
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
4864
|
+
body["requestId"] = request.requestId;
|
|
4865
|
+
}
|
|
4866
|
+
if (!tea_util_1.default.isUnset(request.type)) {
|
|
4867
|
+
body["type"] = request.type;
|
|
4868
|
+
}
|
|
4869
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4870
|
+
headers: headers,
|
|
4871
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4872
|
+
});
|
|
4873
|
+
let params = new $OpenApi.Params({
|
|
4874
|
+
action: "CreateQualityCheckTask",
|
|
4875
|
+
version: "2024-06-28",
|
|
4876
|
+
protocol: "HTTPS",
|
|
4877
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/qualitycheck/task/submit`,
|
|
4878
|
+
method: "POST",
|
|
4879
|
+
authType: "AK",
|
|
4880
|
+
style: "ROA",
|
|
4881
|
+
reqBodyType: "json",
|
|
4882
|
+
bodyType: "json",
|
|
4883
|
+
});
|
|
4884
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
4885
|
+
}
|
|
4886
|
+
/**
|
|
4887
|
+
* 创建财报总结的任务
|
|
4888
|
+
*
|
|
4889
|
+
* @param request - CreateQualityCheckTaskRequest
|
|
4890
|
+
* @returns CreateQualityCheckTaskResponse
|
|
4891
|
+
*/
|
|
4892
|
+
async createQualityCheckTask(workspaceId, request) {
|
|
4893
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4894
|
+
let headers = {};
|
|
4895
|
+
return await this.createQualityCheckTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4896
|
+
}
|
|
4123
4897
|
/**
|
|
4124
4898
|
* 删除文档
|
|
4125
4899
|
*
|
|
@@ -4684,6 +5458,48 @@ class Client extends openapi_client_1.default {
|
|
|
4684
5458
|
let headers = {};
|
|
4685
5459
|
return await this.getParseResultWithOptions(workspaceId, request, headers, runtime);
|
|
4686
5460
|
}
|
|
5461
|
+
/**
|
|
5462
|
+
* 获取异步任务的结果
|
|
5463
|
+
*
|
|
5464
|
+
* @param request - GetQualityCheckTaskResultRequest
|
|
5465
|
+
* @param headers - map
|
|
5466
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5467
|
+
* @returns GetQualityCheckTaskResultResponse
|
|
5468
|
+
*/
|
|
5469
|
+
async getQualityCheckTaskResultWithOptions(workspaceId, request, headers, runtime) {
|
|
5470
|
+
tea_util_1.default.validateModel(request);
|
|
5471
|
+
let query = {};
|
|
5472
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
5473
|
+
query["taskId"] = request.taskId;
|
|
5474
|
+
}
|
|
5475
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5476
|
+
headers: headers,
|
|
5477
|
+
query: openapi_util_1.default.query(query),
|
|
5478
|
+
});
|
|
5479
|
+
let params = new $OpenApi.Params({
|
|
5480
|
+
action: "GetQualityCheckTaskResult",
|
|
5481
|
+
version: "2024-06-28",
|
|
5482
|
+
protocol: "HTTPS",
|
|
5483
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/qualitycheck/task/query`,
|
|
5484
|
+
method: "GET",
|
|
5485
|
+
authType: "AK",
|
|
5486
|
+
style: "ROA",
|
|
5487
|
+
reqBodyType: "json",
|
|
5488
|
+
bodyType: "json",
|
|
5489
|
+
});
|
|
5490
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5491
|
+
}
|
|
5492
|
+
/**
|
|
5493
|
+
* 获取异步任务的结果
|
|
5494
|
+
*
|
|
5495
|
+
* @param request - GetQualityCheckTaskResultRequest
|
|
5496
|
+
* @returns GetQualityCheckTaskResultResponse
|
|
5497
|
+
*/
|
|
5498
|
+
async getQualityCheckTaskResult(workspaceId, request) {
|
|
5499
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5500
|
+
let headers = {};
|
|
5501
|
+
return await this.getQualityCheckTaskResultWithOptions(workspaceId, request, headers, runtime);
|
|
5502
|
+
}
|
|
4687
5503
|
/**
|
|
4688
5504
|
* 获取财报总结任务结果
|
|
4689
5505
|
*
|
|
@@ -4726,6 +5542,48 @@ class Client extends openapi_client_1.default {
|
|
|
4726
5542
|
let headers = {};
|
|
4727
5543
|
return await this.getSummaryTaskResultWithOptions(workspaceId, request, headers, runtime);
|
|
4728
5544
|
}
|
|
5545
|
+
/**
|
|
5546
|
+
* 获取异步任务结果
|
|
5547
|
+
*
|
|
5548
|
+
* @param request - GetTaskResultRequest
|
|
5549
|
+
* @param headers - map
|
|
5550
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5551
|
+
* @returns GetTaskResultResponse
|
|
5552
|
+
*/
|
|
5553
|
+
async getTaskResultWithOptions(workspaceId, request, headers, runtime) {
|
|
5554
|
+
tea_util_1.default.validateModel(request);
|
|
5555
|
+
let query = {};
|
|
5556
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
5557
|
+
query["taskId"] = request.taskId;
|
|
5558
|
+
}
|
|
5559
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5560
|
+
headers: headers,
|
|
5561
|
+
query: openapi_util_1.default.query(query),
|
|
5562
|
+
});
|
|
5563
|
+
let params = new $OpenApi.Params({
|
|
5564
|
+
action: "GetTaskResult",
|
|
5565
|
+
version: "2024-06-28",
|
|
5566
|
+
protocol: "HTTPS",
|
|
5567
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/result`,
|
|
5568
|
+
method: "GET",
|
|
5569
|
+
authType: "AK",
|
|
5570
|
+
style: "ROA",
|
|
5571
|
+
reqBodyType: "json",
|
|
5572
|
+
bodyType: "json",
|
|
5573
|
+
});
|
|
5574
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
|
|
5575
|
+
}
|
|
5576
|
+
/**
|
|
5577
|
+
* 获取异步任务结果
|
|
5578
|
+
*
|
|
5579
|
+
* @param request - GetTaskResultRequest
|
|
5580
|
+
* @returns GetTaskResultResponse
|
|
5581
|
+
*/
|
|
5582
|
+
async getTaskResult(workspaceId, request) {
|
|
5583
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5584
|
+
let headers = {};
|
|
5585
|
+
return await this.getTaskResultWithOptions(workspaceId, request, headers, runtime);
|
|
5586
|
+
}
|
|
4729
5587
|
/**
|
|
4730
5588
|
* 获取财报总结任务结果
|
|
4731
5589
|
*
|
|
@@ -4898,7 +5756,7 @@ class Client extends openapi_client_1.default {
|
|
|
4898
5756
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
4899
5757
|
}
|
|
4900
5758
|
/**
|
|
4901
|
-
*
|
|
5759
|
+
* 文档召回。
|
|
4902
5760
|
*
|
|
4903
5761
|
* @param request - RecallDocumentRequest
|
|
4904
5762
|
* @param headers - map
|
|
@@ -4938,7 +5796,7 @@ class Client extends openapi_client_1.default {
|
|
|
4938
5796
|
return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
4939
5797
|
}
|
|
4940
5798
|
/**
|
|
4941
|
-
*
|
|
5799
|
+
* 文档召回。
|
|
4942
5800
|
*
|
|
4943
5801
|
* @param request - RecallDocumentRequest
|
|
4944
5802
|
* @returns RecallDocumentResponse
|