@stll/anonymize 2.8.2 → 2.9.0

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/README.md CHANGED
@@ -19,46 +19,61 @@ is enabled.
19
19
 
20
20
  ```bash
21
21
  bun add @stll/anonymize
22
- # Optional data bundle for deny lists and dictionaries
23
- bun add @stll/anonymize-data
24
22
  ```
25
23
 
26
24
  The Node.js and Bun package is Rust-native and requires Node.js 20 or newer or
27
- Bun 1.4 or newer. Browser/WASM support is maintained through
28
- `@stll/anonymize-wasm`, which wraps the same native core.
25
+ Bun 1.4 or newer. Prebuilt binaries ship for macOS (`arm64`, `x64`),
26
+ glibc-based Linux (`arm64`, `x64`), and Windows (`x64`). Alpine Linux and other
27
+ musl-based systems are not supported. Browser/WASM support is maintained
28
+ through `@stll/anonymize-wasm`, which wraps the same native core.
29
29
 
30
30
  ## Usage: Node.js native SDK
31
31
 
32
32
  ```ts
33
- import {
34
- availableDefaultNativePipelineLanguages,
35
- getDefaultNativePipeline,
36
- } from "@stll/anonymize/native-node";
33
+ import { createPipeline } from "@stll/anonymize/native-node";
37
34
 
38
- const languages = availableDefaultNativePipelineLanguages();
39
- const anonymizer = getDefaultNativePipeline(
40
- languages.includes("en") ? { language: "en" } : {},
41
- );
35
+ const anonymizer = await createPipeline({ language: "en" });
42
36
  const text = "Contact Alice Smith at alice@example.com.";
43
37
  const result = anonymizer.redactText(text);
44
38
 
45
39
  console.log(result.redaction.redactedText);
46
40
  ```
47
41
 
48
- Call `getDefaultNativePipeline()` once during service startup and reuse the returned anonymizer. The package ships with a prepared native package, so the normal request path avoids rebuilding search automata. Use `preloadDefaultNativePipeline()` or `preloadDefaultNativePipelineAsync()` when the first document should not pay lazy regex warm-up.
42
+ Call `createPipeline()` once during service startup and reuse the returned
43
+ anonymizer. Pass `warmup: "lazy-regex"` when the first document should not pay
44
+ lazy regex warm-up.
49
45
 
50
- If your deployment knows the document language up front, select a scoped package at startup. The build emits `en`, `cs`, and `de` scoped packages by default, and `STELLA_ANONYMIZE_NATIVE_PACKAGE_LANGUAGES` can replace that list or be set to an empty value to build only the all-language package:
46
+ The semantic language selector accepts one supported code, an exact non-empty
47
+ combination, or `"all"`:
51
48
 
52
- ```bash
53
- STELLA_ANONYMIZE_NATIVE_PACKAGE_LANGUAGES=en,cs,fr bun run build
49
+ ```ts
50
+ await createPipeline({ language: "es" });
51
+ await createPipeline({ language: ["cs", "en"] });
52
+ await createPipeline({ language: "all" });
54
53
  ```
55
54
 
56
- ```ts
57
- const anonymizer = getDefaultNativePipeline({ language: "en" });
55
+ Supported codes are `cs`, `de`, `en`, `es`, `fr`, `hu`, `it`, `lv`, `pl`,
56
+ `pt-br`, `ro`, `sk`, and `sv`. Unsupported and empty selections fail before a
57
+ pipeline is loaded. The factory uses a matching prepared artifact when one is
58
+ bundled; otherwise it prepares and caches the exact requested scope. It never
59
+ substitutes the all-language behavior for a narrower request.
60
+
61
+ `getDefaultNativePipeline()` and related loaders remain the lower-level
62
+ prepared-artifact API. The distributed package bundles the all-language
63
+ artifact plus smaller `cs`, `de`, and `en` artifacts.
64
+
65
+ Source builds emit the same three scoped artifacts by default.
66
+ `STELLA_ANONYMIZE_NATIVE_PACKAGE_LANGUAGES` can replace that list or be set to
67
+ an empty value to build only the all-language package:
68
+
69
+ ```bash
70
+ STELLA_ANONYMIZE_NATIVE_PACKAGE_LANGUAGES=en,cs,fr bun run build
58
71
  ```
59
72
 
60
- Regional codes use the exact package when present and otherwise fall back to
61
- the base language package, so `en-US` can use the shipped `en` artifact.
73
+ For the lower-level artifact loader, regional codes use the exact package when
74
+ present and otherwise fall back to the base language package, so `en-US` can
75
+ use the shipped `en` artifact. The semantic factory accepts only the supported
76
+ codes listed above.
62
77
 
63
78
  For build-time generated packages or caller-owned data, prepare the package before runtime and load the bytes in the process that handles documents.
64
79
 
