interface UserToken {
    prefix: string;
    token: string;
}

interface CollectionTokens {
    default: string;
    tokens: UserToken[];
}

interface User {
    _id: string;
    uuid: string;
    expiryStarts: string;
    expiryEnds: string;
    isConfirmed: boolean;
    deleted: boolean;
    active: boolean;
    crypUuId: string;
    createdCredentialsToken: string;
    updatedCredentialsToken: string;
    confirmedCredentialsToken: string;
    isNotificationSend: boolean;
    isEmailSend: boolean;
    refInt: number;
    refId: string;
    replicationId: number;
    expiresAt: string;
    resetToken?: string | null;
    password: string;
    history: string[];
    tag: string;
    email: string;
    phone: string;
    collectionTokens: CollectionTokens;
    createdAt: string;
    updatedAt: string;
}

interface UsersListResponse {
    data: User[] | null;
    totalCount: number;
}


export type { User, UsersListResponse }