{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/astranexo-com/json-schema/astranexo-com-webhook-update-schema.json",
  "title": "WebhookUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/astranexo-com-webhooks-api-openapi.yml#/components/schemas/WebhookUpdate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookEvent"
      }
    },
    "is_active": {
      "type": "boolean"
    },
    "timeout_seconds": {
      "type": "integer"
    },
    "max_retries": {
      "type": "integer"
    }
  },
  "$defs": {
    "WebhookEvent": {
      "type": "string",
      "enum": [
        "document.signed",
        "document.queued",
        "document.accepted",
        "document.rejected",
        "document.voided",
        "document.created",
        "document.error",
        "callback.received"
      ],
      "description": "Eventos suscribibles. `document.created`, `document.error` y `callback.received` se aceptan pero actualmente no se emiten."
    }
  }
}