@@ -0,0 +1,14 @@
1
+ import { d as PipelineConfig } from "./types.mjs";
2
+ //#region src/language-scope.d.ts
3
+ declare const applyPipelineLanguageScope: (config: PipelineConfig) => PipelineConfig;
4
+ //#endregion
5
+ //#region src/build-native-package.d.ts
6
+ type DictionaryBundleOptions = {
7
+ countries?: readonly string[];
8
+ cityCountries?: readonly string[];
9
+ nameLanguages?: readonly string[];
10
+ };
11
+ declare const defaultDictionaryBundleOptions: (config: PipelineConfig) => DictionaryBundleOptions;
12
+ //#endregion
13
+ export { applyPipelineLanguageScope, defaultDictionaryBundleOptions };
14
+ //# sourceMappingURL=build-native-package.d.mts.map
@@ -0,0 +1,2 @@
1
+ import { n as applyPipelineLanguageScope, t as defaultDictionaryBundleOptions } from "./build-native-package2.mjs";
2
+ export { applyPipelineLanguageScope, defaultDictionaryBundleOptions };
@@ -0,0 +1,211 @@
1
+ //#region src/data/language-scopes.json
2
+ var language_scopes_default = {
3
+ _comment: "Default dictionary scopes for content language hints. The all-language city scope preserves the data package defaults and covers every supported language. Lower-level caller config can still override name corpus languages and deny-list countries independently.",
4
+ allLanguageCityCountries: [
5
+ "AR",
6
+ "AT",
7
+ "AU",
8
+ "BE",
9
+ "BG",
10
+ "BO",
11
+ "BR",
12
+ "CA",
13
+ "CH",
14
+ "CL",
15
+ "CO",
16
+ "CR",
17
+ "CU",
18
+ "CZ",
19
+ "DE",
20
+ "DK",
21
+ "DO",
22
+ "EC",
23
+ "ES",
24
+ "FI",
25
+ "FR",
26
+ "GB",
27
+ "GR",
28
+ "GT",
29
+ "HN",
30
+ "HR",
31
+ "HU",
32
+ "IE",
33
+ "IT",
34
+ "LU",
35
+ "LV",
36
+ "MC",
37
+ "MD",
38
+ "MX",
39
+ "NI",
40
+ "NL",
41
+ "NO",
42
+ "NZ",
43
+ "PA",
44
+ "PE",
45
+ "PL",
46
+ "PT",
47
+ "PY",
48
+ "RO",
49
+ "SE",
50
+ "SI",
51
+ "SK",
52
+ "SV",
53
+ "US",
54
+ "UY",
55
+ "VE"
56
+ ],
57
+ languages: {
58
+ "cs": {
59
+ "nameCorpusLanguages": ["cs", "sk"],
60
+ "denyListCountries": ["CZ", "SK"]
61
+ },
62
+ "de": {
63
+ "nameCorpusLanguages": ["de"],
64
+ "denyListCountries": [
65
+ "DE",
66
+ "AT",
67
+ "CH"
68
+ ]
69
+ },
70
+ "en": {
71
+ "nameCorpusLanguages": ["en"],
72
+ "denyListCountries": [
73
+ "US",
74
+ "GB",
75
+ "CA",
76
+ "AU",
77
+ "IE"
78
+ ]
79
+ },
80
+ "es": {
81
+ "nameCorpusLanguages": ["es"],
82
+ "denyListCountries": [
83
+ "ES",
84
+ "MX",
85
+ "AR",
86
+ "CL",
87
+ "CO",
88
+ "PE",
89
+ "EC",
90
+ "VE",
91
+ "UY",
92
+ "PY",
93
+ "BO",
94
+ "CR",
95
+ "PA",
96
+ "DO",
97
+ "GT",
98
+ "HN",
99
+ "SV",
100
+ "NI",
101
+ "CU"
102
+ ]
103
+ },
104
+ "fr": {
105
+ "nameCorpusLanguages": ["fr"],
106
+ "denyListCountries": [
107
+ "FR",
108
+ "BE",
109
+ "CH",
110
+ "CA",
111
+ "LU",
112
+ "MC"
113
+ ]
114
+ },
115
+ "hu": {
116
+ "nameCorpusLanguages": ["hu"],
117
+ "denyListCountries": ["HU"]
118
+ },
119
+ "it": {
120
+ "nameCorpusLanguages": ["it"],
121
+ "denyListCountries": ["IT", "CH"]
122
+ },
123
+ "lv": {
124
+ "nameCorpusLanguages": [],
125
+ "denyListCountries": ["LV"]
126
+ },
127
+ "pl": {
128
+ "nameCorpusLanguages": ["pl"],
129
+ "denyListCountries": ["PL"]
130
+ },
131
+ "pt-br": {
132
+ "nameCorpusLanguages": ["pt-br"],
133
+ "denyListCountries": ["BR"]
134
+ },
135
+ "ro": {
136
+ "nameCorpusLanguages": ["ro"],
137
+ "denyListCountries": ["RO", "MD"]
138
+ },
139
+ "sk": {
140
+ "nameCorpusLanguages": ["sk", "cs"],
141
+ "denyListCountries": ["SK", "CZ"]
142
+ },
143
+ "sv": {
144
+ "nameCorpusLanguages": ["sv"],
145
+ "denyListCountries": ["SE", "FI"]
146
+ }
147
+ }
148
+ };
149
+ //#endregion
150
+ //#region src/language-scope.ts
151
+ const scopeData = language_scopes_default;
152
+ const normalizeLanguage = (language) => language.trim().toLowerCase();
153
+ const fallbackLanguage = (language) => {
154
+ const index = language.indexOf("-");
155
+ return index === -1 ? null : language.slice(0, index);
156
+ };
157
+ const uniquePush = (target, values) => {
158
+ const seen = new Set(target);
159
+ for (const value of values) {
160
+ if (seen.has(value)) continue;
161
+ seen.add(value);
162
+ target.push(value);
163
+ }
164
+ };
165
+ const resolveLanguageScope = (language) => {
166
+ const normalized = normalizeLanguage(language);
167
+ if (normalized.length === 0) return null;
168
+ const exact = scopeData.languages[normalized];
169
+ if (exact !== void 0) return exact;
170
+ const fallback = fallbackLanguage(normalized);
171
+ return fallback === null ? null : scopeData.languages[fallback] ?? null;
172
+ };
173
+ const configuredLanguages = (config) => {
174
+ if (config.languages !== void 0) return config.languages;
175
+ return config.language === void 0 ? [] : [config.language];
176
+ };
177
+ const applyPipelineLanguageScope = (config) => {
178
+ const languages = configuredLanguages(config);
179
+ if (languages.length === 0) return config;
180
+ const nameCorpusLanguages = [];
181
+ const denyListCountries = [];
182
+ let hasResolvedScope = false;
183
+ for (const language of languages) {
184
+ const scope = resolveLanguageScope(language);
185
+ if (scope === null) continue;
186
+ hasResolvedScope = true;
187
+ uniquePush(nameCorpusLanguages, scope.nameCorpusLanguages ?? []);
188
+ uniquePush(denyListCountries, scope.denyListCountries ?? []);
189
+ }
190
+ const next = {};
191
+ if (config.nameCorpusLanguages === void 0 && hasResolvedScope) next.nameCorpusLanguages = nameCorpusLanguages;
192
+ if (config.denyListCountries === void 0 && hasResolvedScope) next.denyListCountries = denyListCountries;
193
+ return Object.keys(next).length === 0 ? config : {
194
+ ...config,
195
+ ...next
196
+ };
197
+ };
198
+ //#endregion
199
+ //#region src/build-native-package.ts
200
+ const EMPTY_NAME_CORPUS_SCOPE = ["und"];
201
+ const defaultDictionaryBundleOptions = (config) => ({
202
+ ...config.denyListCountries === void 0 ? { cityCountries: language_scopes_default.allLanguageCityCountries } : {
203
+ countries: config.denyListCountries,
204
+ cityCountries: config.denyListCountries
205
+ },
206
+ ...config.nameCorpusLanguages === void 0 ? {} : { nameLanguages: config.nameCorpusLanguages.length === 0 ? EMPTY_NAME_CORPUS_SCOPE : config.nameCorpusLanguages }
207
+ });
208
+ //#endregion
209
+ export { applyPipelineLanguageScope as n, language_scopes_default as r, defaultDictionaryBundleOptions as t };
210
+
211
+ //# sourceMappingURL=build-native-package2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-native-package2.mjs","names":["languageScopes","languageScopes"],"sources":["../src/data/language-scopes.json","../src/language-scope.ts","../src/build-native-package.ts"],"sourcesContent":["","import languageScopes from \"./data/language-scopes.json\";\n\nimport type { PipelineConfig } from \"./types\";\n\ntype LanguageScope = {\n nameCorpusLanguages?: readonly string[];\n denyListCountries?: readonly string[];\n};\n\ntype LanguageScopeData = {\n languages: Record<string, LanguageScope>;\n};\n\nconst scopeData = languageScopes as LanguageScopeData;\n\nconst normalizeLanguage = (language: string): string =>\n language.trim().toLowerCase();\n\nconst fallbackLanguage = (language: string): string | null => {\n const index = language.indexOf(\"-\");\n return index === -1 ? null : language.slice(0, index);\n};\n\nconst uniquePush = (target: string[], values: readonly string[]): void => {\n const seen = new Set(target);\n for (const value of values) {\n if (seen.has(value)) {\n continue;\n }\n seen.add(value);\n target.push(value);\n }\n};\n\nconst resolveLanguageScope = (language: string): LanguageScope | null => {\n const normalized = normalizeLanguage(language);\n if (normalized.length === 0) {\n return null;\n }\n const exact = scopeData.languages[normalized];\n if (exact !== undefined) {\n return exact;\n }\n const fallback = fallbackLanguage(normalized);\n return fallback === null ? null : (scopeData.languages[fallback] ?? null);\n};\n\nconst configuredLanguages = (config: PipelineConfig): readonly string[] => {\n if (config.languages !== undefined) {\n return config.languages;\n }\n return config.language === undefined ? [] : [config.language];\n};\n\nexport const configuredContentLanguages = (\n config: Pick<PipelineConfig, \"language\" | \"languages\">,\n): readonly string[] | undefined => {\n if (config.languages !== undefined) {\n return config.languages;\n }\n return config.language === undefined ? undefined : [config.language];\n};\n\nexport const applyPipelineLanguageScope = (\n config: PipelineConfig,\n): PipelineConfig => {\n const languages = configuredLanguages(config);\n if (languages.length === 0) {\n return config;\n }\n\n const nameCorpusLanguages: string[] = [];\n const denyListCountries: string[] = [];\n let hasResolvedScope = false;\n for (const language of languages) {\n const scope = resolveLanguageScope(language);\n if (scope === null) {\n continue;\n }\n hasResolvedScope = true;\n uniquePush(nameCorpusLanguages, scope.nameCorpusLanguages ?? []);\n uniquePush(denyListCountries, scope.denyListCountries ?? []);\n }\n\n const next: Partial<PipelineConfig> = {};\n if (config.nameCorpusLanguages === undefined && hasResolvedScope) {\n next.nameCorpusLanguages = nameCorpusLanguages;\n }\n if (config.denyListCountries === undefined && hasResolvedScope) {\n next.denyListCountries = denyListCountries;\n }\n\n return Object.keys(next).length === 0 ? config : { ...config, ...next };\n};\n","import type { PipelineConfig } from \"./types\";\nimport { applyPipelineLanguageScope } from \"./language-scope\";\nimport languageScopes from \"./data/language-scopes.json\";\n\ntype DictionaryBundleOptions = {\n countries?: readonly string[];\n cityCountries?: readonly string[];\n nameLanguages?: readonly string[];\n};\n\n// @stll/anonymize-data 0.0.10 treats an empty language list as unscoped.\n// A non-empty unsupported scope uses its existing \"no matching corpus\" path.\nconst EMPTY_NAME_CORPUS_SCOPE = [\"und\"] as const;\n\nexport const defaultDictionaryBundleOptions = (\n config: PipelineConfig,\n): DictionaryBundleOptions => ({\n ...(config.denyListCountries === undefined\n ? { cityCountries: languageScopes.allLanguageCityCountries }\n : {\n countries: config.denyListCountries,\n cityCountries: config.denyListCountries,\n }),\n ...(config.nameCorpusLanguages === undefined\n ? {}\n : {\n nameLanguages:\n config.nameCorpusLanguages.length === 0\n ? EMPTY_NAME_CORPUS_SCOPE\n : config.nameCorpusLanguages,\n }),\n});\n\nexport { applyPipelineLanguageScope };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACaA,MAAM,YAAYA;AAElB,MAAM,qBAAqB,aACzB,SAAS,KAAK,CAAC,CAAC,YAAY;AAE9B,MAAM,oBAAoB,aAAoC;CAC5D,MAAM,QAAQ,SAAS,QAAQ,GAAG;CAClC,OAAO,UAAU,KAAK,OAAO,SAAS,MAAM,GAAG,KAAK;AACtD;AAEA,MAAM,cAAc,QAAkB,WAAoC;CACxE,MAAM,OAAO,IAAI,IAAI,MAAM;CAC3B,KAAK,MAAM,SAAS,QAAQ;EAC1B,IAAI,KAAK,IAAI,KAAK,GAChB;EAEF,KAAK,IAAI,KAAK;EACd,OAAO,KAAK,KAAK;CACnB;AACF;AAEA,MAAM,wBAAwB,aAA2C;CACvE,MAAM,aAAa,kBAAkB,QAAQ;CAC7C,IAAI,WAAW,WAAW,GACxB,OAAO;CAET,MAAM,QAAQ,UAAU,UAAU;CAClC,IAAI,UAAU,KAAA,GACZ,OAAO;CAET,MAAM,WAAW,iBAAiB,UAAU;CAC5C,OAAO,aAAa,OAAO,OAAQ,UAAU,UAAU,aAAa;AACtE;AAEA,MAAM,uBAAuB,WAA8C;CACzE,IAAI,OAAO,cAAc,KAAA,GACvB,OAAO,OAAO;CAEhB,OAAO,OAAO,aAAa,KAAA,IAAY,CAAC,IAAI,CAAC,OAAO,QAAQ;AAC9D;AAWA,MAAa,8BACX,WACmB;CACnB,MAAM,YAAY,oBAAoB,MAAM;CAC5C,IAAI,UAAU,WAAW,GACvB,OAAO;CAGT,MAAM,sBAAgC,CAAC;CACvC,MAAM,oBAA8B,CAAC;CACrC,IAAI,mBAAmB;CACvB,KAAK,MAAM,YAAY,WAAW;EAChC,MAAM,QAAQ,qBAAqB,QAAQ;EAC3C,IAAI,UAAU,MACZ;EAEF,mBAAmB;EACnB,WAAW,qBAAqB,MAAM,uBAAuB,CAAC,CAAC;EAC/D,WAAW,mBAAmB,MAAM,qBAAqB,CAAC,CAAC;CAC7D;CAEA,MAAM,OAAgC,CAAC;CACvC,IAAI,OAAO,wBAAwB,KAAA,KAAa,kBAC9C,KAAK,sBAAsB;CAE7B,IAAI,OAAO,sBAAsB,KAAA,KAAa,kBAC5C,KAAK,oBAAoB;CAG3B,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,WAAW,IAAI,SAAS;EAAE,GAAG;EAAQ,GAAG;CAAK;AACxE;;;ACjFA,MAAM,0BAA0B,CAAC,KAAK;AAEtC,MAAa,kCACX,YAC6B;CAC7B,GAAI,OAAO,sBAAsB,KAAA,IAC7B,EAAE,eAAeC,wBAAe,yBAAyB,IACzD;EACE,WAAW,OAAO;EAClB,eAAe,OAAO;CACxB;CACJ,GAAI,OAAO,wBAAwB,KAAA,IAC/B,CAAC,IACD,EACE,eACE,OAAO,oBAAoB,WAAW,IAClC,0BACA,OAAO,oBACf;AACN"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { a as DetectionSource, c as ENTITY_SELECTIONS, d as EntitySelection, f as OPERATOR_TYPES, i as DefaultEntityLabel, l as EntityCapability, n as DETECTION_SOURCES, o as ENTITY_CAPABILITIES, p as OperatorType, r as DETECTOR_PRIORITY, s as ENTITY_LABELS, t as DEFAULT_ENTITY_LABELS, u as EntityLabel } from "./constants2.mjs";
2
+ import { _ as TriggerRule, a as Dictionaries, c as GazetteerEntry, d as PipelineConfig, f as RedactionResult, g as TriggerGroupConfig, h as TriggerExtension, i as DenyListCategory, l as OperatorConfig, m as ReviewedEntity, n as CustomDenyListEntry, o as DictionaryMeta, p as ReviewDecision, r as CustomRegexPattern, s as Entity, t as AnonymisationOperator, v as TriggerStrategy, y as TriggerValidation } from "./types.mjs";
2
3
  import { CAPABILITY_MANIFEST, CAPABILITY_MANIFEST_SCHEMA_VERSION, CAPABILITY_PARITY_PROFILES, CAPABILITY_RUNTIMES, CAPABILITY_SURFACES, CapabilityManifest, CapabilityParityProfile, CapabilityRuntime, CapabilitySurface, CapabilitySurfaceId } from "./capabilities.mjs";
