/** * EDV (Encrypted Data Vaults v0.1) data model. The `EncryptedDocument` * shape is what the server stores; the `jwe` payload is opaque to it. */ export interface VaultDescriptor { vault_id: string; controller: string; base_url: string; encryption: { content: string; index_hmac: string; }; retention: { kind: string; expires_at?: string; }; backend: { type: string; hints?: { region?: string; }; }; limits: { max_docs: number; max_bytes: number; max_doc_bytes: number; }; index_schema: string[]; } /** * One stored document. EDV v0.1 § Data Model. `jwe` is JWE General * JSON Serialization (RFC 7516 §7.2). */ export interface EncryptedDocument { id: string; sequence: number; indexed: Array>; jwe: Record; } export interface QueryRequest { index: string; equals: string; } export interface QueryResponse { documents: EncryptedDocument[]; } export declare class EdvClientError extends Error { readonly status?: number | undefined; readonly code?: string | undefined; constructor(message: string, status?: number | undefined, code?: string | undefined); }