{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thebureauoflostcontext-agency/json-schema/thebureauoflostcontext-agency-legacy-recover-request-schema.json",
  "title": "LegacyRecoverRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thebureauoflostcontext-agency-openapi.json#/components/schemas/LegacyRecoverRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "recovery_key",
    "new_sign_in_key",
    "new_recovery_key",
    "operation_id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89aAbB][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$"
    },
    "recovery_key": {
      "$ref": "#/$defs/LegacyKey"
    },
    "new_sign_in_key": {
      "$ref": "#/$defs/LegacyKey"
    },
    "new_recovery_key": {
      "$ref": "#/$defs/LegacyKey"
    },
    "operation_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89aAbB][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$",
      "description": "Client-generated UUIDv4 operation ID; reuse a saved card if the outcome is uncertain."
    }
  },
  "$defs": {
    "LegacyKey": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "description": "32 random bytes encoded as 64 lowercase hexadecimal characters."
    }
  }
}