{
"id": "science.alt.dataset.resolveLabel",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "LabelNotFound",
"description": "No label found with the given name"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"uri",
"cid",
"label"
],
"properties": {
"cid": {
"type": "string",
"description": "CID of the resolved dataset entry"
},
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the resolved dataset entry"
},
"label": {
"ref": "science.alt.dataset.label",
"type": "ref",
"description": "The label record that was resolved"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"handle",
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"description": "Label name, e.g. 'mnist'"
},
"handle": {
"type": "string",
"description": "DID or handle of the dataset owner"
},
"version": {
"type": "string",
"maxLength": 50,
"description": "Specific version to resolve. If omitted, resolves to latest."
}
}
},
"description": "Resolve a named dataset label to its underlying dataset entry. When version is omitted, resolves to the most recently created label with the given name."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}