import type { IdentityCore, EntityStatus } from '@23blocks/contracts'; import type { Asset } from './asset.js'; export interface AssetsUser extends IdentityCore { email: string; name?: string; phone?: string; status: EntityStatus; enabled: boolean; payload?: Record; } export interface RegisterAssetsUserRequest { email: string; name?: string; phone?: string; payload?: Record; } export interface UpdateAssetsUserRequest { name?: string; phone?: string; enabled?: boolean; status?: EntityStatus; payload?: Record; } export interface ListAssetsUsersParams { page?: number; perPage?: number; status?: EntityStatus; search?: string; } export interface UserOwnership { uniqueId: string; assetUniqueId: string; userUniqueId: string; ownershipType: string; acquiredAt: Date; transferredAt?: Date; payload?: Record; /** * The full asset record, populated from the JSON:API `included` array on * the listOwnership response. Saves an N+1 lookup when consumers need * asset details (name, serial, image, etc.) alongside the ownership row. */ asset?: Asset; } //# sourceMappingURL=user.d.ts.map