import type { BlockId } from '../branded/primitives/blockId'; import { EntryPropertyRecord } from './entryPropertyRecord'; import { VaultEntryType } from './vaultEntry'; export interface VaultMetadata { id: string; name: string; ownerId: string; createdAt: Date; updatedAt: Date; entryCount: number; sharedWith: string[]; vcblBlockId: BlockId; } export interface DecryptedVault { metadata: VaultMetadata; propertyRecords: EntryPropertyRecord[]; /** * Base64-encoded vault BIP39 seed returned by the server on openVault. * Used by the client to derive the vault key for client-side E2EE entry * encryption/decryption. Never stored persistently by the client. */ vaultSeedB64?: string; } /** * Generic decrypted vault following the IBaseData workspace convention. * * - Frontend uses `IDecryptedVault` (default) * - Backend uses `IDecryptedVault` * * @template TID - ID type. Defaults to `string` for frontend/JSON compatibility. */ export interface IDecryptedVault { metadata: { id: TID; name: string; ownerId: TID; createdAt: Date | string; updatedAt: Date | string; entryCount: number; sharedWith: TID[]; vcblBlockId: BlockId; }; propertyRecords: EntryPropertyRecord[]; /** * Base64-encoded vault BIP39 seed returned by the server on openVault. * Used by the client to derive the vault key for client-side E2EE. */ vaultSeedB64?: string; } export interface EntrySearchQuery { text?: string; type?: VaultEntryType; tags?: string[]; favorite?: boolean; } export interface AutofillPayload { vaultId: string; entries: Array<{ entryId: string; title: string; username: string; password: string; siteUrl: string; totpCode?: string; }>; } /** * Generic autofill payload following the IBaseData workspace convention. * * - Frontend uses `IAutofillPayload` (default) * - Backend uses `IAutofillPayload` * * @template TID - ID type. Defaults to `string` for frontend/JSON compatibility. */ export interface IAutofillPayload { vaultId: TID; entries: Array<{ entryId: TID; title: string; username: string; password: string; siteUrl: string; totpCode?: string; }>; } //# sourceMappingURL=vaultMetadata.d.ts.map