{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcheapgames-com/json-schema/getcheapgames-com-summary-out-schema.json",
  "title": "SummaryOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getcheapgames-com-mailing-api-openapi.yml#/components/schemas/SummaryOut",
  "properties": {
    "list": {
      "type": "string",
      "title": "List"
    },
    "listId": {
      "type": "string",
      "enum": [
        "giveaways",
        "sales",
        "news"
      ],
      "title": "Listid"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "counts": {
      "$ref": "#/$defs/Counts"
    },
    "joined30d": {
      "type": "integer",
      "title": "Joined30D"
    },
    "left30d": {
      "type": "integer",
      "title": "Left30D"
    },
    "breakdown": {
      "$ref": "#/$defs/Breakdown"
    },
    "sends": {
      "anyOf": [
        {
          "$ref": "#/$defs/Sends"
        },
        {
          "type": "null"
        }
      ]
    },
    "giveaways": {
      "anyOf": [
        {
          "$ref": "#/$defs/GiveawaysSummary"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "list",
    "listId",
    "name",
    "counts",
    "joined30d",
    "left30d",
    "breakdown",
    "sends",
    "giveaways"
  ],
  "$defs": {
    "Breakdown": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "rows": {
          "items": {
            "$ref": "#/$defs/BreakdownRow"
          },
          "type": "array",
          "title": "Rows"
        }
      },
      "type": "object",
      "required": [
        "label",
        "rows"
      ],
      "title": "Breakdown"
    },
    "BreakdownRow": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "key",
        "count"
      ],
      "title": "BreakdownRow"
    },
    "Counts": {
      "properties": {
        "subscribed": {
          "type": "integer",
          "title": "Subscribed"
        },
        "pending": {
          "type": "integer",
          "title": "Pending"
        },
        "unsubscribed": {
          "type": "integer",
          "title": "Unsubscribed"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        }
      },
      "type": "object",
      "required": [
        "subscribed",
        "pending",
        "unsubscribed",
        "total"
      ],
      "title": "Counts"
    },
    "GiveawaysSummary": {
      "properties": {
        "open": {
          "type": "integer",
          "title": "Open"
        },
        "last30d": {
          "type": "integer",
          "title": "Last30D"
        }
      },
      "type": "object",
      "required": [
        "open",
        "last30d"
      ],
      "title": "GiveawaysSummary"
    },
    "Sends": {
      "properties": {
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "lastAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastat"
        },
        "last30d": {
          "type": "integer",
          "title": "Last30D"
        }
      },
      "type": "object",
      "required": [
        "total",
        "lastAt",
        "last30d"
      ],
      "title": "Sends"
    }
  }
}