chat.yakka.resolveMessage
Resolve a permalink fragment's message ref within a channel. `ambiguous` is the case the explicit fragment form exists to avoid: two authors can in principle mint the same TID in one channel. Rare at any single channel's scale, not impossible across many — so it is a case, not an assumption.
Details · query
| Kind | query |
|---|---|
| Authority | yakka.chat |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.channelNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.tidNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.output.properties.kindNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Resolve a permalink fragment's message ref within a channel.\n\n`ambiguous` is the case the explicit fragment form exists to avoid: two authors can in principle mint the same TID in one channel. Rare at any single channel's scale, not impossible across many — so it is a case, not an assumption.",
"output": {
"encoding": "application/json",
"schema": {
"ref": "#output",
"type": "ref"
}
},
"parameters": {
"properties": {
"author": {
"description": "Disambiguates when two authors minted the same TID in this channel.",
"format": "did",
"type": "string"
},
"channel": {
"type": "string"
},
"tid": {
"type": "string"
}
},
"required": [
"channel",
"tid"
],
"type": "params"
},
"type": "query"
},
"output": {
"properties": {
"candidates": {
"items": {
"ref": "chat.yakka.defs#messageView",
"type": "ref"
},
"type": "array"
},
"kind": {
"knownValues": [
"ok",
"ambiguous",
"gone",
"notFound"
],
"type": "string"
},
"message": {
"ref": "chat.yakka.defs#messageView",
"type": "ref"
},
"seq": {
"description": "A deleted message keeps its sequence so the timeline can still scroll to it (ADR 0010).",
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"id": "chat.yakka.resolveMessage",
"lexicon": 1
}