tencentcloud-sdk-nodejs-intl-en 3.0.1278 → 3.0.1280

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.
@@ -100,24 +100,66 @@ Refer to: [Tencent Cloud COS Documentation](https://cloud.tencent.com/document/p
100
100
  }
101
101
 
102
102
  /**
103
- * QueryRewrite request structure.
103
+ * ReconstructDocumentSSE response structure.
104
104
  * @class
105
105
  */
106
- class QueryRewriteRequest extends AbstractModel {
106
+ class ReconstructDocumentSSEResponse extends AbstractModel {
107
107
  constructor(){
108
108
  super();
109
109
 
110
110
  /**
111
- * The multi-round historical conversation that needs to be rewritten. Each round of historical conversation should include paired inputs of user (question) and assistant (answer). Due to the character limit of the model, a maximum of 4 rounds of conversations can be provided. The last round of conversation will be rewritten.
112
- * @type {Array.<Message> || null}
111
+ * Task ID. The unique identifier of the current request.
112
+ * @type {string || null}
113
113
  */
114
- this.Messages = null;
114
+ this.TaskId = null;
115
115
 
116
116
  /**
117
- * Model name.
117
+ * Response type. 1: return progress information; 2: return parsing result.
118
118
  * @type {string || null}
119
119
  */
120
- this.Model = null;
120
+ this.ResponseType = null;
121
+
122
+ /**
123
+ * Progress. Value range: 0 to 100.
124
+ * @type {string || null}
125
+ */
126
+ this.Progress = null;
127
+
128
+ /**
129
+ * Progress information.
130
+ * @type {string || null}
131
+ */
132
+ this.ProgressMessage = null;
133
+
134
+ /**
135
+ * Temporary download URL for the document parsing result. The file is a zip compressed package, and the URL is valid for 30 minutes. The compressed package contains the following folders: \*.md, \*.jsonl, \*mllm.json, images.
136
+ * @type {string || null}
137
+ */
138
+ this.DocumentRecognizeResultUrl = null;
139
+
140
+ /**
141
+ * Page number where document parsing fails.
142
+ * @type {Array.<ReconstructDocumentFailedPage> || null}
143
+ */
144
+ this.FailedPages = null;
145
+
146
+ /**
147
+ *
148
+ * @type {number || null}
149
+ */
150
+ this.FailPageNum = null;
151
+
152
+ /**
153
+ *
154
+ * @type {number || null}
155
+ */
156
+ this.SuccessPageNum = null;
157
+
158
+ /**
159
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. As a streaming response API, when the request is successfully completed, the RequestId will be placed in the Header "X-TC-RequestId" of the HTTP response.
160
+ * @type {string || null}
161
+ */
162
+ this.RequestId = null;
121
163
 
122
164
  }
123
165
 
@@ -128,33 +170,40 @@ class QueryRewriteRequest extends AbstractModel {
128
170
  if (!params) {
129
171
  return;
130
172
  }
173
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
174
+ this.ResponseType = 'ResponseType' in params ? params.ResponseType : null;
175
+ this.Progress = 'Progress' in params ? params.Progress : null;
176
+ this.ProgressMessage = 'ProgressMessage' in params ? params.ProgressMessage : null;
177
+ this.DocumentRecognizeResultUrl = 'DocumentRecognizeResultUrl' in params ? params.DocumentRecognizeResultUrl : null;
131
178
 
132
- if (params.Messages) {
133
- this.Messages = new Array();
134
- for (let z in params.Messages) {
135
- let obj = new Message();
136
- obj.deserialize(params.Messages[z]);
137
- this.Messages.push(obj);
179
+ if (params.FailedPages) {
180
+ this.FailedPages = new Array();
181
+ for (let z in params.FailedPages) {
182
+ let obj = new ReconstructDocumentFailedPage();
183
+ obj.deserialize(params.FailedPages[z]);
184
+ this.FailedPages.push(obj);
138
185
  }
139
186
  }
140
- this.Model = 'Model' in params ? params.Model : null;
187
+ this.FailPageNum = 'FailPageNum' in params ? params.FailPageNum : null;
188
+ this.SuccessPageNum = 'SuccessPageNum' in params ? params.SuccessPageNum : null;
189
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
141
190
 
142
191
  }
143
192
  }
144
193
 
145
194
  /**
146
- * Document parsing failure record.
195
+ * GetReconstructDocumentResult request structure.
147
196
  * @class
148
197
  */
149
- class SplitDocumentFailedPage extends AbstractModel {
198
+ class GetReconstructDocumentResultRequest extends AbstractModel {
150
199
  constructor(){
151
200
  super();
152
201
 
153
202
  /**
154
- * Page number that failed to parse.
155
- * @type {number || null}
203
+ * Parsing task ID.
204
+ * @type {string || null}
156
205
  */
157
- this.PageNumber = null;
206
+ this.TaskId = null;
158
207
 
159
208
  }
160
209
 
@@ -165,7 +214,7 @@ class SplitDocumentFailedPage extends AbstractModel {
165
214
  if (!params) {
166
215
  return;
167
216
  }
168
- this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
217
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
169
218
 
170
219
  }
171
220
  }
@@ -220,30 +269,25 @@ class Usage extends AbstractModel {
220
269
  }
221
270
 
222
271
  /**
223
- * RunRerank request structure.
272
+ * CreateSplitDocumentFlow response structure.
224
273
  * @class
225
274
  */
226
- class RunRerankRequest extends AbstractModel {
275
+ class CreateSplitDocumentFlowResponse extends AbstractModel {
227
276
  constructor(){
228
277
  super();
229
278
 
230
279
  /**
231
- * Query content.
280
+ * The unique ID of the splitting task.
281
+ The splitting results corresponding to the TaskId can be queried through the [GetSplitDocumentResult] API within 30 days.
232
282
  * @type {string || null}
233
283
  */
234
- this.Query = null;
235
-
236
- /**
237
- * Document list, up to 20 documents.
238
- * @type {Array.<string> || null}
239
- */
240
- this.Docs = null;
284
+ this.TaskId = null;
241
285
 
242
286
  /**
243
- * Model name. Default: lke-reranker-base.
287
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
244
288
  * @type {string || null}
245
289
  */
246
- this.Model = null;
290
+ this.RequestId = null;
247
291
 
248
292
  }
249
293
 
@@ -254,62 +298,49 @@ class RunRerankRequest extends AbstractModel {
254
298
  if (!params) {
255
299
  return;
256
300
  }
257
- this.Query = 'Query' in params ? params.Query : null;
258
- this.Docs = 'Docs' in params ? params.Docs : null;
259
- this.Model = 'Model' in params ? params.Model : null;
301
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
302
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
260
303
 
261
304
  }
262
305
  }
263
306
 
264
307
  /**
265
- * CreateReconstructDocumentFlow request structure.
308
+ * ReconstructDocumentSSE feature configuration parameters.
266
309
  * @class
267
310
  */
268
- class CreateReconstructDocumentFlowRequest extends AbstractModel {
311
+ class ReconstructDocumentSSEConfig extends AbstractModel {
269
312
  constructor(){
270
313
  super();
271
314
 
272
315
  /**
273
- * File type.
274
- **Supported file types**: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, MD, TXT, PNG, JPG, JPEG, CSV, HTML, EPUB, BMP, GIF, WEBP, HEIC, EPS, ICNS, IM, PCX, PPM, TIFF, XBM, HEIF, JP2.
275
- **Supported file sizes**:
276
- - Max 100 MB for PDF.
277
- - Max 200 MB for DOC, DOCX, PPT, and PPTX .
278
- - Max 10 MB for MD, and TXT.
279
- - Max 20 MB for others.
280
- * @type {string || null}
281
- */
282
- this.FileType = null;
283
-
284
- /**
285
- * File URL. It is recommended to store the file in Tencent Cloud as the URL where the file is stored in Tencent Cloud can ensure higher download speed and stability. External URL may affect the speed and stability. Refer to: [Tencent Cloud COS Documentation](https://cloud.tencent.com/document/product/436/7749)
316
+ * The form in which tables in a Markdown file are returned.
317
+ - 0: returned as MD.
318
+ - 1: returned as HTML.
319
+ The default is 0.
286
320
  * @type {string || null}
287
321
  */
288
- this.FileUrl = null;
322
+ this.TableResultType = null;
289
323
 
290
324
  /**
291
- * The base64 value of the file. Supported file types: PNG, JPG, JPEG, PDF, BMP, TIFF. File size limit: the downloaded file does not exceed 8MB after base64 encoding. File download time does not exceed 3 seconds. Supported image pixels: the length of a single side is between 20-10000px. Either FileUrl or FileBase64 of the file must be provided. If both are provided, only the FileUrl is used.
325
+ * The form in which images in a Markdown file are returned.
326
+ - 0: returned as URL.
327
+ - 1: only return the text content extracted from the image in markdown.
328
+ The default value is 0.
292
329
  * @type {string || null}
293
330
  */
294
- this.FileBase64 = null;
295
-
296
- /**
297
- * The starting page number of the file. When type of the uploaded file is pdf, doc, ppt, or pptx, it specifies the starting page number for recognition, including the current value.
298
- * @type {number || null}
299
- */
300
- this.FileStartPageNumber = null;
331
+ this.MarkdownImageResponseType = null;
301
332
 
302
333
  /**
303
- * The end page number of the file. When type of the uploaded file is pdf, doc, ppt, or pptx, it specifies the end page number for recognition, including the current value.
304
- * @type {number || null}
334
+ * Whether the Markdown file contains page number information.
335
+ * @type {boolean || null}
305
336
  */
306
- this.FileEndPageNumber = null;
337
+ this.ReturnPageFormat = null;
307
338
 
308
339
  /**
309
- * Creates task configuration information for document parsing.
310
- * @type {CreateReconstructDocumentFlowConfig || null}
340
+ * The custom output page number style. {{p}} is a placeholder for the page number. Enable ReturnPageFormat to take effect. If empty, the default style is: <page_num>page {{p}}</page_num>.
341
+ * @type {string || null}
311
342
  */
312
- this.Config = null;
343
+ this.PageFormat = null;
313
344
 
314
345
  }
315
346
 
@@ -320,17 +351,10 @@ class CreateReconstructDocumentFlowRequest extends AbstractModel {
320
351
  if (!params) {
321
352
  return;
322
353
  }
323
- this.FileType = 'FileType' in params ? params.FileType : null;
324
- this.FileUrl = 'FileUrl' in params ? params.FileUrl : null;
325
- this.FileBase64 = 'FileBase64' in params ? params.FileBase64 : null;
326
- this.FileStartPageNumber = 'FileStartPageNumber' in params ? params.FileStartPageNumber : null;
327
- this.FileEndPageNumber = 'FileEndPageNumber' in params ? params.FileEndPageNumber : null;
328
-
329
- if (params.Config) {
330
- let obj = new CreateReconstructDocumentFlowConfig();
331
- obj.deserialize(params.Config)
332
- this.Config = obj;
333
- }
354
+ this.TableResultType = 'TableResultType' in params ? params.TableResultType : null;
355
+ this.MarkdownImageResponseType = 'MarkdownImageResponseType' in params ? params.MarkdownImageResponseType : null;
356
+ this.ReturnPageFormat = 'ReturnPageFormat' in params ? params.ReturnPageFormat : null;
357
+ this.PageFormat = 'PageFormat' in params ? params.PageFormat : null;
334
358
 
335
359
  }
336
360
  }
@@ -377,88 +401,6 @@ class DocumentUsage extends AbstractModel {
377
401
  }
378
402
  }
379
403
 
380
- /**
381
- * RunRerank response structure.
382
- * @class
383
- */
384
- class RunRerankResponse extends AbstractModel {
385
- constructor(){
386
- super();
387
-
388
- /**
389
- * Relevance. A higher numeric value indicates greater relevance.
390
- * @type {Array.<number> || null}
391
- */
392
- this.ScoreList = null;
393
-
394
- /**
395
- * Consumption. Only returns TotalToken.
396
- * @type {Usage || null}
397
- */
398
- this.Usage = null;
399
-
400
- /**
401
- * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
402
- * @type {string || null}
403
- */
404
- this.RequestId = null;
405
-
406
- }
407
-
408
- /**
409
- * @private
410
- */
411
- deserialize(params) {
412
- if (!params) {
413
- return;
414
- }
415
- this.ScoreList = 'ScoreList' in params ? params.ScoreList : null;
416
-
417
- if (params.Usage) {
418
- let obj = new Usage();
419
- obj.deserialize(params.Usage)
420
- this.Usage = obj;
421
- }
422
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
423
-
424
- }
425
- }
426
-
427
- /**
428
- * CreateReconstructDocumentFlow response structure.
429
- * @class
430
- */
431
- class CreateReconstructDocumentFlowResponse extends AbstractModel {
432
- constructor(){
433
- super();
434
-
435
- /**
436
- * Unique task ID. The processing result corresponding to TaskId can be queried through the API [GetReconstructDocumentResult] within 30 days.
437
- * @type {string || null}
438
- */
439
- this.TaskId = null;
440
-
441
- /**
442
- * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
443
- * @type {string || null}
444
- */
445
- this.RequestId = null;
446
-
447
- }
448
-
449
- /**
450
- * @private
451
- */
452
- deserialize(params) {
453
- if (!params) {
454
- return;
455
- }
456
- this.TaskId = 'TaskId' in params ? params.TaskId : null;
457
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
458
-
459
- }
460
- }
461
-
462
404
  /**
463
405
  * GetReconstructDocumentResult response structure.
464
406
  * @class
@@ -566,44 +508,30 @@ The default value is 3 (returns the full-text MD and the original OCR Json of ea
566
508
  }
567
509
 
568
510
  /**
569
- * Configuration information for creating intelligent document splitting task.
511
+ * RunRerank request structure.
570
512
  * @class
571
513
  */
572
- class CreateSplitDocumentFlowConfig extends AbstractModel {
514
+ class RunRerankRequest extends AbstractModel {
573
515
  constructor(){
574
516
  super();
575
517
 
576
518
  /**
577
- * The form in which tables in a Markdown file are returned.
578
- - 0: returned as MD.
579
- - 1: returned as HTML.
519
+ * Query content.
580
520
  * @type {string || null}
581
521
  */
582
- this.TableResultType = null;
522
+ this.Query = null;
583
523
 
584
524
  /**
585
- * The format of the returned results of intelligent document parsing.
586
- - 0: only returns full-text MD.
587
- - 1: only returns the OCR original Json for each page.
588
- - 2: only returns the MD of each page.
589
- - 3: returns the full-text MD and the original OCR Json of each page.
590
- - 4: returns full-text MD and MD of each page.
591
- The default value is 3 (returns the full-text MD and the original OCR Json of each page).
592
- * @type {string || null}
525
+ * Document list, up to 20 documents.
526
+ * @type {Array.<string> || null}
593
527
  */
594
- this.ResultType = null;
528
+ this.Docs = null;
595
529
 
596
530
  /**
597
- * Whether to enable mllm.
598
- * @type {boolean || null}
531
+ * Model name. Default: lke-reranker-base.
532
+ * @type {string || null}
599
533
  */
600
- this.EnableMllm = null;
601
-
602
- /**
603
- * Max segment length.
604
- * @type {number || null}
605
- */
606
- this.MaxChunkSize = null;
534
+ this.Model = null;
607
535
 
608
536
  }
609
537
 
@@ -614,27 +542,32 @@ The default value is 3 (returns the full-text MD and the original OCR Json of ea
614
542
  if (!params) {
615
543
  return;
616
544
  }
617
- this.TableResultType = 'TableResultType' in params ? params.TableResultType : null;
618
- this.ResultType = 'ResultType' in params ? params.ResultType : null;
619
- this.EnableMllm = 'EnableMllm' in params ? params.EnableMllm : null;
620
- this.MaxChunkSize = 'MaxChunkSize' in params ? params.MaxChunkSize : null;
545
+ this.Query = 'Query' in params ? params.Query : null;
546
+ this.Docs = 'Docs' in params ? params.Docs : null;
547
+ this.Model = 'Model' in params ? params.Model : null;
621
548
 
622
549
  }
623
550
  }
624
551
 
625
552
  /**
626
- * GetReconstructDocumentResult request structure.
553
+ * ReconstructDocumentSSE request structure.
627
554
  * @class
628
555
  */
629
- class GetReconstructDocumentResultRequest extends AbstractModel {
556
+ class ReconstructDocumentSSERequest extends AbstractModel {
630
557
  constructor(){
631
558
  super();
632
559
 
633
560
  /**
634
- * Parsing task ID.
561
+ * The base64 value of the file. File size limit: the downloaded file shall not exceed 8MB after base64 encoding. File download time does not exceed 3 seconds. Supported image pixels: the length of a single side is between 20-10000px. Either FileUrl or FileBase64 of the file must be provided. If both are provided, only the FileUrl is used.
635
562
  * @type {string || null}
636
563
  */
637
- this.TaskId = null;
564
+ this.FileBase64 = null;
565
+
566
+ /**
567
+ * Document parsing configuration information.
568
+ * @type {ReconstructDocumentSSEConfig || null}
569
+ */
570
+ this.Config = null;
638
571
 
639
572
  }
640
573
 
@@ -645,24 +578,66 @@ class GetReconstructDocumentResultRequest extends AbstractModel {
645
578
  if (!params) {
646
579
  return;
647
580
  }
648
- this.TaskId = 'TaskId' in params ? params.TaskId : null;
581
+ this.FileBase64 = 'FileBase64' in params ? params.FileBase64 : null;
582
+
583
+ if (params.Config) {
584
+ let obj = new ReconstructDocumentSSEConfig();
585
+ obj.deserialize(params.Config)
586
+ this.Config = obj;
587
+ }
649
588
 
650
589
  }
651
590
  }
652
591
 
653
592
  /**
654
- * GetSplitDocumentResult request structure.
593
+ * CreateReconstructDocumentFlow request structure.
655
594
  * @class
656
595
  */
657
- class GetSplitDocumentResultRequest extends AbstractModel {
596
+ class CreateReconstructDocumentFlowRequest extends AbstractModel {
658
597
  constructor(){
659
598
  super();
660
599
 
661
600
  /**
662
- * Splitting task ID.
601
+ * File type.
602
+ **Supported file types**: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, MD, TXT, PNG, JPG, JPEG, CSV, HTML, EPUB, BMP, GIF, WEBP, HEIC, EPS, ICNS, IM, PCX, PPM, TIFF, XBM, HEIF, JP2.
603
+ **Supported file sizes**:
604
+ - Max 100 MB for PDF.
605
+ - Max 200 MB for DOC, DOCX, PPT, and PPTX .
606
+ - Max 10 MB for MD, and TXT.
607
+ - Max 20 MB for others.
663
608
  * @type {string || null}
664
609
  */
665
- this.TaskId = null;
610
+ this.FileType = null;
611
+
612
+ /**
613
+ * File URL. It is recommended to store the file in Tencent Cloud as the URL where the file is stored in Tencent Cloud can ensure higher download speed and stability. External URL may affect the speed and stability. Refer to: [Tencent Cloud COS Documentation](https://cloud.tencent.com/document/product/436/7749)
614
+ * @type {string || null}
615
+ */
616
+ this.FileUrl = null;
617
+
618
+ /**
619
+ * The base64 value of the file. Supported file types: PNG, JPG, JPEG, PDF, BMP, TIFF. File size limit: the downloaded file does not exceed 8MB after base64 encoding. File download time does not exceed 3 seconds. Supported image pixels: the length of a single side is between 20-10000px. Either FileUrl or FileBase64 of the file must be provided. If both are provided, only the FileUrl is used.
620
+ * @type {string || null}
621
+ */
622
+ this.FileBase64 = null;
623
+
624
+ /**
625
+ * The starting page number of the file. When type of the uploaded file is pdf, doc, ppt, or pptx, it specifies the starting page number for recognition, including the current value.
626
+ * @type {number || null}
627
+ */
628
+ this.FileStartPageNumber = null;
629
+
630
+ /**
631
+ * The end page number of the file. When type of the uploaded file is pdf, doc, ppt, or pptx, it specifies the end page number for recognition, including the current value.
632
+ * @type {number || null}
633
+ */
634
+ this.FileEndPageNumber = null;
635
+
636
+ /**
637
+ * Creates task configuration information for document parsing.
638
+ * @type {CreateReconstructDocumentFlowConfig || null}
639
+ */
640
+ this.Config = null;
666
641
 
667
642
  }
668
643
 
@@ -673,28 +648,59 @@ class GetSplitDocumentResultRequest extends AbstractModel {
673
648
  if (!params) {
674
649
  return;
675
650
  }
676
- this.TaskId = 'TaskId' in params ? params.TaskId : null;
651
+ this.FileType = 'FileType' in params ? params.FileType : null;
652
+ this.FileUrl = 'FileUrl' in params ? params.FileUrl : null;
653
+ this.FileBase64 = 'FileBase64' in params ? params.FileBase64 : null;
654
+ this.FileStartPageNumber = 'FileStartPageNumber' in params ? params.FileStartPageNumber : null;
655
+ this.FileEndPageNumber = 'FileEndPageNumber' in params ? params.FileEndPageNumber : null;
656
+
657
+ if (params.Config) {
658
+ let obj = new CreateReconstructDocumentFlowConfig();
659
+ obj.deserialize(params.Config)
660
+ this.Config = obj;
661
+ }
677
662
 
678
663
  }
679
664
  }
680
665
 
681
666
  /**
682
- * QueryRewrite response structure.
667
+ * GetSplitDocumentResult response structure.
683
668
  * @class
684
669
  */
685
- class QueryRewriteResponse extends AbstractModel {
670
+ class GetSplitDocumentResultResponse extends AbstractModel {
686
671
  constructor(){
687
672
  super();
688
673
 
689
674
  /**
690
- * Rewritten result.
675
+ * Task status:
676
+ -Success: execution completed.
677
+ -Processing: executing.
678
+ -Pause: paused.
679
+ -Failed: execution failed.
680
+ -WaitExecute: pending execution.
691
681
  * @type {string || null}
692
682
  */
693
- this.Content = null;
683
+ this.Status = null;
694
684
 
695
685
  /**
696
- * Consumption. The numbers of input tokens, output tokens, and total tokens will be returned.
697
- * @type {Usage || null}
686
+ * Temporary download URL for the splitting result. The file is a zip compressed package, and the URL is valid for 30 minutes. The compressed package contains the following folders: \*.md, \*.jsonl, \*mllm.json, images.
687
+ >**jsonl** structure description:.
688
+ - page_content: Used to generate an embedding library for retrieval purposes. The images in this field will be replaced with placeholders.
689
+ - org_data: The minimum semantic integrity block corresponding to page_content, used for Q&A model processing.
690
+ - big_data: The maximum semantic integrity block corresponding to page_content, also used for Q&A model processing.
691
+ * @type {string || null}
692
+ */
693
+ this.DocumentRecognizeResultUrl = null;
694
+
695
+ /**
696
+ * Page number where document splitting fails.
697
+ * @type {Array.<SplitDocumentFailedPage> || null}
698
+ */
699
+ this.FailedPages = null;
700
+
701
+ /**
702
+ * Amount of the document split task.
703
+ * @type {DocumentUsage || null}
698
704
  */
699
705
  this.Usage = null;
700
706
 
@@ -713,10 +719,20 @@ class QueryRewriteResponse extends AbstractModel {
713
719
  if (!params) {
714
720
  return;
715
721
  }
716
- this.Content = 'Content' in params ? params.Content : null;
722
+ this.Status = 'Status' in params ? params.Status : null;
723
+ this.DocumentRecognizeResultUrl = 'DocumentRecognizeResultUrl' in params ? params.DocumentRecognizeResultUrl : null;
724
+
725
+ if (params.FailedPages) {
726
+ this.FailedPages = new Array();
727
+ for (let z in params.FailedPages) {
728
+ let obj = new SplitDocumentFailedPage();
729
+ obj.deserialize(params.FailedPages[z]);
730
+ this.FailedPages.push(obj);
731
+ }
732
+ }
717
733
 
718
734
  if (params.Usage) {
719
- let obj = new Usage();
735
+ let obj = new DocumentUsage();
720
736
  obj.deserialize(params.Usage)
721
737
  this.Usage = obj;
722
738
  }
@@ -754,30 +770,52 @@ class ReconstructDocumentFailedPage extends AbstractModel {
754
770
  }
755
771
 
756
772
  /**
757
- * Session content.
773
+ * Document parsing failure record.
758
774
  * @class
759
775
  */
760
- class Message extends AbstractModel {
776
+ class SplitDocumentFailedPage extends AbstractModel {
761
777
  constructor(){
762
778
  super();
763
779
 
764
780
  /**
765
- * Role.
766
- * @type {string || null}
781
+ * Page number that failed to parse.
782
+ * @type {number || null}
767
783
  */
768
- this.Role = null;
784
+ this.PageNumber = null;
785
+
786
+ }
787
+
788
+ /**
789
+ * @private
790
+ */
791
+ deserialize(params) {
792
+ if (!params) {
793
+ return;
794
+ }
795
+ this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
796
+
797
+ }
798
+ }
799
+
800
+ /**
801
+ * QueryRewrite request structure.
802
+ * @class
803
+ */
804
+ class QueryRewriteRequest extends AbstractModel {
805
+ constructor(){
806
+ super();
769
807
 
770
808
  /**
771
- * Content.
772
- * @type {string || null}
809
+ * The multi-round historical conversation that needs to be rewritten. Each round of historical conversation should include paired inputs of user (question) and assistant (answer). Due to the character limit of the model, a maximum of 4 rounds of conversations can be provided. The last round of conversation will be rewritten.
810
+ * @type {Array.<Message> || null}
773
811
  */
774
- this.Content = null;
812
+ this.Messages = null;
775
813
 
776
814
  /**
777
- * Chain of thought content. The ReasoningConent parameter only supports output parameters, and is only returned by the deepseek-r1 model.
815
+ * Model name.
778
816
  * @type {string || null}
779
817
  */
780
- this.ReasoningContent = null;
818
+ this.Model = null;
781
819
 
782
820
  }
783
821
 
@@ -788,51 +826,94 @@ class Message extends AbstractModel {
788
826
  if (!params) {
789
827
  return;
790
828
  }
791
- this.Role = 'Role' in params ? params.Role : null;
792
- this.Content = 'Content' in params ? params.Content : null;
793
- this.ReasoningContent = 'ReasoningContent' in params ? params.ReasoningContent : null;
829
+
830
+ if (params.Messages) {
831
+ this.Messages = new Array();
832
+ for (let z in params.Messages) {
833
+ let obj = new Message();
834
+ obj.deserialize(params.Messages[z]);
835
+ this.Messages.push(obj);
836
+ }
837
+ }
838
+ this.Model = 'Model' in params ? params.Model : null;
794
839
 
795
840
  }
796
841
  }
797
842
 
798
843
  /**
799
- * GetSplitDocumentResult response structure.
844
+ * Configuration information for creating intelligent document splitting task.
800
845
  * @class
801
846
  */
802
- class GetSplitDocumentResultResponse extends AbstractModel {
847
+ class CreateSplitDocumentFlowConfig extends AbstractModel {
803
848
  constructor(){
804
849
  super();
805
850
 
806
851
  /**
807
- * Task status:
808
- -Success: execution completed.
809
- -Processing: executing.
810
- -Pause: paused.
811
- -Failed: execution failed.
812
- -WaitExecute: pending execution.
852
+ * The form in which tables in a Markdown file are returned.
853
+ - 0: returned as MD.
854
+ - 1: returned as HTML.
813
855
  * @type {string || null}
814
856
  */
815
- this.Status = null;
857
+ this.TableResultType = null;
816
858
 
817
859
  /**
818
- * Temporary download URL for the splitting result. The file is a zip compressed package, and the URL is valid for 30 minutes. The compressed package contains the following folders: \*.md, \*.jsonl, \*mllm.json, images.
819
- >**jsonl** structure description:.
820
- - page_content: Used to generate an embedding library for retrieval purposes. The images in this field will be replaced with placeholders.
821
- - org_data: The minimum semantic integrity block corresponding to page_content, used for Q&A model processing.
822
- - big_data: The maximum semantic integrity block corresponding to page_content, also used for Q&A model processing.
860
+ * The format of the returned results of intelligent document parsing.
861
+ - 0: only returns full-text MD.
862
+ - 1: only returns the OCR original Json for each page.
863
+ - 2: only returns the MD of each page.
864
+ - 3: returns the full-text MD and the original OCR Json of each page.
865
+ - 4: returns full-text MD and MD of each page.
866
+ The default value is 3 (returns the full-text MD and the original OCR Json of each page).
823
867
  * @type {string || null}
824
868
  */
825
- this.DocumentRecognizeResultUrl = null;
869
+ this.ResultType = null;
826
870
 
827
871
  /**
828
- * Page number where document splitting fails.
829
- * @type {Array.<SplitDocumentFailedPage> || null}
872
+ * Whether to enable mllm.
873
+ * @type {boolean || null}
830
874
  */
831
- this.FailedPages = null;
875
+ this.EnableMllm = null;
832
876
 
833
877
  /**
834
- * Amount of the document split task.
835
- * @type {DocumentUsage || null}
878
+ * Max segment length.
879
+ * @type {number || null}
880
+ */
881
+ this.MaxChunkSize = null;
882
+
883
+ }
884
+
885
+ /**
886
+ * @private
887
+ */
888
+ deserialize(params) {
889
+ if (!params) {
890
+ return;
891
+ }
892
+ this.TableResultType = 'TableResultType' in params ? params.TableResultType : null;
893
+ this.ResultType = 'ResultType' in params ? params.ResultType : null;
894
+ this.EnableMllm = 'EnableMllm' in params ? params.EnableMllm : null;
895
+ this.MaxChunkSize = 'MaxChunkSize' in params ? params.MaxChunkSize : null;
896
+
897
+ }
898
+ }
899
+
900
+ /**
901
+ * RunRerank response structure.
902
+ * @class
903
+ */
904
+ class RunRerankResponse extends AbstractModel {
905
+ constructor(){
906
+ super();
907
+
908
+ /**
909
+ * Relevance. A higher numeric value indicates greater relevance.
910
+ * @type {Array.<number> || null}
911
+ */
912
+ this.ScoreList = null;
913
+
914
+ /**
915
+ * Consumption. Only returns TotalToken.
916
+ * @type {Usage || null}
836
917
  */
837
918
  this.Usage = null;
838
919
 
@@ -851,20 +932,10 @@ class GetSplitDocumentResultResponse extends AbstractModel {
851
932
  if (!params) {
852
933
  return;
853
934
  }
854
- this.Status = 'Status' in params ? params.Status : null;
855
- this.DocumentRecognizeResultUrl = 'DocumentRecognizeResultUrl' in params ? params.DocumentRecognizeResultUrl : null;
856
-
857
- if (params.FailedPages) {
858
- this.FailedPages = new Array();
859
- for (let z in params.FailedPages) {
860
- let obj = new SplitDocumentFailedPage();
861
- obj.deserialize(params.FailedPages[z]);
862
- this.FailedPages.push(obj);
863
- }
864
- }
935
+ this.ScoreList = 'ScoreList' in params ? params.ScoreList : null;
865
936
 
866
937
  if (params.Usage) {
867
- let obj = new DocumentUsage();
938
+ let obj = new Usage();
868
939
  obj.deserialize(params.Usage)
869
940
  this.Usage = obj;
870
941
  }
@@ -874,16 +945,15 @@ class GetSplitDocumentResultResponse extends AbstractModel {
874
945
  }
875
946
 
876
947
  /**
877
- * CreateSplitDocumentFlow response structure.
948
+ * CreateReconstructDocumentFlow response structure.
878
949
  * @class
879
950
  */
880
- class CreateSplitDocumentFlowResponse extends AbstractModel {
951
+ class CreateReconstructDocumentFlowResponse extends AbstractModel {
881
952
  constructor(){
882
953
  super();
883
954
 
884
955
  /**
885
- * The unique ID of the splitting task.
886
- The splitting results corresponding to the TaskId can be queried through the [GetSplitDocumentResult] API within 30 days.
956
+ * Unique task ID. The processing result corresponding to TaskId can be queried through the API [GetReconstructDocumentResult] within 30 days.
887
957
  * @type {string || null}
888
958
  */
889
959
  this.TaskId = null;
@@ -909,25 +979,145 @@ The splitting results corresponding to the TaskId can be queried through the [Ge
909
979
  }
910
980
  }
911
981
 
982
+ /**
983
+ * GetSplitDocumentResult request structure.
984
+ * @class
985
+ */
986
+ class GetSplitDocumentResultRequest extends AbstractModel {
987
+ constructor(){
988
+ super();
989
+
990
+ /**
991
+ * Splitting task ID.
992
+ * @type {string || null}
993
+ */
994
+ this.TaskId = null;
995
+
996
+ }
997
+
998
+ /**
999
+ * @private
1000
+ */
1001
+ deserialize(params) {
1002
+ if (!params) {
1003
+ return;
1004
+ }
1005
+ this.TaskId = 'TaskId' in params ? params.TaskId : null;
1006
+
1007
+ }
1008
+ }
1009
+
1010
+ /**
1011
+ * Session content.
1012
+ * @class
1013
+ */
1014
+ class Message extends AbstractModel {
1015
+ constructor(){
1016
+ super();
1017
+
1018
+ /**
1019
+ * Role.
1020
+ * @type {string || null}
1021
+ */
1022
+ this.Role = null;
1023
+
1024
+ /**
1025
+ * Content.
1026
+ * @type {string || null}
1027
+ */
1028
+ this.Content = null;
1029
+
1030
+ /**
1031
+ * Chain of thought content. The ReasoningConent parameter only supports output parameters, and is only returned by the deepseek-r1 model.
1032
+ * @type {string || null}
1033
+ */
1034
+ this.ReasoningContent = null;
1035
+
1036
+ }
1037
+
1038
+ /**
1039
+ * @private
1040
+ */
1041
+ deserialize(params) {
1042
+ if (!params) {
1043
+ return;
1044
+ }
1045
+ this.Role = 'Role' in params ? params.Role : null;
1046
+ this.Content = 'Content' in params ? params.Content : null;
1047
+ this.ReasoningContent = 'ReasoningContent' in params ? params.ReasoningContent : null;
1048
+
1049
+ }
1050
+ }
1051
+
1052
+ /**
1053
+ * QueryRewrite response structure.
1054
+ * @class
1055
+ */
1056
+ class QueryRewriteResponse extends AbstractModel {
1057
+ constructor(){
1058
+ super();
1059
+
1060
+ /**
1061
+ * Rewritten result.
1062
+ * @type {string || null}
1063
+ */
1064
+ this.Content = null;
1065
+
1066
+ /**
1067
+ * Consumption. The numbers of input tokens, output tokens, and total tokens will be returned.
1068
+ * @type {Usage || null}
1069
+ */
1070
+ this.Usage = null;
1071
+
1072
+ /**
1073
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1074
+ * @type {string || null}
1075
+ */
1076
+ this.RequestId = null;
1077
+
1078
+ }
1079
+
1080
+ /**
1081
+ * @private
1082
+ */
1083
+ deserialize(params) {
1084
+ if (!params) {
1085
+ return;
1086
+ }
1087
+ this.Content = 'Content' in params ? params.Content : null;
1088
+
1089
+ if (params.Usage) {
1090
+ let obj = new Usage();
1091
+ obj.deserialize(params.Usage)
1092
+ this.Usage = obj;
1093
+ }
1094
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1095
+
1096
+ }
1097
+ }
1098
+
912
1099
  module.exports = {
913
1100
  CreateSplitDocumentFlowRequest: CreateSplitDocumentFlowRequest,
914
- QueryRewriteRequest: QueryRewriteRequest,
915
- SplitDocumentFailedPage: SplitDocumentFailedPage,
1101
+ ReconstructDocumentSSEResponse: ReconstructDocumentSSEResponse,
1102
+ GetReconstructDocumentResultRequest: GetReconstructDocumentResultRequest,
916
1103
  Usage: Usage,
917
- RunRerankRequest: RunRerankRequest,
918
- CreateReconstructDocumentFlowRequest: CreateReconstructDocumentFlowRequest,
1104
+ CreateSplitDocumentFlowResponse: CreateSplitDocumentFlowResponse,
1105
+ ReconstructDocumentSSEConfig: ReconstructDocumentSSEConfig,
919
1106
  DocumentUsage: DocumentUsage,
920
- RunRerankResponse: RunRerankResponse,
921
- CreateReconstructDocumentFlowResponse: CreateReconstructDocumentFlowResponse,
922
1107
  GetReconstructDocumentResultResponse: GetReconstructDocumentResultResponse,
923
1108
  CreateReconstructDocumentFlowConfig: CreateReconstructDocumentFlowConfig,
1109
+ RunRerankRequest: RunRerankRequest,
1110
+ ReconstructDocumentSSERequest: ReconstructDocumentSSERequest,
1111
+ CreateReconstructDocumentFlowRequest: CreateReconstructDocumentFlowRequest,
1112
+ GetSplitDocumentResultResponse: GetSplitDocumentResultResponse,
1113
+ ReconstructDocumentFailedPage: ReconstructDocumentFailedPage,
1114
+ SplitDocumentFailedPage: SplitDocumentFailedPage,
1115
+ QueryRewriteRequest: QueryRewriteRequest,
924
1116
  CreateSplitDocumentFlowConfig: CreateSplitDocumentFlowConfig,
925
- GetReconstructDocumentResultRequest: GetReconstructDocumentResultRequest,
1117
+ RunRerankResponse: RunRerankResponse,
1118
+ CreateReconstructDocumentFlowResponse: CreateReconstructDocumentFlowResponse,
926
1119
  GetSplitDocumentResultRequest: GetSplitDocumentResultRequest,
927
- QueryRewriteResponse: QueryRewriteResponse,
928
- ReconstructDocumentFailedPage: ReconstructDocumentFailedPage,
929
1120
  Message: Message,
930
- GetSplitDocumentResultResponse: GetSplitDocumentResultResponse,
931
- CreateSplitDocumentFlowResponse: CreateSplitDocumentFlowResponse,
1121
+ QueryRewriteResponse: QueryRewriteResponse,
932
1122
 
933
1123
  }