full diff

pub.chive.graph.getHierarchy

From
bafyreicmorsdsp7wu2cwj32lhgq6wzdnr75hmuehbtvunsbrry2tdiizfu indexed 2026-06-18 13:14 UTC View this version
To
bafyreicmorsdsp7wu2cwj32lhgq6wzdnr75hmuehbtvunsbrry2tdiizfu indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "hierarchyItem": {
55 "description": "Hierarchy node with recursive children",
66 "properties": {
77 "children": {
88 "description": "Child hierarchy items",
99 "items": {
1010 "ref": "#hierarchyItem",
1111 "type": "ref"
1212 },
1313 "type": "array"
1414 },
1515 "depth": {
1616 "description": "Depth in hierarchy (0 = root)",
1717 "type": "integer"
1818 },
1919 "node": {
2020 "description": "Node data",
2121 "ref": "pub.chive.graph.listNodes#graphNode",
2222 "type": "ref"
2323 }
2424 },
2525 "required": [
2626 "node",
2727 "children",
2828 "depth"
2929 ],
3030 "type": "object"
3131 },
3232 "main": {
3333 "description": "Get hierarchical tree structure for nodes of a specific subkind",
3434 "output": {
3535 "encoding": "application/json",
3636 "schema": {
3737 "properties": {
3838 "relationSlug": {
3939 "description": "Relation used for hierarchy",
4040 "type": "string"
4141 },
4242 "roots": {
4343 "description": "Root nodes with children",
4444 "items": {
4545 "ref": "#hierarchyItem",
4646 "type": "ref"
4747 },
4848 "type": "array"
4949 },
5050 "subkind": {
5151 "description": "Subkind of hierarchy",
5252 "type": "string"
5353 }
5454 },
5555 "required": [
5656 "roots",
5757 "subkind",
5858 "relationSlug"
5959 ],
6060 "type": "object"
6161 }
6262 },
6363 "parameters": {
6464 "properties": {
6565 "relationSlug": {
6666 "default": "broader",
6767 "description": "Relation slug for hierarchy traversal",
6868 "type": "string"
6969 },
7070 "subkind": {
7171 "description": "Subkind to get hierarchy for (e.g., field)",
7272 "type": "string"
7373 }
7474 },
7575 "required": [
7676 "subkind"
7777 ],
7878 "type": "params"
7979 },
8080 "type": "query"
8181 }
8282 },
8383 "id": "pub.chive.graph.getHierarchy",
8484 "lexicon": 1,
8585 "revision": 1
8686}