{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/costrinity-xyz/json-schema/costrinity-xyz-phase1-health-schema.json",
  "title": "Phase1Health",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/costrinity-xyz-openapi.yml#/components/schemas/Phase1Health",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "phase": {
      "type": "string",
      "enum": [
        "1"
      ]
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "required": {
      "type": "object",
      "properties": {
        "primary_supabase_reachable": {
          "type": "boolean"
        },
        "cron_secret_configured": {
          "type": "boolean"
        },
        "resend_configured": {
          "type": "boolean"
        }
      }
    },
    "optional": {
      "type": "object",
      "properties": {
        "dpia_snapshots_migration_applied": {
          "type": "boolean"
        },
        "razorpay_configured": {
          "type": "boolean"
        },
        "sahamati_strict_mode": {
          "type": "boolean"
        },
        "regions_provisioned": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RegionId"
          }
        }
      }
    },
    "surface": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "RegionId": {
      "type": "string",
      "description": "A routing label stored on the account, not a place. 'us-east-1' labels the primary database project, which runs in AWS us-west-2 (Oregon, USA). No ap-south-1 or eu-west-1 database is provisioned today, so every account's data is stored in the primary. The generated documents print where the data is, not the label.",
      "enum": [
        "us-east-1",
        "ap-south-1",
        "eu-west-1"
      ]
    }
  }
}