openvibe-sdk/redact
Generated at from
openvibe-contracts v0.222.0 and
openvibe-sdk v0.81.0.
From types/redact.d.ts (both). Declarations are shown verbatim.
interface RedactResult
A text with its secrets removed, and how many secrets were removed.
export interface RedactResult {
text: string;
count: number;
}export export function redact(text: unknown): RedactResult;
Remove every secret shape from a text. The secrets themselves are never returned; an already-redacted text is unchanged.
export function redact(text: unknown): RedactResult;export export function onlySecret(text: unknown): boolean;
True when a text holds nothing but redacted secrets: an item that was only a secret is refused.
export function onlySecret(text: unknown): boolean;