{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getcheapgames-com/json-schema/getcheapgames-com-subscribers-out-schema.json",
  "title": "SubscribersOut",
  "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/SubscribersOut",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/SubscriberOut"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "title": "Total"
    },
    "limit": {
      "type": "integer",
      "title": "Limit"
    },
    "offset": {
      "type": "integer",
      "title": "Offset"
    },
    "counts": {
      "$ref": "#/$defs/TabCounts"
    },
    "listId": {
      "type": "string",
      "enum": [
        "giveaways",
        "sales",
        "news"
      ],
      "title": "Listid"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "limit",
    "offset",
    "counts",
    "listId"
  ],
  "$defs": {
    "SubscriberOut": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "email": {
          "type": "string",
          "title": "Email"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "title": "Createdat"
        },
        "confirmedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confirmedat"
        },
        "unsubscribedAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unsubscribedat"
        },
        "accountSub": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Accountsub"
        },
        "alertsSent": {
          "type": "integer",
          "title": "Alertssent"
        },
        "lastAlertAt": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastalertat"
        }
      },
      "type": "object",
      "required": [
        "id",
        "email",
        "status",
        "source",
        "createdAt",
        "confirmedAt",
        "unsubscribedAt",
        "alertsSent",
        "lastAlertAt"
      ],
      "title": "SubscriberOut"
    },
    "TabCounts": {
      "properties": {
        "all": {
          "type": "integer",
          "title": "All"
        },
        "subscribed": {
          "type": "integer",
          "title": "Subscribed"
        },
        "pending": {
          "type": "integer",
          "title": "Pending"
        },
        "unsubscribed": {
          "type": "integer",
          "title": "Unsubscribed"
        }
      },
      "type": "object",
      "required": [
        "all",
        "subscribed",
        "pending",
        "unsubscribed"
      ],
      "title": "TabCounts",
      "description": "Per status, for the same search: what each filter chip would show."
    }
  }
}