UNPKG

@haelp/teto

Version:

A typescript-based controllable TETR.IO client.

56 lines 1.73 kB
import type { User } from "./user"; export declare namespace Social { type Status = "online" | "away" | "busy" | "offline"; type Detail = "" | "menus" | "40l" | "blitz" | "zen" | "custom" | "lobby_end:X-QP" | "lobby_spec:X-QP" | "lobby_ig:X-QP" | "lobby:X-QP" | "lobby_end:X-PRIV" | "lobby_spec:X-PRIV" | "lobby_ig:X-PRIV" | "lobby:X-PRIV" | "tl_mm" | "tl" | "tl_end" | "tl_mm_complete"; interface DM { data: { content: string; content_safe: string; user: string; userdata: { role: User.Role; supporter: boolean; supporter_tier: number; verified: boolean; }; system: boolean; }; stream: string; ts: Date; id: string; } type NotificationType = "friend" | "pending" | "noop_forfeit_notice" | "announcement" | "supporter_new" | "supporter_gift" | ""; interface Notification { _id: string; data: { relationship: Relationship; }; seen: boolean; stream: string; ts: string; type: string; } type RelationshipType = "friend" | "block" | "pending"; interface Relationship { _id: string; from: { _id: string; username: string; avatar_revision: number; }; to: { _id: string; username: string; avatar_revision: number; }; type: Social.RelationshipType; unread: number; updated: string; } interface Blocked { id: string; username: string; avatar: number; } } //# sourceMappingURL=social.d.ts.map