Skip to content

place.stream.live.searchActorsTypeahead

Lexicon Version: 1

Type: query

Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry.

Parameters:

NameTypeReq’dDescriptionConstraints
qstringSearch query prefix; not a full query string.
limitintegerMin: 1
Max: 100
Default: 10

Output:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
actorsArray of #actor

Type: object

Properties:

NameTypeReq’dDescriptionConstraints
didstringThe actor’s DIDFormat: did
handlestringThe actor’s handleFormat: handle

{
"lexicon": 1,
"id": "place.stream.live.searchActorsTypeahead",
"defs": {
"main": {
"type": "query",
"description": "Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry.",
"parameters": {
"type": "params",
"properties": {
"q": {
"type": "string",
"description": "Search query prefix; not a full query string."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 10
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["actors"],
"properties": {
"actors": {
"type": "array",
"items": {
"type": "ref",
"ref": "#actor"
}
}
}
}
}
},
"actor": {
"type": "object",
"required": ["did", "handle"],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The actor's DID"
},
"handle": {
"type": "string",
"format": "handle",
"description": "The actor's handle"
}
}
}
}
}