{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frihet-io/json-schema/frihet-io-webhook-update-schema.json",
  "title": "WebhookUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frihet-io-webhooks-api-openapi.yml#/components/schemas/WebhookUpdate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2000
    },
    "secret": {
      "type": "string",
      "description": "HMAC secret for verifying webhook signatures. Write-only: never returned by read endpoints (see hasSecret).",
      "maxLength": 500
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "x-enum-ref": "#/components/schemas/WebhookEventType"
      },
      "minItems": 1
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "paused"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    }
  }
}