{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/handover-sh/json-schema/handover-sh-storage-status-envelope-schema.json",
  "title": "StorageStatusEnvelope",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/handover-sh-openapi.json#/components/schemas/StorageStatusEnvelope",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "placement",
        "availableCells"
      ],
      "properties": {
        "placement": {
          "$ref": "#/$defs/StoragePlacement"
        },
        "availableCells": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "cellId",
              "cellLabel",
              "residencyRegion",
              "current"
            ],
            "properties": {
              "cellId": {
                "type": "string"
              },
              "cellLabel": {
                "type": "string"
              },
              "residencyRegion": {
                "type": "string"
              },
              "current": {
                "type": "boolean"
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "StoragePlacement": {
      "type": "object",
      "required": [
        "cellId",
        "cellLabel",
        "residencyRegion",
        "status"
      ],
      "properties": {
        "cellId": {
          "type": "string"
        },
        "cellLabel": {
          "type": "string"
        },
        "residencyRegion": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "copying",
            "verifying",
            "cutover",
            "blocked"
          ]
        }
      }
    }
  }
}