@haelp/teto
Version:
A typescript-based controllable TETR.IO client.
1 lines • 1.89 kB
Source Map (JSON)
{"version":3,"sources":["../../src/types/social.ts"],"sourcesContent":["import type { User } from \"./user\";\n\nexport namespace Social {\n export type Status = \"online\" | \"away\" | \"busy\" | \"offline\";\n\n export type Detail =\n | \"\"\n | \"menus\"\n | \"40l\"\n | \"blitz\"\n | \"zen\"\n | \"custom\"\n | \"lobby_end:X-QP\"\n | \"lobby_spec:X-QP\"\n | \"lobby_ig:X-QP\"\n | \"lobby:X-QP\"\n | \"lobby_end:X-PRIV\"\n | \"lobby_spec:X-PRIV\"\n | \"lobby_ig:X-PRIV\"\n | \"lobby:X-PRIV\"\n | \"tl_mm\"\n | \"tl\"\n | \"tl_end\"\n | \"tl_mm_complete\";\n\n export interface DM {\n data: {\n content: string;\n content_safe: string;\n user: string;\n userdata: {\n role: User.Role;\n supporter: boolean;\n supporter_tier: number;\n verified: boolean;\n };\n system: boolean;\n };\n stream: string;\n ts: Date;\n id: string;\n }\n\n export type NotificationType =\n | \"friend\"\n | \"pending\"\n | \"noop_forfeit_notice\"\n | \"announcement\"\n | \"supporter_new\"\n | \"supporter_gift\"\n | \"\";\n\n export interface Notification {\n _id: string;\n data: {\n relationship: Relationship;\n };\n seen: boolean;\n stream: string;\n ts: string;\n type: string;\n }\n\n export type RelationshipType = \"friend\" | \"block\" | \"pending\";\n export interface Relationship {\n _id: string;\n from: {\n _id: string;\n username: string;\n avatar_revision: number;\n };\n to: {\n _id: string;\n username: string;\n avatar_revision: number;\n };\n type: Social.RelationshipType;\n unread: number;\n updated: string;\n }\n\n export interface Blocked {\n id: string;\n username: string;\n avatar: number;\n }\n}\n"],"names":[],"mappings":"AAEA,WAoFC"}