{
  "$id": "https://agent-setup.oxidt.com/schema/verification.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Verification",
  "description": "What `verify_setup` returns.",
  "oneOf": [
    {
      "description": "Nothing received yet.",
      "type": "object",
      "properties": {
        "hint": {
          "description": "How to trigger the first event, e.g. \"load any page\".",
          "type": "string"
        },
        "status": {
          "type": "string",
          "const": "waiting"
        }
      },
      "additionalProperties": false,
      "required": [
        "status",
        "hint"
      ]
    },
    {
      "description": "At least one event received since `since`. Shows events reach the\nresource, not that they came from this install.",
      "type": "object",
      "properties": {
        "first_event_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_event_at": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "const": "receiving"
        }
      },
      "additionalProperties": false,
      "required": [
        "status",
        "first_event_at",
        "last_event_at"
      ]
    }
  ]
}
