{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Execute migration of game records based on an approved claim.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "claim": {
              "format": "at-uri",
              "type": "string"
            },
            "claimReview": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "claim",
            "claimReview"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "results": {
              "items": {
                "ref": "#migrationResult",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "results"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "migrationResult": {
      "properties": {
        "error": {
          "type": "string"
        },
        "gameUri": {
          "format": "at-uri",
          "type": "string"
        },
        "newUri": {
          "format": "at-uri",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "success",
            "failed",
            "skipped"
          ],
          "type": "string"
        }
      },
      "required": [
        "gameUri",
        "status"
      ],
      "type": "object"
    }
  },
  "id": "games.gamesgamesgamesgames.migrateClaim",
  "lexicon": 1
}
