{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/valjeanspecialty/json-schema/valjeanspecialty-webhook-list-schema.json",
  "title": "WebhookList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/valjeanspecialty-webhooks-api-openapi.yml#/components/schemas/WebhookList",
  "type": "object",
  "properties": {
    "webhooks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Webhook"
      }
    },
    "event_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "signature_header": {
      "type": "string"
    }
  },
  "required": [
    "webhooks",
    "event_types",
    "signature_header"
  ],
  "$defs": {
    "Webhook": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Empty means every event."
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "active": {
          "type": "boolean"
        },
        "last_success_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "last_failure_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "last_error": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "url",
        "events",
        "description",
        "active",
        "last_success_at",
        "last_failure_at",
        "last_error",
        "created_at"
      ]
    }
  }
}