@xberg-io/xberg-wasm 1.2.3 → 1.2.6
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 +1 -1
- package/pkg/web/package.json +1 -1
- package/pkg/web/xberg_wasm.d.ts +76 -16
- package/pkg/web/xberg_wasm.js +161 -27
- package/pkg/web/xberg_wasm_bg.wasm +2 -2
- package/pkg/web/xberg_wasm_bg.wasm.d.ts +18 -6
package/package.json
CHANGED
package/pkg/web/package.json
CHANGED
package/pkg/web/xberg_wasm.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export interface WasmPdfMetadataCamelWire {
|
|
|
10
10
|
pageCount: number | undefined;
|
|
11
11
|
scannedConfidence: number | undefined;
|
|
12
12
|
scannedPages: number[] | undefined;
|
|
13
|
+
fabricatedTextPages: number[] | undefined;
|
|
14
|
+
implausibleTextPages: number[] | undefined;
|
|
13
15
|
layoutGatedPages: number[] | undefined;
|
|
14
16
|
layoutGateReasons: string[] | undefined;
|
|
15
17
|
}
|
|
@@ -2491,11 +2493,21 @@ export class WasmExtractionConfig {
|
|
|
2491
2493
|
* For text-only extractions (no OCR, no image extraction), skipping image
|
|
2492
2494
|
* decompression can improve CPU utilization by 5-10% by avoiding wasteful
|
|
2493
2495
|
* image I/O and processing when results won't be used.
|
|
2494
|
-
* Returns `true` when
|
|
2496
|
+
* Returns `true` when a CONTAINER document (DOCX, PPT, PPTX, HTML, ...) needs
|
|
2497
|
+
* to read an embedded image's binary data out of its archive or source.
|
|
2495
2498
|
*
|
|
2496
|
-
* True when `config.images.extract_images` is set, captioning is configured,
|
|
2497
|
-
* detection is enabled
|
|
2498
|
-
* regardless of whether the caller also requested
|
|
2499
|
+
* True when `config.images.extract_images` is set, captioning is configured, QR-code
|
|
2500
|
+
* detection is enabled, or embedded images get OCR'd. All four consume the bytes:
|
|
2501
|
+
* captioning and QR-code detection regardless of whether the caller also requested
|
|
2502
|
+
* image extraction, and embedded-image OCR because the OCR path reads the same bytes
|
|
2503
|
+
* the container would otherwise skip (GH#1662): before the OCR disjunct existed, a
|
|
2504
|
+
* container asked this question, was told no, and attached an image with an empty
|
|
2505
|
+
* buffer, which OCR then ran on and reported `Could not determine image format`.
|
|
2506
|
+
*
|
|
2507
|
+
* This governs whether a CONTAINER reads bytes it does not otherwise have. A
|
|
2508
|
+
* standalone image extractor already holds the whole file's bytes regardless of this
|
|
2509
|
+
* answer, so it must not use this method to decide whether to put its OWN bytes in the
|
|
2510
|
+
* result's `images` array; that is `wants_own_bytes_in_result`.
|
|
2499
2511
|
*/
|
|
2500
2512
|
needsImageData(): boolean;
|
|
2501
2513
|
/**
|
|
@@ -2509,6 +2521,18 @@ export class WasmExtractionConfig {
|
|
|
2509
2521
|
*/
|
|
2510
2522
|
needsImageProcessing(): boolean;
|
|
2511
2523
|
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, 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);
|
|
2524
|
+
/**
|
|
2525
|
+
* Whether embedded images get OCR'd.
|
|
2526
|
+
*
|
|
2527
|
+
* This mirrors the condition the pipeline itself uses before it calls
|
|
2528
|
+
* `image_ocr.process_images_with_ocr` (`core/pipeline/mod.rs`), and it is
|
|
2529
|
+
* deliberately the same predicate rather than an equivalent one: when the
|
|
2530
|
+
* two drifted apart, a container extractor asked `needs_image_data` and was
|
|
2531
|
+
* told no, so it attached an image with an empty buffer, and the OCR path
|
|
2532
|
+
* then ran on those zero bytes and reported `Could not determine image
|
|
2533
|
+
* format` (GH#1662).
|
|
2534
|
+
*/
|
|
2535
|
+
runsOcrOnEmbeddedImages(): boolean;
|
|
2512
2536
|
/**
|
|
2513
2537
|
* Validate the configuration, returning an error if any settings are invalid.
|
|
2514
2538
|
*
|
|
@@ -2538,6 +2562,21 @@ export class WasmExtractionConfig {
|
|
|
2538
2562
|
* Returns `XbergError.Validation` describing the first invalid setting found.
|
|
2539
2563
|
*/
|
|
2540
2564
|
validate(): void;
|
|
2565
|
+
/**
|
|
2566
|
+
* Returns `true` when a standalone image extraction (the whole input document IS
|
|
2567
|
+
* the image, not a container's embedded picture) should attach its own already-read
|
|
2568
|
+
* bytes to the result's `images` array.
|
|
2569
|
+
*
|
|
2570
|
+
* Deliberately narrower than `needs_image_data`: a standalone
|
|
2571
|
+
* image's content is read in full before this question is ever asked, whether or not OCR
|
|
2572
|
+
* runs, so OCR being configured is not by itself a reason to echo those bytes back in the
|
|
2573
|
+
* public output. Using `needs_image_data` here (as `needs_image_data`'s own OCR disjunct
|
|
2574
|
+
* briefly did) would silently start returning every OCR'd standalone image's raw bytes in
|
|
2575
|
+
* `images`, a public output contract change with nothing asking for it. Same three
|
|
2576
|
+
* conditions as before that disjunct existed: explicit image extraction, captioning, or
|
|
2577
|
+
* QR-code detection.
|
|
2578
|
+
*/
|
|
2579
|
+
wantsOwnBytesInResult(): boolean;
|
|
2541
2580
|
get acceleration(): WasmAccelerationConfig | undefined;
|
|
2542
2581
|
set acceleration(value: WasmAccelerationConfig | null | undefined);
|
|
2543
2582
|
applyNotebookCellTags: boolean;
|
|
@@ -3867,7 +3906,7 @@ export class WasmLlmConfig {
|
|
|
3867
3906
|
free(): void;
|
|
3868
3907
|
[Symbol.dispose](): void;
|
|
3869
3908
|
static default(): WasmLlmConfig;
|
|
3870
|
-
constructor(model?: string | null, apiKey?: string | null, baseUrl?: string | null, timeoutSecs?: bigint | null, maxRetries?: number | null, temperature?: number | null, maxTokens?: bigint | null, topP?: number | null, stop?: string[] | null, seed?: bigint | null, presencePenalty?: number | null, frequencyPenalty?: number | null, reasoningEffort?: string | null, extraBody?: any | null, loadEnv?: boolean | null, headers?: any | null, providers?: WasmLlmProviderConfig[] | null, cache?: WasmLlmCacheConfig | null, budget?: WasmLlmBudgetConfig | null, rateLimit?: WasmLlmRateLimitConfig | null, costTracking?: boolean | null, tracing?: boolean | null, cooldownSecs?: bigint | null, healthCheckSecs?: bigint | null, bedrock?: WasmBedrockConfig | null, credentialProvider?: any | null, maxConcurrency?: number | null);
|
|
3909
|
+
constructor(model?: string | null, apiKey?: string | null, baseUrl?: string | null, timeoutSecs?: bigint | null, maxRetries?: number | null, temperature?: number | null, maxTokens?: bigint | null, topP?: number | null, stop?: string[] | null, seed?: bigint | null, presencePenalty?: number | null, frequencyPenalty?: number | null, reasoningEffort?: string | null, extraBody?: any | null, loadEnv?: boolean | null, headers?: any | null, providers?: WasmLlmProviderConfig[] | null, cache?: WasmLlmCacheConfig | null, budget?: WasmLlmBudgetConfig | null, rateLimit?: WasmLlmRateLimitConfig | null, costTracking?: boolean | null, tracing?: boolean | null, cooldownSecs?: bigint | null, healthCheckSecs?: bigint | null, bedrock?: WasmBedrockConfig | null, credentialProvider?: any | null, maxConcurrency?: number | null, maxResponseBytes?: number | null);
|
|
3871
3910
|
/**
|
|
3872
3911
|
* Validate the request-time sampling parameters that have a documented range:
|
|
3873
3912
|
* `top_p` (`[0.0, 1.0]`), `presence_penalty`, and `frequency_penalty` (both
|
|
@@ -3907,6 +3946,8 @@ export class WasmLlmConfig {
|
|
|
3907
3946
|
set loadEnv(value: boolean | null | undefined);
|
|
3908
3947
|
get maxConcurrency(): number | undefined;
|
|
3909
3948
|
set maxConcurrency(value: number | null | undefined);
|
|
3949
|
+
get maxResponseBytes(): number | undefined;
|
|
3950
|
+
set maxResponseBytes(value: number | null | undefined);
|
|
3910
3951
|
get maxRetries(): number | undefined;
|
|
3911
3952
|
set maxRetries(value: number | null | undefined);
|
|
3912
3953
|
get maxTokens(): bigint | undefined;
|
|
@@ -4593,10 +4634,11 @@ export class WasmOcrQualityThresholds {
|
|
|
4593
4634
|
free(): void;
|
|
4594
4635
|
[Symbol.dispose](): void;
|
|
4595
4636
|
static default(): WasmOcrQualityThresholds;
|
|
4596
|
-
constructor(minTotalNonWhitespace?: number | null, minNonWhitespacePerPage?: number | null, minMeaningfulWordLen?: number | null, minMeaningfulWords?: number | null, minAlnumRatio?: number | null, minGarbageChars?: number | null, maxFragmentedWordRatio?: number | null, criticalFragmentedWordRatio?: number | null, maxOcrOutputFragmentedWordRatio?: number | null, minOcrMeanConfidence?: number | null, minWordsForOcrOutputCheck?: number | null, maxOcrOutputDictInvalidWordRatio?: number | null, discardSuspectedOcrNoise?: boolean | null, minAvgWordLength?: number | null, minWordsForAvgLengthCheck?: number | null, minConsecutiveRepeatRatio?: number | null, minWordsForRepeatCheck?: number | null, substantiveMinChars?: number | null, nonTextMinChars?: number | null, alnumWsRatioThreshold?: number | null, pipelineMinQuality?: number | null, minUndecodableRatio?: number | null, enableProvenanceOcrRouting?: boolean | null, minProvenanceFallbackRatio?: number | null);
|
|
4637
|
+
constructor(minTotalNonWhitespace?: number | null, minNonWhitespacePerPage?: number | null, minMeaningfulWordLen?: number | null, minMeaningfulWords?: number | null, minAlnumRatio?: number | null, minGarbageChars?: number | null, maxFragmentedWordRatio?: number | null, criticalFragmentedWordRatio?: number | null, maxOcrOutputFragmentedWordRatio?: number | null, minOcrMeanConfidence?: number | null, minWordsForOcrOutputCheck?: number | null, maxOcrOutputDictInvalidWordRatio?: number | null, discardSuspectedOcrNoise?: boolean | null, minAvgWordLength?: number | null, minWordsForAvgLengthCheck?: number | null, minConsecutiveRepeatRatio?: number | null, minWordsForRepeatCheck?: number | null, substantiveMinChars?: number | null, nonTextMinChars?: number | null, alnumWsRatioThreshold?: number | null, pipelineMinQuality?: number | null, minUndecodableRatio?: number | null, enableProvenanceOcrRouting?: boolean | null, minProvenanceFallbackRatio?: number | null, enablePlausibilityOcrRouting?: boolean | null, minReliableLanguageChunkRatio?: number | null);
|
|
4597
4638
|
alnumWsRatioThreshold: number;
|
|
4598
4639
|
criticalFragmentedWordRatio: number;
|
|
4599
4640
|
discardSuspectedOcrNoise: boolean;
|
|
4641
|
+
enablePlausibilityOcrRouting: boolean;
|
|
4600
4642
|
enableProvenanceOcrRouting: boolean;
|
|
4601
4643
|
maxFragmentedWordRatio: number;
|
|
4602
4644
|
maxOcrOutputDictInvalidWordRatio: number;
|
|
@@ -4610,6 +4652,7 @@ export class WasmOcrQualityThresholds {
|
|
|
4610
4652
|
minNonWhitespacePerPage: number;
|
|
4611
4653
|
minOcrMeanConfidence: number;
|
|
4612
4654
|
minProvenanceFallbackRatio: number;
|
|
4655
|
+
minReliableLanguageChunkRatio: number;
|
|
4613
4656
|
minTotalNonWhitespace: number;
|
|
4614
4657
|
minUndecodableRatio: number;
|
|
4615
4658
|
minWordsForAvgLengthCheck: number;
|
|
@@ -5375,9 +5418,13 @@ export class WasmPdfMetadata {
|
|
|
5375
5418
|
free(): void;
|
|
5376
5419
|
[Symbol.dispose](): void;
|
|
5377
5420
|
static default(): WasmPdfMetadata;
|
|
5378
|
-
constructor(pdfVersion?: string | null, producer?: string | null, isEncrypted?: boolean | null, width?: bigint | null, height?: bigint | null, pageCount?: number | null, scannedConfidence?: number | null, scannedPages?: Uint32Array | null, layoutGatedPages?: Uint32Array | null, layoutGateReasons?: string[] | null);
|
|
5421
|
+
constructor(pdfVersion?: string | null, producer?: string | null, isEncrypted?: boolean | null, width?: bigint | null, height?: bigint | null, pageCount?: number | null, scannedConfidence?: number | null, scannedPages?: Uint32Array | null, fabricatedTextPages?: Uint32Array | null, implausibleTextPages?: Uint32Array | null, layoutGatedPages?: Uint32Array | null, layoutGateReasons?: string[] | null);
|
|
5422
|
+
get fabricatedTextPages(): Uint32Array | undefined;
|
|
5423
|
+
set fabricatedTextPages(value: Uint32Array | null | undefined);
|
|
5379
5424
|
get height(): bigint | undefined;
|
|
5380
5425
|
set height(value: bigint | null | undefined);
|
|
5426
|
+
get implausibleTextPages(): Uint32Array | undefined;
|
|
5427
|
+
set implausibleTextPages(value: Uint32Array | null | undefined);
|
|
5381
5428
|
get isEncrypted(): boolean | undefined;
|
|
5382
5429
|
set isEncrypted(value: boolean | null | undefined);
|
|
5383
5430
|
get layoutGateReasons(): string[] | undefined;
|
|
@@ -7246,9 +7293,10 @@ export function listEmbeddingBackends(): string[];
|
|
|
7246
7293
|
* # Cost
|
|
7247
7294
|
*
|
|
7248
7295
|
* Calling this is not free for every backend. In particular, `TesseractBackend`'s
|
|
7249
|
-
* `supported_languages()` allocates a Tesseract API and initializes it
|
|
7250
|
-
*
|
|
7251
|
-
* served from a
|
|
7296
|
+
* `supported_languages()` allocates a Tesseract API and initializes it against the same
|
|
7297
|
+
* tessdata directory a real OCR job resolves (`resolve_tessdata_path`), the first time it
|
|
7298
|
+
* is called, to enumerate installed tessdata languages; subsequent calls are served from a
|
|
7299
|
+
* cache.
|
|
7252
7300
|
*
|
|
7253
7301
|
* # Errors
|
|
7254
7302
|
*
|
|
@@ -8972,6 +9020,7 @@ export interface InitOutput {
|
|
|
8972
9020
|
readonly wasmextractionconfig_qrCodes: (a: number) => number;
|
|
8973
9021
|
readonly wasmextractionconfig_redaction: (a: number) => number;
|
|
8974
9022
|
readonly wasmextractionconfig_resultFormat: (a: number) => [number, number];
|
|
9023
|
+
readonly wasmextractionconfig_runsOcrOnEmbeddedImages: (a: number) => number;
|
|
8975
9024
|
readonly wasmextractionconfig_securityLimits: (a: number) => number;
|
|
8976
9025
|
readonly wasmextractionconfig_set_acceleration: (a: number, b: number) => void;
|
|
8977
9026
|
readonly wasmextractionconfig_set_applyNotebookCellTags: (a: number, b: number) => void;
|
|
@@ -9034,6 +9083,7 @@ export interface InitOutput {
|
|
|
9034
9083
|
readonly wasmextractionconfig_useCache: (a: number) => number;
|
|
9035
9084
|
readonly wasmextractionconfig_useLayoutForMarkdown: (a: number) => number;
|
|
9036
9085
|
readonly wasmextractionconfig_validate: (a: number) => [number, number];
|
|
9086
|
+
readonly wasmextractionconfig_wantsOwnBytesInResult: (a: number) => number;
|
|
9037
9087
|
readonly wasmextractionerroritem_code: (a: number) => number;
|
|
9038
9088
|
readonly wasmextractionerroritem_default: () => number;
|
|
9039
9089
|
readonly wasmextractionerroritem_errorType: (a: number) => [number, number];
|
|
@@ -9680,10 +9730,11 @@ export interface InitOutput {
|
|
|
9680
9730
|
readonly wasmllmconfig_healthCheckSecs: (a: number) => [number, bigint];
|
|
9681
9731
|
readonly wasmllmconfig_loadEnv: (a: number) => number;
|
|
9682
9732
|
readonly wasmllmconfig_maxConcurrency: (a: number) => number;
|
|
9733
|
+
readonly wasmllmconfig_maxResponseBytes: (a: number) => number;
|
|
9683
9734
|
readonly wasmllmconfig_maxRetries: (a: number) => number;
|
|
9684
9735
|
readonly wasmllmconfig_maxTokens: (a: number) => [number, bigint];
|
|
9685
9736
|
readonly wasmllmconfig_model: (a: number) => [number, number];
|
|
9686
|
-
readonly wasmllmconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: number, o: number, p: number, q: number, r: number, s: bigint, 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: bigint, l1: number, m1: bigint, n1: number, o1: number, p1: number) => number;
|
|
9737
|
+
readonly wasmllmconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: number, o: number, p: number, q: number, r: number, s: bigint, 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: bigint, l1: number, m1: bigint, n1: number, o1: number, p1: number, q1: number) => number;
|
|
9687
9738
|
readonly wasmllmconfig_presencePenalty: (a: number) => [number, number];
|
|
9688
9739
|
readonly wasmllmconfig_providers: (a: number) => any;
|
|
9689
9740
|
readonly wasmllmconfig_rateLimit: (a: number) => number;
|
|
@@ -9703,6 +9754,7 @@ export interface InitOutput {
|
|
|
9703
9754
|
readonly wasmllmconfig_set_healthCheckSecs: (a: number, b: number, c: bigint) => void;
|
|
9704
9755
|
readonly wasmllmconfig_set_loadEnv: (a: number, b: number) => void;
|
|
9705
9756
|
readonly wasmllmconfig_set_maxConcurrency: (a: number, b: number) => void;
|
|
9757
|
+
readonly wasmllmconfig_set_maxResponseBytes: (a: number, b: number) => void;
|
|
9706
9758
|
readonly wasmllmconfig_set_maxRetries: (a: number, b: number) => void;
|
|
9707
9759
|
readonly wasmllmconfig_set_maxTokens: (a: number, b: number, c: bigint) => void;
|
|
9708
9760
|
readonly wasmllmconfig_set_model: (a: number, b: number, c: number) => void;
|
|
@@ -10082,6 +10134,7 @@ export interface InitOutput {
|
|
|
10082
10134
|
readonly wasmocrqualitythresholds_criticalFragmentedWordRatio: (a: number) => number;
|
|
10083
10135
|
readonly wasmocrqualitythresholds_default: () => number;
|
|
10084
10136
|
readonly wasmocrqualitythresholds_discardSuspectedOcrNoise: (a: number) => number;
|
|
10137
|
+
readonly wasmocrqualitythresholds_enablePlausibilityOcrRouting: (a: number) => number;
|
|
10085
10138
|
readonly wasmocrqualitythresholds_enableProvenanceOcrRouting: (a: number) => number;
|
|
10086
10139
|
readonly wasmocrqualitythresholds_maxFragmentedWordRatio: (a: number) => number;
|
|
10087
10140
|
readonly wasmocrqualitythresholds_maxOcrOutputDictInvalidWordRatio: (a: number) => number;
|
|
@@ -10095,17 +10148,19 @@ export interface InitOutput {
|
|
|
10095
10148
|
readonly wasmocrqualitythresholds_minNonWhitespacePerPage: (a: number) => number;
|
|
10096
10149
|
readonly wasmocrqualitythresholds_minOcrMeanConfidence: (a: number) => number;
|
|
10097
10150
|
readonly wasmocrqualitythresholds_minProvenanceFallbackRatio: (a: number) => number;
|
|
10151
|
+
readonly wasmocrqualitythresholds_minReliableLanguageChunkRatio: (a: number) => number;
|
|
10098
10152
|
readonly wasmocrqualitythresholds_minTotalNonWhitespace: (a: number) => number;
|
|
10099
10153
|
readonly wasmocrqualitythresholds_minUndecodableRatio: (a: number) => number;
|
|
10100
10154
|
readonly wasmocrqualitythresholds_minWordsForAvgLengthCheck: (a: number) => number;
|
|
10101
10155
|
readonly wasmocrqualitythresholds_minWordsForOcrOutputCheck: (a: number) => number;
|
|
10102
10156
|
readonly wasmocrqualitythresholds_minWordsForRepeatCheck: (a: number) => number;
|
|
10103
|
-
readonly wasmocrqualitythresholds_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) => number;
|
|
10157
|
+
readonly wasmocrqualitythresholds_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) => number;
|
|
10104
10158
|
readonly wasmocrqualitythresholds_nonTextMinChars: (a: number) => number;
|
|
10105
10159
|
readonly wasmocrqualitythresholds_pipelineMinQuality: (a: number) => number;
|
|
10106
10160
|
readonly wasmocrqualitythresholds_set_alnumWsRatioThreshold: (a: number, b: number) => void;
|
|
10107
10161
|
readonly wasmocrqualitythresholds_set_criticalFragmentedWordRatio: (a: number, b: number) => void;
|
|
10108
10162
|
readonly wasmocrqualitythresholds_set_discardSuspectedOcrNoise: (a: number, b: number) => void;
|
|
10163
|
+
readonly wasmocrqualitythresholds_set_enablePlausibilityOcrRouting: (a: number, b: number) => void;
|
|
10109
10164
|
readonly wasmocrqualitythresholds_set_enableProvenanceOcrRouting: (a: number, b: number) => void;
|
|
10110
10165
|
readonly wasmocrqualitythresholds_set_maxFragmentedWordRatio: (a: number, b: number) => void;
|
|
10111
10166
|
readonly wasmocrqualitythresholds_set_maxOcrOutputDictInvalidWordRatio: (a: number, b: number) => void;
|
|
@@ -10119,6 +10174,7 @@ export interface InitOutput {
|
|
|
10119
10174
|
readonly wasmocrqualitythresholds_set_minNonWhitespacePerPage: (a: number, b: number) => void;
|
|
10120
10175
|
readonly wasmocrqualitythresholds_set_minOcrMeanConfidence: (a: number, b: number) => void;
|
|
10121
10176
|
readonly wasmocrqualitythresholds_set_minProvenanceFallbackRatio: (a: number, b: number) => void;
|
|
10177
|
+
readonly wasmocrqualitythresholds_set_minReliableLanguageChunkRatio: (a: number, b: number) => void;
|
|
10122
10178
|
readonly wasmocrqualitythresholds_set_minTotalNonWhitespace: (a: number, b: number) => void;
|
|
10123
10179
|
readonly wasmocrqualitythresholds_set_minUndecodableRatio: (a: number, b: number) => void;
|
|
10124
10180
|
readonly wasmocrqualitythresholds_set_minWordsForAvgLengthCheck: (a: number, b: number) => void;
|
|
@@ -10426,17 +10482,21 @@ export interface InitOutput {
|
|
|
10426
10482
|
readonly wasmpdfformfield_tooltip: (a: number) => [number, number];
|
|
10427
10483
|
readonly wasmpdfformfield_value: (a: number) => [number, number];
|
|
10428
10484
|
readonly wasmpdfmetadata_default: () => number;
|
|
10485
|
+
readonly wasmpdfmetadata_fabricatedTextPages: (a: number) => [number, number];
|
|
10429
10486
|
readonly wasmpdfmetadata_height: (a: number) => [number, bigint];
|
|
10487
|
+
readonly wasmpdfmetadata_implausibleTextPages: (a: number) => [number, number];
|
|
10430
10488
|
readonly wasmpdfmetadata_isEncrypted: (a: number) => number;
|
|
10431
10489
|
readonly wasmpdfmetadata_layoutGateReasons: (a: number) => [number, number];
|
|
10432
10490
|
readonly wasmpdfmetadata_layoutGatedPages: (a: number) => [number, number];
|
|
10433
|
-
readonly wasmpdfmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => number;
|
|
10491
|
+
readonly wasmpdfmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, 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;
|
|
10434
10492
|
readonly wasmpdfmetadata_pageCount: (a: number) => number;
|
|
10435
10493
|
readonly wasmpdfmetadata_pdfVersion: (a: number) => [number, number];
|
|
10436
10494
|
readonly wasmpdfmetadata_producer: (a: number) => [number, number];
|
|
10437
10495
|
readonly wasmpdfmetadata_scannedConfidence: (a: number) => number;
|
|
10438
10496
|
readonly wasmpdfmetadata_scannedPages: (a: number) => [number, number];
|
|
10497
|
+
readonly wasmpdfmetadata_set_fabricatedTextPages: (a: number, b: number, c: number) => void;
|
|
10439
10498
|
readonly wasmpdfmetadata_set_height: (a: number, b: number, c: bigint) => void;
|
|
10499
|
+
readonly wasmpdfmetadata_set_implausibleTextPages: (a: number, b: number, c: number) => void;
|
|
10440
10500
|
readonly wasmpdfmetadata_set_isEncrypted: (a: number, b: number) => void;
|
|
10441
10501
|
readonly wasmpdfmetadata_set_layoutGateReasons: (a: number, b: number, c: number) => void;
|
|
10442
10502
|
readonly wasmpdfmetadata_set_layoutGatedPages: (a: number, b: number, c: number) => void;
|
|
@@ -11260,9 +11320,9 @@ export interface InitOutput {
|
|
|
11260
11320
|
readonly xbergengine_new: (a: any, b: any) => [number, number, number];
|
|
11261
11321
|
readonly qcms_enable_iccv4: () => void;
|
|
11262
11322
|
readonly xbergengine_ocr: (a: number, b: number, c: number, d: any) => any;
|
|
11263
|
-
readonly
|
|
11264
|
-
readonly
|
|
11265
|
-
readonly
|
|
11323
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1752b33118c61bf6: (a: number, b: number, c: any, d: any) => void;
|
|
11324
|
+
readonly wasm_bindgen__convert__closures_____invoke__h58dcb4b03347de73: (a: number, b: number, c: any) => [number, number];
|
|
11325
|
+
readonly wasm_bindgen__convert__closures_____invoke__hc0b53db039d89c01: (a: number, b: number) => void;
|
|
11266
11326
|
readonly __wbindgen_malloc_command_export: (a: number, b: number) => number;
|
|
11267
11327
|
readonly __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
|
|
11268
11328
|
readonly __wbindgen_exn_store_command_export: (a: number) => void;
|
package/pkg/web/xberg_wasm.js
CHANGED
|
@@ -13866,11 +13866,21 @@ export class WasmExtractionConfig {
|
|
|
13866
13866
|
* For text-only extractions (no OCR, no image extraction), skipping image
|
|
13867
13867
|
* decompression can improve CPU utilization by 5-10% by avoiding wasteful
|
|
13868
13868
|
* image I/O and processing when results won't be used.
|
|
13869
|
-
* Returns `true` when
|
|
13869
|
+
* Returns `true` when a CONTAINER document (DOCX, PPT, PPTX, HTML, ...) needs
|
|
13870
|
+
* to read an embedded image's binary data out of its archive or source.
|
|
13870
13871
|
*
|
|
13871
|
-
* True when `config.images.extract_images` is set, captioning is configured,
|
|
13872
|
-
* detection is enabled
|
|
13873
|
-
* regardless of whether the caller also requested
|
|
13872
|
+
* True when `config.images.extract_images` is set, captioning is configured, QR-code
|
|
13873
|
+
* detection is enabled, or embedded images get OCR'd. All four consume the bytes:
|
|
13874
|
+
* captioning and QR-code detection regardless of whether the caller also requested
|
|
13875
|
+
* image extraction, and embedded-image OCR because the OCR path reads the same bytes
|
|
13876
|
+
* the container would otherwise skip (GH#1662): before the OCR disjunct existed, a
|
|
13877
|
+
* container asked this question, was told no, and attached an image with an empty
|
|
13878
|
+
* buffer, which OCR then ran on and reported `Could not determine image format`.
|
|
13879
|
+
*
|
|
13880
|
+
* This governs whether a CONTAINER reads bytes it does not otherwise have. A
|
|
13881
|
+
* standalone image extractor already holds the whole file's bytes regardless of this
|
|
13882
|
+
* answer, so it must not use this method to decide whether to put its OWN bytes in the
|
|
13883
|
+
* result's `images` array; that is `wants_own_bytes_in_result`.
|
|
13874
13884
|
* @returns {boolean}
|
|
13875
13885
|
*/
|
|
13876
13886
|
needsImageData() {
|
|
@@ -14184,6 +14194,22 @@ export class WasmExtractionConfig {
|
|
|
14184
14194
|
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
14185
14195
|
}
|
|
14186
14196
|
}
|
|
14197
|
+
/**
|
|
14198
|
+
* Whether embedded images get OCR'd.
|
|
14199
|
+
*
|
|
14200
|
+
* This mirrors the condition the pipeline itself uses before it calls
|
|
14201
|
+
* `image_ocr.process_images_with_ocr` (`core/pipeline/mod.rs`), and it is
|
|
14202
|
+
* deliberately the same predicate rather than an equivalent one: when the
|
|
14203
|
+
* two drifted apart, a container extractor asked `needs_image_data` and was
|
|
14204
|
+
* told no, so it attached an image with an empty buffer, and the OCR path
|
|
14205
|
+
* then ran on those zero bytes and reported `Could not determine image
|
|
14206
|
+
* format` (GH#1662).
|
|
14207
|
+
* @returns {boolean}
|
|
14208
|
+
*/
|
|
14209
|
+
runsOcrOnEmbeddedImages() {
|
|
14210
|
+
const ret = wasm.wasmextractionconfig_runsOcrOnEmbeddedImages(this.__wbg_ptr);
|
|
14211
|
+
return ret !== 0;
|
|
14212
|
+
}
|
|
14187
14213
|
/**
|
|
14188
14214
|
* @returns {WasmSecurityLimits | undefined}
|
|
14189
14215
|
*/
|
|
@@ -14740,6 +14766,25 @@ export class WasmExtractionConfig {
|
|
|
14740
14766
|
throw takeFromExternrefTable0(ret[0]);
|
|
14741
14767
|
}
|
|
14742
14768
|
}
|
|
14769
|
+
/**
|
|
14770
|
+
* Returns `true` when a standalone image extraction (the whole input document IS
|
|
14771
|
+
* the image, not a container's embedded picture) should attach its own already-read
|
|
14772
|
+
* bytes to the result's `images` array.
|
|
14773
|
+
*
|
|
14774
|
+
* Deliberately narrower than `needs_image_data`: a standalone
|
|
14775
|
+
* image's content is read in full before this question is ever asked, whether or not OCR
|
|
14776
|
+
* runs, so OCR being configured is not by itself a reason to echo those bytes back in the
|
|
14777
|
+
* public output. Using `needs_image_data` here (as `needs_image_data`'s own OCR disjunct
|
|
14778
|
+
* briefly did) would silently start returning every OCR'd standalone image's raw bytes in
|
|
14779
|
+
* `images`, a public output contract change with nothing asking for it. Same three
|
|
14780
|
+
* conditions as before that disjunct existed: explicit image extraction, captioning, or
|
|
14781
|
+
* QR-code detection.
|
|
14782
|
+
* @returns {boolean}
|
|
14783
|
+
*/
|
|
14784
|
+
wantsOwnBytesInResult() {
|
|
14785
|
+
const ret = wasm.wasmextractionconfig_wantsOwnBytesInResult(this.__wbg_ptr);
|
|
14786
|
+
return ret !== 0;
|
|
14787
|
+
}
|
|
14743
14788
|
}
|
|
14744
14789
|
if (Symbol.dispose) WasmExtractionConfig.prototype[Symbol.dispose] = WasmExtractionConfig.prototype.free;
|
|
14745
14790
|
|
|
@@ -22194,6 +22239,13 @@ export class WasmLlmConfig {
|
|
|
22194
22239
|
const ret = wasm.wasmllmconfig_maxConcurrency(this.__wbg_ptr);
|
|
22195
22240
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
22196
22241
|
}
|
|
22242
|
+
/**
|
|
22243
|
+
* @returns {number | undefined}
|
|
22244
|
+
*/
|
|
22245
|
+
get maxResponseBytes() {
|
|
22246
|
+
const ret = wasm.wasmllmconfig_maxResponseBytes(this.__wbg_ptr);
|
|
22247
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
22248
|
+
}
|
|
22197
22249
|
/**
|
|
22198
22250
|
* @returns {number | undefined}
|
|
22199
22251
|
*/
|
|
@@ -22251,8 +22303,9 @@ export class WasmLlmConfig {
|
|
|
22251
22303
|
* @param {WasmBedrockConfig | null} [bedrock]
|
|
22252
22304
|
* @param {any | null} [credentialProvider]
|
|
22253
22305
|
* @param {number | null} [maxConcurrency]
|
|
22306
|
+
* @param {number | null} [maxResponseBytes]
|
|
22254
22307
|
*/
|
|
22255
|
-
constructor(model, apiKey, baseUrl, timeoutSecs, maxRetries, temperature, maxTokens, topP, stop, seed, presencePenalty, frequencyPenalty, reasoningEffort, extraBody, loadEnv, headers, providers, cache, budget, rateLimit, costTracking, tracing, cooldownSecs, healthCheckSecs, bedrock, credentialProvider, maxConcurrency) {
|
|
22308
|
+
constructor(model, apiKey, baseUrl, timeoutSecs, maxRetries, temperature, maxTokens, topP, stop, seed, presencePenalty, frequencyPenalty, reasoningEffort, extraBody, loadEnv, headers, providers, cache, budget, rateLimit, costTracking, tracing, cooldownSecs, healthCheckSecs, bedrock, credentialProvider, maxConcurrency, maxResponseBytes) {
|
|
22256
22309
|
var ptr0 = isLikeNone(model) ? 0 : passStringToWasm0(model, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
22257
22310
|
var len0 = WASM_VECTOR_LEN;
|
|
22258
22311
|
var ptr1 = isLikeNone(apiKey) ? 0 : passStringToWasm0(apiKey, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
@@ -22285,7 +22338,7 @@ export class WasmLlmConfig {
|
|
|
22285
22338
|
_assertClass(bedrock, WasmBedrockConfig);
|
|
22286
22339
|
ptr9 = bedrock.__destroy_into_raw();
|
|
22287
22340
|
}
|
|
22288
|
-
const ret = wasm.wasmllmconfig_new(ptr0, len0, ptr1, len1, ptr2, len2, !isLikeNone(timeoutSecs), isLikeNone(timeoutSecs) ? BigInt(0) : timeoutSecs, isLikeNone(maxRetries) ? Number.MAX_SAFE_INTEGER : (maxRetries) >>> 0, !isLikeNone(temperature), isLikeNone(temperature) ? 0 : temperature, !isLikeNone(maxTokens), isLikeNone(maxTokens) ? BigInt(0) : maxTokens, !isLikeNone(topP), isLikeNone(topP) ? 0 : topP, ptr3, len3, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed, !isLikeNone(presencePenalty), isLikeNone(presencePenalty) ? 0 : presencePenalty, !isLikeNone(frequencyPenalty), isLikeNone(frequencyPenalty) ? 0 : frequencyPenalty, ptr4, len4, isLikeNone(extraBody) ? 0 : addToExternrefTable0(extraBody), isLikeNone(loadEnv) ? 0xFFFFFF : loadEnv ? 1 : 0, isLikeNone(headers) ? 0 : addToExternrefTable0(headers), ptr5, len5, ptr6, ptr7, ptr8, isLikeNone(costTracking) ? 0xFFFFFF : costTracking ? 1 : 0, isLikeNone(tracing) ? 0xFFFFFF : tracing ? 1 : 0, !isLikeNone(cooldownSecs), isLikeNone(cooldownSecs) ? BigInt(0) : cooldownSecs, !isLikeNone(healthCheckSecs), isLikeNone(healthCheckSecs) ? BigInt(0) : healthCheckSecs, ptr9, isLikeNone(credentialProvider) ? 0 : addToExternrefTable0(credentialProvider), isLikeNone(maxConcurrency) ? Number.MAX_SAFE_INTEGER : (maxConcurrency) >>> 0);
|
|
22341
|
+
const ret = wasm.wasmllmconfig_new(ptr0, len0, ptr1, len1, ptr2, len2, !isLikeNone(timeoutSecs), isLikeNone(timeoutSecs) ? BigInt(0) : timeoutSecs, isLikeNone(maxRetries) ? Number.MAX_SAFE_INTEGER : (maxRetries) >>> 0, !isLikeNone(temperature), isLikeNone(temperature) ? 0 : temperature, !isLikeNone(maxTokens), isLikeNone(maxTokens) ? BigInt(0) : maxTokens, !isLikeNone(topP), isLikeNone(topP) ? 0 : topP, ptr3, len3, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed, !isLikeNone(presencePenalty), isLikeNone(presencePenalty) ? 0 : presencePenalty, !isLikeNone(frequencyPenalty), isLikeNone(frequencyPenalty) ? 0 : frequencyPenalty, ptr4, len4, isLikeNone(extraBody) ? 0 : addToExternrefTable0(extraBody), isLikeNone(loadEnv) ? 0xFFFFFF : loadEnv ? 1 : 0, isLikeNone(headers) ? 0 : addToExternrefTable0(headers), ptr5, len5, ptr6, ptr7, ptr8, isLikeNone(costTracking) ? 0xFFFFFF : costTracking ? 1 : 0, isLikeNone(tracing) ? 0xFFFFFF : tracing ? 1 : 0, !isLikeNone(cooldownSecs), isLikeNone(cooldownSecs) ? BigInt(0) : cooldownSecs, !isLikeNone(healthCheckSecs), isLikeNone(healthCheckSecs) ? BigInt(0) : healthCheckSecs, ptr9, isLikeNone(credentialProvider) ? 0 : addToExternrefTable0(credentialProvider), isLikeNone(maxConcurrency) ? Number.MAX_SAFE_INTEGER : (maxConcurrency) >>> 0, isLikeNone(maxResponseBytes) ? Number.MAX_SAFE_INTEGER : (maxResponseBytes) >>> 0);
|
|
22289
22342
|
this.__wbg_ptr = ret;
|
|
22290
22343
|
WasmLlmConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
22291
22344
|
return this;
|
|
@@ -22433,6 +22486,12 @@ export class WasmLlmConfig {
|
|
|
22433
22486
|
set maxConcurrency(value) {
|
|
22434
22487
|
wasm.wasmllmconfig_set_maxConcurrency(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
22435
22488
|
}
|
|
22489
|
+
/**
|
|
22490
|
+
* @param {number | null} [value]
|
|
22491
|
+
*/
|
|
22492
|
+
set maxResponseBytes(value) {
|
|
22493
|
+
wasm.wasmllmconfig_set_maxResponseBytes(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
22494
|
+
}
|
|
22436
22495
|
/**
|
|
22437
22496
|
* @param {number | null} [value]
|
|
22438
22497
|
*/
|
|
@@ -26732,6 +26791,13 @@ export class WasmOcrQualityThresholds {
|
|
|
26732
26791
|
const ret = wasm.wasmocrqualitythresholds_discardSuspectedOcrNoise(this.__wbg_ptr);
|
|
26733
26792
|
return ret !== 0;
|
|
26734
26793
|
}
|
|
26794
|
+
/**
|
|
26795
|
+
* @returns {boolean}
|
|
26796
|
+
*/
|
|
26797
|
+
get enablePlausibilityOcrRouting() {
|
|
26798
|
+
const ret = wasm.wasmocrqualitythresholds_enablePlausibilityOcrRouting(this.__wbg_ptr);
|
|
26799
|
+
return ret !== 0;
|
|
26800
|
+
}
|
|
26735
26801
|
/**
|
|
26736
26802
|
* @returns {boolean}
|
|
26737
26803
|
*/
|
|
@@ -26823,6 +26889,13 @@ export class WasmOcrQualityThresholds {
|
|
|
26823
26889
|
const ret = wasm.wasmocrqualitythresholds_minProvenanceFallbackRatio(this.__wbg_ptr);
|
|
26824
26890
|
return ret;
|
|
26825
26891
|
}
|
|
26892
|
+
/**
|
|
26893
|
+
* @returns {number}
|
|
26894
|
+
*/
|
|
26895
|
+
get minReliableLanguageChunkRatio() {
|
|
26896
|
+
const ret = wasm.wasmocrqualitythresholds_minReliableLanguageChunkRatio(this.__wbg_ptr);
|
|
26897
|
+
return ret;
|
|
26898
|
+
}
|
|
26826
26899
|
/**
|
|
26827
26900
|
* @returns {number}
|
|
26828
26901
|
*/
|
|
@@ -26883,9 +26956,11 @@ export class WasmOcrQualityThresholds {
|
|
|
26883
26956
|
* @param {number | null} [minUndecodableRatio]
|
|
26884
26957
|
* @param {boolean | null} [enableProvenanceOcrRouting]
|
|
26885
26958
|
* @param {number | null} [minProvenanceFallbackRatio]
|
|
26959
|
+
* @param {boolean | null} [enablePlausibilityOcrRouting]
|
|
26960
|
+
* @param {number | null} [minReliableLanguageChunkRatio]
|
|
26886
26961
|
*/
|
|
26887
|
-
constructor(minTotalNonWhitespace, minNonWhitespacePerPage, minMeaningfulWordLen, minMeaningfulWords, minAlnumRatio, minGarbageChars, maxFragmentedWordRatio, criticalFragmentedWordRatio, maxOcrOutputFragmentedWordRatio, minOcrMeanConfidence, minWordsForOcrOutputCheck, maxOcrOutputDictInvalidWordRatio, discardSuspectedOcrNoise, minAvgWordLength, minWordsForAvgLengthCheck, minConsecutiveRepeatRatio, minWordsForRepeatCheck, substantiveMinChars, nonTextMinChars, alnumWsRatioThreshold, pipelineMinQuality, minUndecodableRatio, enableProvenanceOcrRouting, minProvenanceFallbackRatio) {
|
|
26888
|
-
const ret = wasm.wasmocrqualitythresholds_new(isLikeNone(minTotalNonWhitespace) ? Number.MAX_SAFE_INTEGER : (minTotalNonWhitespace) >>> 0, !isLikeNone(minNonWhitespacePerPage), isLikeNone(minNonWhitespacePerPage) ? 0 : minNonWhitespacePerPage, isLikeNone(minMeaningfulWordLen) ? Number.MAX_SAFE_INTEGER : (minMeaningfulWordLen) >>> 0, isLikeNone(minMeaningfulWords) ? Number.MAX_SAFE_INTEGER : (minMeaningfulWords) >>> 0, !isLikeNone(minAlnumRatio), isLikeNone(minAlnumRatio) ? 0 : minAlnumRatio, isLikeNone(minGarbageChars) ? Number.MAX_SAFE_INTEGER : (minGarbageChars) >>> 0, !isLikeNone(maxFragmentedWordRatio), isLikeNone(maxFragmentedWordRatio) ? 0 : maxFragmentedWordRatio, !isLikeNone(criticalFragmentedWordRatio), isLikeNone(criticalFragmentedWordRatio) ? 0 : criticalFragmentedWordRatio, !isLikeNone(maxOcrOutputFragmentedWordRatio), isLikeNone(maxOcrOutputFragmentedWordRatio) ? 0 : maxOcrOutputFragmentedWordRatio, !isLikeNone(minOcrMeanConfidence), isLikeNone(minOcrMeanConfidence) ? 0 : minOcrMeanConfidence, isLikeNone(minWordsForOcrOutputCheck) ? Number.MAX_SAFE_INTEGER : (minWordsForOcrOutputCheck) >>> 0, !isLikeNone(maxOcrOutputDictInvalidWordRatio), isLikeNone(maxOcrOutputDictInvalidWordRatio) ? 0 : maxOcrOutputDictInvalidWordRatio, isLikeNone(discardSuspectedOcrNoise) ? 0xFFFFFF : discardSuspectedOcrNoise ? 1 : 0, !isLikeNone(minAvgWordLength), isLikeNone(minAvgWordLength) ? 0 : minAvgWordLength, isLikeNone(minWordsForAvgLengthCheck) ? Number.MAX_SAFE_INTEGER : (minWordsForAvgLengthCheck) >>> 0, !isLikeNone(minConsecutiveRepeatRatio), isLikeNone(minConsecutiveRepeatRatio) ? 0 : minConsecutiveRepeatRatio, isLikeNone(minWordsForRepeatCheck) ? Number.MAX_SAFE_INTEGER : (minWordsForRepeatCheck) >>> 0, isLikeNone(substantiveMinChars) ? Number.MAX_SAFE_INTEGER : (substantiveMinChars) >>> 0, isLikeNone(nonTextMinChars) ? Number.MAX_SAFE_INTEGER : (nonTextMinChars) >>> 0, !isLikeNone(alnumWsRatioThreshold), isLikeNone(alnumWsRatioThreshold) ? 0 : alnumWsRatioThreshold, !isLikeNone(pipelineMinQuality), isLikeNone(pipelineMinQuality) ? 0 : pipelineMinQuality, !isLikeNone(minUndecodableRatio), isLikeNone(minUndecodableRatio) ? 0 : minUndecodableRatio, isLikeNone(enableProvenanceOcrRouting) ? 0xFFFFFF : enableProvenanceOcrRouting ? 1 : 0, !isLikeNone(minProvenanceFallbackRatio), isLikeNone(minProvenanceFallbackRatio) ? 0 : minProvenanceFallbackRatio);
|
|
26962
|
+
constructor(minTotalNonWhitespace, minNonWhitespacePerPage, minMeaningfulWordLen, minMeaningfulWords, minAlnumRatio, minGarbageChars, maxFragmentedWordRatio, criticalFragmentedWordRatio, maxOcrOutputFragmentedWordRatio, minOcrMeanConfidence, minWordsForOcrOutputCheck, maxOcrOutputDictInvalidWordRatio, discardSuspectedOcrNoise, minAvgWordLength, minWordsForAvgLengthCheck, minConsecutiveRepeatRatio, minWordsForRepeatCheck, substantiveMinChars, nonTextMinChars, alnumWsRatioThreshold, pipelineMinQuality, minUndecodableRatio, enableProvenanceOcrRouting, minProvenanceFallbackRatio, enablePlausibilityOcrRouting, minReliableLanguageChunkRatio) {
|
|
26963
|
+
const ret = wasm.wasmocrqualitythresholds_new(isLikeNone(minTotalNonWhitespace) ? Number.MAX_SAFE_INTEGER : (minTotalNonWhitespace) >>> 0, !isLikeNone(minNonWhitespacePerPage), isLikeNone(minNonWhitespacePerPage) ? 0 : minNonWhitespacePerPage, isLikeNone(minMeaningfulWordLen) ? Number.MAX_SAFE_INTEGER : (minMeaningfulWordLen) >>> 0, isLikeNone(minMeaningfulWords) ? Number.MAX_SAFE_INTEGER : (minMeaningfulWords) >>> 0, !isLikeNone(minAlnumRatio), isLikeNone(minAlnumRatio) ? 0 : minAlnumRatio, isLikeNone(minGarbageChars) ? Number.MAX_SAFE_INTEGER : (minGarbageChars) >>> 0, !isLikeNone(maxFragmentedWordRatio), isLikeNone(maxFragmentedWordRatio) ? 0 : maxFragmentedWordRatio, !isLikeNone(criticalFragmentedWordRatio), isLikeNone(criticalFragmentedWordRatio) ? 0 : criticalFragmentedWordRatio, !isLikeNone(maxOcrOutputFragmentedWordRatio), isLikeNone(maxOcrOutputFragmentedWordRatio) ? 0 : maxOcrOutputFragmentedWordRatio, !isLikeNone(minOcrMeanConfidence), isLikeNone(minOcrMeanConfidence) ? 0 : minOcrMeanConfidence, isLikeNone(minWordsForOcrOutputCheck) ? Number.MAX_SAFE_INTEGER : (minWordsForOcrOutputCheck) >>> 0, !isLikeNone(maxOcrOutputDictInvalidWordRatio), isLikeNone(maxOcrOutputDictInvalidWordRatio) ? 0 : maxOcrOutputDictInvalidWordRatio, isLikeNone(discardSuspectedOcrNoise) ? 0xFFFFFF : discardSuspectedOcrNoise ? 1 : 0, !isLikeNone(minAvgWordLength), isLikeNone(minAvgWordLength) ? 0 : minAvgWordLength, isLikeNone(minWordsForAvgLengthCheck) ? Number.MAX_SAFE_INTEGER : (minWordsForAvgLengthCheck) >>> 0, !isLikeNone(minConsecutiveRepeatRatio), isLikeNone(minConsecutiveRepeatRatio) ? 0 : minConsecutiveRepeatRatio, isLikeNone(minWordsForRepeatCheck) ? Number.MAX_SAFE_INTEGER : (minWordsForRepeatCheck) >>> 0, isLikeNone(substantiveMinChars) ? Number.MAX_SAFE_INTEGER : (substantiveMinChars) >>> 0, isLikeNone(nonTextMinChars) ? Number.MAX_SAFE_INTEGER : (nonTextMinChars) >>> 0, !isLikeNone(alnumWsRatioThreshold), isLikeNone(alnumWsRatioThreshold) ? 0 : alnumWsRatioThreshold, !isLikeNone(pipelineMinQuality), isLikeNone(pipelineMinQuality) ? 0 : pipelineMinQuality, !isLikeNone(minUndecodableRatio), isLikeNone(minUndecodableRatio) ? 0 : minUndecodableRatio, isLikeNone(enableProvenanceOcrRouting) ? 0xFFFFFF : enableProvenanceOcrRouting ? 1 : 0, !isLikeNone(minProvenanceFallbackRatio), isLikeNone(minProvenanceFallbackRatio) ? 0 : minProvenanceFallbackRatio, isLikeNone(enablePlausibilityOcrRouting) ? 0xFFFFFF : enablePlausibilityOcrRouting ? 1 : 0, !isLikeNone(minReliableLanguageChunkRatio), isLikeNone(minReliableLanguageChunkRatio) ? 0 : minReliableLanguageChunkRatio);
|
|
26889
26964
|
this.__wbg_ptr = ret;
|
|
26890
26965
|
WasmOcrQualityThresholdsFinalization.register(this, this.__wbg_ptr, this);
|
|
26891
26966
|
return this;
|
|
@@ -26922,6 +26997,12 @@ export class WasmOcrQualityThresholds {
|
|
|
26922
26997
|
set discardSuspectedOcrNoise(value) {
|
|
26923
26998
|
wasm.wasmocrqualitythresholds_set_discardSuspectedOcrNoise(this.__wbg_ptr, value);
|
|
26924
26999
|
}
|
|
27000
|
+
/**
|
|
27001
|
+
* @param {boolean} value
|
|
27002
|
+
*/
|
|
27003
|
+
set enablePlausibilityOcrRouting(value) {
|
|
27004
|
+
wasm.wasmocrqualitythresholds_set_enablePlausibilityOcrRouting(this.__wbg_ptr, value);
|
|
27005
|
+
}
|
|
26925
27006
|
/**
|
|
26926
27007
|
* @param {boolean} value
|
|
26927
27008
|
*/
|
|
@@ -27000,6 +27081,12 @@ export class WasmOcrQualityThresholds {
|
|
|
27000
27081
|
set minProvenanceFallbackRatio(value) {
|
|
27001
27082
|
wasm.wasmocrqualitythresholds_set_minProvenanceFallbackRatio(this.__wbg_ptr, value);
|
|
27002
27083
|
}
|
|
27084
|
+
/**
|
|
27085
|
+
* @param {number} value
|
|
27086
|
+
*/
|
|
27087
|
+
set minReliableLanguageChunkRatio(value) {
|
|
27088
|
+
wasm.wasmocrqualitythresholds_set_minReliableLanguageChunkRatio(this.__wbg_ptr, value);
|
|
27089
|
+
}
|
|
27003
27090
|
/**
|
|
27004
27091
|
* @param {number} value
|
|
27005
27092
|
*/
|
|
@@ -30573,6 +30660,18 @@ export class WasmPdfMetadata {
|
|
|
30573
30660
|
const ret = wasm.wasmpdfmetadata_default();
|
|
30574
30661
|
return WasmPdfMetadata.__wrap(ret);
|
|
30575
30662
|
}
|
|
30663
|
+
/**
|
|
30664
|
+
* @returns {Uint32Array | undefined}
|
|
30665
|
+
*/
|
|
30666
|
+
get fabricatedTextPages() {
|
|
30667
|
+
const ret = wasm.wasmpdfmetadata_fabricatedTextPages(this.__wbg_ptr);
|
|
30668
|
+
let v1;
|
|
30669
|
+
if (ret[0] !== 0) {
|
|
30670
|
+
v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
30671
|
+
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
30672
|
+
}
|
|
30673
|
+
return v1;
|
|
30674
|
+
}
|
|
30576
30675
|
/**
|
|
30577
30676
|
* @returns {bigint | undefined}
|
|
30578
30677
|
*/
|
|
@@ -30580,6 +30679,18 @@ export class WasmPdfMetadata {
|
|
|
30580
30679
|
const ret = wasm.wasmpdfmetadata_height(this.__wbg_ptr);
|
|
30581
30680
|
return ret[0] === 0 ? undefined : ret[1];
|
|
30582
30681
|
}
|
|
30682
|
+
/**
|
|
30683
|
+
* @returns {Uint32Array | undefined}
|
|
30684
|
+
*/
|
|
30685
|
+
get implausibleTextPages() {
|
|
30686
|
+
const ret = wasm.wasmpdfmetadata_implausibleTextPages(this.__wbg_ptr);
|
|
30687
|
+
let v1;
|
|
30688
|
+
if (ret[0] !== 0) {
|
|
30689
|
+
v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
30690
|
+
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
30691
|
+
}
|
|
30692
|
+
return v1;
|
|
30693
|
+
}
|
|
30583
30694
|
/**
|
|
30584
30695
|
* @returns {boolean | undefined}
|
|
30585
30696
|
*/
|
|
@@ -30620,21 +30731,27 @@ export class WasmPdfMetadata {
|
|
|
30620
30731
|
* @param {number | null} [pageCount]
|
|
30621
30732
|
* @param {number | null} [scannedConfidence]
|
|
30622
30733
|
* @param {Uint32Array | null} [scannedPages]
|
|
30734
|
+
* @param {Uint32Array | null} [fabricatedTextPages]
|
|
30735
|
+
* @param {Uint32Array | null} [implausibleTextPages]
|
|
30623
30736
|
* @param {Uint32Array | null} [layoutGatedPages]
|
|
30624
30737
|
* @param {string[] | null} [layoutGateReasons]
|
|
30625
30738
|
*/
|
|
30626
|
-
constructor(pdfVersion, producer, isEncrypted, width, height, pageCount, scannedConfidence, scannedPages, layoutGatedPages, layoutGateReasons) {
|
|
30739
|
+
constructor(pdfVersion, producer, isEncrypted, width, height, pageCount, scannedConfidence, scannedPages, fabricatedTextPages, implausibleTextPages, layoutGatedPages, layoutGateReasons) {
|
|
30627
30740
|
var ptr0 = isLikeNone(pdfVersion) ? 0 : passStringToWasm0(pdfVersion, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
30628
30741
|
var len0 = WASM_VECTOR_LEN;
|
|
30629
30742
|
var ptr1 = isLikeNone(producer) ? 0 : passStringToWasm0(producer, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
30630
30743
|
var len1 = WASM_VECTOR_LEN;
|
|
30631
30744
|
var ptr2 = isLikeNone(scannedPages) ? 0 : passArray32ToWasm0(scannedPages, wasm.__wbindgen_malloc_command_export);
|
|
30632
30745
|
var len2 = WASM_VECTOR_LEN;
|
|
30633
|
-
var ptr3 = isLikeNone(
|
|
30746
|
+
var ptr3 = isLikeNone(fabricatedTextPages) ? 0 : passArray32ToWasm0(fabricatedTextPages, wasm.__wbindgen_malloc_command_export);
|
|
30634
30747
|
var len3 = WASM_VECTOR_LEN;
|
|
30635
|
-
var ptr4 = isLikeNone(
|
|
30748
|
+
var ptr4 = isLikeNone(implausibleTextPages) ? 0 : passArray32ToWasm0(implausibleTextPages, wasm.__wbindgen_malloc_command_export);
|
|
30636
30749
|
var len4 = WASM_VECTOR_LEN;
|
|
30637
|
-
|
|
30750
|
+
var ptr5 = isLikeNone(layoutGatedPages) ? 0 : passArray32ToWasm0(layoutGatedPages, wasm.__wbindgen_malloc_command_export);
|
|
30751
|
+
var len5 = WASM_VECTOR_LEN;
|
|
30752
|
+
var ptr6 = isLikeNone(layoutGateReasons) ? 0 : passArrayJsValueToWasm0(layoutGateReasons, wasm.__wbindgen_malloc_command_export);
|
|
30753
|
+
var len6 = WASM_VECTOR_LEN;
|
|
30754
|
+
const ret = wasm.wasmpdfmetadata_new(ptr0, len0, ptr1, len1, isLikeNone(isEncrypted) ? 0xFFFFFF : isEncrypted ? 1 : 0, !isLikeNone(width), isLikeNone(width) ? BigInt(0) : width, !isLikeNone(height), isLikeNone(height) ? BigInt(0) : height, isLikeNone(pageCount) ? Number.MAX_SAFE_INTEGER : (pageCount) >>> 0, isLikeNone(scannedConfidence) ? Number.MAX_SAFE_INTEGER : Math.fround(scannedConfidence), ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6);
|
|
30638
30755
|
this.__wbg_ptr = ret;
|
|
30639
30756
|
WasmPdfMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
30640
30757
|
return this;
|
|
@@ -30689,12 +30806,28 @@ export class WasmPdfMetadata {
|
|
|
30689
30806
|
}
|
|
30690
30807
|
return v1;
|
|
30691
30808
|
}
|
|
30809
|
+
/**
|
|
30810
|
+
* @param {Uint32Array | null} [value]
|
|
30811
|
+
*/
|
|
30812
|
+
set fabricatedTextPages(value) {
|
|
30813
|
+
var ptr0 = isLikeNone(value) ? 0 : passArray32ToWasm0(value, wasm.__wbindgen_malloc_command_export);
|
|
30814
|
+
var len0 = WASM_VECTOR_LEN;
|
|
30815
|
+
wasm.wasmpdfmetadata_set_fabricatedTextPages(this.__wbg_ptr, ptr0, len0);
|
|
30816
|
+
}
|
|
30692
30817
|
/**
|
|
30693
30818
|
* @param {bigint | null} [value]
|
|
30694
30819
|
*/
|
|
30695
30820
|
set height(value) {
|
|
30696
30821
|
wasm.wasmpdfmetadata_set_height(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
|
|
30697
30822
|
}
|
|
30823
|
+
/**
|
|
30824
|
+
* @param {Uint32Array | null} [value]
|
|
30825
|
+
*/
|
|
30826
|
+
set implausibleTextPages(value) {
|
|
30827
|
+
var ptr0 = isLikeNone(value) ? 0 : passArray32ToWasm0(value, wasm.__wbindgen_malloc_command_export);
|
|
30828
|
+
var len0 = WASM_VECTOR_LEN;
|
|
30829
|
+
wasm.wasmpdfmetadata_set_implausibleTextPages(this.__wbg_ptr, ptr0, len0);
|
|
30830
|
+
}
|
|
30698
30831
|
/**
|
|
30699
30832
|
* @param {boolean | null} [value]
|
|
30700
30833
|
*/
|
|
@@ -40435,9 +40568,10 @@ export function listEmbeddingBackends() {
|
|
|
40435
40568
|
* # Cost
|
|
40436
40569
|
*
|
|
40437
40570
|
* Calling this is not free for every backend. In particular, `TesseractBackend`'s
|
|
40438
|
-
* `supported_languages()` allocates a Tesseract API and initializes it
|
|
40439
|
-
*
|
|
40440
|
-
* served from a
|
|
40571
|
+
* `supported_languages()` allocates a Tesseract API and initializes it against the same
|
|
40572
|
+
* tessdata directory a real OCR job resolves (`resolve_tessdata_path`), the first time it
|
|
40573
|
+
* is called, to enumerate installed tessdata languages; subsequent calls are served from a
|
|
40574
|
+
* cache.
|
|
40441
40575
|
*
|
|
40442
40576
|
* # Errors
|
|
40443
40577
|
*
|
|
@@ -41277,7 +41411,7 @@ function __wbg_get_imports() {
|
|
|
41277
41411
|
const a = state0.a;
|
|
41278
41412
|
state0.a = 0;
|
|
41279
41413
|
try {
|
|
41280
|
-
return
|
|
41414
|
+
return wasm_bindgen__convert__closures_____invoke__h1752b33118c61bf6(a, state0.b, arg0, arg1);
|
|
41281
41415
|
} finally {
|
|
41282
41416
|
state0.a = a;
|
|
41283
41417
|
}
|
|
@@ -41437,7 +41571,7 @@ function __wbg_get_imports() {
|
|
|
41437
41571
|
const ret = arg0.value;
|
|
41438
41572
|
return ret;
|
|
41439
41573
|
},
|
|
41440
|
-
|
|
41574
|
+
__wbg_warn_2404f6e2ec92fd86: function(arg0, arg1) {
|
|
41441
41575
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
41442
41576
|
},
|
|
41443
41577
|
__wbg_wasmarchiveentry_new: function(arg0) {
|
|
@@ -42001,13 +42135,13 @@ function __wbg_get_imports() {
|
|
|
42001
42135
|
return ret;
|
|
42002
42136
|
},
|
|
42003
42137
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
42004
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
42005
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
42138
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 677, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
42139
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h58dcb4b03347de73);
|
|
42006
42140
|
return ret;
|
|
42007
42141
|
},
|
|
42008
42142
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
42009
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
42010
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
42143
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1171, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
42144
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc0b53db039d89c01);
|
|
42011
42145
|
return ret;
|
|
42012
42146
|
},
|
|
42013
42147
|
__wbindgen_generic_0000000000000003: function(arg0) {
|
|
@@ -42075,19 +42209,19 @@ function __wbg_get_imports() {
|
|
|
42075
42209
|
};
|
|
42076
42210
|
}
|
|
42077
42211
|
|
|
42078
|
-
function
|
|
42079
|
-
wasm.
|
|
42212
|
+
function wasm_bindgen__convert__closures_____invoke__hc0b53db039d89c01(arg0, arg1) {
|
|
42213
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc0b53db039d89c01(arg0, arg1);
|
|
42080
42214
|
}
|
|
42081
42215
|
|
|
42082
|
-
function
|
|
42083
|
-
const ret = wasm.
|
|
42216
|
+
function wasm_bindgen__convert__closures_____invoke__h58dcb4b03347de73(arg0, arg1, arg2) {
|
|
42217
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h58dcb4b03347de73(arg0, arg1, arg2);
|
|
42084
42218
|
if (ret[1]) {
|
|
42085
42219
|
throw takeFromExternrefTable0(ret[0]);
|
|
42086
42220
|
}
|
|
42087
42221
|
}
|
|
42088
42222
|
|
|
42089
|
-
function
|
|
42090
|
-
wasm.
|
|
42223
|
+
function wasm_bindgen__convert__closures_____invoke__h1752b33118c61bf6(arg0, arg1, arg2, arg3) {
|
|
42224
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1752b33118c61bf6(arg0, arg1, arg2, arg3);
|
|
42091
42225
|
}
|
|
42092
42226
|
|
|
42093
42227
|
|
|
@@ -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: 36531009 bytes
|
|
4
|
+
sha256: ba9a867b795a54358bbe0964fa583b54fca80be2f5b7735754892c882989b853
|
|
@@ -1533,6 +1533,7 @@ export const wasmextractionconfig_postprocessor: (a: number) => number;
|
|
|
1533
1533
|
export const wasmextractionconfig_qrCodes: (a: number) => number;
|
|
1534
1534
|
export const wasmextractionconfig_redaction: (a: number) => number;
|
|
1535
1535
|
export const wasmextractionconfig_resultFormat: (a: number) => [number, number];
|
|
1536
|
+
export const wasmextractionconfig_runsOcrOnEmbeddedImages: (a: number) => number;
|
|
1536
1537
|
export const wasmextractionconfig_securityLimits: (a: number) => number;
|
|
1537
1538
|
export const wasmextractionconfig_set_acceleration: (a: number, b: number) => void;
|
|
1538
1539
|
export const wasmextractionconfig_set_applyNotebookCellTags: (a: number, b: number) => void;
|
|
@@ -1595,6 +1596,7 @@ export const wasmextractionconfig_url: (a: number) => number;
|
|
|
1595
1596
|
export const wasmextractionconfig_useCache: (a: number) => number;
|
|
1596
1597
|
export const wasmextractionconfig_useLayoutForMarkdown: (a: number) => number;
|
|
1597
1598
|
export const wasmextractionconfig_validate: (a: number) => [number, number];
|
|
1599
|
+
export const wasmextractionconfig_wantsOwnBytesInResult: (a: number) => number;
|
|
1598
1600
|
export const wasmextractionerroritem_code: (a: number) => number;
|
|
1599
1601
|
export const wasmextractionerroritem_default: () => number;
|
|
1600
1602
|
export const wasmextractionerroritem_errorType: (a: number) => [number, number];
|
|
@@ -2241,10 +2243,11 @@ export const wasmllmconfig_headers: (a: number) => any;
|
|
|
2241
2243
|
export const wasmllmconfig_healthCheckSecs: (a: number) => [number, bigint];
|
|
2242
2244
|
export const wasmllmconfig_loadEnv: (a: number) => number;
|
|
2243
2245
|
export const wasmllmconfig_maxConcurrency: (a: number) => number;
|
|
2246
|
+
export const wasmllmconfig_maxResponseBytes: (a: number) => number;
|
|
2244
2247
|
export const wasmllmconfig_maxRetries: (a: number) => number;
|
|
2245
2248
|
export const wasmllmconfig_maxTokens: (a: number) => [number, bigint];
|
|
2246
2249
|
export const wasmllmconfig_model: (a: number) => [number, number];
|
|
2247
|
-
export const wasmllmconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: number, o: number, p: number, q: number, r: number, s: bigint, 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: bigint, l1: number, m1: bigint, n1: number, o1: number, p1: number) => number;
|
|
2250
|
+
export const wasmllmconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: number, k: number, l: number, m: bigint, n: number, o: number, p: number, q: number, r: number, s: bigint, 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: bigint, l1: number, m1: bigint, n1: number, o1: number, p1: number, q1: number) => number;
|
|
2248
2251
|
export const wasmllmconfig_presencePenalty: (a: number) => [number, number];
|
|
2249
2252
|
export const wasmllmconfig_providers: (a: number) => any;
|
|
2250
2253
|
export const wasmllmconfig_rateLimit: (a: number) => number;
|
|
@@ -2264,6 +2267,7 @@ export const wasmllmconfig_set_headers: (a: number, b: number) => void;
|
|
|
2264
2267
|
export const wasmllmconfig_set_healthCheckSecs: (a: number, b: number, c: bigint) => void;
|
|
2265
2268
|
export const wasmllmconfig_set_loadEnv: (a: number, b: number) => void;
|
|
2266
2269
|
export const wasmllmconfig_set_maxConcurrency: (a: number, b: number) => void;
|
|
2270
|
+
export const wasmllmconfig_set_maxResponseBytes: (a: number, b: number) => void;
|
|
2267
2271
|
export const wasmllmconfig_set_maxRetries: (a: number, b: number) => void;
|
|
2268
2272
|
export const wasmllmconfig_set_maxTokens: (a: number, b: number, c: bigint) => void;
|
|
2269
2273
|
export const wasmllmconfig_set_model: (a: number, b: number, c: number) => void;
|
|
@@ -2643,6 +2647,7 @@ export const wasmocrqualitythresholds_alnumWsRatioThreshold: (a: number) => numb
|
|
|
2643
2647
|
export const wasmocrqualitythresholds_criticalFragmentedWordRatio: (a: number) => number;
|
|
2644
2648
|
export const wasmocrqualitythresholds_default: () => number;
|
|
2645
2649
|
export const wasmocrqualitythresholds_discardSuspectedOcrNoise: (a: number) => number;
|
|
2650
|
+
export const wasmocrqualitythresholds_enablePlausibilityOcrRouting: (a: number) => number;
|
|
2646
2651
|
export const wasmocrqualitythresholds_enableProvenanceOcrRouting: (a: number) => number;
|
|
2647
2652
|
export const wasmocrqualitythresholds_maxFragmentedWordRatio: (a: number) => number;
|
|
2648
2653
|
export const wasmocrqualitythresholds_maxOcrOutputDictInvalidWordRatio: (a: number) => number;
|
|
@@ -2656,17 +2661,19 @@ export const wasmocrqualitythresholds_minMeaningfulWords: (a: number) => number;
|
|
|
2656
2661
|
export const wasmocrqualitythresholds_minNonWhitespacePerPage: (a: number) => number;
|
|
2657
2662
|
export const wasmocrqualitythresholds_minOcrMeanConfidence: (a: number) => number;
|
|
2658
2663
|
export const wasmocrqualitythresholds_minProvenanceFallbackRatio: (a: number) => number;
|
|
2664
|
+
export const wasmocrqualitythresholds_minReliableLanguageChunkRatio: (a: number) => number;
|
|
2659
2665
|
export const wasmocrqualitythresholds_minTotalNonWhitespace: (a: number) => number;
|
|
2660
2666
|
export const wasmocrqualitythresholds_minUndecodableRatio: (a: number) => number;
|
|
2661
2667
|
export const wasmocrqualitythresholds_minWordsForAvgLengthCheck: (a: number) => number;
|
|
2662
2668
|
export const wasmocrqualitythresholds_minWordsForOcrOutputCheck: (a: number) => number;
|
|
2663
2669
|
export const wasmocrqualitythresholds_minWordsForRepeatCheck: (a: number) => number;
|
|
2664
|
-
export const wasmocrqualitythresholds_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) => number;
|
|
2670
|
+
export const wasmocrqualitythresholds_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) => number;
|
|
2665
2671
|
export const wasmocrqualitythresholds_nonTextMinChars: (a: number) => number;
|
|
2666
2672
|
export const wasmocrqualitythresholds_pipelineMinQuality: (a: number) => number;
|
|
2667
2673
|
export const wasmocrqualitythresholds_set_alnumWsRatioThreshold: (a: number, b: number) => void;
|
|
2668
2674
|
export const wasmocrqualitythresholds_set_criticalFragmentedWordRatio: (a: number, b: number) => void;
|
|
2669
2675
|
export const wasmocrqualitythresholds_set_discardSuspectedOcrNoise: (a: number, b: number) => void;
|
|
2676
|
+
export const wasmocrqualitythresholds_set_enablePlausibilityOcrRouting: (a: number, b: number) => void;
|
|
2670
2677
|
export const wasmocrqualitythresholds_set_enableProvenanceOcrRouting: (a: number, b: number) => void;
|
|
2671
2678
|
export const wasmocrqualitythresholds_set_maxFragmentedWordRatio: (a: number, b: number) => void;
|
|
2672
2679
|
export const wasmocrqualitythresholds_set_maxOcrOutputDictInvalidWordRatio: (a: number, b: number) => void;
|
|
@@ -2680,6 +2687,7 @@ export const wasmocrqualitythresholds_set_minMeaningfulWords: (a: number, b: num
|
|
|
2680
2687
|
export const wasmocrqualitythresholds_set_minNonWhitespacePerPage: (a: number, b: number) => void;
|
|
2681
2688
|
export const wasmocrqualitythresholds_set_minOcrMeanConfidence: (a: number, b: number) => void;
|
|
2682
2689
|
export const wasmocrqualitythresholds_set_minProvenanceFallbackRatio: (a: number, b: number) => void;
|
|
2690
|
+
export const wasmocrqualitythresholds_set_minReliableLanguageChunkRatio: (a: number, b: number) => void;
|
|
2683
2691
|
export const wasmocrqualitythresholds_set_minTotalNonWhitespace: (a: number, b: number) => void;
|
|
2684
2692
|
export const wasmocrqualitythresholds_set_minUndecodableRatio: (a: number, b: number) => void;
|
|
2685
2693
|
export const wasmocrqualitythresholds_set_minWordsForAvgLengthCheck: (a: number, b: number) => void;
|
|
@@ -2987,17 +2995,21 @@ export const wasmpdfformfield_set_value: (a: number, b: number, c: number) => vo
|
|
|
2987
2995
|
export const wasmpdfformfield_tooltip: (a: number) => [number, number];
|
|
2988
2996
|
export const wasmpdfformfield_value: (a: number) => [number, number];
|
|
2989
2997
|
export const wasmpdfmetadata_default: () => number;
|
|
2998
|
+
export const wasmpdfmetadata_fabricatedTextPages: (a: number) => [number, number];
|
|
2990
2999
|
export const wasmpdfmetadata_height: (a: number) => [number, bigint];
|
|
3000
|
+
export const wasmpdfmetadata_implausibleTextPages: (a: number) => [number, number];
|
|
2991
3001
|
export const wasmpdfmetadata_isEncrypted: (a: number) => number;
|
|
2992
3002
|
export const wasmpdfmetadata_layoutGateReasons: (a: number) => [number, number];
|
|
2993
3003
|
export const wasmpdfmetadata_layoutGatedPages: (a: number) => [number, number];
|
|
2994
|
-
export const wasmpdfmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => number;
|
|
3004
|
+
export const wasmpdfmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, 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;
|
|
2995
3005
|
export const wasmpdfmetadata_pageCount: (a: number) => number;
|
|
2996
3006
|
export const wasmpdfmetadata_pdfVersion: (a: number) => [number, number];
|
|
2997
3007
|
export const wasmpdfmetadata_producer: (a: number) => [number, number];
|
|
2998
3008
|
export const wasmpdfmetadata_scannedConfidence: (a: number) => number;
|
|
2999
3009
|
export const wasmpdfmetadata_scannedPages: (a: number) => [number, number];
|
|
3010
|
+
export const wasmpdfmetadata_set_fabricatedTextPages: (a: number, b: number, c: number) => void;
|
|
3000
3011
|
export const wasmpdfmetadata_set_height: (a: number, b: number, c: bigint) => void;
|
|
3012
|
+
export const wasmpdfmetadata_set_implausibleTextPages: (a: number, b: number, c: number) => void;
|
|
3001
3013
|
export const wasmpdfmetadata_set_isEncrypted: (a: number, b: number) => void;
|
|
3002
3014
|
export const wasmpdfmetadata_set_layoutGateReasons: (a: number, b: number, c: number) => void;
|
|
3003
3015
|
export const wasmpdfmetadata_set_layoutGatedPages: (a: number, b: number, c: number) => void;
|
|
@@ -3821,9 +3833,9 @@ export const xbergengine_ner: (a: number, b: number, c: number, d: any) => any;
|
|
|
3821
3833
|
export const xbergengine_new: (a: any, b: any) => [number, number, number];
|
|
3822
3834
|
export const qcms_enable_iccv4: () => void;
|
|
3823
3835
|
export const xbergengine_ocr: (a: number, b: number, c: number, d: any) => any;
|
|
3824
|
-
export const
|
|
3825
|
-
export const
|
|
3826
|
-
export const
|
|
3836
|
+
export const wasm_bindgen__convert__closures_____invoke__h1752b33118c61bf6: (a: number, b: number, c: any, d: any) => void;
|
|
3837
|
+
export const wasm_bindgen__convert__closures_____invoke__h58dcb4b03347de73: (a: number, b: number, c: any) => [number, number];
|
|
3838
|
+
export const wasm_bindgen__convert__closures_____invoke__hc0b53db039d89c01: (a: number, b: number) => void;
|
|
3827
3839
|
export const __wbindgen_malloc_command_export: (a: number, b: number) => number;
|
|
3828
3840
|
export const __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
|
|
3829
3841
|
export const __wbindgen_exn_store_command_export: (a: number) => void;
|