{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/osis-co/json-schema/osis-co-number-change-schema.json",
  "title": "NumberChange",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/osis-co-lines-api-openapi.yml#/components/schemas/NumberChange",
  "type": "object",
  "required": [
    "id",
    "old_e164",
    "area_code",
    "require_exact_area_code",
    "status",
    "error_code",
    "new_e164",
    "created_at",
    "updated_at",
    "completed_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^gp_[a-f0-9]{32}$"
    },
    "old_e164": {
      "type": "string"
    },
    "new_e164": {
      "type": [
        "string",
        "null"
      ]
    },
    "area_code": {
      "type": "string"
    },
    "require_exact_area_code": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "waiting_for_capacity",
        "provisioning",
        "verifying",
        "completed",
        "failed",
        "needs_attention"
      ]
    },
    "error_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}