UNPKG

@vvkgaming/colyseussocialcustom

Version:

Authentication and Social features for Colyseus

37 lines (36 loc) 874 B
import mongoose, { Document } from 'mongoose'; import { ObjectId } from '..'; export declare enum Platform { ios = "ios", android = "android" } export interface Device { id: string; platform: Platform; } export declare const UserExposedFields: string[]; export interface IUser extends Document { username: string; displayName: string; avatarUrl: string; isAnonymous: boolean; email: string; password: string; passwordSalt: string; lang: string; location: string; timezone: string; metadata: any; devices: Device[]; facebookId: string; twitterId: string; googleId: string; gameCenterId: string; steamId: string; friendIds: ObjectId[]; blockedUserIds: ObjectId[]; createdAt: Date; updatedAt: Date; } declare const _default: mongoose.Model<IUser, {}>; export default _default;