@xberg-io/xberg-wasm 1.3.0 → 1.3.2
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 +110 -13
- package/pkg/web/xberg_wasm.js +387 -36
- package/pkg/web/xberg_wasm_bg.wasm +2 -2
- package/pkg/web/xberg_wasm_bg.wasm.d.ts +34 -4
package/package.json
CHANGED
package/pkg/web/package.json
CHANGED
package/pkg/web/xberg_wasm.d.ts
CHANGED
|
@@ -714,6 +714,15 @@ export enum WasmCallMode {
|
|
|
714
714
|
TextPlusVision = 2,
|
|
715
715
|
}
|
|
716
716
|
|
|
717
|
+
/**
|
|
718
|
+
* How a generated image caption interacts with existing alternate text.
|
|
719
|
+
*/
|
|
720
|
+
export enum WasmCaptionAltTextMode {
|
|
721
|
+
Preserve = 0,
|
|
722
|
+
Combine = 1,
|
|
723
|
+
Replace = 2,
|
|
724
|
+
}
|
|
725
|
+
|
|
717
726
|
/**
|
|
718
727
|
* Configuration for the VLM captioning post-processor.
|
|
719
728
|
*/
|
|
@@ -728,7 +737,9 @@ export class WasmCaptioningConfig {
|
|
|
728
737
|
*/
|
|
729
738
|
static defaultMinImageArea(): number;
|
|
730
739
|
static default(): WasmCaptioningConfig;
|
|
731
|
-
constructor(llm: WasmLlmConfig, minImageArea: number, prompt?: string | null);
|
|
740
|
+
constructor(llm: WasmLlmConfig, minImageArea: number, altText?: WasmCaptionAltTextMode | null, prompt?: string | null);
|
|
741
|
+
get altText(): string;
|
|
742
|
+
set altText(value: WasmCaptionAltTextMode);
|
|
732
743
|
llm: WasmLlmConfig;
|
|
733
744
|
minImageArea: number;
|
|
734
745
|
get prompt(): string | undefined;
|
|
@@ -773,7 +784,7 @@ export class WasmChunk {
|
|
|
773
784
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
774
785
|
* the generated setter borrows and leaves your handle alive.
|
|
775
786
|
*/
|
|
776
|
-
constructor(content: string, chunkType: WasmChunkType, metadata: WasmChunkMetadata, embedding?: Float32Array | null, sparseEmbedding?: WasmSparseEmbedding | null, lateInteraction?: WasmMultiVectorEmbedding | null);
|
|
787
|
+
constructor(content: string, chunkType: WasmChunkType | null | undefined, metadata: WasmChunkMetadata, embedding?: Float32Array | null, sparseEmbedding?: WasmSparseEmbedding | null, lateInteraction?: WasmMultiVectorEmbedding | null);
|
|
777
788
|
get chunkType(): string;
|
|
778
789
|
set chunkType(value: WasmChunkType);
|
|
779
790
|
content: string;
|
|
@@ -1840,7 +1851,7 @@ export class WasmDocumentNode {
|
|
|
1840
1851
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1841
1852
|
* the generated setter borrows and leaves your handle alive.
|
|
1842
1853
|
*/
|
|
1843
|
-
constructor(id: string, content: any, children: Uint32Array, contentLayer: WasmContentLayer, annotations: WasmTextAnnotation[], parent?: number | null, page?: number | null, pageEnd?: number | null, bbox?: WasmBoundingBox | null, attributes?: any | null);
|
|
1854
|
+
constructor(id: string, content: any, children: Uint32Array, contentLayer: WasmContentLayer | null | undefined, annotations: WasmTextAnnotation[], parent?: number | null, page?: number | null, pageEnd?: number | null, bbox?: WasmBoundingBox | null, attributes?: any | null);
|
|
1844
1855
|
annotations: WasmTextAnnotation[];
|
|
1845
1856
|
get attributes(): any | undefined;
|
|
1846
1857
|
set attributes(value: any | null | undefined);
|
|
@@ -2394,6 +2405,31 @@ export enum WasmExecutionProviderType {
|
|
|
2394
2405
|
TensorRt = 4,
|
|
2395
2406
|
}
|
|
2396
2407
|
|
|
2408
|
+
/**
|
|
2409
|
+
* One finding reported by an external content-inspection engine.
|
|
2410
|
+
*
|
|
2411
|
+
* Unknown fields are ignored, so an engine's raw output can be passed as is.
|
|
2412
|
+
* Presidio, AWS Comprehend, Azure Language, and GCP DLP payload fields are
|
|
2413
|
+
* accepted as aliases. GCP's ordered likelihood buckets are normalized to
|
|
2414
|
+
* evenly spaced scores from `0.0` through `1.0`; `LIKELIHOOD_UNSPECIFIED`
|
|
2415
|
+
* maps to `0.5`, matching GCP's documented `POSSIBLE` default.
|
|
2416
|
+
*/
|
|
2417
|
+
export class WasmExternalRedactionFinding {
|
|
2418
|
+
free(): void;
|
|
2419
|
+
[Symbol.dispose](): void;
|
|
2420
|
+
static default(): WasmExternalRedactionFinding;
|
|
2421
|
+
constructor(label?: string | null, text?: string | null, start?: number | null, end?: number | null, score?: number | null);
|
|
2422
|
+
get end(): number | undefined;
|
|
2423
|
+
set end(value: number | null | undefined);
|
|
2424
|
+
label: string;
|
|
2425
|
+
get score(): number | undefined;
|
|
2426
|
+
set score(value: number | null | undefined);
|
|
2427
|
+
get start(): number | undefined;
|
|
2428
|
+
set start(value: number | null | undefined);
|
|
2429
|
+
get text(): string | undefined;
|
|
2430
|
+
set text(value: string | null | undefined);
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2397
2433
|
/**
|
|
2398
2434
|
* Unified extraction input for all public extraction entry points.
|
|
2399
2435
|
*/
|
|
@@ -2777,7 +2813,7 @@ export class WasmExtractionConfig {
|
|
|
2777
2813
|
* - `keywords`: the n-gram range contains positive, ordered bounds and `min_score` is a
|
|
2778
2814
|
* finite `[0.0, 1.0]` value.
|
|
2779
2815
|
* - `layout`: `confidence_threshold`, when set, is a finite `[0.0, 1.0]` value.
|
|
2780
|
-
* - `redaction`: custom terms
|
|
2816
|
+
* - `redaction`: custom terms, patterns, and external findings are valid.
|
|
2781
2817
|
* - `pdf_options`: hierarchy cluster counts and margin fractions are in their supported ranges.
|
|
2782
2818
|
* - every nested LLM config: sampling ranges and target-specific authentication support.
|
|
2783
2819
|
*
|
|
@@ -4842,6 +4878,7 @@ export class WasmOcrConfig {
|
|
|
4842
4878
|
[Symbol.dispose](): void;
|
|
4843
4879
|
clearAcceleration(): void;
|
|
4844
4880
|
clearElementConfig(): void;
|
|
4881
|
+
clearPaddleOcrSettings(): void;
|
|
4845
4882
|
clearPipeline(): void;
|
|
4846
4883
|
clearQualityThresholds(): void;
|
|
4847
4884
|
clearSecurityLimits(): void;
|
|
@@ -4849,13 +4886,13 @@ export class WasmOcrConfig {
|
|
|
4849
4886
|
clearVlmConfig(): void;
|
|
4850
4887
|
static default(): WasmOcrConfig;
|
|
4851
4888
|
/**
|
|
4852
|
-
* Takes ownership of `tesseractConfig`, `elementConfig`, `qualityThresholds`, `pipeline`, `vlmConfig`, `acceleration`, `securityLimits`.
|
|
4889
|
+
* Takes ownership of `tesseractConfig`, `paddleOcrSettings`, `elementConfig`, `qualityThresholds`, `pipeline`, `vlmConfig`, `acceleration`, `securityLimits`.
|
|
4853
4890
|
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
4854
4891
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
4855
4892
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
4856
4893
|
* the generated setter borrows and leaves your handle alive.
|
|
4857
4894
|
*/
|
|
4858
|
-
constructor(enabled?: boolean | null, backend?: string | null, language?: string[] | null, autoRotate?: boolean | null, vlmFallback?: any | null, numericRepair?: boolean | null, tesseractConfig?: WasmTesseractConfig | null, outputFormat?: any | null, paddleOcrConfig?: any | null, backendOptions?: any | null, elementConfig?: WasmOcrElementConfig | null, qualityThresholds?: WasmOcrQualityThresholds | null, pipeline?: WasmOcrPipelineConfig | null, vlmConfig?: WasmLlmConfig | null, vlmPrompt?: string | null, acceleration?: WasmAccelerationConfig | null, securityLimits?: WasmSecurityLimits | null, tessdataBytes?: any | null, tessdataPath?: string | null);
|
|
4895
|
+
constructor(enabled?: boolean | null, backend?: string | null, language?: string[] | null, autoRotate?: boolean | null, vlmFallback?: any | null, numericRepair?: boolean | null, tesseractConfig?: WasmTesseractConfig | null, outputFormat?: any | null, paddleOcrConfig?: any | null, paddleOcrSettings?: WasmPaddleOcrConfig | null, backendOptions?: any | null, elementConfig?: WasmOcrElementConfig | null, qualityThresholds?: WasmOcrQualityThresholds | null, pipeline?: WasmOcrPipelineConfig | null, vlmConfig?: WasmLlmConfig | null, vlmPrompt?: string | null, acceleration?: WasmAccelerationConfig | null, securityLimits?: WasmSecurityLimits | null, tessdataBytes?: any | null, tessdataPath?: string | null);
|
|
4859
4896
|
get acceleration(): WasmAccelerationConfig | undefined;
|
|
4860
4897
|
set acceleration(value: WasmAccelerationConfig);
|
|
4861
4898
|
autoRotate: boolean;
|
|
@@ -4871,6 +4908,8 @@ export class WasmOcrConfig {
|
|
|
4871
4908
|
set outputFormat(value: WasmOutputFormat | null | undefined);
|
|
4872
4909
|
get paddleOcrConfig(): any | undefined;
|
|
4873
4910
|
set paddleOcrConfig(value: any | null | undefined);
|
|
4911
|
+
get paddleOcrSettings(): WasmPaddleOcrConfig | undefined;
|
|
4912
|
+
set paddleOcrSettings(value: WasmPaddleOcrConfig);
|
|
4874
4913
|
get pipeline(): WasmOcrPipelineConfig | undefined;
|
|
4875
4914
|
set pipeline(value: WasmOcrPipelineConfig);
|
|
4876
4915
|
get qualityThresholds(): WasmOcrQualityThresholds | undefined;
|
|
@@ -5016,17 +5055,18 @@ export class WasmOcrPipelineConfig {
|
|
|
5016
5055
|
export class WasmOcrPipelineStage {
|
|
5017
5056
|
free(): void;
|
|
5018
5057
|
[Symbol.dispose](): void;
|
|
5058
|
+
clearPaddleOcrSettings(): void;
|
|
5019
5059
|
clearTesseractConfig(): void;
|
|
5020
5060
|
clearVlmConfig(): void;
|
|
5021
5061
|
static default(): WasmOcrPipelineStage;
|
|
5022
5062
|
/**
|
|
5023
|
-
* Takes ownership of `tesseractConfig`, `vlmConfig`.
|
|
5063
|
+
* Takes ownership of `tesseractConfig`, `paddleOcrSettings`, `vlmConfig`.
|
|
5024
5064
|
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
5025
5065
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
5026
5066
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
5027
5067
|
* the generated setter borrows and leaves your handle alive.
|
|
5028
5068
|
*/
|
|
5029
|
-
constructor(backend: string, priority: number, language?: string[] | null, tesseractConfig?: WasmTesseractConfig | null, paddleOcrConfig?: any | null, vlmConfig?: WasmLlmConfig | null, backendOptions?: any | null);
|
|
5069
|
+
constructor(backend: string, priority: number, language?: string[] | null, tesseractConfig?: WasmTesseractConfig | null, paddleOcrConfig?: any | null, paddleOcrSettings?: WasmPaddleOcrConfig | null, vlmConfig?: WasmLlmConfig | null, backendOptions?: any | null);
|
|
5030
5070
|
get backendOptions(): any | undefined;
|
|
5031
5071
|
set backendOptions(value: any | null | undefined);
|
|
5032
5072
|
backend: string;
|
|
@@ -5034,6 +5074,8 @@ export class WasmOcrPipelineStage {
|
|
|
5034
5074
|
set language(value: string[] | null | undefined);
|
|
5035
5075
|
get paddleOcrConfig(): any | undefined;
|
|
5036
5076
|
set paddleOcrConfig(value: any | null | undefined);
|
|
5077
|
+
get paddleOcrSettings(): WasmPaddleOcrConfig | undefined;
|
|
5078
|
+
set paddleOcrSettings(value: WasmPaddleOcrConfig);
|
|
5037
5079
|
priority: number;
|
|
5038
5080
|
get tesseractConfig(): WasmTesseractConfig | undefined;
|
|
5039
5081
|
set tesseractConfig(value: WasmTesseractConfig);
|
|
@@ -6371,7 +6413,7 @@ export class WasmRedactionConfig {
|
|
|
6371
6413
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
6372
6414
|
* the generated setter borrows and leaves your handle alive.
|
|
6373
6415
|
*/
|
|
6374
|
-
constructor(categories?: any | null, strategy?: WasmRedactionStrategy | null, preserveOffsets?: boolean | null, customTerms?: WasmRedactionTerm[] | null, customPatterns?: WasmRedactionPattern[] | null, ner?: WasmNerConfig | null);
|
|
6416
|
+
constructor(categories?: any | null, strategy?: WasmRedactionStrategy | null, preserveOffsets?: boolean | null, customTerms?: WasmRedactionTerm[] | null, customPatterns?: WasmRedactionPattern[] | null, findings?: WasmExternalRedactionFinding[] | null, findingsOffsetEncoding?: WasmRedactionOffsetEncoding | null, ner?: WasmNerConfig | null, minScore?: number | null, findingsPath?: string | null);
|
|
6375
6417
|
/**
|
|
6376
6418
|
* Validate user-supplied terms and patterns at config-construction time.
|
|
6377
6419
|
*
|
|
@@ -6385,6 +6427,13 @@ export class WasmRedactionConfig {
|
|
|
6385
6427
|
categories: any;
|
|
6386
6428
|
customPatterns: WasmRedactionPattern[];
|
|
6387
6429
|
customTerms: WasmRedactionTerm[];
|
|
6430
|
+
get findingsOffsetEncoding(): string;
|
|
6431
|
+
set findingsOffsetEncoding(value: WasmRedactionOffsetEncoding);
|
|
6432
|
+
get findingsPath(): string | undefined;
|
|
6433
|
+
set findingsPath(value: string | null | undefined);
|
|
6434
|
+
findings: WasmExternalRedactionFinding[];
|
|
6435
|
+
get minScore(): number | undefined;
|
|
6436
|
+
set minScore(value: number | null | undefined);
|
|
6388
6437
|
get ner(): WasmNerConfig | undefined;
|
|
6389
6438
|
set ner(value: WasmNerConfig);
|
|
6390
6439
|
preserveOffsets: boolean;
|
|
@@ -6408,6 +6457,15 @@ export class WasmRedactionFinding {
|
|
|
6408
6457
|
set strategy(value: WasmRedactionStrategy);
|
|
6409
6458
|
}
|
|
6410
6459
|
|
|
6460
|
+
/**
|
|
6461
|
+
* Unit that an external finding's `start` / `end` offsets count in.
|
|
6462
|
+
*/
|
|
6463
|
+
export enum WasmRedactionOffsetEncoding {
|
|
6464
|
+
Utf8Bytes = 0,
|
|
6465
|
+
UnicodeCodePoints = 1,
|
|
6466
|
+
Utf16CodeUnits = 2,
|
|
6467
|
+
}
|
|
6468
|
+
|
|
6411
6469
|
/**
|
|
6412
6470
|
* One user-supplied regex pattern to redact.
|
|
6413
6471
|
*
|
|
@@ -8038,6 +8096,15 @@ export function ocrBackendSupportsLanguageFor(backend: string, language: string,
|
|
|
8038
8096
|
*/
|
|
8039
8097
|
export function pdfPageCount(pdf_bytes: Uint8Array, password?: string | null): number;
|
|
8040
8098
|
|
|
8099
|
+
/**
|
|
8100
|
+
* Redact an owned document using a JSON array or JSON Lines payload from an external inspection engine.
|
|
8101
|
+
*
|
|
8102
|
+
* The payload is parsed in Rust so vendor aliases and nested fields remain intact across language bindings.
|
|
8103
|
+
* `offset_encoding` defaults to `unicode_code_points` and `max_findings` defaults to 10,000 when omitted.
|
|
8104
|
+
* Unknown encodings return a validation error.
|
|
8105
|
+
*/
|
|
8106
|
+
export function redactExternal(document: WasmExtractedDocument | null | undefined, config: WasmRedactionConfig | null | undefined, findings_json: string, offset_encoding?: string | null, max_findings?: number | null): Promise<WasmExtractedDocument>;
|
|
8107
|
+
|
|
8041
8108
|
export function registerDocumentExtractor(backend: any): void;
|
|
8042
8109
|
|
|
8043
8110
|
export function registerEmbeddingBackend(backend: any): void;
|
|
@@ -8168,6 +8235,7 @@ export interface InitOutput {
|
|
|
8168
8235
|
readonly __wbg_wasmexcelmetadata_free: (a: number, b: number) => void;
|
|
8169
8236
|
readonly __wbg_wasmexcelsheet_free: (a: number, b: number) => void;
|
|
8170
8237
|
readonly __wbg_wasmexcelworkbook_free: (a: number, b: number) => void;
|
|
8238
|
+
readonly __wbg_wasmexternalredactionfinding_free: (a: number, b: number) => void;
|
|
8171
8239
|
readonly __wbg_wasmextracteddocument_free: (a: number, b: number) => void;
|
|
8172
8240
|
readonly __wbg_wasmextractedimage_free: (a: number, b: number) => void;
|
|
8173
8241
|
readonly __wbg_wasmextracteduri_free: (a: number, b: number) => void;
|
|
@@ -8374,6 +8442,7 @@ export interface InitOutput {
|
|
|
8374
8442
|
readonly ocrBackendSupportsLanguage: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
8375
8443
|
readonly ocrBackendSupportsLanguageFor: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
8376
8444
|
readonly pdfPageCount: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
8445
|
+
readonly redactExternal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
8377
8446
|
readonly registerDocumentExtractor: (a: any) => [number, number];
|
|
8378
8447
|
readonly registerEmbeddingBackend: (a: any) => [number, number];
|
|
8379
8448
|
readonly registerOcrBackend: (a: any) => [number, number];
|
|
@@ -8555,12 +8624,14 @@ export interface InitOutput {
|
|
|
8555
8624
|
readonly wasmcachestats_set_totalSizeMb: (a: number, b: number) => void;
|
|
8556
8625
|
readonly wasmcachestats_totalFiles: (a: number) => number;
|
|
8557
8626
|
readonly wasmcachestats_totalSizeMb: (a: number) => number;
|
|
8627
|
+
readonly wasmcaptioningconfig_altText: (a: number) => [number, number];
|
|
8558
8628
|
readonly wasmcaptioningconfig_default: () => number;
|
|
8559
8629
|
readonly wasmcaptioningconfig_defaultMinImageArea: () => number;
|
|
8560
8630
|
readonly wasmcaptioningconfig_llm: (a: number) => number;
|
|
8561
8631
|
readonly wasmcaptioningconfig_minImageArea: (a: number) => number;
|
|
8562
|
-
readonly wasmcaptioningconfig_new: (a: number, b: number, c: number, d: number) => number;
|
|
8632
|
+
readonly wasmcaptioningconfig_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
8563
8633
|
readonly wasmcaptioningconfig_prompt: (a: number) => [number, number];
|
|
8634
|
+
readonly wasmcaptioningconfig_set_altText: (a: number, b: number) => void;
|
|
8564
8635
|
readonly wasmcaptioningconfig_set_llm: (a: number, b: number) => void;
|
|
8565
8636
|
readonly wasmcaptioningconfig_set_minImageArea: (a: number, b: number) => void;
|
|
8566
8637
|
readonly wasmcaptioningconfig_set_prompt: (a: number, b: number, c: number) => void;
|
|
@@ -9482,6 +9553,18 @@ export interface InitOutput {
|
|
|
9482
9553
|
readonly wasmexcelworkbook_set_revisions: (a: number, b: number, c: number) => void;
|
|
9483
9554
|
readonly wasmexcelworkbook_set_sheets: (a: number, b: number, c: number) => void;
|
|
9484
9555
|
readonly wasmexcelworkbook_sheets: (a: number) => [number, number];
|
|
9556
|
+
readonly wasmexternalredactionfinding_default: () => number;
|
|
9557
|
+
readonly wasmexternalredactionfinding_end: (a: number) => number;
|
|
9558
|
+
readonly wasmexternalredactionfinding_label: (a: number) => [number, number];
|
|
9559
|
+
readonly wasmexternalredactionfinding_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
9560
|
+
readonly wasmexternalredactionfinding_score: (a: number) => number;
|
|
9561
|
+
readonly wasmexternalredactionfinding_set_end: (a: number, b: number) => void;
|
|
9562
|
+
readonly wasmexternalredactionfinding_set_label: (a: number, b: number, c: number) => void;
|
|
9563
|
+
readonly wasmexternalredactionfinding_set_score: (a: number, b: number) => void;
|
|
9564
|
+
readonly wasmexternalredactionfinding_set_start: (a: number, b: number) => void;
|
|
9565
|
+
readonly wasmexternalredactionfinding_set_text: (a: number, b: number, c: number) => void;
|
|
9566
|
+
readonly wasmexternalredactionfinding_start: (a: number) => number;
|
|
9567
|
+
readonly wasmexternalredactionfinding_text: (a: number) => [number, number];
|
|
9485
9568
|
readonly wasmextracteddocument_annotations: (a: number) => any;
|
|
9486
9569
|
readonly wasmextracteddocument_children: (a: number) => any;
|
|
9487
9570
|
readonly wasmextracteddocument_chunks: (a: number) => any;
|
|
@@ -10756,6 +10839,7 @@ export interface InitOutput {
|
|
|
10756
10839
|
readonly wasmocrconfig_backendOptions: (a: number) => any;
|
|
10757
10840
|
readonly wasmocrconfig_clearAcceleration: (a: number) => void;
|
|
10758
10841
|
readonly wasmocrconfig_clearElementConfig: (a: number) => void;
|
|
10842
|
+
readonly wasmocrconfig_clearPaddleOcrSettings: (a: number) => void;
|
|
10759
10843
|
readonly wasmocrconfig_clearPipeline: (a: number) => void;
|
|
10760
10844
|
readonly wasmocrconfig_clearQualityThresholds: (a: number) => void;
|
|
10761
10845
|
readonly wasmocrconfig_clearSecurityLimits: (a: number) => void;
|
|
@@ -10765,10 +10849,11 @@ export interface InitOutput {
|
|
|
10765
10849
|
readonly wasmocrconfig_elementConfig: (a: number) => number;
|
|
10766
10850
|
readonly wasmocrconfig_enabled: (a: number) => number;
|
|
10767
10851
|
readonly wasmocrconfig_language: (a: number) => [number, number];
|
|
10768
|
-
readonly wasmocrconfig_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) => number;
|
|
10852
|
+
readonly wasmocrconfig_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) => number;
|
|
10769
10853
|
readonly wasmocrconfig_numericRepair: (a: number) => number;
|
|
10770
10854
|
readonly wasmocrconfig_outputFormat: (a: number) => any;
|
|
10771
10855
|
readonly wasmocrconfig_paddleOcrConfig: (a: number) => any;
|
|
10856
|
+
readonly wasmocrconfig_paddleOcrSettings: (a: number) => number;
|
|
10772
10857
|
readonly wasmocrconfig_pipeline: (a: number) => number;
|
|
10773
10858
|
readonly wasmocrconfig_qualityThresholds: (a: number) => number;
|
|
10774
10859
|
readonly wasmocrconfig_securityLimits: (a: number) => number;
|
|
@@ -10782,6 +10867,7 @@ export interface InitOutput {
|
|
|
10782
10867
|
readonly wasmocrconfig_set_numericRepair: (a: number, b: number) => void;
|
|
10783
10868
|
readonly wasmocrconfig_set_outputFormat: (a: number, b: number) => void;
|
|
10784
10869
|
readonly wasmocrconfig_set_paddleOcrConfig: (a: number, b: number) => void;
|
|
10870
|
+
readonly wasmocrconfig_set_paddleOcrSettings: (a: number, b: number) => void;
|
|
10785
10871
|
readonly wasmocrconfig_set_pipeline: (a: number, b: number) => void;
|
|
10786
10872
|
readonly wasmocrconfig_set_qualityThresholds: (a: number, b: number) => void;
|
|
10787
10873
|
readonly wasmocrconfig_set_securityLimits: (a: number, b: number) => void;
|
|
@@ -10860,17 +10946,20 @@ export interface InitOutput {
|
|
|
10860
10946
|
readonly wasmocrpipelineconfig_stages: (a: number) => [number, number];
|
|
10861
10947
|
readonly wasmocrpipelinestage_backend: (a: number) => [number, number];
|
|
10862
10948
|
readonly wasmocrpipelinestage_backendOptions: (a: number) => any;
|
|
10949
|
+
readonly wasmocrpipelinestage_clearPaddleOcrSettings: (a: number) => void;
|
|
10863
10950
|
readonly wasmocrpipelinestage_clearTesseractConfig: (a: number) => void;
|
|
10864
10951
|
readonly wasmocrpipelinestage_clearVlmConfig: (a: number) => void;
|
|
10865
10952
|
readonly wasmocrpipelinestage_default: () => number;
|
|
10866
10953
|
readonly wasmocrpipelinestage_language: (a: number) => [number, number];
|
|
10867
|
-
readonly wasmocrpipelinestage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
10954
|
+
readonly wasmocrpipelinestage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
10868
10955
|
readonly wasmocrpipelinestage_paddleOcrConfig: (a: number) => any;
|
|
10956
|
+
readonly wasmocrpipelinestage_paddleOcrSettings: (a: number) => number;
|
|
10869
10957
|
readonly wasmocrpipelinestage_priority: (a: number) => number;
|
|
10870
10958
|
readonly wasmocrpipelinestage_set_backend: (a: number, b: number, c: number) => void;
|
|
10871
10959
|
readonly wasmocrpipelinestage_set_backendOptions: (a: number, b: number) => void;
|
|
10872
10960
|
readonly wasmocrpipelinestage_set_language: (a: number, b: number, c: number) => void;
|
|
10873
10961
|
readonly wasmocrpipelinestage_set_paddleOcrConfig: (a: number, b: number) => void;
|
|
10962
|
+
readonly wasmocrpipelinestage_set_paddleOcrSettings: (a: number, b: number) => void;
|
|
10874
10963
|
readonly wasmocrpipelinestage_set_priority: (a: number, b: number) => void;
|
|
10875
10964
|
readonly wasmocrpipelinestage_set_tesseractConfig: (a: number, b: number) => void;
|
|
10876
10965
|
readonly wasmocrpipelinestage_set_vlmConfig: (a: number, b: number) => void;
|
|
@@ -11499,12 +11588,20 @@ export interface InitOutput {
|
|
|
11499
11588
|
readonly wasmredactionconfig_customPatterns: (a: number) => [number, number];
|
|
11500
11589
|
readonly wasmredactionconfig_customTerms: (a: number) => [number, number];
|
|
11501
11590
|
readonly wasmredactionconfig_default: () => number;
|
|
11591
|
+
readonly wasmredactionconfig_findings: (a: number) => [number, number];
|
|
11592
|
+
readonly wasmredactionconfig_findingsOffsetEncoding: (a: number) => [number, number];
|
|
11593
|
+
readonly wasmredactionconfig_findingsPath: (a: number) => [number, number];
|
|
11594
|
+
readonly wasmredactionconfig_minScore: (a: number) => number;
|
|
11502
11595
|
readonly wasmredactionconfig_ner: (a: number) => number;
|
|
11503
|
-
readonly wasmredactionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
11596
|
+
readonly wasmredactionconfig_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) => number;
|
|
11504
11597
|
readonly wasmredactionconfig_preserveOffsets: (a: number) => number;
|
|
11505
11598
|
readonly wasmredactionconfig_set_categories: (a: number, b: any) => void;
|
|
11506
11599
|
readonly wasmredactionconfig_set_customPatterns: (a: number, b: number, c: number) => void;
|
|
11507
11600
|
readonly wasmredactionconfig_set_customTerms: (a: number, b: number, c: number) => void;
|
|
11601
|
+
readonly wasmredactionconfig_set_findings: (a: number, b: number, c: number) => void;
|
|
11602
|
+
readonly wasmredactionconfig_set_findingsOffsetEncoding: (a: number, b: number) => void;
|
|
11603
|
+
readonly wasmredactionconfig_set_findingsPath: (a: number, b: number, c: number) => void;
|
|
11604
|
+
readonly wasmredactionconfig_set_minScore: (a: number, b: number) => void;
|
|
11508
11605
|
readonly wasmredactionconfig_set_ner: (a: number, b: number) => void;
|
|
11509
11606
|
readonly wasmredactionconfig_set_preserveOffsets: (a: number, b: number) => void;
|
|
11510
11607
|
readonly wasmredactionconfig_set_strategy: (a: number, b: number) => void;
|
package/pkg/web/xberg_wasm.js
CHANGED
|
@@ -1977,6 +1977,16 @@ export const WasmCallMode = Object.freeze({
|
|
|
1977
1977
|
TextPlusVision: 2, "2": "TextPlusVision",
|
|
1978
1978
|
});
|
|
1979
1979
|
|
|
1980
|
+
/**
|
|
1981
|
+
* How a generated image caption interacts with existing alternate text.
|
|
1982
|
+
* @enum {0 | 1 | 2}
|
|
1983
|
+
*/
|
|
1984
|
+
export const WasmCaptionAltTextMode = Object.freeze({
|
|
1985
|
+
Preserve: 0, "0": "Preserve",
|
|
1986
|
+
Combine: 1, "1": "Combine",
|
|
1987
|
+
Replace: 2, "2": "Replace",
|
|
1988
|
+
});
|
|
1989
|
+
|
|
1980
1990
|
/**
|
|
1981
1991
|
* Configuration for the VLM captioning post-processor.
|
|
1982
1992
|
*/
|
|
@@ -1997,6 +2007,21 @@ export class WasmCaptioningConfig {
|
|
|
1997
2007
|
const ptr = this.__destroy_into_raw();
|
|
1998
2008
|
wasm.__wbg_wasmcaptioningconfig_free(ptr, 0);
|
|
1999
2009
|
}
|
|
2010
|
+
/**
|
|
2011
|
+
* @returns {string}
|
|
2012
|
+
*/
|
|
2013
|
+
get altText() {
|
|
2014
|
+
let deferred1_0;
|
|
2015
|
+
let deferred1_1;
|
|
2016
|
+
try {
|
|
2017
|
+
const ret = wasm.wasmcaptioningconfig_altText(this.__wbg_ptr);
|
|
2018
|
+
deferred1_0 = ret[0];
|
|
2019
|
+
deferred1_1 = ret[1];
|
|
2020
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2021
|
+
} finally {
|
|
2022
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2000
2025
|
/**
|
|
2001
2026
|
* Default `Self.min_image_area`: 1000 px.
|
|
2002
2027
|
*
|
|
@@ -2032,13 +2057,14 @@ export class WasmCaptioningConfig {
|
|
|
2032
2057
|
/**
|
|
2033
2058
|
* @param {WasmLlmConfig} llm
|
|
2034
2059
|
* @param {number} minImageArea
|
|
2060
|
+
* @param {WasmCaptionAltTextMode | null} [altText]
|
|
2035
2061
|
* @param {string | null} [prompt]
|
|
2036
2062
|
*/
|
|
2037
|
-
constructor(llm, minImageArea, prompt) {
|
|
2063
|
+
constructor(llm, minImageArea, altText, prompt) {
|
|
2038
2064
|
_assertClass(llm, WasmLlmConfig);
|
|
2039
2065
|
var ptr0 = isLikeNone(prompt) ? 0 : passStringToWasm0(prompt, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
2040
2066
|
var len0 = WASM_VECTOR_LEN;
|
|
2041
|
-
const ret = wasm.wasmcaptioningconfig_new(llm.__wbg_ptr, minImageArea, ptr0, len0);
|
|
2067
|
+
const ret = wasm.wasmcaptioningconfig_new(llm.__wbg_ptr, minImageArea, isLikeNone(altText) ? 3 : altText, ptr0, len0);
|
|
2042
2068
|
this.__wbg_ptr = ret;
|
|
2043
2069
|
WasmCaptioningConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
2044
2070
|
return this;
|
|
@@ -2055,6 +2081,12 @@ export class WasmCaptioningConfig {
|
|
|
2055
2081
|
}
|
|
2056
2082
|
return v1;
|
|
2057
2083
|
}
|
|
2084
|
+
/**
|
|
2085
|
+
* @param {WasmCaptionAltTextMode} value
|
|
2086
|
+
*/
|
|
2087
|
+
set altText(value) {
|
|
2088
|
+
wasm.wasmcaptioningconfig_set_altText(this.__wbg_ptr, value);
|
|
2089
|
+
}
|
|
2058
2090
|
/**
|
|
2059
2091
|
* @param {WasmLlmConfig} value
|
|
2060
2092
|
*/
|
|
@@ -2313,7 +2345,7 @@ export class WasmChunk {
|
|
|
2313
2345
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
2314
2346
|
* the generated setter borrows and leaves your handle alive.
|
|
2315
2347
|
* @param {string} content
|
|
2316
|
-
* @param {WasmChunkType} chunkType
|
|
2348
|
+
* @param {WasmChunkType | null | undefined} chunkType
|
|
2317
2349
|
* @param {WasmChunkMetadata} metadata
|
|
2318
2350
|
* @param {Float32Array | null} [embedding]
|
|
2319
2351
|
* @param {WasmSparseEmbedding | null} [sparseEmbedding]
|
|
@@ -2335,7 +2367,7 @@ export class WasmChunk {
|
|
|
2335
2367
|
_assertClass(lateInteraction, WasmMultiVectorEmbedding);
|
|
2336
2368
|
ptr3 = lateInteraction.__destroy_into_raw();
|
|
2337
2369
|
}
|
|
2338
|
-
const ret = wasm.wasmchunk_new(ptr0, len0, chunkType, metadata.__wbg_ptr, ptr1, len1, ptr2, ptr3);
|
|
2370
|
+
const ret = wasm.wasmchunk_new(ptr0, len0, isLikeNone(chunkType) ? 16 : chunkType, metadata.__wbg_ptr, ptr1, len1, ptr2, ptr3);
|
|
2339
2371
|
this.__wbg_ptr = ret;
|
|
2340
2372
|
WasmChunkFinalization.register(this, this.__wbg_ptr, this);
|
|
2341
2373
|
return this;
|
|
@@ -8928,7 +8960,7 @@ export class WasmDocumentNode {
|
|
|
8928
8960
|
* @param {string} id
|
|
8929
8961
|
* @param {any} content
|
|
8930
8962
|
* @param {Uint32Array} children
|
|
8931
|
-
* @param {WasmContentLayer} contentLayer
|
|
8963
|
+
* @param {WasmContentLayer | null | undefined} contentLayer
|
|
8932
8964
|
* @param {WasmTextAnnotation[]} annotations
|
|
8933
8965
|
* @param {number | null} [parent]
|
|
8934
8966
|
* @param {number | null} [page]
|
|
@@ -8948,7 +8980,7 @@ export class WasmDocumentNode {
|
|
|
8948
8980
|
_assertClass(bbox, WasmBoundingBox);
|
|
8949
8981
|
ptr3 = bbox.__destroy_into_raw();
|
|
8950
8982
|
}
|
|
8951
|
-
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, contentLayer, ptr2, len2, isLikeNone(parent) ? Number.MAX_SAFE_INTEGER : (parent) >>> 0, isLikeNone(page) ? Number.MAX_SAFE_INTEGER : (page) >>> 0, isLikeNone(pageEnd) ? Number.MAX_SAFE_INTEGER : (pageEnd) >>> 0, ptr3, isLikeNone(attributes) ? 0 : addToExternrefTable0(attributes));
|
|
8983
|
+
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, isLikeNone(contentLayer) ? 4 : contentLayer, ptr2, len2, isLikeNone(parent) ? Number.MAX_SAFE_INTEGER : (parent) >>> 0, isLikeNone(page) ? Number.MAX_SAFE_INTEGER : (page) >>> 0, isLikeNone(pageEnd) ? Number.MAX_SAFE_INTEGER : (pageEnd) >>> 0, ptr3, isLikeNone(attributes) ? 0 : addToExternrefTable0(attributes));
|
|
8952
8984
|
this.__wbg_ptr = ret;
|
|
8953
8985
|
WasmDocumentNodeFinalization.register(this, this.__wbg_ptr, this);
|
|
8954
8986
|
return this;
|
|
@@ -12220,6 +12252,147 @@ export const WasmExecutionProviderType = Object.freeze({
|
|
|
12220
12252
|
TensorRt: 4, "4": "TensorRt",
|
|
12221
12253
|
});
|
|
12222
12254
|
|
|
12255
|
+
/**
|
|
12256
|
+
* One finding reported by an external content-inspection engine.
|
|
12257
|
+
*
|
|
12258
|
+
* Unknown fields are ignored, so an engine's raw output can be passed as is.
|
|
12259
|
+
* Presidio, AWS Comprehend, Azure Language, and GCP DLP payload fields are
|
|
12260
|
+
* accepted as aliases. GCP's ordered likelihood buckets are normalized to
|
|
12261
|
+
* evenly spaced scores from `0.0` through `1.0`; `LIKELIHOOD_UNSPECIFIED`
|
|
12262
|
+
* maps to `0.5`, matching GCP's documented `POSSIBLE` default.
|
|
12263
|
+
*/
|
|
12264
|
+
export class WasmExternalRedactionFinding {
|
|
12265
|
+
static __wrap(ptr) {
|
|
12266
|
+
const obj = Object.create(WasmExternalRedactionFinding.prototype);
|
|
12267
|
+
obj.__wbg_ptr = ptr;
|
|
12268
|
+
WasmExternalRedactionFindingFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
12269
|
+
return obj;
|
|
12270
|
+
}
|
|
12271
|
+
static __unwrap(jsValue) {
|
|
12272
|
+
if (!(jsValue instanceof WasmExternalRedactionFinding)) {
|
|
12273
|
+
return 0;
|
|
12274
|
+
}
|
|
12275
|
+
return jsValue.__destroy_into_raw();
|
|
12276
|
+
}
|
|
12277
|
+
__destroy_into_raw() {
|
|
12278
|
+
const ptr = this.__wbg_ptr;
|
|
12279
|
+
this.__wbg_ptr = 0;
|
|
12280
|
+
WasmExternalRedactionFindingFinalization.unregister(this);
|
|
12281
|
+
return ptr;
|
|
12282
|
+
}
|
|
12283
|
+
free() {
|
|
12284
|
+
const ptr = this.__destroy_into_raw();
|
|
12285
|
+
wasm.__wbg_wasmexternalredactionfinding_free(ptr, 0);
|
|
12286
|
+
}
|
|
12287
|
+
/**
|
|
12288
|
+
* @returns {WasmExternalRedactionFinding}
|
|
12289
|
+
*/
|
|
12290
|
+
static default() {
|
|
12291
|
+
const ret = wasm.wasmexternalredactionfinding_default();
|
|
12292
|
+
return WasmExternalRedactionFinding.__wrap(ret);
|
|
12293
|
+
}
|
|
12294
|
+
/**
|
|
12295
|
+
* @returns {number | undefined}
|
|
12296
|
+
*/
|
|
12297
|
+
get end() {
|
|
12298
|
+
const ret = wasm.wasmexternalredactionfinding_end(this.__wbg_ptr);
|
|
12299
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
12300
|
+
}
|
|
12301
|
+
/**
|
|
12302
|
+
* @returns {string}
|
|
12303
|
+
*/
|
|
12304
|
+
get label() {
|
|
12305
|
+
let deferred1_0;
|
|
12306
|
+
let deferred1_1;
|
|
12307
|
+
try {
|
|
12308
|
+
const ret = wasm.wasmexternalredactionfinding_label(this.__wbg_ptr);
|
|
12309
|
+
deferred1_0 = ret[0];
|
|
12310
|
+
deferred1_1 = ret[1];
|
|
12311
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
12312
|
+
} finally {
|
|
12313
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
12314
|
+
}
|
|
12315
|
+
}
|
|
12316
|
+
/**
|
|
12317
|
+
* @param {string | null} [label]
|
|
12318
|
+
* @param {string | null} [text]
|
|
12319
|
+
* @param {number | null} [start]
|
|
12320
|
+
* @param {number | null} [end]
|
|
12321
|
+
* @param {number | null} [score]
|
|
12322
|
+
*/
|
|
12323
|
+
constructor(label, text, start, end, score) {
|
|
12324
|
+
var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
12325
|
+
var len0 = WASM_VECTOR_LEN;
|
|
12326
|
+
var ptr1 = isLikeNone(text) ? 0 : passStringToWasm0(text, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
12327
|
+
var len1 = WASM_VECTOR_LEN;
|
|
12328
|
+
const ret = wasm.wasmexternalredactionfinding_new(ptr0, len0, ptr1, len1, isLikeNone(start) ? Number.MAX_SAFE_INTEGER : (start) >>> 0, isLikeNone(end) ? Number.MAX_SAFE_INTEGER : (end) >>> 0, isLikeNone(score) ? Number.MAX_SAFE_INTEGER : Math.fround(score));
|
|
12329
|
+
this.__wbg_ptr = ret;
|
|
12330
|
+
WasmExternalRedactionFindingFinalization.register(this, this.__wbg_ptr, this);
|
|
12331
|
+
return this;
|
|
12332
|
+
}
|
|
12333
|
+
/**
|
|
12334
|
+
* @returns {number | undefined}
|
|
12335
|
+
*/
|
|
12336
|
+
get score() {
|
|
12337
|
+
const ret = wasm.wasmexternalredactionfinding_score(this.__wbg_ptr);
|
|
12338
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
12339
|
+
}
|
|
12340
|
+
/**
|
|
12341
|
+
* @param {number | null} [value]
|
|
12342
|
+
*/
|
|
12343
|
+
set end(value) {
|
|
12344
|
+
wasm.wasmexternalredactionfinding_set_end(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
12345
|
+
}
|
|
12346
|
+
/**
|
|
12347
|
+
* @param {string} value
|
|
12348
|
+
*/
|
|
12349
|
+
set label(value) {
|
|
12350
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
12351
|
+
const len0 = WASM_VECTOR_LEN;
|
|
12352
|
+
wasm.wasmexternalredactionfinding_set_label(this.__wbg_ptr, ptr0, len0);
|
|
12353
|
+
}
|
|
12354
|
+
/**
|
|
12355
|
+
* @param {number | null} [value]
|
|
12356
|
+
*/
|
|
12357
|
+
set score(value) {
|
|
12358
|
+
wasm.wasmexternalredactionfinding_set_score(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : Math.fround(value));
|
|
12359
|
+
}
|
|
12360
|
+
/**
|
|
12361
|
+
* @param {number | null} [value]
|
|
12362
|
+
*/
|
|
12363
|
+
set start(value) {
|
|
12364
|
+
wasm.wasmexternalredactionfinding_set_start(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
12365
|
+
}
|
|
12366
|
+
/**
|
|
12367
|
+
* @param {string | null} [value]
|
|
12368
|
+
*/
|
|
12369
|
+
set text(value) {
|
|
12370
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
12371
|
+
var len0 = WASM_VECTOR_LEN;
|
|
12372
|
+
wasm.wasmexternalredactionfinding_set_text(this.__wbg_ptr, ptr0, len0);
|
|
12373
|
+
}
|
|
12374
|
+
/**
|
|
12375
|
+
* @returns {number | undefined}
|
|
12376
|
+
*/
|
|
12377
|
+
get start() {
|
|
12378
|
+
const ret = wasm.wasmexternalredactionfinding_start(this.__wbg_ptr);
|
|
12379
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
12380
|
+
}
|
|
12381
|
+
/**
|
|
12382
|
+
* @returns {string | undefined}
|
|
12383
|
+
*/
|
|
12384
|
+
get text() {
|
|
12385
|
+
const ret = wasm.wasmexternalredactionfinding_text(this.__wbg_ptr);
|
|
12386
|
+
let v1;
|
|
12387
|
+
if (ret[0] !== 0) {
|
|
12388
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
12389
|
+
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
12390
|
+
}
|
|
12391
|
+
return v1;
|
|
12392
|
+
}
|
|
12393
|
+
}
|
|
12394
|
+
if (Symbol.dispose) WasmExternalRedactionFinding.prototype[Symbol.dispose] = WasmExternalRedactionFinding.prototype.free;
|
|
12395
|
+
|
|
12223
12396
|
/**
|
|
12224
12397
|
* Unified extraction input for all public extraction entry points.
|
|
12225
12398
|
*/
|
|
@@ -15009,7 +15182,7 @@ export class WasmExtractionConfig {
|
|
|
15009
15182
|
* - `keywords`: the n-gram range contains positive, ordered bounds and `min_score` is a
|
|
15010
15183
|
* finite `[0.0, 1.0]` value.
|
|
15011
15184
|
* - `layout`: `confidence_threshold`, when set, is a finite `[0.0, 1.0]` value.
|
|
15012
|
-
* - `redaction`: custom terms
|
|
15185
|
+
* - `redaction`: custom terms, patterns, and external findings are valid.
|
|
15013
15186
|
* - `pdf_options`: hierarchy cluster counts and margin fractions are in their supported ranges.
|
|
15014
15187
|
* - every nested LLM config: sampling ranges and target-specific authentication support.
|
|
15015
15188
|
*
|
|
@@ -25759,6 +25932,9 @@ export class WasmOcrConfig {
|
|
|
25759
25932
|
clearElementConfig() {
|
|
25760
25933
|
wasm.wasmocrconfig_clearElementConfig(this.__wbg_ptr);
|
|
25761
25934
|
}
|
|
25935
|
+
clearPaddleOcrSettings() {
|
|
25936
|
+
wasm.wasmocrconfig_clearPaddleOcrSettings(this.__wbg_ptr);
|
|
25937
|
+
}
|
|
25762
25938
|
clearPipeline() {
|
|
25763
25939
|
wasm.wasmocrconfig_clearPipeline(this.__wbg_ptr);
|
|
25764
25940
|
}
|
|
@@ -25805,7 +25981,7 @@ export class WasmOcrConfig {
|
|
|
25805
25981
|
return v1;
|
|
25806
25982
|
}
|
|
25807
25983
|
/**
|
|
25808
|
-
* Takes ownership of `tesseractConfig`, `elementConfig`, `qualityThresholds`, `pipeline`, `vlmConfig`, `acceleration`, `securityLimits`.
|
|
25984
|
+
* Takes ownership of `tesseractConfig`, `paddleOcrSettings`, `elementConfig`, `qualityThresholds`, `pipeline`, `vlmConfig`, `acceleration`, `securityLimits`.
|
|
25809
25985
|
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
25810
25986
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
25811
25987
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
@@ -25819,6 +25995,7 @@ export class WasmOcrConfig {
|
|
|
25819
25995
|
* @param {WasmTesseractConfig | null} [tesseractConfig]
|
|
25820
25996
|
* @param {any | null} [outputFormat]
|
|
25821
25997
|
* @param {any | null} [paddleOcrConfig]
|
|
25998
|
+
* @param {WasmPaddleOcrConfig | null} [paddleOcrSettings]
|
|
25822
25999
|
* @param {any | null} [backendOptions]
|
|
25823
26000
|
* @param {WasmOcrElementConfig | null} [elementConfig]
|
|
25824
26001
|
* @param {WasmOcrQualityThresholds | null} [qualityThresholds]
|
|
@@ -25830,7 +26007,7 @@ export class WasmOcrConfig {
|
|
|
25830
26007
|
* @param {any | null} [tessdataBytes]
|
|
25831
26008
|
* @param {string | null} [tessdataPath]
|
|
25832
26009
|
*/
|
|
25833
|
-
constructor(enabled, backend, language, autoRotate, vlmFallback, numericRepair, tesseractConfig, outputFormat, paddleOcrConfig, backendOptions, elementConfig, qualityThresholds, pipeline, vlmConfig, vlmPrompt, acceleration, securityLimits, tessdataBytes, tessdataPath) {
|
|
26010
|
+
constructor(enabled, backend, language, autoRotate, vlmFallback, numericRepair, tesseractConfig, outputFormat, paddleOcrConfig, paddleOcrSettings, backendOptions, elementConfig, qualityThresholds, pipeline, vlmConfig, vlmPrompt, acceleration, securityLimits, tessdataBytes, tessdataPath) {
|
|
25834
26011
|
var ptr0 = isLikeNone(backend) ? 0 : passStringToWasm0(backend, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
25835
26012
|
var len0 = WASM_VECTOR_LEN;
|
|
25836
26013
|
var ptr1 = isLikeNone(language) ? 0 : passArrayJsValueToWasm0(language, wasm.__wbindgen_malloc_command_export);
|
|
@@ -25841,40 +26018,45 @@ export class WasmOcrConfig {
|
|
|
25841
26018
|
ptr2 = tesseractConfig.__destroy_into_raw();
|
|
25842
26019
|
}
|
|
25843
26020
|
let ptr3 = 0;
|
|
26021
|
+
if (!isLikeNone(paddleOcrSettings)) {
|
|
26022
|
+
_assertClass(paddleOcrSettings, WasmPaddleOcrConfig);
|
|
26023
|
+
ptr3 = paddleOcrSettings.__destroy_into_raw();
|
|
26024
|
+
}
|
|
26025
|
+
let ptr4 = 0;
|
|
25844
26026
|
if (!isLikeNone(elementConfig)) {
|
|
25845
26027
|
_assertClass(elementConfig, WasmOcrElementConfig);
|
|
25846
|
-
|
|
26028
|
+
ptr4 = elementConfig.__destroy_into_raw();
|
|
25847
26029
|
}
|
|
25848
|
-
let
|
|
26030
|
+
let ptr5 = 0;
|
|
25849
26031
|
if (!isLikeNone(qualityThresholds)) {
|
|
25850
26032
|
_assertClass(qualityThresholds, WasmOcrQualityThresholds);
|
|
25851
|
-
|
|
26033
|
+
ptr5 = qualityThresholds.__destroy_into_raw();
|
|
25852
26034
|
}
|
|
25853
|
-
let
|
|
26035
|
+
let ptr6 = 0;
|
|
25854
26036
|
if (!isLikeNone(pipeline)) {
|
|
25855
26037
|
_assertClass(pipeline, WasmOcrPipelineConfig);
|
|
25856
|
-
|
|
26038
|
+
ptr6 = pipeline.__destroy_into_raw();
|
|
25857
26039
|
}
|
|
25858
|
-
let
|
|
26040
|
+
let ptr7 = 0;
|
|
25859
26041
|
if (!isLikeNone(vlmConfig)) {
|
|
25860
26042
|
_assertClass(vlmConfig, WasmLlmConfig);
|
|
25861
|
-
|
|
26043
|
+
ptr7 = vlmConfig.__destroy_into_raw();
|
|
25862
26044
|
}
|
|
25863
|
-
var
|
|
25864
|
-
var
|
|
25865
|
-
let
|
|
26045
|
+
var ptr8 = isLikeNone(vlmPrompt) ? 0 : passStringToWasm0(vlmPrompt, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
26046
|
+
var len8 = WASM_VECTOR_LEN;
|
|
26047
|
+
let ptr9 = 0;
|
|
25866
26048
|
if (!isLikeNone(acceleration)) {
|
|
25867
26049
|
_assertClass(acceleration, WasmAccelerationConfig);
|
|
25868
|
-
|
|
26050
|
+
ptr9 = acceleration.__destroy_into_raw();
|
|
25869
26051
|
}
|
|
25870
|
-
let
|
|
26052
|
+
let ptr10 = 0;
|
|
25871
26053
|
if (!isLikeNone(securityLimits)) {
|
|
25872
26054
|
_assertClass(securityLimits, WasmSecurityLimits);
|
|
25873
|
-
|
|
26055
|
+
ptr10 = securityLimits.__destroy_into_raw();
|
|
25874
26056
|
}
|
|
25875
|
-
var
|
|
25876
|
-
var
|
|
25877
|
-
const ret = wasm.wasmocrconfig_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, ptr0, len0, ptr1, len1, isLikeNone(autoRotate) ? 0xFFFFFF : autoRotate ? 1 : 0, isLikeNone(vlmFallback) ? 0 : addToExternrefTable0(vlmFallback), isLikeNone(numericRepair) ? 0xFFFFFF : numericRepair ? 1 : 0, ptr2, isLikeNone(outputFormat) ? 0 : addToExternrefTable0(outputFormat), isLikeNone(paddleOcrConfig) ? 0 : addToExternrefTable0(paddleOcrConfig), isLikeNone(backendOptions) ? 0 : addToExternrefTable0(backendOptions),
|
|
26057
|
+
var ptr11 = isLikeNone(tessdataPath) ? 0 : passStringToWasm0(tessdataPath, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
26058
|
+
var len11 = WASM_VECTOR_LEN;
|
|
26059
|
+
const ret = wasm.wasmocrconfig_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, ptr0, len0, ptr1, len1, isLikeNone(autoRotate) ? 0xFFFFFF : autoRotate ? 1 : 0, isLikeNone(vlmFallback) ? 0 : addToExternrefTable0(vlmFallback), isLikeNone(numericRepair) ? 0xFFFFFF : numericRepair ? 1 : 0, ptr2, isLikeNone(outputFormat) ? 0 : addToExternrefTable0(outputFormat), isLikeNone(paddleOcrConfig) ? 0 : addToExternrefTable0(paddleOcrConfig), ptr3, isLikeNone(backendOptions) ? 0 : addToExternrefTable0(backendOptions), ptr4, ptr5, ptr6, ptr7, ptr8, len8, ptr9, ptr10, isLikeNone(tessdataBytes) ? 0 : addToExternrefTable0(tessdataBytes), ptr11, len11);
|
|
25878
26060
|
this.__wbg_ptr = ret;
|
|
25879
26061
|
WasmOcrConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
25880
26062
|
return this;
|
|
@@ -25900,6 +26082,13 @@ export class WasmOcrConfig {
|
|
|
25900
26082
|
const ret = wasm.wasmocrconfig_paddleOcrConfig(this.__wbg_ptr);
|
|
25901
26083
|
return ret;
|
|
25902
26084
|
}
|
|
26085
|
+
/**
|
|
26086
|
+
* @returns {WasmPaddleOcrConfig | undefined}
|
|
26087
|
+
*/
|
|
26088
|
+
get paddleOcrSettings() {
|
|
26089
|
+
const ret = wasm.wasmocrconfig_paddleOcrSettings(this.__wbg_ptr);
|
|
26090
|
+
return ret === 0 ? undefined : WasmPaddleOcrConfig.__wrap(ret);
|
|
26091
|
+
}
|
|
25903
26092
|
/**
|
|
25904
26093
|
* @returns {WasmOcrPipelineConfig | undefined}
|
|
25905
26094
|
*/
|
|
@@ -25987,6 +26176,13 @@ export class WasmOcrConfig {
|
|
|
25987
26176
|
set paddleOcrConfig(value) {
|
|
25988
26177
|
wasm.wasmocrconfig_set_paddleOcrConfig(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
25989
26178
|
}
|
|
26179
|
+
/**
|
|
26180
|
+
* @param {WasmPaddleOcrConfig} value
|
|
26181
|
+
*/
|
|
26182
|
+
set paddleOcrSettings(value) {
|
|
26183
|
+
_assertClass(value, WasmPaddleOcrConfig);
|
|
26184
|
+
wasm.wasmocrconfig_set_paddleOcrSettings(this.__wbg_ptr, value.__wbg_ptr);
|
|
26185
|
+
}
|
|
25990
26186
|
/**
|
|
25991
26187
|
* @param {WasmOcrPipelineConfig} value
|
|
25992
26188
|
*/
|
|
@@ -26853,6 +27049,9 @@ export class WasmOcrPipelineStage {
|
|
|
26853
27049
|
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
26854
27050
|
}
|
|
26855
27051
|
}
|
|
27052
|
+
clearPaddleOcrSettings() {
|
|
27053
|
+
wasm.wasmocrpipelinestage_clearPaddleOcrSettings(this.__wbg_ptr);
|
|
27054
|
+
}
|
|
26856
27055
|
clearTesseractConfig() {
|
|
26857
27056
|
wasm.wasmocrpipelinestage_clearTesseractConfig(this.__wbg_ptr);
|
|
26858
27057
|
}
|
|
@@ -26879,7 +27078,7 @@ export class WasmOcrPipelineStage {
|
|
|
26879
27078
|
return v1;
|
|
26880
27079
|
}
|
|
26881
27080
|
/**
|
|
26882
|
-
* Takes ownership of `tesseractConfig`, `vlmConfig`.
|
|
27081
|
+
* Takes ownership of `tesseractConfig`, `paddleOcrSettings`, `vlmConfig`.
|
|
26883
27082
|
* wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
|
|
26884
27083
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
26885
27084
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
@@ -26889,10 +27088,11 @@ export class WasmOcrPipelineStage {
|
|
|
26889
27088
|
* @param {string[] | null} [language]
|
|
26890
27089
|
* @param {WasmTesseractConfig | null} [tesseractConfig]
|
|
26891
27090
|
* @param {any | null} [paddleOcrConfig]
|
|
27091
|
+
* @param {WasmPaddleOcrConfig | null} [paddleOcrSettings]
|
|
26892
27092
|
* @param {WasmLlmConfig | null} [vlmConfig]
|
|
26893
27093
|
* @param {any | null} [backendOptions]
|
|
26894
27094
|
*/
|
|
26895
|
-
constructor(backend, priority, language, tesseractConfig, paddleOcrConfig, vlmConfig, backendOptions) {
|
|
27095
|
+
constructor(backend, priority, language, tesseractConfig, paddleOcrConfig, paddleOcrSettings, vlmConfig, backendOptions) {
|
|
26896
27096
|
const ptr0 = passStringToWasm0(backend, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
26897
27097
|
const len0 = WASM_VECTOR_LEN;
|
|
26898
27098
|
var ptr1 = isLikeNone(language) ? 0 : passArrayJsValueToWasm0(language, wasm.__wbindgen_malloc_command_export);
|
|
@@ -26903,11 +27103,16 @@ export class WasmOcrPipelineStage {
|
|
|
26903
27103
|
ptr2 = tesseractConfig.__destroy_into_raw();
|
|
26904
27104
|
}
|
|
26905
27105
|
let ptr3 = 0;
|
|
27106
|
+
if (!isLikeNone(paddleOcrSettings)) {
|
|
27107
|
+
_assertClass(paddleOcrSettings, WasmPaddleOcrConfig);
|
|
27108
|
+
ptr3 = paddleOcrSettings.__destroy_into_raw();
|
|
27109
|
+
}
|
|
27110
|
+
let ptr4 = 0;
|
|
26906
27111
|
if (!isLikeNone(vlmConfig)) {
|
|
26907
27112
|
_assertClass(vlmConfig, WasmLlmConfig);
|
|
26908
|
-
|
|
27113
|
+
ptr4 = vlmConfig.__destroy_into_raw();
|
|
26909
27114
|
}
|
|
26910
|
-
const ret = wasm.wasmocrpipelinestage_new(ptr0, len0, priority, ptr1, len1, ptr2, isLikeNone(paddleOcrConfig) ? 0 : addToExternrefTable0(paddleOcrConfig), ptr3, isLikeNone(backendOptions) ? 0 : addToExternrefTable0(backendOptions));
|
|
27115
|
+
const ret = wasm.wasmocrpipelinestage_new(ptr0, len0, priority, ptr1, len1, ptr2, isLikeNone(paddleOcrConfig) ? 0 : addToExternrefTable0(paddleOcrConfig), ptr3, ptr4, isLikeNone(backendOptions) ? 0 : addToExternrefTable0(backendOptions));
|
|
26911
27116
|
this.__wbg_ptr = ret;
|
|
26912
27117
|
WasmOcrPipelineStageFinalization.register(this, this.__wbg_ptr, this);
|
|
26913
27118
|
return this;
|
|
@@ -26919,6 +27124,13 @@ export class WasmOcrPipelineStage {
|
|
|
26919
27124
|
const ret = wasm.wasmocrpipelinestage_paddleOcrConfig(this.__wbg_ptr);
|
|
26920
27125
|
return ret;
|
|
26921
27126
|
}
|
|
27127
|
+
/**
|
|
27128
|
+
* @returns {WasmPaddleOcrConfig | undefined}
|
|
27129
|
+
*/
|
|
27130
|
+
get paddleOcrSettings() {
|
|
27131
|
+
const ret = wasm.wasmocrpipelinestage_paddleOcrSettings(this.__wbg_ptr);
|
|
27132
|
+
return ret === 0 ? undefined : WasmPaddleOcrConfig.__wrap(ret);
|
|
27133
|
+
}
|
|
26922
27134
|
/**
|
|
26923
27135
|
* @returns {number}
|
|
26924
27136
|
*/
|
|
@@ -26954,6 +27166,13 @@ export class WasmOcrPipelineStage {
|
|
|
26954
27166
|
set paddleOcrConfig(value) {
|
|
26955
27167
|
wasm.wasmocrpipelinestage_set_paddleOcrConfig(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
|
|
26956
27168
|
}
|
|
27169
|
+
/**
|
|
27170
|
+
* @param {WasmPaddleOcrConfig} value
|
|
27171
|
+
*/
|
|
27172
|
+
set paddleOcrSettings(value) {
|
|
27173
|
+
_assertClass(value, WasmPaddleOcrConfig);
|
|
27174
|
+
wasm.wasmocrpipelinestage_set_paddleOcrSettings(this.__wbg_ptr, value.__wbg_ptr);
|
|
27175
|
+
}
|
|
26957
27176
|
/**
|
|
26958
27177
|
* @param {number} value
|
|
26959
27178
|
*/
|
|
@@ -33957,6 +34176,49 @@ export class WasmRedactionConfig {
|
|
|
33957
34176
|
const ret = wasm.wasmredactionconfig_default();
|
|
33958
34177
|
return WasmRedactionConfig.__wrap(ret);
|
|
33959
34178
|
}
|
|
34179
|
+
/**
|
|
34180
|
+
* @returns {string}
|
|
34181
|
+
*/
|
|
34182
|
+
get findingsOffsetEncoding() {
|
|
34183
|
+
let deferred1_0;
|
|
34184
|
+
let deferred1_1;
|
|
34185
|
+
try {
|
|
34186
|
+
const ret = wasm.wasmredactionconfig_findingsOffsetEncoding(this.__wbg_ptr);
|
|
34187
|
+
deferred1_0 = ret[0];
|
|
34188
|
+
deferred1_1 = ret[1];
|
|
34189
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
34190
|
+
} finally {
|
|
34191
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
34192
|
+
}
|
|
34193
|
+
}
|
|
34194
|
+
/**
|
|
34195
|
+
* @returns {string | undefined}
|
|
34196
|
+
*/
|
|
34197
|
+
get findingsPath() {
|
|
34198
|
+
const ret = wasm.wasmredactionconfig_findingsPath(this.__wbg_ptr);
|
|
34199
|
+
let v1;
|
|
34200
|
+
if (ret[0] !== 0) {
|
|
34201
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
34202
|
+
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
34203
|
+
}
|
|
34204
|
+
return v1;
|
|
34205
|
+
}
|
|
34206
|
+
/**
|
|
34207
|
+
* @returns {WasmExternalRedactionFinding[]}
|
|
34208
|
+
*/
|
|
34209
|
+
get findings() {
|
|
34210
|
+
const ret = wasm.wasmredactionconfig_findings(this.__wbg_ptr);
|
|
34211
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
34212
|
+
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
34213
|
+
return v1;
|
|
34214
|
+
}
|
|
34215
|
+
/**
|
|
34216
|
+
* @returns {number | undefined}
|
|
34217
|
+
*/
|
|
34218
|
+
get minScore() {
|
|
34219
|
+
const ret = wasm.wasmredactionconfig_minScore(this.__wbg_ptr);
|
|
34220
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
34221
|
+
}
|
|
33960
34222
|
/**
|
|
33961
34223
|
* @returns {WasmNerConfig | undefined}
|
|
33962
34224
|
*/
|
|
@@ -33975,19 +34237,27 @@ export class WasmRedactionConfig {
|
|
|
33975
34237
|
* @param {boolean | null} [preserveOffsets]
|
|
33976
34238
|
* @param {WasmRedactionTerm[] | null} [customTerms]
|
|
33977
34239
|
* @param {WasmRedactionPattern[] | null} [customPatterns]
|
|
34240
|
+
* @param {WasmExternalRedactionFinding[] | null} [findings]
|
|
34241
|
+
* @param {WasmRedactionOffsetEncoding | null} [findingsOffsetEncoding]
|
|
33978
34242
|
* @param {WasmNerConfig | null} [ner]
|
|
34243
|
+
* @param {number | null} [minScore]
|
|
34244
|
+
* @param {string | null} [findingsPath]
|
|
33979
34245
|
*/
|
|
33980
|
-
constructor(categories, strategy, preserveOffsets, customTerms, customPatterns, ner) {
|
|
34246
|
+
constructor(categories, strategy, preserveOffsets, customTerms, customPatterns, findings, findingsOffsetEncoding, ner, minScore, findingsPath) {
|
|
33981
34247
|
var ptr0 = isLikeNone(customTerms) ? 0 : passArrayJsValueToWasm0(customTerms, wasm.__wbindgen_malloc_command_export);
|
|
33982
34248
|
var len0 = WASM_VECTOR_LEN;
|
|
33983
34249
|
var ptr1 = isLikeNone(customPatterns) ? 0 : passArrayJsValueToWasm0(customPatterns, wasm.__wbindgen_malloc_command_export);
|
|
33984
34250
|
var len1 = WASM_VECTOR_LEN;
|
|
33985
|
-
|
|
34251
|
+
var ptr2 = isLikeNone(findings) ? 0 : passArrayJsValueToWasm0(findings, wasm.__wbindgen_malloc_command_export);
|
|
34252
|
+
var len2 = WASM_VECTOR_LEN;
|
|
34253
|
+
let ptr3 = 0;
|
|
33986
34254
|
if (!isLikeNone(ner)) {
|
|
33987
34255
|
_assertClass(ner, WasmNerConfig);
|
|
33988
|
-
|
|
34256
|
+
ptr3 = ner.__destroy_into_raw();
|
|
33989
34257
|
}
|
|
33990
|
-
|
|
34258
|
+
var ptr4 = isLikeNone(findingsPath) ? 0 : passStringToWasm0(findingsPath, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
34259
|
+
var len4 = WASM_VECTOR_LEN;
|
|
34260
|
+
const ret = wasm.wasmredactionconfig_new(isLikeNone(categories) ? 0 : addToExternrefTable0(categories), isLikeNone(strategy) ? 4 : strategy, isLikeNone(preserveOffsets) ? 0xFFFFFF : preserveOffsets ? 1 : 0, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(findingsOffsetEncoding) ? 3 : findingsOffsetEncoding, ptr3, isLikeNone(minScore) ? Number.MAX_SAFE_INTEGER : Math.fround(minScore), ptr4, len4);
|
|
33991
34261
|
this.__wbg_ptr = ret;
|
|
33992
34262
|
WasmRedactionConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
33993
34263
|
return this;
|
|
@@ -34021,6 +34291,34 @@ export class WasmRedactionConfig {
|
|
|
34021
34291
|
const len0 = WASM_VECTOR_LEN;
|
|
34022
34292
|
wasm.wasmredactionconfig_set_customTerms(this.__wbg_ptr, ptr0, len0);
|
|
34023
34293
|
}
|
|
34294
|
+
/**
|
|
34295
|
+
* @param {WasmRedactionOffsetEncoding} value
|
|
34296
|
+
*/
|
|
34297
|
+
set findingsOffsetEncoding(value) {
|
|
34298
|
+
wasm.wasmredactionconfig_set_findingsOffsetEncoding(this.__wbg_ptr, value);
|
|
34299
|
+
}
|
|
34300
|
+
/**
|
|
34301
|
+
* @param {string | null} [value]
|
|
34302
|
+
*/
|
|
34303
|
+
set findingsPath(value) {
|
|
34304
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
34305
|
+
var len0 = WASM_VECTOR_LEN;
|
|
34306
|
+
wasm.wasmredactionconfig_set_findingsPath(this.__wbg_ptr, ptr0, len0);
|
|
34307
|
+
}
|
|
34308
|
+
/**
|
|
34309
|
+
* @param {WasmExternalRedactionFinding[]} value
|
|
34310
|
+
*/
|
|
34311
|
+
set findings(value) {
|
|
34312
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_malloc_command_export);
|
|
34313
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34314
|
+
wasm.wasmredactionconfig_set_findings(this.__wbg_ptr, ptr0, len0);
|
|
34315
|
+
}
|
|
34316
|
+
/**
|
|
34317
|
+
* @param {number | null} [value]
|
|
34318
|
+
*/
|
|
34319
|
+
set minScore(value) {
|
|
34320
|
+
wasm.wasmredactionconfig_set_minScore(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : Math.fround(value));
|
|
34321
|
+
}
|
|
34024
34322
|
/**
|
|
34025
34323
|
* @param {WasmNerConfig} value
|
|
34026
34324
|
*/
|
|
@@ -34207,6 +34505,16 @@ export class WasmRedactionFinding {
|
|
|
34207
34505
|
}
|
|
34208
34506
|
if (Symbol.dispose) WasmRedactionFinding.prototype[Symbol.dispose] = WasmRedactionFinding.prototype.free;
|
|
34209
34507
|
|
|
34508
|
+
/**
|
|
34509
|
+
* Unit that an external finding's `start` / `end` offsets count in.
|
|
34510
|
+
* @enum {0 | 1 | 2}
|
|
34511
|
+
*/
|
|
34512
|
+
export const WasmRedactionOffsetEncoding = Object.freeze({
|
|
34513
|
+
Utf8Bytes: 0, "0": "Utf8Bytes",
|
|
34514
|
+
UnicodeCodePoints: 1, "1": "UnicodeCodePoints",
|
|
34515
|
+
Utf16CodeUnits: 2, "2": "Utf16CodeUnits",
|
|
34516
|
+
});
|
|
34517
|
+
|
|
34210
34518
|
/**
|
|
34211
34519
|
* One user-supplied regex pattern to redact.
|
|
34212
34520
|
*
|
|
@@ -41258,6 +41566,38 @@ export function pdfPageCount(pdf_bytes, password) {
|
|
|
41258
41566
|
return ret[0] >>> 0;
|
|
41259
41567
|
}
|
|
41260
41568
|
|
|
41569
|
+
/**
|
|
41570
|
+
* Redact an owned document using a JSON array or JSON Lines payload from an external inspection engine.
|
|
41571
|
+
*
|
|
41572
|
+
* The payload is parsed in Rust so vendor aliases and nested fields remain intact across language bindings.
|
|
41573
|
+
* `offset_encoding` defaults to `unicode_code_points` and `max_findings` defaults to 10,000 when omitted.
|
|
41574
|
+
* Unknown encodings return a validation error.
|
|
41575
|
+
* @param {WasmExtractedDocument | null | undefined} document
|
|
41576
|
+
* @param {WasmRedactionConfig | null | undefined} config
|
|
41577
|
+
* @param {string} findings_json
|
|
41578
|
+
* @param {string | null} [offset_encoding]
|
|
41579
|
+
* @param {number | null} [max_findings]
|
|
41580
|
+
* @returns {Promise<WasmExtractedDocument>}
|
|
41581
|
+
*/
|
|
41582
|
+
export function redactExternal(document, config, findings_json, offset_encoding, max_findings) {
|
|
41583
|
+
let ptr0 = 0;
|
|
41584
|
+
if (!isLikeNone(document)) {
|
|
41585
|
+
_assertClass(document, WasmExtractedDocument);
|
|
41586
|
+
ptr0 = document.__destroy_into_raw();
|
|
41587
|
+
}
|
|
41588
|
+
let ptr1 = 0;
|
|
41589
|
+
if (!isLikeNone(config)) {
|
|
41590
|
+
_assertClass(config, WasmRedactionConfig);
|
|
41591
|
+
ptr1 = config.__destroy_into_raw();
|
|
41592
|
+
}
|
|
41593
|
+
const ptr2 = passStringToWasm0(findings_json, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
41594
|
+
const len2 = WASM_VECTOR_LEN;
|
|
41595
|
+
var ptr3 = isLikeNone(offset_encoding) ? 0 : passStringToWasm0(offset_encoding, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
41596
|
+
var len3 = WASM_VECTOR_LEN;
|
|
41597
|
+
const ret = wasm.redactExternal(ptr0, ptr1, ptr2, len2, ptr3, len3, isLikeNone(max_findings) ? Number.MAX_SAFE_INTEGER : (max_findings) >>> 0);
|
|
41598
|
+
return ret;
|
|
41599
|
+
}
|
|
41600
|
+
|
|
41261
41601
|
/**
|
|
41262
41602
|
* @param {any} backend
|
|
41263
41603
|
*/
|
|
@@ -42027,7 +42367,7 @@ function __wbg_get_imports() {
|
|
|
42027
42367
|
const ret = arg0.value;
|
|
42028
42368
|
return ret;
|
|
42029
42369
|
},
|
|
42030
|
-
|
|
42370
|
+
__wbg_warn_b71e3222dc465a4c: function(arg0, arg1) {
|
|
42031
42371
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
42032
42372
|
},
|
|
42033
42373
|
__wbg_wasmarchiveentry_new: function(arg0) {
|
|
@@ -42182,6 +42522,14 @@ function __wbg_get_imports() {
|
|
|
42182
42522
|
const ret = WasmExcelSheet.__unwrap(arg0);
|
|
42183
42523
|
return ret;
|
|
42184
42524
|
},
|
|
42525
|
+
__wbg_wasmexternalredactionfinding_new: function(arg0) {
|
|
42526
|
+
const ret = WasmExternalRedactionFinding.__wrap(arg0);
|
|
42527
|
+
return ret;
|
|
42528
|
+
},
|
|
42529
|
+
__wbg_wasmexternalredactionfinding_unwrap: function(arg0) {
|
|
42530
|
+
const ret = WasmExternalRedactionFinding.__unwrap(arg0);
|
|
42531
|
+
return ret;
|
|
42532
|
+
},
|
|
42185
42533
|
__wbg_wasmextracteddocument_new: function(arg0) {
|
|
42186
42534
|
const ret = WasmExtractedDocument.__wrap(arg0);
|
|
42187
42535
|
return ret;
|
|
@@ -42591,12 +42939,12 @@ function __wbg_get_imports() {
|
|
|
42591
42939
|
return ret;
|
|
42592
42940
|
},
|
|
42593
42941
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
42594
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
42942
|
+
// 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`.
|
|
42595
42943
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb42d2252c7df56c6);
|
|
42596
42944
|
return ret;
|
|
42597
42945
|
},
|
|
42598
42946
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
42599
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
42947
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1123, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
42600
42948
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7c1c008dc47b2d95);
|
|
42601
42949
|
return ret;
|
|
42602
42950
|
},
|
|
@@ -42913,6 +43261,9 @@ const WasmExcelSheetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
42913
43261
|
const WasmExcelWorkbookFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42914
43262
|
? { register: () => {}, unregister: () => {} }
|
|
42915
43263
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmexcelworkbook_free(ptr, 1));
|
|
43264
|
+
const WasmExternalRedactionFindingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
43265
|
+
? { register: () => {}, unregister: () => {} }
|
|
43266
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmexternalredactionfinding_free(ptr, 1));
|
|
42916
43267
|
const WasmExtractInputFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
42917
43268
|
? { register: () => {}, unregister: () => {} }
|
|
42918
43269
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmextractinput_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: 37454931 bytes
|
|
4
|
+
sha256: 216825e798775cf2b2670475ababa3df7cd029a0079701204359c55227c993d5
|
|
@@ -75,6 +75,7 @@ export const __wbg_wasmerrormetadata_free: (a: number, b: number) => void;
|
|
|
75
75
|
export const __wbg_wasmexcelmetadata_free: (a: number, b: number) => void;
|
|
76
76
|
export const __wbg_wasmexcelsheet_free: (a: number, b: number) => void;
|
|
77
77
|
export const __wbg_wasmexcelworkbook_free: (a: number, b: number) => void;
|
|
78
|
+
export const __wbg_wasmexternalredactionfinding_free: (a: number, b: number) => void;
|
|
78
79
|
export const __wbg_wasmextracteddocument_free: (a: number, b: number) => void;
|
|
79
80
|
export const __wbg_wasmextractedimage_free: (a: number, b: number) => void;
|
|
80
81
|
export const __wbg_wasmextracteduri_free: (a: number, b: number) => void;
|
|
@@ -281,6 +282,7 @@ export const nermodel_load: (a: any) => any;
|
|
|
281
282
|
export const ocrBackendSupportsLanguage: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
282
283
|
export const ocrBackendSupportsLanguageFor: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
283
284
|
export const pdfPageCount: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
285
|
+
export const redactExternal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
284
286
|
export const registerDocumentExtractor: (a: any) => [number, number];
|
|
285
287
|
export const registerEmbeddingBackend: (a: any) => [number, number];
|
|
286
288
|
export const registerOcrBackend: (a: any) => [number, number];
|
|
@@ -462,12 +464,14 @@ export const wasmcachestats_set_totalFiles: (a: number, b: number) => void;
|
|
|
462
464
|
export const wasmcachestats_set_totalSizeMb: (a: number, b: number) => void;
|
|
463
465
|
export const wasmcachestats_totalFiles: (a: number) => number;
|
|
464
466
|
export const wasmcachestats_totalSizeMb: (a: number) => number;
|
|
467
|
+
export const wasmcaptioningconfig_altText: (a: number) => [number, number];
|
|
465
468
|
export const wasmcaptioningconfig_default: () => number;
|
|
466
469
|
export const wasmcaptioningconfig_defaultMinImageArea: () => number;
|
|
467
470
|
export const wasmcaptioningconfig_llm: (a: number) => number;
|
|
468
471
|
export const wasmcaptioningconfig_minImageArea: (a: number) => number;
|
|
469
|
-
export const wasmcaptioningconfig_new: (a: number, b: number, c: number, d: number) => number;
|
|
472
|
+
export const wasmcaptioningconfig_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
470
473
|
export const wasmcaptioningconfig_prompt: (a: number) => [number, number];
|
|
474
|
+
export const wasmcaptioningconfig_set_altText: (a: number, b: number) => void;
|
|
471
475
|
export const wasmcaptioningconfig_set_llm: (a: number, b: number) => void;
|
|
472
476
|
export const wasmcaptioningconfig_set_minImageArea: (a: number, b: number) => void;
|
|
473
477
|
export const wasmcaptioningconfig_set_prompt: (a: number, b: number, c: number) => void;
|
|
@@ -1389,6 +1393,18 @@ export const wasmexcelworkbook_set_metadata: (a: number, b: any) => void;
|
|
|
1389
1393
|
export const wasmexcelworkbook_set_revisions: (a: number, b: number, c: number) => void;
|
|
1390
1394
|
export const wasmexcelworkbook_set_sheets: (a: number, b: number, c: number) => void;
|
|
1391
1395
|
export const wasmexcelworkbook_sheets: (a: number) => [number, number];
|
|
1396
|
+
export const wasmexternalredactionfinding_default: () => number;
|
|
1397
|
+
export const wasmexternalredactionfinding_end: (a: number) => number;
|
|
1398
|
+
export const wasmexternalredactionfinding_label: (a: number) => [number, number];
|
|
1399
|
+
export const wasmexternalredactionfinding_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
1400
|
+
export const wasmexternalredactionfinding_score: (a: number) => number;
|
|
1401
|
+
export const wasmexternalredactionfinding_set_end: (a: number, b: number) => void;
|
|
1402
|
+
export const wasmexternalredactionfinding_set_label: (a: number, b: number, c: number) => void;
|
|
1403
|
+
export const wasmexternalredactionfinding_set_score: (a: number, b: number) => void;
|
|
1404
|
+
export const wasmexternalredactionfinding_set_start: (a: number, b: number) => void;
|
|
1405
|
+
export const wasmexternalredactionfinding_set_text: (a: number, b: number, c: number) => void;
|
|
1406
|
+
export const wasmexternalredactionfinding_start: (a: number) => number;
|
|
1407
|
+
export const wasmexternalredactionfinding_text: (a: number) => [number, number];
|
|
1392
1408
|
export const wasmextracteddocument_annotations: (a: number) => any;
|
|
1393
1409
|
export const wasmextracteddocument_children: (a: number) => any;
|
|
1394
1410
|
export const wasmextracteddocument_chunks: (a: number) => any;
|
|
@@ -2663,6 +2679,7 @@ export const wasmocrconfig_backend: (a: number) => [number, number];
|
|
|
2663
2679
|
export const wasmocrconfig_backendOptions: (a: number) => any;
|
|
2664
2680
|
export const wasmocrconfig_clearAcceleration: (a: number) => void;
|
|
2665
2681
|
export const wasmocrconfig_clearElementConfig: (a: number) => void;
|
|
2682
|
+
export const wasmocrconfig_clearPaddleOcrSettings: (a: number) => void;
|
|
2666
2683
|
export const wasmocrconfig_clearPipeline: (a: number) => void;
|
|
2667
2684
|
export const wasmocrconfig_clearQualityThresholds: (a: number) => void;
|
|
2668
2685
|
export const wasmocrconfig_clearSecurityLimits: (a: number) => void;
|
|
@@ -2672,10 +2689,11 @@ export const wasmocrconfig_default: () => number;
|
|
|
2672
2689
|
export const wasmocrconfig_elementConfig: (a: number) => number;
|
|
2673
2690
|
export const wasmocrconfig_enabled: (a: number) => number;
|
|
2674
2691
|
export const wasmocrconfig_language: (a: number) => [number, number];
|
|
2675
|
-
export const wasmocrconfig_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) => number;
|
|
2692
|
+
export const wasmocrconfig_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) => number;
|
|
2676
2693
|
export const wasmocrconfig_numericRepair: (a: number) => number;
|
|
2677
2694
|
export const wasmocrconfig_outputFormat: (a: number) => any;
|
|
2678
2695
|
export const wasmocrconfig_paddleOcrConfig: (a: number) => any;
|
|
2696
|
+
export const wasmocrconfig_paddleOcrSettings: (a: number) => number;
|
|
2679
2697
|
export const wasmocrconfig_pipeline: (a: number) => number;
|
|
2680
2698
|
export const wasmocrconfig_qualityThresholds: (a: number) => number;
|
|
2681
2699
|
export const wasmocrconfig_securityLimits: (a: number) => number;
|
|
@@ -2689,6 +2707,7 @@ export const wasmocrconfig_set_language: (a: number, b: number, c: number) => vo
|
|
|
2689
2707
|
export const wasmocrconfig_set_numericRepair: (a: number, b: number) => void;
|
|
2690
2708
|
export const wasmocrconfig_set_outputFormat: (a: number, b: number) => void;
|
|
2691
2709
|
export const wasmocrconfig_set_paddleOcrConfig: (a: number, b: number) => void;
|
|
2710
|
+
export const wasmocrconfig_set_paddleOcrSettings: (a: number, b: number) => void;
|
|
2692
2711
|
export const wasmocrconfig_set_pipeline: (a: number, b: number) => void;
|
|
2693
2712
|
export const wasmocrconfig_set_qualityThresholds: (a: number, b: number) => void;
|
|
2694
2713
|
export const wasmocrconfig_set_securityLimits: (a: number, b: number) => void;
|
|
@@ -2767,17 +2786,20 @@ export const wasmocrpipelineconfig_set_stages: (a: number, b: number, c: number)
|
|
|
2767
2786
|
export const wasmocrpipelineconfig_stages: (a: number) => [number, number];
|
|
2768
2787
|
export const wasmocrpipelinestage_backend: (a: number) => [number, number];
|
|
2769
2788
|
export const wasmocrpipelinestage_backendOptions: (a: number) => any;
|
|
2789
|
+
export const wasmocrpipelinestage_clearPaddleOcrSettings: (a: number) => void;
|
|
2770
2790
|
export const wasmocrpipelinestage_clearTesseractConfig: (a: number) => void;
|
|
2771
2791
|
export const wasmocrpipelinestage_clearVlmConfig: (a: number) => void;
|
|
2772
2792
|
export const wasmocrpipelinestage_default: () => number;
|
|
2773
2793
|
export const wasmocrpipelinestage_language: (a: number) => [number, number];
|
|
2774
|
-
export const wasmocrpipelinestage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
2794
|
+
export const wasmocrpipelinestage_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
2775
2795
|
export const wasmocrpipelinestage_paddleOcrConfig: (a: number) => any;
|
|
2796
|
+
export const wasmocrpipelinestage_paddleOcrSettings: (a: number) => number;
|
|
2776
2797
|
export const wasmocrpipelinestage_priority: (a: number) => number;
|
|
2777
2798
|
export const wasmocrpipelinestage_set_backend: (a: number, b: number, c: number) => void;
|
|
2778
2799
|
export const wasmocrpipelinestage_set_backendOptions: (a: number, b: number) => void;
|
|
2779
2800
|
export const wasmocrpipelinestage_set_language: (a: number, b: number, c: number) => void;
|
|
2780
2801
|
export const wasmocrpipelinestage_set_paddleOcrConfig: (a: number, b: number) => void;
|
|
2802
|
+
export const wasmocrpipelinestage_set_paddleOcrSettings: (a: number, b: number) => void;
|
|
2781
2803
|
export const wasmocrpipelinestage_set_priority: (a: number, b: number) => void;
|
|
2782
2804
|
export const wasmocrpipelinestage_set_tesseractConfig: (a: number, b: number) => void;
|
|
2783
2805
|
export const wasmocrpipelinestage_set_vlmConfig: (a: number, b: number) => void;
|
|
@@ -3406,12 +3428,20 @@ export const wasmredactionconfig_clearNer: (a: number) => void;
|
|
|
3406
3428
|
export const wasmredactionconfig_customPatterns: (a: number) => [number, number];
|
|
3407
3429
|
export const wasmredactionconfig_customTerms: (a: number) => [number, number];
|
|
3408
3430
|
export const wasmredactionconfig_default: () => number;
|
|
3431
|
+
export const wasmredactionconfig_findings: (a: number) => [number, number];
|
|
3432
|
+
export const wasmredactionconfig_findingsOffsetEncoding: (a: number) => [number, number];
|
|
3433
|
+
export const wasmredactionconfig_findingsPath: (a: number) => [number, number];
|
|
3434
|
+
export const wasmredactionconfig_minScore: (a: number) => number;
|
|
3409
3435
|
export const wasmredactionconfig_ner: (a: number) => number;
|
|
3410
|
-
export const wasmredactionconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
3436
|
+
export const wasmredactionconfig_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) => number;
|
|
3411
3437
|
export const wasmredactionconfig_preserveOffsets: (a: number) => number;
|
|
3412
3438
|
export const wasmredactionconfig_set_categories: (a: number, b: any) => void;
|
|
3413
3439
|
export const wasmredactionconfig_set_customPatterns: (a: number, b: number, c: number) => void;
|
|
3414
3440
|
export const wasmredactionconfig_set_customTerms: (a: number, b: number, c: number) => void;
|
|
3441
|
+
export const wasmredactionconfig_set_findings: (a: number, b: number, c: number) => void;
|
|
3442
|
+
export const wasmredactionconfig_set_findingsOffsetEncoding: (a: number, b: number) => void;
|
|
3443
|
+
export const wasmredactionconfig_set_findingsPath: (a: number, b: number, c: number) => void;
|
|
3444
|
+
export const wasmredactionconfig_set_minScore: (a: number, b: number) => void;
|
|
3415
3445
|
export const wasmredactionconfig_set_ner: (a: number, b: number) => void;
|
|
3416
3446
|
export const wasmredactionconfig_set_preserveOffsets: (a: number, b: number) => void;
|
|
3417
3447
|
export const wasmredactionconfig_set_strategy: (a: number, b: number) => void;
|