-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
80 lines (80 loc) · 2.7 KB
/
firebase-blueprint.json
File metadata and controls
80 lines (80 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"entities": {
"User": {
"title": "User Profile",
"description": "Represents an online participant's metadata and presence status",
"type": "object",
"properties": {
"id": { "type": "string" },
"username": { "type": "string" },
"avatarColor": { "type": "string" },
"avatarEmoji": { "type": "string" },
"status": { "type": "string", "enum": ["online", "away", "offline"] },
"lastActive": { "type": "number" }
},
"required": ["id", "username", "avatarColor", "avatarEmoji", "status", "lastActive"]
},
"Channel": {
"title": "Discussion Channel",
"description": "A separate discussion room within the workspace",
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"isPrivate": { "type": "boolean" }
},
"required": ["id", "name", "description"]
},
"Message": {
"title": "Chat Message",
"description": "A message sent in a channel by a participant",
"type": "object",
"properties": {
"id": { "type": "string" },
"channelId": { "type": "string" },
"user": { "$ref": "#/entities/User" },
"content": { "type": "string" },
"timestamp": { "type": "number" },
"imageUrl": { "type": "string" },
"reactions": {
"type": "array",
"description": "List of user emoji reactions on this message"
},
"isSystem": { "type": "boolean" }
},
"required": ["id", "channelId", "user", "content", "timestamp", "reactions"]
},
"TypingStatus": {
"title": "Typing Telemetry",
"description": "Indicates whether a specific user is currently drafting a message in a channel",
"type": "object",
"properties": {
"userId": { "type": "string" },
"username": { "type": "string" },
"channelId": { "type": "string" },
"isTyping": { "type": "boolean" },
"lastUpdated": { "type": "number" }
},
"required": ["userId", "username", "channelId", "isTyping", "lastUpdated"]
}
},
"firestore": {
"users/{userId}": {
"schema": "User",
"description": "User online profiles and presence settings"
},
"channels/{channelId}": {
"schema": "Channel",
"description": "Discussion channels within the workspace"
},
"messages/{messageId}": {
"schema": "Message",
"description": "Chronological index of messages across channels"
},
"typing/{statusId}": {
"schema": "TypingStatus",
"description": "Active typing telemetry indicators for real-time room UI updates"
}
}
}