3
- import { $ as SharedNativeRedactTextJsonOptions, A as NativeRedactionResult, At as GazetteerEntry, B as NativeSessionRedactionAtOptions, Bt as TriggerValidation, C as NativeOpenSessionArchiveOptions, Ct as AnonymisationOperator, D as NativePreparedRedactionSessionBinding, Dt as Dictionaries, E as NativePipelineFromPackageOptions, Et as DenyListCategory, F as NativeSessionCallerRedactionInput, Ft as ReviewedEntity, G as PreparedNativeAnonymizer, H as NativeStaticRedactionResult, I as NativeSessionCallerRedactionPlanOptions, It as TriggerExtension, J as PreparedNativeSessionRedactionPlan, K as PreparedNativePipeline, L as NativeSessionDeletionSummary, Lt as TriggerGroupConfig, M as NativeSearchPackageInput, Mt as PipelineConfig, N as NativeSearchPackageOptions, Nt as RedactionResult, O as NativePreparedSearchBinding, Ot as DictionaryMeta, P as NativeSessionBlockRedactionPlan, Pt as ReviewDecision, Q as SharedNativePreparedPackageOptions, R as NativeSessionLifecycle, Rt as TriggerRule, S as NativeNormalizeOptions, T as NativePipelineEntity, Tt as CustomRegexPattern, U as NativeTextReplacement, V as NativeSessionStatus, Vt as NativePreparedSearchConfig, W as PreparedAnonymizer, X as SharedNativeDiagnosticsJsonOptions, Y as PreparedSearch, Z as SharedNativeDiagnosticsStreamJsonOptions, _ as NativeBindingVersionOptions, _t as prepareNativeSearchPackage, a as EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, at as createNativeAnonymizerFromConfig, b as NativeCreateSessionWithLifecycleOptions, c as EXTERNAL_DETECTION_MAX_METADATA_BYTES, d as ExternalDetectionBatch, dt as encodeNativeSearchConfigInput, et as SharedNativeRedactTextOptions, f as ExternalDetectionOffsetUnit, ft as getNativeBindingVersion, g as NativeAnonymizerFromPackageOptions, h as NativeAnonymizerFromConfigOptions, i as EXTERNAL_DETECTION_BATCH_VERSION, j as NativeResultEventCallback, jt as OperatorConfig, k as NativePreparedSessionRedactionPlanBinding, kt as Entity, l as EXTERNAL_DETECTION_OFFSET_UNITS, m as NativeAnonymizeBinding, n as ConvertExternalDetectionBatchOptions, nt as SharedNativeSearchPackageOptions, o as EXTERNAL_DETECTION_MAX_DETECTIONS, ot as createNativeAnonymizerFromPackage, p as NATIVE_BINDING_PARITY_MEMBERS, pt as isNativeAnonymizeBinding, q as PreparedNativeRedactionSession, r as EXTERNAL_DETECTION_BATCH_MAX_BYTES, rt as assertNativeBindingVersion, s as EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, st as createNativePipelineFromPackage, t as CALLER_DETECTION_CONTRACT_VERSION, tt as SharedNativeRedactTextStreamJsonOptions, u as EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, ut as encodeNativeSearchConfig, v as NativeCallerDetection, w as NativeOperatorConfig, wt as CustomDenyListEntry, x as NativeDiagnosticsBatchCallback, y as NativeCallerRedactionOptions, z as NativeSessionMetadata, zt as TriggerStrategy } from "./native.mjs";
4
- import { $ as prepareNativePipelinePackage, A as readDefaultNativePipelinePackageFile, B as redact_text_json, C as load_prepared_package_file, D as preloadDefaultNativePipelineAsync, E as preloadDefaultNativePipeline, F as redactDefaultText, G as NativePipelineBuildOptions, H as setNativeBindingOverride, I as redactDefaultTextJson, J as NativePipelineUnsupportedFeature, K as NativePipelineCompatibility, L as redact_default_text, M as readNativePipelinePackageFile, N as readNativePipelinePackageFileAsync, O as preload_default_native_pipeline, P as read_default_native_pipeline_package_file, Q as prepareNativePipelineConfig, R as redact_default_text_json, S as load_prepared_package, T as normalize_for_search, U as summary_diagnostics_json, V as redact_text_stream_json, W as DEFAULT_NATIVE_PIPELINE_CONFIG, X as createNativePipelineFromConfig, Y as assertNativePipelineSupported, Z as getNativePipelineCompatibility, _ as diagnostics_json, a as LoadNativeBindingOptions, b as get_default_native_pipeline, c as NativeRequire, d as availableDefaultNativePipelineLanguages, et as PipelineContext, f as available_default_native_pipeline_languages, g as create_native_pipeline_from_default_package, h as createNativePipelineFromPackageFile, i as DefaultNativePipelineWarmup, j as readDefaultNativePipelinePackageFileAsync, k as prepare_search_package, l as NativeSdkOptions, m as createNativePipelineFromDefaultPackage, n as DefaultNativePipelinePackageFileOptions, o as NativeLibc, p as convert_external_detection_batch, q as NativePipelinePackageOptions, r as DefaultNativePipelinePackageOptions, s as NativePipelinePackageFileOptions, t as DEFAULT_NATIVE_PIPELINE_WARMUPS, tt as createPipelineContext, u as NativeSdkPackageOptions, v as diagnostics_stream_json, w as native_package_version, x as loadNativeAnonymizeBinding, y as getDefaultNativePipeline, z as redact_text } from "./native-node.mjs";
4
+ import { $ as SESSION_CALLER_INPUTS_JSON_MAX_BYTES, A as NativePreparedRedactionSessionBinding, B as NativeSessionDeletionSummary, C as NativeCreateSessionWithLifecycleOptions, D as NativeOperatorConfig, E as NativeOpenSessionArchiveOptions, F as NativeSearchPackageInput, G as NativeStaticRedactionResult, H as NativeSessionMetadata, I as NativeSearchPackageOptions, J as PreparedNativeAnonymizer, K as NativeTextReplacement, L as NativeSessionBlockRedactionPlan, M as NativePreparedSessionRedactionPlanBinding, N as NativeRedactionResult, O as NativePipelineEntity, Ot as NativePreparedSearchConfig, P as NativeResultEventCallback, Q as PreparedSearch, R as NativeSessionCallerRedactionInput, S as NativeCallerRedactionOptions, St as prepareNativeSearchPackage, T as NativeNormalizeOptions, U as NativeSessionRedactionAtOptions, V as NativeSessionLifecycle, W as NativeSessionStatus, X as PreparedNativeRedactionSession, Y as PreparedNativePipeline, Z as PreparedNativeSessionRedactionPlan, _ as NativeAnonymizeBinding, _t as getNativeBindingVersion, a as ConvertExternalDetectionBatchOptions, at as SharedNativeRedactTextOptions, b as NativeBindingVersionOptions, c as EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, ct as assertNativeBindingVersion, d as EXTERNAL_DETECTION_MAX_METADATA_BYTES, dt as createNativeAnonymizerFromPackage, et as SESSION_CALLER_MAX_INPUTS, f as EXTERNAL_DETECTION_OFFSET_UNITS, ft as createNativePipelineFromPackage, g as NATIVE_BINDING_PARITY_MEMBERS, gt as encodeNativeSearchConfigInput, h as ExternalDetectionOffsetUnit, ht as encodeNativeSearchConfig, i as CALLER_DETECTION_TEXT_MAX_BYTES, it as SharedNativeRedactTextJsonOptions, j as NativePreparedSearchBinding, k as NativePipelineFromPackageOptions, l as EXTERNAL_DETECTION_MAX_DETECTIONS, m as ExternalDetectionBatch, n as CALLER_DETECTION_MAX_COUNT, nt as SharedNativeDiagnosticsStreamJsonOptions, o as EXTERNAL_DETECTION_BATCH_MAX_BYTES, ot as SharedNativeRedactTextStreamJsonOptions, p as EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, q as PreparedAnonymizer, r as CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, rt as SharedNativePreparedPackageOptions, s as EXTERNAL_DETECTION_BATCH_VERSION, st as SharedNativeSearchPackageOptions, t as CALLER_DETECTION_CONTRACT_VERSION, tt as SharedNativeDiagnosticsJsonOptions, u as EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, ut as createNativeAnonymizerFromConfig, v as NativeAnonymizerFromConfigOptions, vt as isNativeAnonymizeBinding, w as NativeDiagnosticsBatchCallback, x as NativeCallerDetection, y as NativeAnonymizerFromPackageOptions, z as NativeSessionCallerRedactionPlanOptions } from "./native.mjs";
5
+ import { $ as createNativePipelineFromConfig, A as preloadDefaultNativePipelineAsync, B as redact_default_text, C as get_default_native_pipeline, D as native_package_version, E as load_prepared_package_file, F as readNativePipelinePackageFile, G as setNativeBindingOverride, H as redact_text, I as readNativePipelinePackageFileAsync, J as NativePipelineBuildOptions, K as summary_diagnostics_json, L as read_default_native_pipeline_package_file, M as prepare_search_package, N as readDefaultNativePipelinePackageFile, O as normalize_for_search, P as readDefaultNativePipelinePackageFileAsync, Q as assertNativePipelineSupported, R as redactDefaultText, S as getDefaultNativePipeline, T as load_prepared_package, U as redact_text_json, V as redact_default_text_json, W as redact_text_stream_json, X as NativePipelinePackageOptions, Y as NativePipelineCompatibility, Z as NativePipelineUnsupportedFeature, _ as createPipeline, a as DefaultNativePipelineWarmup, at as PipelineLanguageSelection, b as diagnostics_json, c as NativePipelinePackageFileOptions, d as NativeSdkPackageOptions, et as getNativePipelineCompatibility, f as availableDefaultNativePipelineLanguages, g as createNativePipelineFromPackageFile, h as createNativePipelineFromDefaultPackage, i as DefaultNativePipelinePackageOptions, it as createPipelineContext, j as preload_default_native_pipeline, k as preloadDefaultNativePipeline, l as NativeRequire, m as convert_external_detection_batch, n as DEFAULT_NATIVE_PIPELINE_WARMUPS, nt as prepareNativePipelinePackage, o as LoadNativeBindingOptions, ot as SUPPORTED_LANGUAGES, p as available_default_native_pipeline_languages, q as DEFAULT_NATIVE_PIPELINE_CONFIG, r as DefaultNativePipelinePackageFileOptions, rt as PipelineContext, s as NativeLibc, st as SupportedLanguage, t as CreatePipelineOptions, tt as prepareNativePipelineConfig, u as NativeSdkOptions, v as create_native_pipeline_from_default_package, w as loadNativeAnonymizeBinding, x as diagnostics_stream_json, y as create_pipeline, z as redactDefaultTextJson } from "./native-node.mjs";
5
6
  //#region src/redact.d.ts
