full diff

pub.chive.graph.expandSubgraph

From
bafyreihzrsmq2raz2vwqkzcdelj5qvbd4eyuk7nqyafjsirhx3yi3hnsye indexed 2026-06-18 13:14 UTC View this version
To
bafyreihzrsmq2raz2vwqkzcdelj5qvbd4eyuk7nqyafjsirhx3yi3hnsye 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 "main": {
55 "description": "Expand a subgraph from root URIs using breadth-first search, returning discovered nodes and edges.",
66 "output": {
77 "encoding": "application/json",
88 "schema": {
99 "properties": {
1010 "edges": {
1111 "items": {
1212 "ref": "#subgraphEdge",
1313 "type": "ref"
1414 },
1515 "type": "array"
1616 },
1717 "nodes": {
1818 "items": {
1919 "ref": "#subgraphNode",
2020 "type": "ref"
2121 },
2222 "type": "array"
2323 },
2424 "truncated": {
2525 "description": "Whether result was capped at maxNodes.",
2626 "type": "boolean"
2727 }
2828 },
2929 "required": [
3030 "nodes",
3131 "edges",
3232 "truncated"
3333 ],
3434 "type": "object"
3535 }
3636 },
3737 "parameters": {
3838 "properties": {
3939 "depth": {
4040 "default": 2,
4141 "description": "Maximum BFS depth.",
4242 "maximum": 5,
4343 "minimum": 1,
4444 "type": "integer"
4545 },
4646 "edgeTypes": {
4747 "description": "Filter by edge relation slugs. If omitted, all types included.",
4848 "items": {
4949 "type": "string"
5050 },
5151 "type": "array"
5252 },
5353 "maxNodes": {
5454 "default": 100,
5555 "description": "Maximum nodes to return.",
5656 "maximum": 200,
5757 "minimum": 1,
5858 "type": "integer"
5959 },
6060 "rootUris": {
6161 "description": "Starting node URIs for BFS expansion.",
6262 "items": {
6363 "type": "string"
6464 },
6565 "maxLength": 10,
6666 "type": "array"
6767 }
6868 },
6969 "required": [
7070 "rootUris"
7171 ],
7272 "type": "params"
7373 },
7474 "type": "query"
7575 },
7676 "subgraphEdge": {
7777 "properties": {
7878 "label": {
7979 "type": "string"
8080 },
8181 "relationSlug": {
8282 "type": "string"
8383 },
8484 "sourceUri": {
8585 "type": "string"
8686 },
8787 "targetUri": {
8888 "type": "string"
8989 },
9090 "uri": {
9191 "type": "string"
9292 },
9393 "weight": {
9494 "maximum": 100,
9595 "minimum": 0,
9696 "type": "integer"
9797 }
9898 },
9999 "required": [
100100 "uri",
101101 "sourceUri",
102102 "targetUri",
103103 "relationSlug"
104104 ],
105105 "type": "object"
106106 },
107107 "subgraphNode": {
108108 "properties": {
109109 "description": {
110110 "type": "string"
111111 },
112112 "kind": {
113113 "type": "string"
114114 },
115115 "label": {
116116 "type": "string"
117117 },
118118 "metadata": {
119119 "type": "unknown"
120120 },
121121 "subkind": {
122122 "type": "string"
123123 },
124124 "uri": {
125125 "type": "string"
126126 }
127127 },
128128 "required": [
129129 "uri",
130130 "label",
131131 "kind"
132132 ],
133133 "type": "object"
134134 }
135135 },
136136 "id": "pub.chive.graph.expandSubgraph",
137137 "lexicon": 1,
138138 "revision": 1
139139}