@alicloud/dianjin20240628 1.4.0 → 1.6.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 +264 -0
- package/dist/client.js +264 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +429 -0
package/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,108 @@ import * as $Util from '@alicloud/tea-util';
|
|
|
4
4
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
5
5
|
import { Readable } from 'stream';
|
|
6
6
|
import * as $tea from '@alicloud/tea-typescript';
|
|
7
|
+
export declare class CreateAnnualDocSummaryTaskRequest extends $tea.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*/
|
|
12
|
+
anaYears?: number[];
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* This parameter is required.
|
|
16
|
+
*/
|
|
17
|
+
docInfos?: CreateAnnualDocSummaryTaskRequestDocInfos[];
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* true
|
|
21
|
+
*/
|
|
22
|
+
enableTable?: boolean;
|
|
23
|
+
instruction?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* qwen-plus
|
|
30
|
+
*/
|
|
31
|
+
modelId?: string;
|
|
32
|
+
static names(): {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
35
|
+
static types(): {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
constructor(map?: {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export declare class CreateAnnualDocSummaryTaskResponseBody extends $tea.Model {
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* null
|
|
46
|
+
*/
|
|
47
|
+
cost?: number;
|
|
48
|
+
/**
|
|
49
|
+
* @example
|
|
50
|
+
* 3284627354
|
|
51
|
+
*/
|
|
52
|
+
data?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* null
|
|
56
|
+
*/
|
|
57
|
+
dataType?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @example
|
|
60
|
+
* 0
|
|
61
|
+
*/
|
|
62
|
+
errCode?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @example
|
|
65
|
+
* ok
|
|
66
|
+
*/
|
|
67
|
+
message?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @example
|
|
70
|
+
* 32FFC91D-0A9F-585A-B84F-8A54C5187035
|
|
71
|
+
*/
|
|
72
|
+
requestId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @example
|
|
75
|
+
* true
|
|
76
|
+
*/
|
|
77
|
+
success?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @example
|
|
80
|
+
* 2024-01-01 00:00:00
|
|
81
|
+
*/
|
|
82
|
+
time?: string;
|
|
83
|
+
static names(): {
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
};
|
|
86
|
+
static types(): {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
};
|
|
89
|
+
constructor(map?: {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
export declare class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
|
|
94
|
+
headers?: {
|
|
95
|
+
[key: string]: string;
|
|
96
|
+
};
|
|
97
|
+
statusCode?: number;
|
|
98
|
+
body?: CreateAnnualDocSummaryTaskResponseBody;
|
|
99
|
+
static names(): {
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
};
|
|
102
|
+
static types(): {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
};
|
|
105
|
+
constructor(map?: {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
7
109
|
export declare class CreateDocsSummaryTaskRequest extends $tea.Model {
|
|
8
110
|
/**
|
|
9
111
|
* @remarks
|
|
@@ -2234,6 +2336,87 @@ export declare class ReIndexResponse extends $tea.Model {
|
|
|
2234
2336
|
[key: string]: any;
|
|
2235
2337
|
});
|
|
2236
2338
|
}
|
|
2339
|
+
export declare class RebuildTaskRequest extends $tea.Model {
|
|
2340
|
+
/**
|
|
2341
|
+
* @remarks
|
|
2342
|
+
* This parameter is required.
|
|
2343
|
+
*/
|
|
2344
|
+
taskIds?: string[];
|
|
2345
|
+
static names(): {
|
|
2346
|
+
[key: string]: string;
|
|
2347
|
+
};
|
|
2348
|
+
static types(): {
|
|
2349
|
+
[key: string]: any;
|
|
2350
|
+
};
|
|
2351
|
+
constructor(map?: {
|
|
2352
|
+
[key: string]: any;
|
|
2353
|
+
});
|
|
2354
|
+
}
|
|
2355
|
+
export declare class RebuildTaskResponseBody extends $tea.Model {
|
|
2356
|
+
/**
|
|
2357
|
+
* @example
|
|
2358
|
+
* null
|
|
2359
|
+
*/
|
|
2360
|
+
cost?: number;
|
|
2361
|
+
data?: {
|
|
2362
|
+
[key: string]: any;
|
|
2363
|
+
}[];
|
|
2364
|
+
/**
|
|
2365
|
+
* @example
|
|
2366
|
+
* null
|
|
2367
|
+
*/
|
|
2368
|
+
dataType?: string;
|
|
2369
|
+
/**
|
|
2370
|
+
* @example
|
|
2371
|
+
* 0
|
|
2372
|
+
*/
|
|
2373
|
+
errCode?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* @example
|
|
2376
|
+
* ok
|
|
2377
|
+
*/
|
|
2378
|
+
message?: string;
|
|
2379
|
+
/**
|
|
2380
|
+
* @example
|
|
2381
|
+
* EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
|
|
2382
|
+
*/
|
|
2383
|
+
requestId?: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* @example
|
|
2386
|
+
* true
|
|
2387
|
+
*/
|
|
2388
|
+
success?: boolean;
|
|
2389
|
+
/**
|
|
2390
|
+
* @example
|
|
2391
|
+
* 2024-04-24 11:54:34
|
|
2392
|
+
*/
|
|
2393
|
+
time?: string;
|
|
2394
|
+
static names(): {
|
|
2395
|
+
[key: string]: string;
|
|
2396
|
+
};
|
|
2397
|
+
static types(): {
|
|
2398
|
+
[key: string]: any;
|
|
2399
|
+
};
|
|
2400
|
+
constructor(map?: {
|
|
2401
|
+
[key: string]: any;
|
|
2402
|
+
});
|
|
2403
|
+
}
|
|
2404
|
+
export declare class RebuildTaskResponse extends $tea.Model {
|
|
2405
|
+
headers?: {
|
|
2406
|
+
[key: string]: string;
|
|
2407
|
+
};
|
|
2408
|
+
statusCode?: number;
|
|
2409
|
+
body?: RebuildTaskResponseBody;
|
|
2410
|
+
static names(): {
|
|
2411
|
+
[key: string]: string;
|
|
2412
|
+
};
|
|
2413
|
+
static types(): {
|
|
2414
|
+
[key: string]: any;
|
|
2415
|
+
};
|
|
2416
|
+
constructor(map?: {
|
|
2417
|
+
[key: string]: any;
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2237
2420
|
export declare class RecallDocumentRequest extends $tea.Model {
|
|
2238
2421
|
filters?: RecallDocumentRequestFilters[];
|
|
2239
2422
|
/**
|
|
@@ -3019,6 +3202,51 @@ export declare class UploadDocumentResponse extends $tea.Model {
|
|
|
3019
3202
|
[key: string]: any;
|
|
3020
3203
|
});
|
|
3021
3204
|
}
|
|
3205
|
+
export declare class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
3206
|
+
/**
|
|
3207
|
+
* @remarks
|
|
3208
|
+
* This parameter is required.
|
|
3209
|
+
*
|
|
3210
|
+
* @example
|
|
3211
|
+
* 198386463432
|
|
3212
|
+
*/
|
|
3213
|
+
docId?: string;
|
|
3214
|
+
/**
|
|
3215
|
+
* @remarks
|
|
3216
|
+
* This parameter is required.
|
|
3217
|
+
*
|
|
3218
|
+
* @example
|
|
3219
|
+
* 2023
|
|
3220
|
+
*/
|
|
3221
|
+
docYear?: number;
|
|
3222
|
+
/**
|
|
3223
|
+
* @example
|
|
3224
|
+
* 2
|
|
3225
|
+
*/
|
|
3226
|
+
endPage?: number;
|
|
3227
|
+
/**
|
|
3228
|
+
* @remarks
|
|
3229
|
+
* This parameter is required.
|
|
3230
|
+
*
|
|
3231
|
+
* @example
|
|
3232
|
+
* rdxrmo6amk
|
|
3233
|
+
*/
|
|
3234
|
+
libraryId?: string;
|
|
3235
|
+
/**
|
|
3236
|
+
* @example
|
|
3237
|
+
* 1
|
|
3238
|
+
*/
|
|
3239
|
+
startPage?: number;
|
|
3240
|
+
static names(): {
|
|
3241
|
+
[key: string]: string;
|
|
3242
|
+
};
|
|
3243
|
+
static types(): {
|
|
3244
|
+
[key: string]: any;
|
|
3245
|
+
};
|
|
3246
|
+
constructor(map?: {
|
|
3247
|
+
[key: string]: any;
|
|
3248
|
+
});
|
|
3249
|
+
}
|
|
3022
3250
|
export declare class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
3023
3251
|
/**
|
|
3024
3252
|
* @remarks
|
|
@@ -6034,6 +6262,24 @@ export default class Client extends OpenApi {
|
|
|
6034
6262
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
6035
6263
|
[key: string]: string;
|
|
6036
6264
|
}, endpoint: string): string;
|
|
6265
|
+
/**
|
|
6266
|
+
* 创建按年文档总结任务
|
|
6267
|
+
*
|
|
6268
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
6269
|
+
* @param headers - map
|
|
6270
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6271
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
6272
|
+
*/
|
|
6273
|
+
createAnnualDocSummaryTaskWithOptions(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest, headers: {
|
|
6274
|
+
[key: string]: string;
|
|
6275
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreateAnnualDocSummaryTaskResponse>;
|
|
6276
|
+
/**
|
|
6277
|
+
* 创建按年文档总结任务
|
|
6278
|
+
*
|
|
6279
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
6280
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
6281
|
+
*/
|
|
6282
|
+
createAnnualDocSummaryTask(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest): Promise<CreateAnnualDocSummaryTaskResponse>;
|
|
6037
6283
|
/**
|
|
6038
6284
|
* 创建财报总结任务
|
|
6039
6285
|
*
|
|
@@ -6481,6 +6727,24 @@ export default class Client extends OpenApi {
|
|
|
6481
6727
|
* @returns ReIndexResponse
|
|
6482
6728
|
*/
|
|
6483
6729
|
reIndex(workspaceId: string, request: ReIndexRequest): Promise<ReIndexResponse>;
|
|
6730
|
+
/**
|
|
6731
|
+
* 重建任务
|
|
6732
|
+
*
|
|
6733
|
+
* @param request - RebuildTaskRequest
|
|
6734
|
+
* @param headers - map
|
|
6735
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6736
|
+
* @returns RebuildTaskResponse
|
|
6737
|
+
*/
|
|
6738
|
+
rebuildTaskWithOptions(workspaceId: string, request: RebuildTaskRequest, headers: {
|
|
6739
|
+
[key: string]: string;
|
|
6740
|
+
}, runtime: $Util.RuntimeOptions): Promise<RebuildTaskResponse>;
|
|
6741
|
+
/**
|
|
6742
|
+
* 重建任务
|
|
6743
|
+
*
|
|
6744
|
+
* @param request - RebuildTaskRequest
|
|
6745
|
+
* @returns RebuildTaskResponse
|
|
6746
|
+
*/
|
|
6747
|
+
rebuildTask(workspaceId: string, request: RebuildTaskRequest): Promise<RebuildTaskResponse>;
|
|
6484
6748
|
/**
|
|
6485
6749
|
* 文档召回。
|
|
6486
6750
|
*
|
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 = 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;
|
|
29
|
+
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 = exports.CreateAnnualDocSummaryTaskResponse = exports.CreateAnnualDocSummaryTaskResponseBody = exports.CreateAnnualDocSummaryTaskRequest = void 0;
|
|
30
|
+
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.RebuildTaskResponse = exports.RebuildTaskResponseBody = exports.RebuildTaskRequest = 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 = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = void 0;
|
|
31
|
+
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 = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = exports.CreateDocsSummaryTaskRequestDocInfos = exports.CreateAnnualDocSummaryTaskRequestDocInfos = exports.UploadDocumentResponse = exports.UploadDocumentResponseBody = 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 = exports.RecallDocumentRequestFiltersOr = exports.RecallDocumentRequestFiltersAnd = exports.PreviewDocumentResponseBodyData = exports.GetSummaryTaskResultResponseBodyData = exports.GetSummaryTaskResultResponseBodyDataUsage = exports.GetSummaryTaskResultResponseBodyDataChoices = exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = void 0;
|
|
33
33
|
// This file is auto-generated, don't edit it
|
|
34
34
|
/**
|
|
35
35
|
*/
|
|
@@ -42,6 +42,80 @@ 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 CreateAnnualDocSummaryTaskRequest extends $tea.Model {
|
|
46
|
+
static names() {
|
|
47
|
+
return {
|
|
48
|
+
anaYears: 'anaYears',
|
|
49
|
+
docInfos: 'docInfos',
|
|
50
|
+
enableTable: 'enableTable',
|
|
51
|
+
instruction: 'instruction',
|
|
52
|
+
modelId: 'modelId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static types() {
|
|
56
|
+
return {
|
|
57
|
+
anaYears: { 'type': 'array', 'itemType': 'number' },
|
|
58
|
+
docInfos: { 'type': 'array', 'itemType': CreateAnnualDocSummaryTaskRequestDocInfos },
|
|
59
|
+
enableTable: 'boolean',
|
|
60
|
+
instruction: 'string',
|
|
61
|
+
modelId: 'string',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.CreateAnnualDocSummaryTaskRequest = CreateAnnualDocSummaryTaskRequest;
|
|
69
|
+
class CreateAnnualDocSummaryTaskResponseBody extends $tea.Model {
|
|
70
|
+
static names() {
|
|
71
|
+
return {
|
|
72
|
+
cost: 'cost',
|
|
73
|
+
data: 'data',
|
|
74
|
+
dataType: 'dataType',
|
|
75
|
+
errCode: 'errCode',
|
|
76
|
+
message: 'message',
|
|
77
|
+
requestId: 'requestId',
|
|
78
|
+
success: 'success',
|
|
79
|
+
time: 'time',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
static types() {
|
|
83
|
+
return {
|
|
84
|
+
cost: 'number',
|
|
85
|
+
data: 'string',
|
|
86
|
+
dataType: 'string',
|
|
87
|
+
errCode: 'string',
|
|
88
|
+
message: 'string',
|
|
89
|
+
requestId: 'string',
|
|
90
|
+
success: 'boolean',
|
|
91
|
+
time: 'string',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
constructor(map) {
|
|
95
|
+
super(map);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.CreateAnnualDocSummaryTaskResponseBody = CreateAnnualDocSummaryTaskResponseBody;
|
|
99
|
+
class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
|
|
100
|
+
static names() {
|
|
101
|
+
return {
|
|
102
|
+
headers: 'headers',
|
|
103
|
+
statusCode: 'statusCode',
|
|
104
|
+
body: 'body',
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static types() {
|
|
108
|
+
return {
|
|
109
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
110
|
+
statusCode: 'number',
|
|
111
|
+
body: CreateAnnualDocSummaryTaskResponseBody,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
constructor(map) {
|
|
115
|
+
super(map);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.CreateAnnualDocSummaryTaskResponse = CreateAnnualDocSummaryTaskResponse;
|
|
45
119
|
class CreateDocsSummaryTaskRequest extends $tea.Model {
|
|
46
120
|
static names() {
|
|
47
121
|
return {
|
|
@@ -1764,6 +1838,72 @@ class ReIndexResponse extends $tea.Model {
|
|
|
1764
1838
|
}
|
|
1765
1839
|
}
|
|
1766
1840
|
exports.ReIndexResponse = ReIndexResponse;
|
|
1841
|
+
class RebuildTaskRequest extends $tea.Model {
|
|
1842
|
+
static names() {
|
|
1843
|
+
return {
|
|
1844
|
+
taskIds: 'taskIds',
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
static types() {
|
|
1848
|
+
return {
|
|
1849
|
+
taskIds: { 'type': 'array', 'itemType': 'string' },
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
constructor(map) {
|
|
1853
|
+
super(map);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
exports.RebuildTaskRequest = RebuildTaskRequest;
|
|
1857
|
+
class RebuildTaskResponseBody extends $tea.Model {
|
|
1858
|
+
static names() {
|
|
1859
|
+
return {
|
|
1860
|
+
cost: 'cost',
|
|
1861
|
+
data: 'data',
|
|
1862
|
+
dataType: 'dataType',
|
|
1863
|
+
errCode: 'errCode',
|
|
1864
|
+
message: 'message',
|
|
1865
|
+
requestId: 'requestId',
|
|
1866
|
+
success: 'success',
|
|
1867
|
+
time: 'time',
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
static types() {
|
|
1871
|
+
return {
|
|
1872
|
+
cost: 'number',
|
|
1873
|
+
data: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
|
|
1874
|
+
dataType: 'string',
|
|
1875
|
+
errCode: 'string',
|
|
1876
|
+
message: 'string',
|
|
1877
|
+
requestId: 'string',
|
|
1878
|
+
success: 'boolean',
|
|
1879
|
+
time: 'string',
|
|
1880
|
+
};
|
|
1881
|
+
}
|
|
1882
|
+
constructor(map) {
|
|
1883
|
+
super(map);
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
exports.RebuildTaskResponseBody = RebuildTaskResponseBody;
|
|
1887
|
+
class RebuildTaskResponse extends $tea.Model {
|
|
1888
|
+
static names() {
|
|
1889
|
+
return {
|
|
1890
|
+
headers: 'headers',
|
|
1891
|
+
statusCode: 'statusCode',
|
|
1892
|
+
body: 'body',
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
static types() {
|
|
1896
|
+
return {
|
|
1897
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1898
|
+
statusCode: 'number',
|
|
1899
|
+
body: RebuildTaskResponseBody,
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
constructor(map) {
|
|
1903
|
+
super(map);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
exports.RebuildTaskResponse = RebuildTaskResponse;
|
|
1767
1907
|
class RecallDocumentRequest extends $tea.Model {
|
|
1768
1908
|
static names() {
|
|
1769
1909
|
return {
|
|
@@ -2330,6 +2470,30 @@ class UploadDocumentResponse extends $tea.Model {
|
|
|
2330
2470
|
}
|
|
2331
2471
|
}
|
|
2332
2472
|
exports.UploadDocumentResponse = UploadDocumentResponse;
|
|
2473
|
+
class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2474
|
+
static names() {
|
|
2475
|
+
return {
|
|
2476
|
+
docId: 'docId',
|
|
2477
|
+
docYear: 'docYear',
|
|
2478
|
+
endPage: 'endPage',
|
|
2479
|
+
libraryId: 'libraryId',
|
|
2480
|
+
startPage: 'startPage',
|
|
2481
|
+
};
|
|
2482
|
+
}
|
|
2483
|
+
static types() {
|
|
2484
|
+
return {
|
|
2485
|
+
docId: 'string',
|
|
2486
|
+
docYear: 'number',
|
|
2487
|
+
endPage: 'number',
|
|
2488
|
+
libraryId: 'string',
|
|
2489
|
+
startPage: 'number',
|
|
2490
|
+
};
|
|
2491
|
+
}
|
|
2492
|
+
constructor(map) {
|
|
2493
|
+
super(map);
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
exports.CreateAnnualDocSummaryTaskRequestDocInfos = CreateAnnualDocSummaryTaskRequestDocInfos;
|
|
2333
2497
|
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2334
2498
|
static names() {
|
|
2335
2499
|
return {
|
|
@@ -4570,6 +4734,60 @@ class Client extends openapi_client_1.default {
|
|
|
4570
4734
|
}
|
|
4571
4735
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
4572
4736
|
}
|
|
4737
|
+
/**
|
|
4738
|
+
* 创建按年文档总结任务
|
|
4739
|
+
*
|
|
4740
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
4741
|
+
* @param headers - map
|
|
4742
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4743
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
4744
|
+
*/
|
|
4745
|
+
async createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4746
|
+
tea_util_1.default.validateModel(request);
|
|
4747
|
+
let body = {};
|
|
4748
|
+
if (!tea_util_1.default.isUnset(request.anaYears)) {
|
|
4749
|
+
body["anaYears"] = request.anaYears;
|
|
4750
|
+
}
|
|
4751
|
+
if (!tea_util_1.default.isUnset(request.docInfos)) {
|
|
4752
|
+
body["docInfos"] = request.docInfos;
|
|
4753
|
+
}
|
|
4754
|
+
if (!tea_util_1.default.isUnset(request.enableTable)) {
|
|
4755
|
+
body["enableTable"] = request.enableTable;
|
|
4756
|
+
}
|
|
4757
|
+
if (!tea_util_1.default.isUnset(request.instruction)) {
|
|
4758
|
+
body["instruction"] = request.instruction;
|
|
4759
|
+
}
|
|
4760
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4761
|
+
body["modelId"] = request.modelId;
|
|
4762
|
+
}
|
|
4763
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4764
|
+
headers: headers,
|
|
4765
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4766
|
+
});
|
|
4767
|
+
let params = new $OpenApi.Params({
|
|
4768
|
+
action: "CreateAnnualDocSummaryTask",
|
|
4769
|
+
version: "2024-06-28",
|
|
4770
|
+
protocol: "HTTPS",
|
|
4771
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary/doc/annual`,
|
|
4772
|
+
method: "POST",
|
|
4773
|
+
authType: "AK",
|
|
4774
|
+
style: "ROA",
|
|
4775
|
+
reqBodyType: "json",
|
|
4776
|
+
bodyType: "json",
|
|
4777
|
+
});
|
|
4778
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
4779
|
+
}
|
|
4780
|
+
/**
|
|
4781
|
+
* 创建按年文档总结任务
|
|
4782
|
+
*
|
|
4783
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
4784
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
4785
|
+
*/
|
|
4786
|
+
async createAnnualDocSummaryTask(workspaceId, request) {
|
|
4787
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4788
|
+
let headers = {};
|
|
4789
|
+
return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4790
|
+
}
|
|
4573
4791
|
/**
|
|
4574
4792
|
* 创建财报总结任务
|
|
4575
4793
|
*
|
|
@@ -5755,6 +5973,48 @@ class Client extends openapi_client_1.default {
|
|
|
5755
5973
|
let headers = {};
|
|
5756
5974
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
5757
5975
|
}
|
|
5976
|
+
/**
|
|
5977
|
+
* 重建任务
|
|
5978
|
+
*
|
|
5979
|
+
* @param request - RebuildTaskRequest
|
|
5980
|
+
* @param headers - map
|
|
5981
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5982
|
+
* @returns RebuildTaskResponse
|
|
5983
|
+
*/
|
|
5984
|
+
async rebuildTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
5985
|
+
tea_util_1.default.validateModel(request);
|
|
5986
|
+
let body = {};
|
|
5987
|
+
if (!tea_util_1.default.isUnset(request.taskIds)) {
|
|
5988
|
+
body["taskIds"] = request.taskIds;
|
|
5989
|
+
}
|
|
5990
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5991
|
+
headers: headers,
|
|
5992
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
5993
|
+
});
|
|
5994
|
+
let params = new $OpenApi.Params({
|
|
5995
|
+
action: "RebuildTask",
|
|
5996
|
+
version: "2024-06-28",
|
|
5997
|
+
protocol: "HTTPS",
|
|
5998
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/rebuild`,
|
|
5999
|
+
method: "POST",
|
|
6000
|
+
authType: "AK",
|
|
6001
|
+
style: "ROA",
|
|
6002
|
+
reqBodyType: "json",
|
|
6003
|
+
bodyType: "json",
|
|
6004
|
+
});
|
|
6005
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
|
|
6006
|
+
}
|
|
6007
|
+
/**
|
|
6008
|
+
* 重建任务
|
|
6009
|
+
*
|
|
6010
|
+
* @param request - RebuildTaskRequest
|
|
6011
|
+
* @returns RebuildTaskResponse
|
|
6012
|
+
*/
|
|
6013
|
+
async rebuildTask(workspaceId, request) {
|
|
6014
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6015
|
+
let headers = {};
|
|
6016
|
+
return await this.rebuildTaskWithOptions(workspaceId, request, headers, runtime);
|
|
6017
|
+
}
|
|
5758
6018
|
/**
|
|
5759
6019
|
* 文档召回。
|
|
5760
6020
|
*
|