@alicloud/dianjin20240628 1.4.0 → 1.5.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 +165 -0
- package/dist/client.js +156 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +268 -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
|
|
@@ -3019,6 +3121,51 @@ export declare class UploadDocumentResponse extends $tea.Model {
|
|
|
3019
3121
|
[key: string]: any;
|
|
3020
3122
|
});
|
|
3021
3123
|
}
|
|
3124
|
+
export declare class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
3125
|
+
/**
|
|
3126
|
+
* @remarks
|
|
3127
|
+
* This parameter is required.
|
|
3128
|
+
*
|
|
3129
|
+
* @example
|
|
3130
|
+
* 198386463432
|
|
3131
|
+
*/
|
|
3132
|
+
docId?: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* @remarks
|
|
3135
|
+
* This parameter is required.
|
|
3136
|
+
*
|
|
3137
|
+
* @example
|
|
3138
|
+
* 2023
|
|
3139
|
+
*/
|
|
3140
|
+
docYear?: number;
|
|
3141
|
+
/**
|
|
3142
|
+
* @example
|
|
3143
|
+
* 2
|
|
3144
|
+
*/
|
|
3145
|
+
endPage?: number;
|
|
3146
|
+
/**
|
|
3147
|
+
* @remarks
|
|
3148
|
+
* This parameter is required.
|
|
3149
|
+
*
|
|
3150
|
+
* @example
|
|
3151
|
+
* rdxrmo6amk
|
|
3152
|
+
*/
|
|
3153
|
+
libraryId?: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* @example
|
|
3156
|
+
* 1
|
|
3157
|
+
*/
|
|
3158
|
+
startPage?: number;
|
|
3159
|
+
static names(): {
|
|
3160
|
+
[key: string]: string;
|
|
3161
|
+
};
|
|
3162
|
+
static types(): {
|
|
3163
|
+
[key: string]: any;
|
|
3164
|
+
};
|
|
3165
|
+
constructor(map?: {
|
|
3166
|
+
[key: string]: any;
|
|
3167
|
+
});
|
|
3168
|
+
}
|
|
3022
3169
|
export declare class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
3023
3170
|
/**
|
|
3024
3171
|
* @remarks
|
|
@@ -6034,6 +6181,24 @@ export default class Client extends OpenApi {
|
|
|
6034
6181
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
6035
6182
|
[key: string]: string;
|
|
6036
6183
|
}, endpoint: string): string;
|
|
6184
|
+
/**
|
|
6185
|
+
* 创建按年文档总结任务
|
|
6186
|
+
*
|
|
6187
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
6188
|
+
* @param headers - map
|
|
6189
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6190
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
6191
|
+
*/
|
|
6192
|
+
createAnnualDocSummaryTaskWithOptions(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest, headers: {
|
|
6193
|
+
[key: string]: string;
|
|
6194
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreateAnnualDocSummaryTaskResponse>;
|
|
6195
|
+
/**
|
|
6196
|
+
* 创建按年文档总结任务
|
|
6197
|
+
*
|
|
6198
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
6199
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
6200
|
+
*/
|
|
6201
|
+
createAnnualDocSummaryTask(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest): Promise<CreateAnnualDocSummaryTaskResponse>;
|
|
6037
6202
|
/**
|
|
6038
6203
|
* 创建财报总结任务
|
|
6039
6204
|
*
|
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.CreateAnnualDocSummaryTaskRequestDocInfos = 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 = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = void 0;
|
|
31
|
+
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 = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = exports.CreateDocsSummaryTaskRequestDocInfos = 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 = 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 {
|
|
@@ -2330,6 +2404,30 @@ class UploadDocumentResponse extends $tea.Model {
|
|
|
2330
2404
|
}
|
|
2331
2405
|
}
|
|
2332
2406
|
exports.UploadDocumentResponse = UploadDocumentResponse;
|
|
2407
|
+
class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2408
|
+
static names() {
|
|
2409
|
+
return {
|
|
2410
|
+
docId: 'docId',
|
|
2411
|
+
docYear: 'docYear',
|
|
2412
|
+
endPage: 'endPage',
|
|
2413
|
+
libraryId: 'libraryId',
|
|
2414
|
+
startPage: 'startPage',
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
static types() {
|
|
2418
|
+
return {
|
|
2419
|
+
docId: 'string',
|
|
2420
|
+
docYear: 'number',
|
|
2421
|
+
endPage: 'number',
|
|
2422
|
+
libraryId: 'string',
|
|
2423
|
+
startPage: 'number',
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
constructor(map) {
|
|
2427
|
+
super(map);
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
exports.CreateAnnualDocSummaryTaskRequestDocInfos = CreateAnnualDocSummaryTaskRequestDocInfos;
|
|
2333
2431
|
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2334
2432
|
static names() {
|
|
2335
2433
|
return {
|
|
@@ -4570,6 +4668,60 @@ class Client extends openapi_client_1.default {
|
|
|
4570
4668
|
}
|
|
4571
4669
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
4572
4670
|
}
|
|
4671
|
+
/**
|
|
4672
|
+
* 创建按年文档总结任务
|
|
4673
|
+
*
|
|
4674
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
4675
|
+
* @param headers - map
|
|
4676
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4677
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
4678
|
+
*/
|
|
4679
|
+
async createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4680
|
+
tea_util_1.default.validateModel(request);
|
|
4681
|
+
let body = {};
|
|
4682
|
+
if (!tea_util_1.default.isUnset(request.anaYears)) {
|
|
4683
|
+
body["anaYears"] = request.anaYears;
|
|
4684
|
+
}
|
|
4685
|
+
if (!tea_util_1.default.isUnset(request.docInfos)) {
|
|
4686
|
+
body["docInfos"] = request.docInfos;
|
|
4687
|
+
}
|
|
4688
|
+
if (!tea_util_1.default.isUnset(request.enableTable)) {
|
|
4689
|
+
body["enableTable"] = request.enableTable;
|
|
4690
|
+
}
|
|
4691
|
+
if (!tea_util_1.default.isUnset(request.instruction)) {
|
|
4692
|
+
body["instruction"] = request.instruction;
|
|
4693
|
+
}
|
|
4694
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4695
|
+
body["modelId"] = request.modelId;
|
|
4696
|
+
}
|
|
4697
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4698
|
+
headers: headers,
|
|
4699
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4700
|
+
});
|
|
4701
|
+
let params = new $OpenApi.Params({
|
|
4702
|
+
action: "CreateAnnualDocSummaryTask",
|
|
4703
|
+
version: "2024-06-28",
|
|
4704
|
+
protocol: "HTTPS",
|
|
4705
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary/doc/annual`,
|
|
4706
|
+
method: "POST",
|
|
4707
|
+
authType: "AK",
|
|
4708
|
+
style: "ROA",
|
|
4709
|
+
reqBodyType: "json",
|
|
4710
|
+
bodyType: "json",
|
|
4711
|
+
});
|
|
4712
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
4713
|
+
}
|
|
4714
|
+
/**
|
|
4715
|
+
* 创建按年文档总结任务
|
|
4716
|
+
*
|
|
4717
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
4718
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
4719
|
+
*/
|
|
4720
|
+
async createAnnualDocSummaryTask(workspaceId, request) {
|
|
4721
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4722
|
+
let headers = {};
|
|
4723
|
+
return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4724
|
+
}
|
|
4573
4725
|
/**
|
|
4574
4726
|
* 创建财报总结任务
|
|
4575
4727
|
*
|