@stll/anonymize 2.0.1 → 2.0.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/dist/native.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import { i as DetectionSource, n as DETECTION_SOURCES, o as OperatorType } from "./constants2.mjs";
2
-
1
+ import { a as DetectionSource, n as DETECTION_SOURCES, p as OperatorType } from "./constants2.mjs";
3
2
  //#region src/native-search-config.d.ts
4
3
  /**
5
4
  * Structural type for the prepared static-search config the native binding
@@ -344,7 +343,8 @@ type DetectedEntity = EntityBase & {
344
343
  * write — or that a later pass could clear.
345
344
  */
346
345
  type CorefAliasEntity = EntityBase & {
347
- source: typeof DETECTION_SOURCES.COREFERENCE; /** Full text of the source entity this alias refers to. */
346
+ source: typeof DETECTION_SOURCES.COREFERENCE;
347
+ /** Full text of the source entity this alias refers to. */
348
348
  corefSourceText: string;
349
349
  };
350
350
  /**
@@ -438,7 +438,7 @@ type TriggerValidation = {
438
438
  type: "matches-pattern";
439
439
  pattern: string;
440
440
  flags?: string;
441
- }
441
+ } |
442
442
  /**
443
443
  * Run a named stdnum validator (checksum + length)
444
444
  * against the captured value. Keeps the trigger
@@ -446,7 +446,7 @@ type TriggerValidation = {
446
446
  * detectors so e.g. `CPF nº 00000000000` does not
447
447
  * survive as a tax-ID entity.
448
448
  */
