backend for xcvr appview

add some lexicons

+212 -39
lexicons/.DS_Store

This is a binary file and will not be displayed.

-22
lexicons/getChannels
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.xcvr.getChannels", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "output": { 8 - "encoding": "application/json", 9 - "schema": { 10 - "type": "array", 11 - "items": { 12 - "type": "object", 13 - "properties": { 14 - "band": { "type": "string", "maxLength": 256}, 15 - "sign": { "type": "string", "maxLength": 64} 16 - } 17 - } 18 - } 19 - } 20 - } 21 - } 22 - }
-17
lexicons/initChannel.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "org.xcvr.initChannel", 4 - "defs": { 5 - "main": { 6 - "type": "procedure", 7 - "parameters": { 8 - "type": "params", 9 - "required": ["band"], 10 - "properties": { 11 - "band": { "type": "string", "maxLength": 256}, 12 - "sign": { "type": "string", "maxLength": 64} 13 - } 14 - } 15 - } 16 - } 17 - }
lexicons/org/.DS_Store

This is a binary file and will not be displayed.

+39
lexicons/org/xcvr/actor/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.xcvr.channel.defs", 4 + "defs": { 5 + "profileView": { 6 + "type": "object", 7 + "required": ["did", "handle"], 8 + "properties": { 9 + "did": { 10 + "type": "string", 11 + "format": "did" 12 + }, 13 + "handle": { 14 + "type": "string", 15 + "format": "handle" 16 + }, 17 + "displayName": { 18 + "type": "string", 19 + "maxGraphemes": 64, 20 + "maxLength": 640 21 + }, 22 + "status": { 23 + "type": "string", 24 + "maxGraphemes": 64, 25 + "maxLength": 640 26 + }, 27 + "color": { 28 + "type": "integer", 29 + "minimum": 0, 30 + "maximum": 16777215 31 + }, 32 + "avatar": { 33 + "type": "string", 34 + "format": "uri" 35 + } 36 + } 37 + } 38 + } 39 + }
+41
lexicons/org/xcvr/actor/profile.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.xcvr.actor.profile", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "key": "literal:self", 8 + "record": { 9 + "type": "object", 10 + "properties": { 11 + "displayName": { 12 + "type": "string", 13 + "maxGraphemes": 64, 14 + "maxLength": 640 15 + }, 16 + "defaultNick": { 17 + "type": "string", 18 + "maxLength": 16, 19 + "default": "wanderer" 20 + }, 21 + "status": { 22 + "type": "string", 23 + "maxGraphemes": 64, 24 + "maxLength": 640 25 + }, 26 + "avatar": { 27 + "type": "blob", 28 + "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'", 29 + "accept": ["image/png", "image/jpeg"], 30 + "maxSize": 1000000 31 + }, 32 + "color": { 33 + "type": "integer", 34 + "minimum": 0, 35 + "maximum": 16777215 36 + }, 37 + } 38 + }, 39 + } 40 + } 41 + }
+30
lexicons/org/xcvr/feed/channel.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.xcvr.feed.channel", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "key": "tid", 8 + "record": { 9 + "type": "object", 10 + "required": ["title", "createdAt"], 11 + "properties": { 12 + "title": { 13 + "type": "string", 14 + "maxGraphemes": 64, 15 + "maxLength": 640 16 + }, 17 + "topic": { 18 + "type": "string", 19 + "maxGraphemes": 256, 20 + "maxLength": 2560 21 + }, 22 + "createdAt": { 23 + "type": "string", 24 + "format": "datetime" 25 + } 26 + } 27 + } 28 + } 29 + } 30 + }
+34
lexicons/org/xcvr/feed/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.xcvr.feed.defs", 4 + "defs": { 5 + "channelView": { 6 + "type": "object", 7 + "required": ["uri", "creator", "title", "connectedCount"], 8 + "properties": { 9 + "uri": { 10 + "type": "string", 11 + "format": "at-uri" 12 + }, 13 + "creator": { 14 + "type": "ref", 15 + "ref": "org.xcvr.actor.defs#profileView" 16 + }, 17 + "title": { 18 + "type": "string", 19 + "maxGraphemes": 64, 20 + "maxLength": 640 21 + }, 22 + "topic": { 23 + "type": "string", 24 + "maxGraphemes": 256, 25 + "maxLength": 2560 26 + }, 27 + "connectedCount": { 28 + "type": "integer", 29 + "minimum": 0 30 + } 31 + } 32 + } 33 + } 34 + }
+43
lexicons/org/xcvr/feed/getChannels.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.xcvr.feed.getChannels", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Retrieve a reverse-chronological list of channels.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 100, 15 + "default": 50 16 + }, 17 + "cursor": { 18 + "type": "string" 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["channels"], 27 + "properties": { 28 + "channels": { 29 + "type": "array", 30 + "items": { 31 + "type": "ref", 32 + "ref": "org.xcvr.feed.defs#channelView" 33 + } 34 + }, 35 + "cursor": { 36 + "type": "string" 37 + } 38 + } 39 + } 40 + } 41 + } 42 + } 43 + }
+25
lexicons/org/xcvr/lrc/signature.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.xcvr.lrc.signature", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "key": "tid", 8 + "record": { 9 + "type": "object", 10 + "required": ["channel","messageID"], 11 + "properties": { 12 + "channel": { 13 + "type": "string", 14 + "format": "at-uri" 15 + }, 16 + "messageID": { 17 + "type": "integer", 18 + "minimum": 0, 19 + "maximum": 4294967295 20 + } 21 + } 22 + } 23 + } 24 + } 25 + }