@xberg-io/xberg-wasm 1.3.6 → 1.3.9
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/package.json +11 -1
- package/pkg/web/package.json +5 -1
- package/pkg/web/xberg_wasm.d.ts +84 -19
- package/pkg/web/xberg_wasm.js +239 -23
- package/pkg/web/xberg_wasm_bg.wasm +2 -2
- package/pkg/web/xberg_wasm_bg.wasm.d.ts +33 -13
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"author": {
|
|
3
|
+
"name": "Na'aman Hirschfeld",
|
|
4
|
+
"email": "naaman@xberg.io"
|
|
5
|
+
},
|
|
6
|
+
"contributors": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Tobias Perlstein",
|
|
9
|
+
"email": "tobias@xberg.io"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
2
12
|
"name": "@xberg-io/xberg-wasm",
|
|
3
|
-
"version": "1.3.
|
|
13
|
+
"version": "1.3.9",
|
|
4
14
|
"private": false,
|
|
5
15
|
"description": "High-performance document intelligence library",
|
|
6
16
|
"license": "MIT",
|
package/pkg/web/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xberg-wasm",
|
|
3
3
|
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"Na'aman Hirschfeld <naaman@xberg.io>",
|
|
6
|
+
"Tobias Perlstein <tobias@xberg.io>"
|
|
7
|
+
],
|
|
4
8
|
"description": "High-performance document intelligence library",
|
|
5
|
-
"version": "1.3.
|
|
9
|
+
"version": "1.3.9",
|
|
6
10
|
"license": "MIT",
|
|
7
11
|
"repository": {
|
|
8
12
|
"type": "git",
|
package/pkg/web/xberg_wasm.d.ts
CHANGED
|
@@ -3337,11 +3337,11 @@ export class WasmExtractedDocument {
|
|
|
3337
3337
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
3338
3338
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
3339
3339
|
* the generated setter borrows and leaves your handle alive.
|
|
3340
|
-
* Takes ownership of every element in `tables`, `detectedLanguageConfidences`, `chunks`, `images`, `pages`, `elements`, `ocrElements`, `extractedKeywords`, `processingWarnings`, `annotations`, `children`, `uris`, `revisions`, `llmUsage`, `entities`, `pageClassifications`, `formulas`, `formFields`.
|
|
3340
|
+
* Takes ownership of every element in `tables`, `detectedLanguageConfidences`, `chunks`, `images`, `pages`, `elements`, `ocrElements`, `extractedKeywords`, `processingWarnings`, `annotations`, `children`, `uris`, `revisions`, `llmUsage`, `entities`, `pageClassifications`, `formulas`, `formFields`, `ocrPageFailures`.
|
|
3341
3341
|
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
3342
3342
|
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
3343
3343
|
*/
|
|
3344
|
-
constructor(content?: string | null, mimeType?: string | null, metadata?: WasmMetadata | null, tables?: WasmTable[] | null, counts?: WasmDocumentCounts | null, processingWarnings?: WasmProcessingWarning[] | null, formulas?: WasmFormula[] | null, formFields?: WasmPdfFormField[] | null, extractionMethod?: WasmExtractionMethod | null, detectedLanguages?: string[] | null, detectedLanguageConfidences?: WasmLanguageConfidence[] | null, chunks?: WasmChunk[] | null, images?: WasmExtractedImage[] | null, pages?: WasmPageContent[] | null, elements?: WasmElement[] | null, djotContent?: WasmDjotContent | null, ocrElements?: WasmOcrElement[] | null, document?: WasmDocumentStructure | null, extractedKeywords?: WasmKeyword[] | null, qualityScore?: number | null, annotations?: WasmPdfAnnotation[] | null, children?: WasmArchiveEntry[] | null, uris?: WasmExtractedUri[] | null, revisions?: WasmDocumentRevision[] | null, structuredOutput?: any | null, llmUsage?: WasmLlmUsage[] | null, entities?: WasmEntity[] | null, summary?: WasmDocumentSummary | null, extractionConfidence?: WasmExtractionConfidence | null, translation?: WasmTranslation | null, pageClassifications?: WasmPageClassification[] | null, redactionReport?: WasmRedactionReport | null);
|
|
3344
|
+
constructor(content?: string | null, mimeType?: string | null, metadata?: WasmMetadata | null, tables?: WasmTable[] | null, counts?: WasmDocumentCounts | null, processingWarnings?: WasmProcessingWarning[] | null, formulas?: WasmFormula[] | null, formFields?: WasmPdfFormField[] | null, extractionMethod?: WasmExtractionMethod | null, detectedLanguages?: string[] | null, detectedLanguageConfidences?: WasmLanguageConfidence[] | null, chunks?: WasmChunk[] | null, images?: WasmExtractedImage[] | null, pages?: WasmPageContent[] | null, elements?: WasmElement[] | null, djotContent?: WasmDjotContent | null, ocrElements?: WasmOcrElement[] | null, document?: WasmDocumentStructure | null, extractedKeywords?: WasmKeyword[] | null, qualityScore?: number | null, annotations?: WasmPdfAnnotation[] | null, children?: WasmArchiveEntry[] | null, uris?: WasmExtractedUri[] | null, revisions?: WasmDocumentRevision[] | null, structuredOutput?: any | null, llmUsage?: WasmLlmUsage[] | null, entities?: WasmEntity[] | null, summary?: WasmDocumentSummary | null, extractionConfidence?: WasmExtractionConfidence | null, translation?: WasmTranslation | null, pageClassifications?: WasmPageClassification[] | null, redactionReport?: WasmRedactionReport | null, ocrPageFailures?: WasmOcrPageFailure[] | null);
|
|
3345
3345
|
/**
|
|
3346
3346
|
* Returns detached copies of the elements in `annotations`.
|
|
3347
3347
|
*
|
|
@@ -3530,6 +3530,19 @@ export class WasmExtractedDocument {
|
|
|
3530
3530
|
* element with `copyForTransfer()` before passing the array.
|
|
3531
3531
|
*/
|
|
3532
3532
|
set ocrElements(value: WasmOcrElement[] | null | undefined);
|
|
3533
|
+
/**
|
|
3534
|
+
* Returns detached copies of the elements in `ocrPageFailures`.
|
|
3535
|
+
*
|
|
3536
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
3537
|
+
* then assign the array back to `ocrPageFailures`.
|
|
3538
|
+
*/
|
|
3539
|
+
get ocrPageFailures(): Array<any> | undefined;
|
|
3540
|
+
/**
|
|
3541
|
+
* Takes ownership of every element in `ocrPageFailures`.
|
|
3542
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
3543
|
+
* element with `copyForTransfer()` before passing the array.
|
|
3544
|
+
*/
|
|
3545
|
+
set ocrPageFailures(value: WasmOcrPageFailure[] | null | undefined);
|
|
3533
3546
|
/**
|
|
3534
3547
|
* Returns detached copies of the elements in `pageClassifications`.
|
|
3535
3548
|
*
|
|
@@ -3895,7 +3908,7 @@ export class WasmExtractionConfig {
|
|
|
3895
3908
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
3896
3909
|
* the generated setter borrows and leaves your handle alive.
|
|
3897
3910
|
*/
|
|
3898
|
-
constructor(mimeDetectionPolicy?: WasmMimeDetectionPolicy | null, useCache?: boolean | null, enableQualityProcessing?: boolean | null, forceOcr?: boolean | null, ocrStrategy?: any | null, disableOcr?: boolean | null, resultFormat?: WasmResultFormat | null, outputFormat?: any | null, escapeMarkdown?: boolean | null, tableAnchors?: boolean | null, jupyterCellRendering?: WasmJupyterCellRendering | null, applyNotebookCellTags?: boolean | null, useLayoutForMarkdown?: boolean | null, includeDocumentStructure?: boolean | null, url?: WasmUrlExtractionConfig | null, maxArchiveDepth?: number | null, ocr?: WasmOcrConfig | null, forceOcrPages?: Uint32Array | null, ocrNearEmptyFallback?: boolean | null, ocrScannedPageQualityGate?: boolean | null, ocrEmbeddedImages?: boolean | null, chunking?: WasmChunkingConfig | null, contentFilter?: WasmContentFilterConfig | null, images?: WasmImageExtractionConfig | null, pdfOptions?: WasmPdfConfig | null, tokenReduction?: WasmTokenReductionOptions | null, languageDetection?: WasmLanguageDetectionConfig | null, pages?: WasmPageConfig | null, keywords?: WasmKeywordConfig | null, postprocessor?: WasmPostProcessorConfig | null, htmlOptions?: WasmConversionOptions | null, htmlOutput?: WasmHtmlOutputConfig | null, extractionTimeoutSecs?: bigint | null, maxConcurrentExtractions?: number | null, securityLimits?: WasmSecurityLimits | null, maxEmbeddedFileBytes?: bigint | null, layout?: WasmLayoutDetectionConfig | null, transcription?: WasmTranscriptionConfig | null, acceleration?: WasmAccelerationConfig | null, cacheNamespace?: string | null, cacheTtlSecs?: bigint | null, email?: WasmEmailConfig | null, csv?: WasmCsvConfig | null, geojson?: WasmGeoJsonExtractionConfig | null, concurrency?: WasmConcurrencyConfig | null, structuredExtraction?: WasmStructuredExtractionConfig | null, ner?: WasmNerConfig | null, redaction?: WasmRedactionConfig | null, summarization?: WasmSummarizationConfig | null, translation?: WasmTranslationConfig | null, pageClassification?: WasmPageClassificationConfig | null, chunkClassification?: WasmChunkClassificationConfig | null, captioning?: WasmCaptioningConfig | null, qrCodes?: boolean | null);
|
|
3911
|
+
constructor(mimeDetectionPolicy?: WasmMimeDetectionPolicy | null, useCache?: boolean | null, enableQualityProcessing?: boolean | null, forceOcr?: boolean | null, ocrStrategy?: any | null, disableOcr?: boolean | null, resultFormat?: WasmResultFormat | null, outputFormat?: any | null, escapeMarkdown?: boolean | null, tableAnchors?: boolean | null, jupyterCellRendering?: WasmJupyterCellRendering | null, applyNotebookCellTags?: boolean | null, useLayoutForMarkdown?: boolean | null, includeDocumentStructure?: boolean | null, strictParse?: boolean | null, url?: WasmUrlExtractionConfig | null, maxArchiveDepth?: number | null, ocr?: WasmOcrConfig | null, forceOcrPages?: Uint32Array | null, ocrNearEmptyFallback?: boolean | null, ocrScannedPageQualityGate?: boolean | null, ocrEmbeddedImages?: boolean | null, chunking?: WasmChunkingConfig | null, contentFilter?: WasmContentFilterConfig | null, images?: WasmImageExtractionConfig | null, pdfOptions?: WasmPdfConfig | null, tokenReduction?: WasmTokenReductionOptions | null, languageDetection?: WasmLanguageDetectionConfig | null, pages?: WasmPageConfig | null, keywords?: WasmKeywordConfig | null, postprocessor?: WasmPostProcessorConfig | null, htmlOptions?: WasmConversionOptions | null, htmlOutput?: WasmHtmlOutputConfig | null, extractionTimeoutSecs?: bigint | null, maxConcurrentExtractions?: number | null, securityLimits?: WasmSecurityLimits | null, maxEmbeddedFileBytes?: bigint | null, layout?: WasmLayoutDetectionConfig | null, transcription?: WasmTranscriptionConfig | null, acceleration?: WasmAccelerationConfig | null, cacheNamespace?: string | null, cacheTtlSecs?: bigint | null, email?: WasmEmailConfig | null, csv?: WasmCsvConfig | null, geojson?: WasmGeoJsonExtractionConfig | null, concurrency?: WasmConcurrencyConfig | null, structuredExtraction?: WasmStructuredExtractionConfig | null, ner?: WasmNerConfig | null, redaction?: WasmRedactionConfig | null, summarization?: WasmSummarizationConfig | null, translation?: WasmTranslationConfig | null, pageClassification?: WasmPageClassificationConfig | null, chunkClassification?: WasmChunkClassificationConfig | null, captioning?: WasmCaptioningConfig | null, qrCodes?: boolean | null);
|
|
3899
3912
|
/**
|
|
3900
3913
|
* Whether embedded images get OCR'd.
|
|
3901
3914
|
*
|
|
@@ -4182,6 +4195,7 @@ export class WasmExtractionConfig {
|
|
|
4182
4195
|
*/
|
|
4183
4196
|
get securityLimits(): WasmSecurityLimits | undefined;
|
|
4184
4197
|
set securityLimits(value: WasmSecurityLimits);
|
|
4198
|
+
strictParse: boolean;
|
|
4185
4199
|
/**
|
|
4186
4200
|
* Returns a detached copy of `structuredExtraction`.
|
|
4187
4201
|
*
|
|
@@ -4423,7 +4437,7 @@ export class WasmFileExtractionConfig {
|
|
|
4423
4437
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
4424
4438
|
* the generated setter borrows and leaves your handle alive.
|
|
4425
4439
|
*/
|
|
4426
|
-
constructor(mimeDetectionPolicy?: WasmMimeDetectionPolicy | null, enableQualityProcessing?: boolean | null, ocr?: WasmOcrConfig | null, forceOcr?: boolean | null, ocrStrategy?: any | null, forceOcrPages?: Uint32Array | null, disableOcr?: boolean | null, chunking?: WasmChunkingConfig | null, contentFilter?: WasmContentFilterConfig | null, images?: WasmImageExtractionConfig | null, pdfOptions?: WasmPdfConfig | null, tokenReduction?: WasmTokenReductionOptions | null, languageDetection?: WasmLanguageDetectionConfig | null, pages?: WasmPageConfig | null, keywords?: WasmKeywordConfig | null, postprocessor?: WasmPostProcessorConfig | null, htmlOptions?: WasmConversionOptions | null, htmlOutput?: WasmHtmlOutputConfig | null, resultFormat?: WasmResultFormat | null, outputFormat?: any | null, includeDocumentStructure?: boolean | null, layout?: WasmLayoutDetectionConfig | null, transcription?: WasmTranscriptionConfig | null, timeoutSecs?: bigint | null, structuredExtraction?: WasmStructuredExtractionConfig | null, url?: WasmUrlExtractionConfig | null, ner?: WasmNerConfig | null, redaction?: WasmRedactionConfig | null, summarization?: WasmSummarizationConfig | null, translation?: WasmTranslationConfig | null, pageClassification?: WasmPageClassificationConfig | null, chunkClassification?: WasmChunkClassificationConfig | null, captioning?: WasmCaptioningConfig | null, qrCodes?: boolean | null);
|
|
4440
|
+
constructor(mimeDetectionPolicy?: WasmMimeDetectionPolicy | null, enableQualityProcessing?: boolean | null, ocr?: WasmOcrConfig | null, forceOcr?: boolean | null, ocrStrategy?: any | null, forceOcrPages?: Uint32Array | null, disableOcr?: boolean | null, chunking?: WasmChunkingConfig | null, contentFilter?: WasmContentFilterConfig | null, images?: WasmImageExtractionConfig | null, pdfOptions?: WasmPdfConfig | null, tokenReduction?: WasmTokenReductionOptions | null, languageDetection?: WasmLanguageDetectionConfig | null, pages?: WasmPageConfig | null, keywords?: WasmKeywordConfig | null, postprocessor?: WasmPostProcessorConfig | null, htmlOptions?: WasmConversionOptions | null, htmlOutput?: WasmHtmlOutputConfig | null, resultFormat?: WasmResultFormat | null, outputFormat?: any | null, includeDocumentStructure?: boolean | null, strictParse?: boolean | null, layout?: WasmLayoutDetectionConfig | null, transcription?: WasmTranscriptionConfig | null, timeoutSecs?: bigint | null, structuredExtraction?: WasmStructuredExtractionConfig | null, url?: WasmUrlExtractionConfig | null, ner?: WasmNerConfig | null, redaction?: WasmRedactionConfig | null, summarization?: WasmSummarizationConfig | null, translation?: WasmTranslationConfig | null, pageClassification?: WasmPageClassificationConfig | null, chunkClassification?: WasmChunkClassificationConfig | null, captioning?: WasmCaptioningConfig | null, qrCodes?: boolean | null);
|
|
4427
4441
|
/**
|
|
4428
4442
|
* Returns a detached copy of `captioning`.
|
|
4429
4443
|
*
|
|
@@ -4580,6 +4594,8 @@ export class WasmFileExtractionConfig {
|
|
|
4580
4594
|
set redaction(value: WasmRedactionConfig);
|
|
4581
4595
|
get resultFormat(): string | undefined;
|
|
4582
4596
|
set resultFormat(value: WasmResultFormat | null | undefined);
|
|
4597
|
+
get strictParse(): boolean | undefined;
|
|
4598
|
+
set strictParse(value: boolean | null | undefined);
|
|
4583
4599
|
/**
|
|
4584
4600
|
* Returns a detached copy of `structuredExtraction`.
|
|
4585
4601
|
*
|
|
@@ -7343,6 +7359,32 @@ export class WasmOcrMetadata {
|
|
|
7343
7359
|
set tableRows(value: number | null | undefined);
|
|
7344
7360
|
}
|
|
7345
7361
|
|
|
7362
|
+
/**
|
|
7363
|
+
* A page whose OCR failed while extraction of the document continued.
|
|
7364
|
+
*
|
|
7365
|
+
* The warning in `ExtractedDocument.processing_warnings` stays available. One warning
|
|
7366
|
+
* can cover several pages: when an automatic OCR run of selected pages fails as a whole,
|
|
7367
|
+
* it adds one warning and one record for each selected page. When the OCR fallback for the
|
|
7368
|
+
* whole document fails, it adds one warning and one record for each page that has no native
|
|
7369
|
+
* text. Repeated failures on one page make one record.
|
|
7370
|
+
*/
|
|
7371
|
+
export class WasmOcrPageFailure {
|
|
7372
|
+
free(): void;
|
|
7373
|
+
[Symbol.dispose](): void;
|
|
7374
|
+
/**
|
|
7375
|
+
* Return an independent handle for an ownership-taking API.
|
|
7376
|
+
*
|
|
7377
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
7378
|
+
* handle must remain usable.
|
|
7379
|
+
*/
|
|
7380
|
+
copyForTransfer(): WasmOcrPageFailure;
|
|
7381
|
+
static default(): WasmOcrPageFailure;
|
|
7382
|
+
constructor(page?: number | null, error?: string | null, recovered?: boolean | null);
|
|
7383
|
+
error: string;
|
|
7384
|
+
page: number;
|
|
7385
|
+
recovered: boolean;
|
|
7386
|
+
}
|
|
7387
|
+
|
|
7346
7388
|
/**
|
|
7347
7389
|
* Multi-backend OCR pipeline with quality-based fallback.
|
|
7348
7390
|
*
|
|
@@ -7921,9 +7963,10 @@ export class WasmPageConfig {
|
|
|
7921
7963
|
*/
|
|
7922
7964
|
copyForTransfer(): WasmPageConfig;
|
|
7923
7965
|
static default(): WasmPageConfig;
|
|
7924
|
-
constructor(extractPages?: boolean | null, insertPageMarkers?: boolean | null, markerFormat?: string | null);
|
|
7966
|
+
constructor(extractPages?: boolean | null, insertPageMarkers?: boolean | null, markerFormat?: string | null, keepNativeContent?: boolean | null);
|
|
7925
7967
|
extractPages: boolean;
|
|
7926
7968
|
insertPageMarkers: boolean;
|
|
7969
|
+
keepNativeContent: boolean;
|
|
7927
7970
|
markerFormat: string;
|
|
7928
7971
|
}
|
|
7929
7972
|
|
|
@@ -7967,7 +8010,7 @@ export class WasmPageContent {
|
|
|
7967
8010
|
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
7968
8011
|
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
7969
8012
|
*/
|
|
7970
|
-
constructor(pageNumber: number, content: string, tables: WasmTable[], imageIndices: Uint32Array, imagePreprocessing?: WasmImagePreprocessingMetadata | null, hierarchy?: WasmPageHierarchy | null, isBlank?: boolean | null, layoutRegions?: WasmLayoutRegion[] | null, speakerNotes?: string | null, sectionName?: string | null, sheetName?: string | null, ocrConfidence?: WasmPageOcrConfidence | null);
|
|
8013
|
+
constructor(pageNumber: number, content: string, tables: WasmTable[], imageIndices: Uint32Array, imagePreprocessing?: WasmImagePreprocessingMetadata | null, hierarchy?: WasmPageHierarchy | null, isBlank?: boolean | null, layoutRegions?: WasmLayoutRegion[] | null, speakerNotes?: string | null, sectionName?: string | null, sheetName?: string | null, ocrConfidence?: WasmPageOcrConfidence | null, nativeContent?: string | null);
|
|
7971
8014
|
content: string;
|
|
7972
8015
|
/**
|
|
7973
8016
|
* Returns a detached copy of `hierarchy`.
|
|
@@ -8001,6 +8044,8 @@ export class WasmPageContent {
|
|
|
8001
8044
|
* element with `copyForTransfer()` before passing the array.
|
|
8002
8045
|
*/
|
|
8003
8046
|
set layoutRegions(value: WasmLayoutRegion[] | null | undefined);
|
|
8047
|
+
get nativeContent(): string | undefined;
|
|
8048
|
+
set nativeContent(value: string | null | undefined);
|
|
8004
8049
|
/**
|
|
8005
8050
|
* Returns a detached copy of `ocrConfidence`.
|
|
8006
8051
|
*
|
|
@@ -11689,6 +11734,7 @@ export interface InitOutput {
|
|
|
11689
11734
|
readonly __wbg_wasmocrelementconfig_free: (a: number, b: number) => void;
|
|
11690
11735
|
readonly __wbg_wasmocrextractionresult_free: (a: number, b: number) => void;
|
|
11691
11736
|
readonly __wbg_wasmocrmetadata_free: (a: number, b: number) => void;
|
|
11737
|
+
readonly __wbg_wasmocrpagefailure_free: (a: number, b: number) => void;
|
|
11692
11738
|
readonly __wbg_wasmocrpipelineconfig_free: (a: number, b: number) => void;
|
|
11693
11739
|
readonly __wbg_wasmocrpipelinestage_free: (a: number, b: number) => void;
|
|
11694
11740
|
readonly __wbg_wasmocrpoint_free: (a: number, b: number) => void;
|
|
@@ -13042,8 +13088,9 @@ export interface InitOutput {
|
|
|
13042
13088
|
readonly wasmextracteddocument_llmUsage: (a: number) => any;
|
|
13043
13089
|
readonly wasmextracteddocument_metadata: (a: number) => number;
|
|
13044
13090
|
readonly wasmextracteddocument_mimeType: (a: number) => [number, number];
|
|
13045
|
-
readonly wasmextracteddocument_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number) => number;
|
|
13091
|
+
readonly wasmextracteddocument_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number, c2: number, d2: number) => number;
|
|
13046
13092
|
readonly wasmextracteddocument_ocrElements: (a: number) => any;
|
|
13093
|
+
readonly wasmextracteddocument_ocrPageFailures: (a: number) => any;
|
|
13047
13094
|
readonly wasmextracteddocument_pageClassifications: (a: number) => any;
|
|
13048
13095
|
readonly wasmextracteddocument_pages: (a: number) => any;
|
|
13049
13096
|
readonly wasmextracteddocument_processingWarnings: (a: number) => [number, number];
|
|
@@ -13071,6 +13118,7 @@ export interface InitOutput {
|
|
|
13071
13118
|
readonly wasmextracteddocument_set_metadata: (a: number, b: number) => void;
|
|
13072
13119
|
readonly wasmextracteddocument_set_mimeType: (a: number, b: number, c: number) => void;
|
|
13073
13120
|
readonly wasmextracteddocument_set_ocrElements: (a: number, b: number, c: number) => void;
|
|
13121
|
+
readonly wasmextracteddocument_set_ocrPageFailures: (a: number, b: number, c: number) => void;
|
|
13074
13122
|
readonly wasmextracteddocument_set_pageClassifications: (a: number, b: number, c: number) => void;
|
|
13075
13123
|
readonly wasmextracteddocument_set_pages: (a: number, b: number, c: number) => void;
|
|
13076
13124
|
readonly wasmextracteddocument_set_processingWarnings: (a: number, b: number, c: number) => void;
|
|
@@ -13236,7 +13284,7 @@ export interface InitOutput {
|
|
|
13236
13284
|
readonly wasmextractionconfig_needsImageData: (a: number) => number;
|
|
13237
13285
|
readonly wasmextractionconfig_needsImageProcessing: (a: number) => number;
|
|
13238
13286
|
readonly wasmextractionconfig_ner: (a: number) => number;
|
|
13239
|
-
readonly wasmextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1:
|
|
13287
|
+
readonly wasmextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: bigint, k1: number, l1: number, m1: number, n1: bigint, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: bigint, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number, c2: number, d2: number, e2: number, f2: number, g2: number, h2: number) => number;
|
|
13240
13288
|
readonly wasmextractionconfig_ocr: (a: number) => number;
|
|
13241
13289
|
readonly wasmextractionconfig_ocrEmbeddedImages: (a: number) => number;
|
|
13242
13290
|
readonly wasmextractionconfig_ocrNearEmptyFallback: (a: number) => number;
|
|
@@ -13297,6 +13345,7 @@ export interface InitOutput {
|
|
|
13297
13345
|
readonly wasmextractionconfig_set_redaction: (a: number, b: number) => void;
|
|
13298
13346
|
readonly wasmextractionconfig_set_resultFormat: (a: number, b: number) => void;
|
|
13299
13347
|
readonly wasmextractionconfig_set_securityLimits: (a: number, b: number) => void;
|
|
13348
|
+
readonly wasmextractionconfig_set_strictParse: (a: number, b: number) => void;
|
|
13300
13349
|
readonly wasmextractionconfig_set_structuredExtraction: (a: number, b: number) => void;
|
|
13301
13350
|
readonly wasmextractionconfig_set_summarization: (a: number, b: number) => void;
|
|
13302
13351
|
readonly wasmextractionconfig_set_tableAnchors: (a: number, b: number) => void;
|
|
@@ -13306,6 +13355,7 @@ export interface InitOutput {
|
|
|
13306
13355
|
readonly wasmextractionconfig_set_url: (a: number, b: number) => void;
|
|
13307
13356
|
readonly wasmextractionconfig_set_useCache: (a: number, b: number) => void;
|
|
13308
13357
|
readonly wasmextractionconfig_set_useLayoutForMarkdown: (a: number, b: number) => void;
|
|
13358
|
+
readonly wasmextractionconfig_strictParse: (a: number) => number;
|
|
13309
13359
|
readonly wasmextractionconfig_structuredExtraction: (a: number) => number;
|
|
13310
13360
|
readonly wasmextractionconfig_summarization: (a: number) => number;
|
|
13311
13361
|
readonly wasmextractionconfig_tableAnchors: (a: number) => number;
|
|
@@ -13412,7 +13462,7 @@ export interface InitOutput {
|
|
|
13412
13462
|
readonly wasmfileextractionconfig_layout: (a: number) => number;
|
|
13413
13463
|
readonly wasmfileextractionconfig_mimeDetectionPolicy: (a: number) => [number, number];
|
|
13414
13464
|
readonly wasmfileextractionconfig_ner: (a: number) => number;
|
|
13415
|
-
readonly wasmfileextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z:
|
|
13465
|
+
readonly wasmfileextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: bigint, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number) => number;
|
|
13416
13466
|
readonly wasmfileextractionconfig_ocr: (a: number) => number;
|
|
13417
13467
|
readonly wasmfileextractionconfig_ocrStrategy: (a: number) => any;
|
|
13418
13468
|
readonly wasmfileextractionconfig_outputFormat: (a: number) => any;
|
|
@@ -13450,6 +13500,7 @@ export interface InitOutput {
|
|
|
13450
13500
|
readonly wasmfileextractionconfig_set_qrCodes: (a: number, b: number) => void;
|
|
13451
13501
|
readonly wasmfileextractionconfig_set_redaction: (a: number, b: number) => void;
|
|
13452
13502
|
readonly wasmfileextractionconfig_set_resultFormat: (a: number, b: number) => void;
|
|
13503
|
+
readonly wasmfileextractionconfig_set_strictParse: (a: number, b: number) => void;
|
|
13453
13504
|
readonly wasmfileextractionconfig_set_structuredExtraction: (a: number, b: number) => void;
|
|
13454
13505
|
readonly wasmfileextractionconfig_set_summarization: (a: number, b: number) => void;
|
|
13455
13506
|
readonly wasmfileextractionconfig_set_timeoutSecs: (a: number, b: number, c: bigint) => void;
|
|
@@ -13457,6 +13508,7 @@ export interface InitOutput {
|
|
|
13457
13508
|
readonly wasmfileextractionconfig_set_transcription: (a: number, b: number) => void;
|
|
13458
13509
|
readonly wasmfileextractionconfig_set_translation: (a: number, b: number) => void;
|
|
13459
13510
|
readonly wasmfileextractionconfig_set_url: (a: number, b: number) => void;
|
|
13511
|
+
readonly wasmfileextractionconfig_strictParse: (a: number) => number;
|
|
13460
13512
|
readonly wasmfileextractionconfig_structuredExtraction: (a: number) => number;
|
|
13461
13513
|
readonly wasmfileextractionconfig_summarization: (a: number) => number;
|
|
13462
13514
|
readonly wasmfileextractionconfig_timeoutSecs: (a: number) => [number, bigint];
|
|
@@ -14460,6 +14512,15 @@ export interface InitOutput {
|
|
|
14460
14512
|
readonly wasmocrmetadata_tableCols: (a: number) => number;
|
|
14461
14513
|
readonly wasmocrmetadata_tableCount: (a: number) => number;
|
|
14462
14514
|
readonly wasmocrmetadata_tableRows: (a: number) => number;
|
|
14515
|
+
readonly wasmocrpagefailure_copyForTransfer: (a: number) => number;
|
|
14516
|
+
readonly wasmocrpagefailure_default: () => number;
|
|
14517
|
+
readonly wasmocrpagefailure_error: (a: number) => [number, number];
|
|
14518
|
+
readonly wasmocrpagefailure_new: (a: number, b: number, c: number, d: number) => number;
|
|
14519
|
+
readonly wasmocrpagefailure_page: (a: number) => number;
|
|
14520
|
+
readonly wasmocrpagefailure_recovered: (a: number) => number;
|
|
14521
|
+
readonly wasmocrpagefailure_set_error: (a: number, b: number, c: number) => void;
|
|
14522
|
+
readonly wasmocrpagefailure_set_page: (a: number, b: number) => void;
|
|
14523
|
+
readonly wasmocrpagefailure_set_recovered: (a: number, b: number) => void;
|
|
14463
14524
|
readonly wasmocrpipelineconfig_copyForTransfer: (a: number) => number;
|
|
14464
14525
|
readonly wasmocrpipelineconfig_default: () => number;
|
|
14465
14526
|
readonly wasmocrpipelineconfig_new: (a: number, b: number, c: number) => number;
|
|
@@ -14668,10 +14729,12 @@ export interface InitOutput {
|
|
|
14668
14729
|
readonly wasmpageconfig_default: () => number;
|
|
14669
14730
|
readonly wasmpageconfig_extractPages: (a: number) => number;
|
|
14670
14731
|
readonly wasmpageconfig_insertPageMarkers: (a: number) => number;
|
|
14732
|
+
readonly wasmpageconfig_keepNativeContent: (a: number) => number;
|
|
14671
14733
|
readonly wasmpageconfig_markerFormat: (a: number) => [number, number];
|
|
14672
|
-
readonly wasmpageconfig_new: (a: number, b: number, c: number, d: number) => number;
|
|
14734
|
+
readonly wasmpageconfig_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
14673
14735
|
readonly wasmpageconfig_set_extractPages: (a: number, b: number) => void;
|
|
14674
14736
|
readonly wasmpageconfig_set_insertPageMarkers: (a: number, b: number) => void;
|
|
14737
|
+
readonly wasmpageconfig_set_keepNativeContent: (a: number, b: number) => void;
|
|
14675
14738
|
readonly wasmpageconfig_set_markerFormat: (a: number, b: number, c: number) => void;
|
|
14676
14739
|
readonly wasmpagecontent_clearHierarchy: (a: number) => void;
|
|
14677
14740
|
readonly wasmpagecontent_clearImagePreprocessing: (a: number) => void;
|
|
@@ -14684,7 +14747,8 @@ export interface InitOutput {
|
|
|
14684
14747
|
readonly wasmpagecontent_imagePreprocessing: (a: number) => number;
|
|
14685
14748
|
readonly wasmpagecontent_isBlank: (a: number) => number;
|
|
14686
14749
|
readonly wasmpagecontent_layoutRegions: (a: number) => any;
|
|
14687
|
-
readonly
|
|
14750
|
+
readonly wasmpagecontent_nativeContent: (a: number) => [number, number];
|
|
14751
|
+
readonly wasmpagecontent_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => number;
|
|
14688
14752
|
readonly wasmpagecontent_ocrConfidence: (a: number) => number;
|
|
14689
14753
|
readonly wasmpagecontent_pageNumber: (a: number) => number;
|
|
14690
14754
|
readonly wasmpagecontent_sectionName: (a: number) => [number, number];
|
|
@@ -14694,6 +14758,7 @@ export interface InitOutput {
|
|
|
14694
14758
|
readonly wasmpagecontent_set_imagePreprocessing: (a: number, b: number) => void;
|
|
14695
14759
|
readonly wasmpagecontent_set_isBlank: (a: number, b: number) => void;
|
|
14696
14760
|
readonly wasmpagecontent_set_layoutRegions: (a: number, b: number, c: number) => void;
|
|
14761
|
+
readonly wasmpagecontent_set_nativeContent: (a: number, b: number, c: number) => void;
|
|
14697
14762
|
readonly wasmpagecontent_set_ocrConfidence: (a: number, b: number) => void;
|
|
14698
14763
|
readonly wasmpagecontent_set_pageNumber: (a: number, b: number) => void;
|
|
14699
14764
|
readonly wasmpagecontent_set_sectionName: (a: number, b: number, c: number) => void;
|
|
@@ -15406,10 +15471,6 @@ export interface InitOutput {
|
|
|
15406
15471
|
readonly wasmssrfpolicy_allowlist: (a: number) => any;
|
|
15407
15472
|
readonly wasmssrfpolicy_copyForTransfer: (a: number) => number;
|
|
15408
15473
|
readonly wasmssrfpolicy_default: () => number;
|
|
15409
|
-
readonly wasmssrfpolicy_denyPrivate: (a: number) => number;
|
|
15410
|
-
readonly wasmssrfpolicy_denylist: (a: number) => any;
|
|
15411
|
-
readonly wasmssrfpolicy_maxRedirects: (a: number) => number;
|
|
15412
|
-
readonly wasmssrfpolicy_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
15413
15474
|
readonly qcms_profile_precache_output_transform: (a: number) => void;
|
|
15414
15475
|
readonly lut_inverse_interp16: (a: number, b: number, c: number) => number;
|
|
15415
15476
|
readonly lut_interp_linear16: (a: number, b: number, c: number) => number;
|
|
@@ -15422,9 +15483,13 @@ export interface InitOutput {
|
|
|
15422
15483
|
readonly qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
|
|
15423
15484
|
readonly qcms_profile_is_bogus: (a: number) => number;
|
|
15424
15485
|
readonly qcms_transform_release: (a: number) => void;
|
|
15486
|
+
readonly wasmssrfpolicy_denyPrivate: (a: number) => number;
|
|
15487
|
+
readonly wasmssrfpolicy_denylist: (a: number) => any;
|
|
15488
|
+
readonly __cxa_atexit: (a: number, b: number, c: number) => number;
|
|
15489
|
+
readonly wasmssrfpolicy_maxRedirects: (a: number) => number;
|
|
15490
|
+
readonly wasmssrfpolicy_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
15425
15491
|
readonly wasmssrfpolicy_schemeAllowlist: (a: number) => [number, number];
|
|
15426
15492
|
readonly wasmssrfpolicy_set_allowlist: (a: number, b: any) => void;
|
|
15427
|
-
readonly __cxa_atexit: (a: number, b: number, c: number) => number;
|
|
15428
15493
|
readonly wasmssrfpolicy_set_denyPrivate: (a: number, b: number) => void;
|
|
15429
15494
|
readonly wasmssrfpolicy_set_denylist: (a: number, b: any) => void;
|
|
15430
15495
|
readonly wasmssrfpolicy_set_maxRedirects: (a: number, b: number) => void;
|
|
@@ -15801,9 +15866,9 @@ export interface InitOutput {
|
|
|
15801
15866
|
readonly xbergengine_new: (a: any, b: any) => [number, number, number];
|
|
15802
15867
|
readonly qcms_enable_iccv4: () => void;
|
|
15803
15868
|
readonly xbergengine_ocr: (a: number, b: number, c: number, d: any) => any;
|
|
15804
|
-
readonly
|
|
15805
|
-
readonly
|
|
15806
|
-
readonly
|
|
15869
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1697dacc3af5e769: (a: number, b: number, c: any, d: any) => void;
|
|
15870
|
+
readonly wasm_bindgen__convert__closures_____invoke__hcbfea0afcfcd2f5c: (a: number, b: number, c: any) => [number, number];
|
|
15871
|
+
readonly wasm_bindgen__convert__closures_____invoke__h697ad9e8f3481d94: (a: number, b: number) => void;
|
|
15807
15872
|
readonly __wbindgen_malloc_command_export: (a: number, b: number) => number;
|
|
15808
15873
|
readonly __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
|
|
15809
15874
|
readonly __wbindgen_exn_store_command_export: (a: number) => void;
|
package/pkg/web/xberg_wasm.js
CHANGED
|
@@ -14034,7 +14034,7 @@ export class WasmExtractedDocument {
|
|
|
14034
14034
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
14035
14035
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
14036
14036
|
* the generated setter borrows and leaves your handle alive.
|
|
14037
|
-
* Takes ownership of every element in `tables`, `detectedLanguageConfidences`, `chunks`, `images`, `pages`, `elements`, `ocrElements`, `extractedKeywords`, `processingWarnings`, `annotations`, `children`, `uris`, `revisions`, `llmUsage`, `entities`, `pageClassifications`, `formulas`, `formFields`.
|
|
14037
|
+
* Takes ownership of every element in `tables`, `detectedLanguageConfidences`, `chunks`, `images`, `pages`, `elements`, `ocrElements`, `extractedKeywords`, `processingWarnings`, `annotations`, `children`, `uris`, `revisions`, `llmUsage`, `entities`, `pageClassifications`, `formulas`, `formFields`, `ocrPageFailures`.
|
|
14038
14038
|
* wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
|
|
14039
14039
|
* copy each retained element with `copyForTransfer()` before passing the array.
|
|
14040
14040
|
* @param {string | null} [content]
|
|
@@ -14069,8 +14069,9 @@ export class WasmExtractedDocument {
|
|
|
14069
14069
|
* @param {WasmTranslation | null} [translation]
|
|
14070
14070
|
* @param {WasmPageClassification[] | null} [pageClassifications]
|
|
14071
14071
|
* @param {WasmRedactionReport | null} [redactionReport]
|
|
14072
|
+
* @param {WasmOcrPageFailure[] | null} [ocrPageFailures]
|
|
14072
14073
|
*/
|
|
14073
|
-
constructor(content, mimeType, metadata, tables, counts, processingWarnings, formulas, formFields, extractionMethod, detectedLanguages, detectedLanguageConfidences, chunks, images, pages, elements, djotContent, ocrElements, document, extractedKeywords, qualityScore, annotations, children, uris, revisions, structuredOutput, llmUsage, entities, summary, extractionConfidence, translation, pageClassifications, redactionReport) {
|
|
14074
|
+
constructor(content, mimeType, metadata, tables, counts, processingWarnings, formulas, formFields, extractionMethod, detectedLanguages, detectedLanguageConfidences, chunks, images, pages, elements, djotContent, ocrElements, document, extractedKeywords, qualityScore, annotations, children, uris, revisions, structuredOutput, llmUsage, entities, summary, extractionConfidence, translation, pageClassifications, redactionReport, ocrPageFailures) {
|
|
14074
14075
|
var ptr0 = isLikeNone(content) ? 0 : passStringToWasm0(content, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
14075
14076
|
var len0 = WASM_VECTOR_LEN;
|
|
14076
14077
|
var ptr1 = isLikeNone(mimeType) ? 0 : passStringToWasm0(mimeType, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
@@ -14153,7 +14154,9 @@ export class WasmExtractedDocument {
|
|
|
14153
14154
|
_assertClass(redactionReport, WasmRedactionReport);
|
|
14154
14155
|
ptr28 = redactionReport.__destroy_into_raw();
|
|
14155
14156
|
}
|
|
14156
|
-
|
|
14157
|
+
var ptr29 = isLikeNone(ocrPageFailures) ? 0 : passArrayJsValueToWasm0(ocrPageFailures, wasm.__wbindgen_malloc_command_export);
|
|
14158
|
+
var len29 = WASM_VECTOR_LEN;
|
|
14159
|
+
const ret = wasm.wasmextracteddocument_new(ptr0, len0, ptr1, len1, ptr2, ptr3, len3, ptr4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(extractionMethod) ? 3 : extractionMethod, ptr8, len8, ptr9, len9, ptr10, len10, ptr11, len11, ptr12, len12, ptr13, len13, ptr14, ptr15, len15, ptr16, ptr17, len17, !isLikeNone(qualityScore), isLikeNone(qualityScore) ? 0 : qualityScore, ptr18, len18, ptr19, len19, ptr20, len20, ptr21, len21, isLikeNone(structuredOutput) ? 0 : addToExternrefTable0(structuredOutput), ptr22, len22, ptr23, len23, ptr24, ptr25, ptr26, ptr27, len27, ptr28, ptr29, len29);
|
|
14157
14160
|
this.__wbg_ptr = ret;
|
|
14158
14161
|
WasmExtractedDocumentFinalization.register(this, this.__wbg_ptr, this);
|
|
14159
14162
|
return this;
|
|
@@ -14169,6 +14172,17 @@ export class WasmExtractedDocument {
|
|
|
14169
14172
|
const ret = wasm.wasmextracteddocument_ocrElements(this.__wbg_ptr);
|
|
14170
14173
|
return ret;
|
|
14171
14174
|
}
|
|
14175
|
+
/**
|
|
14176
|
+
* Returns detached copies of the elements in `ocrPageFailures`.
|
|
14177
|
+
*
|
|
14178
|
+
* Changes to the returned values do not update this object. Modify the copies,
|
|
14179
|
+
* then assign the array back to `ocrPageFailures`.
|
|
14180
|
+
* @returns {Array<any> | undefined}
|
|
14181
|
+
*/
|
|
14182
|
+
get ocrPageFailures() {
|
|
14183
|
+
const ret = wasm.wasmextracteddocument_ocrPageFailures(this.__wbg_ptr);
|
|
14184
|
+
return ret;
|
|
14185
|
+
}
|
|
14172
14186
|
/**
|
|
14173
14187
|
* Returns detached copies of the elements in `pageClassifications`.
|
|
14174
14188
|
*
|
|
@@ -14430,6 +14444,17 @@ export class WasmExtractedDocument {
|
|
|
14430
14444
|
var len0 = WASM_VECTOR_LEN;
|
|
14431
14445
|
wasm.wasmextracteddocument_set_ocrElements(this.__wbg_ptr, ptr0, len0);
|
|
14432
14446
|
}
|
|
14447
|
+
/**
|
|
14448
|
+
* Takes ownership of every element in `ocrPageFailures`.
|
|
14449
|
+
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
14450
|
+
* element with `copyForTransfer()` before passing the array.
|
|
14451
|
+
* @param {WasmOcrPageFailure[] | null} [value]
|
|
14452
|
+
*/
|
|
14453
|
+
set ocrPageFailures(value) {
|
|
14454
|
+
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_malloc_command_export);
|
|
14455
|
+
var len0 = WASM_VECTOR_LEN;
|
|
14456
|
+
wasm.wasmextracteddocument_set_ocrPageFailures(this.__wbg_ptr, ptr0, len0);
|
|
14457
|
+
}
|
|
14433
14458
|
/**
|
|
14434
14459
|
* Takes ownership of every element in `pageClassifications`.
|
|
14435
14460
|
* wasm-bindgen cannot borrow class values nested in an array; copy each retained
|
|
@@ -15828,6 +15853,7 @@ export class WasmExtractionConfig {
|
|
|
15828
15853
|
* @param {boolean | null} [applyNotebookCellTags]
|
|
15829
15854
|
* @param {boolean | null} [useLayoutForMarkdown]
|
|
15830
15855
|
* @param {boolean | null} [includeDocumentStructure]
|
|
15856
|
+
* @param {boolean | null} [strictParse]
|
|
15831
15857
|
* @param {WasmUrlExtractionConfig | null} [url]
|
|
15832
15858
|
* @param {number | null} [maxArchiveDepth]
|
|
15833
15859
|
* @param {WasmOcrConfig | null} [ocr]
|
|
@@ -15869,7 +15895,7 @@ export class WasmExtractionConfig {
|
|
|
15869
15895
|
* @param {WasmCaptioningConfig | null} [captioning]
|
|
15870
15896
|
* @param {boolean | null} [qrCodes]
|
|
15871
15897
|
*/
|
|
15872
|
-
constructor(mimeDetectionPolicy, useCache, enableQualityProcessing, forceOcr, ocrStrategy, disableOcr, resultFormat, outputFormat, escapeMarkdown, tableAnchors, jupyterCellRendering, applyNotebookCellTags, useLayoutForMarkdown, includeDocumentStructure, url, maxArchiveDepth, ocr, forceOcrPages, ocrNearEmptyFallback, ocrScannedPageQualityGate, ocrEmbeddedImages, chunking, contentFilter, images, pdfOptions, tokenReduction, languageDetection, pages, keywords, postprocessor, htmlOptions, htmlOutput, extractionTimeoutSecs, maxConcurrentExtractions, securityLimits, maxEmbeddedFileBytes, layout, transcription, acceleration, cacheNamespace, cacheTtlSecs, email, csv, geojson, concurrency, structuredExtraction, ner, redaction, summarization, translation, pageClassification, chunkClassification, captioning, qrCodes) {
|
|
15898
|
+
constructor(mimeDetectionPolicy, useCache, enableQualityProcessing, forceOcr, ocrStrategy, disableOcr, resultFormat, outputFormat, escapeMarkdown, tableAnchors, jupyterCellRendering, applyNotebookCellTags, useLayoutForMarkdown, includeDocumentStructure, strictParse, url, maxArchiveDepth, ocr, forceOcrPages, ocrNearEmptyFallback, ocrScannedPageQualityGate, ocrEmbeddedImages, chunking, contentFilter, images, pdfOptions, tokenReduction, languageDetection, pages, keywords, postprocessor, htmlOptions, htmlOutput, extractionTimeoutSecs, maxConcurrentExtractions, securityLimits, maxEmbeddedFileBytes, layout, transcription, acceleration, cacheNamespace, cacheTtlSecs, email, csv, geojson, concurrency, structuredExtraction, ner, redaction, summarization, translation, pageClassification, chunkClassification, captioning, qrCodes) {
|
|
15873
15899
|
let ptr0 = 0;
|
|
15874
15900
|
if (!isLikeNone(url)) {
|
|
15875
15901
|
_assertClass(url, WasmUrlExtractionConfig);
|
|
@@ -16019,7 +16045,7 @@ export class WasmExtractionConfig {
|
|
|
16019
16045
|
_assertClass(captioning, WasmCaptioningConfig);
|
|
16020
16046
|
ptr30 = captioning.__destroy_into_raw();
|
|
16021
16047
|
}
|
|
16022
|
-
const ret = wasm.wasmextractionconfig_new(isLikeNone(mimeDetectionPolicy) ? 3 : mimeDetectionPolicy, isLikeNone(useCache) ? 0xFFFFFF : useCache ? 1 : 0, isLikeNone(enableQualityProcessing) ? 0xFFFFFF : enableQualityProcessing ? 1 : 0, isLikeNone(forceOcr) ? 0xFFFFFF : forceOcr ? 1 : 0, isLikeNone(ocrStrategy) ? 0 : addToExternrefTable0(ocrStrategy), isLikeNone(disableOcr) ? 0xFFFFFF : disableOcr ? 1 : 0, isLikeNone(resultFormat) ? 2 : resultFormat, isLikeNone(outputFormat) ? 0 : addToExternrefTable0(outputFormat), isLikeNone(escapeMarkdown) ? 0xFFFFFF : escapeMarkdown ? 1 : 0, isLikeNone(tableAnchors) ? 0xFFFFFF : tableAnchors ? 1 : 0, isLikeNone(jupyterCellRendering) ? 3 : jupyterCellRendering, isLikeNone(applyNotebookCellTags) ? 0xFFFFFF : applyNotebookCellTags ? 1 : 0, isLikeNone(useLayoutForMarkdown) ? 0xFFFFFF : useLayoutForMarkdown ? 1 : 0, isLikeNone(includeDocumentStructure) ? 0xFFFFFF : includeDocumentStructure ? 1 : 0, ptr0, isLikeNone(maxArchiveDepth) ? Number.MAX_SAFE_INTEGER : (maxArchiveDepth) >>> 0, ptr1, ptr2, len2, isLikeNone(ocrNearEmptyFallback) ? 0xFFFFFF : ocrNearEmptyFallback ? 1 : 0, isLikeNone(ocrScannedPageQualityGate) ? 0xFFFFFF : ocrScannedPageQualityGate ? 1 : 0, isLikeNone(ocrEmbeddedImages) ? 0xFFFFFF : ocrEmbeddedImages ? 1 : 0, ptr3, ptr4, ptr5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, ptr13, !isLikeNone(extractionTimeoutSecs), isLikeNone(extractionTimeoutSecs) ? BigInt(0) : extractionTimeoutSecs, isLikeNone(maxConcurrentExtractions) ? Number.MAX_SAFE_INTEGER : (maxConcurrentExtractions) >>> 0, ptr14, !isLikeNone(maxEmbeddedFileBytes), isLikeNone(maxEmbeddedFileBytes) ? BigInt(0) : maxEmbeddedFileBytes, ptr15, ptr16, ptr17, ptr18, len18, !isLikeNone(cacheTtlSecs), isLikeNone(cacheTtlSecs) ? BigInt(0) : cacheTtlSecs, ptr19, ptr20, ptr21, ptr22, ptr23, ptr24, ptr25, ptr26, ptr27, ptr28, ptr29, ptr30, isLikeNone(qrCodes) ? 0xFFFFFF : qrCodes ? 1 : 0);
|
|
16048
|
+
const ret = wasm.wasmextractionconfig_new(isLikeNone(mimeDetectionPolicy) ? 3 : mimeDetectionPolicy, isLikeNone(useCache) ? 0xFFFFFF : useCache ? 1 : 0, isLikeNone(enableQualityProcessing) ? 0xFFFFFF : enableQualityProcessing ? 1 : 0, isLikeNone(forceOcr) ? 0xFFFFFF : forceOcr ? 1 : 0, isLikeNone(ocrStrategy) ? 0 : addToExternrefTable0(ocrStrategy), isLikeNone(disableOcr) ? 0xFFFFFF : disableOcr ? 1 : 0, isLikeNone(resultFormat) ? 2 : resultFormat, isLikeNone(outputFormat) ? 0 : addToExternrefTable0(outputFormat), isLikeNone(escapeMarkdown) ? 0xFFFFFF : escapeMarkdown ? 1 : 0, isLikeNone(tableAnchors) ? 0xFFFFFF : tableAnchors ? 1 : 0, isLikeNone(jupyterCellRendering) ? 3 : jupyterCellRendering, isLikeNone(applyNotebookCellTags) ? 0xFFFFFF : applyNotebookCellTags ? 1 : 0, isLikeNone(useLayoutForMarkdown) ? 0xFFFFFF : useLayoutForMarkdown ? 1 : 0, isLikeNone(includeDocumentStructure) ? 0xFFFFFF : includeDocumentStructure ? 1 : 0, isLikeNone(strictParse) ? 0xFFFFFF : strictParse ? 1 : 0, ptr0, isLikeNone(maxArchiveDepth) ? Number.MAX_SAFE_INTEGER : (maxArchiveDepth) >>> 0, ptr1, ptr2, len2, isLikeNone(ocrNearEmptyFallback) ? 0xFFFFFF : ocrNearEmptyFallback ? 1 : 0, isLikeNone(ocrScannedPageQualityGate) ? 0xFFFFFF : ocrScannedPageQualityGate ? 1 : 0, isLikeNone(ocrEmbeddedImages) ? 0xFFFFFF : ocrEmbeddedImages ? 1 : 0, ptr3, ptr4, ptr5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, ptr13, !isLikeNone(extractionTimeoutSecs), isLikeNone(extractionTimeoutSecs) ? BigInt(0) : extractionTimeoutSecs, isLikeNone(maxConcurrentExtractions) ? Number.MAX_SAFE_INTEGER : (maxConcurrentExtractions) >>> 0, ptr14, !isLikeNone(maxEmbeddedFileBytes), isLikeNone(maxEmbeddedFileBytes) ? BigInt(0) : maxEmbeddedFileBytes, ptr15, ptr16, ptr17, ptr18, len18, !isLikeNone(cacheTtlSecs), isLikeNone(cacheTtlSecs) ? BigInt(0) : cacheTtlSecs, ptr19, ptr20, ptr21, ptr22, ptr23, ptr24, ptr25, ptr26, ptr27, ptr28, ptr29, ptr30, isLikeNone(qrCodes) ? 0xFFFFFF : qrCodes ? 1 : 0);
|
|
16023
16049
|
this.__wbg_ptr = ret;
|
|
16024
16050
|
WasmExtractionConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
16025
16051
|
return this;
|
|
@@ -16482,6 +16508,12 @@ export class WasmExtractionConfig {
|
|
|
16482
16508
|
_assertClass(value, WasmSecurityLimits);
|
|
16483
16509
|
wasm.wasmextractionconfig_set_securityLimits(this.__wbg_ptr, value.__wbg_ptr);
|
|
16484
16510
|
}
|
|
16511
|
+
/**
|
|
16512
|
+
* @param {boolean} value
|
|
16513
|
+
*/
|
|
16514
|
+
set strictParse(value) {
|
|
16515
|
+
wasm.wasmextractionconfig_set_strictParse(this.__wbg_ptr, value);
|
|
16516
|
+
}
|
|
16485
16517
|
/**
|
|
16486
16518
|
* @param {WasmStructuredExtractionConfig} value
|
|
16487
16519
|
*/
|
|
@@ -16542,6 +16574,13 @@ export class WasmExtractionConfig {
|
|
|
16542
16574
|
set useLayoutForMarkdown(value) {
|
|
16543
16575
|
wasm.wasmextractionconfig_set_useLayoutForMarkdown(this.__wbg_ptr, value);
|
|
16544
16576
|
}
|
|
16577
|
+
/**
|
|
16578
|
+
* @returns {boolean}
|
|
16579
|
+
*/
|
|
16580
|
+
get strictParse() {
|
|
16581
|
+
const ret = wasm.wasmextractionconfig_strictParse(this.__wbg_ptr);
|
|
16582
|
+
return ret !== 0;
|
|
16583
|
+
}
|
|
16545
16584
|
/**
|
|
16546
16585
|
* Returns a detached copy of `structuredExtraction`.
|
|
16547
16586
|
*
|
|
@@ -17623,6 +17662,7 @@ export class WasmFileExtractionConfig {
|
|
|
17623
17662
|
* @param {WasmResultFormat | null} [resultFormat]
|
|
17624
17663
|
* @param {any | null} [outputFormat]
|
|
17625
17664
|
* @param {boolean | null} [includeDocumentStructure]
|
|
17665
|
+
* @param {boolean | null} [strictParse]
|
|
17626
17666
|
* @param {WasmLayoutDetectionConfig | null} [layout]
|
|
17627
17667
|
* @param {WasmTranscriptionConfig | null} [transcription]
|
|
17628
17668
|
* @param {bigint | null} [timeoutSecs]
|
|
@@ -17637,7 +17677,7 @@ export class WasmFileExtractionConfig {
|
|
|
17637
17677
|
* @param {WasmCaptioningConfig | null} [captioning]
|
|
17638
17678
|
* @param {boolean | null} [qrCodes]
|
|
17639
17679
|
*/
|
|
17640
|
-
constructor(mimeDetectionPolicy, enableQualityProcessing, ocr, forceOcr, ocrStrategy, forceOcrPages, disableOcr, chunking, contentFilter, images, pdfOptions, tokenReduction, languageDetection, pages, keywords, postprocessor, htmlOptions, htmlOutput, resultFormat, outputFormat, includeDocumentStructure, layout, transcription, timeoutSecs, structuredExtraction, url, ner, redaction, summarization, translation, pageClassification, chunkClassification, captioning, qrCodes) {
|
|
17680
|
+
constructor(mimeDetectionPolicy, enableQualityProcessing, ocr, forceOcr, ocrStrategy, forceOcrPages, disableOcr, chunking, contentFilter, images, pdfOptions, tokenReduction, languageDetection, pages, keywords, postprocessor, htmlOptions, htmlOutput, resultFormat, outputFormat, includeDocumentStructure, strictParse, layout, transcription, timeoutSecs, structuredExtraction, url, ner, redaction, summarization, translation, pageClassification, chunkClassification, captioning, qrCodes) {
|
|
17641
17681
|
let ptr0 = 0;
|
|
17642
17682
|
if (!isLikeNone(ocr)) {
|
|
17643
17683
|
_assertClass(ocr, WasmOcrConfig);
|
|
@@ -17755,7 +17795,7 @@ export class WasmFileExtractionConfig {
|
|
|
17755
17795
|
_assertClass(captioning, WasmCaptioningConfig);
|
|
17756
17796
|
ptr23 = captioning.__destroy_into_raw();
|
|
17757
17797
|
}
|
|
17758
|
-
const ret = wasm.wasmfileextractionconfig_new(isLikeNone(mimeDetectionPolicy) ? 3 : mimeDetectionPolicy, isLikeNone(enableQualityProcessing) ? 0xFFFFFF : enableQualityProcessing ? 1 : 0, ptr0, isLikeNone(forceOcr) ? 0xFFFFFF : forceOcr ? 1 : 0, isLikeNone(ocrStrategy) ? 0 : addToExternrefTable0(ocrStrategy), ptr1, len1, isLikeNone(disableOcr) ? 0xFFFFFF : disableOcr ? 1 : 0, ptr2, ptr3, ptr4, ptr5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, isLikeNone(resultFormat) ? 2 : resultFormat, isLikeNone(outputFormat) ? 0 : addToExternrefTable0(outputFormat), isLikeNone(includeDocumentStructure) ? 0xFFFFFF : includeDocumentStructure ? 1 : 0, ptr13, ptr14, !isLikeNone(timeoutSecs), isLikeNone(timeoutSecs) ? BigInt(0) : timeoutSecs, ptr15, ptr16, ptr17, ptr18, ptr19, ptr20, ptr21, ptr22, ptr23, isLikeNone(qrCodes) ? 0xFFFFFF : qrCodes ? 1 : 0);
|
|
17798
|
+
const ret = wasm.wasmfileextractionconfig_new(isLikeNone(mimeDetectionPolicy) ? 3 : mimeDetectionPolicy, isLikeNone(enableQualityProcessing) ? 0xFFFFFF : enableQualityProcessing ? 1 : 0, ptr0, isLikeNone(forceOcr) ? 0xFFFFFF : forceOcr ? 1 : 0, isLikeNone(ocrStrategy) ? 0 : addToExternrefTable0(ocrStrategy), ptr1, len1, isLikeNone(disableOcr) ? 0xFFFFFF : disableOcr ? 1 : 0, ptr2, ptr3, ptr4, ptr5, ptr6, ptr7, ptr8, ptr9, ptr10, ptr11, ptr12, isLikeNone(resultFormat) ? 2 : resultFormat, isLikeNone(outputFormat) ? 0 : addToExternrefTable0(outputFormat), isLikeNone(includeDocumentStructure) ? 0xFFFFFF : includeDocumentStructure ? 1 : 0, isLikeNone(strictParse) ? 0xFFFFFF : strictParse ? 1 : 0, ptr13, ptr14, !isLikeNone(timeoutSecs), isLikeNone(timeoutSecs) ? BigInt(0) : timeoutSecs, ptr15, ptr16, ptr17, ptr18, ptr19, ptr20, ptr21, ptr22, ptr23, isLikeNone(qrCodes) ? 0xFFFFFF : qrCodes ? 1 : 0);
|
|
17759
17799
|
this.__wbg_ptr = ret;
|
|
17760
17800
|
WasmFileExtractionConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
17761
17801
|
return this;
|
|
@@ -18040,6 +18080,12 @@ export class WasmFileExtractionConfig {
|
|
|
18040
18080
|
set resultFormat(value) {
|
|
18041
18081
|
wasm.wasmfileextractionconfig_set_resultFormat(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
18042
18082
|
}
|
|
18083
|
+
/**
|
|
18084
|
+
* @param {boolean | null} [value]
|
|
18085
|
+
*/
|
|
18086
|
+
set strictParse(value) {
|
|
18087
|
+
wasm.wasmfileextractionconfig_set_strictParse(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
18088
|
+
}
|
|
18043
18089
|
/**
|
|
18044
18090
|
* @param {WasmStructuredExtractionConfig} value
|
|
18045
18091
|
*/
|
|
@@ -18088,6 +18134,13 @@ export class WasmFileExtractionConfig {
|
|
|
18088
18134
|
_assertClass(value, WasmUrlExtractionConfig);
|
|
18089
18135
|
wasm.wasmfileextractionconfig_set_url(this.__wbg_ptr, value.__wbg_ptr);
|
|
18090
18136
|
}
|
|
18137
|
+
/**
|
|
18138
|
+
* @returns {boolean | undefined}
|
|
18139
|
+
*/
|
|
18140
|
+
get strictParse() {
|
|
18141
|
+
const ret = wasm.wasmfileextractionconfig_strictParse(this.__wbg_ptr);
|
|
18142
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
18143
|
+
}
|
|
18091
18144
|
/**
|
|
18092
18145
|
* Returns a detached copy of `structuredExtraction`.
|
|
18093
18146
|
*
|
|
@@ -29543,6 +29596,121 @@ export class WasmOcrMetadata {
|
|
|
29543
29596
|
}
|
|
29544
29597
|
if (Symbol.dispose) WasmOcrMetadata.prototype[Symbol.dispose] = WasmOcrMetadata.prototype.free;
|
|
29545
29598
|
|
|
29599
|
+
/**
|
|
29600
|
+
* A page whose OCR failed while extraction of the document continued.
|
|
29601
|
+
*
|
|
29602
|
+
* The warning in `ExtractedDocument.processing_warnings` stays available. One warning
|
|
29603
|
+
* can cover several pages: when an automatic OCR run of selected pages fails as a whole,
|
|
29604
|
+
* it adds one warning and one record for each selected page. When the OCR fallback for the
|
|
29605
|
+
* whole document fails, it adds one warning and one record for each page that has no native
|
|
29606
|
+
* text. Repeated failures on one page make one record.
|
|
29607
|
+
*/
|
|
29608
|
+
export class WasmOcrPageFailure {
|
|
29609
|
+
static __wrap(ptr) {
|
|
29610
|
+
const obj = Object.create(WasmOcrPageFailure.prototype);
|
|
29611
|
+
obj.__wbg_ptr = ptr;
|
|
29612
|
+
WasmOcrPageFailureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
29613
|
+
return obj;
|
|
29614
|
+
}
|
|
29615
|
+
static __unwrap(jsValue) {
|
|
29616
|
+
if (!(jsValue instanceof WasmOcrPageFailure)) {
|
|
29617
|
+
return 0;
|
|
29618
|
+
}
|
|
29619
|
+
return jsValue.__destroy_into_raw();
|
|
29620
|
+
}
|
|
29621
|
+
__destroy_into_raw() {
|
|
29622
|
+
const ptr = this.__wbg_ptr;
|
|
29623
|
+
this.__wbg_ptr = 0;
|
|
29624
|
+
WasmOcrPageFailureFinalization.unregister(this);
|
|
29625
|
+
return ptr;
|
|
29626
|
+
}
|
|
29627
|
+
free() {
|
|
29628
|
+
const ptr = this.__destroy_into_raw();
|
|
29629
|
+
wasm.__wbg_wasmocrpagefailure_free(ptr, 0);
|
|
29630
|
+
}
|
|
29631
|
+
/**
|
|
29632
|
+
* Return an independent handle for an ownership-taking API.
|
|
29633
|
+
*
|
|
29634
|
+
* Use `copyForTransfer()` for each class value placed in an array when the original
|
|
29635
|
+
* handle must remain usable.
|
|
29636
|
+
* @returns {WasmOcrPageFailure}
|
|
29637
|
+
*/
|
|
29638
|
+
copyForTransfer() {
|
|
29639
|
+
const ret = wasm.wasmocrpagefailure_copyForTransfer(this.__wbg_ptr);
|
|
29640
|
+
return WasmOcrPageFailure.__wrap(ret);
|
|
29641
|
+
}
|
|
29642
|
+
/**
|
|
29643
|
+
* @returns {WasmOcrPageFailure}
|
|
29644
|
+
*/
|
|
29645
|
+
static default() {
|
|
29646
|
+
const ret = wasm.wasmocrpagefailure_default();
|
|
29647
|
+
return WasmOcrPageFailure.__wrap(ret);
|
|
29648
|
+
}
|
|
29649
|
+
/**
|
|
29650
|
+
* @returns {string}
|
|
29651
|
+
*/
|
|
29652
|
+
get error() {
|
|
29653
|
+
let deferred1_0;
|
|
29654
|
+
let deferred1_1;
|
|
29655
|
+
try {
|
|
29656
|
+
const ret = wasm.wasmocrpagefailure_error(this.__wbg_ptr);
|
|
29657
|
+
deferred1_0 = ret[0];
|
|
29658
|
+
deferred1_1 = ret[1];
|
|
29659
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
29660
|
+
} finally {
|
|
29661
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
29662
|
+
}
|
|
29663
|
+
}
|
|
29664
|
+
/**
|
|
29665
|
+
* @param {number | null} [page]
|
|
29666
|
+
* @param {string | null} [error]
|
|
29667
|
+
* @param {boolean | null} [recovered]
|
|
29668
|
+
*/
|
|
29669
|
+
constructor(page, error, recovered) {
|
|
29670
|
+
var ptr0 = isLikeNone(error) ? 0 : passStringToWasm0(error, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
29671
|
+
var len0 = WASM_VECTOR_LEN;
|
|
29672
|
+
const ret = wasm.wasmocrpagefailure_new(isLikeNone(page) ? Number.MAX_SAFE_INTEGER : (page) >>> 0, ptr0, len0, isLikeNone(recovered) ? 0xFFFFFF : recovered ? 1 : 0);
|
|
29673
|
+
this.__wbg_ptr = ret;
|
|
29674
|
+
WasmOcrPageFailureFinalization.register(this, this.__wbg_ptr, this);
|
|
29675
|
+
return this;
|
|
29676
|
+
}
|
|
29677
|
+
/**
|
|
29678
|
+
* @returns {number}
|
|
29679
|
+
*/
|
|
29680
|
+
get page() {
|
|
29681
|
+
const ret = wasm.wasmocrpagefailure_page(this.__wbg_ptr);
|
|
29682
|
+
return ret >>> 0;
|
|
29683
|
+
}
|
|
29684
|
+
/**
|
|
29685
|
+
* @returns {boolean}
|
|
29686
|
+
*/
|
|
29687
|
+
get recovered() {
|
|
29688
|
+
const ret = wasm.wasmocrpagefailure_recovered(this.__wbg_ptr);
|
|
29689
|
+
return ret !== 0;
|
|
29690
|
+
}
|
|
29691
|
+
/**
|
|
29692
|
+
* @param {string} value
|
|
29693
|
+
*/
|
|
29694
|
+
set error(value) {
|
|
29695
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
29696
|
+
const len0 = WASM_VECTOR_LEN;
|
|
29697
|
+
wasm.wasmocrpagefailure_set_error(this.__wbg_ptr, ptr0, len0);
|
|
29698
|
+
}
|
|
29699
|
+
/**
|
|
29700
|
+
* @param {number} value
|
|
29701
|
+
*/
|
|
29702
|
+
set page(value) {
|
|
29703
|
+
wasm.wasmocrpagefailure_set_page(this.__wbg_ptr, value);
|
|
29704
|
+
}
|
|
29705
|
+
/**
|
|
29706
|
+
* @param {boolean} value
|
|
29707
|
+
*/
|
|
29708
|
+
set recovered(value) {
|
|
29709
|
+
wasm.wasmocrpagefailure_set_recovered(this.__wbg_ptr, value);
|
|
29710
|
+
}
|
|
29711
|
+
}
|
|
29712
|
+
if (Symbol.dispose) WasmOcrPageFailure.prototype[Symbol.dispose] = WasmOcrPageFailure.prototype.free;
|
|
29713
|
+
|
|
29546
29714
|
/**
|
|
29547
29715
|
* Multi-backend OCR pipeline with quality-based fallback.
|
|
29548
29716
|
*
|
|
@@ -31765,6 +31933,13 @@ export class WasmPageConfig {
|
|
|
31765
31933
|
const ret = wasm.wasmpageconfig_insertPageMarkers(this.__wbg_ptr);
|
|
31766
31934
|
return ret !== 0;
|
|
31767
31935
|
}
|
|
31936
|
+
/**
|
|
31937
|
+
* @returns {boolean}
|
|
31938
|
+
*/
|
|
31939
|
+
get keepNativeContent() {
|
|
31940
|
+
const ret = wasm.wasmpageconfig_keepNativeContent(this.__wbg_ptr);
|
|
31941
|
+
return ret !== 0;
|
|
31942
|
+
}
|
|
31768
31943
|
/**
|
|
31769
31944
|
* @returns {string}
|
|
31770
31945
|
*/
|
|
@@ -31784,11 +31959,12 @@ export class WasmPageConfig {
|
|
|
31784
31959
|
* @param {boolean | null} [extractPages]
|
|
31785
31960
|
* @param {boolean | null} [insertPageMarkers]
|
|
31786
31961
|
* @param {string | null} [markerFormat]
|
|
31962
|
+
* @param {boolean | null} [keepNativeContent]
|
|
31787
31963
|
*/
|
|
31788
|
-
constructor(extractPages, insertPageMarkers, markerFormat) {
|
|
31964
|
+
constructor(extractPages, insertPageMarkers, markerFormat, keepNativeContent) {
|
|
31789
31965
|
var ptr0 = isLikeNone(markerFormat) ? 0 : passStringToWasm0(markerFormat, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
31790
31966
|
var len0 = WASM_VECTOR_LEN;
|
|
31791
|
-
const ret = wasm.wasmpageconfig_new(isLikeNone(extractPages) ? 0xFFFFFF : extractPages ? 1 : 0, isLikeNone(insertPageMarkers) ? 0xFFFFFF : insertPageMarkers ? 1 : 0, ptr0, len0);
|
|
31967
|
+
const ret = wasm.wasmpageconfig_new(isLikeNone(extractPages) ? 0xFFFFFF : extractPages ? 1 : 0, isLikeNone(insertPageMarkers) ? 0xFFFFFF : insertPageMarkers ? 1 : 0, ptr0, len0, isLikeNone(keepNativeContent) ? 0xFFFFFF : keepNativeContent ? 1 : 0);
|
|
31792
31968
|
this.__wbg_ptr = ret;
|
|
31793
31969
|
WasmPageConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
31794
31970
|
return this;
|
|
@@ -31805,6 +31981,12 @@ export class WasmPageConfig {
|
|
|
31805
31981
|
set insertPageMarkers(value) {
|
|
31806
31982
|
wasm.wasmpageconfig_set_insertPageMarkers(this.__wbg_ptr, value);
|
|
31807
31983
|
}
|
|
31984
|
+
/**
|
|
31985
|
+
* @param {boolean} value
|
|
31986
|
+
*/
|
|
31987
|
+
set keepNativeContent(value) {
|
|
31988
|
+
wasm.wasmpageconfig_set_keepNativeContent(this.__wbg_ptr, value);
|
|
31989
|
+
}
|
|
31808
31990
|
/**
|
|
31809
31991
|
* @param {string} value
|
|
31810
31992
|
*/
|
|
@@ -31946,6 +32128,18 @@ export class WasmPageContent {
|
|
|
31946
32128
|
const ret = wasm.wasmpagecontent_layoutRegions(this.__wbg_ptr);
|
|
31947
32129
|
return ret;
|
|
31948
32130
|
}
|
|
32131
|
+
/**
|
|
32132
|
+
* @returns {string | undefined}
|
|
32133
|
+
*/
|
|
32134
|
+
get nativeContent() {
|
|
32135
|
+
const ret = wasm.wasmpagecontent_nativeContent(this.__wbg_ptr);
|
|
32136
|
+
let v1;
|
|
32137
|
+
if (ret[0] !== 0) {
|
|
32138
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
32139
|
+
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
32140
|
+
}
|
|
32141
|
+
return v1;
|
|
32142
|
+
}
|
|
31949
32143
|
/**
|
|
31950
32144
|
* Takes ownership of `imagePreprocessing`, `hierarchy`, `ocrConfidence`.
|
|
31951
32145
|
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
@@ -31967,8 +32161,9 @@ export class WasmPageContent {
|
|
|
31967
32161
|
* @param {string | null} [sectionName]
|
|
31968
32162
|
* @param {string | null} [sheetName]
|
|
31969
32163
|
* @param {WasmPageOcrConfidence | null} [ocrConfidence]
|
|
32164
|
+
* @param {string | null} [nativeContent]
|
|
31970
32165
|
*/
|
|
31971
|
-
constructor(pageNumber, content, tables, imageIndices, imagePreprocessing, hierarchy, isBlank, layoutRegions, speakerNotes, sectionName, sheetName, ocrConfidence) {
|
|
32166
|
+
constructor(pageNumber, content, tables, imageIndices, imagePreprocessing, hierarchy, isBlank, layoutRegions, speakerNotes, sectionName, sheetName, ocrConfidence, nativeContent) {
|
|
31972
32167
|
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
31973
32168
|
const len0 = WASM_VECTOR_LEN;
|
|
31974
32169
|
const ptr1 = passArrayJsValueToWasm0(tables, wasm.__wbindgen_malloc_command_export);
|
|
@@ -31998,7 +32193,9 @@ export class WasmPageContent {
|
|
|
31998
32193
|
_assertClass(ocrConfidence, WasmPageOcrConfidence);
|
|
31999
32194
|
ptr9 = ocrConfidence.__destroy_into_raw();
|
|
32000
32195
|
}
|
|
32001
|
-
|
|
32196
|
+
var ptr10 = isLikeNone(nativeContent) ? 0 : passStringToWasm0(nativeContent, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
32197
|
+
var len10 = WASM_VECTOR_LEN;
|
|
32198
|
+
const ret = wasm.wasmpagecontent_new(pageNumber, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, isLikeNone(isBlank) ? 0xFFFFFF : isBlank ? 1 : 0, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, ptr9, ptr10, len10);
|
|
32002
32199
|
this.__wbg_ptr = ret;
|
|
32003
32200
|
WasmPageContentFinalization.register(this, this.__wbg_ptr, this);
|
|
32004
32201
|
return this;
|
|
@@ -32080,6 +32277,14 @@ export class WasmPageContent {
|
|
|
32080
32277
|
var len0 = WASM_VECTOR_LEN;
|
|
32081
32278
|
wasm.wasmpagecontent_set_layoutRegions(this.__wbg_ptr, ptr0, len0);
|
|
32082
32279
|
}
|
|
32280
|
+
/**
|
|
32281
|
+
* @param {string | null} [value]
|
|
32282
|
+
*/
|
|
32283
|
+
set nativeContent(value) {
|
|
32284
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
32285
|
+
var len0 = WASM_VECTOR_LEN;
|
|
32286
|
+
wasm.wasmpagecontent_set_nativeContent(this.__wbg_ptr, ptr0, len0);
|
|
32287
|
+
}
|
|
32083
32288
|
/**
|
|
32084
32289
|
* @param {WasmPageOcrConfidence} value
|
|
32085
32290
|
*/
|
|
@@ -46151,7 +46356,7 @@ function __wbg_get_imports() {
|
|
|
46151
46356
|
const a = state0.a;
|
|
46152
46357
|
state0.a = 0;
|
|
46153
46358
|
try {
|
|
46154
|
-
return
|
|
46359
|
+
return wasm_bindgen__convert__closures_____invoke__h1697dacc3af5e769(a, state0.b, arg0, arg1);
|
|
46155
46360
|
} finally {
|
|
46156
46361
|
state0.a = a;
|
|
46157
46362
|
}
|
|
@@ -46311,7 +46516,7 @@ function __wbg_get_imports() {
|
|
|
46311
46516
|
const ret = arg0.value;
|
|
46312
46517
|
return ret;
|
|
46313
46518
|
},
|
|
46314
|
-
|
|
46519
|
+
__wbg_warn_b222f740e9ddf70d: function(arg0, arg1) {
|
|
46315
46520
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
46316
46521
|
},
|
|
46317
46522
|
__wbg_wasmarchiveentry_new: function(arg0) {
|
|
@@ -46682,6 +46887,14 @@ function __wbg_get_imports() {
|
|
|
46682
46887
|
const ret = WasmOcrElement.__unwrap(arg0);
|
|
46683
46888
|
return ret;
|
|
46684
46889
|
},
|
|
46890
|
+
__wbg_wasmocrpagefailure_new: function(arg0) {
|
|
46891
|
+
const ret = WasmOcrPageFailure.__wrap(arg0);
|
|
46892
|
+
return ret;
|
|
46893
|
+
},
|
|
46894
|
+
__wbg_wasmocrpagefailure_unwrap: function(arg0) {
|
|
46895
|
+
const ret = WasmOcrPageFailure.__unwrap(arg0);
|
|
46896
|
+
return ret;
|
|
46897
|
+
},
|
|
46685
46898
|
__wbg_wasmocrpipelinestage_new: function(arg0) {
|
|
46686
46899
|
const ret = WasmOcrPipelineStage.__wrap(arg0);
|
|
46687
46900
|
return ret;
|
|
@@ -46883,13 +47096,13 @@ function __wbg_get_imports() {
|
|
|
46883
47096
|
return ret;
|
|
46884
47097
|
},
|
|
46885
47098
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
46886
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
46887
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
47099
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 684, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
47100
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hcbfea0afcfcd2f5c);
|
|
46888
47101
|
return ret;
|
|
46889
47102
|
},
|
|
46890
47103
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
46891
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
46892
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
47104
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1131, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
47105
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h697ad9e8f3481d94);
|
|
46893
47106
|
return ret;
|
|
46894
47107
|
},
|
|
46895
47108
|
__wbindgen_generic_0000000000000003: function(arg0) {
|
|
@@ -46957,19 +47170,19 @@ function __wbg_get_imports() {
|
|
|
46957
47170
|
};
|
|
46958
47171
|
}
|
|
46959
47172
|
|
|
46960
|
-
function
|
|
46961
|
-
wasm.
|
|
47173
|
+
function wasm_bindgen__convert__closures_____invoke__h697ad9e8f3481d94(arg0, arg1) {
|
|
47174
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h697ad9e8f3481d94(arg0, arg1);
|
|
46962
47175
|
}
|
|
46963
47176
|
|
|
46964
|
-
function
|
|
46965
|
-
const ret = wasm.
|
|
47177
|
+
function wasm_bindgen__convert__closures_____invoke__hcbfea0afcfcd2f5c(arg0, arg1, arg2) {
|
|
47178
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hcbfea0afcfcd2f5c(arg0, arg1, arg2);
|
|
46966
47179
|
if (ret[1]) {
|
|
46967
47180
|
throw takeFromExternrefTable0(ret[0]);
|
|
46968
47181
|
}
|
|
46969
47182
|
}
|
|
46970
47183
|
|
|
46971
|
-
function
|
|
46972
|
-
wasm.
|
|
47184
|
+
function wasm_bindgen__convert__closures_____invoke__h1697dacc3af5e769(arg0, arg1, arg2, arg3) {
|
|
47185
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1697dacc3af5e769(arg0, arg1, arg2, arg3);
|
|
46973
47186
|
}
|
|
46974
47187
|
|
|
46975
47188
|
|
|
@@ -47445,6 +47658,9 @@ const WasmOcrExtractionResultFinalization = (typeof FinalizationRegistry === 'un
|
|
|
47445
47658
|
const WasmOcrMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
47446
47659
|
? { register: () => {}, unregister: () => {} }
|
|
47447
47660
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrmetadata_free(ptr, 1));
|
|
47661
|
+
const WasmOcrPageFailureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
47662
|
+
? { register: () => {}, unregister: () => {} }
|
|
47663
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrpagefailure_free(ptr, 1));
|
|
47448
47664
|
const WasmOcrPipelineConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
47449
47665
|
? { register: () => {}, unregister: () => {} }
|
|
47450
47666
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrpipelineconfig_free(ptr, 1));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/pkg/web/xberg_wasm_bg.wasm
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 38155686 bytes
|
|
4
|
+
sha256: 36d9eac1ba5c078a3fe66b091f9385701ed3b0608f1d2db549c990a3d9886001
|
|
@@ -155,6 +155,7 @@ export const __wbg_wasmocrelement_free: (a: number, b: number) => void;
|
|
|
155
155
|
export const __wbg_wasmocrelementconfig_free: (a: number, b: number) => void;
|
|
156
156
|
export const __wbg_wasmocrextractionresult_free: (a: number, b: number) => void;
|
|
157
157
|
export const __wbg_wasmocrmetadata_free: (a: number, b: number) => void;
|
|
158
|
+
export const __wbg_wasmocrpagefailure_free: (a: number, b: number) => void;
|
|
158
159
|
export const __wbg_wasmocrpipelineconfig_free: (a: number, b: number) => void;
|
|
159
160
|
export const __wbg_wasmocrpipelinestage_free: (a: number, b: number) => void;
|
|
160
161
|
export const __wbg_wasmocrpoint_free: (a: number, b: number) => void;
|
|
@@ -1508,8 +1509,9 @@ export const wasmextracteddocument_images: (a: number) => any;
|
|
|
1508
1509
|
export const wasmextracteddocument_llmUsage: (a: number) => any;
|
|
1509
1510
|
export const wasmextracteddocument_metadata: (a: number) => number;
|
|
1510
1511
|
export const wasmextracteddocument_mimeType: (a: number) => [number, number];
|
|
1511
|
-
export const wasmextracteddocument_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number) => number;
|
|
1512
|
+
export const wasmextracteddocument_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number, c2: number, d2: number) => number;
|
|
1512
1513
|
export const wasmextracteddocument_ocrElements: (a: number) => any;
|
|
1514
|
+
export const wasmextracteddocument_ocrPageFailures: (a: number) => any;
|
|
1513
1515
|
export const wasmextracteddocument_pageClassifications: (a: number) => any;
|
|
1514
1516
|
export const wasmextracteddocument_pages: (a: number) => any;
|
|
1515
1517
|
export const wasmextracteddocument_processingWarnings: (a: number) => [number, number];
|
|
@@ -1537,6 +1539,7 @@ export const wasmextracteddocument_set_llmUsage: (a: number, b: number, c: numbe
|
|
|
1537
1539
|
export const wasmextracteddocument_set_metadata: (a: number, b: number) => void;
|
|
1538
1540
|
export const wasmextracteddocument_set_mimeType: (a: number, b: number, c: number) => void;
|
|
1539
1541
|
export const wasmextracteddocument_set_ocrElements: (a: number, b: number, c: number) => void;
|
|
1542
|
+
export const wasmextracteddocument_set_ocrPageFailures: (a: number, b: number, c: number) => void;
|
|
1540
1543
|
export const wasmextracteddocument_set_pageClassifications: (a: number, b: number, c: number) => void;
|
|
1541
1544
|
export const wasmextracteddocument_set_pages: (a: number, b: number, c: number) => void;
|
|
1542
1545
|
export const wasmextracteddocument_set_processingWarnings: (a: number, b: number, c: number) => void;
|
|
@@ -1702,7 +1705,7 @@ export const wasmextractionconfig_mimeDetectionPolicy: (a: number) => [number, n
|
|
|
1702
1705
|
export const wasmextractionconfig_needsImageData: (a: number) => number;
|
|
1703
1706
|
export const wasmextractionconfig_needsImageProcessing: (a: number) => number;
|
|
1704
1707
|
export const wasmextractionconfig_ner: (a: number) => number;
|
|
1705
|
-
export const wasmextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1:
|
|
1708
|
+
export const wasmextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: bigint, k1: number, l1: number, m1: number, n1: bigint, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: bigint, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number, c2: number, d2: number, e2: number, f2: number, g2: number, h2: number) => number;
|
|
1706
1709
|
export const wasmextractionconfig_ocr: (a: number) => number;
|
|
1707
1710
|
export const wasmextractionconfig_ocrEmbeddedImages: (a: number) => number;
|
|
1708
1711
|
export const wasmextractionconfig_ocrNearEmptyFallback: (a: number) => number;
|
|
@@ -1763,6 +1766,7 @@ export const wasmextractionconfig_set_qrCodes: (a: number, b: number) => void;
|
|
|
1763
1766
|
export const wasmextractionconfig_set_redaction: (a: number, b: number) => void;
|
|
1764
1767
|
export const wasmextractionconfig_set_resultFormat: (a: number, b: number) => void;
|
|
1765
1768
|
export const wasmextractionconfig_set_securityLimits: (a: number, b: number) => void;
|
|
1769
|
+
export const wasmextractionconfig_set_strictParse: (a: number, b: number) => void;
|
|
1766
1770
|
export const wasmextractionconfig_set_structuredExtraction: (a: number, b: number) => void;
|
|
1767
1771
|
export const wasmextractionconfig_set_summarization: (a: number, b: number) => void;
|
|
1768
1772
|
export const wasmextractionconfig_set_tableAnchors: (a: number, b: number) => void;
|
|
@@ -1772,6 +1776,7 @@ export const wasmextractionconfig_set_translation: (a: number, b: number) => voi
|
|
|
1772
1776
|
export const wasmextractionconfig_set_url: (a: number, b: number) => void;
|
|
1773
1777
|
export const wasmextractionconfig_set_useCache: (a: number, b: number) => void;
|
|
1774
1778
|
export const wasmextractionconfig_set_useLayoutForMarkdown: (a: number, b: number) => void;
|
|
1779
|
+
export const wasmextractionconfig_strictParse: (a: number) => number;
|
|
1775
1780
|
export const wasmextractionconfig_structuredExtraction: (a: number) => number;
|
|
1776
1781
|
export const wasmextractionconfig_summarization: (a: number) => number;
|
|
1777
1782
|
export const wasmextractionconfig_tableAnchors: (a: number) => number;
|
|
@@ -1878,7 +1883,7 @@ export const wasmfileextractionconfig_languageDetection: (a: number) => number;
|
|
|
1878
1883
|
export const wasmfileextractionconfig_layout: (a: number) => number;
|
|
1879
1884
|
export const wasmfileextractionconfig_mimeDetectionPolicy: (a: number) => [number, number];
|
|
1880
1885
|
export const wasmfileextractionconfig_ner: (a: number) => number;
|
|
1881
|
-
export const wasmfileextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z:
|
|
1886
|
+
export const wasmfileextractionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: bigint, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number) => number;
|
|
1882
1887
|
export const wasmfileextractionconfig_ocr: (a: number) => number;
|
|
1883
1888
|
export const wasmfileextractionconfig_ocrStrategy: (a: number) => any;
|
|
1884
1889
|
export const wasmfileextractionconfig_outputFormat: (a: number) => any;
|
|
@@ -1916,6 +1921,7 @@ export const wasmfileextractionconfig_set_postprocessor: (a: number, b: number)
|
|
|
1916
1921
|
export const wasmfileextractionconfig_set_qrCodes: (a: number, b: number) => void;
|
|
1917
1922
|
export const wasmfileextractionconfig_set_redaction: (a: number, b: number) => void;
|
|
1918
1923
|
export const wasmfileextractionconfig_set_resultFormat: (a: number, b: number) => void;
|
|
1924
|
+
export const wasmfileextractionconfig_set_strictParse: (a: number, b: number) => void;
|
|
1919
1925
|
export const wasmfileextractionconfig_set_structuredExtraction: (a: number, b: number) => void;
|
|
1920
1926
|
export const wasmfileextractionconfig_set_summarization: (a: number, b: number) => void;
|
|
1921
1927
|
export const wasmfileextractionconfig_set_timeoutSecs: (a: number, b: number, c: bigint) => void;
|
|
@@ -1923,6 +1929,7 @@ export const wasmfileextractionconfig_set_tokenReduction: (a: number, b: number)
|
|
|
1923
1929
|
export const wasmfileextractionconfig_set_transcription: (a: number, b: number) => void;
|
|
1924
1930
|
export const wasmfileextractionconfig_set_translation: (a: number, b: number) => void;
|
|
1925
1931
|
export const wasmfileextractionconfig_set_url: (a: number, b: number) => void;
|
|
1932
|
+
export const wasmfileextractionconfig_strictParse: (a: number) => number;
|
|
1926
1933
|
export const wasmfileextractionconfig_structuredExtraction: (a: number) => number;
|
|
1927
1934
|
export const wasmfileextractionconfig_summarization: (a: number) => number;
|
|
1928
1935
|
export const wasmfileextractionconfig_timeoutSecs: (a: number) => [number, bigint];
|
|
@@ -2926,6 +2933,15 @@ export const wasmocrmetadata_set_tableRows: (a: number, b: number) => void;
|
|
|
2926
2933
|
export const wasmocrmetadata_tableCols: (a: number) => number;
|
|
2927
2934
|
export const wasmocrmetadata_tableCount: (a: number) => number;
|
|
2928
2935
|
export const wasmocrmetadata_tableRows: (a: number) => number;
|
|
2936
|
+
export const wasmocrpagefailure_copyForTransfer: (a: number) => number;
|
|
2937
|
+
export const wasmocrpagefailure_default: () => number;
|
|
2938
|
+
export const wasmocrpagefailure_error: (a: number) => [number, number];
|
|
2939
|
+
export const wasmocrpagefailure_new: (a: number, b: number, c: number, d: number) => number;
|
|
2940
|
+
export const wasmocrpagefailure_page: (a: number) => number;
|
|
2941
|
+
export const wasmocrpagefailure_recovered: (a: number) => number;
|
|
2942
|
+
export const wasmocrpagefailure_set_error: (a: number, b: number, c: number) => void;
|
|
2943
|
+
export const wasmocrpagefailure_set_page: (a: number, b: number) => void;
|
|
2944
|
+
export const wasmocrpagefailure_set_recovered: (a: number, b: number) => void;
|
|
2929
2945
|
export const wasmocrpipelineconfig_copyForTransfer: (a: number) => number;
|
|
2930
2946
|
export const wasmocrpipelineconfig_default: () => number;
|
|
2931
2947
|
export const wasmocrpipelineconfig_new: (a: number, b: number, c: number) => number;
|
|
@@ -3134,10 +3150,12 @@ export const wasmpageconfig_copyForTransfer: (a: number) => number;
|
|
|
3134
3150
|
export const wasmpageconfig_default: () => number;
|
|
3135
3151
|
export const wasmpageconfig_extractPages: (a: number) => number;
|
|
3136
3152
|
export const wasmpageconfig_insertPageMarkers: (a: number) => number;
|
|
3153
|
+
export const wasmpageconfig_keepNativeContent: (a: number) => number;
|
|
3137
3154
|
export const wasmpageconfig_markerFormat: (a: number) => [number, number];
|
|
3138
|
-
export const wasmpageconfig_new: (a: number, b: number, c: number, d: number) => number;
|
|
3155
|
+
export const wasmpageconfig_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
3139
3156
|
export const wasmpageconfig_set_extractPages: (a: number, b: number) => void;
|
|
3140
3157
|
export const wasmpageconfig_set_insertPageMarkers: (a: number, b: number) => void;
|
|
3158
|
+
export const wasmpageconfig_set_keepNativeContent: (a: number, b: number) => void;
|
|
3141
3159
|
export const wasmpageconfig_set_markerFormat: (a: number, b: number, c: number) => void;
|
|
3142
3160
|
export const wasmpagecontent_clearHierarchy: (a: number) => void;
|
|
3143
3161
|
export const wasmpagecontent_clearImagePreprocessing: (a: number) => void;
|
|
@@ -3150,7 +3168,8 @@ export const wasmpagecontent_imageIndices: (a: number) => [number, number];
|
|
|
3150
3168
|
export const wasmpagecontent_imagePreprocessing: (a: number) => number;
|
|
3151
3169
|
export const wasmpagecontent_isBlank: (a: number) => number;
|
|
3152
3170
|
export const wasmpagecontent_layoutRegions: (a: number) => any;
|
|
3153
|
-
export const
|
|
3171
|
+
export const wasmpagecontent_nativeContent: (a: number) => [number, number];
|
|
3172
|
+
export const wasmpagecontent_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => number;
|
|
3154
3173
|
export const wasmpagecontent_ocrConfidence: (a: number) => number;
|
|
3155
3174
|
export const wasmpagecontent_pageNumber: (a: number) => number;
|
|
3156
3175
|
export const wasmpagecontent_sectionName: (a: number) => [number, number];
|
|
@@ -3160,6 +3179,7 @@ export const wasmpagecontent_set_imageIndices: (a: number, b: number, c: number)
|
|
|
3160
3179
|
export const wasmpagecontent_set_imagePreprocessing: (a: number, b: number) => void;
|
|
3161
3180
|
export const wasmpagecontent_set_isBlank: (a: number, b: number) => void;
|
|
3162
3181
|
export const wasmpagecontent_set_layoutRegions: (a: number, b: number, c: number) => void;
|
|
3182
|
+
export const wasmpagecontent_set_nativeContent: (a: number, b: number, c: number) => void;
|
|
3163
3183
|
export const wasmpagecontent_set_ocrConfidence: (a: number, b: number) => void;
|
|
3164
3184
|
export const wasmpagecontent_set_pageNumber: (a: number, b: number) => void;
|
|
3165
3185
|
export const wasmpagecontent_set_sectionName: (a: number, b: number, c: number) => void;
|
|
@@ -3872,10 +3892,6 @@ export const wasmsparseembeddingpreset_set_name: (a: number, b: number, c: numbe
|
|
|
3872
3892
|
export const wasmssrfpolicy_allowlist: (a: number) => any;
|
|
3873
3893
|
export const wasmssrfpolicy_copyForTransfer: (a: number) => number;
|
|
3874
3894
|
export const wasmssrfpolicy_default: () => number;
|
|
3875
|
-
export const wasmssrfpolicy_denyPrivate: (a: number) => number;
|
|
3876
|
-
export const wasmssrfpolicy_denylist: (a: number) => any;
|
|
3877
|
-
export const wasmssrfpolicy_maxRedirects: (a: number) => number;
|
|
3878
|
-
export const wasmssrfpolicy_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
3879
3895
|
export const qcms_profile_precache_output_transform: (a: number) => void;
|
|
3880
3896
|
export const lut_inverse_interp16: (a: number, b: number, c: number) => number;
|
|
3881
3897
|
export const lut_interp_linear16: (a: number, b: number, c: number) => number;
|
|
@@ -3888,9 +3904,13 @@ export const qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c
|
|
|
3888
3904
|
export const qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
|
|
3889
3905
|
export const qcms_profile_is_bogus: (a: number) => number;
|
|
3890
3906
|
export const qcms_transform_release: (a: number) => void;
|
|
3907
|
+
export const wasmssrfpolicy_denyPrivate: (a: number) => number;
|
|
3908
|
+
export const wasmssrfpolicy_denylist: (a: number) => any;
|
|
3909
|
+
export const __cxa_atexit: (a: number, b: number, c: number) => number;
|
|
3910
|
+
export const wasmssrfpolicy_maxRedirects: (a: number) => number;
|
|
3911
|
+
export const wasmssrfpolicy_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
3891
3912
|
export const wasmssrfpolicy_schemeAllowlist: (a: number) => [number, number];
|
|
3892
3913
|
export const wasmssrfpolicy_set_allowlist: (a: number, b: any) => void;
|
|
3893
|
-
export const __cxa_atexit: (a: number, b: number, c: number) => number;
|
|
3894
3914
|
export const wasmssrfpolicy_set_denyPrivate: (a: number, b: number) => void;
|
|
3895
3915
|
export const wasmssrfpolicy_set_denylist: (a: number, b: any) => void;
|
|
3896
3916
|
export const wasmssrfpolicy_set_maxRedirects: (a: number, b: number) => void;
|
|
@@ -4267,9 +4287,9 @@ export const xbergengine_ner: (a: number, b: number, c: number, d: any) => any;
|
|
|
4267
4287
|
export const xbergengine_new: (a: any, b: any) => [number, number, number];
|
|
4268
4288
|
export const qcms_enable_iccv4: () => void;
|
|
4269
4289
|
export const xbergengine_ocr: (a: number, b: number, c: number, d: any) => any;
|
|
4270
|
-
export const
|
|
4271
|
-
export const
|
|
4272
|
-
export const
|
|
4290
|
+
export const wasm_bindgen__convert__closures_____invoke__h1697dacc3af5e769: (a: number, b: number, c: any, d: any) => void;
|
|
4291
|
+
export const wasm_bindgen__convert__closures_____invoke__hcbfea0afcfcd2f5c: (a: number, b: number, c: any) => [number, number];
|
|
4292
|
+
export const wasm_bindgen__convert__closures_____invoke__h697ad9e8f3481d94: (a: number, b: number) => void;
|
|
4273
4293
|
export const __wbindgen_malloc_command_export: (a: number, b: number) => number;
|
|
4274
4294
|
export const __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
|
|
4275
4295
|
export const __wbindgen_exn_store_command_export: (a: number) => void;
|