{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adios-hr/json-schema/adios-hr-radar-subscription-response-schema.json",
  "title": "radar_subscription_response",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adios-hr-openapi.json#/components/schemas/radar_subscription_response",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/radar_subscription_data"
    },
    "meta": {
      "type": "object",
      "description": "count, package, plan, took_ms; lists also include next_cursor and has_more."
    }
  },
  "$defs": {
    "radar_subscription_data": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "package": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "trial_started_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "trial_ends_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "paid_until": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "monthly_eur": {
          "type": [
            "string",
            "number"
          ],
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
        },
        "trial_days": {
          "type": [
            "string",
            "integer"
          ],
          "pattern": "^-?(?:0|[1-9]\\d*)$"
        },
        "unlimited_requests": {
          "type": "boolean"
        },
        "billing": {
          "type": "string"
        }
      },
      "required": [
        "package",
        "status",
        "active",
        "monthly_eur",
        "trial_days",
        "unlimited_requests",
        "billing"
      ]
    }
  }
}