{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidplate-app/json-schema/vidplate-app-webhook-endpoint-list-schema.json",
  "title": "WebhookEndpointList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidplate-app-webhook-endpoints-api-openapi.yml#/components/schemas/WebhookEndpointList",
  "type": "object",
  "properties": {
    "object": {
      "const": "list"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookEndpoint"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "WebhookEndpoint": {
      "type": "object",
      "properties": {
        "object": {
          "const": "webhook_endpoint"
        },
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "events": {
          "type": "array",
          "items": {
            "enum": [
              "render.completed",
              "render.failed",
              "render.waiting_for_node",
              "render.expired",
              "render.progress",
              "template.version.published",
              "render_node.online",
              "render_node.offline",
              "output.delivered",
              "output.delivery_failed"
            ]
          }
        },
        "enabled": {
          "type": "boolean"
        },
        "disabled_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_success_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_failure_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "secret": {
          "type": "string",
          "description": "Only when created or rotated."
        }
      }
    }
  }
}