449
- | {
449
+ {
450
450
  type: "valid-id";
451
451
  validator: ValidIdValidator;
452
452
  };
@@ -503,12 +503,22 @@ type TriggerRule = {
503
503
  includeTrigger: boolean;
504
504
  };
505
505
  /** Per-label operator selection. Key is the entity label. */
506
+ type MaskDirection = "start" | "end";
507
+ type MaskOperatorConfig = {
508
+ type: "mask";
509
+ maskingCharacter: string;
510
+ charactersToMask: number;
511
+ direction: MaskDirection;
512
+ };
513
+ type OperatorSelection = Exclude<OperatorType, "mask"> | MaskOperatorConfig;
506
514
  type OperatorConfig = {
507
- /** Operator per label. Missing labels default to "replace". */operators: Record<string, OperatorType>; /** Custom replacement string for the redact operator. */
515
+ /** Operator per label. Missing labels default to "replace". */
516
+ operators: Record<string, OperatorSelection>;
517
+ /** Custom replacement string for the redact operator. */
508
518
  redactString: string;
509
519
  };
510
520
  /** Whether an operator produces a reversible redaction entry. */
511
- type OperatorReversibility = "reversible" | "irreversible";
521
+ type OperatorReversibility = "reversible" | "irreversible" | "preserving";
512
522
  type AnonymisationOperator = {
513
523
  type: OperatorType;
514
524
  reversibility: OperatorReversibility;
@@ -516,7 +526,7 @@ type AnonymisationOperator = {
516
526
  * Apply the operator to a single entity occurrence.
517
527
  * Returns the replacement string to embed in the document.
518
528
  */
519
- apply: (text: string, label: string, placeholder: string, redactString: string) => string;
529
+ apply: (text: string, label: string, placeholder: string, redactString: string, selection: OperatorSelection) => string;
520
530
  };
521
531
  /**
522
532
  * Redacted document output with stable entity mapping.
@@ -525,9 +535,10 @@ type RedactionResult = {
525
535
  redactedText: string;
526
536
  /**
527
537
  * Maps placeholder to original text. Only populated for
528
- * reversible operators (replace). Empty for redact.
538
+ * reversible operators (replace). Empty for redact, keep, and mask.
529
539
  */
530
- redactionMap: Map<string, string>; /** Maps placeholder to the operator that produced it. */
540
+ redactionMap: Map<string, string>;
541
+ /** Maps placeholder to the operator that produced it. */
531
542
  operatorMap: Map<string, OperatorType>;
532
543
  entityCount: number;
533
544
  };
@@ -688,15 +699,21 @@ type PipelineConfig = {
688
699
  * additions (Dutch, Russian, Chinese, Arabic, etc.).
689
700
  */
690
701
  enableCountries?: boolean;
691
- enableNer: boolean;
702
+ /**
703
+ * Reserved for compatibility with the removed TypeScript pipeline.
704
+ * The native pipeline rejects `true`; supply deterministic custom rules today
705
+ * and use the future caller-detection API for model-produced spans.
706
+ *
707
+ * @deprecated Native NER is not implemented.
708
+ */
709
+ enableNer?: boolean;
692
710
  enableConfidenceBoost: boolean;
693
711
  enableCoreference: boolean;
694
712
  enableZoneClassification?: boolean;
695
713
  enableHotwordRules?: boolean;
696
714
  /**
697
715
  * Requested output labels. An empty array means
698
- * "do not filter by label" for deterministic
699
- * detectors; NER falls back to DEFAULT_ENTITY_LABELS.
716
+ * "do not filter by label" for deterministic detectors.
700
717
  */
701
718
  labels: string[];
702
719
  workspaceId: string;
@@ -711,9 +728,28 @@ type PipelineConfig = {
711
728
  //#endregion
712
729
  //#region src/native.d.ts
713
730
  type NativeBindingOperatorConfig = {
714
- operators?: Record<string, OperatorType>;
731
+ operators?: Record<string, OperatorSelection>;
715
732
  redactString?: string;
716
733
  };
734
+ type NativeBindingCallerRedactionOptions = {
735
+ requestJson: string;
736
+ operators?: NativeBindingOperatorConfig;
737
+ };
738
+ type NativeBindingSessionCallerRedactionInput = {
739
+ fullText: string;
740
+ requestJson: string;
741
+ };
742
+ type NativeBindingSessionCallerRedactionPlanOptions = {
743
+ inputs: NativeBindingSessionCallerRedactionInput[];
744
+ operators?: NativeBindingOperatorConfig;
745
+ observedAtEpochSeconds?: number;
746
+ };
747
+ type NativeBindingOpenSessionArchiveOptions = {
748
+ archive: Uint8Array;
749
+ key: Uint8Array;
750
+ expectedSessionId: string;
751
+ observedAtEpochSeconds?: number;
752
+ };
717
753
  type NativeDiagnosticsBatchCallback = (diagnosticsJson: string) => void;
718
754
  type NativeResultEventCallback = (eventJson: string) => void;
719
755
  type NativeBindingRedactionEntry = {
@@ -732,6 +768,8 @@ type NativeBindingPipelineEntity = {
732
768
  score: number;
733
769
  source: string;
734
770
  sourceDetail?: string | null;
771
+ providerId?: string | null;
772
+ detectionId?: string | null;
735
773
  };
736
774
  type NativeBindingRedactionResult = {
737
775
  redactedText: string;
@@ -743,14 +781,69 @@ type NativeBindingStaticRedactionResult = {
743
781
  resolvedEntities: NativeBindingPipelineEntity[];
744
782
  redaction: NativeBindingRedactionResult;
745
783
  };
784
+ type NativeSessionStatus = "active" | "not_yet_active" | "expired" | "deleted";
785
+ type NativeSessionLifecycle = {
786
+ createdAtEpochSeconds: number;
787
+ expiresAtEpochSeconds?: number;
788
+ };
789
+ type NativeSessionMetadata = {
790
+ sessionId: string;
791
+ createdAtEpochSeconds: number | null;
792
+ expiresAtEpochSeconds: number | null;
793
+ mappingCount: number;
794
+ status: NativeSessionStatus;
795
+ };
796
+ type NativeSessionDeletionSummary = {
797
+ sessionId: string;
798
+ deletedMappingCount: number;
799
+ };
800
+ type NativeSessionRedactionAtOptions = {
801
+ fullText: string;
802
+ observedAtEpochSeconds: number;
803
+ operators?: NativeOperatorConfig;
804
+ };
805
+ type NativeCreateSessionWithLifecycleOptions = NativeSessionLifecycle & {
806
+ sessionId: string;
807
+ };
808
+ type NativeOpenSessionArchiveOptions = {
809
+ archive: Uint8Array;
810
+ key: Uint8Array;
811
+ expectedSessionId: string;
812
+ observedAtEpochSeconds?: number;
813
+ };
814
+ type NativePreparedRedactionSessionBinding = {
815
+ sessionId: () => string;
816
+ mappingCount: () => number;
817
+ restoreText?: (fullText: string) => string;
818
+ restoreTextAt?: (fullText: string, observedAtEpochSeconds: number) => string;
819
+ toPlaintextJson: () => string;
820
+ toPlaintextJsonAt?: (observedAtEpochSeconds: number) => string;
821
+ toEncryptedArchive?: (key: Uint8Array) => Uint8Array;
822
+ toEncryptedArchiveAt?: (key: Uint8Array, observedAtEpochSeconds: number) => Uint8Array;
823
+ inspectJson?: (observedAtEpochSeconds?: number) => string;
824
+ deleteJson?: () => string;
825
+ redactStaticEntitiesJson: (fullText: string, operators?: NativeBindingOperatorConfig) => string;
826
+ redactStaticEntitiesJsonAt?: (fullText: string, observedAtEpochSeconds: number, operators?: NativeBindingOperatorConfig) => string;
827
+ planStaticEntitiesWithCallerDetections?: (options: NativeBindingSessionCallerRedactionPlanOptions) => NativePreparedSessionRedactionPlanBinding;
828
+ };
829
+ type NativePreparedSessionRedactionPlanBinding = {
830
+ resultJson: () => string;
831
+ commit: () => void;
832
+ };
746
833
  type NativePreparedSearchBinding = {
747
834
  prepareDiagnosticsJson?: () => string;
748
835
  warmLazyRegex?: () => void;
749
836
  warm_lazy_regex?: () => void;
750
837
  warmLazyRegexDiagnosticsJson?: () => string;
751
838
  warm_lazy_regex_diagnostics_json?: () => string;
839
+ createRedactionSession?: (sessionId: string) => NativePreparedRedactionSessionBinding;
840
+ createRedactionSessionWithLifecycle?: (sessionId: string, createdAtEpochSeconds: number, expiresAtEpochSeconds?: number) => NativePreparedRedactionSessionBinding;
841
+ restoreRedactionSession?: (plaintextJson: string) => NativePreparedRedactionSessionBinding;
842
+ restoreEncryptedRedactionSession?: (options: NativeBindingOpenSessionArchiveOptions) => NativePreparedRedactionSessionBinding;
752
843
  redactStaticEntities: (fullText: string, operators?: NativeBindingOperatorConfig) => NativeBindingStaticRedactionResult;
753
844
  redactStaticEntitiesJson?: (fullText: string, operators?: NativeBindingOperatorConfig) => string;
845
+ redactStaticEntitiesWithCallerDetectionsJson?: (fullText: string, options: NativeBindingCallerRedactionOptions) => string;
846
+ redactStaticEntitiesWithCallerDetectionsDiagnosticsJson?: (fullText: string, options: NativeBindingCallerRedactionOptions) => string;
754
847
  redactStaticEntitiesResultStreamJson?: (fullText: string, operators: NativeBindingOperatorConfig | undefined, onEvent: NativeResultEventCallback) => string;
755
848
  redactStaticEntitiesDiagnosticsJson?: (fullText: string, operators?: NativeBindingOperatorConfig) => string;
756
849
  redactStaticEntitiesDiagnosticsStreamJson?: (fullText: string, operators: NativeBindingOperatorConfig | undefined, onBatch: NativeDiagnosticsBatchCallback) => string;
@@ -773,9 +866,41 @@ type NativeAnonymizeBinding = {
773
866
  assembleStaticSearchCompressedPackageBytes?: (pipelineConfigJson: Uint8Array, dictionariesJson?: Uint8Array, gazetteerJson?: Uint8Array) => Uint8Array;
774
867
  };
775
868
  type NativeOperatorConfig = {
776
- operators?: Record<string, OperatorType>;
869
+ operators?: Record<string, OperatorSelection>;
777
870
  redactString?: string;
778
871
  };
872
+ declare const CALLER_DETECTION_CONTRACT_VERSION = 2;
873
+ type NativeCallerDetection = {
874
+ start: number;
875
+ end: number;
876
+ label: string;
877
+ score: number;
878
+ providerId: string;
879
+ detectionId: string;
880
+ };
881
+ type NativeCallerRedactionOptions = {
882
+ detections: readonly NativeCallerDetection[];
883
+ operators?: NativeOperatorConfig;
884
+ };
885
+ type NativeSessionCallerRedactionInput = {
886
+ fullText: string;
887
+ detections: readonly NativeCallerDetection[];
888
+ };
889
+ type NativeSessionCallerRedactionPlanOptions = {
890
+ inputs: readonly NativeSessionCallerRedactionInput[];
891
+ operators?: NativeOperatorConfig;
892
+ observedAtEpochSeconds?: number;
893
+ };
894
+ type NativeTextReplacement = {
895
+ start: number;
896
+ end: number;
897
+ replacement: string;
898
+ };
899
+ type NativeSessionBlockRedactionPlan = {
900
+ replacements: readonly NativeTextReplacement[];
901
+ entityCount: number;
902
+ callerEntityCount: number;
903
+ };
779
904
  type NativePipelineEntity = {
780
905
  start: number;
781
906
  end: number;
@@ -784,6 +909,8 @@ type NativePipelineEntity = {
784
909
  score: number;
785
910
  source: string;
786
911
  sourceDetail?: string;
912
+ providerId?: string;
913
+ detectionId?: string;
787
914
  };
788
915
  type NativeRedactionResult = {
789
916
  redactedText: string;
@@ -841,6 +968,44 @@ type NativeBindingVersionOptions = {
841
968
  binding: NativeAnonymizeBinding;
842
969
  expectedVersion: string;
843
970
  };
971
+ declare class PreparedNativeRedactionSession {
972
+ #private;
973
+ constructor(session: NativePreparedRedactionSessionBinding);
974
+ sessionId(): string;
975
+ session_id(): string;
976
+ mappingCount(): number;
977
+ mapping_count(): number;
978
+ restoreText(fullText: string, observedAtEpochSeconds?: number): string;
979
+ restore_text(fullText: string, observedAtEpochSeconds?: number): string;
980
+ toPlaintextJson(): string;
981
+ to_plaintext_json(): string;
982
+ toPlaintextJsonAt(observedAtEpochSeconds: number): string;
983
+ to_plaintext_json_at(observedAtEpochSeconds: number): string;
984
+ toEncryptedArchive(key: Uint8Array): Uint8Array;
985
+ to_encrypted_archive(key: Uint8Array): Uint8Array;
986
+ toEncryptedArchiveAt(key: Uint8Array, observedAtEpochSeconds: number): Uint8Array;
987
+ to_encrypted_archive_at(key: Uint8Array, observedAtEpochSeconds: number): Uint8Array;
988
+ inspect(observedAtEpochSeconds?: number): NativeSessionMetadata;
989
+ delete(): NativeSessionDeletionSummary;
990
+ redactStaticEntities(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
991
+ redactText(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
992
+ redact_text(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
993
+ redactTextJson(fullText: string, operators?: NativeOperatorConfig): string;
994
+ redact_text_json(fullText: string, operators?: NativeOperatorConfig): string;
995
+ redactStaticEntitiesAt(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult;
996
+ redactTextAt(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult;
997
+ redact_text_at(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult;
998
+ redact_static_entities_at(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult;
999
+ redactTextJsonAt({ fullText, observedAtEpochSeconds, operators }: NativeSessionRedactionAtOptions): string;
1000
+ redact_text_json_at(options: NativeSessionRedactionAtOptions): string;
1001
+ planTextBatchWithCallerDetections({ inputs, operators, observedAtEpochSeconds }: NativeSessionCallerRedactionPlanOptions): PreparedNativeSessionRedactionPlan;
1002
+ }
1003
+ declare class PreparedNativeSessionRedactionPlan {
1004
+ #private;
1005
+ readonly blocks: readonly NativeSessionBlockRedactionPlan[];
1006
+ constructor(plan: NativePreparedSessionRedactionPlanBinding);
1007
+ commit(): void;
1008
+ }
844
1009
  declare class PreparedNativeAnonymizer {
845
1010
  #private;
846
1011
  constructor(prepared: NativePreparedSearchBinding);
@@ -850,9 +1015,21 @@ declare class PreparedNativeAnonymizer {
850
1015
  warm_lazy_regex(): void;
851
1016
  warmLazyRegexDiagnosticsJson(): string | null;
852
1017
  warm_lazy_regex_diagnostics_json(): string | null;
1018
+ createRedactionSession(sessionId: string): PreparedNativeRedactionSession;
1019
+ create_redaction_session(sessionId: string): PreparedNativeRedactionSession;
1020
+ createRedactionSessionWithLifecycle({ sessionId, createdAtEpochSeconds, expiresAtEpochSeconds }: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession;
1021
+ create_redaction_session_with_lifecycle(options: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession;
1022
+ restoreRedactionSession(plaintextJson: string): PreparedNativeRedactionSession;
1023
+ restore_redaction_session(plaintextJson: string): PreparedNativeRedactionSession;
1024
+ restoreEncryptedRedactionSession({ archive, key, expectedSessionId, observedAtEpochSeconds }: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession;
1025
+ restore_encrypted_redaction_session(options: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession;
853
1026
  redactStaticEntities(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
854
1027
  redact_text(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
855
1028
  redact_text_json(fullText: string, operators?: NativeOperatorConfig): string;
1029
+ redactStaticEntitiesWithCallerDetections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult;
1030
+ redact_text_with_caller_detections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult;
1031
+ redactStaticEntitiesWithCallerDetectionsDiagnosticsJson(fullText: string, options: NativeCallerRedactionOptions): string | null;
1032
+ redact_static_entities_with_caller_detections_diagnostics_json(fullText: string, options: NativeCallerRedactionOptions): string | null;
856
1033
  redactTextJson(fullText: string, operators?: NativeOperatorConfig): string;
857
1034
  redactTextStreamJson(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string | null;
858
1035
  redact_text_stream_json(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string | null;
@@ -872,9 +1049,21 @@ declare class PreparedNativePipeline {
872
1049
  warm_lazy_regex(): void;
873
1050
  warmLazyRegexDiagnosticsJson(): string | null;
874
1051
  warm_lazy_regex_diagnostics_json(): string | null;
1052
+ createRedactionSession(sessionId: string): PreparedNativeRedactionSession;
1053
+ create_redaction_session(sessionId: string): PreparedNativeRedactionSession;
1054
+ createRedactionSessionWithLifecycle(options: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession;
1055
+ create_redaction_session_with_lifecycle(options: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession;
1056
+ restoreRedactionSession(plaintextJson: string): PreparedNativeRedactionSession;
1057
+ restore_redaction_session(plaintextJson: string): PreparedNativeRedactionSession;
1058
+ restoreEncryptedRedactionSession(options: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession;
1059
+ restore_encrypted_redaction_session(options: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession;
875
1060
  redactText(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
876
1061
  redact_text(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult;
877
1062
  redact_text_json(fullText: string, operators?: NativeOperatorConfig): string;
1063
+ redactTextWithCallerDetections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult;
1064
+ redact_text_with_caller_detections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult;
1065
+ redactTextWithCallerDetectionsDiagnosticsJson(fullText: string, options: NativeCallerRedactionOptions): string | null;
1066
+ redact_text_with_caller_detections_diagnostics_json(fullText: string, options: NativeCallerRedactionOptions): string | null;
878
1067
  redactTextJson(fullText: string, operators?: NativeOperatorConfig): string;
879
1068
  redactTextStreamJson(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string | null;
880
1069
  redact_text_stream_json(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string | null;
@@ -889,82 +1078,24 @@ declare const encodeNativeSearchConfig: (config: NativePreparedSearchConfig) =>
889
1078
  declare const encodeNativeSearchConfigInput: (config: NativeSearchPackageInput) => Uint8Array;
890
1079
  declare const getNativeBindingVersion: (binding: NativeAnonymizeBinding) => string;
891
1080
  declare const native_package_version: (binding: NativeAnonymizeBinding) => string;
892
- declare const normalize_for_search: ({
893
- binding,
894
- text
895
- }: NativeNormalizeOptions) => string;
896
- declare const assertNativeBindingVersion: ({
897
- binding,
898
- expectedVersion
899
- }: NativeBindingVersionOptions) => void;
900
- declare const prepareNativeSearchPackage: ({
901
- binding,
902
- config,
903
- compressed
904
- }: NativeSearchPackageOptions) => Uint8Array;
905
- declare const prepare_search_package: ({
906
- binding,
907
- config,
908
- compressed
909
- }: SharedNativeSearchPackageOptions) => Uint8Array;
910
- declare const createNativeAnonymizerFromConfig: ({
911
- binding,
912
- config
913
- }: NativeAnonymizerFromConfigOptions) => PreparedNativeAnonymizer;
914
- declare const createNativeAnonymizerFromPackage: ({
915
- binding,
916
- packageBytes
917
- }: NativeAnonymizerFromPackageOptions) => PreparedNativeAnonymizer;
918
- declare const load_prepared_package: ({
919
- binding,
920
- packageBytes
921
- }: SharedNativePreparedPackageOptions) => PreparedNativeAnonymizer;
922
- declare const redact_text_json: ({
923
- binding,
924
- config,
925
- fullText,
926
- operators
927
- }: SharedNativeRedactTextJsonOptions) => string;
928
- declare const redact_text: ({
929
- binding,
930
- config,
931
- fullText,
932
- operators
933
- }: SharedNativeRedactTextOptions) => NativeStaticRedactionResult;
934
- declare const redact_text_stream_json: ({
935
- binding,
936
- config,
937
- fullText,
938
- operators,
939
- onEvent
940
- }: SharedNativeRedactTextStreamJsonOptions) => string | null;
941
- declare const diagnostics_json: ({
942
- binding,
943
- config,
944
- fullText,
945
- operators
946
- }: SharedNativeDiagnosticsJsonOptions) => string | null;
947
- declare const diagnostics_stream_json: ({
948
- binding,
949
- config,
950
- fullText,
951
- operators,
952
- onBatch
953
- }: SharedNativeDiagnosticsStreamJsonOptions) => string | null;
954
- declare const summary_diagnostics_json: ({
955
- binding,
956
- config,
957
- fullText,
958
- operators
959
- }: SharedNativeDiagnosticsJsonOptions) => string | null;
960
- declare const createNativePipelineFromPackage: ({
961
- binding,
962
- packageBytes
963
- }: NativePipelineFromPackageOptions) => PreparedNativePipeline;
1081
+ declare const normalize_for_search: ({ binding, text }: NativeNormalizeOptions) => string;
1082
+ declare const assertNativeBindingVersion: ({ binding, expectedVersion }: NativeBindingVersionOptions) => void;
1083
+ declare const prepareNativeSearchPackage: ({ binding, config, compressed }: NativeSearchPackageOptions) => Uint8Array;
1084
+ declare const prepare_search_package: ({ binding, config, compressed }: SharedNativeSearchPackageOptions) => Uint8Array;
1085
+ declare const createNativeAnonymizerFromConfig: ({ binding, config }: NativeAnonymizerFromConfigOptions) => PreparedNativeAnonymizer;
1086
+ declare const createNativeAnonymizerFromPackage: ({ binding, packageBytes }: NativeAnonymizerFromPackageOptions) => PreparedNativeAnonymizer;
1087
+ declare const load_prepared_package: ({ binding, packageBytes }: SharedNativePreparedPackageOptions) => PreparedNativeAnonymizer;
1088
+ declare const redact_text_json: ({ binding, config, fullText, operators }: SharedNativeRedactTextJsonOptions) => string;
1089
+ declare const redact_text: ({ binding, config, fullText, operators }: SharedNativeRedactTextOptions) => NativeStaticRedactionResult;
1090
+ declare const redact_text_stream_json: ({ binding, config, fullText, operators, onEvent }: SharedNativeRedactTextStreamJsonOptions) => string | null;
1091
+ declare const diagnostics_json: ({ binding, config, fullText, operators }: SharedNativeDiagnosticsJsonOptions) => string | null;
1092
+ declare const diagnostics_stream_json: ({ binding, config, fullText, operators, onBatch }: SharedNativeDiagnosticsStreamJsonOptions) => string | null;
1093
+ declare const summary_diagnostics_json: ({ binding, config, fullText, operators }: SharedNativeDiagnosticsJsonOptions) => string | null;
1094
+ declare const createNativePipelineFromPackage: ({ binding, packageBytes }: NativePipelineFromPackageOptions) => PreparedNativePipeline;
964
1095
  declare const PreparedSearch: typeof PreparedNativeAnonymizer;
965
1096
  type PreparedSearch = PreparedNativeAnonymizer;
966
1097
  declare const PreparedAnonymizer: typeof PreparedNativeAnonymizer;
967
1098
  type PreparedAnonymizer = PreparedNativeAnonymizer;
968
1099
  //#endregion
969
- export { OperatorConfig as $, createNativePipelineFromPackage as A, prepare_search_package as B, SharedNativeRedactTextJsonOptions as C, assertNativeBindingVersion as D, SharedNativeSearchPackageOptions as E, getNativeBindingVersion as F, AnonymisationOperator as G, redact_text_json as H, load_prepared_package as I, DenyListCategory as J, CustomDenyListEntry as K, native_package_version as L, diagnostics_stream_json as M, encodeNativeSearchConfig as N, createNativeAnonymizerFromConfig as O, encodeNativeSearchConfigInput as P, GazetteerEntry as Q, normalize_for_search as R, SharedNativePreparedPackageOptions as S, SharedNativeRedactTextStreamJsonOptions as T, redact_text_stream_json as U, redact_text as V, summary_diagnostics_json as W, DictionaryMeta as X, Dictionaries as Y, Entity as Z, PreparedNativeAnonymizer as _, NativeDiagnosticsBatchCallback as a, TriggerGroupConfig as at, SharedNativeDiagnosticsJsonOptions as b, NativePipelineEntity as c, TriggerValidation as ct, NativeRedactionResult as d, PipelineConfig as et, NativeResultEventCallback as f, PreparedAnonymizer as g, NativeStaticRedactionResult as h, NativeBindingVersionOptions as i, TriggerExtension as it, diagnostics_json as j, createNativeAnonymizerFromPackage as k, NativePipelineFromPackageOptions as l, NativePreparedSearchConfig as lt, NativeSearchPackageOptions as m, NativeAnonymizerFromConfigOptions as n, ReviewDecision as nt, NativeNormalizeOptions as o, TriggerRule as ot, NativeSearchPackageInput as p, CustomRegexPattern as q, NativeAnonymizerFromPackageOptions as r, ReviewedEntity as rt, NativeOperatorConfig as s, TriggerStrategy as st, NativeAnonymizeBinding as t, RedactionResult as tt, NativePreparedSearchBinding as u, PreparedNativePipeline as v, SharedNativeRedactTextOptions as w, SharedNativeDiagnosticsStreamJsonOptions as x, PreparedSearch as y, prepareNativeSearchPackage as z };
1100
+ export { getNativeBindingVersion as $, NativeStaticRedactionResult as A, SharedNativePreparedPackageOptions as B, NativeSessionCallerRedactionInput as C, TriggerGroupConfig as Ct, NativeSessionMetadata as D, NativePreparedSearchConfig as Dt, NativeSessionLifecycle as E, TriggerValidation as Et, PreparedNativeRedactionSession as F, assertNativeBindingVersion as G, SharedNativeRedactTextOptions as H, PreparedNativeSessionRedactionPlan as I, createNativePipelineFromPackage as J, createNativeAnonymizerFromConfig as K, PreparedSearch as L, PreparedAnonymizer as M, PreparedNativeAnonymizer as N, NativeSessionRedactionAtOptions as O, PreparedNativePipeline as P, encodeNativeSearchConfigInput as Q, SharedNativeDiagnosticsJsonOptions as R, NativeSessionBlockRedactionPlan as S, TriggerExtension as St, NativeSessionDeletionSummary as T, TriggerStrategy as Tt, SharedNativeRedactTextStreamJsonOptions as U, SharedNativeRedactTextJsonOptions as V, SharedNativeSearchPackageOptions as W, diagnostics_stream_json as X, diagnostics_json as Y, encodeNativeSearchConfig as Z, NativePreparedSessionRedactionPlanBinding as _, OperatorConfig as _t, NativeBindingVersionOptions as a, redact_text as at, NativeSearchPackageInput as b, ReviewDecision as bt, NativeCreateSessionWithLifecycleOptions as c, summary_diagnostics_json as ct, NativeOpenSessionArchiveOptions as d, CustomRegexPattern as dt, load_prepared_package as et, NativeOperatorConfig as f, DenyListCategory as ft, NativePreparedSearchBinding as g, GazetteerEntry as gt, NativePreparedRedactionSessionBinding as h, Entity as ht, NativeAnonymizerFromPackageOptions as i, prepare_search_package as it, NativeTextReplacement as j, NativeSessionStatus as k, NativeDiagnosticsBatchCallback as l, AnonymisationOperator as lt, NativePipelineFromPackageOptions as m, DictionaryMeta as mt, NativeAnonymizeBinding as n, normalize_for_search as nt, NativeCallerDetection as o, redact_text_json as ot, NativePipelineEntity as p, Dictionaries as pt, createNativeAnonymizerFromPackage as q, NativeAnonymizerFromConfigOptions as r, prepareNativeSearchPackage as rt, NativeCallerRedactionOptions as s, redact_text_stream_json as st, CALLER_DETECTION_CONTRACT_VERSION as t, native_package_version as tt, NativeNormalizeOptions as u, CustomDenyListEntry as ut, NativeRedactionResult as v, PipelineConfig as vt, NativeSessionCallerRedactionPlanOptions as w, TriggerRule as wt, NativeSearchPackageOptions as x, ReviewedEntity as xt, NativeResultEventCallback as y, RedactionResult as yt, SharedNativeDiagnosticsStreamJsonOptions as z };
970
1101
  //# sourceMappingURL=native.d.mts.map