File size: 5,241 Bytes
fd4dc0d | 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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | {
"entities": {
"User": {
"title": "User",
"description": "A user of the application.",
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "The user's email address."
},
"createdAt": {
"type": "number",
"description": "Timestamp when the user was created."
}
},
"required": ["email", "createdAt"]
},
"Project": {
"title": "Project",
"description": "A project containing notes.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The project ID."
},
"userId": {
"type": "string",
"description": "The ID of the user who owns the project."
},
"title": {
"type": "string",
"description": "The title of the project."
},
"rootNoteId": {
"type": "string",
"description": "The ID of the root note for this project."
},
"createdAt": {
"type": "number",
"description": "Timestamp when the project was created."
},
"categoryId": {
"type": "string",
"description": "Optional ID of the category this project belongs to."
},
"creatorId": {
"type": "string",
"description": "The ID of the user who created the project."
},
"creatorEmail": {
"type": "string",
"description": "The email of the user who created the project."
},
"collaborators": {
"type": "array",
"items": { "type": "string" },
"description": "List of user IDs who are collaborators on this project."
}
},
"required": ["id", "userId", "title", "rootNoteId", "createdAt", "creatorId"]
},
"Note": {
"title": "Note",
"description": "A note within a project.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The note ID."
},
"userId": {
"type": "string",
"description": "The ID of the user who owns the note."
},
"projectId": {
"type": "string",
"description": "The ID of the project this note belongs to."
},
"parentId": {
"type": ["string", "null"],
"description": "The ID of the parent note, or null if it's the root note."
},
"title": {
"type": "string",
"description": "The title of the note."
},
"content": {
"type": "string",
"description": "The content of the note (Markdown or Image URL)."
},
"type": {
"type": "string",
"enum": ["ROOT", "TEXT", "CODE", "IMAGE"],
"description": "The type of the note."
},
"status": {
"type": "string",
"enum": ["IDLE", "PLANNING", "GENERATING", "COMPLETED", "ERROR"],
"description": "The generation status of the note."
},
"children": {
"type": "array",
"items": { "type": "string" },
"description": "IDs of child notes."
},
"timestamp": {
"type": "number",
"description": "Timestamp when the note was created or last updated."
},
"attachments": {
"type": "string",
"description": "JSON stringified array of attachments."
},
"tags": {
"type": "array",
"items": { "type": "string" },
"description": "Tags associated with the note."
},
"linkedNoteIds": {
"type": "array",
"items": { "type": "string" },
"description": "IDs of linked notes."
}
},
"required": ["id", "userId", "projectId", "title", "content", "type", "status", "children", "timestamp"]
},
"Category": {
"title": "Category",
"description": "A category for organizing projects.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The category ID."
},
"userId": {
"type": "string",
"description": "The ID of the user who owns the category."
},
"name": {
"type": "string",
"description": "The name of the category."
},
"color": {
"type": "string",
"description": "The color associated with the category."
}
},
"required": ["id", "userId", "name", "color"]
}
},
"firestore": {
"/users/{userId}": {
"schema": { "$ref": "#/entities/User" },
"description": "User profiles."
},
"/projects/{projectId}": {
"schema": { "$ref": "#/entities/Project" },
"description": "Projects created by users."
},
"/notes/{noteId}": {
"schema": { "$ref": "#/entities/Note" },
"description": "Notes created by users."
},
"/categories/{categoryId}": {
"schema": { "$ref": "#/entities/Category" },
"description": "Categories created by users."
}
}
}
|