backend for xcvr appview

add lex dsl

+245 -2
+35 -2
lexicons/org/xcvr/lrc/defs.json
··· 36 36 } 37 37 } 38 38 }, 39 + 39 40 "signetView": { 40 41 "type": "object", 41 42 "required": ["uri", "issuer", "channelURI", "lrcID", "authorHandle", "startedAt"], ··· 66 67 } 67 68 } 68 69 }, 70 + 69 71 "signedMessageView": { 70 72 "type": "object", 71 73 "required": ["uri", "author", "body", "signet", "postedAt"], ··· 92 94 }, 93 95 "signet": { 94 96 "type": "ref", 95 - "ref": "org.xcvr.actor.defs#profileView" 97 + "ref": "org.xcvr.actor.defs#signetView" 96 98 }, 97 99 "postedAt": { 98 100 "type": "string", 99 101 "format": "datetime" 100 102 } 103 + }, 101 104 102 - } 105 + "mediaView": { 106 + "type": "object", 107 + "required": ["uri", "author", "media", "signetURI", "postedAt"], 108 + "properties": { 109 + "uri": { 110 + "type": "string", 111 + "format": "at-uri" 112 + }, 113 + "author": { 114 + "type": "ref", 115 + "ref": "org.xcvr.actor.defs#profileView" 116 + }, 117 + "nick": { 118 + "type": "string", 119 + "maxLength": 16 120 + }, 121 + "color": { 122 + "type": "integer", 123 + "minimum": 0, 124 + "maximum": 16777215 125 + }, 126 + "signetURI": { 127 + "type": "string", 128 + "format": "at-uri" 129 + }, 130 + "postedAt": { 131 + "type": "string", 132 + "format": "datetime" 133 + } 134 + } 135 + }, 103 136 } 104 137 }
+210
lexicons/org/xcvr/notes.lex
··· 1 + org.xcvr 2 + actor 3 + profile: record 4 + displayName?: string, bytes<=640, chars<=64 5 + defaultNick?: string, bytes<=16 6 + status?: string, bytes<=6400, chars<=640 7 + avatar?: blob 8 + color?: int, [0 16777215] 9 + 10 + profileView: def 11 + did: did 12 + handle: handle 13 + displayName?: string, bytes<=640, chars<=64 14 + status?: string, bytes<=6400, chars<=640 15 + avatar?: blob 16 + color?: int, [0 16777215] 17 + defaultNick?: string, bytes<=16 18 + 19 + resolveChannel: query 20 + params 21 + union 22 + handle: handle 23 + rkey: string 24 + | 25 + did: did 26 + rkey: string 27 + | 28 + uri: uri 29 + output 30 + url: string 31 + uri?: uri 32 + 33 + getProfile: query 34 + params 35 + union 36 + handle: handle 37 + | 38 + did: did 39 + output 40 + profile: profileView 41 + 42 + getLastSeen: query 43 + params 44 + union 45 + handle: handle 46 + | 47 + did: did 48 + output 49 + where?: uri 50 + when?: date 51 + 52 + feed 53 + channel: record 54 + title: string, bytes<=640, chars<=64 55 + topic?: string, bytes<=2560, chars<=256 56 + createdAt: string 57 + host: handle 58 + 59 + sub: record 60 + channelUri: uri 61 + 62 + channelView?: def 63 + uri: uri 64 + host: handle 65 + creator: org.xcvr.actor.profileView 66 + title: string, bytes<=640, chars<=64 67 + topic?: string, bytes<=2560, chars<=256 68 + connectedCount?: int [0 69 + createdAt?: date 70 + 71 + getChannels?: query 72 + params 73 + limit?: int, [0 100], default=50 74 + cursor?: string 75 + output 76 + channels: array 77 + channelView 78 + cursor?: string 79 + 80 + lrc 81 + message: record 82 + signetURI: uri 83 + body: string 84 + nick?: string, bytes<=16 85 + color?: int, [0 16777215] 86 + postedAt?: date 87 + 88 + signet: record 89 + channelURI: uri 90 + lrcID: int, [0 4294967295] 91 + author: string 92 + startedAt?: date 93 + 94 + media: record 95 + signetURI: uri 96 + union 97 + image 98 + | 99 + video 100 + nick?: string, bytes<=16 101 + color?: int, [0 16777215] 102 + postedAt?: date 103 + 104 + image: def 105 + alt: string 106 + blob: blob 107 + aspectRatio?: aspectRatio 108 + 109 + aspectRatio: def 110 + width?: int 111 + height?: int 112 + 113 + video: def 114 + alt: string 115 + blob: blob 116 + # captions? 117 + 118 + messageView: def 119 + uri: uri 120 + author: org.xcvr.lrc.profileView 121 + body: string 122 + nick?: string, bytes<=16 123 + color?: int, [0 16777215] 124 + signetURI: uri 125 + postedAt: date 126 + 127 + signetView: def 128 + uri: uri 129 + issuer: handle 130 + channelURI: uri 131 + lrcID: int, [0 4294967295] 132 + authorHandle: string 133 + startedAt?: date 134 + 135 + mediaView: def 136 + uri: uri 137 + author: org.xcvr.lrc.profileView 138 + union 139 + image 140 + | 141 + video 142 + nick?: string, bytes<=16 143 + color?: int, [0 16777215] 144 + signetURI: uri 145 + postedAt: date 146 + 147 + signedMessageView: def 148 + uri: uri 149 + author: org.xcvr.lrc.profileView 150 + body: string 151 + nick?: string, bytes<=16 152 + color?: int, [0 16777215] 153 + signet: signetView 154 + postedAt: date 155 + 156 + signedMediaView: def 157 + uri: uri 158 + author: org.xcvr.lrc.profileView 159 + union 160 + image 161 + | 162 + video 163 + nick?: string, bytes<=16 164 + color?: int, [0 16777215] 165 + signet: signetView 166 + postedAt: date 167 + 168 + getMessages: query 169 + params 170 + limit?: int, [0 100], default=50 171 + cursor?: string 172 + output 173 + messages: array 174 + union 175 + signedMessageView 176 + | 177 + signedMediaView 178 + cursor?: string 179 + 180 + subscribeLexStream: subscription 181 + params 182 + uri: uri 183 + message 184 + union 185 + messageView 186 + | 187 + signetView 188 + | 189 + mediaView 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 +