{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-heartbeat-response-schema.json",
  "title": "HeartbeatResponse",
  "description": "Response model for license heartbeat",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-client-api-openapi.yml#/components/schemas/HeartbeatResponse",
  "properties": {
    "is_valid": {
      "type": "boolean",
      "title": "Is Valid",
      "description": "License validity status"
    },
    "current_expiry": {
      "type": "string",
      "title": "Current Expiry",
      "description": "Current expiry datetime (ISO format)"
    },
    "expires_in_seconds": {
      "type": "integer",
      "title": "Expires In Seconds",
      "description": "Seconds until expiry"
    },
    "should_shutdown": {
      "type": "boolean",
      "title": "Should Shutdown",
      "description": "Should system shutdown"
    },
    "expiry_updated": {
      "type": "boolean",
      "title": "Expiry Updated",
      "description": "Expiry date was updated"
    },
    "features": {
      "type": "object",
      "title": "Features",
      "description": "Enabled features"
    },
    "limits": {
      "type": "object",
      "title": "Limits",
      "description": "Usage limits"
    },
    "message": {
      "type": "string",
      "title": "Message",
      "description": "Human-readable message"
    },
    "push_config": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Push Config",
      "description": "FCM push notification config to distribute to customer VMs"
    }
  },
  "type": "object",
  "required": [
    "is_valid",
    "current_expiry",
    "expires_in_seconds",
    "should_shutdown",
    "expiry_updated",
    "features",
    "limits",
    "message"
  ]
}