@easyflow/pixel
Version:
Easyflow client-side pixel SDK
16 lines (15 loc) • 585 B
TypeScript
export type RedactionStrategy = "mask" | "hash" | "null";
export type AnonymizeOptions = {
strategy?: RedactionStrategy;
hashSalt?: string;
extraKeyPatterns?: RegExp[];
extraValuePatterns?: RegExp[];
allowlistKeys?: string[];
forceKeys?: string[];
detectAlreadyHashed?: boolean;
defaultCountryCode?: string;
};
export declare function anonymizePII<T = any>(input: T, options?: AnonymizeOptions): Promise<T>;
export declare function anonymizePIISync<T = any>(input: T, opts?: Omit<AnonymizeOptions, "strategy"> & {
strategy?: "mask" | "null";
}): T;