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