atproto blogging
at main 214 lines 5.0 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.graph.defs", 4 "defs": { 5 "communityTagCount": { 6 "type": "object", 7 "description": "A community tag with how many people applied it.", 8 "required": [ 9 "tag", 10 "count" 11 ], 12 "properties": { 13 "count": { 14 "type": "integer" 15 }, 16 "tag": { 17 "type": "string" 18 } 19 } 20 }, 21 "curatelist": { 22 "type": "token", 23 "description": "A curated collection of notebooks/entries for sharing." 24 }, 25 "listItemView": { 26 "type": "object", 27 "description": "An item in a list with hydrated subject.", 28 "required": [ 29 "uri", 30 "subject" 31 ], 32 "properties": { 33 "addedAt": { 34 "type": "string", 35 "format": "datetime" 36 }, 37 "subject": { 38 "type": "union", 39 "refs": [ 40 "sh.weaver.notebook.defs#notebookView", 41 "sh.weaver.notebook.defs#entryView" 42 ] 43 }, 44 "uri": { 45 "type": "string", 46 "format": "at-uri" 47 } 48 } 49 }, 50 "listPurpose": { 51 "type": "string", 52 "knownValues": [ 53 "sh.weaver.graph.defs#curatelist", 54 "sh.weaver.graph.defs#readinglist", 55 "sh.weaver.graph.defs#serieslist" 56 ] 57 }, 58 "listView": { 59 "type": "object", 60 "description": "Hydrated view of a list.", 61 "required": [ 62 "uri", 63 "cid", 64 "creator", 65 "name", 66 "purpose", 67 "itemCount", 68 "indexedAt" 69 ], 70 "properties": { 71 "avatar": { 72 "type": "string", 73 "format": "uri" 74 }, 75 "cid": { 76 "type": "string", 77 "format": "cid" 78 }, 79 "creator": { 80 "type": "ref", 81 "ref": "sh.weaver.actor.defs#profileViewBasic" 82 }, 83 "description": { 84 "type": "string" 85 }, 86 "indexedAt": { 87 "type": "string", 88 "format": "datetime" 89 }, 90 "itemCount": { 91 "type": "integer" 92 }, 93 "name": { 94 "type": "string" 95 }, 96 "purpose": { 97 "type": "ref", 98 "ref": "#listPurpose" 99 }, 100 "uri": { 101 "type": "string", 102 "format": "at-uri" 103 }, 104 "viewerSubscribed": { 105 "type": "string", 106 "format": "at-uri" 107 } 108 } 109 }, 110 "readinglist": { 111 "type": "token", 112 "description": "A personal reading list." 113 }, 114 "resourceTagsView": { 115 "type": "object", 116 "description": "All tags for a resource, grouped by source.", 117 "required": [ 118 "resource", 119 "authorTags", 120 "communityTags" 121 ], 122 "properties": { 123 "authorTags": { 124 "type": "array", 125 "description": "Tags from the record itself (author-applied).", 126 "items": { 127 "type": "string" 128 } 129 }, 130 "communityTags": { 131 "type": "array", 132 "description": "Aggregated community-applied tags with counts.", 133 "items": { 134 "type": "ref", 135 "ref": "#communityTagCount" 136 } 137 }, 138 "resource": { 139 "type": "ref", 140 "ref": "com.atproto.repo.strongRef" 141 }, 142 "viewerAppliedTags": { 143 "type": "array", 144 "description": "Tags the current viewer has applied.", 145 "items": { 146 "type": "string" 147 } 148 } 149 } 150 }, 151 "serieslist": { 152 "type": "token", 153 "description": "An ordered series of related works (sequels, spin-offs)." 154 }, 155 "tagApplicationView": { 156 "type": "object", 157 "description": "A single tag application with who applied it.", 158 "required": [ 159 "uri", 160 "tag", 161 "appliedBy", 162 "createdAt" 163 ], 164 "properties": { 165 "appliedBy": { 166 "type": "ref", 167 "ref": "sh.weaver.actor.defs#profileViewBasic" 168 }, 169 "createdAt": { 170 "type": "string", 171 "format": "datetime" 172 }, 173 "tag": { 174 "type": "string" 175 }, 176 "uri": { 177 "type": "string", 178 "format": "at-uri" 179 } 180 } 181 }, 182 "tagView": { 183 "type": "object", 184 "description": "Aggregated view of a tag with usage statistics.", 185 "required": [ 186 "tag", 187 "useCount" 188 ], 189 "properties": { 190 "entryCount": { 191 "type": "integer" 192 }, 193 "notebookCount": { 194 "type": "integer" 195 }, 196 "recentUseCount": { 197 "type": "integer", 198 "description": "Uses in the last 30 days." 199 }, 200 "tag": { 201 "type": "string" 202 }, 203 "trendingScore": { 204 "type": "integer", 205 "description": "Appview-computed trending score." 206 }, 207 "useCount": { 208 "type": "integer", 209 "description": "Total number of resources tagged with this tag." 210 } 211 } 212 } 213 } 214}