{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendly-now/json-schema/sendly-now-recipient-domain-stats-v1-list-schema.json",
  "title": "RecipientDomainStatsV1List",
  "description": "Cursor-paginated recipient-domain rollup, newest day first.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendly-now-deliverability-api-openapi.yml#/components/schemas/RecipientDomainStatsV1List",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/RecipientDomainStatsV1"
      },
      "type": "array"
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "description": "Pass as `after` to fetch the next page. `null` on the last page.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "has_more",
    "next_cursor"
  ],
  "type": "object",
  "$defs": {
    "RecipientDomainStatsV1": {
      "description": "Delivery outcomes for one recipient domain on one day.",
      "properties": {
        "bounced": {
          "type": "integer"
        },
        "complained": {
          "type": "integer"
        },
        "computed_at": {
          "description": "When the rollup job last rebuilt this row. These counts are a CACHE, refreshed hourly.",
          "format": "date-time",
          "type": "string"
        },
        "day": {
          "description": "The UTC day these counts cover, as `YYYY-MM-DD`.",
          "type": "string"
        },
        "delivered": {
          "type": "integer"
        },
        "domain": {
          "description": "The recipient's domain, lowercased: the part after the `@`.",
          "type": "string"
        },
        "opened": {
          "type": "integer"
        },
        "sent": {
          "type": "integer"
        }
      },
      "required": [
        "domain",
        "day",
        "sent",
        "delivered",
        "bounced",
        "complained",
        "opened",
        "computed_at"
      ],
      "type": "object"
    }
  }
}