@cloakapi/sdk 1.5.0 → 1.6.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/CHANGELOG.md +7 -0
- package/README.md +21 -1
- package/dist/browser/index.d.mts +3 -2
- package/dist/browser/index.d.ts +3 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.mjs +8 -7
- package/dist/browser/light.d.mts +2 -1
- package/dist/browser/light.d.ts +2 -1
- package/dist/browser/light.mjs +1 -1
- package/dist/browser/names/public.mjs +2 -2
- package/dist/browser/ner-pipeline-worker.mjs +3 -3
- package/dist/{chunk-G6TZ6722.mjs → chunk-6E6T2YO5.mjs} +5 -915
- package/dist/{chunk-6TMC2A6M.mjs → chunk-6JZLCPZ7.mjs} +1 -1
- package/dist/{chunk-36BC4GYL.mjs → chunk-7OIXV4CE.mjs} +22 -20
- package/dist/{chunk-JV52VGVZ.mjs → chunk-JCTZ572R.mjs} +1 -1
- package/dist/chunk-L7RLVZMD.mjs +922 -0
- package/dist/device/index.d.mts +1448 -0
- package/dist/device/index.d.ts +1448 -0
- package/dist/device/index.js +4539 -0
- package/dist/device/index.mjs +3706 -0
- package/dist/{disclosure-Cx6xS8Tj.d.mts → disclosure-Cslh-RaS.d.mts} +2 -12
- package/dist/{disclosure-Cx6xS8Tj.d.ts → disclosure-Cslh-RaS.d.ts} +2 -12
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +14 -12
- package/dist/{local-pii-supplement-SUOJZO7X.mjs → local-pii-supplement-5KFFPDDN.mjs} +4 -4
- package/dist/node.d.mts +2 -1
- package/dist/node.d.ts +2 -1
- package/dist/node.mjs +10 -9
- package/dist/request-body-slots-BMShK1YO.d.mts +56 -0
- package/dist/request-body-slots-BMShK1YO.d.ts +56 -0
- package/package.json +9 -2
- package/dist/{chunk-PEDVEDAW.mjs → chunk-66SEKCCN.mjs} +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# TypeScript SDK release notes
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
- New public entry `@cloakapi/sdk/device`. It holds the on-device detection and guards the apps share: name-model loading, coverage gates, card lock, reply restore, MIME classification, and OCR read limits. Import it on its own. It does not load `@cloakapi/sdk/browser`, so the place lists are not registered as a side effect.
|
|
6
|
+
- Pass the SDK object into `createMultilingualNer`. Name models are loaded from the same origin: `/models` and `/vendor/transformers/`. `applyTransformersEnv` sets `allowRemoteModels` to false.
|
|
7
|
+
- Customer sentences stay in the app. `coverageWarningFor` and `assertNerAllowsEgress` take the coverage warning as an argument. `assertDecodableImage` brands `UnreadableImageError` only when `DecodeGateCopy.curatedBrand` is set.
|
|
8
|
+
- `collectRequestBodyTextSlots`, `deepClone`, `assertContractLiteralSafe`, `collectValuePlacementWarnings`, `slotIsLeftAsWritten` and `PLACEMENT_SCHEMA` are exported from this entry. `assertContractLiteralSafe` does not throw. A schema literal (`enum`, `const`, `default`) and an attachment URL stay as written; when they hold personal data, the result names it with `unchecked_content`; the send goes on.
|
|
9
|
+
|
|
3
10
|
## 1.5.0
|
|
4
11
|
|
|
5
12
|
Part of release set R-1.6.1 (rule set 1.6.1, the same engine build as 1.4.0).
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Detection is best effort. Values the local detectors miss are sent as written, a
|
|
|
10
10
|
npm install @cloakapi/sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
If the npm registry does not have this version yet, install the tarball from the [downloads page](https://app.cloakapi.io/downloads/sdks/): `npm install ./cloakapi-sdk-1.
|
|
13
|
+
If the npm registry does not have this version yet, install the tarball from the [downloads page](https://app.cloakapi.io/downloads/sdks/): `npm install ./cloakapi-sdk-1.6.0.tgz`. Node 20 or newer.
|
|
14
14
|
|
|
15
15
|
## Hello world (Node)
|
|
16
16
|
|
|
@@ -408,6 +408,26 @@ inside the string value. Use this shape only when a string matches the tool's
|
|
|
408
408
|
schema. Object-shaped arguments are also walked by value; object keys stay as
|
|
409
409
|
provided. These results cover the stated test values, not every PII spelling.
|
|
410
410
|
|
|
411
|
+
## Device detection (`@cloakapi/sdk/device`)
|
|
412
|
+
|
|
413
|
+
On-device detection for an app that already embeds the SDK: name-model loading, the coverage gates, the card lock, reply restore, MIME classification, and the OCR read limit. This entry does not import `@cloakapi/sdk/browser`. Loading it does not register the place lists.
|
|
414
|
+
|
|
415
|
+
```ts
|
|
416
|
+
import { createMultilingualNer, applyTransformersEnv } from '@cloakapi/sdk/device';
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
`createMultilingualNer` takes the SDK object you already constructed and a small config. It does not read a host from the environment. Model files are served from the same origin as the app:
|
|
420
|
+
|
|
421
|
+
- name models from `/models` (level 2 uses the SDK's portal model id; level 3 uses `ner-mmbert`)
|
|
422
|
+
- the transformers runtime from `/vendor/transformers/transformers.min.js`
|
|
423
|
+
- the runtime wasm from `/vendor/transformers/`
|
|
424
|
+
|
|
425
|
+
`applyTransformersEnv` sets `allowRemoteModels` to false and `localModelPath` to the models directory on that origin. The weight file is not inside this package.
|
|
426
|
+
|
|
427
|
+
Customer sentences are arguments, not part of this package. Pass your coverage warning into `coverageWarningFor` and `assertNerAllowsEgress`. Pass your curated-error brand symbol as `DecodeGateCopy.curatedBrand` when you call `assertDecodableImage`.
|
|
428
|
+
|
|
429
|
+
`collectRequestBodyTextSlots`, `deepClone`, `assertContractLiteralSafe`, `collectValuePlacementWarnings`, `slotIsLeftAsWritten` and `PLACEMENT_SCHEMA` are exported here for a caller that walks a request body itself. A schema literal (`enum`, `const`, `default`) and an attachment URL stay as written; when they hold personal data, the result names it with `unchecked_content`; the send goes on. `deepClone` does not mutate the input.
|
|
430
|
+
|
|
411
431
|
## Gateway-lock
|
|
412
432
|
|
|
413
433
|
Calls through this client are routed through a CloakAPI gateway (`cloakapi.io` /
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { C as CoverageStatus } from '../coverage-OYGXtboB.mjs';
|
|
2
2
|
import { N as NerCoverage, T as SupplementProcessingStatus, u as NerOrgSpan, U as UserCoverageAcceptance, x as NerUnavailableErrorShape } from '../local-pii-supplement-BsWNf5uP.mjs';
|
|
3
3
|
export { D as DEFAULT_NER_REQUIREMENT, E as EnhancedNerRunner, p as EnhancedOrgRunner, q as NerLayerName, r as NerLayerOutcome, v as NerPersonSpan, w as NerRequirement, P as PersonModelTier, y as PersonNonLatinOutcome, z as ScriptRange, A as acceptReducedCoverage, V as activePersonModelTier, B as assertNerCoverage, F as buildNerCoverage, G as coverageStatusForNer, H as enhancedGazetteerActive, e as enhancedNerModelActive, I as enhancedNerRequirement, J as enhancedOrgModelActive, i as isAllowlistedOrg, K as isCoverageAcceptance, b as makeOrgSurrogate, n as nonLatinNerModelActive, L as nonLatinSentenceRanges, M as normaliseOrg, O as sentenceIsNonLatin, d as setEnhancedGazetteer, Q as setEnhancedNerRequirement, j as setEnhancedOrgModel, k as setNonLatinNerModel, R as splitSentenceRanges } from '../local-pii-supplement-BsWNf5uP.mjs';
|
|
4
|
-
import { a as SurrogateModeReport, S as SurrogateMode, p as SurrogateContinuity,
|
|
5
|
-
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, n as SDK_VERSION, o as SURROGATE_MODES, q as SurrogateModeCopy, r as SurrogateModeError, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-
|
|
4
|
+
import { a as SurrogateModeReport, S as SurrogateMode, p as SurrogateContinuity, E as ExactReviewHandler, R as ReviewProcessingStatus, l as MarkerFormat } from '../disclosure-Cslh-RaS.mjs';
|
|
5
|
+
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, n as SDK_VERSION, o as SURROGATE_MODES, q as SurrogateModeCopy, r as SurrogateModeError, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-Cslh-RaS.mjs';
|
|
6
|
+
import { V as ValuePlacementWarning } from '../request-body-slots-BMShK1YO.mjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* WHERE THE TOKENISER WASM RUNS.
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { C as CoverageStatus } from '../coverage-OYGXtboB.js';
|
|
2
2
|
import { N as NerCoverage, T as SupplementProcessingStatus, u as NerOrgSpan, U as UserCoverageAcceptance, x as NerUnavailableErrorShape } from '../local-pii-supplement-Db8n7ZuO.js';
|
|
3
3
|
export { D as DEFAULT_NER_REQUIREMENT, E as EnhancedNerRunner, p as EnhancedOrgRunner, q as NerLayerName, r as NerLayerOutcome, v as NerPersonSpan, w as NerRequirement, P as PersonModelTier, y as PersonNonLatinOutcome, z as ScriptRange, A as acceptReducedCoverage, V as activePersonModelTier, B as assertNerCoverage, F as buildNerCoverage, G as coverageStatusForNer, H as enhancedGazetteerActive, e as enhancedNerModelActive, I as enhancedNerRequirement, J as enhancedOrgModelActive, i as isAllowlistedOrg, K as isCoverageAcceptance, b as makeOrgSurrogate, n as nonLatinNerModelActive, L as nonLatinSentenceRanges, M as normaliseOrg, O as sentenceIsNonLatin, d as setEnhancedGazetteer, Q as setEnhancedNerRequirement, j as setEnhancedOrgModel, k as setNonLatinNerModel, R as splitSentenceRanges } from '../local-pii-supplement-Db8n7ZuO.js';
|
|
4
|
-
import { a as SurrogateModeReport, S as SurrogateMode, p as SurrogateContinuity,
|
|
5
|
-
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, n as SDK_VERSION, o as SURROGATE_MODES, q as SurrogateModeCopy, r as SurrogateModeError, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-
|
|
4
|
+
import { a as SurrogateModeReport, S as SurrogateMode, p as SurrogateContinuity, E as ExactReviewHandler, R as ReviewProcessingStatus, l as MarkerFormat } from '../disclosure-Cslh-RaS.js';
|
|
5
|
+
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, n as SDK_VERSION, o as SURROGATE_MODES, q as SurrogateModeCopy, r as SurrogateModeError, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-Cslh-RaS.js';
|
|
6
|
+
import { V as ValuePlacementWarning } from '../request-body-slots-BMShK1YO.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* WHERE THE TOKENISER WASM RUNS.
|
package/dist/browser/index.js
CHANGED
|
@@ -24817,7 +24817,7 @@ var SDK_VERSION, RULESET_VERSION, RULESET_HASH;
|
|
|
24817
24817
|
var init_version = __esm({
|
|
24818
24818
|
"src/version.ts"() {
|
|
24819
24819
|
"use strict";
|
|
24820
|
-
SDK_VERSION = "1.
|
|
24820
|
+
SDK_VERSION = "1.6.0";
|
|
24821
24821
|
RULESET_VERSION = "1.6.1";
|
|
24822
24822
|
RULESET_HASH = "8660b7abe553154802c9d27888a144863bcceaa3703517b8401cc56c590df2f9";
|
|
24823
24823
|
}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -99,9 +99,10 @@ import {
|
|
|
99
99
|
typeFromSurrogateMarker,
|
|
100
100
|
unloadEnhancedGazetteer,
|
|
101
101
|
wheelUrl
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-7OIXV4CE.mjs";
|
|
103
|
+
import "../chunk-DLKR3ZVZ.mjs";
|
|
103
104
|
import "../chunk-DMJIRWAT.mjs";
|
|
104
|
-
import "../chunk-
|
|
105
|
+
import "../chunk-6E6T2YO5.mjs";
|
|
105
106
|
import {
|
|
106
107
|
PRIVACY_TIERS,
|
|
107
108
|
canonicalise,
|
|
@@ -138,7 +139,7 @@ import {
|
|
|
138
139
|
isSurrogateMode,
|
|
139
140
|
resolveSurrogateMode,
|
|
140
141
|
withDisclosure
|
|
141
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-JCTZ572R.mjs";
|
|
142
143
|
import {
|
|
143
144
|
DEFAULT_ENHANCED_NER_MODEL_ID,
|
|
144
145
|
DETECTION_LAYER_ORDER,
|
|
@@ -172,13 +173,14 @@ import {
|
|
|
172
173
|
unloadNonLatinNerModel,
|
|
173
174
|
vacateDetectionLayer,
|
|
174
175
|
waitForDetectionLayer
|
|
175
|
-
} from "../chunk-
|
|
176
|
+
} from "../chunk-6JZLCPZ7.mjs";
|
|
176
177
|
import {
|
|
177
178
|
hasWholeTokenOccurrence,
|
|
178
179
|
indexOfWholeToken,
|
|
179
180
|
isWholeTokenOccurrence,
|
|
180
181
|
replaceWholeTokenOccurrences
|
|
181
182
|
} from "../chunk-QIORVVUD.mjs";
|
|
183
|
+
import "../chunk-L7RLVZMD.mjs";
|
|
182
184
|
import {
|
|
183
185
|
activePersonModelTier,
|
|
184
186
|
enhancedGazetteerActive,
|
|
@@ -191,7 +193,8 @@ import {
|
|
|
191
193
|
setEnhancedGazetteer,
|
|
192
194
|
setEnhancedOrgModel,
|
|
193
195
|
setNonLatinNerModel
|
|
194
|
-
} from "../chunk-
|
|
196
|
+
} from "../chunk-66SEKCCN.mjs";
|
|
197
|
+
import "../chunk-KBDFJIEW.mjs";
|
|
195
198
|
import "../chunk-44DSUIC2.mjs";
|
|
196
199
|
import {
|
|
197
200
|
nonLatinSentenceRanges,
|
|
@@ -208,8 +211,6 @@ import {
|
|
|
208
211
|
isCoverageAcceptance,
|
|
209
212
|
setEnhancedNerRequirement
|
|
210
213
|
} from "../chunk-MOHR4UIG.mjs";
|
|
211
|
-
import "../chunk-DLKR3ZVZ.mjs";
|
|
212
|
-
import "../chunk-KBDFJIEW.mjs";
|
|
213
214
|
import "../chunk-I6KKUHEY.mjs";
|
|
214
215
|
export {
|
|
215
216
|
ASR_WORKER_SOURCE,
|
package/dist/browser/light.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CreateBrowserEngineOptions, BrowserEngine } from './index.mjs';
|
|
2
2
|
export { ASR_WORKER_SOURCE, ApplyReviewOptions, ApplyReviewResult, AsrError, AsrProgress, AsrTask, AudioLike, BrowserEngineError, BrowserTokenMap, BrowserTokeniseResult, CATEGORICAL_DARK, CATEGORICAL_LIGHT, CODE_INTERPRETER_CAPABILITY_LABEL, CODE_INTERPRETER_SYSTEM_PROMPT, CODE_INTERPRETER_TOOLS, ChartSeries, ChartSpec, ChartTheme, ChartType, CloakConversation, CodeInterpreterCall, CodeInterpreterCapability, CodeInterpreterConfig, CodeInterpreterKind, CodeInterpreterManifest, CodeInterpreterResult, CodeInterpreterToolDescriptor, CountersignedResult, DEFAULT_ASR_MIRROR_BASE, DEFAULT_ASR_MODEL, DEFAULT_ASR_RUNTIME_BASE, DEFAULT_ENHANCED_NER_MODEL_ID, DEFAULT_MIRROR_BASE, DEFAULT_WHEELS, DETECTION_LAYER_ORDER, DetectedEntity, DetectionLayerId, DetectionLayerLoadHandle, DetectionLayerPhase, DetectionLayerProgress, DetectionLayerReport, DetectionLayerSnapshot, DetectionLayerState, DeviceKeyPair, DeviceReceipt, DeviceReceiptError, DeviceReceiptInput, DocBlock, EngineThreadInfo, EngineThreadReason, EnhancedGazetteerAsset, EnhancedNerLoadResult, EnhancedNerModelInfo, EnhancedNerModelProgress, EnhancedNerProgress, ExtractFileForReviewResult, ExtractOptions, FailClosedRelay, FailClosedRelayConfig, FailClosedRelayResponse, FileBuildClaim, FileBuildFile, FileBuildReceiptInput, FileEgressClaim, FileEgressFile, FileEgressReceiptInput, FileExtractFailure, FileExtractKind, FileExtractResult, FileExtractSuccess, FileFormat, FileLike, FileSpec, GeneratedFile, HEADLINE_LANGUAGES, InputBindings, InputHandle, InterpreterError, InterpreterRow, InterpreterTokenMap, LAYER_ACCURACY, LAYER_ACCURACY_PENDING_NOTE, LAYER_ACCURACY_PLACEHOLDER, LayerAccuracyCopy, LayerWaitOutcome, LayerWaitResult, LoadEnhancedNerModelOptions, LoadEnhancedNerOptions, MICROPIP_WHEELS, MakeFilePayload, MakeFilesOptions, ManualRedaction, NETWORK_GUARD_SOURCE, NerTokenizerStyle, NerUnavailableError, NetworkGuardOptions, PORTAL_ENHANCED_NER_MODEL_ID, PRIVACY_TIERS, PYODIDE_PACKAGES, PYODIDE_VERSION, PYODIDE_WORKER_SOURCE, PostureMarkerFormat, PreparedRequestBodyResult, PrivacyPosture, PrivacyPostureOptions, RECEIPT_ATTESTATION_VERSION, RebuildableFormat, RebuiltFile, RelayError, RelayTier, RelayTierInput, ResidualScanSpan, ReviewDecision, ReviewSpan, ReviewSpanType, ReviewTokenMap, RowsOrHandle, RunCallOptions, RunProgress, RunPythonOptions, RunPythonPayload, SelectionPart, SelectionSplit, SheetSpec, SignDeviceReceiptOptions, SpliceReviewedBodyOptions, TRANSCRIPTION_CAPABILITY_LABEL, TRANSCRIPTION_TOOLS, TokeniseOptions, TokeniseRequestBodyResult, TokeniseReviewOptions, TokeniseReviewResult, TokenisedRequestBodyResult, TranscribeOptions, TranscriptSegment, TranscriptionCapability, TranscriptionConfig, TranscriptionManifest, TranscriptionResult, TranscriptionToolDescriptor, UnmeasurableReason, VALUE_CONSISTENCY_MAX_PER_VALUE, VALUE_CONSISTENCY_MAX_TOTAL, VALUE_CONSISTENCY_MIN_LENGTH, Verdict, VerdictCheck, WHISPER_LANGUAGES, WHISPER_MODELS, WHISPER_SAMPLE_RATE, WaitForDetectionLayerOptions, WhisperDtype, WhisperModel, accuracyStillPlaceholder, applyReviewDecisions, asrModelRoot, asrRequiredMirrorFiles, asrRuntimeUrl, asrRuntimeWasmBase, beginDetectionLayerLoad, bindConversationSurrogates, bindRows, bindValue, bridgeOrgConnectorSpans, buildAsrWorkerSource, buildFile, buildPyodideWorkerSource, buildReviewSpans, bundleZip, cancelDetectionLayer, canonicaliseReceipt, categorical, chartToSvg, classifyEntityType, classifyFileForExtraction, cloneConversation, codeInterpreter, createFailClosedRelay, declareDetectionLayerUnsupported, decodeToPcm16k, defaultLanguageFromLocale, describeCodeInterpreter, describeTranscription, detectTokenizerStyle, detectionLayerProgressSink, detectionLayerReport, detectionLayerSnapshot, detectionLayerState, detokeniseString, detokeniseValue, engineThreadInfo, enhancedNerModelInfo, expandValueOccurrences, extractFileForReview, extractTextFromFile, fetchJwks, fetchReceiptByJti, fileBuildOf, fileEgressOf, generateDeviceKeyPair, hasWholeTokenOccurrence, indexOfWholeToken, installNoNetworkGuard, isCountersignedResult, isEnhancedNerModelActive, isNerLoadAbortError, isNonLatinNerModelActive, isPlaceIndexReady, isRebuildableFormat, isSupportedLanguage, isWholeTokenOccurrence, loadEnhancedGazetteer, loadEnhancedNerModel, loadNonLatinNerModel, makeFiles, makeFilesWithBundle, newConversation, nonLatinNerModelInfo, offerWasmNameGazetteerIfEmpty, onDetectionLayerChange, onEngineThreadChange, parseFileSpec, parseRunPython, prewarmPlaceIndex, privacyPosture, pyodideIndexUrl, rebuildTextFile, receiptHashAsync, recommendedNerThreads, reconstructOrgSpans, renderSelectionSplit, replaceWholeTokenOccurrences, resampleLinear, residualRawPII, resolveAsrModel, resolveConversation, resolveWhisperLanguage, reviewWithGracefulCards, runPython, runPythonWithBundle, signDeviceReceipt, signFileBuildReceipt, signFileEgressReceipt, specsOf, splitSelectionIntoEntities, textLikelyContainsNames, transcribe, transcription, typeFromSurrogateMarker, unloadEnhancedGazetteer, unloadEnhancedNerModel, unloadNonLatinNerModel, vacateDetectionLayer, verifyCountersigned, verifyCountersignedJson, verifyDeviceReceipt, verifyReceipt, verifyReceiptChain, verifyReceiptJson, waitForDetectionLayer, wheelUrl } from './index.mjs';
|
|
3
3
|
export { D as DEFAULT_NER_REQUIREMENT, E as EnhancedNerRunner, p as EnhancedOrgRunner, N as NerCoverage, q as NerLayerName, r as NerLayerOutcome, u as NerOrgSpan, v as NerPersonSpan, w as NerRequirement, x as NerUnavailableErrorShape, P as PersonModelTier, y as PersonNonLatinOutcome, z as ScriptRange, U as UserCoverageAcceptance, A as acceptReducedCoverage, B as assertNerCoverage, F as buildNerCoverage, G as coverageStatusForNer, H as enhancedGazetteerActive, e as enhancedNerModelActive, I as enhancedNerRequirement, J as enhancedOrgModelActive, i as isAllowlistedOrg, K as isCoverageAcceptance, b as makeOrgSurrogate, n as nonLatinNerModelActive, L as nonLatinSentenceRanges, M as normaliseOrg, O as sentenceIsNonLatin, d as setEnhancedGazetteer, Q as setEnhancedNerRequirement, j as setEnhancedOrgModel, k as setNonLatinNerModel, R as splitSentenceRanges } from '../local-pii-supplement-BsWNf5uP.mjs';
|
|
4
|
-
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-
|
|
4
|
+
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-Cslh-RaS.mjs';
|
|
5
5
|
export { C as CoverageStatus } from '../coverage-OYGXtboB.mjs';
|
|
6
|
+
import '../request-body-slots-BMShK1YO.mjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* The link between `@cloakapi/sdk/browser/light` and the full browser module.
|
package/dist/browser/light.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CreateBrowserEngineOptions, BrowserEngine } from './index.js';
|
|
2
2
|
export { ASR_WORKER_SOURCE, ApplyReviewOptions, ApplyReviewResult, AsrError, AsrProgress, AsrTask, AudioLike, BrowserEngineError, BrowserTokenMap, BrowserTokeniseResult, CATEGORICAL_DARK, CATEGORICAL_LIGHT, CODE_INTERPRETER_CAPABILITY_LABEL, CODE_INTERPRETER_SYSTEM_PROMPT, CODE_INTERPRETER_TOOLS, ChartSeries, ChartSpec, ChartTheme, ChartType, CloakConversation, CodeInterpreterCall, CodeInterpreterCapability, CodeInterpreterConfig, CodeInterpreterKind, CodeInterpreterManifest, CodeInterpreterResult, CodeInterpreterToolDescriptor, CountersignedResult, DEFAULT_ASR_MIRROR_BASE, DEFAULT_ASR_MODEL, DEFAULT_ASR_RUNTIME_BASE, DEFAULT_ENHANCED_NER_MODEL_ID, DEFAULT_MIRROR_BASE, DEFAULT_WHEELS, DETECTION_LAYER_ORDER, DetectedEntity, DetectionLayerId, DetectionLayerLoadHandle, DetectionLayerPhase, DetectionLayerProgress, DetectionLayerReport, DetectionLayerSnapshot, DetectionLayerState, DeviceKeyPair, DeviceReceipt, DeviceReceiptError, DeviceReceiptInput, DocBlock, EngineThreadInfo, EngineThreadReason, EnhancedGazetteerAsset, EnhancedNerLoadResult, EnhancedNerModelInfo, EnhancedNerModelProgress, EnhancedNerProgress, ExtractFileForReviewResult, ExtractOptions, FailClosedRelay, FailClosedRelayConfig, FailClosedRelayResponse, FileBuildClaim, FileBuildFile, FileBuildReceiptInput, FileEgressClaim, FileEgressFile, FileEgressReceiptInput, FileExtractFailure, FileExtractKind, FileExtractResult, FileExtractSuccess, FileFormat, FileLike, FileSpec, GeneratedFile, HEADLINE_LANGUAGES, InputBindings, InputHandle, InterpreterError, InterpreterRow, InterpreterTokenMap, LAYER_ACCURACY, LAYER_ACCURACY_PENDING_NOTE, LAYER_ACCURACY_PLACEHOLDER, LayerAccuracyCopy, LayerWaitOutcome, LayerWaitResult, LoadEnhancedNerModelOptions, LoadEnhancedNerOptions, MICROPIP_WHEELS, MakeFilePayload, MakeFilesOptions, ManualRedaction, NETWORK_GUARD_SOURCE, NerTokenizerStyle, NerUnavailableError, NetworkGuardOptions, PORTAL_ENHANCED_NER_MODEL_ID, PRIVACY_TIERS, PYODIDE_PACKAGES, PYODIDE_VERSION, PYODIDE_WORKER_SOURCE, PostureMarkerFormat, PreparedRequestBodyResult, PrivacyPosture, PrivacyPostureOptions, RECEIPT_ATTESTATION_VERSION, RebuildableFormat, RebuiltFile, RelayError, RelayTier, RelayTierInput, ResidualScanSpan, ReviewDecision, ReviewSpan, ReviewSpanType, ReviewTokenMap, RowsOrHandle, RunCallOptions, RunProgress, RunPythonOptions, RunPythonPayload, SelectionPart, SelectionSplit, SheetSpec, SignDeviceReceiptOptions, SpliceReviewedBodyOptions, TRANSCRIPTION_CAPABILITY_LABEL, TRANSCRIPTION_TOOLS, TokeniseOptions, TokeniseRequestBodyResult, TokeniseReviewOptions, TokeniseReviewResult, TokenisedRequestBodyResult, TranscribeOptions, TranscriptSegment, TranscriptionCapability, TranscriptionConfig, TranscriptionManifest, TranscriptionResult, TranscriptionToolDescriptor, UnmeasurableReason, VALUE_CONSISTENCY_MAX_PER_VALUE, VALUE_CONSISTENCY_MAX_TOTAL, VALUE_CONSISTENCY_MIN_LENGTH, Verdict, VerdictCheck, WHISPER_LANGUAGES, WHISPER_MODELS, WHISPER_SAMPLE_RATE, WaitForDetectionLayerOptions, WhisperDtype, WhisperModel, accuracyStillPlaceholder, applyReviewDecisions, asrModelRoot, asrRequiredMirrorFiles, asrRuntimeUrl, asrRuntimeWasmBase, beginDetectionLayerLoad, bindConversationSurrogates, bindRows, bindValue, bridgeOrgConnectorSpans, buildAsrWorkerSource, buildFile, buildPyodideWorkerSource, buildReviewSpans, bundleZip, cancelDetectionLayer, canonicaliseReceipt, categorical, chartToSvg, classifyEntityType, classifyFileForExtraction, cloneConversation, codeInterpreter, createFailClosedRelay, declareDetectionLayerUnsupported, decodeToPcm16k, defaultLanguageFromLocale, describeCodeInterpreter, describeTranscription, detectTokenizerStyle, detectionLayerProgressSink, detectionLayerReport, detectionLayerSnapshot, detectionLayerState, detokeniseString, detokeniseValue, engineThreadInfo, enhancedNerModelInfo, expandValueOccurrences, extractFileForReview, extractTextFromFile, fetchJwks, fetchReceiptByJti, fileBuildOf, fileEgressOf, generateDeviceKeyPair, hasWholeTokenOccurrence, indexOfWholeToken, installNoNetworkGuard, isCountersignedResult, isEnhancedNerModelActive, isNerLoadAbortError, isNonLatinNerModelActive, isPlaceIndexReady, isRebuildableFormat, isSupportedLanguage, isWholeTokenOccurrence, loadEnhancedGazetteer, loadEnhancedNerModel, loadNonLatinNerModel, makeFiles, makeFilesWithBundle, newConversation, nonLatinNerModelInfo, offerWasmNameGazetteerIfEmpty, onDetectionLayerChange, onEngineThreadChange, parseFileSpec, parseRunPython, prewarmPlaceIndex, privacyPosture, pyodideIndexUrl, rebuildTextFile, receiptHashAsync, recommendedNerThreads, reconstructOrgSpans, renderSelectionSplit, replaceWholeTokenOccurrences, resampleLinear, residualRawPII, resolveAsrModel, resolveConversation, resolveWhisperLanguage, reviewWithGracefulCards, runPython, runPythonWithBundle, signDeviceReceipt, signFileBuildReceipt, signFileEgressReceipt, specsOf, splitSelectionIntoEntities, textLikelyContainsNames, transcribe, transcription, typeFromSurrogateMarker, unloadEnhancedGazetteer, unloadEnhancedNerModel, unloadNonLatinNerModel, vacateDetectionLayer, verifyCountersigned, verifyCountersignedJson, verifyDeviceReceipt, verifyReceipt, verifyReceiptChain, verifyReceiptJson, waitForDetectionLayer, wheelUrl } from './index.js';
|
|
3
3
|
export { D as DEFAULT_NER_REQUIREMENT, E as EnhancedNerRunner, p as EnhancedOrgRunner, N as NerCoverage, q as NerLayerName, r as NerLayerOutcome, u as NerOrgSpan, v as NerPersonSpan, w as NerRequirement, x as NerUnavailableErrorShape, P as PersonModelTier, y as PersonNonLatinOutcome, z as ScriptRange, U as UserCoverageAcceptance, A as acceptReducedCoverage, B as assertNerCoverage, F as buildNerCoverage, G as coverageStatusForNer, H as enhancedGazetteerActive, e as enhancedNerModelActive, I as enhancedNerRequirement, J as enhancedOrgModelActive, i as isAllowlistedOrg, K as isCoverageAcceptance, b as makeOrgSurrogate, n as nonLatinNerModelActive, L as nonLatinSentenceRanges, M as normaliseOrg, O as sentenceIsNonLatin, d as setEnhancedGazetteer, Q as setEnhancedNerRequirement, j as setEnhancedOrgModel, k as setNonLatinNerModel, R as splitSentenceRanges } from '../local-pii-supplement-Db8n7ZuO.js';
|
|
4
|
-
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-
|
|
4
|
+
export { C as CLK_DISCLOSURE_TEXT, c as CLK_DISCLOSURE_TEXT_MESSAGE_SCOPED, d as CLOAK_ANGLE_DISCLOSURE_TEXT, e as CLOAK_ANGLE_DISCLOSURE_TEXT_MESSAGE_SCOPED, f as CLOAK_ANGLE_HEADER, g as CLOAK_ANGLE_HEADER_MESSAGE_SCOPED, h as CONTINUITY_SENTENCE, D as DEFAULT_SURROGATE_MODE, i as DisclosureMessage, j as DisclosureTextOptions, L as LEGACY_SURROGATE_MODE_ALIASES, M as MODE_COPY, k as MODE_SHARED_NOTE, l as MarkerFormat, n as SDK_VERSION, o as SURROGATE_MODES, p as SurrogateContinuity, S as SurrogateMode, q as SurrogateModeCopy, r as SurrogateModeError, a as SurrogateModeReport, W as WithDisclosureOptions, s as coerceSurrogateMode, t as detectMarkerFormat, u as disclosureText, v as isSurrogateMode, w as resolveSurrogateMode, x as withDisclosure } from '../disclosure-Cslh-RaS.js';
|
|
5
5
|
export { C as CoverageStatus } from '../coverage-OYGXtboB.js';
|
|
6
|
+
import '../request-body-slots-BMShK1YO.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* The link between `@cloakapi/sdk/browser/light` and the full browser module.
|
package/dist/browser/light.mjs
CHANGED
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
spanIsAllCommonWords,
|
|
13
13
|
titleCaseAllCapsRuns,
|
|
14
14
|
titleCaseLowercaseRuns
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-66SEKCCN.mjs";
|
|
16
|
+
import "../../chunk-KBDFJIEW.mjs";
|
|
16
17
|
import "../../chunk-44DSUIC2.mjs";
|
|
17
18
|
import {
|
|
18
19
|
sentenceIsNonLatin
|
|
19
20
|
} from "../../chunk-SUUFGE34.mjs";
|
|
20
21
|
import "../../chunk-MOHR4UIG.mjs";
|
|
21
|
-
import "../../chunk-KBDFJIEW.mjs";
|
|
22
22
|
import "../../chunk-I6KKUHEY.mjs";
|
|
23
23
|
|
|
24
24
|
// src/browser/names/locate-person-word.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildNerPipeline,
|
|
3
3
|
localNerTokenOps
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6JZLCPZ7.mjs";
|
|
5
5
|
import "../chunk-QIORVVUD.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-66SEKCCN.mjs";
|
|
7
|
+
import "../chunk-KBDFJIEW.mjs";
|
|
7
8
|
import "../chunk-44DSUIC2.mjs";
|
|
8
9
|
import "../chunk-SUUFGE34.mjs";
|
|
9
10
|
import "../chunk-MOHR4UIG.mjs";
|
|
10
|
-
import "../chunk-KBDFJIEW.mjs";
|
|
11
11
|
import "../chunk-I6KKUHEY.mjs";
|
|
12
12
|
|
|
13
13
|
// src/browser/ner-pipeline-worker.ts
|