diff --git a/lexicons/blue.microcosm/identity/resolveMiniDoc.json b/lexicons/blue.microcosm/identity/resolveMiniDoc.json new file mode 100644 index 0000000..841beb7 --- /dev/null +++ b/lexicons/blue.microcosm/identity/resolveMiniDoc.json @@ -0,0 +1,57 @@ +{ + "$type": "com.atproto.lexicon.schema", + "id": "blue.microcosm.identity.resolveMiniDoc", + "lexicon": 1, + "defs": { + "main": { + "description": "like com.atproto.identity.resolveIdentity but instead of the full DID Doc, returns an atproto-relevant subset", + "output": { + "encoding": "application/json", + "schema": { + "properties": { + "did": { + "description": "DID, bi-directionally verified if a handle was provided in the query", + "format": "did", + "type": "string" + }, + "handle": { + "description": "the validated handle of the account or 'handle.invalid' if the handle did not bi-directionally match the DID document", + "format": "handle", + "type": "string" + }, + "pds": { + "description": "the identity's PDS URL", + "format": "uri", + "type": "string" + }, + "signing_key": { + "description": "the atproto signing key publicKeyMultibase", + "type": "string" + } + }, + "required": [ + "did", + "handle", + "pds", + "signing_key" + ], + "type": "object" + } + }, + "parameters": { + "properties": { + "identifier": { + "description": "handle or DID to resolve", + "format": "at-identifier", + "type": "string" + } + }, + "required": [ + "identifier" + ], + "type": "params" + }, + "type": "query" + } + } +} diff --git a/lexicons/blue.microcosm/repo/getRecordByUri.json b/lexicons/blue.microcosm/repo/getRecordByUri.json new file mode 100644 index 0000000..0e4d919 --- /dev/null +++ b/lexicons/blue.microcosm/repo/getRecordByUri.json @@ -0,0 +1,57 @@ +{ + "$type": "com.atproto.lexicon.schema", + "id": "blue.microcosm.repo.getRecordByUri", + "lexicon": 1, + "defs": { + "main": { + "description": "Get a single record from a repository by at-uri", + "errors": [ + { + "name": "RecordNotFound" + } + ], + "output": { + "encoding": "application/json", + "schema": { + "properties": { + "cid": { + "format": "cid", + "type": "string" + }, + "uri": { + "format": "at-uri", + "type": "string" + }, + "value": { + "type": "unknown" + } + }, + "required": [ + "uri", + "value" + ], + "type": "object" + } + }, + "parameters": { + "properties": { + "cid": { + "description": "The CID of the version of the record. If not specified, then return the most recent version. If specified and a newer version of the record exists, returns 404 not found.", + "format": "cid", + "type": "string" + }, + "at_uri": { + "description": "The at-uri of the record. The identifier can be a DID or an atproto handle. The collection and rkey segments must be present.", + "format": "at-uri", + "type": "string" + } + }, + "required": [ + "at_uri" + ], + "type": "params" + }, + "type": "query" + } + } +}