{
"$type": "com.atproto.lexicon.schema",
"defs": {
"langs": {
"properties": {
"comment": {
"type": "string"
},
"lang": {
"type": "string"
},
"moderation": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
}
},
"required": [
"lang",
"title",
"moderation"
],
"type": "object"
},
"main": {
"description": "Get Bookmark by NSID, including schema, OGP, tags, moderation, and comments.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"nsid": {
"type": "string"
}
},
"required": [
"nsid"
],
"type": "object"
}
},
"output": {
"description": "Returns the Bookmark data for the given NSID.",
"encoding": "application/json",
"schema": {
"properties": {
"comments": {
"description": "Comments with titles, content, and moderation in multiple languages.",
"items": {
"ref": "blue.rito.service.getSchema#langs",
"type": "ref"
},
"type": "array"
},
"moderations": {
"description": "Moderation result for OGP title and description",
"items": {
"type": "string"
},
"type": "array"
},
"nsid": {
"description": "Namespace ID of the service or application (e.g., 'uk.skyblur.post').",
"type": "string"
},
"ogpDescription": {
"description": "The Open Graph Protocol (OGP) description for the bookmark.",
"type": "string"
},
"ogpImage": {
"description": "The Open Graph Protocol (OGP) image URL for the bookmark.",
"format": "uri",
"type": "string"
},
"ogpTitle": {
"description": "The Open Graph Protocol (OGP) title for the bookmark.",
"type": "string"
},
"schema": {
"description": "The schema URL pattern associated with this NSID (e.g., 'https://skyblur.uk/post/{did}/{rkey}').",
"type": "string"
},
"tags": {
"description": "This field contains tags. If registered by the owner, it may include 'Verified'.",
"items": {
"type": "string"
},
"type": "array"
},
"verified": {
"description": "If this comment registed by owner, this field should be true.",
"type": "boolean"
}
},
"required": [
"nsid",
"schema",
"moderations",
"comments",
"verified"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "blue.rito.service.getSchema",
"lexicon": 1
}