@alicloud/dianjin20240628 1.3.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 +758 -30
- package/dist/client.js +626 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1281 -138
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 = exports.RunLibraryChatGenerationRequestQueryCriteriaOr = exports.RunLibraryChatGenerationRequestQueryCriteriaAnd = exports.RunChatResultGenerationResponseBodyUsage = exports.RunChatResultGenerationResponseBodyChoices = exports.RunChatResultGenerationResponseBodyChoicesMessage = exports.RunChatResultGenerationRequestTools = 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 {
|
|
@@ -338,6 +410,82 @@ class CreatePredefinedDocumentResponse extends $tea.Model {
|
|
|
338
410
|
}
|
|
339
411
|
}
|
|
340
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;
|
|
341
489
|
class DeleteDocumentRequest extends $tea.Model {
|
|
342
490
|
static names() {
|
|
343
491
|
return {
|
|
@@ -1152,6 +1300,72 @@ class GetParseResultResponse extends $tea.Model {
|
|
|
1152
1300
|
}
|
|
1153
1301
|
}
|
|
1154
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;
|
|
1155
1369
|
class GetSummaryTaskResultRequest extends $tea.Model {
|
|
1156
1370
|
static names() {
|
|
1157
1371
|
return {
|
|
@@ -2116,6 +2330,28 @@ class UploadDocumentResponse extends $tea.Model {
|
|
|
2116
2330
|
}
|
|
2117
2331
|
}
|
|
2118
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;
|
|
2119
2355
|
class CreateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
2120
2356
|
static names() {
|
|
2121
2357
|
return {
|
|
@@ -2312,6 +2548,82 @@ class CreatePredefinedDocumentRequestChunks extends $tea.Model {
|
|
|
2312
2548
|
}
|
|
2313
2549
|
}
|
|
2314
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;
|
|
2315
2627
|
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
2316
2628
|
static names() {
|
|
2317
2629
|
return {
|
|
@@ -3092,6 +3404,166 @@ class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
3092
3404
|
}
|
|
3093
3405
|
}
|
|
3094
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;
|
|
3095
3567
|
class GetSummaryTaskResultResponseBodyDataChoicesMessage extends $tea.Model {
|
|
3096
3568
|
static names() {
|
|
3097
3569
|
return {
|
|
@@ -4098,6 +4570,57 @@ class Client extends openapi_client_1.default {
|
|
|
4098
4570
|
}
|
|
4099
4571
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
4100
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
|
+
}
|
|
4101
4624
|
/**
|
|
4102
4625
|
* 创建财报总结任务
|
|
4103
4626
|
*
|
|
@@ -4314,6 +4837,63 @@ class Client extends openapi_client_1.default {
|
|
|
4314
4837
|
let headers = {};
|
|
4315
4838
|
return await this.createPredefinedDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
4316
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
|
+
}
|
|
4317
4897
|
/**
|
|
4318
4898
|
* 删除文档
|
|
4319
4899
|
*
|
|
@@ -4878,6 +5458,48 @@ class Client extends openapi_client_1.default {
|
|
|
4878
5458
|
let headers = {};
|
|
4879
5459
|
return await this.getParseResultWithOptions(workspaceId, request, headers, runtime);
|
|
4880
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
|
+
}
|
|
4881
5503
|
/**
|
|
4882
5504
|
* 获取财报总结任务结果
|
|
4883
5505
|
*
|