import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow'; /** * Flair API credential — v1 Harper admin-password authentication. * * SECURITY NOTE: the admin password grants read/write to the entire Flair * instance, not just the specified agentId. The blast radius is the whole * memory store. This is acceptable for v1 / proof-of-concept where the * operator controls the n8n workflow inputs, but planned Ed25519 per-agent * auth should land before any deployment with sensitive memories from * untrusted workflow inputs. * * The agentId field controls memory ownership — workflows that share an * agentId share memory ownership, allowing "this assistant remembers" * patterns across workflows. Use distinct agentIds when isolation matters. * * AUTH FLOW: Flair (Harper) accepts `Authorization: Basic` with the * admin user (`admin`) and the admin password. We pass the password in * via the `adminPassword` credential field; the Basic-auth header is * constructed via the n8n expression engine. The credential test hits * `/Memory` (auth-required) — `/Health` is unauthenticated, so testing * against it would silently pass with wrong credentials. */ export declare class FlairApi implements ICredentialType { name: string; displayName: string; documentationUrl: string; properties: INodeProperties[]; authenticate: IAuthenticateGeneric; test: ICredentialTestRequest; }