6
7
  /**
7
8
  * Serialize the redaction key to JSON for export.
@@ -15,5 +16,5 @@ declare const exportRedactionKey: (redactionMap: Map<string, string>, operatorMa
15
16
  */
16
17
  declare const deanonymise: (redactedText: string, redactionMap: Map<string, string>) => string;
17
18
  //#endregion
18
- export { type AnonymisationOperator, CALLER_DETECTION_CONTRACT_VERSION, CAPABILITY_MANIFEST, CAPABILITY_MANIFEST_SCHEMA_VERSION, CAPABILITY_PARITY_PROFILES, CAPABILITY_RUNTIMES, CAPABILITY_SURFACES, type CapabilityManifest, type CapabilityParityProfile, type CapabilityRuntime, type CapabilitySurface, type CapabilitySurfaceId, ConvertExternalDetectionBatchOptions, type CustomDenyListEntry, type CustomRegexPattern, DEFAULT_ENTITY_LABELS, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, DETECTION_SOURCES, DETECTOR_PRIORITY, type DefaultEntityLabel, DefaultNativePipelinePackageFileOptions, DefaultNativePipelinePackageOptions, DefaultNativePipelineWarmup, type DenyListCategory, type DetectionSource, type Dictionaries, type DictionaryMeta, ENTITY_CAPABILITIES, ENTITY_LABELS, ENTITY_SELECTIONS, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, type Entity, type EntityCapability, type EntityLabel, type EntitySelection, ExternalDetectionBatch, ExternalDetectionOffsetUnit, type GazetteerEntry, LoadNativeBindingOptions, NATIVE_BINDING_PARITY_MEMBERS, NativeAnonymizeBinding, NativeAnonymizerFromConfigOptions, NativeAnonymizerFromPackageOptions, NativeBindingVersionOptions, NativeCallerDetection, NativeCallerRedactionOptions, NativeCreateSessionWithLifecycleOptions, NativeDiagnosticsBatchCallback, NativeLibc, NativeNormalizeOptions, NativeOpenSessionArchiveOptions, NativeOperatorConfig, type NativePipelineBuildOptions, type NativePipelineCompatibility, NativePipelineEntity, NativePipelineFromPackageOptions, NativePipelinePackageFileOptions, type NativePipelinePackageOptions, type NativePipelineUnsupportedFeature, NativePreparedRedactionSessionBinding, NativePreparedSearchBinding, type NativePreparedSearchConfig, NativePreparedSessionRedactionPlanBinding, NativeRedactionResult, NativeRequire, NativeResultEventCallback, NativeSdkOptions, NativeSdkPackageOptions, NativeSearchPackageInput, NativeSearchPackageOptions, NativeSessionBlockRedactionPlan, NativeSessionCallerRedactionInput, NativeSessionCallerRedactionPlanOptions, NativeSessionDeletionSummary, NativeSessionLifecycle, NativeSessionMetadata, NativeSessionRedactionAtOptions, NativeSessionStatus, NativeStaticRedactionResult, NativeTextReplacement, OPERATOR_TYPES, type OperatorConfig, type OperatorType, type PipelineConfig, type PipelineContext, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, type RedactionResult, type ReviewDecision, type ReviewedEntity, SharedNativeDiagnosticsJsonOptions, SharedNativeDiagnosticsStreamJsonOptions, SharedNativePreparedPackageOptions, SharedNativeRedactTextJsonOptions, SharedNativeRedactTextOptions, SharedNativeRedactTextStreamJsonOptions, SharedNativeSearchPackageOptions, type TriggerExtension, type TriggerGroupConfig, type TriggerRule, type TriggerStrategy, type TriggerValidation, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, createPipelineContext, create_native_pipeline_from_default_package, deanonymise, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, exportRedactionKey, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
19
+ export { type AnonymisationOperator, CALLER_DETECTION_CONTRACT_VERSION, CALLER_DETECTION_MAX_COUNT, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, CALLER_DETECTION_TEXT_MAX_BYTES, CAPABILITY_MANIFEST, CAPABILITY_MANIFEST_SCHEMA_VERSION, CAPABILITY_PARITY_PROFILES, CAPABILITY_RUNTIMES, CAPABILITY_SURFACES, type CapabilityManifest, type CapabilityParityProfile, type CapabilityRuntime, type CapabilitySurface, type CapabilitySurfaceId, ConvertExternalDetectionBatchOptions, CreatePipelineOptions, type CustomDenyListEntry, type CustomRegexPattern, DEFAULT_ENTITY_LABELS, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, DETECTION_SOURCES, DETECTOR_PRIORITY, type DefaultEntityLabel, DefaultNativePipelinePackageFileOptions, DefaultNativePipelinePackageOptions, DefaultNativePipelineWarmup, type DenyListCategory, type DetectionSource, type Dictionaries, type DictionaryMeta, ENTITY_CAPABILITIES, ENTITY_LABELS, ENTITY_SELECTIONS, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, type Entity, type EntityCapability, type EntityLabel, type EntitySelection, ExternalDetectionBatch, ExternalDetectionOffsetUnit, type GazetteerEntry, LoadNativeBindingOptions, NATIVE_BINDING_PARITY_MEMBERS, NativeAnonymizeBinding, NativeAnonymizerFromConfigOptions, NativeAnonymizerFromPackageOptions, NativeBindingVersionOptions, NativeCallerDetection, NativeCallerRedactionOptions, NativeCreateSessionWithLifecycleOptions, NativeDiagnosticsBatchCallback, NativeLibc, NativeNormalizeOptions, NativeOpenSessionArchiveOptions, NativeOperatorConfig, type NativePipelineBuildOptions, type NativePipelineCompatibility, NativePipelineEntity, NativePipelineFromPackageOptions, NativePipelinePackageFileOptions, type NativePipelinePackageOptions, type NativePipelineUnsupportedFeature, NativePreparedRedactionSessionBinding, NativePreparedSearchBinding, type NativePreparedSearchConfig, NativePreparedSessionRedactionPlanBinding, NativeRedactionResult, NativeRequire, NativeResultEventCallback, NativeSdkOptions, NativeSdkPackageOptions, NativeSearchPackageInput, NativeSearchPackageOptions, NativeSessionBlockRedactionPlan, NativeSessionCallerRedactionInput, NativeSessionCallerRedactionPlanOptions, NativeSessionDeletionSummary, NativeSessionLifecycle, NativeSessionMetadata, NativeSessionRedactionAtOptions, NativeSessionStatus, NativeStaticRedactionResult, NativeTextReplacement, OPERATOR_TYPES, type OperatorConfig, type OperatorType, type PipelineConfig, type PipelineContext, type PipelineLanguageSelection, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, type RedactionResult, type ReviewDecision, type ReviewedEntity, SESSION_CALLER_INPUTS_JSON_MAX_BYTES, SESSION_CALLER_MAX_INPUTS, SUPPORTED_LANGUAGES, SharedNativeDiagnosticsJsonOptions, SharedNativeDiagnosticsStreamJsonOptions, SharedNativePreparedPackageOptions, SharedNativeRedactTextJsonOptions, SharedNativeRedactTextOptions, SharedNativeRedactTextStreamJsonOptions, SharedNativeSearchPackageOptions, type SupportedLanguage, type TriggerExtension, type TriggerGroupConfig, type TriggerRule, type TriggerStrategy, type TriggerValidation, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, createPipeline, createPipelineContext, create_native_pipeline_from_default_package, create_pipeline, deanonymise, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, exportRedactionKey, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
19
20
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { CALLER_DETECTION_CONTRACT_VERSION, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, assertNativeBindingVersion, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromPackage, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getNativeBindingVersion, isNativeAnonymizeBinding, prepareNativeSearchPackage } from "./native.mjs";
2
- import { A as redact_text, B as prepareNativePipelinePackage, C as readNativePipelinePackageFile, D as redactDefaultTextJson, E as redactDefaultText, F as DEFAULT_NATIVE_PIPELINE_CONFIG, I as assertNativePipelineSupported, L as createNativePipelineFromConfig, M as redact_text_stream_json, N as setNativeBindingOverride, O as redact_default_text, P as summary_diagnostics_json, R as getNativePipelineCompatibility, S as readDefaultNativePipelinePackageFileAsync, T as read_default_native_pipeline_package_file, V as createPipelineContext, _ as preloadDefaultNativePipeline, a as createNativePipelineFromDefaultPackage, b as prepare_search_package, c as diagnostics_json, d as get_default_native_pipeline, f as loadNativeAnonymizeBinding, g as normalize_for_search, h as native_package_version, i as convert_external_detection_batch, j as redact_text_json, k as redact_default_text_json, l as diagnostics_stream_json, m as load_prepared_package_file, n as availableDefaultNativePipelineLanguages, o as createNativePipelineFromPackageFile, p as load_prepared_package, r as available_default_native_pipeline_languages, s as create_native_pipeline_from_default_package, t as DEFAULT_NATIVE_PIPELINE_WARMUPS, u as getDefaultNativePipeline, v as preloadDefaultNativePipelineAsync, w as readNativePipelinePackageFileAsync, x as readDefaultNativePipelinePackageFile, y as preload_default_native_pipeline, z as prepareNativePipelineConfig } from "./native-node2.mjs";
1
+ import { CALLER_DETECTION_CONTRACT_VERSION, CALLER_DETECTION_MAX_COUNT, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, CALLER_DETECTION_TEXT_MAX_BYTES, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, SESSION_CALLER_INPUTS_JSON_MAX_BYTES, SESSION_CALLER_MAX_INPUTS, assertNativeBindingVersion, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromPackage, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getNativeBindingVersion, isNativeAnonymizeBinding, prepareNativeSearchPackage } from "./native.mjs";
2
+ import { A as redact_default_text, B as createNativePipelineFromConfig, C as readDefaultNativePipelinePackageFile, D as read_default_native_pipeline_package_file, E as readNativePipelinePackageFileAsync, F as setNativeBindingOverride, H as prepareNativePipelineConfig, I as summary_diagnostics_json, L as SUPPORTED_LANGUAGES, M as redact_text, N as redact_text_json, O as redactDefaultText, P as redact_text_stream_json, R as DEFAULT_NATIVE_PIPELINE_CONFIG, S as prepare_search_package, T as readNativePipelinePackageFile, U as prepareNativePipelinePackage, V as getNativePipelineCompatibility, W as createPipelineContext, _ as native_package_version, a as createNativePipelineFromDefaultPackage, b as preloadDefaultNativePipelineAsync, c as create_native_pipeline_from_default_package, d as diagnostics_stream_json, f as getDefaultNativePipeline, g as load_prepared_package_file, h as load_prepared_package, i as convert_external_detection_batch, j as redact_default_text_json, k as redactDefaultTextJson, l as create_pipeline, m as loadNativeAnonymizeBinding, n as availableDefaultNativePipelineLanguages, o as createNativePipelineFromPackageFile, p as get_default_native_pipeline, r as available_default_native_pipeline_languages, s as createPipeline, t as DEFAULT_NATIVE_PIPELINE_WARMUPS, u as diagnostics_json, v as normalize_for_search, w as readDefaultNativePipelinePackageFileAsync, x as preload_default_native_pipeline, y as preloadDefaultNativePipeline, z as assertNativePipelineSupported } from "./native-node2.mjs";
3
3
  import { DEFAULT_ENTITY_LABELS, DETECTION_SOURCES, DETECTOR_PRIORITY, ENTITY_CAPABILITIES, ENTITY_LABELS, ENTITY_SELECTIONS, OPERATOR_TYPES } from "./constants.mjs";
4
4
  import { CAPABILITY_MANIFEST, CAPABILITY_MANIFEST_SCHEMA_VERSION, CAPABILITY_PARITY_PROFILES, CAPABILITY_RUNTIMES, CAPABILITY_SURFACES } from "./capabilities.mjs";
5
5
  //#region src/redact.ts
@@ -26,6 +26,6 @@ const deanonymise = (redactedText, redactionMap) => {
26
26
  return result;
27
27
  };
28
28
  //#endregion
29
- export { CALLER_DETECTION_CONTRACT_VERSION, CAPABILITY_MANIFEST, CAPABILITY_MANIFEST_SCHEMA_VERSION, CAPABILITY_PARITY_PROFILES, CAPABILITY_RUNTIMES, CAPABILITY_SURFACES, DEFAULT_ENTITY_LABELS, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, DETECTION_SOURCES, DETECTOR_PRIORITY, ENTITY_CAPABILITIES, ENTITY_LABELS, ENTITY_SELECTIONS, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, OPERATOR_TYPES, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, createPipelineContext, create_native_pipeline_from_default_package, deanonymise, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, exportRedactionKey, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
29
+ export { CALLER_DETECTION_CONTRACT_VERSION, CALLER_DETECTION_MAX_COUNT, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, CALLER_DETECTION_TEXT_MAX_BYTES, CAPABILITY_MANIFEST, CAPABILITY_MANIFEST_SCHEMA_VERSION, CAPABILITY_PARITY_PROFILES, CAPABILITY_RUNTIMES, CAPABILITY_SURFACES, DEFAULT_ENTITY_LABELS, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, DETECTION_SOURCES, DETECTOR_PRIORITY, ENTITY_CAPABILITIES, ENTITY_LABELS, ENTITY_SELECTIONS, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, OPERATOR_TYPES, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, SESSION_CALLER_INPUTS_JSON_MAX_BYTES, SESSION_CALLER_MAX_INPUTS, SUPPORTED_LANGUAGES, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, createPipeline, createPipelineContext, create_native_pipeline_from_default_package, create_pipeline, deanonymise, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, exportRedactionKey, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
30
30
 
31
31
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,10 @@
1
- import { At as GazetteerEntry, G as PreparedNativeAnonymizer, H as NativeStaticRedactionResult, K as PreparedNativePipeline, M as NativeSearchPackageInput, Mt as PipelineConfig, Vt as NativePreparedSearchConfig, d as ExternalDetectionBatch, m as NativeAnonymizeBinding, v as NativeCallerDetection, w as NativeOperatorConfig } from "./native.mjs";
1
+ import { c as GazetteerEntry, d as PipelineConfig } from "./types.mjs";
2
+ import { D as NativeOperatorConfig, F as NativeSearchPackageInput, G as NativeStaticRedactionResult, J as PreparedNativeAnonymizer, Ot as NativePreparedSearchConfig, Y as PreparedNativePipeline, _ as NativeAnonymizeBinding, m as ExternalDetectionBatch, x as NativeCallerDetection } from "./native.mjs";
3
+ //#region src/pipeline-language.d.ts
4
+ type SupportedLanguage = "cs" | "de" | "en" | "es" | "fr" | "hu" | "it" | "lv" | "pl" | "pt-br" | "ro" | "sk" | "sv";
5
+ declare const SUPPORTED_LANGUAGES: readonly SupportedLanguage[];
6
+ type PipelineLanguageSelection = SupportedLanguage | readonly [SupportedLanguage, ...SupportedLanguage[]] | "all";
7
+ //#endregion
2
8
  //#region src/context.d.ts
3
9
  /**
4
10
  * Cached state for a single pipeline run (or a sequence of runs sharing the
@@ -62,6 +68,10 @@ type NativeSdkOptions = LoadNativeBindingOptions & {
62
68
  type NativeSdkPackageOptions = NativeSdkOptions & {
63
69
  compressed?: boolean;
64
70
  };
71
+ type CreatePipelineOptions = NativeSdkOptions & {
72
+ language?: PipelineLanguageSelection;
73
+ warmup?: DefaultNativePipelineWarmup;
74
+ };
65
75
  type DefaultNativePipelinePackageOptions = LoadNativeBindingOptions & {
66
76
  binding?: NativeAnonymizeBinding;
67
77
  language?: string;
@@ -102,6 +112,8 @@ declare const createNativePipelineFromDefaultPackage: (options?: DefaultNativePi
102
112
  declare const create_native_pipeline_from_default_package: (options?: DefaultNativePipelinePackageOptions) => PreparedNativePipeline;
103
113
  declare const getDefaultNativePipeline: (options?: DefaultNativePipelinePackageOptions) => PreparedNativePipeline;
104
114
  declare const get_default_native_pipeline: (options?: DefaultNativePipelinePackageOptions) => PreparedNativePipeline;
115
+ declare const createPipeline: ({ language, warmup, ...bindingOptions }?: CreatePipelineOptions) => Promise<PreparedNativePipeline>;
116
+ declare const create_pipeline: typeof createPipeline;
105
117
  declare const preloadDefaultNativePipeline: (options?: DefaultNativePipelinePackageOptions) => PreparedNativePipeline;
106
118
  declare const preload_default_native_pipeline: (options?: DefaultNativePipelinePackageOptions) => PreparedNativePipeline;
107
119
  declare const redactDefaultText: (fullText: string, operators?: NativeOperatorConfig, options?: DefaultNativePipelinePackageOptions) => NativeStaticRedactionResult;
@@ -110,5 +122,5 @@ declare const redactDefaultTextJson: (fullText: string, operators?: NativeOperat
110
122
  declare const redact_default_text_json: (fullText: string, operators?: NativeOperatorConfig, options?: DefaultNativePipelinePackageOptions) => string;
111
123
  declare const preloadDefaultNativePipelineAsync: (options?: DefaultNativePipelinePackageOptions) => Promise<PreparedNativePipeline>;
112
124
  //#endregion
113
- export { prepareNativePipelinePackage as $, readDefaultNativePipelinePackageFile as A, redact_text_json as B, load_prepared_package_file as C, preloadDefaultNativePipelineAsync as D, preloadDefaultNativePipeline as E, redactDefaultText as F, NativePipelineBuildOptions as G, setNativeBindingOverride as H, redactDefaultTextJson as I, NativePipelineUnsupportedFeature as J, NativePipelineCompatibility as K, redact_default_text as L, readNativePipelinePackageFile as M, readNativePipelinePackageFileAsync as N, preload_default_native_pipeline as O, read_default_native_pipeline_package_file as P, prepareNativePipelineConfig as Q, redact_default_text_json as R, load_prepared_package as S, normalize_for_search as T, summary_diagnostics_json as U, redact_text_stream_json as V, DEFAULT_NATIVE_PIPELINE_CONFIG as W, createNativePipelineFromConfig as X, assertNativePipelineSupported as Y, getNativePipelineCompatibility as Z, diagnostics_json as _, LoadNativeBindingOptions as a, get_default_native_pipeline as b, NativeRequire as c, availableDefaultNativePipelineLanguages as d, PipelineContext as et, available_default_native_pipeline_languages as f, create_native_pipeline_from_default_package as g, createNativePipelineFromPackageFile as h, DefaultNativePipelineWarmup as i, readDefaultNativePipelinePackageFileAsync as j, prepare_search_package as k, NativeSdkOptions as l, createNativePipelineFromDefaultPackage as m, DefaultNativePipelinePackageFileOptions as n, NativeLibc as o, convert_external_detection_batch as p, NativePipelinePackageOptions as q, DefaultNativePipelinePackageOptions as r, NativePipelinePackageFileOptions as s, DEFAULT_NATIVE_PIPELINE_WARMUPS as t, createPipelineContext as tt, NativeSdkPackageOptions as u, diagnostics_stream_json as v, native_package_version as w, loadNativeAnonymizeBinding as x, getDefaultNativePipeline as y, redact_text as z };
125
+ export { createNativePipelineFromConfig as $, preloadDefaultNativePipelineAsync as A, redact_default_text as B, get_default_native_pipeline as C, native_package_version as D, load_prepared_package_file as E, readNativePipelinePackageFile as F, setNativeBindingOverride as G, redact_text as H, readNativePipelinePackageFileAsync as I, NativePipelineBuildOptions as J, summary_diagnostics_json as K, read_default_native_pipeline_package_file as L, prepare_search_package as M, readDefaultNativePipelinePackageFile as N, normalize_for_search as O, readDefaultNativePipelinePackageFileAsync as P, assertNativePipelineSupported as Q, redactDefaultText as R, getDefaultNativePipeline as S, load_prepared_package as T, redact_text_json as U, redact_default_text_json as V, redact_text_stream_json as W, NativePipelinePackageOptions as X, NativePipelineCompatibility as Y, NativePipelineUnsupportedFeature as Z, createPipeline as _, DefaultNativePipelineWarmup as a, PipelineLanguageSelection as at, diagnostics_json as b, NativePipelinePackageFileOptions as c, NativeSdkPackageOptions as d, getNativePipelineCompatibility as et, availableDefaultNativePipelineLanguages as f, createNativePipelineFromPackageFile as g, createNativePipelineFromDefaultPackage as h, DefaultNativePipelinePackageOptions as i, createPipelineContext as it, preload_default_native_pipeline as j, preloadDefaultNativePipeline as k, NativeRequire as l, convert_external_detection_batch as m, DEFAULT_NATIVE_PIPELINE_WARMUPS as n, prepareNativePipelinePackage as nt, LoadNativeBindingOptions as o, SUPPORTED_LANGUAGES as ot, available_default_native_pipeline_languages as p, DEFAULT_NATIVE_PIPELINE_CONFIG as q, DefaultNativePipelinePackageFileOptions as r, PipelineContext as rt, NativeLibc as s, SupportedLanguage as st, CreatePipelineOptions as t, prepareNativePipelineConfig as tt, NativeSdkOptions as u, create_native_pipeline_from_default_package as v, loadNativeAnonymizeBinding as w, diagnostics_stream_json as x, create_pipeline as y, redactDefaultTextJson as z };
114
126
  //# sourceMappingURL=native-node.d.mts.map
@@ -1,3 +1,3 @@
1
- import { CALLER_DETECTION_CONTRACT_VERSION, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, assertNativeBindingVersion, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromPackage, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getNativeBindingVersion, isNativeAnonymizeBinding, prepareNativeSearchPackage } from "./native.mjs";
2
- import { A as redact_text, B as prepareNativePipelinePackage, C as readNativePipelinePackageFile, D as redactDefaultTextJson, E as redactDefaultText, F as DEFAULT_NATIVE_PIPELINE_CONFIG, I as assertNativePipelineSupported, L as createNativePipelineFromConfig, M as redact_text_stream_json, N as setNativeBindingOverride, O as redact_default_text, P as summary_diagnostics_json, R as getNativePipelineCompatibility, S as readDefaultNativePipelinePackageFileAsync, T as read_default_native_pipeline_package_file, _ as preloadDefaultNativePipeline, a as createNativePipelineFromDefaultPackage, b as prepare_search_package, c as diagnostics_json, d as get_default_native_pipeline, f as loadNativeAnonymizeBinding, g as normalize_for_search, h as native_package_version, i as convert_external_detection_batch, j as redact_text_json, k as redact_default_text_json, l as diagnostics_stream_json, m as load_prepared_package_file, n as availableDefaultNativePipelineLanguages, o as createNativePipelineFromPackageFile, p as load_prepared_package, r as available_default_native_pipeline_languages, s as create_native_pipeline_from_default_package, t as DEFAULT_NATIVE_PIPELINE_WARMUPS, u as getDefaultNativePipeline, v as preloadDefaultNativePipelineAsync, w as readNativePipelinePackageFileAsync, x as readDefaultNativePipelinePackageFile, y as preload_default_native_pipeline, z as prepareNativePipelineConfig } from "./native-node2.mjs";
3
- export { CALLER_DETECTION_CONTRACT_VERSION, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, create_native_pipeline_from_default_package, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
1
+ import { CALLER_DETECTION_CONTRACT_VERSION, CALLER_DETECTION_MAX_COUNT, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, CALLER_DETECTION_TEXT_MAX_BYTES, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, SESSION_CALLER_INPUTS_JSON_MAX_BYTES, SESSION_CALLER_MAX_INPUTS, assertNativeBindingVersion, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromPackage, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getNativeBindingVersion, isNativeAnonymizeBinding, prepareNativeSearchPackage } from "./native.mjs";
2
+ import { A as redact_default_text, B as createNativePipelineFromConfig, C as readDefaultNativePipelinePackageFile, D as read_default_native_pipeline_package_file, E as readNativePipelinePackageFileAsync, F as setNativeBindingOverride, H as prepareNativePipelineConfig, I as summary_diagnostics_json, L as SUPPORTED_LANGUAGES, M as redact_text, N as redact_text_json, O as redactDefaultText, P as redact_text_stream_json, R as DEFAULT_NATIVE_PIPELINE_CONFIG, S as prepare_search_package, T as readNativePipelinePackageFile, U as prepareNativePipelinePackage, V as getNativePipelineCompatibility, _ as native_package_version, a as createNativePipelineFromDefaultPackage, b as preloadDefaultNativePipelineAsync, c as create_native_pipeline_from_default_package, d as diagnostics_stream_json, f as getDefaultNativePipeline, g as load_prepared_package_file, h as load_prepared_package, i as convert_external_detection_batch, j as redact_default_text_json, k as redactDefaultTextJson, l as create_pipeline, m as loadNativeAnonymizeBinding, n as availableDefaultNativePipelineLanguages, o as createNativePipelineFromPackageFile, p as get_default_native_pipeline, r as available_default_native_pipeline_languages, s as createPipeline, t as DEFAULT_NATIVE_PIPELINE_WARMUPS, u as diagnostics_json, v as normalize_for_search, w as readDefaultNativePipelinePackageFileAsync, x as preload_default_native_pipeline, y as preloadDefaultNativePipeline, z as assertNativePipelineSupported } from "./native-node2.mjs";
3
+ export { CALLER_DETECTION_CONTRACT_VERSION, CALLER_DETECTION_MAX_COUNT, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, CALLER_DETECTION_TEXT_MAX_BYTES, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, NATIVE_BINDING_PARITY_MEMBERS, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, SESSION_CALLER_INPUTS_JSON_MAX_BYTES, SESSION_CALLER_MAX_INPUTS, SUPPORTED_LANGUAGES, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, createPipeline, create_native_pipeline_from_default_package, create_pipeline, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
@@ -1,3 +1,3 @@
1
- import { $ as SharedNativeRedactTextJsonOptions, A as NativeRedactionResult, B as NativeSessionRedactionAtOptions, C as NativeOpenSessionArchiveOptions, D as NativePreparedRedactionSessionBinding, E as NativePipelineFromPackageOptions, F as NativeSessionCallerRedactionInput, G as PreparedNativeAnonymizer, H as NativeStaticRedactionResult, I as NativeSessionCallerRedactionPlanOptions, J as PreparedNativeSessionRedactionPlan, K as PreparedNativePipeline, L as NativeSessionDeletionSummary, M as NativeSearchPackageInput, N as NativeSearchPackageOptions, O as NativePreparedSearchBinding, P as NativeSessionBlockRedactionPlan, Q as SharedNativePreparedPackageOptions, R as NativeSessionLifecycle, S as NativeNormalizeOptions, T as NativePipelineEntity, U as NativeTextReplacement, V as NativeSessionStatus, Vt as NativePreparedSearchConfig, W as PreparedAnonymizer, X as SharedNativeDiagnosticsJsonOptions, Y as PreparedSearch, Z as SharedNativeDiagnosticsStreamJsonOptions, _ as NativeBindingVersionOptions, _t as prepareNativeSearchPackage, a as EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, at as createNativeAnonymizerFromConfig, b as NativeCreateSessionWithLifecycleOptions, c as EXTERNAL_DETECTION_MAX_METADATA_BYTES, d as ExternalDetectionBatch, dt as encodeNativeSearchConfigInput, et as SharedNativeRedactTextOptions, f as ExternalDetectionOffsetUnit, ft as getNativeBindingVersion, g as NativeAnonymizerFromPackageOptions, h as NativeAnonymizerFromConfigOptions, i as EXTERNAL_DETECTION_BATCH_VERSION, j as NativeResultEventCallback, k as NativePreparedSessionRedactionPlanBinding, l as EXTERNAL_DETECTION_OFFSET_UNITS, m as NativeAnonymizeBinding, n as ConvertExternalDetectionBatchOptions, nt as SharedNativeSearchPackageOptions, o as EXTERNAL_DETECTION_MAX_DETECTIONS, ot as createNativeAnonymizerFromPackage, p as NATIVE_BINDING_PARITY_MEMBERS, pt as isNativeAnonymizeBinding, q as PreparedNativeRedactionSession, r as EXTERNAL_DETECTION_BATCH_MAX_BYTES, rt as assertNativeBindingVersion, s as EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, st as createNativePipelineFromPackage, t as CALLER_DETECTION_CONTRACT_VERSION, tt as SharedNativeRedactTextStreamJsonOptions, u as EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, ut as encodeNativeSearchConfig, v as NativeCallerDetection, w as NativeOperatorConfig, x as NativeDiagnosticsBatchCallback, y as NativeCallerRedactionOptions, z as NativeSessionMetadata } from "./native.mjs";
2
- import { $ as prepareNativePipelinePackage, A as readDefaultNativePipelinePackageFile, B as redact_text_json, C as load_prepared_package_file, D as preloadDefaultNativePipelineAsync, E as preloadDefaultNativePipeline, F as redactDefaultText, G as NativePipelineBuildOptions, H as setNativeBindingOverride, I as redactDefaultTextJson, J as NativePipelineUnsupportedFeature, K as NativePipelineCompatibility, L as redact_default_text, M as readNativePipelinePackageFile, N as readNativePipelinePackageFileAsync, O as preload_default_native_pipeline, P as read_default_native_pipeline_package_file, Q as prepareNativePipelineConfig, R as redact_default_text_json, S as load_prepared_package, T as normalize_for_search, U as summary_diagnostics_json, V as redact_text_stream_json, W as DEFAULT_NATIVE_PIPELINE_CONFIG, X as createNativePipelineFromConfig, Y as assertNativePipelineSupported, Z as getNativePipelineCompatibility, _ as diagnostics_json, a as LoadNativeBindingOptions, b as get_default_native_pipeline, c as NativeRequire, d as availableDefaultNativePipelineLanguages, f as available_default_native_pipeline_languages, g as create_native_pipeline_from_default_package, h as createNativePipelineFromPackageFile, i as DefaultNativePipelineWarmup, j as readDefaultNativePipelinePackageFileAsync, k as prepare_search_package, l as NativeSdkOptions, m as createNativePipelineFromDefaultPackage, n as DefaultNativePipelinePackageFileOptions, o as NativeLibc, p as convert_external_detection_batch, q as NativePipelinePackageOptions, r as DefaultNativePipelinePackageOptions, s as NativePipelinePackageFileOptions, t as DEFAULT_NATIVE_PIPELINE_WARMUPS, u as NativeSdkPackageOptions, v as diagnostics_stream_json, w as native_package_version, x as loadNativeAnonymizeBinding, y as getDefaultNativePipeline, z as redact_text } from "./native-node.mjs";
3
- export { CALLER_DETECTION_CONTRACT_VERSION, ConvertExternalDetectionBatchOptions, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, DefaultNativePipelinePackageFileOptions, DefaultNativePipelinePackageOptions, DefaultNativePipelineWarmup, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, ExternalDetectionBatch, ExternalDetectionOffsetUnit, LoadNativeBindingOptions, NATIVE_BINDING_PARITY_MEMBERS, NativeAnonymizeBinding, NativeAnonymizerFromConfigOptions, NativeAnonymizerFromPackageOptions, NativeBindingVersionOptions, NativeCallerDetection, NativeCallerRedactionOptions, NativeCreateSessionWithLifecycleOptions, NativeDiagnosticsBatchCallback, NativeLibc, NativeNormalizeOptions, NativeOpenSessionArchiveOptions, NativeOperatorConfig, type NativePipelineBuildOptions, type NativePipelineCompatibility, NativePipelineEntity, NativePipelineFromPackageOptions, NativePipelinePackageFileOptions, type NativePipelinePackageOptions, type NativePipelineUnsupportedFeature, NativePreparedRedactionSessionBinding, NativePreparedSearchBinding, type NativePreparedSearchConfig, NativePreparedSessionRedactionPlanBinding, NativeRedactionResult, NativeRequire, NativeResultEventCallback, NativeSdkOptions, NativeSdkPackageOptions, NativeSearchPackageInput, NativeSearchPackageOptions, NativeSessionBlockRedactionPlan, NativeSessionCallerRedactionInput, NativeSessionCallerRedactionPlanOptions, NativeSessionDeletionSummary, NativeSessionLifecycle, NativeSessionMetadata, NativeSessionRedactionAtOptions, NativeSessionStatus, NativeStaticRedactionResult, NativeTextReplacement, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, SharedNativeDiagnosticsJsonOptions, SharedNativeDiagnosticsStreamJsonOptions, SharedNativePreparedPackageOptions, SharedNativeRedactTextJsonOptions, SharedNativeRedactTextOptions, SharedNativeRedactTextStreamJsonOptions, SharedNativeSearchPackageOptions, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, create_native_pipeline_from_default_package, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };
1
+ import { $ as SESSION_CALLER_INPUTS_JSON_MAX_BYTES, A as NativePreparedRedactionSessionBinding, B as NativeSessionDeletionSummary, C as NativeCreateSessionWithLifecycleOptions, D as NativeOperatorConfig, E as NativeOpenSessionArchiveOptions, F as NativeSearchPackageInput, G as NativeStaticRedactionResult, H as NativeSessionMetadata, I as NativeSearchPackageOptions, J as PreparedNativeAnonymizer, K as NativeTextReplacement, L as NativeSessionBlockRedactionPlan, M as NativePreparedSessionRedactionPlanBinding, N as NativeRedactionResult, O as NativePipelineEntity, Ot as NativePreparedSearchConfig, P as NativeResultEventCallback, Q as PreparedSearch, R as NativeSessionCallerRedactionInput, S as NativeCallerRedactionOptions, St as prepareNativeSearchPackage, T as NativeNormalizeOptions, U as NativeSessionRedactionAtOptions, V as NativeSessionLifecycle, W as NativeSessionStatus, X as PreparedNativeRedactionSession, Y as PreparedNativePipeline, Z as PreparedNativeSessionRedactionPlan, _ as NativeAnonymizeBinding, _t as getNativeBindingVersion, a as ConvertExternalDetectionBatchOptions, at as SharedNativeRedactTextOptions, b as NativeBindingVersionOptions, c as EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, ct as assertNativeBindingVersion, d as EXTERNAL_DETECTION_MAX_METADATA_BYTES, dt as createNativeAnonymizerFromPackage, et as SESSION_CALLER_MAX_INPUTS, f as EXTERNAL_DETECTION_OFFSET_UNITS, ft as createNativePipelineFromPackage, g as NATIVE_BINDING_PARITY_MEMBERS, gt as encodeNativeSearchConfigInput, h as ExternalDetectionOffsetUnit, ht as encodeNativeSearchConfig, i as CALLER_DETECTION_TEXT_MAX_BYTES, it as SharedNativeRedactTextJsonOptions, j as NativePreparedSearchBinding, k as NativePipelineFromPackageOptions, l as EXTERNAL_DETECTION_MAX_DETECTIONS, m as ExternalDetectionBatch, n as CALLER_DETECTION_MAX_COUNT, nt as SharedNativeDiagnosticsStreamJsonOptions, o as EXTERNAL_DETECTION_BATCH_MAX_BYTES, ot as SharedNativeRedactTextStreamJsonOptions, p as EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, q as PreparedAnonymizer, r as CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, rt as SharedNativePreparedPackageOptions, s as EXTERNAL_DETECTION_BATCH_VERSION, st as SharedNativeSearchPackageOptions, t as CALLER_DETECTION_CONTRACT_VERSION, tt as SharedNativeDiagnosticsJsonOptions, u as EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, ut as createNativeAnonymizerFromConfig, v as NativeAnonymizerFromConfigOptions, vt as isNativeAnonymizeBinding, w as NativeDiagnosticsBatchCallback, x as NativeCallerDetection, y as NativeAnonymizerFromPackageOptions, z as NativeSessionCallerRedactionPlanOptions } from "./native.mjs";
2
+ import { $ as createNativePipelineFromConfig, A as preloadDefaultNativePipelineAsync, B as redact_default_text, C as get_default_native_pipeline, D as native_package_version, E as load_prepared_package_file, F as readNativePipelinePackageFile, G as setNativeBindingOverride, H as redact_text, I as readNativePipelinePackageFileAsync, J as NativePipelineBuildOptions, K as summary_diagnostics_json, L as read_default_native_pipeline_package_file, M as prepare_search_package, N as readDefaultNativePipelinePackageFile, O as normalize_for_search, P as readDefaultNativePipelinePackageFileAsync, Q as assertNativePipelineSupported, R as redactDefaultText, S as getDefaultNativePipeline, T as load_prepared_package, U as redact_text_json, V as redact_default_text_json, W as redact_text_stream_json, X as NativePipelinePackageOptions, Y as NativePipelineCompatibility, Z as NativePipelineUnsupportedFeature, _ as createPipeline, a as DefaultNativePipelineWarmup, at as PipelineLanguageSelection, b as diagnostics_json, c as NativePipelinePackageFileOptions, d as NativeSdkPackageOptions, et as getNativePipelineCompatibility, f as availableDefaultNativePipelineLanguages, g as createNativePipelineFromPackageFile, h as createNativePipelineFromDefaultPackage, i as DefaultNativePipelinePackageOptions, j as preload_default_native_pipeline, k as preloadDefaultNativePipeline, l as NativeRequire, m as convert_external_detection_batch, n as DEFAULT_NATIVE_PIPELINE_WARMUPS, nt as prepareNativePipelinePackage, o as LoadNativeBindingOptions, ot as SUPPORTED_LANGUAGES, p as available_default_native_pipeline_languages, q as DEFAULT_NATIVE_PIPELINE_CONFIG, r as DefaultNativePipelinePackageFileOptions, s as NativeLibc, st as SupportedLanguage, t as CreatePipelineOptions, tt as prepareNativePipelineConfig, u as NativeSdkOptions, v as create_native_pipeline_from_default_package, w as loadNativeAnonymizeBinding, x as diagnostics_stream_json, y as create_pipeline, z as redactDefaultTextJson } from "./native-node.mjs";
3
+ export { CALLER_DETECTION_CONTRACT_VERSION, CALLER_DETECTION_MAX_COUNT, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES, CALLER_DETECTION_TEXT_MAX_BYTES, ConvertExternalDetectionBatchOptions, CreatePipelineOptions, DEFAULT_NATIVE_PIPELINE_CONFIG, DEFAULT_NATIVE_PIPELINE_WARMUPS, DefaultNativePipelinePackageFileOptions, DefaultNativePipelinePackageOptions, DefaultNativePipelineWarmup, EXTERNAL_DETECTION_BATCH_MAX_BYTES, EXTERNAL_DETECTION_BATCH_VERSION, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES, EXTERNAL_DETECTION_MAX_DETECTIONS, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS, EXTERNAL_DETECTION_MAX_METADATA_BYTES, EXTERNAL_DETECTION_OFFSET_UNITS, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES, ExternalDetectionBatch, ExternalDetectionOffsetUnit, LoadNativeBindingOptions, NATIVE_BINDING_PARITY_MEMBERS, NativeAnonymizeBinding, NativeAnonymizerFromConfigOptions, NativeAnonymizerFromPackageOptions, NativeBindingVersionOptions, NativeCallerDetection, NativeCallerRedactionOptions, NativeCreateSessionWithLifecycleOptions, NativeDiagnosticsBatchCallback, NativeLibc, NativeNormalizeOptions, NativeOpenSessionArchiveOptions, NativeOperatorConfig, type NativePipelineBuildOptions, type NativePipelineCompatibility, NativePipelineEntity, NativePipelineFromPackageOptions, NativePipelinePackageFileOptions, type NativePipelinePackageOptions, type NativePipelineUnsupportedFeature, NativePreparedRedactionSessionBinding, NativePreparedSearchBinding, type NativePreparedSearchConfig, NativePreparedSessionRedactionPlanBinding, NativeRedactionResult, NativeRequire, NativeResultEventCallback, NativeSdkOptions, NativeSdkPackageOptions, NativeSearchPackageInput, NativeSearchPackageOptions, NativeSessionBlockRedactionPlan, NativeSessionCallerRedactionInput, NativeSessionCallerRedactionPlanOptions, NativeSessionDeletionSummary, NativeSessionLifecycle, NativeSessionMetadata, NativeSessionRedactionAtOptions, NativeSessionStatus, NativeStaticRedactionResult, NativeTextReplacement, type PipelineLanguageSelection, PreparedAnonymizer, PreparedNativeAnonymizer, PreparedNativePipeline, PreparedNativeRedactionSession, PreparedNativeSessionRedactionPlan, PreparedSearch, SESSION_CALLER_INPUTS_JSON_MAX_BYTES, SESSION_CALLER_MAX_INPUTS, SUPPORTED_LANGUAGES, SharedNativeDiagnosticsJsonOptions, SharedNativeDiagnosticsStreamJsonOptions, SharedNativePreparedPackageOptions, SharedNativeRedactTextJsonOptions, SharedNativeRedactTextOptions, SharedNativeRedactTextStreamJsonOptions, SharedNativeSearchPackageOptions, type SupportedLanguage, assertNativeBindingVersion, assertNativePipelineSupported, availableDefaultNativePipelineLanguages, available_default_native_pipeline_languages, convert_external_detection_batch, createNativeAnonymizerFromConfig, createNativeAnonymizerFromPackage, createNativePipelineFromConfig, createNativePipelineFromDefaultPackage, createNativePipelineFromPackage, createNativePipelineFromPackageFile, createPipeline, create_native_pipeline_from_default_package, create_pipeline, diagnostics_json, diagnostics_stream_json, encodeNativeSearchConfig, encodeNativeSearchConfigInput, getDefaultNativePipeline, getNativeBindingVersion, getNativePipelineCompatibility, get_default_native_pipeline, isNativeAnonymizeBinding, loadNativeAnonymizeBinding, load_prepared_package, load_prepared_package_file, native_package_version, normalize_for_search, preloadDefaultNativePipeline, preloadDefaultNativePipelineAsync, preload_default_native_pipeline, prepareNativePipelineConfig, prepareNativePipelinePackage, prepareNativeSearchPackage, prepare_search_package, readDefaultNativePipelinePackageFile, readDefaultNativePipelinePackageFileAsync, readNativePipelinePackageFile, readNativePipelinePackageFileAsync, read_default_native_pipeline_package_file, redactDefaultText, redactDefaultTextJson, redact_default_text, redact_default_text_json, redact_text, redact_text_json, redact_text_stream_json, setNativeBindingOverride, summary_diagnostics_json };