comAtprotoSyncListHosts top-level constant
com.atproto.sync.listHosts
Implementation
const comAtprotoSyncListHosts = <String, dynamic>{
"lexicon": 1,
"id": "com.atproto.sync.listHosts",
"defs": {
"main": {
"type": "query",
"description":
"Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.",
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"default": 200,
"minimum": 1,
"maximum": 1000,
},
"cursor": {"type": "string"},
},
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["hosts"],
"properties": {
"cursor": {"type": "string"},
"hosts": {
"type": "array",
"description":
"Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.",
"items": {"type": "ref", "ref": "#host"},
},
},
},
},
},
"host": {
"type": "object",
"required": ["hostname"],
"properties": {
"hostname": {
"type": "string",
"description": "hostname of server; not a URL (no scheme)",
},
"seq": {
"type": "integer",
"description":
"Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).",
},
"accountCount": {"type": "integer"},
"status": {"type": "ref", "ref": "com.atproto.sync.defs#hostStatus"},
},
},
},
};