{
  "$id": "https://schema.nfh.global/CatalogSubscription/v2.0",
  "x-iri": "https://schema.nfh.global/CatalogSubscription/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "description": "Full subscription record",
  "required": [
    "id",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Subscription UUID"
    },
    "networkIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Network IDs covered by this subscription"
    },
    "schemaTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Schema type URIs filtered by this subscription (empty = wildcard \"*\")"
    },
    "callbackUrl": {
      "type": "string",
      "format": "uri",
      "description": "Delivery callback URL"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "DELETED"
      ],
      "description": "Lifecycle status of the subscription"
    },
    "deliveryPolicy": {
      "$ref": "https://schema.nfh.global/DeliveryPolicy/v2.0/schema.json"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}
