{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adios-hr/json-schema/adios-hr-radar-webhook-create-response-schema.json",
  "title": "radar_webhook_create_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_webhook_create_response",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/radar_webhook_create_data"
    },
    "meta": {
      "type": "object",
      "description": "count, package, plan, took_ms; lists also include next_cursor and has_more."
    }
  },
  "$defs": {
    "radar_webhook_create_data": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "event": {
          "type": "string"
        },
        "settings": {
          "type": "object",
          "properties": {
            "place": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "latitude": {
              "type": [
                "string",
                "number",
                "null"
              ],
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
              "default": null
            },
            "longitude": {
              "type": [
                "string",
                "number",
                "null"
              ],
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
              "default": null
            },
            "radius_km": {
              "type": [
                "string",
                "number"
              ],
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
              "default": 25
            },
            "kinds": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "default": null
            },
            "urgent_only": {
              "type": "boolean",
              "default": false
            },
            "story": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "lang": {
              "type": "string",
              "default": "hr"
            },
            "tracker": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "category": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "hazard": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "store": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "gtin": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            },
            "provider": {
              "type": [
                "string",
                "null"
              ],
              "default": null
            }
          }
        },
        "active": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_delivery_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "consecutive_failures": {
          "type": [
            "string",
            "integer"
          ],
          "pattern": "^-?(?:0|[1-9]\\d*)$"
        },
        "last_error": {
          "type": [
            "string",
            "null"
          ]
        },
        "secret": {
          "type": [
            "string",
            "null"
          ],
          "default": null
        }
      },
      "required": [
        "id",
        "name",
        "url",
        "event",
        "settings",
        "active",
        "created_at",
        "consecutive_failures"
      ]
    }
  }
}