parts.page.mention.search

Search a mention service for matching results. A single XRPC host can serve multiple mention services, distinguished by the service AT URI.

Repository @page.parts did:plc:de2gzyliybvjo4bfvu4i54de namespace authority
Details · query
Kindquery
Authoritymention.page.parts
Indexed

Showing version bafyreigvmpjpf3efgbtb3y74sbqn7cdzb6fkjvg7dzrsqgczrrem5t34su. Show the latest

cid bafyreigvmpjpf3efgbtb3y74sbqn7cdzb6fkjvg7dzrsqgczrrem5t34su

Checks

Valid
  • unlimited-string defs.main.parameters.properties.searchNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.result.properties.nameNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.result.properties.uriNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "embedInfo": {
      "properties": {
        "height": {
          "description": "Default height of the embed in pixels",
          "maximum": 3200,
          "minimum": 16,
          "type": "integer"
        },
        "src": {
          "description": "Source URL for the iframe embed",
          "format": "uri",
          "type": "string"
        },
        "width": {
          "description": "Default width of the embed in pixels",
          "maximum": 3200,
          "minimum": 16,
          "type": "integer"
        }
      },
      "required": [
        "src"
      ],
      "type": "object"
    },
    "main": {
      "description": "Search a mention service for matching results. A single XRPC host can serve multiple mention services, distinguished by the service AT URI.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "results": {
              "items": {
                "ref": "#result",
                "type": "ref"
              },
              "maxLength": 50,
              "type": "array"
            }
          },
          "required": [
            "results"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 20,
            "description": "Maximum number of results to return",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "search": {
            "description": "Search query string",
            "type": "string"
          },
          "service": {
            "description": "AT URI of the parts.page.mention.service record identifying which service to query",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "service",
          "search"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "result": {
      "properties": {
        "embed": {
          "description": "Optional embed info for creating an embed block instead of an inline mention",
          "ref": "#embedInfo",
          "type": "ref"
        },
        "href": {
          "description": "Optional web URL for the mentioned entity",
          "format": "uri",
          "type": "string"
        },
        "icon": {
          "description": "Optional icon URL for the mentioned entity, displayed next to the mention",
          "format": "uri",
          "type": "string"
        },
        "name": {
          "description": "Display name for the mentioned entity",
          "type": "string"
        },
        "uri": {
          "description": "Identifier for the mentioned entity",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "name"
      ],
      "type": "object"
    }
  },
  "id": "parts.page.mention.search",
  "lexicon": 1
}