Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

Add other lexicons I've written

+129
+70
lexicons/com/bad-example/identity/resolveMiniDoc.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.bad-example.identity.resolveMiniDoc", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Like com.atproto.identity.resolveIdentity but instead of the full didDoc it returns an atproto-relevant subset.", 8 + "parameters": { 9 + "type": "params", 10 + "required": [ 11 + "identifier" 12 + ], 13 + "properties": { 14 + "identifier": { 15 + "type": "string", 16 + "format": "at-identifier", 17 + "description": "Handle or DID to resolve." 18 + } 19 + } 20 + }, 21 + "output": { 22 + "encoding": "application/json", 23 + "schema": { 24 + "type": "ref", 25 + "ref": "#miniDoc" 26 + } 27 + }, 28 + "errors": [ 29 + { 30 + "name": "HandleNotFound", 31 + "description": "The resolution process confirmed that the handle does not resolve to any DID." 32 + }, 33 + { 34 + "name": "DidNotFound", 35 + "description": "The DID resolution process confirmed that there is no current DID." 36 + }, 37 + { 38 + "name": "DidDeactivated", 39 + "description": "The DID previously existed, but has been deactivated." 40 + } 41 + ] 42 + }, 43 + "miniDoc": { 44 + "type": "object", 45 + "required": [ 46 + "did", 47 + "handle", 48 + "pds", 49 + "signing_key" 50 + ], 51 + "properties": { 52 + "did": { 53 + "type": "string", 54 + "format": "did" 55 + }, 56 + "handle": { 57 + "type": "string", 58 + "format": "handle" 59 + }, 60 + "pds": { 61 + "type": "string", 62 + "format": "uri" 63 + }, 64 + "signing_key": { 65 + "type": "string" 66 + } 67 + } 68 + } 69 + } 70 + }
+59
lexicons/com/bad-example/repo/getUriRecord.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.bad-example.repo.getUriRecord", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Ergonomic complement to com.atproto.repo.getRecord which accepts an at-uri instead of individual repo/collection/rkey params", 8 + "parameters": { 9 + "type": "params", 10 + "required": [ 11 + "at_uri" 12 + ], 13 + "properties": { 14 + "at_uri": { 15 + "type": "string", 16 + "format": "at-uri", 17 + "description": "The at-uri of the record. The identifier can be a DID or an atproto handle, and the collection and rkey segments must be present." 18 + }, 19 + "cid": { 20 + "type": "string", 21 + "format": "cid", 22 + "description": "The CID of the version of the record. If not specified, then return the most recent version." 23 + } 24 + } 25 + }, 26 + "output": { 27 + "encoding": "application/json", 28 + "schema": { 29 + "type": "object", 30 + "required": [ 31 + "uri", 32 + "value" 33 + ], 34 + "properties": { 35 + "uri": { 36 + "type": "string", 37 + "format": "at-uri" 38 + }, 39 + "cid": { 40 + "type": "string", 41 + "format": "cid" 42 + }, 43 + "value": { 44 + "type": "unknown" 45 + } 46 + } 47 + } 48 + }, 49 + "errors": [ 50 + { 51 + "name": "RecordNotFound" 52 + }, 53 + { 54 + "name": "InvalidRequest" 55 + } 56 + ] 57 + } 58 + } 59 + }