{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Search across all entity types (games, profiles, platforms, collections, engines).",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "results": {
              "items": {
                "refs": [
                  "games.gamesgamesgamesgames.defs#gameSummaryView",
                  "games.gamesgamesgamesgames.defs#profileSummaryView",
                  "games.gamesgamesgamesgames.defs#platformSummaryView",
                  "games.gamesgamesgamesgames.defs#collectionSummaryView",
                  "games.gamesgamesgamesgames.defs#engineSummaryView"
                ],
                "type": "union"
              },
              "type": "array"
            },
            "totalResults": {
              "description": "Total number of results matching the query above the relevance threshold.",
              "type": "integer"
            }
          },
          "required": [
            "results"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "ageRatings": {
            "description": "Filter game results by age rating in 'organization:rating' format (e.g. esrb:M, pegi:Eighteen).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "applicationTypes": {
            "description": "Filter game results by application type (e.g. game, dlc, bundle). Only applies when types includes game.",
            "items": {
              "knownValues": [
                "addon",
                "bundle",
                "dlc",
                "episode",
                "expandedGame",
                "expansion",
                "fork",
                "game",
                "mod",
                "pack",
                "port",
                "remake",
                "remaster",
                "season",
                "standaloneExpansion",
                "update"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "cursor": {
            "type": "string"
          },
          "genres": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "includeCancelled": {
            "default": false,
            "type": "boolean"
          },
          "includeUnrated": {
            "default": false,
            "description": "When age rating filters are active, also include games with no age ratings.",
            "type": "boolean"
          },
          "limit": {
            "default": 20,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "modes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "playerPerspectives": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "q": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "sort": {
            "knownValues": [
              "name_asc",
              "name_desc",
              "published_asc",
              "published_desc"
            ],
            "type": "string"
          },
          "themes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "types": {
            "items": {
              "knownValues": [
                "game",
                "profile",
                "platform",
                "collection",
                "engine"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "games.gamesgamesgamesgames.search",
  "lexicon": 1
}
