export interface CollectionItem> { appId: string; userId: string; orgId: string; entityType: string; entityId: string; snapshot: T; savedAt: string; } export interface CollectionToggleRequest { entityType: string; entityId: string; snapshot?: Record; } export interface CollectionToggleResponse { saved: boolean; operationId: string; item?: CollectionItem; } export interface CollectionListRequest { entityType?: string; limit?: number; cursor?: string; } export interface CollectionListResponse> { items: CollectionItem[]; nextCursor?: string; operationId: string; } export interface CollectionIsSavedResponse { saved: boolean; operationId: string; } export interface ValtechCollectionsConfig { apiUrl: string; appId?: string; }