{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Queue a job that copies Wikidata's sitelink counts, publishers, mod and fan game classes, and English Wikipedia articles for our games into the index, keyed by IGDB game ID. Admins only. One sync runs at a time.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "dryRun": {
              "default": false,
              "description": "Fetch and stage everything, and report what would change, without changing the table search reads.",
              "type": "boolean"
            },
            "force": {
              "default": false,
              "description": "Apply even when far fewer rows were staged than the table holds, which normally means Wikidata's answer was cut short.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyQueued": {
              "description": "True when a sync was already pending or running; jobId is that job, and nothing new was queued.",
              "type": "boolean"
            },
            "jobId": {
              "maxLength": 128,
              "type": "string"
            },
            "status": {
              "description": "The existing job's status, when alreadyQueued is true.",
              "knownValues": [
                "pending",
                "running"
              ],
              "maxLength": 32,
              "type": "string"
            }
          },
          "required": [
            "jobId"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.syncWikidata",
  "lexicon": 1
}
