@alicloud/dianjin20240628 1.2.0 → 1.3.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 +236 -2
- package/dist/client.js +242 -6
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +386 -2
package/dist/client.d.ts
CHANGED
|
@@ -215,6 +215,114 @@ export declare class CreateLibraryResponse extends $tea.Model {
|
|
|
215
215
|
[key: string]: any;
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
|
+
export declare class CreatePdfTranslateTaskRequest extends $tea.Model {
|
|
219
|
+
/**
|
|
220
|
+
* @remarks
|
|
221
|
+
* This parameter is required.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* 873648346573245
|
|
225
|
+
*/
|
|
226
|
+
docId?: string;
|
|
227
|
+
knowledge?: string;
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* This parameter is required.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* cjshcxxxx
|
|
234
|
+
*/
|
|
235
|
+
libraryId?: string;
|
|
236
|
+
/**
|
|
237
|
+
* @remarks
|
|
238
|
+
* This parameter is required.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* qwen-plus
|
|
242
|
+
*/
|
|
243
|
+
modelId?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @example
|
|
246
|
+
* 中文
|
|
247
|
+
*/
|
|
248
|
+
translateTo?: string;
|
|
249
|
+
static names(): {
|
|
250
|
+
[key: string]: string;
|
|
251
|
+
};
|
|
252
|
+
static types(): {
|
|
253
|
+
[key: string]: any;
|
|
254
|
+
};
|
|
255
|
+
constructor(map?: {
|
|
256
|
+
[key: string]: any;
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
export declare class CreatePdfTranslateTaskResponseBody extends $tea.Model {
|
|
260
|
+
/**
|
|
261
|
+
* @example
|
|
262
|
+
* null
|
|
263
|
+
*/
|
|
264
|
+
cost?: number;
|
|
265
|
+
/**
|
|
266
|
+
* @example
|
|
267
|
+
* 3284627354
|
|
268
|
+
*/
|
|
269
|
+
data?: string;
|
|
270
|
+
/**
|
|
271
|
+
* @example
|
|
272
|
+
* null
|
|
273
|
+
*/
|
|
274
|
+
dataType?: string;
|
|
275
|
+
/**
|
|
276
|
+
* @example
|
|
277
|
+
* 0
|
|
278
|
+
*/
|
|
279
|
+
errCode?: string;
|
|
280
|
+
/**
|
|
281
|
+
* @example
|
|
282
|
+
* ok
|
|
283
|
+
*/
|
|
284
|
+
message?: string;
|
|
285
|
+
/**
|
|
286
|
+
* @example
|
|
287
|
+
* 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658
|
|
288
|
+
*/
|
|
289
|
+
requestId?: string;
|
|
290
|
+
/**
|
|
291
|
+
* @example
|
|
292
|
+
* true
|
|
293
|
+
*/
|
|
294
|
+
success?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* @example
|
|
297
|
+
* 2024-04-24 11:54:34
|
|
298
|
+
*/
|
|
299
|
+
time?: string;
|
|
300
|
+
static names(): {
|
|
301
|
+
[key: string]: string;
|
|
302
|
+
};
|
|
303
|
+
static types(): {
|
|
304
|
+
[key: string]: any;
|
|
305
|
+
};
|
|
306
|
+
constructor(map?: {
|
|
307
|
+
[key: string]: any;
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
export declare class CreatePdfTranslateTaskResponse extends $tea.Model {
|
|
311
|
+
headers?: {
|
|
312
|
+
[key: string]: string;
|
|
313
|
+
};
|
|
314
|
+
statusCode?: number;
|
|
315
|
+
body?: CreatePdfTranslateTaskResponseBody;
|
|
316
|
+
static names(): {
|
|
317
|
+
[key: string]: string;
|
|
318
|
+
};
|
|
319
|
+
static types(): {
|
|
320
|
+
[key: string]: any;
|
|
321
|
+
};
|
|
322
|
+
constructor(map?: {
|
|
323
|
+
[key: string]: any;
|
|
324
|
+
});
|
|
325
|
+
}
|
|
218
326
|
export declare class CreatePredefinedDocumentRequest extends $tea.Model {
|
|
219
327
|
chunks?: CreatePredefinedDocumentRequestChunks[];
|
|
220
328
|
/**
|
|
@@ -1443,6 +1551,96 @@ export declare class GetSummaryTaskResultResponse extends $tea.Model {
|
|
|
1443
1551
|
[key: string]: any;
|
|
1444
1552
|
});
|
|
1445
1553
|
}
|
|
1554
|
+
export declare class GetTaskResultRequest extends $tea.Model {
|
|
1555
|
+
/**
|
|
1556
|
+
* @remarks
|
|
1557
|
+
* This parameter is required.
|
|
1558
|
+
*
|
|
1559
|
+
* @example
|
|
1560
|
+
* 17071319
|
|
1561
|
+
*/
|
|
1562
|
+
taskId?: string;
|
|
1563
|
+
static names(): {
|
|
1564
|
+
[key: string]: string;
|
|
1565
|
+
};
|
|
1566
|
+
static types(): {
|
|
1567
|
+
[key: string]: any;
|
|
1568
|
+
};
|
|
1569
|
+
constructor(map?: {
|
|
1570
|
+
[key: string]: any;
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
export declare class GetTaskResultResponseBody extends $tea.Model {
|
|
1574
|
+
/**
|
|
1575
|
+
* @example
|
|
1576
|
+
* null
|
|
1577
|
+
*/
|
|
1578
|
+
cost?: number;
|
|
1579
|
+
/**
|
|
1580
|
+
* @example
|
|
1581
|
+
* {
|
|
1582
|
+
* "file_url": "https://finllmworks.oss-cn-zhangjiakou.aliyuncs.com/render_pdf/5336180997111160501.pdf"
|
|
1583
|
+
* }
|
|
1584
|
+
*/
|
|
1585
|
+
data?: {
|
|
1586
|
+
[key: string]: any;
|
|
1587
|
+
};
|
|
1588
|
+
/**
|
|
1589
|
+
* @example
|
|
1590
|
+
* null
|
|
1591
|
+
*/
|
|
1592
|
+
dataType?: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* @example
|
|
1595
|
+
* 0
|
|
1596
|
+
*/
|
|
1597
|
+
errCode?: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* @example
|
|
1600
|
+
* ok
|
|
1601
|
+
*/
|
|
1602
|
+
message?: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* @example
|
|
1605
|
+
* 9D5D6BB5-BEAE-53C8-A70A-7275CC1F856C
|
|
1606
|
+
*/
|
|
1607
|
+
requestId?: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* @example
|
|
1610
|
+
* true
|
|
1611
|
+
*/
|
|
1612
|
+
success?: boolean;
|
|
1613
|
+
/**
|
|
1614
|
+
* @example
|
|
1615
|
+
* 2024-04-24 11:54:34
|
|
1616
|
+
*/
|
|
1617
|
+
time?: string;
|
|
1618
|
+
static names(): {
|
|
1619
|
+
[key: string]: string;
|
|
1620
|
+
};
|
|
1621
|
+
static types(): {
|
|
1622
|
+
[key: string]: any;
|
|
1623
|
+
};
|
|
1624
|
+
constructor(map?: {
|
|
1625
|
+
[key: string]: any;
|
|
1626
|
+
});
|
|
1627
|
+
}
|
|
1628
|
+
export declare class GetTaskResultResponse extends $tea.Model {
|
|
1629
|
+
headers?: {
|
|
1630
|
+
[key: string]: string;
|
|
1631
|
+
};
|
|
1632
|
+
statusCode?: number;
|
|
1633
|
+
body?: GetTaskResultResponseBody;
|
|
1634
|
+
static names(): {
|
|
1635
|
+
[key: string]: string;
|
|
1636
|
+
};
|
|
1637
|
+
static types(): {
|
|
1638
|
+
[key: string]: any;
|
|
1639
|
+
};
|
|
1640
|
+
constructor(map?: {
|
|
1641
|
+
[key: string]: any;
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1446
1644
|
export declare class GetTaskStatusRequest extends $tea.Model {
|
|
1447
1645
|
/**
|
|
1448
1646
|
* @remarks
|
|
@@ -5198,6 +5396,24 @@ export default class Client extends OpenApi {
|
|
|
5198
5396
|
* @returns CreateLibraryResponse
|
|
5199
5397
|
*/
|
|
5200
5398
|
createLibrary(workspaceId: string, request: CreateLibraryRequest): Promise<CreateLibraryResponse>;
|
|
5399
|
+
/**
|
|
5400
|
+
* 创建PDF翻译任务
|
|
5401
|
+
*
|
|
5402
|
+
* @param request - CreatePdfTranslateTaskRequest
|
|
5403
|
+
* @param headers - map
|
|
5404
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5405
|
+
* @returns CreatePdfTranslateTaskResponse
|
|
5406
|
+
*/
|
|
5407
|
+
createPdfTranslateTaskWithOptions(workspaceId: string, request: CreatePdfTranslateTaskRequest, headers: {
|
|
5408
|
+
[key: string]: string;
|
|
5409
|
+
}, runtime: $Util.RuntimeOptions): Promise<CreatePdfTranslateTaskResponse>;
|
|
5410
|
+
/**
|
|
5411
|
+
* 创建PDF翻译任务
|
|
5412
|
+
*
|
|
5413
|
+
* @param request - CreatePdfTranslateTaskRequest
|
|
5414
|
+
* @returns CreatePdfTranslateTaskResponse
|
|
5415
|
+
*/
|
|
5416
|
+
createPdfTranslateTask(workspaceId: string, request: CreatePdfTranslateTaskRequest): Promise<CreatePdfTranslateTaskResponse>;
|
|
5201
5417
|
/**
|
|
5202
5418
|
* 创建预定义文档
|
|
5203
5419
|
*
|
|
@@ -5447,6 +5663,24 @@ export default class Client extends OpenApi {
|
|
|
5447
5663
|
* @returns GetSummaryTaskResultResponse
|
|
5448
5664
|
*/
|
|
5449
5665
|
getSummaryTaskResult(workspaceId: string, request: GetSummaryTaskResultRequest): Promise<GetSummaryTaskResultResponse>;
|
|
5666
|
+
/**
|
|
5667
|
+
* 获取异步任务结果
|
|
5668
|
+
*
|
|
5669
|
+
* @param request - GetTaskResultRequest
|
|
5670
|
+
* @param headers - map
|
|
5671
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5672
|
+
* @returns GetTaskResultResponse
|
|
5673
|
+
*/
|
|
5674
|
+
getTaskResultWithOptions(workspaceId: string, request: GetTaskResultRequest, headers: {
|
|
5675
|
+
[key: string]: string;
|
|
5676
|
+
}, runtime: $Util.RuntimeOptions): Promise<GetTaskResultResponse>;
|
|
5677
|
+
/**
|
|
5678
|
+
* 获取异步任务结果
|
|
5679
|
+
*
|
|
5680
|
+
* @param request - GetTaskResultRequest
|
|
5681
|
+
* @returns GetTaskResultResponse
|
|
5682
|
+
*/
|
|
5683
|
+
getTaskResult(workspaceId: string, request: GetTaskResultRequest): Promise<GetTaskResultResponse>;
|
|
5450
5684
|
/**
|
|
5451
5685
|
* 获取财报总结任务结果
|
|
5452
5686
|
*
|
|
@@ -5520,7 +5754,7 @@ export default class Client extends OpenApi {
|
|
|
5520
5754
|
*/
|
|
5521
5755
|
reIndex(workspaceId: string, request: ReIndexRequest): Promise<ReIndexResponse>;
|
|
5522
5756
|
/**
|
|
5523
|
-
*
|
|
5757
|
+
* 文档召回。
|
|
5524
5758
|
*
|
|
5525
5759
|
* @param request - RecallDocumentRequest
|
|
5526
5760
|
* @param headers - map
|
|
@@ -5531,7 +5765,7 @@ export default class Client extends OpenApi {
|
|
|
5531
5765
|
[key: string]: string;
|
|
5532
5766
|
}, runtime: $Util.RuntimeOptions): Promise<RecallDocumentResponse>;
|
|
5533
5767
|
/**
|
|
5534
|
-
*
|
|
5768
|
+
* 文档召回。
|
|
5535
5769
|
*
|
|
5536
5770
|
* @param request - RecallDocumentRequest
|
|
5537
5771
|
* @returns RecallDocumentResponse
|
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.GetSummaryTaskResultResponse = exports.GetSummaryTaskResultResponseBody = exports.GetSummaryTaskResultRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = 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.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreatePdfTranslateTaskResponse = exports.CreatePdfTranslateTaskResponseBody = exports.CreatePdfTranslateTaskRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = exports.CreateFinReportSummaryTaskResponse = exports.CreateFinReportSummaryTaskResponseBody = exports.CreateFinReportSummaryTaskRequest = void 0;
|
|
30
|
+
exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetAppConfigResponseBodyData = exports.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = 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 = void 0;
|
|
31
|
+
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 = 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 = 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 = void 0;
|
|
33
33
|
// This file is auto-generated, don't edit it
|
|
34
34
|
/**
|
|
35
35
|
*/
|
|
@@ -192,6 +192,80 @@ class CreateLibraryResponse extends $tea.Model {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
exports.CreateLibraryResponse = CreateLibraryResponse;
|
|
195
|
+
class CreatePdfTranslateTaskRequest extends $tea.Model {
|
|
196
|
+
static names() {
|
|
197
|
+
return {
|
|
198
|
+
docId: 'docId',
|
|
199
|
+
knowledge: 'knowledge',
|
|
200
|
+
libraryId: 'libraryId',
|
|
201
|
+
modelId: 'modelId',
|
|
202
|
+
translateTo: 'translateTo',
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
static types() {
|
|
206
|
+
return {
|
|
207
|
+
docId: 'string',
|
|
208
|
+
knowledge: 'string',
|
|
209
|
+
libraryId: 'string',
|
|
210
|
+
modelId: 'string',
|
|
211
|
+
translateTo: 'string',
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
constructor(map) {
|
|
215
|
+
super(map);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
exports.CreatePdfTranslateTaskRequest = CreatePdfTranslateTaskRequest;
|
|
219
|
+
class CreatePdfTranslateTaskResponseBody extends $tea.Model {
|
|
220
|
+
static names() {
|
|
221
|
+
return {
|
|
222
|
+
cost: 'cost',
|
|
223
|
+
data: 'data',
|
|
224
|
+
dataType: 'dataType',
|
|
225
|
+
errCode: 'errCode',
|
|
226
|
+
message: 'message',
|
|
227
|
+
requestId: 'requestId',
|
|
228
|
+
success: 'success',
|
|
229
|
+
time: 'time',
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
static types() {
|
|
233
|
+
return {
|
|
234
|
+
cost: 'number',
|
|
235
|
+
data: 'string',
|
|
236
|
+
dataType: 'string',
|
|
237
|
+
errCode: 'string',
|
|
238
|
+
message: 'string',
|
|
239
|
+
requestId: 'string',
|
|
240
|
+
success: 'boolean',
|
|
241
|
+
time: 'string',
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
constructor(map) {
|
|
245
|
+
super(map);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
exports.CreatePdfTranslateTaskResponseBody = CreatePdfTranslateTaskResponseBody;
|
|
249
|
+
class CreatePdfTranslateTaskResponse extends $tea.Model {
|
|
250
|
+
static names() {
|
|
251
|
+
return {
|
|
252
|
+
headers: 'headers',
|
|
253
|
+
statusCode: 'statusCode',
|
|
254
|
+
body: 'body',
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
static types() {
|
|
258
|
+
return {
|
|
259
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
260
|
+
statusCode: 'number',
|
|
261
|
+
body: CreatePdfTranslateTaskResponseBody,
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
constructor(map) {
|
|
265
|
+
super(map);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
exports.CreatePdfTranslateTaskResponse = CreatePdfTranslateTaskResponse;
|
|
195
269
|
class CreatePredefinedDocumentRequest extends $tea.Model {
|
|
196
270
|
static names() {
|
|
197
271
|
return {
|
|
@@ -1144,6 +1218,72 @@ class GetSummaryTaskResultResponse extends $tea.Model {
|
|
|
1144
1218
|
}
|
|
1145
1219
|
}
|
|
1146
1220
|
exports.GetSummaryTaskResultResponse = GetSummaryTaskResultResponse;
|
|
1221
|
+
class GetTaskResultRequest extends $tea.Model {
|
|
1222
|
+
static names() {
|
|
1223
|
+
return {
|
|
1224
|
+
taskId: 'taskId',
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
static types() {
|
|
1228
|
+
return {
|
|
1229
|
+
taskId: 'string',
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
constructor(map) {
|
|
1233
|
+
super(map);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
exports.GetTaskResultRequest = GetTaskResultRequest;
|
|
1237
|
+
class GetTaskResultResponseBody extends $tea.Model {
|
|
1238
|
+
static names() {
|
|
1239
|
+
return {
|
|
1240
|
+
cost: 'cost',
|
|
1241
|
+
data: 'data',
|
|
1242
|
+
dataType: 'dataType',
|
|
1243
|
+
errCode: 'errCode',
|
|
1244
|
+
message: 'message',
|
|
1245
|
+
requestId: 'requestId',
|
|
1246
|
+
success: 'success',
|
|
1247
|
+
time: 'time',
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
static types() {
|
|
1251
|
+
return {
|
|
1252
|
+
cost: 'number',
|
|
1253
|
+
data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1254
|
+
dataType: 'string',
|
|
1255
|
+
errCode: 'string',
|
|
1256
|
+
message: 'string',
|
|
1257
|
+
requestId: 'string',
|
|
1258
|
+
success: 'boolean',
|
|
1259
|
+
time: 'string',
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
constructor(map) {
|
|
1263
|
+
super(map);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
exports.GetTaskResultResponseBody = GetTaskResultResponseBody;
|
|
1267
|
+
class GetTaskResultResponse extends $tea.Model {
|
|
1268
|
+
static names() {
|
|
1269
|
+
return {
|
|
1270
|
+
headers: 'headers',
|
|
1271
|
+
statusCode: 'statusCode',
|
|
1272
|
+
body: 'body',
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
static types() {
|
|
1276
|
+
return {
|
|
1277
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1278
|
+
statusCode: 'number',
|
|
1279
|
+
body: GetTaskResultResponseBody,
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
constructor(map) {
|
|
1283
|
+
super(map);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
exports.GetTaskResultResponse = GetTaskResultResponse;
|
|
1147
1287
|
class GetTaskStatusRequest extends $tea.Model {
|
|
1148
1288
|
static names() {
|
|
1149
1289
|
return {
|
|
@@ -4069,6 +4209,60 @@ class Client extends openapi_client_1.default {
|
|
|
4069
4209
|
let headers = {};
|
|
4070
4210
|
return await this.createLibraryWithOptions(workspaceId, request, headers, runtime);
|
|
4071
4211
|
}
|
|
4212
|
+
/**
|
|
4213
|
+
* 创建PDF翻译任务
|
|
4214
|
+
*
|
|
4215
|
+
* @param request - CreatePdfTranslateTaskRequest
|
|
4216
|
+
* @param headers - map
|
|
4217
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4218
|
+
* @returns CreatePdfTranslateTaskResponse
|
|
4219
|
+
*/
|
|
4220
|
+
async createPdfTranslateTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4221
|
+
tea_util_1.default.validateModel(request);
|
|
4222
|
+
let body = {};
|
|
4223
|
+
if (!tea_util_1.default.isUnset(request.docId)) {
|
|
4224
|
+
body["docId"] = request.docId;
|
|
4225
|
+
}
|
|
4226
|
+
if (!tea_util_1.default.isUnset(request.knowledge)) {
|
|
4227
|
+
body["knowledge"] = request.knowledge;
|
|
4228
|
+
}
|
|
4229
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
4230
|
+
body["libraryId"] = request.libraryId;
|
|
4231
|
+
}
|
|
4232
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4233
|
+
body["modelId"] = request.modelId;
|
|
4234
|
+
}
|
|
4235
|
+
if (!tea_util_1.default.isUnset(request.translateTo)) {
|
|
4236
|
+
body["translateTo"] = request.translateTo;
|
|
4237
|
+
}
|
|
4238
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4239
|
+
headers: headers,
|
|
4240
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4241
|
+
});
|
|
4242
|
+
let params = new $OpenApi.Params({
|
|
4243
|
+
action: "CreatePdfTranslateTask",
|
|
4244
|
+
version: "2024-06-28",
|
|
4245
|
+
protocol: "HTTPS",
|
|
4246
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/pdfTranslate`,
|
|
4247
|
+
method: "POST",
|
|
4248
|
+
authType: "AK",
|
|
4249
|
+
style: "ROA",
|
|
4250
|
+
reqBodyType: "json",
|
|
4251
|
+
bodyType: "json",
|
|
4252
|
+
});
|
|
4253
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
|
|
4254
|
+
}
|
|
4255
|
+
/**
|
|
4256
|
+
* 创建PDF翻译任务
|
|
4257
|
+
*
|
|
4258
|
+
* @param request - CreatePdfTranslateTaskRequest
|
|
4259
|
+
* @returns CreatePdfTranslateTaskResponse
|
|
4260
|
+
*/
|
|
4261
|
+
async createPdfTranslateTask(workspaceId, request) {
|
|
4262
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4263
|
+
let headers = {};
|
|
4264
|
+
return await this.createPdfTranslateTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4265
|
+
}
|
|
4072
4266
|
/**
|
|
4073
4267
|
* 创建预定义文档
|
|
4074
4268
|
*
|
|
@@ -4726,6 +4920,48 @@ class Client extends openapi_client_1.default {
|
|
|
4726
4920
|
let headers = {};
|
|
4727
4921
|
return await this.getSummaryTaskResultWithOptions(workspaceId, request, headers, runtime);
|
|
4728
4922
|
}
|
|
4923
|
+
/**
|
|
4924
|
+
* 获取异步任务结果
|
|
4925
|
+
*
|
|
4926
|
+
* @param request - GetTaskResultRequest
|
|
4927
|
+
* @param headers - map
|
|
4928
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4929
|
+
* @returns GetTaskResultResponse
|
|
4930
|
+
*/
|
|
4931
|
+
async getTaskResultWithOptions(workspaceId, request, headers, runtime) {
|
|
4932
|
+
tea_util_1.default.validateModel(request);
|
|
4933
|
+
let query = {};
|
|
4934
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
4935
|
+
query["taskId"] = request.taskId;
|
|
4936
|
+
}
|
|
4937
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4938
|
+
headers: headers,
|
|
4939
|
+
query: openapi_util_1.default.query(query),
|
|
4940
|
+
});
|
|
4941
|
+
let params = new $OpenApi.Params({
|
|
4942
|
+
action: "GetTaskResult",
|
|
4943
|
+
version: "2024-06-28",
|
|
4944
|
+
protocol: "HTTPS",
|
|
4945
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/result`,
|
|
4946
|
+
method: "GET",
|
|
4947
|
+
authType: "AK",
|
|
4948
|
+
style: "ROA",
|
|
4949
|
+
reqBodyType: "json",
|
|
4950
|
+
bodyType: "json",
|
|
4951
|
+
});
|
|
4952
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
|
|
4953
|
+
}
|
|
4954
|
+
/**
|
|
4955
|
+
* 获取异步任务结果
|
|
4956
|
+
*
|
|
4957
|
+
* @param request - GetTaskResultRequest
|
|
4958
|
+
* @returns GetTaskResultResponse
|
|
4959
|
+
*/
|
|
4960
|
+
async getTaskResult(workspaceId, request) {
|
|
4961
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4962
|
+
let headers = {};
|
|
4963
|
+
return await this.getTaskResultWithOptions(workspaceId, request, headers, runtime);
|
|
4964
|
+
}
|
|
4729
4965
|
/**
|
|
4730
4966
|
* 获取财报总结任务结果
|
|
4731
4967
|
*
|
|
@@ -4898,7 +5134,7 @@ class Client extends openapi_client_1.default {
|
|
|
4898
5134
|
return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
|
|
4899
5135
|
}
|
|
4900
5136
|
/**
|
|
4901
|
-
*
|
|
5137
|
+
* 文档召回。
|
|
4902
5138
|
*
|
|
4903
5139
|
* @param request - RecallDocumentRequest
|
|
4904
5140
|
* @param headers - map
|
|
@@ -4938,7 +5174,7 @@ class Client extends openapi_client_1.default {
|
|
|
4938
5174
|
return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
|
|
4939
5175
|
}
|
|
4940
5176
|
/**
|
|
4941
|
-
*
|
|
5177
|
+
* 文档召回。
|
|
4942
5178
|
*
|
|
4943
5179
|
* @param request - RecallDocumentRequest
|
|
4944
5180
|
* @returns RecallDocumentResponse
|