{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/doingwork-work/json-schema/doingwork-work-health-schema.json",
  "title": "Health",
  "description": "Public status of the Doing Work app. Extra fields may appear; ignore unknown ones.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/doingwork-work-openapi.json#/components/schemas/Health",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "True when the app is serving requests"
    },
    "mode": {
      "type": "string",
      "description": "Runtime mode, for example production"
    },
    "buildSha": {
      "type": "string",
      "description": "Git commit of the running app build"
    },
    "termsVersion": {
      "type": "string",
      "description": "Date of the current terms of service, YYYY-MM-DD"
    },
    "planCents": {
      "type": "integer",
      "description": "Monthly plan price in US cents (4900 = $49)"
    },
    "textOverageCents": {
      "type": "integer",
      "description": "Price per text past the monthly allowance, in US cents"
    },
    "connectLive": {
      "type": "boolean",
      "description": "True when Stripe Connect payments are live"
    },
    "vendors": {
      "type": "object",
      "description": "Status of each outside service",
      "additionalProperties": {
        "type": "string",
        "enum": [
          "live",
          "off"
        ]
      }
    },
    "mailPostalAddress": {
      "type": "string",
      "description": "Postal mailing address used in emails"
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": true
}