UNPKG

@memori.ai/memori-react

Version:

[![npm version](https://img.shields.io/github/package-json/v/memori-ai/memori-react)](https://www.npmjs.com/package/@memori.ai/memori-react) ![Tests](https://github.com/memori-ai/memori-react/workflows/CI/badge.svg?branch=main) ![TypeScript Support](https

17 lines (16 loc) 513 B
export type LayoutName = 'DEFAULT' | 'FULLPAGE' | 'TOTEM' | 'CHAT' | 'WEBSITE_ASSISTANT' | 'HIDDEN_CHAT' | 'ZOOMED_FULL_BODY'; export interface PiiDetectionRule { id: string; label: Record<string, string>; pattern: string; message: Record<string, string>; } export interface PiiDetectionConfig { enabled: boolean; rules: PiiDetectionRule[]; errorMessage: Record<string, string>; } export type LayoutProp = LayoutName | { name: LayoutName; piiDetection?: PiiDetectionConfig; };