{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/immowelt/json-schema/immowelt-webhook-subscription-list-response-schema.json",
  "title": "webhookSubscriptionListResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immowelt-seeker-leads-openapi.yml#/components/schemas/webhookSubscriptionListResponse",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object",
      "required": [
        "count"
      ],
      "properties": {
        "count": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/webhookSubscriptionResponse"
      }
    }
  },
  "required": [
    "metadata",
    "items"
  ],
  "$defs": {
    "subscriptionStatus": {
      "type": "string",
      "description": "The status of the subscription.",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "webhookSubscriptionResponse": {
      "type": "object",
      "properties": {
        "subscriptionId": {
          "type": "string",
          "minLength": 1
        },
        "url": {
          "type": "string",
          "format": "url",
          "description": "The URL to send new lead notifications to."
        },
        "status": {
          "$ref": "#/$defs/subscriptionStatus"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "subscriptionId",
        "url",
        "status",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}