appBskyActorGetSuggestions top-level constant

Map<String, dynamic> const appBskyActorGetSuggestions

app.bsky.actor.getSuggestions

Implementation

const appBskyActorGetSuggestions = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.actor.getSuggestions",
  "defs": {
    "main": {
      "type": "query",
      "description":
          "Get a list of suggested actors. Expected use is discovery of accounts to follow during new account onboarding.",
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "minimum": 1,
            "maximum": 100
          },
          "cursor": {"type": "string"}
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["actors"],
          "properties": {
            "cursor": {"type": "string"},
            "actors": {
              "type": "array",
              "items": {"type": "ref", "ref": "app.bsky.actor.defs#profileView"}
            }
          }
        }
      }
    }
  }
};