@n8n/n8n-nodes-langchain
Version:

8 lines (7 loc) • 359 B
TypeScript
import type { CreateCheckFn, GuardrailResult } from '../types';
export type SecretKeysConfig = {
threshold: 'strict' | 'balanced' | 'permissive';
customRegex?: string[];
};
export declare const secretKeysCheck: (data: string, config: SecretKeysConfig) => GuardrailResult;
export declare const createSecretKeysCheckFn: CreateCheckFn<SecretKeysConfig>;