{
"id": "ink.branchline.getBuds",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"buds"
],
"properties": {
"buds": {
"type": "array",
"items": {
"ref": "#budView",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"uris"
],
"properties": {
"uris": {
"type": "array",
"items": {
"type": "string",
"format": "at-uri"
},
"maxLength": 25,
"description": "AT-URIs of buds to hydrate."
}
}
},
"description": "Hydrate full bud views for a set of AT-URIs. Buds are returned in the same order as the input URIs. Unknown URIs are silently omitted from the response."
},
"budView": {
"type": "object",
"required": [
"uri",
"cid",
"author",
"title",
"text",
"createdAt",
"depth",
"pollenCount"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"text": {
"type": "string"
},
"depth": {
"type": "integer",
"minimum": 0,
"description": "Depth of this bud in the story tree (0 = root)."
},
"title": {
"type": "string"
},
"author": {
"ref": "#authorView",
"type": "ref"
},
"locked": {
"type": "boolean",
"description": "True when the bud's bloom time can no longer be extended."
},
"parent": {
"ref": "com.atproto.repo.strongRef",
"type": "ref"
},
"growing": {
"type": "boolean",
"description": "True when the bud has not yet reached its bloomsAt time and is still in the growing window."
},
"children": {
"type": "array",
"items": {
"type": "string",
"format": "at-uri"
},
"description": "AT-URIs of buds that extend this bud."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"formatting": {
"type": "array",
"items": {
"ref": "ink.branchline.bud#formatSpan",
"type": "ref"
}
},
"pollenCount": {
"type": "integer",
"minimum": 0,
"description": "Lifetime number of pollen grains on this bud (raw count, not the ranking-weighted score)."
},
"viewerPollinated": {
"type": "boolean",
"description": "True when the authenticated viewer has already pollinated this bud. Omitted when there is no viewer session."
},
"intermediateCount": {
"type": "integer",
"minimum": 0,
"description": "Count of distinct contributor DIDs on the root-to-bud path, including the root author and this bud's author."
}
}
},
"authorView": {
"type": "object",
"required": [
"did",
"handle"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"handle": {
"type": "string",
"format": "handle"
},
"displayName": {
"type": "string",
"maxLength": 640,
"maxGraphemes": 64
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}